From 20d75c96265b8f6d583e23110256ae4c2ebe5819 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Sat, 26 Jul 2025 06:36:31 +0000 Subject: [PATCH 1/3] :alien: re-generate openapi models and apis --- githubkit/rest/__init__.py | 78 +- .../ghec_v2022_11_28/models/__init__.py | 9470 ++++++++--------- .../ghec_v2022_11_28/models/group_0063.py | 4 + .../ghec_v2022_11_28/models/group_0064.py | 21 +- .../ghec_v2022_11_28/models/group_0065.py | 26 +- .../ghec_v2022_11_28/models/group_0066.py | 42 +- .../ghec_v2022_11_28/models/group_0067.py | 57 +- .../ghec_v2022_11_28/models/group_0068.py | 83 +- .../ghec_v2022_11_28/models/group_0069.py | 68 +- .../ghec_v2022_11_28/models/group_0070.py | 54 +- .../ghec_v2022_11_28/models/group_0071.py | 84 +- .../ghec_v2022_11_28/models/group_0072.py | 359 +- .../ghec_v2022_11_28/models/group_0073.py | 345 +- .../ghec_v2022_11_28/models/group_0074.py | 45 +- .../ghec_v2022_11_28/models/group_0075.py | 115 +- .../ghec_v2022_11_28/models/group_0076.py | 137 +- .../ghec_v2022_11_28/models/group_0077.py | 69 +- .../ghec_v2022_11_28/models/group_0078.py | 53 +- .../ghec_v2022_11_28/models/group_0079.py | 49 +- .../ghec_v2022_11_28/models/group_0080.py | 32 +- .../ghec_v2022_11_28/models/group_0081.py | 55 +- .../ghec_v2022_11_28/models/group_0082.py | 18 +- .../ghec_v2022_11_28/models/group_0083.py | 51 +- .../ghec_v2022_11_28/models/group_0084.py | 41 +- .../ghec_v2022_11_28/models/group_0085.py | 28 +- .../ghec_v2022_11_28/models/group_0086.py | 28 +- .../ghec_v2022_11_28/models/group_0087.py | 30 +- .../ghec_v2022_11_28/models/group_0088.py | 26 +- .../ghec_v2022_11_28/models/group_0089.py | 22 +- .../ghec_v2022_11_28/models/group_0090.py | 26 +- .../ghec_v2022_11_28/models/group_0091.py | 44 +- .../ghec_v2022_11_28/models/group_0092.py | 44 +- .../ghec_v2022_11_28/models/group_0093.py | 22 +- .../ghec_v2022_11_28/models/group_0094.py | 26 +- .../ghec_v2022_11_28/models/group_0095.py | 20 +- .../ghec_v2022_11_28/models/group_0096.py | 24 +- .../ghec_v2022_11_28/models/group_0097.py | 20 +- .../ghec_v2022_11_28/models/group_0098.py | 59 +- .../ghec_v2022_11_28/models/group_0099.py | 50 +- .../ghec_v2022_11_28/models/group_0100.py | 22 +- .../ghec_v2022_11_28/models/group_0101.py | 17 +- .../ghec_v2022_11_28/models/group_0102.py | 17 +- .../ghec_v2022_11_28/models/group_0103.py | 45 +- .../ghec_v2022_11_28/models/group_0104.py | 23 +- .../ghec_v2022_11_28/models/group_0105.py | 40 +- .../ghec_v2022_11_28/models/group_0106.py | 41 +- .../ghec_v2022_11_28/models/group_0107.py | 48 +- .../ghec_v2022_11_28/models/group_0108.py | 40 +- .../ghec_v2022_11_28/models/group_0109.py | 41 +- .../ghec_v2022_11_28/models/group_0110.py | 40 +- .../ghec_v2022_11_28/models/group_0111.py | 25 +- .../ghec_v2022_11_28/models/group_0112.py | 25 +- .../ghec_v2022_11_28/models/group_0113.py | 25 +- .../ghec_v2022_11_28/models/group_0114.py | 25 +- .../ghec_v2022_11_28/models/group_0115.py | 25 +- .../ghec_v2022_11_28/models/group_0116.py | 25 +- .../ghec_v2022_11_28/models/group_0117.py | 25 +- .../ghec_v2022_11_28/models/group_0118.py | 25 +- .../ghec_v2022_11_28/models/group_0119.py | 25 +- .../ghec_v2022_11_28/models/group_0120.py | 27 +- .../ghec_v2022_11_28/models/group_0121.py | 24 +- .../ghec_v2022_11_28/models/group_0122.py | 23 +- .../ghec_v2022_11_28/models/group_0123.py | 25 +- .../ghec_v2022_11_28/models/group_0124.py | 25 +- .../ghec_v2022_11_28/models/group_0125.py | 23 +- .../ghec_v2022_11_28/models/group_0126.py | 23 +- .../ghec_v2022_11_28/models/group_0127.py | 25 +- .../ghec_v2022_11_28/models/group_0128.py | 20 +- .../ghec_v2022_11_28/models/group_0129.py | 19 +- .../ghec_v2022_11_28/models/group_0130.py | 45 +- .../ghec_v2022_11_28/models/group_0131.py | 46 +- .../ghec_v2022_11_28/models/group_0132.py | 37 +- .../ghec_v2022_11_28/models/group_0133.py | 34 +- .../ghec_v2022_11_28/models/group_0134.py | 20 +- .../ghec_v2022_11_28/models/group_0135.py | 22 +- .../ghec_v2022_11_28/models/group_0136.py | 20 +- .../ghec_v2022_11_28/models/group_0137.py | 20 +- .../ghec_v2022_11_28/models/group_0138.py | 21 +- .../ghec_v2022_11_28/models/group_0139.py | 151 +- .../ghec_v2022_11_28/models/group_0140.py | 138 +- .../ghec_v2022_11_28/models/group_0141.py | 23 +- .../ghec_v2022_11_28/models/group_0142.py | 26 +- .../ghec_v2022_11_28/models/group_0143.py | 18 +- .../ghec_v2022_11_28/models/group_0144.py | 17 +- .../ghec_v2022_11_28/models/group_0145.py | 135 +- .../ghec_v2022_11_28/models/group_0146.py | 135 +- .../ghec_v2022_11_28/models/group_0147.py | 61 +- .../ghec_v2022_11_28/models/group_0148.py | 163 +- .../ghec_v2022_11_28/models/group_0149.py | 165 +- .../ghec_v2022_11_28/models/group_0150.py | 110 +- .../ghec_v2022_11_28/models/group_0151.py | 54 +- .../ghec_v2022_11_28/models/group_0152.py | 35 +- .../ghec_v2022_11_28/models/group_0153.py | 33 +- .../ghec_v2022_11_28/models/group_0154.py | 24 +- .../ghec_v2022_11_28/models/group_0155.py | 20 +- .../ghec_v2022_11_28/models/group_0156.py | 50 +- .../ghec_v2022_11_28/models/group_0157.py | 67 +- .../ghec_v2022_11_28/models/group_0158.py | 53 +- .../ghec_v2022_11_28/models/group_0159.py | 61 +- .../ghec_v2022_11_28/models/group_0160.py | 136 +- .../ghec_v2022_11_28/models/group_0161.py | 53 +- .../ghec_v2022_11_28/models/group_0162.py | 166 +- .../ghec_v2022_11_28/models/group_0163.py | 106 +- .../ghec_v2022_11_28/models/group_0164.py | 104 +- .../ghec_v2022_11_28/models/group_0165.py | 130 +- .../ghec_v2022_11_28/models/group_0166.py | 135 +- .../ghec_v2022_11_28/models/group_0167.py | 90 +- .../ghec_v2022_11_28/models/group_0168.py | 137 +- .../ghec_v2022_11_28/models/group_0169.py | 43 +- .../ghec_v2022_11_28/models/group_0170.py | 45 +- .../ghec_v2022_11_28/models/group_0171.py | 25 +- .../ghec_v2022_11_28/models/group_0172.py | 40 +- .../ghec_v2022_11_28/models/group_0173.py | 72 +- .../ghec_v2022_11_28/models/group_0174.py | 95 +- .../ghec_v2022_11_28/models/group_0175.py | 121 +- .../ghec_v2022_11_28/models/group_0176.py | 214 +- .../ghec_v2022_11_28/models/group_0177.py | 127 +- .../ghec_v2022_11_28/models/group_0178.py | 172 +- .../ghec_v2022_11_28/models/group_0179.py | 54 +- .../ghec_v2022_11_28/models/group_0180.py | 30 +- .../ghec_v2022_11_28/models/group_0181.py | 143 +- .../ghec_v2022_11_28/models/group_0182.py | 25 +- .../ghec_v2022_11_28/models/group_0183.py | 143 +- .../ghec_v2022_11_28/models/group_0184.py | 21 +- .../ghec_v2022_11_28/models/group_0185.py | 143 +- .../ghec_v2022_11_28/models/group_0186.py | 66 +- .../ghec_v2022_11_28/models/group_0187.py | 148 +- .../ghec_v2022_11_28/models/group_0188.py | 165 +- .../ghec_v2022_11_28/models/group_0189.py | 41 +- .../ghec_v2022_11_28/models/group_0190.py | 165 +- .../ghec_v2022_11_28/models/group_0191.py | 58 +- .../ghec_v2022_11_28/models/group_0192.py | 80 +- .../ghec_v2022_11_28/models/group_0193.py | 54 +- .../ghec_v2022_11_28/models/group_0194.py | 28 +- .../ghec_v2022_11_28/models/group_0195.py | 177 +- .../ghec_v2022_11_28/models/group_0196.py | 148 +- .../ghec_v2022_11_28/models/group_0197.py | 190 +- .../ghec_v2022_11_28/models/group_0198.py | 155 +- .../ghec_v2022_11_28/models/group_0199.py | 45 +- .../ghec_v2022_11_28/models/group_0200.py | 59 +- .../ghec_v2022_11_28/models/group_0201.py | 30 +- .../ghec_v2022_11_28/models/group_0202.py | 54 +- .../ghec_v2022_11_28/models/group_0203.py | 31 +- .../ghec_v2022_11_28/models/group_0204.py | 44 +- .../ghec_v2022_11_28/models/group_0205.py | 19 +- .../ghec_v2022_11_28/models/group_0206.py | 16 +- .../ghec_v2022_11_28/models/group_0207.py | 30 +- .../ghec_v2022_11_28/models/group_0208.py | 24 +- .../ghec_v2022_11_28/models/group_0209.py | 31 +- .../ghec_v2022_11_28/models/group_0210.py | 34 +- .../ghec_v2022_11_28/models/group_0211.py | 33 +- .../ghec_v2022_11_28/models/group_0212.py | 48 +- .../ghec_v2022_11_28/models/group_0213.py | 55 +- .../ghec_v2022_11_28/models/group_0214.py | 53 +- .../ghec_v2022_11_28/models/group_0215.py | 73 +- .../ghec_v2022_11_28/models/group_0216.py | 29 +- .../ghec_v2022_11_28/models/group_0217.py | 62 +- .../ghec_v2022_11_28/models/group_0218.py | 55 +- .../ghec_v2022_11_28/models/group_0219.py | 61 +- .../ghec_v2022_11_28/models/group_0220.py | 82 +- .../ghec_v2022_11_28/models/group_0221.py | 127 +- .../ghec_v2022_11_28/models/group_0222.py | 113 +- .../ghec_v2022_11_28/models/group_0223.py | 104 +- .../ghec_v2022_11_28/models/group_0224.py | 105 +- .../ghec_v2022_11_28/models/group_0225.py | 48 +- .../ghec_v2022_11_28/models/group_0226.py | 42 +- .../ghec_v2022_11_28/models/group_0227.py | 18 +- .../ghec_v2022_11_28/models/group_0228.py | 193 +- .../ghec_v2022_11_28/models/group_0229.py | 55 +- .../ghec_v2022_11_28/models/group_0230.py | 228 +- .../ghec_v2022_11_28/models/group_0231.py | 65 +- .../ghec_v2022_11_28/models/group_0232.py | 216 +- .../ghec_v2022_11_28/models/group_0233.py | 51 +- .../ghec_v2022_11_28/models/group_0234.py | 289 +- .../ghec_v2022_11_28/models/group_0235.py | 54 +- .../ghec_v2022_11_28/models/group_0236.py | 127 +- .../ghec_v2022_11_28/models/group_0237.py | 52 +- .../ghec_v2022_11_28/models/group_0238.py | 38 +- .../ghec_v2022_11_28/models/group_0239.py | 53 +- .../ghec_v2022_11_28/models/group_0240.py | 155 +- .../ghec_v2022_11_28/models/group_0241.py | 54 +- .../ghec_v2022_11_28/models/group_0242.py | 158 +- .../ghec_v2022_11_28/models/group_0243.py | 36 +- .../ghec_v2022_11_28/models/group_0244.py | 25 +- .../ghec_v2022_11_28/models/group_0245.py | 19 +- .../ghec_v2022_11_28/models/group_0246.py | 30 +- .../ghec_v2022_11_28/models/group_0247.py | 55 +- .../ghec_v2022_11_28/models/group_0248.py | 45 +- .../ghec_v2022_11_28/models/group_0249.py | 103 +- .../ghec_v2022_11_28/models/group_0250.py | 37 +- .../ghec_v2022_11_28/models/group_0251.py | 94 +- .../ghec_v2022_11_28/models/group_0252.py | 26 +- .../ghec_v2022_11_28/models/group_0253.py | 29 +- .../ghec_v2022_11_28/models/group_0254.py | 19 +- .../ghec_v2022_11_28/models/group_0255.py | 70 +- .../ghec_v2022_11_28/models/group_0256.py | 51 +- .../ghec_v2022_11_28/models/group_0257.py | 155 +- .../ghec_v2022_11_28/models/group_0258.py | 70 +- .../ghec_v2022_11_28/models/group_0259.py | 110 +- .../ghec_v2022_11_28/models/group_0260.py | 49 +- .../ghec_v2022_11_28/models/group_0261.py | 59 +- .../ghec_v2022_11_28/models/group_0262.py | 58 +- .../ghec_v2022_11_28/models/group_0263.py | 115 +- .../ghec_v2022_11_28/models/group_0264.py | 83 +- .../ghec_v2022_11_28/models/group_0265.py | 115 +- .../ghec_v2022_11_28/models/group_0266.py | 59 +- .../ghec_v2022_11_28/models/group_0267.py | 36 +- .../ghec_v2022_11_28/models/group_0268.py | 38 +- .../ghec_v2022_11_28/models/group_0269.py | 53 +- .../ghec_v2022_11_28/models/group_0270.py | 149 +- .../ghec_v2022_11_28/models/group_0271.py | 188 +- .../ghec_v2022_11_28/models/group_0272.py | 149 +- .../ghec_v2022_11_28/models/group_0273.py | 174 +- .../ghec_v2022_11_28/models/group_0274.py | 38 +- .../ghec_v2022_11_28/models/group_0275.py | 28 +- .../ghec_v2022_11_28/models/group_0276.py | 62 +- .../ghec_v2022_11_28/models/group_0277.py | 45 +- .../ghec_v2022_11_28/models/group_0278.py | 70 +- .../ghec_v2022_11_28/models/group_0279.py | 162 +- .../ghec_v2022_11_28/models/group_0280.py | 50 +- .../ghec_v2022_11_28/models/group_0281.py | 171 +- .../ghec_v2022_11_28/models/group_0282.py | 50 +- .../ghec_v2022_11_28/models/group_0283.py | 100 +- .../ghec_v2022_11_28/models/group_0284.py | 54 +- .../ghec_v2022_11_28/models/group_0285.py | 85 +- .../ghec_v2022_11_28/models/group_0286.py | 51 +- .../ghec_v2022_11_28/models/group_0287.py | 106 +- .../ghec_v2022_11_28/models/group_0288.py | 111 +- .../ghec_v2022_11_28/models/group_0289.py | 59 +- .../ghec_v2022_11_28/models/group_0290.py | 97 +- .../ghec_v2022_11_28/models/group_0291.py | 23 +- .../ghec_v2022_11_28/models/group_0292.py | 49 +- .../ghec_v2022_11_28/models/group_0293.py | 24 +- .../ghec_v2022_11_28/models/group_0294.py | 58 +- .../ghec_v2022_11_28/models/group_0295.py | 23 +- .../ghec_v2022_11_28/models/group_0296.py | 39 +- .../ghec_v2022_11_28/models/group_0297.py | 66 +- .../ghec_v2022_11_28/models/group_0298.py | 36 +- .../ghec_v2022_11_28/models/group_0299.py | 77 +- .../ghec_v2022_11_28/models/group_0300.py | 34 +- .../ghec_v2022_11_28/models/group_0301.py | 74 +- .../ghec_v2022_11_28/models/group_0302.py | 71 +- .../ghec_v2022_11_28/models/group_0303.py | 58 +- .../ghec_v2022_11_28/models/group_0304.py | 52 +- .../ghec_v2022_11_28/models/group_0305.py | 29 +- .../ghec_v2022_11_28/models/group_0306.py | 34 +- .../ghec_v2022_11_28/models/group_0307.py | 41 +- .../ghec_v2022_11_28/models/group_0308.py | 35 +- .../ghec_v2022_11_28/models/group_0309.py | 50 +- .../ghec_v2022_11_28/models/group_0310.py | 67 +- .../ghec_v2022_11_28/models/group_0311.py | 66 +- .../ghec_v2022_11_28/models/group_0312.py | 70 +- .../ghec_v2022_11_28/models/group_0313.py | 61 +- .../ghec_v2022_11_28/models/group_0314.py | 38 +- .../ghec_v2022_11_28/models/group_0315.py | 92 +- .../ghec_v2022_11_28/models/group_0316.py | 41 +- .../ghec_v2022_11_28/models/group_0317.py | 100 +- .../ghec_v2022_11_28/models/group_0318.py | 53 +- .../ghec_v2022_11_28/models/group_0319.py | 34 +- .../ghec_v2022_11_28/models/group_0320.py | 61 +- .../ghec_v2022_11_28/models/group_0321.py | 45 +- .../ghec_v2022_11_28/models/group_0322.py | 81 +- .../ghec_v2022_11_28/models/group_0323.py | 54 +- .../ghec_v2022_11_28/models/group_0324.py | 58 +- .../ghec_v2022_11_28/models/group_0325.py | 27 +- .../ghec_v2022_11_28/models/group_0326.py | 29 +- .../ghec_v2022_11_28/models/group_0327.py | 128 +- .../ghec_v2022_11_28/models/group_0328.py | 73 +- .../ghec_v2022_11_28/models/group_0329.py | 123 +- .../ghec_v2022_11_28/models/group_0330.py | 99 +- .../ghec_v2022_11_28/models/group_0331.py | 58 +- .../ghec_v2022_11_28/models/group_0332.py | 83 +- .../ghec_v2022_11_28/models/group_0333.py | 159 +- .../ghec_v2022_11_28/models/group_0334.py | 42 +- .../ghec_v2022_11_28/models/group_0335.py | 154 +- .../ghec_v2022_11_28/models/group_0336.py | 49 +- .../ghec_v2022_11_28/models/group_0337.py | 84 +- .../ghec_v2022_11_28/models/group_0338.py | 74 +- .../ghec_v2022_11_28/models/group_0339.py | 84 +- .../ghec_v2022_11_28/models/group_0340.py | 99 +- .../ghec_v2022_11_28/models/group_0341.py | 29 +- .../ghec_v2022_11_28/models/group_0342.py | 86 +- .../ghec_v2022_11_28/models/group_0343.py | 27 +- .../ghec_v2022_11_28/models/group_0344.py | 20 +- .../ghec_v2022_11_28/models/group_0345.py | 29 +- .../ghec_v2022_11_28/models/group_0346.py | 51 +- .../ghec_v2022_11_28/models/group_0347.py | 24 +- .../ghec_v2022_11_28/models/group_0348.py | 56 +- .../ghec_v2022_11_28/models/group_0349.py | 86 +- .../ghec_v2022_11_28/models/group_0350.py | 35 +- .../ghec_v2022_11_28/models/group_0351.py | 100 +- .../ghec_v2022_11_28/models/group_0352.py | 37 +- .../ghec_v2022_11_28/models/group_0353.py | 50 +- .../ghec_v2022_11_28/models/group_0354.py | 55 +- .../ghec_v2022_11_28/models/group_0355.py | 70 +- .../ghec_v2022_11_28/models/group_0356.py | 43 +- .../ghec_v2022_11_28/models/group_0357.py | 70 +- .../ghec_v2022_11_28/models/group_0358.py | 144 +- .../ghec_v2022_11_28/models/group_0359.py | 40 +- .../ghec_v2022_11_28/models/group_0360.py | 137 +- .../ghec_v2022_11_28/models/group_0361.py | 33 +- .../ghec_v2022_11_28/models/group_0362.py | 28 +- .../ghec_v2022_11_28/models/group_0363.py | 32 +- .../ghec_v2022_11_28/models/group_0364.py | 27 +- .../ghec_v2022_11_28/models/group_0365.py | 25 +- .../ghec_v2022_11_28/models/group_0366.py | 43 +- .../ghec_v2022_11_28/models/group_0367.py | 44 +- .../ghec_v2022_11_28/models/group_0368.py | 44 +- .../ghec_v2022_11_28/models/group_0369.py | 33 +- .../ghec_v2022_11_28/models/group_0370.py | 34 +- .../ghec_v2022_11_28/models/group_0371.py | 33 +- .../ghec_v2022_11_28/models/group_0372.py | 22 +- .../ghec_v2022_11_28/models/group_0373.py | 27 +- .../ghec_v2022_11_28/models/group_0374.py | 65 +- .../ghec_v2022_11_28/models/group_0375.py | 50 +- .../ghec_v2022_11_28/models/group_0376.py | 54 +- .../ghec_v2022_11_28/models/group_0377.py | 94 +- .../ghec_v2022_11_28/models/group_0378.py | 73 +- .../ghec_v2022_11_28/models/group_0379.py | 179 +- .../ghec_v2022_11_28/models/group_0380.py | 75 +- .../ghec_v2022_11_28/models/group_0381.py | 157 +- .../ghec_v2022_11_28/models/group_0382.py | 18 +- .../ghec_v2022_11_28/models/group_0383.py | 31 +- .../ghec_v2022_11_28/models/group_0384.py | 32 +- .../ghec_v2022_11_28/models/group_0385.py | 48 +- .../ghec_v2022_11_28/models/group_0386.py | 22 +- .../ghec_v2022_11_28/models/group_0387.py | 104 +- .../ghec_v2022_11_28/models/group_0388.py | 38 +- .../ghec_v2022_11_28/models/group_0389.py | 85 +- .../ghec_v2022_11_28/models/group_0390.py | 43 +- .../ghec_v2022_11_28/models/group_0391.py | 32 +- .../ghec_v2022_11_28/models/group_0392.py | 94 +- .../ghec_v2022_11_28/models/group_0393.py | 111 +- .../ghec_v2022_11_28/models/group_0394.py | 100 +- .../ghec_v2022_11_28/models/group_0395.py | 126 +- .../ghec_v2022_11_28/models/group_0396.py | 27 +- .../ghec_v2022_11_28/models/group_0397.py | 34 +- .../ghec_v2022_11_28/models/group_0398.py | 24 +- .../ghec_v2022_11_28/models/group_0399.py | 74 +- .../ghec_v2022_11_28/models/group_0400.py | 82 +- .../ghec_v2022_11_28/models/group_0401.py | 75 +- .../ghec_v2022_11_28/models/group_0402.py | 82 +- .../ghec_v2022_11_28/models/group_0403.py | 54 +- .../ghec_v2022_11_28/models/group_0404.py | 33 +- .../ghec_v2022_11_28/models/group_0405.py | 57 +- .../ghec_v2022_11_28/models/group_0406.py | 29 +- .../ghec_v2022_11_28/models/group_0407.py | 14 +- .../ghec_v2022_11_28/models/group_0408.py | 10 +- .../ghec_v2022_11_28/models/group_0409.py | 13 +- .../ghec_v2022_11_28/models/group_0410.py | 13 +- .../ghec_v2022_11_28/models/group_0411.py | 15 +- .../ghec_v2022_11_28/models/group_0412.py | 13 +- .../ghec_v2022_11_28/models/group_0413.py | 16 +- .../ghec_v2022_11_28/models/group_0414.py | 15 +- .../ghec_v2022_11_28/models/group_0415.py | 13 +- .../ghec_v2022_11_28/models/group_0416.py | 14 +- .../ghec_v2022_11_28/models/group_0417.py | 15 +- .../ghec_v2022_11_28/models/group_0418.py | 14 +- .../ghec_v2022_11_28/models/group_0419.py | 14 +- .../ghec_v2022_11_28/models/group_0420.py | 14 +- .../ghec_v2022_11_28/models/group_0421.py | 14 +- .../ghec_v2022_11_28/models/group_0422.py | 14 +- .../ghec_v2022_11_28/models/group_0423.py | 14 +- .../ghec_v2022_11_28/models/group_0424.py | 16 +- .../ghec_v2022_11_28/models/group_0425.py | 16 +- .../ghec_v2022_11_28/models/group_0426.py | 14 +- .../ghec_v2022_11_28/models/group_0427.py | 140 +- .../ghec_v2022_11_28/models/group_0428.py | 76 +- .../ghec_v2022_11_28/models/group_0429.py | 136 +- .../ghec_v2022_11_28/models/group_0430.py | 122 +- .../ghec_v2022_11_28/models/group_0431.py | 22 +- .../ghec_v2022_11_28/models/group_0432.py | 143 +- .../ghec_v2022_11_28/models/group_0433.py | 92 +- .../ghec_v2022_11_28/models/group_0434.py | 61 +- .../ghec_v2022_11_28/models/group_0435.py | 95 +- .../ghec_v2022_11_28/models/group_0436.py | 133 +- .../ghec_v2022_11_28/models/group_0437.py | 31 +- .../ghec_v2022_11_28/models/group_0438.py | 16 +- .../ghec_v2022_11_28/models/group_0439.py | 41 +- .../ghec_v2022_11_28/models/group_0440.py | 29 +- .../ghec_v2022_11_28/models/group_0441.py | 30 +- .../ghec_v2022_11_28/models/group_0442.py | 27 +- .../ghec_v2022_11_28/models/group_0443.py | 23 +- .../ghec_v2022_11_28/models/group_0444.py | 16 +- .../ghec_v2022_11_28/models/group_0445.py | 18 +- .../ghec_v2022_11_28/models/group_0446.py | 14 +- .../ghec_v2022_11_28/models/group_0447.py | 15 +- .../ghec_v2022_11_28/models/group_0448.py | 65 +- .../ghec_v2022_11_28/models/group_0449.py | 39 +- .../ghec_v2022_11_28/models/group_0450.py | 51 +- .../ghec_v2022_11_28/models/group_0451.py | 41 +- .../ghec_v2022_11_28/models/group_0452.py | 78 +- .../ghec_v2022_11_28/models/group_0453.py | 41 +- .../ghec_v2022_11_28/models/group_0454.py | 45 +- .../ghec_v2022_11_28/models/group_0455.py | 44 +- .../ghec_v2022_11_28/models/group_0456.py | 52 +- .../ghec_v2022_11_28/models/group_0457.py | 88 +- .../ghec_v2022_11_28/models/group_0458.py | 40 +- .../ghec_v2022_11_28/models/group_0459.py | 76 +- .../ghec_v2022_11_28/models/group_0460.py | 66 +- .../ghec_v2022_11_28/models/group_0461.py | 140 +- .../ghec_v2022_11_28/models/group_0462.py | 69 +- .../ghec_v2022_11_28/models/group_0463.py | 155 +- .../ghec_v2022_11_28/models/group_0464.py | 63 +- .../ghec_v2022_11_28/models/group_0465.py | 58 +- .../ghec_v2022_11_28/models/group_0466.py | 134 +- .../ghec_v2022_11_28/models/group_0467.py | 52 +- .../ghec_v2022_11_28/models/group_0468.py | 202 +- .../ghec_v2022_11_28/models/group_0469.py | 86 +- .../ghec_v2022_11_28/models/group_0470.py | 153 +- .../ghec_v2022_11_28/models/group_0471.py | 130 +- .../ghec_v2022_11_28/models/group_0472.py | 68 +- .../ghec_v2022_11_28/models/group_0473.py | 92 +- .../ghec_v2022_11_28/models/group_0474.py | 157 +- .../ghec_v2022_11_28/models/group_0475.py | 43 +- .../ghec_v2022_11_28/models/group_0476.py | 202 +- .../ghec_v2022_11_28/models/group_0477.py | 21 +- .../ghec_v2022_11_28/models/group_0478.py | 94 +- .../ghec_v2022_11_28/models/group_0479.py | 23 +- .../ghec_v2022_11_28/models/group_0480.py | 43 +- .../ghec_v2022_11_28/models/group_0481.py | 18 +- .../ghec_v2022_11_28/models/group_0482.py | 28 +- .../ghec_v2022_11_28/models/group_0483.py | 19 +- .../ghec_v2022_11_28/models/group_0484.py | 65 +- .../ghec_v2022_11_28/models/group_0485.py | 41 +- .../ghec_v2022_11_28/models/group_0486.py | 66 +- .../ghec_v2022_11_28/models/group_0487.py | 43 +- .../ghec_v2022_11_28/models/group_0488.py | 372 +- .../ghec_v2022_11_28/models/group_0489.py | 85 +- .../ghec_v2022_11_28/models/group_0490.py | 362 +- .../ghec_v2022_11_28/models/group_0491.py | 319 +- .../ghec_v2022_11_28/models/group_0492.py | 67 +- .../ghec_v2022_11_28/models/group_0493.py | 312 +- .../ghec_v2022_11_28/models/group_0494.py | 67 +- .../ghec_v2022_11_28/models/group_0495.py | 80 +- .../ghec_v2022_11_28/models/group_0496.py | 80 +- .../ghec_v2022_11_28/models/group_0497.py | 24 +- .../ghec_v2022_11_28/models/group_0498.py | 46 +- .../ghec_v2022_11_28/models/group_0499.py | 92 +- .../ghec_v2022_11_28/models/group_0500.py | 147 +- .../ghec_v2022_11_28/models/group_0501.py | 33 +- .../ghec_v2022_11_28/models/group_0502.py | 176 +- .../ghec_v2022_11_28/models/group_0503.py | 88 +- .../ghec_v2022_11_28/models/group_0504.py | 22 +- .../ghec_v2022_11_28/models/group_0505.py | 99 +- .../ghec_v2022_11_28/models/group_0506.py | 29 +- .../ghec_v2022_11_28/models/group_0507.py | 348 +- .../ghec_v2022_11_28/models/group_0508.py | 73 +- .../ghec_v2022_11_28/models/group_0509.py | 135 +- .../ghec_v2022_11_28/models/group_0510.py | 35 +- .../ghec_v2022_11_28/models/group_0511.py | 394 +- .../ghec_v2022_11_28/models/group_0512.py | 73 +- .../ghec_v2022_11_28/models/group_0513.py | 102 +- .../ghec_v2022_11_28/models/group_0514.py | 57 +- .../ghec_v2022_11_28/models/group_0515.py | 100 +- .../ghec_v2022_11_28/models/group_0516.py | 60 +- .../ghec_v2022_11_28/models/group_0517.py | 231 +- .../ghec_v2022_11_28/models/group_0518.py | 48 +- .../ghec_v2022_11_28/models/group_0519.py | 231 +- .../ghec_v2022_11_28/models/group_0520.py | 51 +- .../ghec_v2022_11_28/models/group_0521.py | 73 +- .../ghec_v2022_11_28/models/group_0522.py | 29 +- .../ghec_v2022_11_28/models/group_0523.py | 36 +- .../ghec_v2022_11_28/models/group_0524.py | 41 +- .../ghec_v2022_11_28/models/group_0525.py | 129 +- .../ghec_v2022_11_28/models/group_0526.py | 63 +- .../ghec_v2022_11_28/models/group_0527.py | 1087 +- .../ghec_v2022_11_28/models/group_0528.py | 188 +- .../ghec_v2022_11_28/models/group_0529.py | 1029 +- .../ghec_v2022_11_28/models/group_0530.py | 208 +- .../ghec_v2022_11_28/models/group_0531.py | 148 +- .../ghec_v2022_11_28/models/group_0532.py | 129 +- .../ghec_v2022_11_28/models/group_0533.py | 220 +- .../ghec_v2022_11_28/models/group_0534.py | 143 +- .../ghec_v2022_11_28/models/group_0535.py | 205 +- .../ghec_v2022_11_28/models/group_0536.py | 114 +- .../ghec_v2022_11_28/models/group_0537.py | 159 +- .../ghec_v2022_11_28/models/group_0538.py | 69 +- .../ghec_v2022_11_28/models/group_0539.py | 77 +- .../ghec_v2022_11_28/models/group_0540.py | 23 +- .../ghec_v2022_11_28/models/group_0541.py | 23 +- .../ghec_v2022_11_28/models/group_0542.py | 187 +- .../ghec_v2022_11_28/models/group_0543.py | 29 +- .../ghec_v2022_11_28/models/group_0544.py | 196 +- .../ghec_v2022_11_28/models/group_0545.py | 20 +- .../ghec_v2022_11_28/models/group_0546.py | 25 +- .../ghec_v2022_11_28/models/group_0547.py | 25 +- .../ghec_v2022_11_28/models/group_0548.py | 38 +- .../ghec_v2022_11_28/models/group_0549.py | 52 +- .../ghec_v2022_11_28/models/group_0550.py | 18 +- .../ghec_v2022_11_28/models/group_0551.py | 12 +- .../ghec_v2022_11_28/models/group_0552.py | 37 +- .../ghec_v2022_11_28/models/group_0553.py | 12 +- .../ghec_v2022_11_28/models/group_0554.py | 37 +- .../ghec_v2022_11_28/models/group_0555.py | 12 +- .../ghec_v2022_11_28/models/group_0556.py | 333 +- .../ghec_v2022_11_28/models/group_0557.py | 344 +- .../ghec_v2022_11_28/models/group_0558.py | 138 +- .../ghec_v2022_11_28/models/group_0559.py | 366 +- .../ghec_v2022_11_28/models/group_0560.py | 389 +- .../ghec_v2022_11_28/models/group_0561.py | 144 +- .../ghec_v2022_11_28/models/group_0562.py | 133 +- .../ghec_v2022_11_28/models/group_0563.py | 103 +- .../ghec_v2022_11_28/models/group_0564.py | 139 +- .../ghec_v2022_11_28/models/group_0565.py | 251 +- .../ghec_v2022_11_28/models/group_0566.py | 175 +- .../ghec_v2022_11_28/models/group_0567.py | 131 +- .../ghec_v2022_11_28/models/group_0568.py | 50 +- .../ghec_v2022_11_28/models/group_0569.py | 18 +- .../ghec_v2022_11_28/models/group_0570.py | 32 +- .../ghec_v2022_11_28/models/group_0571.py | 36 +- .../ghec_v2022_11_28/models/group_0572.py | 36 +- .../ghec_v2022_11_28/models/group_0573.py | 48 +- .../ghec_v2022_11_28/models/group_0574.py | 36 +- .../ghec_v2022_11_28/models/group_0575.py | 20 +- .../ghec_v2022_11_28/models/group_0576.py | 20 +- .../ghec_v2022_11_28/models/group_0577.py | 20 +- .../ghec_v2022_11_28/models/group_0578.py | 20 +- .../ghec_v2022_11_28/models/group_0579.py | 20 +- .../ghec_v2022_11_28/models/group_0580.py | 34 +- .../ghec_v2022_11_28/models/group_0581.py | 34 +- .../ghec_v2022_11_28/models/group_0582.py | 589 +- .../ghec_v2022_11_28/models/group_0583.py | 56 +- .../ghec_v2022_11_28/models/group_0584.py | 399 +- .../ghec_v2022_11_28/models/group_0585.py | 474 +- .../ghec_v2022_11_28/models/group_0586.py | 228 +- .../ghec_v2022_11_28/models/group_0587.py | 638 +- .../ghec_v2022_11_28/models/group_0588.py | 488 +- .../ghec_v2022_11_28/models/group_0589.py | 859 +- .../ghec_v2022_11_28/models/group_0590.py | 22 +- .../ghec_v2022_11_28/models/group_0591.py | 61 +- .../ghec_v2022_11_28/models/group_0592.py | 22 +- .../ghec_v2022_11_28/models/group_0593.py | 41 +- .../ghec_v2022_11_28/models/group_0594.py | 22 +- .../ghec_v2022_11_28/models/group_0595.py | 41 +- .../ghec_v2022_11_28/models/group_0596.py | 48 +- .../ghec_v2022_11_28/models/group_0597.py | 22 +- .../ghec_v2022_11_28/models/group_0598.py | 48 +- .../ghec_v2022_11_28/models/group_0599.py | 22 +- .../ghec_v2022_11_28/models/group_0600.py | 20 +- .../ghec_v2022_11_28/models/group_0601.py | 22 +- .../ghec_v2022_11_28/models/group_0602.py | 41 +- .../ghec_v2022_11_28/models/group_0603.py | 36 +- .../ghec_v2022_11_28/models/group_0604.py | 43 +- .../ghec_v2022_11_28/models/group_0605.py | 34 +- .../ghec_v2022_11_28/models/group_0606.py | 22 +- .../ghec_v2022_11_28/models/group_0607.py | 30 +- .../ghec_v2022_11_28/models/group_0608.py | 193 +- .../ghec_v2022_11_28/models/group_0609.py | 192 +- .../ghec_v2022_11_28/models/group_0610.py | 181 +- .../ghec_v2022_11_28/models/group_0611.py | 240 +- .../ghec_v2022_11_28/models/group_0612.py | 21 +- .../ghec_v2022_11_28/models/group_0613.py | 167 +- .../ghec_v2022_11_28/models/group_0614.py | 47 +- .../ghec_v2022_11_28/models/group_0615.py | 52 +- .../ghec_v2022_11_28/models/group_0616.py | 23 +- .../ghec_v2022_11_28/models/group_0617.py | 54 +- .../ghec_v2022_11_28/models/group_0618.py | 50 +- .../ghec_v2022_11_28/models/group_0619.py | 54 +- .../ghec_v2022_11_28/models/group_0620.py | 121 +- .../ghec_v2022_11_28/models/group_0621.py | 18 +- .../ghec_v2022_11_28/models/group_0622.py | 117 +- .../ghec_v2022_11_28/models/group_0623.py | 115 +- .../ghec_v2022_11_28/models/group_0624.py | 186 +- .../ghec_v2022_11_28/models/group_0625.py | 132 +- .../ghec_v2022_11_28/models/group_0626.py | 147 +- .../ghec_v2022_11_28/models/group_0627.py | 155 +- .../ghec_v2022_11_28/models/group_0628.py | 79 +- .../ghec_v2022_11_28/models/group_0629.py | 74 +- .../ghec_v2022_11_28/models/group_0630.py | 53 +- .../ghec_v2022_11_28/models/group_0631.py | 101 +- .../ghec_v2022_11_28/models/group_0632.py | 185 +- .../ghec_v2022_11_28/models/group_0633.py | 175 +- .../ghec_v2022_11_28/models/group_0634.py | 48 +- .../ghec_v2022_11_28/models/group_0635.py | 67 +- .../ghec_v2022_11_28/models/group_0636.py | 186 +- .../ghec_v2022_11_28/models/group_0637.py | 99 +- .../ghec_v2022_11_28/models/group_0638.py | 164 +- .../ghec_v2022_11_28/models/group_0639.py | 37 +- .../ghec_v2022_11_28/models/group_0640.py | 70 +- .../ghec_v2022_11_28/models/group_0641.py | 112 +- .../ghec_v2022_11_28/models/group_0642.py | 115 +- .../ghec_v2022_11_28/models/group_0643.py | 60 +- .../ghec_v2022_11_28/models/group_0645.py | 2 +- .../ghec_v2022_11_28/models/group_0646.py | 2 +- .../ghec_v2022_11_28/models/group_0647.py | 12 +- .../ghec_v2022_11_28/models/group_0648.py | 14 +- .../ghec_v2022_11_28/models/group_0649.py | 10 +- .../ghec_v2022_11_28/models/group_0655.py | 165 +- .../ghec_v2022_11_28/models/group_0656.py | 173 +- .../ghec_v2022_11_28/models/group_0657.py | 49 +- .../ghec_v2022_11_28/models/group_0658.py | 64 +- .../ghec_v2022_11_28/models/group_0659.py | 29 +- .../ghec_v2022_11_28/models/group_0660.py | 228 +- .../ghec_v2022_11_28/models/group_0661.py | 103 +- .../ghec_v2022_11_28/models/group_0662.py | 194 +- .../ghec_v2022_11_28/models/group_0663.py | 62 +- .../ghec_v2022_11_28/models/group_0664.py | 105 +- .../ghec_v2022_11_28/models/group_0665.py | 111 +- .../ghec_v2022_11_28/models/group_0666.py | 54 +- .../ghec_v2022_11_28/models/group_0667.py | 130 +- .../ghec_v2022_11_28/models/group_0668.py | 149 +- .../ghec_v2022_11_28/models/group_0669.py | 49 +- .../ghec_v2022_11_28/models/group_0670.py | 62 +- .../ghec_v2022_11_28/models/group_0671.py | 409 +- .../ghec_v2022_11_28/models/group_0672.py | 418 +- .../ghec_v2022_11_28/models/group_0673.py | 423 +- .../ghec_v2022_11_28/models/group_0674.py | 437 +- .../ghec_v2022_11_28/models/group_0675.py | 423 +- .../ghec_v2022_11_28/models/group_0676.py | 427 +- .../ghec_v2022_11_28/models/group_0677.py | 420 +- .../ghec_v2022_11_28/models/group_0678.py | 427 +- .../ghec_v2022_11_28/models/group_0679.py | 407 +- .../ghec_v2022_11_28/models/group_0680.py | 415 +- .../ghec_v2022_11_28/models/group_0681.py | 410 +- .../ghec_v2022_11_28/models/group_0682.py | 422 +- .../ghec_v2022_11_28/models/group_0683.py | 246 +- .../ghec_v2022_11_28/models/group_0684.py | 519 +- .../ghec_v2022_11_28/models/group_0685.py | 211 +- .../ghec_v2022_11_28/models/group_0686.py | 420 +- .../ghec_v2022_11_28/models/group_0687.py | 22 +- .../ghec_v2022_11_28/models/group_0688.py | 417 +- .../ghec_v2022_11_28/models/group_0689.py | 428 +- .../ghec_v2022_11_28/models/group_0690.py | 247 +- .../ghec_v2022_11_28/models/group_0691.py | 511 +- .../ghec_v2022_11_28/models/group_0692.py | 439 +- .../ghec_v2022_11_28/models/group_0693.py | 28 +- .../ghec_v2022_11_28/models/group_0694.py | 28 +- .../ghec_v2022_11_28/models/group_0695.py | 24 +- .../ghec_v2022_11_28/models/group_0696.py | 409 +- .../ghec_v2022_11_28/models/group_0697.py | 418 +- .../ghec_v2022_11_28/models/group_0698.py | 28 +- .../ghec_v2022_11_28/models/group_0699.py | 35 +- .../ghec_v2022_11_28/models/group_0700.py | 24 +- .../ghec_v2022_11_28/models/group_0701.py | 74 +- .../ghec_v2022_11_28/models/group_0702.py | 86 +- .../ghec_v2022_11_28/models/group_0703.py | 81 +- .../ghec_v2022_11_28/models/group_0704.py | 58 +- .../ghec_v2022_11_28/models/group_0705.py | 60 +- .../ghec_v2022_11_28/models/group_0706.py | 81 +- .../ghec_v2022_11_28/models/group_0707.py | 79 +- .../ghec_v2022_11_28/models/group_0708.py | 80 +- .../ghec_v2022_11_28/models/group_0709.py | 61 +- .../ghec_v2022_11_28/models/group_0710.py | 68 +- .../ghec_v2022_11_28/models/group_0711.py | 32 +- .../ghec_v2022_11_28/models/group_0712.py | 76 +- .../ghec_v2022_11_28/models/group_0713.py | 22 +- .../ghec_v2022_11_28/models/group_0714.py | 71 +- .../ghec_v2022_11_28/models/group_0715.py | 68 +- .../ghec_v2022_11_28/models/group_0716.py | 22 +- .../ghec_v2022_11_28/models/group_0717.py | 22 +- .../ghec_v2022_11_28/models/group_0718.py | 73 +- .../ghec_v2022_11_28/models/group_0719.py | 75 +- .../ghec_v2022_11_28/models/group_0720.py | 33 +- .../ghec_v2022_11_28/models/group_0721.py | 20 +- .../ghec_v2022_11_28/models/group_0722.py | 28 +- .../ghec_v2022_11_28/models/group_0723.py | 23 +- .../ghec_v2022_11_28/models/group_0724.py | 84 +- .../ghec_v2022_11_28/models/group_0725.py | 84 +- .../ghec_v2022_11_28/models/group_0726.py | 44 +- .../ghec_v2022_11_28/models/group_0727.py | 82 +- .../ghec_v2022_11_28/models/group_0728.py | 76 +- .../ghec_v2022_11_28/models/group_0729.py | 102 +- .../ghec_v2022_11_28/models/group_0730.py | 542 +- .../ghec_v2022_11_28/models/group_0731.py | 597 +- .../ghec_v2022_11_28/models/group_0732.py | 111 +- .../ghec_v2022_11_28/models/group_0733.py | 149 +- .../ghec_v2022_11_28/models/group_0734.py | 175 +- .../ghec_v2022_11_28/models/group_0735.py | 99 +- .../ghec_v2022_11_28/models/group_0736.py | 18 +- .../ghec_v2022_11_28/models/group_0737.py | 21 +- .../ghec_v2022_11_28/models/group_0738.py | 29 +- .../ghec_v2022_11_28/models/group_0739.py | 42 +- .../ghec_v2022_11_28/models/group_0740.py | 69 +- .../ghec_v2022_11_28/models/group_0741.py | 62 +- .../ghec_v2022_11_28/models/group_0742.py | 63 +- .../ghec_v2022_11_28/models/group_0743.py | 39 +- .../ghec_v2022_11_28/models/group_0744.py | 85 +- .../ghec_v2022_11_28/models/group_0745.py | 92 +- .../ghec_v2022_11_28/models/group_0746.py | 103 +- .../ghec_v2022_11_28/models/group_0747.py | 77 +- .../ghec_v2022_11_28/models/group_0748.py | 60 +- .../ghec_v2022_11_28/models/group_0749.py | 91 +- .../ghec_v2022_11_28/models/group_0750.py | 26 +- .../ghec_v2022_11_28/models/group_0751.py | 28 +- .../ghec_v2022_11_28/models/group_0752.py | 47 +- .../ghec_v2022_11_28/models/group_0753.py | 43 +- .../ghec_v2022_11_28/models/group_0754.py | 22 +- .../ghec_v2022_11_28/models/group_0755.py | 30 +- .../ghec_v2022_11_28/models/group_0756.py | 68 +- .../ghec_v2022_11_28/models/group_0757.py | 64 +- .../ghec_v2022_11_28/models/group_0758.py | 33 +- .../ghec_v2022_11_28/models/group_0759.py | 19 +- .../ghec_v2022_11_28/models/group_0760.py | 19 +- .../ghec_v2022_11_28/models/group_0761.py | 76 +- .../ghec_v2022_11_28/models/group_0762.py | 82 +- .../ghec_v2022_11_28/models/group_0763.py | 42 +- .../ghec_v2022_11_28/models/group_0764.py | 40 +- .../ghec_v2022_11_28/models/group_0765.py | 16 +- .../ghec_v2022_11_28/models/group_0766.py | 99 +- .../ghec_v2022_11_28/models/group_0767.py | 99 +- .../ghec_v2022_11_28/models/group_0768.py | 44 +- .../ghec_v2022_11_28/models/group_0769.py | 22 +- .../ghec_v2022_11_28/models/group_0770.py | 21 +- .../ghec_v2022_11_28/models/group_0771.py | 16 +- .../ghec_v2022_11_28/models/group_0772.py | 83 +- .../ghec_v2022_11_28/models/group_0773.py | 95 +- .../ghec_v2022_11_28/models/group_0774.py | 1141 +- .../ghec_v2022_11_28/models/group_0775.py | 495 +- .../ghec_v2022_11_28/models/group_0776.py | 350 +- .../ghec_v2022_11_28/models/group_0777.py | 1190 +-- .../ghec_v2022_11_28/models/group_0778.py | 20 +- .../ghec_v2022_11_28/models/group_0779.py | 32 +- .../ghec_v2022_11_28/models/group_0780.py | 1161 +- .../ghec_v2022_11_28/models/group_0781.py | 1172 +- .../ghec_v2022_11_28/models/group_0782.py | 1158 +- .../ghec_v2022_11_28/models/group_0783.py | 433 +- .../ghec_v2022_11_28/models/group_0784.py | 334 +- .../ghec_v2022_11_28/models/group_0785.py | 1136 +- .../ghec_v2022_11_28/models/group_0786.py | 32 +- .../ghec_v2022_11_28/models/group_0787.py | 20 +- .../ghec_v2022_11_28/models/group_0788.py | 20 +- .../ghec_v2022_11_28/models/group_0789.py | 1356 ++- .../ghec_v2022_11_28/models/group_0790.py | 539 +- .../ghec_v2022_11_28/models/group_0791.py | 348 +- .../ghec_v2022_11_28/models/group_0792.py | 516 +- .../ghec_v2022_11_28/models/group_0793.py | 524 +- .../ghec_v2022_11_28/models/group_0794.py | 715 +- .../ghec_v2022_11_28/models/group_0795.py | 402 +- .../ghec_v2022_11_28/models/group_0796.py | 488 +- .../ghec_v2022_11_28/models/group_0797.py | 415 +- .../ghec_v2022_11_28/models/group_0798.py | 596 +- .../ghec_v2022_11_28/models/group_0799.py | 652 +- .../ghec_v2022_11_28/models/group_0800.py | 504 +- .../ghec_v2022_11_28/models/group_0801.py | 797 +- .../ghec_v2022_11_28/models/group_0802.py | 412 +- .../ghec_v2022_11_28/models/group_0803.py | 360 +- .../ghec_v2022_11_28/models/group_0804.py | 385 +- .../ghec_v2022_11_28/models/group_0805.py | 1134 +- .../ghec_v2022_11_28/models/group_0806.py | 393 +- .../ghec_v2022_11_28/models/group_0807.py | 110 +- .../ghec_v2022_11_28/models/group_0808.py | 588 +- .../ghec_v2022_11_28/models/group_0809.py | 640 +- .../ghec_v2022_11_28/models/group_0810.py | 102 +- .../ghec_v2022_11_28/models/group_0811.py | 171 +- .../ghec_v2022_11_28/models/group_0812.py | 229 +- .../ghec_v2022_11_28/models/group_0813.py | 20 +- .../ghec_v2022_11_28/models/group_0814.py | 83 +- .../ghec_v2022_11_28/models/group_0815.py | 211 +- .../ghec_v2022_11_28/models/group_0816.py | 167 +- .../ghec_v2022_11_28/models/group_0817.py | 22 +- .../ghec_v2022_11_28/models/group_0818.py | 22 +- .../ghec_v2022_11_28/models/group_0819.py | 27 +- .../ghec_v2022_11_28/models/group_0820.py | 20 +- .../ghec_v2022_11_28/models/group_0821.py | 26 +- .../ghec_v2022_11_28/models/group_0822.py | 18 +- .../ghec_v2022_11_28/models/group_0823.py | 18 +- .../ghec_v2022_11_28/models/group_0824.py | 45 +- .../ghec_v2022_11_28/models/group_0825.py | 87 +- .../ghec_v2022_11_28/models/group_0826.py | 72 +- .../ghec_v2022_11_28/models/group_0827.py | 18 +- .../ghec_v2022_11_28/models/group_0828.py | 18 +- .../ghec_v2022_11_28/models/group_0829.py | 45 +- .../ghec_v2022_11_28/models/group_0830.py | 53 +- .../ghec_v2022_11_28/models/group_0831.py | 20 +- .../ghec_v2022_11_28/models/group_0832.py | 22 +- .../ghec_v2022_11_28/models/group_0833.py | 68 +- .../ghec_v2022_11_28/models/group_0834.py | 49 +- .../ghec_v2022_11_28/models/group_0835.py | 109 +- .../ghec_v2022_11_28/models/group_0836.py | 183 +- .../ghec_v2022_11_28/models/group_0837.py | 190 +- .../ghec_v2022_11_28/models/group_0838.py | 218 +- .../ghec_v2022_11_28/models/group_0839.py | 105 +- .../ghec_v2022_11_28/models/group_0840.py | 23 +- .../ghec_v2022_11_28/models/group_0841.py | 85 +- .../ghec_v2022_11_28/models/group_0842.py | 85 +- .../ghec_v2022_11_28/models/group_0843.py | 83 +- .../ghec_v2022_11_28/models/group_0844.py | 90 +- .../ghec_v2022_11_28/models/group_0845.py | 28 +- .../ghec_v2022_11_28/models/group_0846.py | 36 +- .../ghec_v2022_11_28/models/group_0847.py | 50 +- .../ghec_v2022_11_28/models/group_0848.py | 20 +- .../ghec_v2022_11_28/models/group_0849.py | 20 +- .../ghec_v2022_11_28/models/group_0850.py | 20 +- .../ghec_v2022_11_28/models/group_0851.py | 58 +- .../ghec_v2022_11_28/models/group_0852.py | 61 +- .../ghec_v2022_11_28/models/group_0853.py | 20 +- .../ghec_v2022_11_28/models/group_0854.py | 22 +- .../ghec_v2022_11_28/models/group_0855.py | 155 +- .../ghec_v2022_11_28/models/group_0856.py | 150 +- .../ghec_v2022_11_28/models/group_0857.py | 44 +- .../ghec_v2022_11_28/models/group_0858.py | 16 +- .../ghec_v2022_11_28/models/group_0859.py | 41 +- .../ghec_v2022_11_28/models/group_0860.py | 20 +- .../ghec_v2022_11_28/models/group_0861.py | 44 +- .../ghec_v2022_11_28/models/group_0862.py | 48 +- .../ghec_v2022_11_28/models/group_0863.py | 22 +- .../ghec_v2022_11_28/models/group_0864.py | 26 +- .../ghec_v2022_11_28/models/group_0865.py | 30 +- .../ghec_v2022_11_28/models/group_0866.py | 22 +- .../ghec_v2022_11_28/models/group_0867.py | 217 +- .../ghec_v2022_11_28/models/group_0868.py | 233 +- .../ghec_v2022_11_28/models/group_0869.py | 21 +- .../ghec_v2022_11_28/models/group_0870.py | 21 +- .../ghec_v2022_11_28/models/group_0871.py | 21 +- .../ghec_v2022_11_28/models/group_0872.py | 52 +- .../ghec_v2022_11_28/models/group_0873.py | 18 +- .../ghec_v2022_11_28/models/group_0874.py | 28 +- .../ghec_v2022_11_28/models/group_0875.py | 18 +- .../ghec_v2022_11_28/models/group_0876.py | 46 +- .../ghec_v2022_11_28/models/group_0877.py | 233 +- .../ghec_v2022_11_28/models/group_0878.py | 80 +- .../ghec_v2022_11_28/models/group_0879.py | 66 +- .../ghec_v2022_11_28/models/group_0880.py | 171 +- .../ghec_v2022_11_28/models/group_0881.py | 183 +- .../ghec_v2022_11_28/models/group_0882.py | 235 +- .../ghec_v2022_11_28/models/group_0883.py | 32 +- .../ghec_v2022_11_28/models/group_0884.py | 102 +- .../ghec_v2022_11_28/models/group_0885.py | 100 +- .../ghec_v2022_11_28/models/group_0886.py | 118 +- .../ghec_v2022_11_28/models/group_0887.py | 144 +- .../ghec_v2022_11_28/models/group_0888.py | 89 +- .../ghec_v2022_11_28/models/group_0889.py | 86 +- .../ghec_v2022_11_28/models/group_0890.py | 108 +- .../ghec_v2022_11_28/models/group_0891.py | 44 +- .../ghec_v2022_11_28/models/group_0892.py | 485 +- .../ghec_v2022_11_28/models/group_0893.py | 179 +- .../ghec_v2022_11_28/models/group_0894.py | 186 +- .../ghec_v2022_11_28/models/group_0895.py | 495 +- .../ghec_v2022_11_28/models/group_0896.py | 39 +- .../ghec_v2022_11_28/models/group_0897.py | 28 +- .../ghec_v2022_11_28/models/group_0898.py | 27 +- .../ghec_v2022_11_28/models/group_0899.py | 28 +- .../ghec_v2022_11_28/models/group_0900.py | 26 +- .../ghec_v2022_11_28/models/group_0901.py | 10 +- .../ghec_v2022_11_28/models/group_0902.py | 10 +- .../ghec_v2022_11_28/models/group_0903.py | 10 +- .../ghec_v2022_11_28/models/group_0904.py | 35 +- .../ghec_v2022_11_28/models/group_0905.py | 41 +- .../ghec_v2022_11_28/models/group_0906.py | 18 +- .../ghec_v2022_11_28/models/group_0907.py | 17 +- .../ghec_v2022_11_28/models/group_0908.py | 53 +- .../ghec_v2022_11_28/models/group_0909.py | 55 +- .../ghec_v2022_11_28/models/group_0910.py | 10 +- .../ghec_v2022_11_28/models/group_0911.py | 12 +- .../ghec_v2022_11_28/models/group_0912.py | 12 +- .../ghec_v2022_11_28/models/group_0913.py | 27 +- .../ghec_v2022_11_28/models/group_0914.py | 26 +- .../ghec_v2022_11_28/models/group_0915.py | 23 +- .../ghec_v2022_11_28/models/group_0916.py | 15 +- .../ghec_v2022_11_28/models/group_0917.py | 46 +- .../ghec_v2022_11_28/models/group_0918.py | 49 +- .../ghec_v2022_11_28/models/group_0919.py | 23 +- .../ghec_v2022_11_28/models/group_0920.py | 55 +- .../ghec_v2022_11_28/models/group_0921.py | 19 +- .../ghec_v2022_11_28/models/group_0922.py | 19 +- .../ghec_v2022_11_28/models/group_0923.py | 21 +- .../ghec_v2022_11_28/models/group_0924.py | 17 +- .../ghec_v2022_11_28/models/group_0925.py | 27 +- .../ghec_v2022_11_28/models/group_0926.py | 29 +- .../ghec_v2022_11_28/models/group_0927.py | 18 +- .../ghec_v2022_11_28/models/group_0928.py | 18 +- .../ghec_v2022_11_28/models/group_0929.py | 11 +- .../ghec_v2022_11_28/models/group_0930.py | 19 +- .../ghec_v2022_11_28/models/group_0931.py | 27 +- .../ghec_v2022_11_28/models/group_0932.py | 25 +- .../ghec_v2022_11_28/models/group_0933.py | 20 +- .../ghec_v2022_11_28/models/group_0934.py | 10 +- .../ghec_v2022_11_28/models/group_0935.py | 58 +- .../ghec_v2022_11_28/models/group_0936.py | 8 +- .../ghec_v2022_11_28/models/group_0937.py | 55 +- .../ghec_v2022_11_28/models/group_0938.py | 12 +- .../ghec_v2022_11_28/models/group_0939.py | 142 +- .../ghec_v2022_11_28/models/group_0940.py | 47 +- .../ghec_v2022_11_28/models/group_0941.py | 128 +- .../ghec_v2022_11_28/models/group_0942.py | 17 +- .../ghec_v2022_11_28/models/group_0943.py | 17 +- .../ghec_v2022_11_28/models/group_0944.py | 53 +- .../ghec_v2022_11_28/models/group_0945.py | 43 +- .../ghec_v2022_11_28/models/group_0946.py | 12 +- .../ghec_v2022_11_28/models/group_0947.py | 19 +- .../ghec_v2022_11_28/models/group_0948.py | 30 +- .../ghec_v2022_11_28/models/group_0949.py | 19 +- .../ghec_v2022_11_28/models/group_0950.py | 32 +- .../ghec_v2022_11_28/models/group_0951.py | 94 +- .../ghec_v2022_11_28/models/group_0952.py | 61 +- .../ghec_v2022_11_28/models/group_0953.py | 93 +- .../ghec_v2022_11_28/models/group_0954.py | 39 +- .../ghec_v2022_11_28/models/group_0955.py | 51 +- .../ghec_v2022_11_28/models/group_0956.py | 39 +- .../ghec_v2022_11_28/models/group_0957.py | 21 +- .../ghec_v2022_11_28/models/group_0958.py | 21 +- .../ghec_v2022_11_28/models/group_0959.py | 21 +- .../ghec_v2022_11_28/models/group_0960.py | 38 +- .../ghec_v2022_11_28/models/group_0961.py | 38 +- .../ghec_v2022_11_28/models/group_0962.py | 45 +- .../ghec_v2022_11_28/models/group_0963.py | 41 +- .../ghec_v2022_11_28/models/group_0964.py | 8 +- .../ghec_v2022_11_28/models/group_0965.py | 12 +- .../ghec_v2022_11_28/models/group_0966.py | 18 +- .../ghec_v2022_11_28/models/group_0967.py | 23 +- .../ghec_v2022_11_28/models/group_0968.py | 21 +- .../ghec_v2022_11_28/models/group_0969.py | 18 +- .../ghec_v2022_11_28/models/group_0970.py | 12 +- .../ghec_v2022_11_28/models/group_0971.py | 15 +- .../ghec_v2022_11_28/models/group_0972.py | 20 +- .../ghec_v2022_11_28/models/group_0973.py | 23 +- .../ghec_v2022_11_28/models/group_0974.py | 127 +- .../ghec_v2022_11_28/models/group_0975.py | 145 +- .../ghec_v2022_11_28/models/group_0976.py | 33 +- .../ghec_v2022_11_28/models/group_0977.py | 53 +- .../ghec_v2022_11_28/models/group_0978.py | 53 +- .../ghec_v2022_11_28/models/group_0979.py | 8 +- .../ghec_v2022_11_28/models/group_0980.py | 12 +- .../ghec_v2022_11_28/models/group_0981.py | 12 +- .../ghec_v2022_11_28/models/group_0982.py | 27 +- .../ghec_v2022_11_28/models/group_0983.py | 26 +- .../ghec_v2022_11_28/models/group_0984.py | 23 +- .../ghec_v2022_11_28/models/group_0985.py | 15 +- .../ghec_v2022_11_28/models/group_0986.py | 51 +- .../ghec_v2022_11_28/models/group_0987.py | 50 +- .../ghec_v2022_11_28/models/group_0988.py | 21 +- .../ghec_v2022_11_28/models/group_0989.py | 49 +- .../ghec_v2022_11_28/models/group_0990.py | 12 +- .../ghec_v2022_11_28/models/group_0991.py | 15 +- .../ghec_v2022_11_28/models/group_0992.py | 15 +- .../ghec_v2022_11_28/models/group_0993.py | 15 +- .../ghec_v2022_11_28/models/group_0994.py | 15 +- .../ghec_v2022_11_28/models/group_0995.py | 29 +- .../ghec_v2022_11_28/models/group_0996.py | 21 +- .../ghec_v2022_11_28/models/group_0997.py | 11 +- .../ghec_v2022_11_28/models/group_0998.py | 39 +- .../ghec_v2022_11_28/models/group_0999.py | 38 +- .../ghec_v2022_11_28/models/group_1000.py | 28 +- .../ghec_v2022_11_28/models/group_1001.py | 15 +- .../ghec_v2022_11_28/models/group_1002.py | 40 +- .../ghec_v2022_11_28/models/group_1003.py | 36 +- .../ghec_v2022_11_28/models/group_1004.py | 17 +- .../ghec_v2022_11_28/models/group_1005.py | 26 +- .../ghec_v2022_11_28/models/group_1006.py | 15 +- .../ghec_v2022_11_28/models/group_1007.py | 22 +- .../ghec_v2022_11_28/models/group_1008.py | 56 +- .../ghec_v2022_11_28/models/group_1009.py | 56 +- .../ghec_v2022_11_28/models/group_1010.py | 12 +- .../ghec_v2022_11_28/models/group_1011.py | 83 +- .../ghec_v2022_11_28/models/group_1012.py | 118 +- .../ghec_v2022_11_28/models/group_1013.py | 53 +- .../ghec_v2022_11_28/models/group_1014.py | 202 +- .../ghec_v2022_11_28/models/group_1015.py | 184 +- .../ghec_v2022_11_28/models/group_1016.py | 195 +- .../ghec_v2022_11_28/models/group_1017.py | 184 +- .../ghec_v2022_11_28/models/group_1018.py | 17 +- .../ghec_v2022_11_28/models/group_1019.py | 17 +- .../ghec_v2022_11_28/models/group_1020.py | 27 +- .../ghec_v2022_11_28/models/group_1021.py | 31 +- .../ghec_v2022_11_28/models/group_1022.py | 25 +- .../ghec_v2022_11_28/models/group_1023.py | 10 +- .../ghec_v2022_11_28/models/group_1024.py | 45 +- .../ghec_v2022_11_28/models/group_1025.py | 40 +- .../ghec_v2022_11_28/models/group_1026.py | 31 +- .../ghec_v2022_11_28/models/group_1027.py | 15 +- .../ghec_v2022_11_28/models/group_1028.py | 18 +- .../ghec_v2022_11_28/models/group_1029.py | 21 +- .../ghec_v2022_11_28/models/group_1030.py | 18 +- .../ghec_v2022_11_28/models/group_1031.py | 18 +- .../ghec_v2022_11_28/models/group_1032.py | 19 +- .../ghec_v2022_11_28/models/group_1033.py | 19 +- .../ghec_v2022_11_28/models/group_1034.py | 18 +- .../ghec_v2022_11_28/models/group_1035.py | 18 +- .../ghec_v2022_11_28/models/group_1036.py | 18 +- .../ghec_v2022_11_28/models/group_1037.py | 18 +- .../ghec_v2022_11_28/models/group_1038.py | 34 +- .../ghec_v2022_11_28/models/group_1039.py | 41 +- .../ghec_v2022_11_28/models/group_1040.py | 31 +- .../ghec_v2022_11_28/models/group_1041.py | 15 +- .../ghec_v2022_11_28/models/group_1042.py | 49 +- .../ghec_v2022_11_28/models/group_1043.py | 27 +- .../ghec_v2022_11_28/models/group_1044.py | 35 +- .../ghec_v2022_11_28/models/group_1045.py | 28 +- .../ghec_v2022_11_28/models/group_1046.py | 15 +- .../ghec_v2022_11_28/models/group_1047.py | 41 +- .../ghec_v2022_11_28/models/group_1048.py | 46 +- .../ghec_v2022_11_28/models/group_1049.py | 20 +- .../ghec_v2022_11_28/models/group_1050.py | 43 +- .../ghec_v2022_11_28/models/group_1051.py | 46 +- .../ghec_v2022_11_28/models/group_1052.py | 18 +- .../ghec_v2022_11_28/models/group_1053.py | 15 +- .../ghec_v2022_11_28/models/group_1054.py | 27 +- .../ghec_v2022_11_28/models/group_1055.py | 20 +- .../ghec_v2022_11_28/models/group_1056.py | 25 +- .../ghec_v2022_11_28/models/group_1057.py | 15 +- .../ghec_v2022_11_28/models/group_1058.py | 55 +- .../ghec_v2022_11_28/models/group_1059.py | 62 +- .../ghec_v2022_11_28/models/group_1060.py | 46 +- .../ghec_v2022_11_28/models/group_1061.py | 56 +- .../ghec_v2022_11_28/models/group_1062.py | 38 +- .../ghec_v2022_11_28/models/group_1063.py | 21 +- .../ghec_v2022_11_28/models/group_1064.py | 19 +- .../ghec_v2022_11_28/models/group_1065.py | 128 +- .../ghec_v2022_11_28/models/group_1066.py | 201 +- .../ghec_v2022_11_28/models/group_1067.py | 59 +- .../ghec_v2022_11_28/models/group_1068.py | 92 +- .../ghec_v2022_11_28/models/group_1069.py | 30 +- .../ghec_v2022_11_28/models/group_1070.py | 17 +- .../ghec_v2022_11_28/models/group_1071.py | 40 +- .../ghec_v2022_11_28/models/group_1072.py | 28 +- .../ghec_v2022_11_28/models/group_1073.py | 33 +- .../ghec_v2022_11_28/models/group_1074.py | 20 +- .../ghec_v2022_11_28/models/group_1075.py | 17 +- .../ghec_v2022_11_28/models/group_1076.py | 14 +- .../ghec_v2022_11_28/models/group_1077.py | 18 +- .../ghec_v2022_11_28/models/group_1078.py | 18 +- .../ghec_v2022_11_28/models/group_1079.py | 16 +- .../ghec_v2022_11_28/models/group_1080.py | 16 +- .../ghec_v2022_11_28/models/group_1081.py | 13 +- .../ghec_v2022_11_28/models/group_1082.py | 16 +- .../ghec_v2022_11_28/models/group_1083.py | 14 +- .../ghec_v2022_11_28/models/group_1084.py | 26 +- .../ghec_v2022_11_28/models/group_1085.py | 28 +- .../ghec_v2022_11_28/models/group_1086.py | 17 +- .../ghec_v2022_11_28/models/group_1087.py | 19 +- .../ghec_v2022_11_28/models/group_1088.py | 20 +- .../ghec_v2022_11_28/models/group_1089.py | 21 +- .../ghec_v2022_11_28/models/group_1090.py | 31 +- .../ghec_v2022_11_28/models/group_1091.py | 21 +- .../ghec_v2022_11_28/models/group_1092.py | 28 +- .../ghec_v2022_11_28/models/group_1093.py | 12 +- .../ghec_v2022_11_28/models/group_1094.py | 17 +- .../ghec_v2022_11_28/models/group_1095.py | 33 +- .../ghec_v2022_11_28/models/group_1096.py | 31 +- .../ghec_v2022_11_28/models/group_1097.py | 15 +- .../ghec_v2022_11_28/models/group_1098.py | 16 +- .../ghec_v2022_11_28/models/group_1099.py | 28 +- .../ghec_v2022_11_28/models/group_1100.py | 28 +- .../ghec_v2022_11_28/models/group_1101.py | 16 +- .../ghec_v2022_11_28/models/group_1102.py | 16 +- .../ghec_v2022_11_28/models/group_1103.py | 13 +- .../ghec_v2022_11_28/models/group_1104.py | 309 +- .../ghec_v2022_11_28/models/group_1105.py | 307 +- .../ghec_v2022_11_28/models/group_1106.py | 17 +- .../ghec_v2022_11_28/models/group_1107.py | 19 +- .../ghec_v2022_11_28/models/group_1108.py | 22 +- .../ghec_v2022_11_28/models/group_1109.py | 12 +- .../ghec_v2022_11_28/models/group_1110.py | 23 +- .../ghec_v2022_11_28/models/group_1111.py | 23 +- .../ghec_v2022_11_28/models/group_1112.py | 29 +- .../ghec_v2022_11_28/models/group_1113.py | 21 +- .../ghec_v2022_11_28/models/group_1114.py | 11 +- .../ghec_v2022_11_28/models/group_1115.py | 19 +- .../ghec_v2022_11_28/models/group_1116.py | 12 +- .../ghec_v2022_11_28/models/group_1117.py | 14 +- .../ghec_v2022_11_28/models/group_1118.py | 12 +- .../ghec_v2022_11_28/models/group_1119.py | 21 +- .../ghec_v2022_11_28/models/group_1120.py | 20 +- .../ghec_v2022_11_28/models/group_1121.py | 8 +- .../ghec_v2022_11_28/models/group_1122.py | 17 +- .../ghec_v2022_11_28/models/group_1123.py | 17 +- .../ghec_v2022_11_28/models/group_1124.py | 17 +- .../ghec_v2022_11_28/models/group_1125.py | 14 +- .../ghec_v2022_11_28/models/group_1126.py | 14 +- .../ghec_v2022_11_28/models/group_1127.py | 40 +- .../ghec_v2022_11_28/models/group_1128.py | 52 +- .../ghec_v2022_11_28/models/group_1129.py | 38 +- .../ghec_v2022_11_28/models/group_1130.py | 53 +- .../ghec_v2022_11_28/models/group_1131.py | 50 +- .../ghec_v2022_11_28/models/group_1132.py | 84 +- .../ghec_v2022_11_28/models/group_1133.py | 89 +- .../ghec_v2022_11_28/models/group_1134.py | 219 +- .../ghec_v2022_11_28/models/group_1135.py | 161 +- .../ghec_v2022_11_28/models/group_1136.py | 93 +- .../ghec_v2022_11_28/models/group_1137.py | 46 +- .../ghec_v2022_11_28/models/group_1138.py | 8 +- .../ghec_v2022_11_28/models/group_1139.py | 9 +- .../ghec_v2022_11_28/models/group_1140.py | 21 +- .../ghec_v2022_11_28/models/group_1141.py | 8 +- .../ghec_v2022_11_28/models/group_1142.py | 8 +- .../ghec_v2022_11_28/models/group_1143.py | 14 +- .../ghec_v2022_11_28/models/group_1144.py | 12 +- .../ghec_v2022_11_28/models/group_1145.py | 8 +- .../ghec_v2022_11_28/models/group_1146.py | 14 +- .../ghec_v2022_11_28/models/group_1147.py | 8 +- .../ghec_v2022_11_28/models/group_1148.py | 8 +- .../ghec_v2022_11_28/models/group_1149.py | 14 +- .../ghec_v2022_11_28/models/group_1150.py | 19 +- .../ghec_v2022_11_28/models/group_1151.py | 23 +- .../ghec_v2022_11_28/models/group_1152.py | 112 +- .../ghec_v2022_11_28/models/group_1153.py | 128 +- .../ghec_v2022_11_28/models/group_1154.py | 37 +- .../ghec_v2022_11_28/models/group_1155.py | 128 +- .../ghec_v2022_11_28/models/group_1156.py | 125 +- .../ghec_v2022_11_28/models/group_1157.py | 35 +- .../ghec_v2022_11_28/models/group_1158.py | 67 +- .../ghec_v2022_11_28/models/group_1159.py | 33 +- .../ghec_v2022_11_28/models/group_1160.py | 34 +- .../ghec_v2022_11_28/models/group_1161.py | 47 +- .../ghec_v2022_11_28/models/group_1162.py | 40 +- .../ghec_v2022_11_28/models/group_1163.py | 16 +- .../ghec_v2022_11_28/models/group_1164.py | 14 +- .../ghec_v2022_11_28/models/group_1165.py | 49 +- .../ghec_v2022_11_28/models/group_1166.py | 58 +- .../ghec_v2022_11_28/models/group_1167.py | 57 +- .../ghec_v2022_11_28/models/group_1168.py | 69 +- .../ghec_v2022_11_28/models/group_1169.py | 30 +- .../ghec_v2022_11_28/models/group_1170.py | 33 +- .../ghec_v2022_11_28/models/group_1171.py | 36 +- .../ghec_v2022_11_28/models/group_1172.py | 37 +- .../ghec_v2022_11_28/models/group_1173.py | 16 +- .../ghec_v2022_11_28/models/group_1174.py | 15 +- .../ghec_v2022_11_28/models/group_1175.py | 16 +- .../ghec_v2022_11_28/models/group_1176.py | 26 +- .../ghec_v2022_11_28/models/group_1177.py | 25 +- .../ghec_v2022_11_28/models/group_1178.py | 67 +- .../ghec_v2022_11_28/models/group_1179.py | 67 +- .../ghec_v2022_11_28/models/group_1180.py | 64 +- .../ghec_v2022_11_28/models/group_1181.py | 57 +- .../ghec_v2022_11_28/models/group_1182.py | 37 +- .../ghec_v2022_11_28/models/group_1183.py | 22 +- .../ghec_v2022_11_28/models/group_1184.py | 59 +- .../ghec_v2022_11_28/models/group_1185.py | 54 +- .../ghec_v2022_11_28/models/group_1186.py | 48 +- .../ghec_v2022_11_28/models/group_1187.py | 41 +- .../ghec_v2022_11_28/models/group_1188.py | 10 +- .../ghec_v2022_11_28/models/group_1189.py | 21 +- .../ghec_v2022_11_28/models/group_1190.py | 35 +- .../ghec_v2022_11_28/models/group_1191.py | 59 +- .../ghec_v2022_11_28/models/group_1192.py | 64 +- .../ghec_v2022_11_28/models/group_1193.py | 35 +- .../ghec_v2022_11_28/models/group_1194.py | 19 +- .../ghec_v2022_11_28/models/group_1195.py | 29 +- .../ghec_v2022_11_28/models/group_1196.py | 17 +- .../ghec_v2022_11_28/models/group_1197.py | 17 +- .../ghec_v2022_11_28/models/group_1198.py | 14 +- .../ghec_v2022_11_28/models/group_1199.py | 14 +- .../ghec_v2022_11_28/models/group_1200.py | 30 +- .../ghec_v2022_11_28/models/group_1201.py | 21 +- .../ghec_v2022_11_28/models/group_1202.py | 74 +- .../ghec_v2022_11_28/models/group_1203.py | 77 +- .../ghec_v2022_11_28/models/group_1204.py | 17 +- .../ghec_v2022_11_28/models/group_1205.py | 44 +- .../ghec_v2022_11_28/models/group_1206.py | 57 +- .../ghec_v2022_11_28/models/group_1207.py | 58 +- .../ghec_v2022_11_28/models/group_1208.py | 51 +- .../ghec_v2022_11_28/models/group_1209.py | 35 +- .../ghec_v2022_11_28/models/group_1210.py | 29 +- .../ghec_v2022_11_28/models/group_1211.py | 21 +- .../ghec_v2022_11_28/models/group_1212.py | 28 +- .../ghec_v2022_11_28/models/group_1213.py | 17 +- .../ghec_v2022_11_28/models/group_1214.py | 16 +- .../ghec_v2022_11_28/models/group_1215.py | 21 +- .../ghec_v2022_11_28/models/group_1216.py | 48 +- .../ghec_v2022_11_28/models/group_1217.py | 59 +- .../ghec_v2022_11_28/models/group_1218.py | 16 +- .../ghec_v2022_11_28/models/group_1219.py | 60 +- .../ghec_v2022_11_28/models/group_1220.py | 55 +- .../ghec_v2022_11_28/models/group_1221.py | 10 +- .../ghec_v2022_11_28/models/group_1222.py | 15 +- .../ghec_v2022_11_28/models/group_1223.py | 18 +- .../ghec_v2022_11_28/models/group_1224.py | 26 +- .../ghec_v2022_11_28/models/group_1225.py | 24 +- .../ghec_v2022_11_28/models/group_1226.py | 18 +- .../ghec_v2022_11_28/models/group_1227.py | 26 +- .../ghec_v2022_11_28/models/group_1228.py | 24 +- .../ghec_v2022_11_28/models/group_1229.py | 19 +- .../ghec_v2022_11_28/models/group_1230.py | 19 +- .../ghec_v2022_11_28/models/group_1231.py | 16 +- .../ghec_v2022_11_28/models/group_1232.py | 18 +- .../ghec_v2022_11_28/models/group_1233.py | 18 +- .../ghec_v2022_11_28/models/group_1234.py | 19 +- .../ghec_v2022_11_28/models/group_1235.py | 21 +- .../ghec_v2022_11_28/models/group_1236.py | 13 +- .../ghec_v2022_11_28/models/group_1237.py | 23 +- .../ghec_v2022_11_28/models/group_1238.py | 21 +- .../ghec_v2022_11_28/models/group_1239.py | 25 +- .../ghec_v2022_11_28/models/group_1240.py | 12 +- .../ghec_v2022_11_28/models/group_1241.py | 23 +- .../ghec_v2022_11_28/models/group_1242.py | 16 +- .../ghec_v2022_11_28/models/group_1243.py | 23 +- .../ghec_v2022_11_28/models/group_1244.py | 38 +- .../ghec_v2022_11_28/models/group_1245.py | 25 +- .../ghec_v2022_11_28/models/group_1246.py | 25 +- .../ghec_v2022_11_28/models/group_1247.py | 20 +- .../ghec_v2022_11_28/models/group_1248.py | 20 +- .../ghec_v2022_11_28/models/group_1249.py | 35 +- .../ghec_v2022_11_28/models/group_1250.py | 21 +- .../ghec_v2022_11_28/models/group_1251.py | 20 +- .../ghec_v2022_11_28/models/group_1252.py | 33 +- .../ghec_v2022_11_28/models/group_1253.py | 33 +- .../ghec_v2022_11_28/models/group_1254.py | 15 +- .../ghec_v2022_11_28/models/group_1255.py | 17 +- .../ghec_v2022_11_28/models/group_1256.py | 42 +- .../ghec_v2022_11_28/models/group_1257.py | 52 +- .../ghec_v2022_11_28/models/group_1258.py | 16 +- .../ghec_v2022_11_28/models/group_1259.py | 31 +- .../ghec_v2022_11_28/models/group_1260.py | 47 +- .../ghec_v2022_11_28/models/group_1261.py | 53 +- .../ghec_v2022_11_28/models/group_1262.py | 51 +- .../ghec_v2022_11_28/models/group_1263.py | 26 +- .../ghec_v2022_11_28/models/group_1264.py | 25 +- .../ghec_v2022_11_28/models/group_1265.py | 8 +- .../ghec_v2022_11_28/models/group_1266.py | 16 +- .../ghec_v2022_11_28/models/group_1267.py | 16 +- .../ghec_v2022_11_28/models/group_1268.py | 16 +- .../ghec_v2022_11_28/models/group_1269.py | 51 +- .../ghec_v2022_11_28/models/group_1270.py | 52 +- .../ghec_v2022_11_28/models/group_1271.py | 17 +- .../ghec_v2022_11_28/models/group_1272.py | 16 +- .../ghec_v2022_11_28/models/group_1273.py | 18 +- .../ghec_v2022_11_28/models/group_1274.py | 14 +- .../ghec_v2022_11_28/models/group_1275.py | 49 +- .../ghec_v2022_11_28/models/group_1276.py | 41 +- .../ghec_v2022_11_28/models/group_1277.py | 25 +- .../ghec_v2022_11_28/models/group_1278.py | 36 +- .../ghec_v2022_11_28/models/group_1279.py | 36 +- .../ghec_v2022_11_28/models/group_1280.py | 82 +- .../ghec_v2022_11_28/models/group_1281.py | 55 +- .../ghec_v2022_11_28/models/group_1282.py | 81 +- .../ghec_v2022_11_28/models/group_1283.py | 27 +- .../ghec_v2022_11_28/models/group_1284.py | 28 +- .../ghec_v2022_11_28/models/group_1285.py | 24 +- .../ghec_v2022_11_28/models/group_1286.py | 19 +- .../ghec_v2022_11_28/models/group_1287.py | 12 +- .../ghec_v2022_11_28/models/group_1288.py | 21 +- .../ghec_v2022_11_28/models/group_1289.py | 26 +- .../ghec_v2022_11_28/models/group_1290.py | 61 +- .../ghec_v2022_11_28/models/group_1291.py | 44 +- .../ghec_v2022_11_28/models/group_1292.py | 88 +- .../ghec_v2022_11_28/models/group_1293.py | 86 +- .../ghec_v2022_11_28/models/group_1294.py | 33 +- .../ghec_v2022_11_28/models/group_1295.py | 20 +- .../ghec_v2022_11_28/models/group_1296.py | 17 +- .../ghec_v2022_11_28/models/group_1297.py | 8 +- .../ghec_v2022_11_28/models/group_1298.py | 22 +- .../ghec_v2022_11_28/models/group_1299.py | 16 +- .../ghec_v2022_11_28/models/group_1300.py | 16 +- .../ghec_v2022_11_28/models/group_1301.py | 13 +- .../ghec_v2022_11_28/models/group_1302.py | 16 +- .../ghec_v2022_11_28/models/group_1303.py | 16 +- .../ghec_v2022_11_28/models/group_1304.py | 31 +- .../ghec_v2022_11_28/models/group_1305.py | 49 +- .../ghec_v2022_11_28/models/group_1306.py | 50 +- .../ghec_v2022_11_28/models/group_1307.py | 58 +- .../ghec_v2022_11_28/models/group_1308.py | 43 +- .../ghec_v2022_11_28/models/group_1309.py | 63 +- .../ghec_v2022_11_28/models/group_1310.py | 46 +- .../ghec_v2022_11_28/models/group_1311.py | 26 +- .../ghec_v2022_11_28/models/group_1312.py | 15 +- .../ghec_v2022_11_28/models/group_1313.py | 21 +- .../ghec_v2022_11_28/models/group_1314.py | 24 +- .../ghec_v2022_11_28/models/group_1315.py | 20 +- .../ghec_v2022_11_28/models/group_1316.py | 19 +- .../ghec_v2022_11_28/models/group_1317.py | 21 +- .../ghec_v2022_11_28/models/group_1318.py | 15 +- .../ghec_v2022_11_28/models/group_1319.py | 27 +- .../ghec_v2022_11_28/models/group_1320.py | 18 +- .../ghec_v2022_11_28/models/group_1321.py | 15 +- .../ghec_v2022_11_28/models/group_1322.py | 18 +- .../ghec_v2022_11_28/models/group_1323.py | 20 +- .../ghec_v2022_11_28/models/group_1324.py | 20 +- .../ghec_v2022_11_28/models/group_1325.py | 42 +- .../ghec_v2022_11_28/models/group_1326.py | 43 +- .../ghec_v2022_11_28/models/group_1327.py | 94 +- .../ghec_v2022_11_28/models/group_1328.py | 100 +- .../ghec_v2022_11_28/models/group_1329.py | 10 +- .../ghec_v2022_11_28/models/group_1330.py | 23 +- .../ghec_v2022_11_28/models/group_1331.py | 22 +- .../ghec_v2022_11_28/models/group_1332.py | 58 +- .../ghec_v2022_11_28/models/group_1333.py | 58 +- .../ghec_v2022_11_28/models/group_1334.py | 12 +- .../ghec_v2022_11_28/models/group_1335.py | 86 +- .../ghec_v2022_11_28/models/group_1336.py | 97 - .../ghec_v2022_11_28/rest/__init__.py | 8 +- .../ghec_v2022_11_28/rest/code_security.py | 33 +- .../versions/ghec_v2022_11_28/rest/issues.py | 20 +- .../rest/private_registries.py | 72 +- .../rest/{projects.py => projects_classic.py} | 202 +- .../versions/ghec_v2022_11_28/rest/repos.py | 8 - .../ghec_v2022_11_28/types/__init__.py | 9470 ++++++++--------- .../ghec_v2022_11_28/types/group_0063.py | 2 + .../ghec_v2022_11_28/types/group_0064.py | 13 +- .../ghec_v2022_11_28/types/group_0065.py | 15 +- .../ghec_v2022_11_28/types/group_0066.py | 26 +- .../ghec_v2022_11_28/types/group_0067.py | 34 +- .../ghec_v2022_11_28/types/group_0068.py | 54 +- .../ghec_v2022_11_28/types/group_0069.py | 54 +- .../ghec_v2022_11_28/types/group_0070.py | 32 +- .../ghec_v2022_11_28/types/group_0071.py | 60 +- .../ghec_v2022_11_28/types/group_0072.py | 209 +- .../ghec_v2022_11_28/types/group_0073.py | 189 +- .../ghec_v2022_11_28/types/group_0074.py | 31 +- .../ghec_v2022_11_28/types/group_0075.py | 77 +- .../ghec_v2022_11_28/types/group_0076.py | 99 +- .../ghec_v2022_11_28/types/group_0077.py | 40 +- .../ghec_v2022_11_28/types/group_0078.py | 38 +- .../ghec_v2022_11_28/types/group_0079.py | 38 +- .../ghec_v2022_11_28/types/group_0080.py | 16 +- .../ghec_v2022_11_28/types/group_0081.py | 25 +- .../ghec_v2022_11_28/types/group_0082.py | 11 +- .../ghec_v2022_11_28/types/group_0083.py | 24 +- .../ghec_v2022_11_28/types/group_0084.py | 28 +- .../ghec_v2022_11_28/types/group_0085.py | 22 +- .../ghec_v2022_11_28/types/group_0086.py | 22 +- .../ghec_v2022_11_28/types/group_0087.py | 21 +- .../ghec_v2022_11_28/types/group_0088.py | 15 +- .../ghec_v2022_11_28/types/group_0089.py | 14 +- .../ghec_v2022_11_28/types/group_0090.py | 20 +- .../ghec_v2022_11_28/types/group_0091.py | 31 +- .../ghec_v2022_11_28/types/group_0092.py | 31 +- .../ghec_v2022_11_28/types/group_0093.py | 19 +- .../ghec_v2022_11_28/types/group_0094.py | 25 +- .../ghec_v2022_11_28/types/group_0095.py | 20 +- .../ghec_v2022_11_28/types/group_0096.py | 26 +- .../ghec_v2022_11_28/types/group_0097.py | 20 +- .../ghec_v2022_11_28/types/group_0098.py | 57 +- .../ghec_v2022_11_28/types/group_0099.py | 45 +- .../ghec_v2022_11_28/types/group_0100.py | 17 +- .../ghec_v2022_11_28/types/group_0101.py | 12 +- .../ghec_v2022_11_28/types/group_0102.py | 15 +- .../ghec_v2022_11_28/types/group_0103.py | 23 +- .../ghec_v2022_11_28/types/group_0104.py | 18 +- .../ghec_v2022_11_28/types/group_0105.py | 28 +- .../ghec_v2022_11_28/types/group_0106.py | 30 +- .../ghec_v2022_11_28/types/group_0107.py | 21 +- .../ghec_v2022_11_28/types/group_0108.py | 21 +- .../ghec_v2022_11_28/types/group_0109.py | 25 +- .../ghec_v2022_11_28/types/group_0110.py | 24 +- .../ghec_v2022_11_28/types/group_0111.py | 17 +- .../ghec_v2022_11_28/types/group_0112.py | 17 +- .../ghec_v2022_11_28/types/group_0113.py | 17 +- .../ghec_v2022_11_28/types/group_0114.py | 17 +- .../ghec_v2022_11_28/types/group_0115.py | 17 +- .../ghec_v2022_11_28/types/group_0116.py | 17 +- .../ghec_v2022_11_28/types/group_0117.py | 17 +- .../ghec_v2022_11_28/types/group_0118.py | 17 +- .../ghec_v2022_11_28/types/group_0119.py | 17 +- .../ghec_v2022_11_28/types/group_0120.py | 19 +- .../ghec_v2022_11_28/types/group_0121.py | 19 +- .../ghec_v2022_11_28/types/group_0122.py | 18 +- .../ghec_v2022_11_28/types/group_0123.py | 18 +- .../ghec_v2022_11_28/types/group_0124.py | 18 +- .../ghec_v2022_11_28/types/group_0125.py | 18 +- .../ghec_v2022_11_28/types/group_0126.py | 18 +- .../ghec_v2022_11_28/types/group_0127.py | 18 +- .../ghec_v2022_11_28/types/group_0128.py | 14 +- .../ghec_v2022_11_28/types/group_0129.py | 16 +- .../ghec_v2022_11_28/types/group_0130.py | 26 +- .../ghec_v2022_11_28/types/group_0131.py | 27 +- .../ghec_v2022_11_28/types/group_0132.py | 28 +- .../ghec_v2022_11_28/types/group_0133.py | 26 +- .../ghec_v2022_11_28/types/group_0134.py | 17 +- .../ghec_v2022_11_28/types/group_0135.py | 19 +- .../ghec_v2022_11_28/types/group_0136.py | 18 +- .../ghec_v2022_11_28/types/group_0137.py | 18 +- .../ghec_v2022_11_28/types/group_0138.py | 20 +- .../ghec_v2022_11_28/types/group_0139.py | 124 +- .../ghec_v2022_11_28/types/group_0140.py | 117 +- .../ghec_v2022_11_28/types/group_0141.py | 18 +- .../ghec_v2022_11_28/types/group_0142.py | 19 +- .../ghec_v2022_11_28/types/group_0143.py | 13 +- .../ghec_v2022_11_28/types/group_0144.py | 11 +- .../ghec_v2022_11_28/types/group_0145.py | 95 +- .../ghec_v2022_11_28/types/group_0146.py | 98 +- .../ghec_v2022_11_28/types/group_0147.py | 47 +- .../ghec_v2022_11_28/types/group_0148.py | 95 +- .../ghec_v2022_11_28/types/group_0149.py | 102 +- .../ghec_v2022_11_28/types/group_0150.py | 58 +- .../ghec_v2022_11_28/types/group_0151.py | 37 +- .../ghec_v2022_11_28/types/group_0152.py | 25 +- .../ghec_v2022_11_28/types/group_0153.py | 20 +- .../ghec_v2022_11_28/types/group_0154.py | 14 +- .../ghec_v2022_11_28/types/group_0155.py | 12 +- .../ghec_v2022_11_28/types/group_0156.py | 31 +- .../ghec_v2022_11_28/types/group_0157.py | 61 +- .../ghec_v2022_11_28/types/group_0158.py | 41 +- .../ghec_v2022_11_28/types/group_0159.py | 48 +- .../ghec_v2022_11_28/types/group_0160.py | 115 +- .../ghec_v2022_11_28/types/group_0161.py | 53 +- .../ghec_v2022_11_28/types/group_0162.py | 141 +- .../ghec_v2022_11_28/types/group_0163.py | 79 +- .../ghec_v2022_11_28/types/group_0164.py | 92 +- .../ghec_v2022_11_28/types/group_0165.py | 98 +- .../ghec_v2022_11_28/types/group_0166.py | 122 +- .../ghec_v2022_11_28/types/group_0167.py | 79 +- .../ghec_v2022_11_28/types/group_0168.py | 117 +- .../ghec_v2022_11_28/types/group_0169.py | 35 +- .../ghec_v2022_11_28/types/group_0170.py | 46 +- .../ghec_v2022_11_28/types/group_0171.py | 22 +- .../ghec_v2022_11_28/types/group_0172.py | 42 +- .../ghec_v2022_11_28/types/group_0173.py | 47 +- .../ghec_v2022_11_28/types/group_0174.py | 82 +- .../ghec_v2022_11_28/types/group_0175.py | 98 +- .../ghec_v2022_11_28/types/group_0176.py | 187 +- .../ghec_v2022_11_28/types/group_0177.py | 105 +- .../ghec_v2022_11_28/types/group_0178.py | 156 +- .../ghec_v2022_11_28/types/group_0179.py | 44 +- .../ghec_v2022_11_28/types/group_0180.py | 23 +- .../ghec_v2022_11_28/types/group_0181.py | 101 +- .../ghec_v2022_11_28/types/group_0182.py | 17 +- .../ghec_v2022_11_28/types/group_0183.py | 105 +- .../ghec_v2022_11_28/types/group_0184.py | 17 +- .../ghec_v2022_11_28/types/group_0185.py | 84 +- .../ghec_v2022_11_28/types/group_0186.py | 47 +- .../ghec_v2022_11_28/types/group_0187.py | 86 +- .../ghec_v2022_11_28/types/group_0188.py | 94 +- .../ghec_v2022_11_28/types/group_0189.py | 24 +- .../ghec_v2022_11_28/types/group_0190.py | 99 +- .../ghec_v2022_11_28/types/group_0191.py | 32 +- .../ghec_v2022_11_28/types/group_0192.py | 42 +- .../ghec_v2022_11_28/types/group_0193.py | 28 +- .../ghec_v2022_11_28/types/group_0194.py | 18 +- .../ghec_v2022_11_28/types/group_0195.py | 99 +- .../ghec_v2022_11_28/types/group_0196.py | 81 +- .../ghec_v2022_11_28/types/group_0197.py | 107 +- .../ghec_v2022_11_28/types/group_0198.py | 86 +- .../ghec_v2022_11_28/types/group_0199.py | 36 +- .../ghec_v2022_11_28/types/group_0200.py | 52 +- .../ghec_v2022_11_28/types/group_0201.py | 24 +- .../ghec_v2022_11_28/types/group_0202.py | 49 +- .../ghec_v2022_11_28/types/group_0203.py | 20 +- .../ghec_v2022_11_28/types/group_0204.py | 41 +- .../ghec_v2022_11_28/types/group_0205.py | 14 +- .../ghec_v2022_11_28/types/group_0206.py | 13 +- .../ghec_v2022_11_28/types/group_0207.py | 17 +- .../ghec_v2022_11_28/types/group_0208.py | 19 +- .../ghec_v2022_11_28/types/group_0209.py | 24 +- .../ghec_v2022_11_28/types/group_0210.py | 28 +- .../ghec_v2022_11_28/types/group_0211.py | 24 +- .../ghec_v2022_11_28/types/group_0212.py | 39 +- .../ghec_v2022_11_28/types/group_0213.py | 52 +- .../ghec_v2022_11_28/types/group_0214.py | 34 +- .../ghec_v2022_11_28/types/group_0215.py | 46 +- .../ghec_v2022_11_28/types/group_0216.py | 16 +- .../ghec_v2022_11_28/types/group_0217.py | 39 +- .../ghec_v2022_11_28/types/group_0218.py | 45 +- .../ghec_v2022_11_28/types/group_0219.py | 51 +- .../ghec_v2022_11_28/types/group_0220.py | 61 +- .../ghec_v2022_11_28/types/group_0221.py | 97 +- .../ghec_v2022_11_28/types/group_0222.py | 85 +- .../ghec_v2022_11_28/types/group_0223.py | 79 +- .../ghec_v2022_11_28/types/group_0224.py | 84 +- .../ghec_v2022_11_28/types/group_0225.py | 42 +- .../ghec_v2022_11_28/types/group_0226.py | 37 +- .../ghec_v2022_11_28/types/group_0227.py | 14 +- .../ghec_v2022_11_28/types/group_0228.py | 150 +- .../ghec_v2022_11_28/types/group_0229.py | 29 +- .../ghec_v2022_11_28/types/group_0230.py | 176 +- .../ghec_v2022_11_28/types/group_0231.py | 39 +- .../ghec_v2022_11_28/types/group_0232.py | 153 +- .../ghec_v2022_11_28/types/group_0233.py | 46 +- .../ghec_v2022_11_28/types/group_0234.py | 207 +- .../ghec_v2022_11_28/types/group_0235.py | 49 +- .../ghec_v2022_11_28/types/group_0236.py | 112 +- .../ghec_v2022_11_28/types/group_0237.py | 38 +- .../ghec_v2022_11_28/types/group_0238.py | 30 +- .../ghec_v2022_11_28/types/group_0239.py | 48 +- .../ghec_v2022_11_28/types/group_0240.py | 119 +- .../ghec_v2022_11_28/types/group_0241.py | 47 +- .../ghec_v2022_11_28/types/group_0242.py | 118 +- .../ghec_v2022_11_28/types/group_0243.py | 30 +- .../ghec_v2022_11_28/types/group_0244.py | 22 +- .../ghec_v2022_11_28/types/group_0245.py | 16 +- .../ghec_v2022_11_28/types/group_0246.py | 26 +- .../ghec_v2022_11_28/types/group_0247.py | 46 +- .../ghec_v2022_11_28/types/group_0248.py | 39 +- .../ghec_v2022_11_28/types/group_0249.py | 69 +- .../ghec_v2022_11_28/types/group_0250.py | 28 +- .../ghec_v2022_11_28/types/group_0251.py | 62 +- .../ghec_v2022_11_28/types/group_0252.py | 18 +- .../ghec_v2022_11_28/types/group_0253.py | 19 +- .../ghec_v2022_11_28/types/group_0254.py | 13 +- .../ghec_v2022_11_28/types/group_0255.py | 55 +- .../ghec_v2022_11_28/types/group_0256.py | 43 +- .../ghec_v2022_11_28/types/group_0257.py | 97 +- .../ghec_v2022_11_28/types/group_0258.py | 51 +- .../ghec_v2022_11_28/types/group_0259.py | 70 +- .../ghec_v2022_11_28/types/group_0260.py | 34 +- .../ghec_v2022_11_28/types/group_0261.py | 44 +- .../ghec_v2022_11_28/types/group_0262.py | 52 +- .../ghec_v2022_11_28/types/group_0263.py | 93 +- .../ghec_v2022_11_28/types/group_0264.py | 70 +- .../ghec_v2022_11_28/types/group_0265.py | 97 +- .../ghec_v2022_11_28/types/group_0266.py | 47 +- .../ghec_v2022_11_28/types/group_0267.py | 33 +- .../ghec_v2022_11_28/types/group_0268.py | 30 +- .../ghec_v2022_11_28/types/group_0269.py | 34 +- .../ghec_v2022_11_28/types/group_0270.py | 139 +- .../ghec_v2022_11_28/types/group_0271.py | 137 +- .../ghec_v2022_11_28/types/group_0272.py | 128 +- .../ghec_v2022_11_28/types/group_0273.py | 133 +- .../ghec_v2022_11_28/types/group_0274.py | 32 +- .../ghec_v2022_11_28/types/group_0275.py | 30 +- .../ghec_v2022_11_28/types/group_0276.py | 57 +- .../ghec_v2022_11_28/types/group_0277.py | 42 +- .../ghec_v2022_11_28/types/group_0278.py | 61 +- .../ghec_v2022_11_28/types/group_0279.py | 130 +- .../ghec_v2022_11_28/types/group_0280.py | 42 +- .../ghec_v2022_11_28/types/group_0281.py | 137 +- .../ghec_v2022_11_28/types/group_0282.py | 44 +- .../ghec_v2022_11_28/types/group_0283.py | 75 +- .../ghec_v2022_11_28/types/group_0284.py | 42 +- .../ghec_v2022_11_28/types/group_0285.py | 68 +- .../ghec_v2022_11_28/types/group_0286.py | 44 +- .../ghec_v2022_11_28/types/group_0287.py | 86 +- .../ghec_v2022_11_28/types/group_0288.py | 67 +- .../ghec_v2022_11_28/types/group_0289.py | 44 +- .../ghec_v2022_11_28/types/group_0290.py | 62 +- .../ghec_v2022_11_28/types/group_0291.py | 15 +- .../ghec_v2022_11_28/types/group_0292.py | 27 +- .../ghec_v2022_11_28/types/group_0293.py | 16 +- .../ghec_v2022_11_28/types/group_0294.py | 33 +- .../ghec_v2022_11_28/types/group_0295.py | 17 +- .../ghec_v2022_11_28/types/group_0296.py | 27 +- .../ghec_v2022_11_28/types/group_0297.py | 46 +- .../ghec_v2022_11_28/types/group_0298.py | 20 +- .../ghec_v2022_11_28/types/group_0299.py | 61 +- .../ghec_v2022_11_28/types/group_0300.py | 15 +- .../ghec_v2022_11_28/types/group_0301.py | 61 +- .../ghec_v2022_11_28/types/group_0302.py | 43 +- .../ghec_v2022_11_28/types/group_0303.py | 42 +- .../ghec_v2022_11_28/types/group_0304.py | 38 +- .../ghec_v2022_11_28/types/group_0305.py | 17 +- .../ghec_v2022_11_28/types/group_0306.py | 27 +- .../ghec_v2022_11_28/types/group_0307.py | 30 +- .../ghec_v2022_11_28/types/group_0308.py | 31 +- .../ghec_v2022_11_28/types/group_0309.py | 40 +- .../ghec_v2022_11_28/types/group_0310.py | 60 +- .../ghec_v2022_11_28/types/group_0311.py | 54 +- .../ghec_v2022_11_28/types/group_0312.py | 60 +- .../ghec_v2022_11_28/types/group_0313.py | 54 +- .../ghec_v2022_11_28/types/group_0314.py | 28 +- .../ghec_v2022_11_28/types/group_0315.py | 80 +- .../ghec_v2022_11_28/types/group_0316.py | 32 +- .../ghec_v2022_11_28/types/group_0317.py | 88 +- .../ghec_v2022_11_28/types/group_0318.py | 47 +- .../ghec_v2022_11_28/types/group_0319.py | 31 +- .../ghec_v2022_11_28/types/group_0320.py | 54 +- .../ghec_v2022_11_28/types/group_0321.py | 41 +- .../ghec_v2022_11_28/types/group_0322.py | 74 +- .../ghec_v2022_11_28/types/group_0323.py | 49 +- .../ghec_v2022_11_28/types/group_0324.py | 52 +- .../ghec_v2022_11_28/types/group_0325.py | 23 +- .../ghec_v2022_11_28/types/group_0326.py | 25 +- .../ghec_v2022_11_28/types/group_0327.py | 115 +- .../ghec_v2022_11_28/types/group_0328.py | 61 +- .../ghec_v2022_11_28/types/group_0329.py | 111 +- .../ghec_v2022_11_28/types/group_0330.py | 71 +- .../ghec_v2022_11_28/types/group_0331.py | 42 +- .../ghec_v2022_11_28/types/group_0332.py | 69 +- .../ghec_v2022_11_28/types/group_0333.py | 81 +- .../ghec_v2022_11_28/types/group_0334.py | 36 +- .../ghec_v2022_11_28/types/group_0335.py | 81 +- .../ghec_v2022_11_28/types/group_0336.py | 33 +- .../ghec_v2022_11_28/types/group_0337.py | 59 +- .../ghec_v2022_11_28/types/group_0338.py | 67 +- .../ghec_v2022_11_28/types/group_0339.py | 57 +- .../ghec_v2022_11_28/types/group_0340.py | 71 +- .../ghec_v2022_11_28/types/group_0341.py | 21 +- .../ghec_v2022_11_28/types/group_0342.py | 66 +- .../ghec_v2022_11_28/types/group_0343.py | 18 +- .../ghec_v2022_11_28/types/group_0344.py | 15 +- .../ghec_v2022_11_28/types/group_0345.py | 18 +- .../ghec_v2022_11_28/types/group_0346.py | 34 +- .../ghec_v2022_11_28/types/group_0347.py | 14 +- .../ghec_v2022_11_28/types/group_0348.py | 36 +- .../ghec_v2022_11_28/types/group_0349.py | 72 +- .../ghec_v2022_11_28/types/group_0350.py | 29 +- .../ghec_v2022_11_28/types/group_0351.py | 76 +- .../ghec_v2022_11_28/types/group_0352.py | 29 +- .../ghec_v2022_11_28/types/group_0353.py | 45 +- .../ghec_v2022_11_28/types/group_0354.py | 45 +- .../ghec_v2022_11_28/types/group_0355.py | 67 +- .../ghec_v2022_11_28/types/group_0356.py | 28 +- .../ghec_v2022_11_28/types/group_0357.py | 66 +- .../ghec_v2022_11_28/types/group_0358.py | 112 +- .../ghec_v2022_11_28/types/group_0359.py | 36 +- .../ghec_v2022_11_28/types/group_0360.py | 105 +- .../ghec_v2022_11_28/types/group_0361.py | 27 +- .../ghec_v2022_11_28/types/group_0362.py | 25 +- .../ghec_v2022_11_28/types/group_0363.py | 26 +- .../ghec_v2022_11_28/types/group_0364.py | 24 +- .../ghec_v2022_11_28/types/group_0365.py | 21 +- .../ghec_v2022_11_28/types/group_0366.py | 26 +- .../ghec_v2022_11_28/types/group_0367.py | 27 +- .../ghec_v2022_11_28/types/group_0368.py | 27 +- .../ghec_v2022_11_28/types/group_0369.py | 17 +- .../ghec_v2022_11_28/types/group_0370.py | 28 +- .../ghec_v2022_11_28/types/group_0371.py | 28 +- .../ghec_v2022_11_28/types/group_0372.py | 18 +- .../ghec_v2022_11_28/types/group_0373.py | 20 +- .../ghec_v2022_11_28/types/group_0374.py | 57 +- .../ghec_v2022_11_28/types/group_0375.py | 46 +- .../ghec_v2022_11_28/types/group_0376.py | 52 +- .../ghec_v2022_11_28/types/group_0377.py | 81 +- .../ghec_v2022_11_28/types/group_0378.py | 62 +- .../ghec_v2022_11_28/types/group_0379.py | 119 +- .../ghec_v2022_11_28/types/group_0380.py | 65 +- .../ghec_v2022_11_28/types/group_0381.py | 102 +- .../ghec_v2022_11_28/types/group_0382.py | 16 +- .../ghec_v2022_11_28/types/group_0383.py | 29 +- .../ghec_v2022_11_28/types/group_0384.py | 29 +- .../ghec_v2022_11_28/types/group_0385.py | 45 +- .../ghec_v2022_11_28/types/group_0386.py | 19 +- .../ghec_v2022_11_28/types/group_0387.py | 74 +- .../ghec_v2022_11_28/types/group_0388.py | 35 +- .../ghec_v2022_11_28/types/group_0389.py | 59 +- .../ghec_v2022_11_28/types/group_0390.py | 34 +- .../ghec_v2022_11_28/types/group_0391.py | 39 +- .../ghec_v2022_11_28/types/group_0392.py | 84 +- .../ghec_v2022_11_28/types/group_0393.py | 95 +- .../ghec_v2022_11_28/types/group_0394.py | 90 +- .../ghec_v2022_11_28/types/group_0395.py | 95 +- .../ghec_v2022_11_28/types/group_0396.py | 24 +- .../ghec_v2022_11_28/types/group_0397.py | 30 +- .../ghec_v2022_11_28/types/group_0398.py | 22 +- .../ghec_v2022_11_28/types/group_0399.py | 63 +- .../ghec_v2022_11_28/types/group_0400.py | 55 +- .../ghec_v2022_11_28/types/group_0401.py | 64 +- .../ghec_v2022_11_28/types/group_0402.py | 54 +- .../ghec_v2022_11_28/types/group_0403.py | 55 +- .../ghec_v2022_11_28/types/group_0404.py | 30 +- .../ghec_v2022_11_28/types/group_0405.py | 47 +- .../ghec_v2022_11_28/types/group_0406.py | 18 +- .../ghec_v2022_11_28/types/group_0407.py | 12 +- .../ghec_v2022_11_28/types/group_0408.py | 8 +- .../ghec_v2022_11_28/types/group_0409.py | 11 +- .../ghec_v2022_11_28/types/group_0410.py | 11 +- .../ghec_v2022_11_28/types/group_0411.py | 11 +- .../ghec_v2022_11_28/types/group_0412.py | 11 +- .../ghec_v2022_11_28/types/group_0413.py | 12 +- .../ghec_v2022_11_28/types/group_0414.py | 11 +- .../ghec_v2022_11_28/types/group_0415.py | 11 +- .../ghec_v2022_11_28/types/group_0416.py | 12 +- .../ghec_v2022_11_28/types/group_0417.py | 11 +- .../ghec_v2022_11_28/types/group_0418.py | 12 +- .../ghec_v2022_11_28/types/group_0419.py | 12 +- .../ghec_v2022_11_28/types/group_0420.py | 12 +- .../ghec_v2022_11_28/types/group_0421.py | 12 +- .../ghec_v2022_11_28/types/group_0422.py | 12 +- .../ghec_v2022_11_28/types/group_0423.py | 12 +- .../ghec_v2022_11_28/types/group_0424.py | 12 +- .../ghec_v2022_11_28/types/group_0425.py | 12 +- .../ghec_v2022_11_28/types/group_0426.py | 12 +- .../ghec_v2022_11_28/types/group_0427.py | 81 +- .../ghec_v2022_11_28/types/group_0428.py | 67 +- .../ghec_v2022_11_28/types/group_0429.py | 76 +- .../ghec_v2022_11_28/types/group_0430.py | 94 +- .../ghec_v2022_11_28/types/group_0431.py | 13 +- .../ghec_v2022_11_28/types/group_0432.py | 89 +- .../ghec_v2022_11_28/types/group_0433.py | 57 +- .../ghec_v2022_11_28/types/group_0434.py | 40 +- .../ghec_v2022_11_28/types/group_0435.py | 60 +- .../ghec_v2022_11_28/types/group_0436.py | 82 +- .../ghec_v2022_11_28/types/group_0437.py | 28 +- .../ghec_v2022_11_28/types/group_0438.py | 14 +- .../ghec_v2022_11_28/types/group_0439.py | 34 +- .../ghec_v2022_11_28/types/group_0440.py | 26 +- .../ghec_v2022_11_28/types/group_0441.py | 23 +- .../ghec_v2022_11_28/types/group_0442.py | 24 +- .../ghec_v2022_11_28/types/group_0443.py | 20 +- .../ghec_v2022_11_28/types/group_0444.py | 14 +- .../ghec_v2022_11_28/types/group_0445.py | 15 +- .../ghec_v2022_11_28/types/group_0446.py | 12 +- .../ghec_v2022_11_28/types/group_0447.py | 13 +- .../ghec_v2022_11_28/types/group_0448.py | 33 +- .../ghec_v2022_11_28/types/group_0449.py | 20 +- .../ghec_v2022_11_28/types/group_0450.py | 29 +- .../ghec_v2022_11_28/types/group_0451.py | 28 +- .../ghec_v2022_11_28/types/group_0452.py | 47 +- .../ghec_v2022_11_28/types/group_0453.py | 24 +- .../ghec_v2022_11_28/types/group_0454.py | 26 +- .../ghec_v2022_11_28/types/group_0455.py | 40 +- .../ghec_v2022_11_28/types/group_0456.py | 31 +- .../ghec_v2022_11_28/types/group_0457.py | 52 +- .../ghec_v2022_11_28/types/group_0458.py | 22 +- .../ghec_v2022_11_28/types/group_0459.py | 39 +- .../ghec_v2022_11_28/types/group_0460.py | 42 +- .../ghec_v2022_11_28/types/group_0461.py | 105 +- .../ghec_v2022_11_28/types/group_0462.py | 44 +- .../ghec_v2022_11_28/types/group_0463.py | 120 +- .../ghec_v2022_11_28/types/group_0464.py | 52 +- .../ghec_v2022_11_28/types/group_0465.py | 49 +- .../ghec_v2022_11_28/types/group_0466.py | 115 +- .../ghec_v2022_11_28/types/group_0467.py | 45 +- .../ghec_v2022_11_28/types/group_0468.py | 191 +- .../ghec_v2022_11_28/types/group_0469.py | 74 +- .../ghec_v2022_11_28/types/group_0470.py | 143 +- .../ghec_v2022_11_28/types/group_0471.py | 116 +- .../ghec_v2022_11_28/types/group_0472.py | 62 +- .../ghec_v2022_11_28/types/group_0473.py | 71 +- .../ghec_v2022_11_28/types/group_0474.py | 92 +- .../ghec_v2022_11_28/types/group_0475.py | 23 +- .../ghec_v2022_11_28/types/group_0476.py | 125 +- .../ghec_v2022_11_28/types/group_0477.py | 19 +- .../ghec_v2022_11_28/types/group_0478.py | 78 +- .../ghec_v2022_11_28/types/group_0479.py | 20 +- .../ghec_v2022_11_28/types/group_0480.py | 38 +- .../ghec_v2022_11_28/types/group_0481.py | 15 +- .../ghec_v2022_11_28/types/group_0482.py | 24 +- .../ghec_v2022_11_28/types/group_0483.py | 17 +- .../ghec_v2022_11_28/types/group_0484.py | 31 +- .../ghec_v2022_11_28/types/group_0485.py | 27 +- .../ghec_v2022_11_28/types/group_0486.py | 35 +- .../ghec_v2022_11_28/types/group_0487.py | 35 +- .../ghec_v2022_11_28/types/group_0488.py | 279 +- .../ghec_v2022_11_28/types/group_0489.py | 65 +- .../ghec_v2022_11_28/types/group_0490.py | 280 +- .../ghec_v2022_11_28/types/group_0491.py | 215 +- .../ghec_v2022_11_28/types/group_0492.py | 47 +- .../ghec_v2022_11_28/types/group_0493.py | 210 +- .../ghec_v2022_11_28/types/group_0494.py | 61 +- .../ghec_v2022_11_28/types/group_0495.py | 62 +- .../ghec_v2022_11_28/types/group_0496.py | 74 +- .../ghec_v2022_11_28/types/group_0497.py | 21 +- .../ghec_v2022_11_28/types/group_0498.py | 40 +- .../ghec_v2022_11_28/types/group_0499.py | 82 +- .../ghec_v2022_11_28/types/group_0500.py | 125 +- .../ghec_v2022_11_28/types/group_0501.py | 25 +- .../ghec_v2022_11_28/types/group_0502.py | 150 +- .../ghec_v2022_11_28/types/group_0503.py | 78 +- .../ghec_v2022_11_28/types/group_0504.py | 13 +- .../ghec_v2022_11_28/types/group_0505.py | 84 +- .../ghec_v2022_11_28/types/group_0506.py | 26 +- .../ghec_v2022_11_28/types/group_0507.py | 292 +- .../ghec_v2022_11_28/types/group_0508.py | 56 +- .../ghec_v2022_11_28/types/group_0509.py | 98 +- .../ghec_v2022_11_28/types/group_0510.py | 32 +- .../ghec_v2022_11_28/types/group_0511.py | 345 +- .../ghec_v2022_11_28/types/group_0512.py | 65 +- .../ghec_v2022_11_28/types/group_0513.py | 70 +- .../ghec_v2022_11_28/types/group_0514.py | 50 +- .../ghec_v2022_11_28/types/group_0515.py | 77 +- .../ghec_v2022_11_28/types/group_0516.py | 58 +- .../ghec_v2022_11_28/types/group_0517.py | 198 +- .../ghec_v2022_11_28/types/group_0518.py | 33 +- .../ghec_v2022_11_28/types/group_0519.py | 194 +- .../ghec_v2022_11_28/types/group_0520.py | 46 +- .../ghec_v2022_11_28/types/group_0521.py | 68 +- .../ghec_v2022_11_28/types/group_0522.py | 26 +- .../ghec_v2022_11_28/types/group_0523.py | 29 +- .../ghec_v2022_11_28/types/group_0524.py | 34 +- .../ghec_v2022_11_28/types/group_0525.py | 87 +- .../ghec_v2022_11_28/types/group_0526.py | 34 +- .../ghec_v2022_11_28/types/group_0527.py | 895 +- .../ghec_v2022_11_28/types/group_0528.py | 134 +- .../ghec_v2022_11_28/types/group_0529.py | 827 +- .../ghec_v2022_11_28/types/group_0530.py | 149 +- .../ghec_v2022_11_28/types/group_0531.py | 123 +- .../ghec_v2022_11_28/types/group_0532.py | 114 +- .../ghec_v2022_11_28/types/group_0533.py | 161 +- .../ghec_v2022_11_28/types/group_0534.py | 128 +- .../ghec_v2022_11_28/types/group_0535.py | 151 +- .../ghec_v2022_11_28/types/group_0536.py | 99 +- .../ghec_v2022_11_28/types/group_0537.py | 127 +- .../ghec_v2022_11_28/types/group_0538.py | 47 +- .../ghec_v2022_11_28/types/group_0539.py | 65 +- .../ghec_v2022_11_28/types/group_0540.py | 18 +- .../ghec_v2022_11_28/types/group_0541.py | 18 +- .../ghec_v2022_11_28/types/group_0542.py | 166 +- .../ghec_v2022_11_28/types/group_0543.py | 22 +- .../ghec_v2022_11_28/types/group_0544.py | 170 +- .../ghec_v2022_11_28/types/group_0545.py | 18 +- .../ghec_v2022_11_28/types/group_0546.py | 20 +- .../ghec_v2022_11_28/types/group_0547.py | 20 +- .../ghec_v2022_11_28/types/group_0548.py | 24 +- .../ghec_v2022_11_28/types/group_0549.py | 27 +- .../ghec_v2022_11_28/types/group_0550.py | 16 +- .../ghec_v2022_11_28/types/group_0551.py | 8 +- .../ghec_v2022_11_28/types/group_0552.py | 29 +- .../ghec_v2022_11_28/types/group_0553.py | 8 +- .../ghec_v2022_11_28/types/group_0554.py | 29 +- .../ghec_v2022_11_28/types/group_0555.py | 8 +- .../ghec_v2022_11_28/types/group_0556.py | 263 +- .../ghec_v2022_11_28/types/group_0557.py | 261 +- .../ghec_v2022_11_28/types/group_0558.py | 102 +- .../ghec_v2022_11_28/types/group_0559.py | 267 +- .../ghec_v2022_11_28/types/group_0560.py | 298 +- .../ghec_v2022_11_28/types/group_0561.py | 122 +- .../ghec_v2022_11_28/types/group_0562.py | 116 +- .../ghec_v2022_11_28/types/group_0563.py | 86 +- .../ghec_v2022_11_28/types/group_0564.py | 114 +- .../ghec_v2022_11_28/types/group_0565.py | 166 +- .../ghec_v2022_11_28/types/group_0566.py | 113 +- .../ghec_v2022_11_28/types/group_0567.py | 101 +- .../ghec_v2022_11_28/types/group_0568.py | 34 +- .../ghec_v2022_11_28/types/group_0569.py | 16 +- .../ghec_v2022_11_28/types/group_0570.py | 26 +- .../ghec_v2022_11_28/types/group_0571.py | 23 +- .../ghec_v2022_11_28/types/group_0572.py | 22 +- .../ghec_v2022_11_28/types/group_0573.py | 27 +- .../ghec_v2022_11_28/types/group_0574.py | 22 +- .../ghec_v2022_11_28/types/group_0575.py | 18 +- .../ghec_v2022_11_28/types/group_0576.py | 18 +- .../ghec_v2022_11_28/types/group_0577.py | 18 +- .../ghec_v2022_11_28/types/group_0578.py | 18 +- .../ghec_v2022_11_28/types/group_0579.py | 18 +- .../ghec_v2022_11_28/types/group_0580.py | 22 +- .../ghec_v2022_11_28/types/group_0581.py | 22 +- .../ghec_v2022_11_28/types/group_0582.py | 545 +- .../ghec_v2022_11_28/types/group_0583.py | 37 +- .../ghec_v2022_11_28/types/group_0584.py | 335 +- .../ghec_v2022_11_28/types/group_0585.py | 423 +- .../ghec_v2022_11_28/types/group_0586.py | 188 +- .../ghec_v2022_11_28/types/group_0587.py | 542 +- .../ghec_v2022_11_28/types/group_0588.py | 452 +- .../ghec_v2022_11_28/types/group_0589.py | 764 +- .../ghec_v2022_11_28/types/group_0590.py | 20 +- .../ghec_v2022_11_28/types/group_0591.py | 54 +- .../ghec_v2022_11_28/types/group_0592.py | 20 +- .../ghec_v2022_11_28/types/group_0593.py | 37 +- .../ghec_v2022_11_28/types/group_0594.py | 20 +- .../ghec_v2022_11_28/types/group_0595.py | 37 +- .../ghec_v2022_11_28/types/group_0596.py | 43 +- .../ghec_v2022_11_28/types/group_0597.py | 20 +- .../ghec_v2022_11_28/types/group_0598.py | 43 +- .../ghec_v2022_11_28/types/group_0599.py | 20 +- .../ghec_v2022_11_28/types/group_0600.py | 18 +- .../ghec_v2022_11_28/types/group_0601.py | 20 +- .../ghec_v2022_11_28/types/group_0602.py | 26 +- .../ghec_v2022_11_28/types/group_0603.py | 24 +- .../ghec_v2022_11_28/types/group_0604.py | 28 +- .../ghec_v2022_11_28/types/group_0605.py | 22 +- .../ghec_v2022_11_28/types/group_0606.py | 20 +- .../ghec_v2022_11_28/types/group_0607.py | 23 +- .../ghec_v2022_11_28/types/group_0608.py | 158 +- .../ghec_v2022_11_28/types/group_0609.py | 154 +- .../ghec_v2022_11_28/types/group_0610.py | 150 +- .../ghec_v2022_11_28/types/group_0611.py | 200 +- .../ghec_v2022_11_28/types/group_0612.py | 18 +- .../ghec_v2022_11_28/types/group_0613.py | 129 +- .../ghec_v2022_11_28/types/group_0614.py | 30 +- .../ghec_v2022_11_28/types/group_0615.py | 39 +- .../ghec_v2022_11_28/types/group_0616.py | 21 +- .../ghec_v2022_11_28/types/group_0617.py | 40 +- .../ghec_v2022_11_28/types/group_0618.py | 40 +- .../ghec_v2022_11_28/types/group_0619.py | 40 +- .../ghec_v2022_11_28/types/group_0620.py | 97 +- .../ghec_v2022_11_28/types/group_0621.py | 16 +- .../ghec_v2022_11_28/types/group_0622.py | 98 +- .../ghec_v2022_11_28/types/group_0623.py | 95 +- .../ghec_v2022_11_28/types/group_0624.py | 166 +- .../ghec_v2022_11_28/types/group_0625.py | 108 +- .../ghec_v2022_11_28/types/group_0626.py | 127 +- .../ghec_v2022_11_28/types/group_0627.py | 128 +- .../ghec_v2022_11_28/types/group_0628.py | 69 +- .../ghec_v2022_11_28/types/group_0629.py | 57 +- .../ghec_v2022_11_28/types/group_0630.py | 47 +- .../ghec_v2022_11_28/types/group_0631.py | 85 +- .../ghec_v2022_11_28/types/group_0632.py | 162 +- .../ghec_v2022_11_28/types/group_0633.py | 156 +- .../ghec_v2022_11_28/types/group_0634.py | 42 +- .../ghec_v2022_11_28/types/group_0635.py | 55 +- .../ghec_v2022_11_28/types/group_0636.py | 166 +- .../ghec_v2022_11_28/types/group_0637.py | 74 +- .../ghec_v2022_11_28/types/group_0638.py | 131 +- .../ghec_v2022_11_28/types/group_0639.py | 31 +- .../ghec_v2022_11_28/types/group_0640.py | 58 +- .../ghec_v2022_11_28/types/group_0641.py | 101 +- .../ghec_v2022_11_28/types/group_0642.py | 108 +- .../ghec_v2022_11_28/types/group_0643.py | 51 +- .../ghec_v2022_11_28/types/group_0645.py | 2 +- .../ghec_v2022_11_28/types/group_0646.py | 2 +- .../ghec_v2022_11_28/types/group_0647.py | 12 +- .../ghec_v2022_11_28/types/group_0648.py | 12 +- .../ghec_v2022_11_28/types/group_0649.py | 8 +- .../ghec_v2022_11_28/types/group_0655.py | 147 +- .../ghec_v2022_11_28/types/group_0656.py | 156 +- .../ghec_v2022_11_28/types/group_0657.py | 44 +- .../ghec_v2022_11_28/types/group_0658.py | 55 +- .../ghec_v2022_11_28/types/group_0659.py | 24 +- .../ghec_v2022_11_28/types/group_0660.py | 191 +- .../ghec_v2022_11_28/types/group_0661.py | 76 +- .../ghec_v2022_11_28/types/group_0662.py | 161 +- .../ghec_v2022_11_28/types/group_0663.py | 54 +- .../ghec_v2022_11_28/types/group_0664.py | 96 +- .../ghec_v2022_11_28/types/group_0665.py | 106 +- .../ghec_v2022_11_28/types/group_0666.py | 46 +- .../ghec_v2022_11_28/types/group_0667.py | 116 +- .../ghec_v2022_11_28/types/group_0668.py | 130 +- .../ghec_v2022_11_28/types/group_0669.py | 41 +- .../ghec_v2022_11_28/types/group_0670.py | 52 +- .../ghec_v2022_11_28/types/group_0671.py | 354 +- .../ghec_v2022_11_28/types/group_0672.py | 366 +- .../ghec_v2022_11_28/types/group_0673.py | 362 +- .../ghec_v2022_11_28/types/group_0674.py | 374 +- .../ghec_v2022_11_28/types/group_0675.py | 357 +- .../ghec_v2022_11_28/types/group_0676.py | 365 +- .../ghec_v2022_11_28/types/group_0677.py | 355 +- .../ghec_v2022_11_28/types/group_0678.py | 363 +- .../ghec_v2022_11_28/types/group_0679.py | 356 +- .../ghec_v2022_11_28/types/group_0680.py | 368 +- .../ghec_v2022_11_28/types/group_0681.py | 356 +- .../ghec_v2022_11_28/types/group_0682.py | 366 +- .../ghec_v2022_11_28/types/group_0683.py | 200 +- .../ghec_v2022_11_28/types/group_0684.py | 439 +- .../ghec_v2022_11_28/types/group_0685.py | 171 +- .../ghec_v2022_11_28/types/group_0686.py | 364 +- .../ghec_v2022_11_28/types/group_0687.py | 20 +- .../ghec_v2022_11_28/types/group_0688.py | 354 +- .../ghec_v2022_11_28/types/group_0689.py | 366 +- .../ghec_v2022_11_28/types/group_0690.py | 204 +- .../ghec_v2022_11_28/types/group_0691.py | 436 +- .../ghec_v2022_11_28/types/group_0692.py | 392 +- .../ghec_v2022_11_28/types/group_0693.py | 22 +- .../ghec_v2022_11_28/types/group_0694.py | 24 +- .../ghec_v2022_11_28/types/group_0695.py | 22 +- .../ghec_v2022_11_28/types/group_0696.py | 356 +- .../ghec_v2022_11_28/types/group_0697.py | 366 +- .../ghec_v2022_11_28/types/group_0698.py | 24 +- .../ghec_v2022_11_28/types/group_0699.py | 26 +- .../ghec_v2022_11_28/types/group_0700.py | 20 +- .../ghec_v2022_11_28/types/group_0701.py | 54 +- .../ghec_v2022_11_28/types/group_0702.py | 61 +- .../ghec_v2022_11_28/types/group_0703.py | 72 +- .../ghec_v2022_11_28/types/group_0704.py | 48 +- .../ghec_v2022_11_28/types/group_0705.py | 52 +- .../ghec_v2022_11_28/types/group_0706.py | 74 +- .../ghec_v2022_11_28/types/group_0707.py | 64 +- .../ghec_v2022_11_28/types/group_0708.py | 60 +- .../ghec_v2022_11_28/types/group_0709.py | 47 +- .../ghec_v2022_11_28/types/group_0710.py | 58 +- .../ghec_v2022_11_28/types/group_0711.py | 28 +- .../ghec_v2022_11_28/types/group_0712.py | 60 +- .../ghec_v2022_11_28/types/group_0713.py | 17 +- .../ghec_v2022_11_28/types/group_0714.py | 55 +- .../ghec_v2022_11_28/types/group_0715.py | 56 +- .../ghec_v2022_11_28/types/group_0716.py | 20 +- .../ghec_v2022_11_28/types/group_0717.py | 20 +- .../ghec_v2022_11_28/types/group_0718.py | 54 +- .../ghec_v2022_11_28/types/group_0719.py | 56 +- .../ghec_v2022_11_28/types/group_0720.py | 26 +- .../ghec_v2022_11_28/types/group_0721.py | 18 +- .../ghec_v2022_11_28/types/group_0722.py | 22 +- .../ghec_v2022_11_28/types/group_0723.py | 20 +- .../ghec_v2022_11_28/types/group_0724.py | 75 +- .../ghec_v2022_11_28/types/group_0725.py | 75 +- .../ghec_v2022_11_28/types/group_0726.py | 37 +- .../ghec_v2022_11_28/types/group_0727.py | 54 +- .../ghec_v2022_11_28/types/group_0728.py | 53 +- .../ghec_v2022_11_28/types/group_0729.py | 80 +- .../ghec_v2022_11_28/types/group_0730.py | 476 +- .../ghec_v2022_11_28/types/group_0731.py | 504 +- .../ghec_v2022_11_28/types/group_0732.py | 78 +- .../ghec_v2022_11_28/types/group_0733.py | 145 +- .../ghec_v2022_11_28/types/group_0734.py | 155 +- .../ghec_v2022_11_28/types/group_0735.py | 80 +- .../ghec_v2022_11_28/types/group_0736.py | 16 +- .../ghec_v2022_11_28/types/group_0737.py | 18 +- .../ghec_v2022_11_28/types/group_0738.py | 20 +- .../ghec_v2022_11_28/types/group_0739.py | 26 +- .../ghec_v2022_11_28/types/group_0740.py | 48 +- .../ghec_v2022_11_28/types/group_0741.py | 45 +- .../ghec_v2022_11_28/types/group_0742.py | 42 +- .../ghec_v2022_11_28/types/group_0743.py | 35 +- .../ghec_v2022_11_28/types/group_0744.py | 73 +- .../ghec_v2022_11_28/types/group_0745.py | 80 +- .../ghec_v2022_11_28/types/group_0746.py | 85 +- .../ghec_v2022_11_28/types/group_0747.py | 52 +- .../ghec_v2022_11_28/types/group_0748.py | 52 +- .../ghec_v2022_11_28/types/group_0749.py | 68 +- .../ghec_v2022_11_28/types/group_0750.py | 22 +- .../ghec_v2022_11_28/types/group_0751.py | 22 +- .../ghec_v2022_11_28/types/group_0752.py | 39 +- .../ghec_v2022_11_28/types/group_0753.py | 37 +- .../ghec_v2022_11_28/types/group_0754.py | 20 +- .../ghec_v2022_11_28/types/group_0755.py | 24 +- .../ghec_v2022_11_28/types/group_0756.py | 50 +- .../ghec_v2022_11_28/types/group_0757.py | 48 +- .../ghec_v2022_11_28/types/group_0758.py | 22 +- .../ghec_v2022_11_28/types/group_0759.py | 17 +- .../ghec_v2022_11_28/types/group_0760.py | 17 +- .../ghec_v2022_11_28/types/group_0761.py | 65 +- .../ghec_v2022_11_28/types/group_0762.py | 69 +- .../ghec_v2022_11_28/types/group_0763.py | 38 +- .../ghec_v2022_11_28/types/group_0764.py | 36 +- .../ghec_v2022_11_28/types/group_0765.py | 14 +- .../ghec_v2022_11_28/types/group_0766.py | 100 +- .../ghec_v2022_11_28/types/group_0767.py | 98 +- .../ghec_v2022_11_28/types/group_0768.py | 40 +- .../ghec_v2022_11_28/types/group_0769.py | 18 +- .../ghec_v2022_11_28/types/group_0770.py | 16 +- .../ghec_v2022_11_28/types/group_0771.py | 14 +- .../ghec_v2022_11_28/types/group_0772.py | 70 +- .../ghec_v2022_11_28/types/group_0773.py | 74 +- .../ghec_v2022_11_28/types/group_0774.py | 941 +- .../ghec_v2022_11_28/types/group_0775.py | 365 +- .../ghec_v2022_11_28/types/group_0776.py | 268 +- .../ghec_v2022_11_28/types/group_0777.py | 981 +- .../ghec_v2022_11_28/types/group_0778.py | 18 +- .../ghec_v2022_11_28/types/group_0779.py | 24 +- .../ghec_v2022_11_28/types/group_0780.py | 959 +- .../ghec_v2022_11_28/types/group_0781.py | 964 +- .../ghec_v2022_11_28/types/group_0782.py | 950 +- .../ghec_v2022_11_28/types/group_0783.py | 334 +- .../ghec_v2022_11_28/types/group_0784.py | 260 +- .../ghec_v2022_11_28/types/group_0785.py | 935 +- .../ghec_v2022_11_28/types/group_0786.py | 24 +- .../ghec_v2022_11_28/types/group_0787.py | 18 +- .../ghec_v2022_11_28/types/group_0788.py | 18 +- .../ghec_v2022_11_28/types/group_0789.py | 1091 +- .../ghec_v2022_11_28/types/group_0790.py | 398 +- .../ghec_v2022_11_28/types/group_0791.py | 259 +- .../ghec_v2022_11_28/types/group_0792.py | 400 +- .../ghec_v2022_11_28/types/group_0793.py | 372 +- .../ghec_v2022_11_28/types/group_0794.py | 514 +- .../ghec_v2022_11_28/types/group_0795.py | 312 +- .../ghec_v2022_11_28/types/group_0796.py | 376 +- .../ghec_v2022_11_28/types/group_0797.py | 321 +- .../ghec_v2022_11_28/types/group_0798.py | 459 +- .../ghec_v2022_11_28/types/group_0799.py | 448 +- .../ghec_v2022_11_28/types/group_0800.py | 400 +- .../ghec_v2022_11_28/types/group_0801.py | 555 +- .../ghec_v2022_11_28/types/group_0802.py | 318 +- .../ghec_v2022_11_28/types/group_0803.py | 262 +- .../ghec_v2022_11_28/types/group_0804.py | 286 +- .../ghec_v2022_11_28/types/group_0805.py | 880 +- .../ghec_v2022_11_28/types/group_0806.py | 298 +- .../ghec_v2022_11_28/types/group_0807.py | 78 +- .../ghec_v2022_11_28/types/group_0808.py | 502 +- .../ghec_v2022_11_28/types/group_0809.py | 528 +- .../ghec_v2022_11_28/types/group_0810.py | 72 +- .../ghec_v2022_11_28/types/group_0811.py | 155 +- .../ghec_v2022_11_28/types/group_0812.py | 181 +- .../ghec_v2022_11_28/types/group_0813.py | 18 +- .../ghec_v2022_11_28/types/group_0814.py | 61 +- .../ghec_v2022_11_28/types/group_0815.py | 184 +- .../ghec_v2022_11_28/types/group_0816.py | 150 +- .../ghec_v2022_11_28/types/group_0817.py | 20 +- .../ghec_v2022_11_28/types/group_0818.py | 20 +- .../ghec_v2022_11_28/types/group_0819.py | 20 +- .../ghec_v2022_11_28/types/group_0820.py | 18 +- .../ghec_v2022_11_28/types/group_0821.py | 20 +- .../ghec_v2022_11_28/types/group_0822.py | 16 +- .../ghec_v2022_11_28/types/group_0823.py | 16 +- .../ghec_v2022_11_28/types/group_0824.py | 35 +- .../ghec_v2022_11_28/types/group_0825.py | 66 +- .../ghec_v2022_11_28/types/group_0826.py | 59 +- .../ghec_v2022_11_28/types/group_0827.py | 16 +- .../ghec_v2022_11_28/types/group_0828.py | 16 +- .../ghec_v2022_11_28/types/group_0829.py | 40 +- .../ghec_v2022_11_28/types/group_0830.py | 44 +- .../ghec_v2022_11_28/types/group_0831.py | 18 +- .../ghec_v2022_11_28/types/group_0832.py | 20 +- .../ghec_v2022_11_28/types/group_0833.py | 46 +- .../ghec_v2022_11_28/types/group_0834.py | 39 +- .../ghec_v2022_11_28/types/group_0835.py | 90 +- .../ghec_v2022_11_28/types/group_0836.py | 161 +- .../ghec_v2022_11_28/types/group_0837.py | 176 +- .../ghec_v2022_11_28/types/group_0838.py | 178 +- .../ghec_v2022_11_28/types/group_0839.py | 98 +- .../ghec_v2022_11_28/types/group_0840.py | 18 +- .../ghec_v2022_11_28/types/group_0841.py | 81 +- .../ghec_v2022_11_28/types/group_0842.py | 81 +- .../ghec_v2022_11_28/types/group_0843.py | 81 +- .../ghec_v2022_11_28/types/group_0844.py | 83 +- .../ghec_v2022_11_28/types/group_0845.py | 20 +- .../ghec_v2022_11_28/types/group_0846.py | 22 +- .../ghec_v2022_11_28/types/group_0847.py | 24 +- .../ghec_v2022_11_28/types/group_0848.py | 18 +- .../ghec_v2022_11_28/types/group_0849.py | 18 +- .../ghec_v2022_11_28/types/group_0850.py | 18 +- .../ghec_v2022_11_28/types/group_0851.py | 38 +- .../ghec_v2022_11_28/types/group_0852.py | 38 +- .../ghec_v2022_11_28/types/group_0853.py | 18 +- .../ghec_v2022_11_28/types/group_0854.py | 20 +- .../ghec_v2022_11_28/types/group_0855.py | 120 +- .../ghec_v2022_11_28/types/group_0856.py | 118 +- .../ghec_v2022_11_28/types/group_0857.py | 20 +- .../ghec_v2022_11_28/types/group_0858.py | 11 +- .../ghec_v2022_11_28/types/group_0859.py | 23 +- .../ghec_v2022_11_28/types/group_0860.py | 18 +- .../ghec_v2022_11_28/types/group_0861.py | 35 +- .../ghec_v2022_11_28/types/group_0862.py | 36 +- .../ghec_v2022_11_28/types/group_0863.py | 20 +- .../ghec_v2022_11_28/types/group_0864.py | 21 +- .../ghec_v2022_11_28/types/group_0865.py | 25 +- .../ghec_v2022_11_28/types/group_0866.py | 20 +- .../ghec_v2022_11_28/types/group_0867.py | 196 +- .../ghec_v2022_11_28/types/group_0868.py | 197 +- .../ghec_v2022_11_28/types/group_0869.py | 18 +- .../ghec_v2022_11_28/types/group_0870.py | 18 +- .../ghec_v2022_11_28/types/group_0871.py | 18 +- .../ghec_v2022_11_28/types/group_0872.py | 27 +- .../ghec_v2022_11_28/types/group_0873.py | 16 +- .../ghec_v2022_11_28/types/group_0874.py | 22 +- .../ghec_v2022_11_28/types/group_0875.py | 16 +- .../ghec_v2022_11_28/types/group_0876.py | 35 +- .../ghec_v2022_11_28/types/group_0877.py | 193 +- .../ghec_v2022_11_28/types/group_0878.py | 56 +- .../ghec_v2022_11_28/types/group_0879.py | 52 +- .../ghec_v2022_11_28/types/group_0880.py | 120 +- .../ghec_v2022_11_28/types/group_0881.py | 122 +- .../ghec_v2022_11_28/types/group_0882.py | 193 +- .../ghec_v2022_11_28/types/group_0883.py | 30 +- .../ghec_v2022_11_28/types/group_0884.py | 76 +- .../ghec_v2022_11_28/types/group_0885.py | 72 +- .../ghec_v2022_11_28/types/group_0886.py | 94 +- .../ghec_v2022_11_28/types/group_0887.py | 106 +- .../ghec_v2022_11_28/types/group_0888.py | 61 +- .../ghec_v2022_11_28/types/group_0889.py | 76 +- .../ghec_v2022_11_28/types/group_0890.py | 88 +- .../ghec_v2022_11_28/types/group_0891.py | 36 +- .../ghec_v2022_11_28/types/group_0892.py | 430 +- .../ghec_v2022_11_28/types/group_0893.py | 140 +- .../ghec_v2022_11_28/types/group_0894.py | 150 +- .../ghec_v2022_11_28/types/group_0895.py | 427 +- .../ghec_v2022_11_28/types/group_0896.py | 26 +- .../ghec_v2022_11_28/types/group_0897.py | 16 +- .../ghec_v2022_11_28/types/group_0898.py | 14 +- .../ghec_v2022_11_28/types/group_0899.py | 14 +- .../ghec_v2022_11_28/types/group_0900.py | 14 +- .../ghec_v2022_11_28/types/group_0901.py | 6 +- .../ghec_v2022_11_28/types/group_0902.py | 6 +- .../ghec_v2022_11_28/types/group_0903.py | 6 +- .../ghec_v2022_11_28/types/group_0904.py | 15 +- .../ghec_v2022_11_28/types/group_0905.py | 17 +- .../ghec_v2022_11_28/types/group_0906.py | 13 +- .../ghec_v2022_11_28/types/group_0907.py | 16 +- .../ghec_v2022_11_28/types/group_0908.py | 31 +- .../ghec_v2022_11_28/types/group_0909.py | 31 +- .../ghec_v2022_11_28/types/group_0910.py | 8 +- .../ghec_v2022_11_28/types/group_0911.py | 10 +- .../ghec_v2022_11_28/types/group_0912.py | 12 +- .../ghec_v2022_11_28/types/group_0913.py | 14 +- .../ghec_v2022_11_28/types/group_0914.py | 13 +- .../ghec_v2022_11_28/types/group_0915.py | 15 +- .../ghec_v2022_11_28/types/group_0916.py | 11 +- .../ghec_v2022_11_28/types/group_0917.py | 31 +- .../ghec_v2022_11_28/types/group_0918.py | 31 +- .../ghec_v2022_11_28/types/group_0919.py | 14 +- .../ghec_v2022_11_28/types/group_0920.py | 23 +- .../ghec_v2022_11_28/types/group_0921.py | 11 +- .../ghec_v2022_11_28/types/group_0922.py | 11 +- .../ghec_v2022_11_28/types/group_0923.py | 13 +- .../ghec_v2022_11_28/types/group_0924.py | 15 +- .../ghec_v2022_11_28/types/group_0925.py | 14 +- .../ghec_v2022_11_28/types/group_0926.py | 18 +- .../ghec_v2022_11_28/types/group_0927.py | 14 +- .../ghec_v2022_11_28/types/group_0928.py | 11 +- .../ghec_v2022_11_28/types/group_0929.py | 6 +- .../ghec_v2022_11_28/types/group_0930.py | 11 +- .../ghec_v2022_11_28/types/group_0931.py | 16 +- .../ghec_v2022_11_28/types/group_0932.py | 17 +- .../ghec_v2022_11_28/types/group_0933.py | 12 +- .../ghec_v2022_11_28/types/group_0934.py | 6 +- .../ghec_v2022_11_28/types/group_0935.py | 50 +- .../ghec_v2022_11_28/types/group_0936.py | 6 +- .../ghec_v2022_11_28/types/group_0937.py | 50 +- .../ghec_v2022_11_28/types/group_0938.py | 10 +- .../ghec_v2022_11_28/types/group_0939.py | 72 +- .../ghec_v2022_11_28/types/group_0940.py | 26 +- .../ghec_v2022_11_28/types/group_0941.py | 67 +- .../ghec_v2022_11_28/types/group_0942.py | 12 +- .../ghec_v2022_11_28/types/group_0943.py | 11 +- .../ghec_v2022_11_28/types/group_0944.py | 27 +- .../ghec_v2022_11_28/types/group_0945.py | 20 +- .../ghec_v2022_11_28/types/group_0946.py | 8 +- .../ghec_v2022_11_28/types/group_0947.py | 14 +- .../ghec_v2022_11_28/types/group_0948.py | 16 +- .../ghec_v2022_11_28/types/group_0949.py | 14 +- .../ghec_v2022_11_28/types/group_0950.py | 19 +- .../ghec_v2022_11_28/types/group_0951.py | 76 +- .../ghec_v2022_11_28/types/group_0952.py | 56 +- .../ghec_v2022_11_28/types/group_0953.py | 78 +- .../ghec_v2022_11_28/types/group_0954.py | 28 +- .../ghec_v2022_11_28/types/group_0955.py | 26 +- .../ghec_v2022_11_28/types/group_0956.py | 14 +- .../ghec_v2022_11_28/types/group_0957.py | 12 +- .../ghec_v2022_11_28/types/group_0958.py | 12 +- .../ghec_v2022_11_28/types/group_0959.py | 12 +- .../ghec_v2022_11_28/types/group_0960.py | 28 +- .../ghec_v2022_11_28/types/group_0961.py | 30 +- .../ghec_v2022_11_28/types/group_0962.py | 36 +- .../ghec_v2022_11_28/types/group_0963.py | 32 +- .../ghec_v2022_11_28/types/group_0964.py | 6 +- .../ghec_v2022_11_28/types/group_0965.py | 8 +- .../ghec_v2022_11_28/types/group_0966.py | 14 +- .../ghec_v2022_11_28/types/group_0967.py | 15 +- .../ghec_v2022_11_28/types/group_0968.py | 13 +- .../ghec_v2022_11_28/types/group_0969.py | 10 +- .../ghec_v2022_11_28/types/group_0970.py | 8 +- .../ghec_v2022_11_28/types/group_0971.py | 11 +- .../ghec_v2022_11_28/types/group_0972.py | 14 +- .../ghec_v2022_11_28/types/group_0973.py | 16 +- .../ghec_v2022_11_28/types/group_0974.py | 54 +- .../ghec_v2022_11_28/types/group_0975.py | 70 +- .../ghec_v2022_11_28/types/group_0976.py | 24 +- .../ghec_v2022_11_28/types/group_0977.py | 31 +- .../ghec_v2022_11_28/types/group_0978.py | 31 +- .../ghec_v2022_11_28/types/group_0979.py | 6 +- .../ghec_v2022_11_28/types/group_0980.py | 10 +- .../ghec_v2022_11_28/types/group_0981.py | 10 +- .../ghec_v2022_11_28/types/group_0982.py | 14 +- .../ghec_v2022_11_28/types/group_0983.py | 13 +- .../ghec_v2022_11_28/types/group_0984.py | 15 +- .../ghec_v2022_11_28/types/group_0985.py | 11 +- .../ghec_v2022_11_28/types/group_0986.py | 33 +- .../ghec_v2022_11_28/types/group_0987.py | 33 +- .../ghec_v2022_11_28/types/group_0988.py | 12 +- .../ghec_v2022_11_28/types/group_0989.py | 19 +- .../ghec_v2022_11_28/types/group_0990.py | 10 +- .../ghec_v2022_11_28/types/group_0991.py | 11 +- .../ghec_v2022_11_28/types/group_0992.py | 11 +- .../ghec_v2022_11_28/types/group_0993.py | 11 +- .../ghec_v2022_11_28/types/group_0994.py | 11 +- .../ghec_v2022_11_28/types/group_0995.py | 16 +- .../ghec_v2022_11_28/types/group_0996.py | 11 +- .../ghec_v2022_11_28/types/group_0997.py | 6 +- .../ghec_v2022_11_28/types/group_0998.py | 29 +- .../ghec_v2022_11_28/types/group_0999.py | 27 +- .../ghec_v2022_11_28/types/group_1000.py | 17 +- .../ghec_v2022_11_28/types/group_1001.py | 11 +- .../ghec_v2022_11_28/types/group_1002.py | 30 +- .../ghec_v2022_11_28/types/group_1003.py | 24 +- .../ghec_v2022_11_28/types/group_1004.py | 12 +- .../ghec_v2022_11_28/types/group_1005.py | 17 +- .../ghec_v2022_11_28/types/group_1006.py | 11 +- .../ghec_v2022_11_28/types/group_1007.py | 11 +- .../ghec_v2022_11_28/types/group_1008.py | 40 +- .../ghec_v2022_11_28/types/group_1009.py | 39 +- .../ghec_v2022_11_28/types/group_1010.py | 8 +- .../ghec_v2022_11_28/types/group_1011.py | 67 +- .../ghec_v2022_11_28/types/group_1012.py | 76 +- .../ghec_v2022_11_28/types/group_1013.py | 27 +- .../ghec_v2022_11_28/types/group_1014.py | 111 +- .../ghec_v2022_11_28/types/group_1015.py | 101 +- .../ghec_v2022_11_28/types/group_1016.py | 103 +- .../ghec_v2022_11_28/types/group_1017.py | 103 +- .../ghec_v2022_11_28/types/group_1018.py | 11 +- .../ghec_v2022_11_28/types/group_1019.py | 13 +- .../ghec_v2022_11_28/types/group_1020.py | 21 +- .../ghec_v2022_11_28/types/group_1021.py | 20 +- .../ghec_v2022_11_28/types/group_1022.py | 17 +- .../ghec_v2022_11_28/types/group_1023.py | 6 +- .../ghec_v2022_11_28/types/group_1024.py | 29 +- .../ghec_v2022_11_28/types/group_1025.py | 27 +- .../ghec_v2022_11_28/types/group_1026.py | 17 +- .../ghec_v2022_11_28/types/group_1027.py | 11 +- .../ghec_v2022_11_28/types/group_1028.py | 13 +- .../ghec_v2022_11_28/types/group_1029.py | 13 +- .../ghec_v2022_11_28/types/group_1030.py | 11 +- .../ghec_v2022_11_28/types/group_1031.py | 11 +- .../ghec_v2022_11_28/types/group_1032.py | 12 +- .../ghec_v2022_11_28/types/group_1033.py | 12 +- .../ghec_v2022_11_28/types/group_1034.py | 11 +- .../ghec_v2022_11_28/types/group_1035.py | 11 +- .../ghec_v2022_11_28/types/group_1036.py | 11 +- .../ghec_v2022_11_28/types/group_1037.py | 14 +- .../ghec_v2022_11_28/types/group_1038.py | 28 +- .../ghec_v2022_11_28/types/group_1039.py | 27 +- .../ghec_v2022_11_28/types/group_1040.py | 17 +- .../ghec_v2022_11_28/types/group_1041.py | 11 +- .../ghec_v2022_11_28/types/group_1042.py | 31 +- .../ghec_v2022_11_28/types/group_1043.py | 18 +- .../ghec_v2022_11_28/types/group_1044.py | 23 +- .../ghec_v2022_11_28/types/group_1045.py | 17 +- .../ghec_v2022_11_28/types/group_1046.py | 11 +- .../ghec_v2022_11_28/types/group_1047.py | 14 +- .../ghec_v2022_11_28/types/group_1048.py | 17 +- .../ghec_v2022_11_28/types/group_1049.py | 14 +- .../ghec_v2022_11_28/types/group_1050.py | 16 +- .../ghec_v2022_11_28/types/group_1051.py | 17 +- .../ghec_v2022_11_28/types/group_1052.py | 10 +- .../ghec_v2022_11_28/types/group_1053.py | 11 +- .../ghec_v2022_11_28/types/group_1054.py | 12 +- .../ghec_v2022_11_28/types/group_1055.py | 7 +- .../ghec_v2022_11_28/types/group_1056.py | 14 +- .../ghec_v2022_11_28/types/group_1057.py | 7 +- .../ghec_v2022_11_28/types/group_1058.py | 57 +- .../ghec_v2022_11_28/types/group_1059.py | 47 +- .../ghec_v2022_11_28/types/group_1060.py | 16 +- .../ghec_v2022_11_28/types/group_1061.py | 46 +- .../ghec_v2022_11_28/types/group_1062.py | 18 +- .../ghec_v2022_11_28/types/group_1063.py | 13 +- .../ghec_v2022_11_28/types/group_1064.py | 11 +- .../ghec_v2022_11_28/types/group_1065.py | 57 +- .../ghec_v2022_11_28/types/group_1066.py | 108 +- .../ghec_v2022_11_28/types/group_1067.py | 54 +- .../ghec_v2022_11_28/types/group_1068.py | 77 +- .../ghec_v2022_11_28/types/group_1069.py | 16 +- .../ghec_v2022_11_28/types/group_1070.py | 12 +- .../ghec_v2022_11_28/types/group_1071.py | 27 +- .../ghec_v2022_11_28/types/group_1072.py | 16 +- .../ghec_v2022_11_28/types/group_1073.py | 18 +- .../ghec_v2022_11_28/types/group_1074.py | 11 +- .../ghec_v2022_11_28/types/group_1075.py | 11 +- .../ghec_v2022_11_28/types/group_1076.py | 10 +- .../ghec_v2022_11_28/types/group_1077.py | 13 +- .../ghec_v2022_11_28/types/group_1078.py | 12 +- .../ghec_v2022_11_28/types/group_1079.py | 11 +- .../ghec_v2022_11_28/types/group_1080.py | 11 +- .../ghec_v2022_11_28/types/group_1081.py | 8 +- .../ghec_v2022_11_28/types/group_1082.py | 10 +- .../ghec_v2022_11_28/types/group_1083.py | 9 +- .../ghec_v2022_11_28/types/group_1084.py | 21 +- .../ghec_v2022_11_28/types/group_1085.py | 22 +- .../ghec_v2022_11_28/types/group_1086.py | 11 +- .../ghec_v2022_11_28/types/group_1087.py | 12 +- .../ghec_v2022_11_28/types/group_1088.py | 11 +- .../ghec_v2022_11_28/types/group_1089.py | 11 +- .../ghec_v2022_11_28/types/group_1090.py | 26 +- .../ghec_v2022_11_28/types/group_1091.py | 17 +- .../ghec_v2022_11_28/types/group_1092.py | 25 +- .../ghec_v2022_11_28/types/group_1093.py | 9 +- .../ghec_v2022_11_28/types/group_1094.py | 10 +- .../ghec_v2022_11_28/types/group_1095.py | 26 +- .../ghec_v2022_11_28/types/group_1096.py | 25 +- .../ghec_v2022_11_28/types/group_1097.py | 8 +- .../ghec_v2022_11_28/types/group_1098.py | 12 +- .../ghec_v2022_11_28/types/group_1099.py | 15 +- .../ghec_v2022_11_28/types/group_1100.py | 15 +- .../ghec_v2022_11_28/types/group_1101.py | 11 +- .../ghec_v2022_11_28/types/group_1102.py | 11 +- .../ghec_v2022_11_28/types/group_1103.py | 11 +- .../ghec_v2022_11_28/types/group_1104.py | 185 +- .../ghec_v2022_11_28/types/group_1105.py | 183 +- .../ghec_v2022_11_28/types/group_1106.py | 13 +- .../ghec_v2022_11_28/types/group_1107.py | 12 +- .../ghec_v2022_11_28/types/group_1108.py | 15 +- .../ghec_v2022_11_28/types/group_1109.py | 10 +- .../ghec_v2022_11_28/types/group_1110.py | 15 +- .../ghec_v2022_11_28/types/group_1111.py | 15 +- .../ghec_v2022_11_28/types/group_1112.py | 16 +- .../ghec_v2022_11_28/types/group_1113.py | 11 +- .../ghec_v2022_11_28/types/group_1114.py | 6 +- .../ghec_v2022_11_28/types/group_1115.py | 11 +- .../ghec_v2022_11_28/types/group_1116.py | 10 +- .../ghec_v2022_11_28/types/group_1117.py | 12 +- .../ghec_v2022_11_28/types/group_1118.py | 10 +- .../ghec_v2022_11_28/types/group_1119.py | 14 +- .../ghec_v2022_11_28/types/group_1120.py | 13 +- .../ghec_v2022_11_28/types/group_1121.py | 6 +- .../ghec_v2022_11_28/types/group_1122.py | 13 +- .../ghec_v2022_11_28/types/group_1123.py | 12 +- .../ghec_v2022_11_28/types/group_1124.py | 12 +- .../ghec_v2022_11_28/types/group_1125.py | 12 +- .../ghec_v2022_11_28/types/group_1126.py | 12 +- .../ghec_v2022_11_28/types/group_1127.py | 36 +- .../ghec_v2022_11_28/types/group_1128.py | 45 +- .../ghec_v2022_11_28/types/group_1129.py | 29 +- .../ghec_v2022_11_28/types/group_1130.py | 49 +- .../ghec_v2022_11_28/types/group_1131.py | 48 +- .../ghec_v2022_11_28/types/group_1132.py | 70 +- .../ghec_v2022_11_28/types/group_1133.py | 72 +- .../ghec_v2022_11_28/types/group_1134.py | 129 +- .../ghec_v2022_11_28/types/group_1135.py | 99 +- .../ghec_v2022_11_28/types/group_1136.py | 56 +- .../ghec_v2022_11_28/types/group_1137.py | 28 +- .../ghec_v2022_11_28/types/group_1138.py | 6 +- .../ghec_v2022_11_28/types/group_1139.py | 7 +- .../ghec_v2022_11_28/types/group_1140.py | 15 +- .../ghec_v2022_11_28/types/group_1141.py | 6 +- .../ghec_v2022_11_28/types/group_1142.py | 6 +- .../ghec_v2022_11_28/types/group_1143.py | 12 +- .../ghec_v2022_11_28/types/group_1144.py | 8 +- .../ghec_v2022_11_28/types/group_1145.py | 8 +- .../ghec_v2022_11_28/types/group_1146.py | 14 +- .../ghec_v2022_11_28/types/group_1147.py | 6 +- .../ghec_v2022_11_28/types/group_1148.py | 6 +- .../ghec_v2022_11_28/types/group_1149.py | 12 +- .../ghec_v2022_11_28/types/group_1150.py | 14 +- .../ghec_v2022_11_28/types/group_1151.py | 12 +- .../ghec_v2022_11_28/types/group_1152.py | 57 +- .../ghec_v2022_11_28/types/group_1153.py | 78 +- .../ghec_v2022_11_28/types/group_1154.py | 32 +- .../ghec_v2022_11_28/types/group_1155.py | 84 +- .../ghec_v2022_11_28/types/group_1156.py | 83 +- .../ghec_v2022_11_28/types/group_1157.py | 30 +- .../ghec_v2022_11_28/types/group_1158.py | 48 +- .../ghec_v2022_11_28/types/group_1159.py | 26 +- .../ghec_v2022_11_28/types/group_1160.py | 27 +- .../ghec_v2022_11_28/types/group_1161.py | 19 +- .../ghec_v2022_11_28/types/group_1162.py | 19 +- .../ghec_v2022_11_28/types/group_1163.py | 10 +- .../ghec_v2022_11_28/types/group_1164.py | 10 +- .../ghec_v2022_11_28/types/group_1165.py | 22 +- .../ghec_v2022_11_28/types/group_1166.py | 20 +- .../ghec_v2022_11_28/types/group_1167.py | 24 +- .../ghec_v2022_11_28/types/group_1168.py | 33 +- .../ghec_v2022_11_28/types/group_1169.py | 27 +- .../ghec_v2022_11_28/types/group_1170.py | 25 +- .../ghec_v2022_11_28/types/group_1171.py | 28 +- .../ghec_v2022_11_28/types/group_1172.py | 27 +- .../ghec_v2022_11_28/types/group_1173.py | 9 +- .../ghec_v2022_11_28/types/group_1174.py | 10 +- .../ghec_v2022_11_28/types/group_1175.py | 11 +- .../ghec_v2022_11_28/types/group_1176.py | 16 +- .../ghec_v2022_11_28/types/group_1177.py | 16 +- .../ghec_v2022_11_28/types/group_1178.py | 43 +- .../ghec_v2022_11_28/types/group_1179.py | 40 +- .../ghec_v2022_11_28/types/group_1180.py | 43 +- .../ghec_v2022_11_28/types/group_1181.py | 33 +- .../ghec_v2022_11_28/types/group_1182.py | 27 +- .../ghec_v2022_11_28/types/group_1183.py | 14 +- .../ghec_v2022_11_28/types/group_1184.py | 32 +- .../ghec_v2022_11_28/types/group_1185.py | 29 +- .../ghec_v2022_11_28/types/group_1186.py | 17 +- .../ghec_v2022_11_28/types/group_1187.py | 19 +- .../ghec_v2022_11_28/types/group_1188.py | 6 +- .../ghec_v2022_11_28/types/group_1189.py | 16 +- .../ghec_v2022_11_28/types/group_1190.py | 24 +- .../ghec_v2022_11_28/types/group_1191.py | 39 +- .../ghec_v2022_11_28/types/group_1192.py | 38 +- .../ghec_v2022_11_28/types/group_1193.py | 23 +- .../ghec_v2022_11_28/types/group_1194.py | 15 +- .../ghec_v2022_11_28/types/group_1195.py | 22 +- .../ghec_v2022_11_28/types/group_1196.py | 12 +- .../ghec_v2022_11_28/types/group_1197.py | 12 +- .../ghec_v2022_11_28/types/group_1198.py | 12 +- .../ghec_v2022_11_28/types/group_1199.py | 12 +- .../ghec_v2022_11_28/types/group_1200.py | 9 +- .../ghec_v2022_11_28/types/group_1201.py | 11 +- .../ghec_v2022_11_28/types/group_1202.py | 45 +- .../ghec_v2022_11_28/types/group_1203.py | 47 +- .../ghec_v2022_11_28/types/group_1204.py | 10 +- .../ghec_v2022_11_28/types/group_1205.py | 29 +- .../ghec_v2022_11_28/types/group_1206.py | 33 +- .../ghec_v2022_11_28/types/group_1207.py | 32 +- .../ghec_v2022_11_28/types/group_1208.py | 29 +- .../ghec_v2022_11_28/types/group_1209.py | 18 +- .../ghec_v2022_11_28/types/group_1210.py | 17 +- .../ghec_v2022_11_28/types/group_1211.py | 9 +- .../ghec_v2022_11_28/types/group_1212.py | 13 +- .../ghec_v2022_11_28/types/group_1213.py | 12 +- .../ghec_v2022_11_28/types/group_1214.py | 9 +- .../ghec_v2022_11_28/types/group_1215.py | 11 +- .../ghec_v2022_11_28/types/group_1216.py | 30 +- .../ghec_v2022_11_28/types/group_1217.py | 31 +- .../ghec_v2022_11_28/types/group_1218.py | 11 +- .../ghec_v2022_11_28/types/group_1219.py | 40 +- .../ghec_v2022_11_28/types/group_1220.py | 37 +- .../ghec_v2022_11_28/types/group_1221.py | 6 +- .../ghec_v2022_11_28/types/group_1222.py | 10 +- .../ghec_v2022_11_28/types/group_1223.py | 10 +- .../ghec_v2022_11_28/types/group_1224.py | 19 +- .../ghec_v2022_11_28/types/group_1225.py | 19 +- .../ghec_v2022_11_28/types/group_1226.py | 10 +- .../ghec_v2022_11_28/types/group_1227.py | 19 +- .../ghec_v2022_11_28/types/group_1228.py | 19 +- .../ghec_v2022_11_28/types/group_1229.py | 11 +- .../ghec_v2022_11_28/types/group_1230.py | 12 +- .../ghec_v2022_11_28/types/group_1231.py | 11 +- .../ghec_v2022_11_28/types/group_1232.py | 9 +- .../ghec_v2022_11_28/types/group_1233.py | 9 +- .../ghec_v2022_11_28/types/group_1234.py | 12 +- .../ghec_v2022_11_28/types/group_1235.py | 12 +- .../ghec_v2022_11_28/types/group_1236.py | 8 +- .../ghec_v2022_11_28/types/group_1237.py | 12 +- .../ghec_v2022_11_28/types/group_1238.py | 12 +- .../ghec_v2022_11_28/types/group_1239.py | 15 +- .../ghec_v2022_11_28/types/group_1240.py | 8 +- .../ghec_v2022_11_28/types/group_1241.py | 12 +- .../ghec_v2022_11_28/types/group_1242.py | 10 +- .../ghec_v2022_11_28/types/group_1243.py | 16 +- .../ghec_v2022_11_28/types/group_1244.py | 25 +- .../ghec_v2022_11_28/types/group_1245.py | 18 +- .../ghec_v2022_11_28/types/group_1246.py | 18 +- .../ghec_v2022_11_28/types/group_1247.py | 12 +- .../ghec_v2022_11_28/types/group_1248.py | 12 +- .../ghec_v2022_11_28/types/group_1249.py | 23 +- .../ghec_v2022_11_28/types/group_1250.py | 13 +- .../ghec_v2022_11_28/types/group_1251.py | 12 +- .../ghec_v2022_11_28/types/group_1252.py | 17 +- .../ghec_v2022_11_28/types/group_1253.py | 17 +- .../ghec_v2022_11_28/types/group_1254.py | 11 +- .../ghec_v2022_11_28/types/group_1255.py | 13 +- .../ghec_v2022_11_28/types/group_1256.py | 19 +- .../ghec_v2022_11_28/types/group_1257.py | 17 +- .../ghec_v2022_11_28/types/group_1258.py | 11 +- .../ghec_v2022_11_28/types/group_1259.py | 16 +- .../ghec_v2022_11_28/types/group_1260.py | 27 +- .../ghec_v2022_11_28/types/group_1261.py | 32 +- .../ghec_v2022_11_28/types/group_1262.py | 22 +- .../ghec_v2022_11_28/types/group_1263.py | 14 +- .../ghec_v2022_11_28/types/group_1264.py | 13 +- .../ghec_v2022_11_28/types/group_1265.py | 6 +- .../ghec_v2022_11_28/types/group_1266.py | 10 +- .../ghec_v2022_11_28/types/group_1267.py | 10 +- .../ghec_v2022_11_28/types/group_1268.py | 10 +- .../ghec_v2022_11_28/types/group_1269.py | 30 +- .../ghec_v2022_11_28/types/group_1270.py | 29 +- .../ghec_v2022_11_28/types/group_1271.py | 12 +- .../ghec_v2022_11_28/types/group_1272.py | 10 +- .../ghec_v2022_11_28/types/group_1273.py | 10 +- .../ghec_v2022_11_28/types/group_1274.py | 9 +- .../ghec_v2022_11_28/types/group_1275.py | 18 +- .../ghec_v2022_11_28/types/group_1276.py | 17 +- .../ghec_v2022_11_28/types/group_1277.py | 13 +- .../ghec_v2022_11_28/types/group_1278.py | 17 +- .../ghec_v2022_11_28/types/group_1279.py | 17 +- .../ghec_v2022_11_28/types/group_1280.py | 69 +- .../ghec_v2022_11_28/types/group_1281.py | 50 +- .../ghec_v2022_11_28/types/group_1282.py | 67 +- .../ghec_v2022_11_28/types/group_1283.py | 17 +- .../ghec_v2022_11_28/types/group_1284.py | 16 +- .../ghec_v2022_11_28/types/group_1285.py | 13 +- .../ghec_v2022_11_28/types/group_1286.py | 11 +- .../ghec_v2022_11_28/types/group_1287.py | 8 +- .../ghec_v2022_11_28/types/group_1288.py | 12 +- .../ghec_v2022_11_28/types/group_1289.py | 14 +- .../ghec_v2022_11_28/types/group_1290.py | 43 +- .../ghec_v2022_11_28/types/group_1291.py | 28 +- .../ghec_v2022_11_28/types/group_1292.py | 75 +- .../ghec_v2022_11_28/types/group_1293.py | 62 +- .../ghec_v2022_11_28/types/group_1294.py | 18 +- .../ghec_v2022_11_28/types/group_1295.py | 11 +- .../ghec_v2022_11_28/types/group_1296.py | 11 +- .../ghec_v2022_11_28/types/group_1297.py | 8 +- .../ghec_v2022_11_28/types/group_1298.py | 13 +- .../ghec_v2022_11_28/types/group_1299.py | 10 +- .../ghec_v2022_11_28/types/group_1300.py | 12 +- .../ghec_v2022_11_28/types/group_1301.py | 8 +- .../ghec_v2022_11_28/types/group_1302.py | 10 +- .../ghec_v2022_11_28/types/group_1303.py | 10 +- .../ghec_v2022_11_28/types/group_1304.py | 24 +- .../ghec_v2022_11_28/types/group_1305.py | 29 +- .../ghec_v2022_11_28/types/group_1306.py | 21 +- .../ghec_v2022_11_28/types/group_1307.py | 25 +- .../ghec_v2022_11_28/types/group_1308.py | 26 +- .../ghec_v2022_11_28/types/group_1309.py | 33 +- .../ghec_v2022_11_28/types/group_1310.py | 32 +- .../ghec_v2022_11_28/types/group_1311.py | 16 +- .../ghec_v2022_11_28/types/group_1312.py | 11 +- .../ghec_v2022_11_28/types/group_1313.py | 12 +- .../ghec_v2022_11_28/types/group_1314.py | 15 +- .../ghec_v2022_11_28/types/group_1315.py | 14 +- .../ghec_v2022_11_28/types/group_1316.py | 12 +- .../ghec_v2022_11_28/types/group_1317.py | 13 +- .../ghec_v2022_11_28/types/group_1318.py | 11 +- .../ghec_v2022_11_28/types/group_1319.py | 20 +- .../ghec_v2022_11_28/types/group_1320.py | 14 +- .../ghec_v2022_11_28/types/group_1321.py | 13 +- .../ghec_v2022_11_28/types/group_1322.py | 14 +- .../ghec_v2022_11_28/types/group_1323.py | 11 +- .../ghec_v2022_11_28/types/group_1324.py | 12 +- .../ghec_v2022_11_28/types/group_1325.py | 18 +- .../ghec_v2022_11_28/types/group_1326.py | 19 +- .../ghec_v2022_11_28/types/group_1327.py | 37 +- .../ghec_v2022_11_28/types/group_1328.py | 50 +- .../ghec_v2022_11_28/types/group_1329.py | 6 +- .../ghec_v2022_11_28/types/group_1330.py | 16 +- .../ghec_v2022_11_28/types/group_1331.py | 10 +- .../ghec_v2022_11_28/types/group_1332.py | 42 +- .../ghec_v2022_11_28/types/group_1333.py | 41 +- .../ghec_v2022_11_28/types/group_1334.py | 8 +- .../ghec_v2022_11_28/types/group_1335.py | 70 +- .../ghec_v2022_11_28/types/group_1336.py | 81 - githubkit/versions/latest/models.py | 78 +- githubkit/versions/latest/types.py | 78 +- .../versions/v2022_11_28/models/__init__.py | 8982 ++++++++-------- .../versions/v2022_11_28/models/group_0028.py | 4 + .../versions/v2022_11_28/models/group_0029.py | 21 +- .../versions/v2022_11_28/models/group_0030.py | 26 +- .../versions/v2022_11_28/models/group_0031.py | 144 +- .../versions/v2022_11_28/models/group_0032.py | 152 +- .../versions/v2022_11_28/models/group_0033.py | 36 +- .../versions/v2022_11_28/models/group_0034.py | 45 +- .../versions/v2022_11_28/models/group_0035.py | 115 +- .../versions/v2022_11_28/models/group_0036.py | 137 +- .../versions/v2022_11_28/models/group_0037.py | 69 +- .../versions/v2022_11_28/models/group_0038.py | 144 +- .../versions/v2022_11_28/models/group_0039.py | 135 +- .../versions/v2022_11_28/models/group_0040.py | 61 +- .../versions/v2022_11_28/models/group_0041.py | 163 +- .../versions/v2022_11_28/models/group_0042.py | 158 +- .../versions/v2022_11_28/models/group_0043.py | 53 +- .../versions/v2022_11_28/models/group_0044.py | 61 +- .../versions/v2022_11_28/models/group_0045.py | 136 +- .../versions/v2022_11_28/models/group_0046.py | 53 +- .../versions/v2022_11_28/models/group_0047.py | 166 +- .../versions/v2022_11_28/models/group_0048.py | 106 +- .../versions/v2022_11_28/models/group_0049.py | 104 +- .../versions/v2022_11_28/models/group_0050.py | 130 +- .../versions/v2022_11_28/models/group_0051.py | 135 +- .../versions/v2022_11_28/models/group_0052.py | 90 +- .../versions/v2022_11_28/models/group_0053.py | 137 +- .../versions/v2022_11_28/models/group_0054.py | 43 +- .../versions/v2022_11_28/models/group_0055.py | 45 +- .../versions/v2022_11_28/models/group_0056.py | 25 +- .../versions/v2022_11_28/models/group_0057.py | 40 +- .../versions/v2022_11_28/models/group_0058.py | 72 +- .../versions/v2022_11_28/models/group_0059.py | 95 +- .../versions/v2022_11_28/models/group_0060.py | 110 +- .../versions/v2022_11_28/models/group_0061.py | 214 +- .../versions/v2022_11_28/models/group_0062.py | 116 +- .../versions/v2022_11_28/models/group_0063.py | 172 +- .../versions/v2022_11_28/models/group_0064.py | 46 +- .../versions/v2022_11_28/models/group_0065.py | 30 +- .../versions/v2022_11_28/models/group_0066.py | 76 +- .../versions/v2022_11_28/models/group_0067.py | 131 +- .../versions/v2022_11_28/models/group_0068.py | 49 +- .../versions/v2022_11_28/models/group_0069.py | 135 +- .../versions/v2022_11_28/models/group_0070.py | 89 +- .../versions/v2022_11_28/models/group_0071.py | 23 +- .../versions/v2022_11_28/models/group_0072.py | 89 +- .../versions/v2022_11_28/models/group_0073.py | 22 +- .../versions/v2022_11_28/models/group_0074.py | 43 +- .../versions/v2022_11_28/models/group_0075.py | 26 +- .../versions/v2022_11_28/models/group_0076.py | 27 +- .../versions/v2022_11_28/models/group_0077.py | 22 +- .../versions/v2022_11_28/models/group_0078.py | 23 +- .../versions/v2022_11_28/models/group_0079.py | 31 +- .../versions/v2022_11_28/models/group_0080.py | 25 +- .../versions/v2022_11_28/models/group_0081.py | 46 +- .../versions/v2022_11_28/models/group_0082.py | 25 +- .../versions/v2022_11_28/models/group_0083.py | 54 +- .../versions/v2022_11_28/models/group_0084.py | 54 +- .../versions/v2022_11_28/models/group_0085.py | 78 +- .../versions/v2022_11_28/models/group_0086.py | 83 +- .../versions/v2022_11_28/models/group_0087.py | 63 +- .../versions/v2022_11_28/models/group_0088.py | 80 +- .../versions/v2022_11_28/models/group_0089.py | 61 +- .../versions/v2022_11_28/models/group_0090.py | 80 +- .../versions/v2022_11_28/models/group_0091.py | 177 +- .../versions/v2022_11_28/models/group_0092.py | 41 +- .../versions/v2022_11_28/models/group_0093.py | 165 +- .../versions/v2022_11_28/models/group_0094.py | 90 +- .../versions/v2022_11_28/models/group_0095.py | 345 +- .../versions/v2022_11_28/models/group_0096.py | 88 +- .../versions/v2022_11_28/models/group_0097.py | 356 +- .../versions/v2022_11_28/models/group_0098.py | 30 +- .../versions/v2022_11_28/models/group_0099.py | 47 +- .../versions/v2022_11_28/models/group_0100.py | 39 +- .../versions/v2022_11_28/models/group_0101.py | 44 +- .../versions/v2022_11_28/models/group_0102.py | 19 +- .../versions/v2022_11_28/models/group_0103.py | 16 +- .../versions/v2022_11_28/models/group_0104.py | 30 +- .../versions/v2022_11_28/models/group_0105.py | 24 +- .../versions/v2022_11_28/models/group_0106.py | 31 +- .../versions/v2022_11_28/models/group_0107.py | 34 +- .../versions/v2022_11_28/models/group_0108.py | 33 +- .../versions/v2022_11_28/models/group_0109.py | 48 +- .../versions/v2022_11_28/models/group_0110.py | 55 +- .../versions/v2022_11_28/models/group_0111.py | 67 +- .../versions/v2022_11_28/models/group_0112.py | 67 +- .../versions/v2022_11_28/models/group_0113.py | 85 +- .../versions/v2022_11_28/models/group_0114.py | 82 +- .../versions/v2022_11_28/models/group_0115.py | 127 +- .../versions/v2022_11_28/models/group_0116.py | 113 +- .../versions/v2022_11_28/models/group_0117.py | 104 +- .../versions/v2022_11_28/models/group_0118.py | 105 +- .../versions/v2022_11_28/models/group_0119.py | 71 +- .../versions/v2022_11_28/models/group_0120.py | 59 +- .../versions/v2022_11_28/models/group_0121.py | 51 +- .../versions/v2022_11_28/models/group_0122.py | 49 +- .../versions/v2022_11_28/models/group_0123.py | 18 +- .../versions/v2022_11_28/models/group_0124.py | 193 +- .../versions/v2022_11_28/models/group_0125.py | 29 +- .../versions/v2022_11_28/models/group_0126.py | 188 +- .../versions/v2022_11_28/models/group_0127.py | 24 +- .../versions/v2022_11_28/models/group_0128.py | 18 +- .../versions/v2022_11_28/models/group_0129.py | 16 +- .../versions/v2022_11_28/models/group_0130.py | 18 +- .../versions/v2022_11_28/models/group_0131.py | 20 +- .../versions/v2022_11_28/models/group_0132.py | 18 +- .../versions/v2022_11_28/models/group_0133.py | 40 +- .../versions/v2022_11_28/models/group_0134.py | 20 +- .../versions/v2022_11_28/models/group_0135.py | 42 +- .../versions/v2022_11_28/models/group_0136.py | 18 +- .../versions/v2022_11_28/models/group_0137.py | 55 +- .../versions/v2022_11_28/models/group_0138.py | 21 +- .../versions/v2022_11_28/models/group_0139.py | 52 +- .../versions/v2022_11_28/models/group_0140.py | 17 +- .../versions/v2022_11_28/models/group_0141.py | 22 +- .../versions/v2022_11_28/models/group_0142.py | 47 +- .../versions/v2022_11_28/models/group_0143.py | 19 +- .../versions/v2022_11_28/models/group_0144.py | 38 +- .../versions/v2022_11_28/models/group_0145.py | 41 +- .../versions/v2022_11_28/models/group_0146.py | 23 +- .../versions/v2022_11_28/models/group_0147.py | 55 +- .../versions/v2022_11_28/models/group_0148.py | 20 +- .../versions/v2022_11_28/models/group_0149.py | 51 +- .../versions/v2022_11_28/models/group_0150.py | 17 +- .../versions/v2022_11_28/models/group_0151.py | 43 +- .../versions/v2022_11_28/models/group_0152.py | 16 +- .../versions/v2022_11_28/models/group_0153.py | 8 +- .../versions/v2022_11_28/models/group_0154.py | 16 +- .../versions/v2022_11_28/models/group_0155.py | 8 +- .../versions/v2022_11_28/models/group_0156.py | 16 +- .../versions/v2022_11_28/models/group_0157.py | 8 +- .../versions/v2022_11_28/models/group_0158.py | 16 +- .../versions/v2022_11_28/models/group_0159.py | 8 +- .../versions/v2022_11_28/models/group_0160.py | 18 +- .../versions/v2022_11_28/models/group_0161.py | 23 +- .../versions/v2022_11_28/models/group_0162.py | 19 +- .../versions/v2022_11_28/models/group_0163.py | 14 +- .../versions/v2022_11_28/models/group_0164.py | 18 +- .../versions/v2022_11_28/models/group_0165.py | 14 +- .../versions/v2022_11_28/models/group_0166.py | 18 +- .../versions/v2022_11_28/models/group_0167.py | 14 +- .../versions/v2022_11_28/models/group_0168.py | 19 +- .../versions/v2022_11_28/models/group_0169.py | 25 +- .../versions/v2022_11_28/models/group_0170.py | 40 +- .../versions/v2022_11_28/models/group_0171.py | 19 +- .../versions/v2022_11_28/models/group_0172.py | 45 +- .../versions/v2022_11_28/models/group_0173.py | 139 +- .../versions/v2022_11_28/models/group_0174.py | 64 +- .../versions/v2022_11_28/models/group_0175.py | 182 +- .../versions/v2022_11_28/models/group_0176.py | 54 +- .../versions/v2022_11_28/models/group_0177.py | 91 +- .../versions/v2022_11_28/models/group_0178.py | 17 +- .../versions/v2022_11_28/models/group_0179.py | 18 +- .../versions/v2022_11_28/models/group_0180.py | 25 +- .../versions/v2022_11_28/models/group_0181.py | 38 +- .../versions/v2022_11_28/models/group_0182.py | 194 +- .../versions/v2022_11_28/models/group_0183.py | 108 +- .../versions/v2022_11_28/models/group_0184.py | 195 +- .../versions/v2022_11_28/models/group_0185.py | 94 +- .../versions/v2022_11_28/models/group_0186.py | 30 +- .../versions/v2022_11_28/models/group_0187.py | 126 +- .../versions/v2022_11_28/models/group_0188.py | 49 +- .../versions/v2022_11_28/models/group_0189.py | 127 +- .../versions/v2022_11_28/models/group_0190.py | 52 +- .../versions/v2022_11_28/models/group_0191.py | 38 +- .../versions/v2022_11_28/models/group_0192.py | 53 +- .../versions/v2022_11_28/models/group_0193.py | 155 +- .../versions/v2022_11_28/models/group_0194.py | 54 +- .../versions/v2022_11_28/models/group_0195.py | 158 +- .../versions/v2022_11_28/models/group_0196.py | 36 +- .../versions/v2022_11_28/models/group_0197.py | 25 +- .../versions/v2022_11_28/models/group_0198.py | 19 +- .../versions/v2022_11_28/models/group_0199.py | 30 +- .../versions/v2022_11_28/models/group_0200.py | 55 +- .../versions/v2022_11_28/models/group_0201.py | 45 +- .../versions/v2022_11_28/models/group_0202.py | 103 +- .../versions/v2022_11_28/models/group_0203.py | 37 +- .../versions/v2022_11_28/models/group_0204.py | 94 +- .../versions/v2022_11_28/models/group_0205.py | 26 +- .../versions/v2022_11_28/models/group_0206.py | 29 +- .../versions/v2022_11_28/models/group_0207.py | 19 +- .../versions/v2022_11_28/models/group_0208.py | 70 +- .../versions/v2022_11_28/models/group_0209.py | 51 +- .../versions/v2022_11_28/models/group_0210.py | 155 +- .../versions/v2022_11_28/models/group_0211.py | 70 +- .../versions/v2022_11_28/models/group_0212.py | 110 +- .../versions/v2022_11_28/models/group_0213.py | 49 +- .../versions/v2022_11_28/models/group_0214.py | 59 +- .../versions/v2022_11_28/models/group_0215.py | 58 +- .../versions/v2022_11_28/models/group_0216.py | 115 +- .../versions/v2022_11_28/models/group_0217.py | 83 +- .../versions/v2022_11_28/models/group_0218.py | 115 +- .../versions/v2022_11_28/models/group_0219.py | 59 +- .../versions/v2022_11_28/models/group_0220.py | 36 +- .../versions/v2022_11_28/models/group_0221.py | 38 +- .../versions/v2022_11_28/models/group_0222.py | 53 +- .../versions/v2022_11_28/models/group_0223.py | 149 +- .../versions/v2022_11_28/models/group_0224.py | 188 +- .../versions/v2022_11_28/models/group_0225.py | 149 +- .../versions/v2022_11_28/models/group_0226.py | 174 +- .../versions/v2022_11_28/models/group_0227.py | 38 +- .../versions/v2022_11_28/models/group_0228.py | 28 +- .../versions/v2022_11_28/models/group_0229.py | 62 +- .../versions/v2022_11_28/models/group_0230.py | 45 +- .../versions/v2022_11_28/models/group_0231.py | 70 +- .../versions/v2022_11_28/models/group_0232.py | 162 +- .../versions/v2022_11_28/models/group_0233.py | 50 +- .../versions/v2022_11_28/models/group_0234.py | 171 +- .../versions/v2022_11_28/models/group_0235.py | 50 +- .../versions/v2022_11_28/models/group_0236.py | 100 +- .../versions/v2022_11_28/models/group_0237.py | 54 +- .../versions/v2022_11_28/models/group_0238.py | 85 +- .../versions/v2022_11_28/models/group_0239.py | 51 +- .../versions/v2022_11_28/models/group_0240.py | 106 +- .../versions/v2022_11_28/models/group_0241.py | 111 +- .../versions/v2022_11_28/models/group_0242.py | 59 +- .../versions/v2022_11_28/models/group_0243.py | 97 +- .../versions/v2022_11_28/models/group_0244.py | 23 +- .../versions/v2022_11_28/models/group_0245.py | 49 +- .../versions/v2022_11_28/models/group_0246.py | 24 +- .../versions/v2022_11_28/models/group_0247.py | 58 +- .../versions/v2022_11_28/models/group_0248.py | 23 +- .../versions/v2022_11_28/models/group_0249.py | 39 +- .../versions/v2022_11_28/models/group_0250.py | 66 +- .../versions/v2022_11_28/models/group_0251.py | 36 +- .../versions/v2022_11_28/models/group_0252.py | 77 +- .../versions/v2022_11_28/models/group_0253.py | 34 +- .../versions/v2022_11_28/models/group_0254.py | 74 +- .../versions/v2022_11_28/models/group_0255.py | 71 +- .../versions/v2022_11_28/models/group_0256.py | 58 +- .../versions/v2022_11_28/models/group_0257.py | 52 +- .../versions/v2022_11_28/models/group_0258.py | 29 +- .../versions/v2022_11_28/models/group_0259.py | 34 +- .../versions/v2022_11_28/models/group_0260.py | 41 +- .../versions/v2022_11_28/models/group_0261.py | 35 +- .../versions/v2022_11_28/models/group_0262.py | 50 +- .../versions/v2022_11_28/models/group_0263.py | 67 +- .../versions/v2022_11_28/models/group_0264.py | 66 +- .../versions/v2022_11_28/models/group_0265.py | 70 +- .../versions/v2022_11_28/models/group_0266.py | 61 +- .../versions/v2022_11_28/models/group_0267.py | 38 +- .../versions/v2022_11_28/models/group_0268.py | 92 +- .../versions/v2022_11_28/models/group_0269.py | 41 +- .../versions/v2022_11_28/models/group_0270.py | 100 +- .../versions/v2022_11_28/models/group_0271.py | 53 +- .../versions/v2022_11_28/models/group_0272.py | 34 +- .../versions/v2022_11_28/models/group_0273.py | 61 +- .../versions/v2022_11_28/models/group_0274.py | 45 +- .../versions/v2022_11_28/models/group_0275.py | 81 +- .../versions/v2022_11_28/models/group_0276.py | 54 +- .../versions/v2022_11_28/models/group_0277.py | 58 +- .../versions/v2022_11_28/models/group_0278.py | 27 +- .../versions/v2022_11_28/models/group_0279.py | 29 +- .../versions/v2022_11_28/models/group_0280.py | 128 +- .../versions/v2022_11_28/models/group_0281.py | 73 +- .../versions/v2022_11_28/models/group_0282.py | 123 +- .../versions/v2022_11_28/models/group_0283.py | 99 +- .../versions/v2022_11_28/models/group_0284.py | 58 +- .../versions/v2022_11_28/models/group_0285.py | 83 +- .../versions/v2022_11_28/models/group_0286.py | 159 +- .../versions/v2022_11_28/models/group_0287.py | 42 +- .../versions/v2022_11_28/models/group_0288.py | 154 +- .../versions/v2022_11_28/models/group_0289.py | 49 +- .../versions/v2022_11_28/models/group_0290.py | 84 +- .../versions/v2022_11_28/models/group_0291.py | 74 +- .../versions/v2022_11_28/models/group_0292.py | 84 +- .../versions/v2022_11_28/models/group_0293.py | 99 +- .../versions/v2022_11_28/models/group_0294.py | 29 +- .../versions/v2022_11_28/models/group_0295.py | 86 +- .../versions/v2022_11_28/models/group_0296.py | 27 +- .../versions/v2022_11_28/models/group_0297.py | 20 +- .../versions/v2022_11_28/models/group_0298.py | 29 +- .../versions/v2022_11_28/models/group_0299.py | 51 +- .../versions/v2022_11_28/models/group_0300.py | 24 +- .../versions/v2022_11_28/models/group_0301.py | 56 +- .../versions/v2022_11_28/models/group_0302.py | 86 +- .../versions/v2022_11_28/models/group_0303.py | 35 +- .../versions/v2022_11_28/models/group_0304.py | 100 +- .../versions/v2022_11_28/models/group_0305.py | 37 +- .../versions/v2022_11_28/models/group_0306.py | 50 +- .../versions/v2022_11_28/models/group_0307.py | 55 +- .../versions/v2022_11_28/models/group_0308.py | 70 +- .../versions/v2022_11_28/models/group_0309.py | 43 +- .../versions/v2022_11_28/models/group_0310.py | 70 +- .../versions/v2022_11_28/models/group_0311.py | 144 +- .../versions/v2022_11_28/models/group_0312.py | 40 +- .../versions/v2022_11_28/models/group_0313.py | 137 +- .../versions/v2022_11_28/models/group_0314.py | 33 +- .../versions/v2022_11_28/models/group_0315.py | 28 +- .../versions/v2022_11_28/models/group_0316.py | 32 +- .../versions/v2022_11_28/models/group_0317.py | 27 +- .../versions/v2022_11_28/models/group_0318.py | 25 +- .../versions/v2022_11_28/models/group_0319.py | 43 +- .../versions/v2022_11_28/models/group_0320.py | 44 +- .../versions/v2022_11_28/models/group_0321.py | 44 +- .../versions/v2022_11_28/models/group_0322.py | 33 +- .../versions/v2022_11_28/models/group_0323.py | 34 +- .../versions/v2022_11_28/models/group_0324.py | 33 +- .../versions/v2022_11_28/models/group_0325.py | 22 +- .../versions/v2022_11_28/models/group_0326.py | 27 +- .../versions/v2022_11_28/models/group_0327.py | 65 +- .../versions/v2022_11_28/models/group_0328.py | 50 +- .../versions/v2022_11_28/models/group_0329.py | 54 +- .../versions/v2022_11_28/models/group_0330.py | 94 +- .../versions/v2022_11_28/models/group_0331.py | 73 +- .../versions/v2022_11_28/models/group_0332.py | 179 +- .../versions/v2022_11_28/models/group_0333.py | 75 +- .../versions/v2022_11_28/models/group_0334.py | 157 +- .../versions/v2022_11_28/models/group_0335.py | 18 +- .../versions/v2022_11_28/models/group_0336.py | 31 +- .../versions/v2022_11_28/models/group_0337.py | 32 +- .../versions/v2022_11_28/models/group_0338.py | 48 +- .../versions/v2022_11_28/models/group_0339.py | 22 +- .../versions/v2022_11_28/models/group_0340.py | 104 +- .../versions/v2022_11_28/models/group_0341.py | 38 +- .../versions/v2022_11_28/models/group_0342.py | 85 +- .../versions/v2022_11_28/models/group_0343.py | 43 +- .../versions/v2022_11_28/models/group_0344.py | 32 +- .../versions/v2022_11_28/models/group_0345.py | 94 +- .../versions/v2022_11_28/models/group_0346.py | 111 +- .../versions/v2022_11_28/models/group_0347.py | 100 +- .../versions/v2022_11_28/models/group_0348.py | 126 +- .../versions/v2022_11_28/models/group_0349.py | 27 +- .../versions/v2022_11_28/models/group_0350.py | 34 +- .../versions/v2022_11_28/models/group_0351.py | 24 +- .../versions/v2022_11_28/models/group_0352.py | 74 +- .../versions/v2022_11_28/models/group_0353.py | 82 +- .../versions/v2022_11_28/models/group_0354.py | 75 +- .../versions/v2022_11_28/models/group_0355.py | 82 +- .../versions/v2022_11_28/models/group_0356.py | 54 +- .../versions/v2022_11_28/models/group_0357.py | 33 +- .../versions/v2022_11_28/models/group_0358.py | 57 +- .../versions/v2022_11_28/models/group_0359.py | 29 +- .../versions/v2022_11_28/models/group_0360.py | 14 +- .../versions/v2022_11_28/models/group_0361.py | 10 +- .../versions/v2022_11_28/models/group_0362.py | 13 +- .../versions/v2022_11_28/models/group_0363.py | 13 +- .../versions/v2022_11_28/models/group_0364.py | 15 +- .../versions/v2022_11_28/models/group_0365.py | 13 +- .../versions/v2022_11_28/models/group_0366.py | 16 +- .../versions/v2022_11_28/models/group_0367.py | 15 +- .../versions/v2022_11_28/models/group_0368.py | 13 +- .../versions/v2022_11_28/models/group_0369.py | 14 +- .../versions/v2022_11_28/models/group_0370.py | 15 +- .../versions/v2022_11_28/models/group_0371.py | 14 +- .../versions/v2022_11_28/models/group_0372.py | 14 +- .../versions/v2022_11_28/models/group_0373.py | 14 +- .../versions/v2022_11_28/models/group_0374.py | 14 +- .../versions/v2022_11_28/models/group_0375.py | 14 +- .../versions/v2022_11_28/models/group_0376.py | 14 +- .../versions/v2022_11_28/models/group_0377.py | 16 +- .../versions/v2022_11_28/models/group_0378.py | 16 +- .../versions/v2022_11_28/models/group_0379.py | 14 +- .../versions/v2022_11_28/models/group_0380.py | 140 +- .../versions/v2022_11_28/models/group_0381.py | 76 +- .../versions/v2022_11_28/models/group_0382.py | 136 +- .../versions/v2022_11_28/models/group_0383.py | 122 +- .../versions/v2022_11_28/models/group_0384.py | 22 +- .../versions/v2022_11_28/models/group_0385.py | 143 +- .../versions/v2022_11_28/models/group_0386.py | 92 +- .../versions/v2022_11_28/models/group_0387.py | 61 +- .../versions/v2022_11_28/models/group_0388.py | 95 +- .../versions/v2022_11_28/models/group_0389.py | 133 +- .../versions/v2022_11_28/models/group_0390.py | 31 +- .../versions/v2022_11_28/models/group_0391.py | 16 +- .../versions/v2022_11_28/models/group_0392.py | 41 +- .../versions/v2022_11_28/models/group_0393.py | 29 +- .../versions/v2022_11_28/models/group_0394.py | 30 +- .../versions/v2022_11_28/models/group_0395.py | 27 +- .../versions/v2022_11_28/models/group_0396.py | 23 +- .../versions/v2022_11_28/models/group_0397.py | 16 +- .../versions/v2022_11_28/models/group_0398.py | 18 +- .../versions/v2022_11_28/models/group_0399.py | 14 +- .../versions/v2022_11_28/models/group_0400.py | 15 +- .../versions/v2022_11_28/models/group_0401.py | 34 +- .../versions/v2022_11_28/models/group_0402.py | 50 +- .../versions/v2022_11_28/models/group_0403.py | 63 +- .../versions/v2022_11_28/models/group_0404.py | 58 +- .../versions/v2022_11_28/models/group_0405.py | 134 +- .../versions/v2022_11_28/models/group_0406.py | 52 +- .../versions/v2022_11_28/models/group_0407.py | 202 +- .../versions/v2022_11_28/models/group_0408.py | 86 +- .../versions/v2022_11_28/models/group_0409.py | 153 +- .../versions/v2022_11_28/models/group_0410.py | 130 +- .../versions/v2022_11_28/models/group_0411.py | 68 +- .../versions/v2022_11_28/models/group_0412.py | 92 +- .../versions/v2022_11_28/models/group_0413.py | 157 +- .../versions/v2022_11_28/models/group_0414.py | 43 +- .../versions/v2022_11_28/models/group_0415.py | 202 +- .../versions/v2022_11_28/models/group_0416.py | 21 +- .../versions/v2022_11_28/models/group_0417.py | 94 +- .../versions/v2022_11_28/models/group_0418.py | 23 +- .../versions/v2022_11_28/models/group_0419.py | 43 +- .../versions/v2022_11_28/models/group_0420.py | 18 +- .../versions/v2022_11_28/models/group_0421.py | 28 +- .../versions/v2022_11_28/models/group_0422.py | 19 +- .../versions/v2022_11_28/models/group_0423.py | 65 +- .../versions/v2022_11_28/models/group_0424.py | 41 +- .../versions/v2022_11_28/models/group_0425.py | 65 +- .../versions/v2022_11_28/models/group_0426.py | 43 +- .../versions/v2022_11_28/models/group_0427.py | 371 +- .../versions/v2022_11_28/models/group_0428.py | 85 +- .../versions/v2022_11_28/models/group_0429.py | 387 +- .../versions/v2022_11_28/models/group_0430.py | 119 +- .../versions/v2022_11_28/models/group_0431.py | 67 +- .../versions/v2022_11_28/models/group_0432.py | 80 +- .../versions/v2022_11_28/models/group_0433.py | 80 +- .../versions/v2022_11_28/models/group_0434.py | 24 +- .../versions/v2022_11_28/models/group_0435.py | 46 +- .../versions/v2022_11_28/models/group_0436.py | 92 +- .../versions/v2022_11_28/models/group_0437.py | 147 +- .../versions/v2022_11_28/models/group_0438.py | 33 +- .../versions/v2022_11_28/models/group_0439.py | 176 +- .../versions/v2022_11_28/models/group_0440.py | 88 +- .../versions/v2022_11_28/models/group_0441.py | 22 +- .../versions/v2022_11_28/models/group_0442.py | 99 +- .../versions/v2022_11_28/models/group_0443.py | 29 +- .../versions/v2022_11_28/models/group_0444.py | 347 +- .../versions/v2022_11_28/models/group_0445.py | 73 +- .../versions/v2022_11_28/models/group_0446.py | 135 +- .../versions/v2022_11_28/models/group_0447.py | 35 +- .../versions/v2022_11_28/models/group_0448.py | 393 +- .../versions/v2022_11_28/models/group_0449.py | 73 +- .../versions/v2022_11_28/models/group_0450.py | 102 +- .../versions/v2022_11_28/models/group_0451.py | 57 +- .../versions/v2022_11_28/models/group_0452.py | 100 +- .../versions/v2022_11_28/models/group_0453.py | 60 +- .../versions/v2022_11_28/models/group_0454.py | 231 +- .../versions/v2022_11_28/models/group_0455.py | 48 +- .../versions/v2022_11_28/models/group_0456.py | 231 +- .../versions/v2022_11_28/models/group_0457.py | 51 +- .../versions/v2022_11_28/models/group_0458.py | 73 +- .../versions/v2022_11_28/models/group_0459.py | 29 +- .../versions/v2022_11_28/models/group_0460.py | 36 +- .../versions/v2022_11_28/models/group_0461.py | 41 +- .../versions/v2022_11_28/models/group_0462.py | 129 +- .../versions/v2022_11_28/models/group_0463.py | 63 +- .../versions/v2022_11_28/models/group_0464.py | 1087 +- .../versions/v2022_11_28/models/group_0465.py | 187 +- .../versions/v2022_11_28/models/group_0466.py | 1029 +- .../versions/v2022_11_28/models/group_0467.py | 207 +- .../versions/v2022_11_28/models/group_0468.py | 148 +- .../versions/v2022_11_28/models/group_0469.py | 129 +- .../versions/v2022_11_28/models/group_0470.py | 220 +- .../versions/v2022_11_28/models/group_0471.py | 143 +- .../versions/v2022_11_28/models/group_0472.py | 205 +- .../versions/v2022_11_28/models/group_0473.py | 114 +- .../versions/v2022_11_28/models/group_0474.py | 159 +- .../versions/v2022_11_28/models/group_0475.py | 69 +- .../versions/v2022_11_28/models/group_0476.py | 77 +- .../versions/v2022_11_28/models/group_0477.py | 23 +- .../versions/v2022_11_28/models/group_0478.py | 23 +- .../versions/v2022_11_28/models/group_0479.py | 187 +- .../versions/v2022_11_28/models/group_0480.py | 30 +- .../versions/v2022_11_28/models/group_0481.py | 211 +- .../versions/v2022_11_28/models/group_0482.py | 18 +- .../versions/v2022_11_28/models/group_0483.py | 12 +- .../versions/v2022_11_28/models/group_0484.py | 37 +- .../versions/v2022_11_28/models/group_0485.py | 12 +- .../versions/v2022_11_28/models/group_0486.py | 37 +- .../versions/v2022_11_28/models/group_0487.py | 12 +- .../versions/v2022_11_28/models/group_0488.py | 332 +- .../versions/v2022_11_28/models/group_0489.py | 343 +- .../versions/v2022_11_28/models/group_0490.py | 138 +- .../versions/v2022_11_28/models/group_0491.py | 365 +- .../versions/v2022_11_28/models/group_0492.py | 388 +- .../versions/v2022_11_28/models/group_0493.py | 144 +- .../versions/v2022_11_28/models/group_0494.py | 133 +- .../versions/v2022_11_28/models/group_0495.py | 103 +- .../versions/v2022_11_28/models/group_0496.py | 139 +- .../versions/v2022_11_28/models/group_0497.py | 251 +- .../versions/v2022_11_28/models/group_0498.py | 175 +- .../versions/v2022_11_28/models/group_0499.py | 131 +- .../versions/v2022_11_28/models/group_0500.py | 50 +- .../versions/v2022_11_28/models/group_0501.py | 18 +- .../versions/v2022_11_28/models/group_0502.py | 32 +- .../versions/v2022_11_28/models/group_0503.py | 36 +- .../versions/v2022_11_28/models/group_0504.py | 36 +- .../versions/v2022_11_28/models/group_0505.py | 48 +- .../versions/v2022_11_28/models/group_0506.py | 36 +- .../versions/v2022_11_28/models/group_0507.py | 20 +- .../versions/v2022_11_28/models/group_0508.py | 20 +- .../versions/v2022_11_28/models/group_0509.py | 20 +- .../versions/v2022_11_28/models/group_0510.py | 20 +- .../versions/v2022_11_28/models/group_0511.py | 20 +- .../versions/v2022_11_28/models/group_0512.py | 34 +- .../versions/v2022_11_28/models/group_0513.py | 34 +- .../versions/v2022_11_28/models/group_0514.py | 589 +- .../versions/v2022_11_28/models/group_0515.py | 56 +- .../versions/v2022_11_28/models/group_0516.py | 399 +- .../versions/v2022_11_28/models/group_0517.py | 474 +- .../versions/v2022_11_28/models/group_0518.py | 228 +- .../versions/v2022_11_28/models/group_0519.py | 638 +- .../versions/v2022_11_28/models/group_0520.py | 488 +- .../versions/v2022_11_28/models/group_0521.py | 859 +- .../versions/v2022_11_28/models/group_0522.py | 22 +- .../versions/v2022_11_28/models/group_0523.py | 61 +- .../versions/v2022_11_28/models/group_0524.py | 22 +- .../versions/v2022_11_28/models/group_0525.py | 41 +- .../versions/v2022_11_28/models/group_0526.py | 22 +- .../versions/v2022_11_28/models/group_0527.py | 41 +- .../versions/v2022_11_28/models/group_0528.py | 48 +- .../versions/v2022_11_28/models/group_0529.py | 22 +- .../versions/v2022_11_28/models/group_0530.py | 48 +- .../versions/v2022_11_28/models/group_0531.py | 22 +- .../versions/v2022_11_28/models/group_0532.py | 20 +- .../versions/v2022_11_28/models/group_0533.py | 22 +- .../versions/v2022_11_28/models/group_0534.py | 41 +- .../versions/v2022_11_28/models/group_0535.py | 36 +- .../versions/v2022_11_28/models/group_0536.py | 43 +- .../versions/v2022_11_28/models/group_0537.py | 34 +- .../versions/v2022_11_28/models/group_0538.py | 22 +- .../versions/v2022_11_28/models/group_0539.py | 30 +- .../versions/v2022_11_28/models/group_0540.py | 193 +- .../versions/v2022_11_28/models/group_0541.py | 192 +- .../versions/v2022_11_28/models/group_0542.py | 181 +- .../versions/v2022_11_28/models/group_0543.py | 240 +- .../versions/v2022_11_28/models/group_0544.py | 21 +- .../versions/v2022_11_28/models/group_0545.py | 167 +- .../versions/v2022_11_28/models/group_0546.py | 47 +- .../versions/v2022_11_28/models/group_0547.py | 52 +- .../versions/v2022_11_28/models/group_0548.py | 23 +- .../versions/v2022_11_28/models/group_0549.py | 54 +- .../versions/v2022_11_28/models/group_0550.py | 50 +- .../versions/v2022_11_28/models/group_0551.py | 54 +- .../versions/v2022_11_28/models/group_0552.py | 121 +- .../versions/v2022_11_28/models/group_0553.py | 18 +- .../versions/v2022_11_28/models/group_0554.py | 117 +- .../versions/v2022_11_28/models/group_0555.py | 115 +- .../versions/v2022_11_28/models/group_0556.py | 186 +- .../versions/v2022_11_28/models/group_0557.py | 131 +- .../versions/v2022_11_28/models/group_0558.py | 147 +- .../versions/v2022_11_28/models/group_0559.py | 154 +- .../versions/v2022_11_28/models/group_0560.py | 79 +- .../versions/v2022_11_28/models/group_0561.py | 74 +- .../versions/v2022_11_28/models/group_0562.py | 53 +- .../versions/v2022_11_28/models/group_0563.py | 101 +- .../versions/v2022_11_28/models/group_0564.py | 185 +- .../versions/v2022_11_28/models/group_0565.py | 175 +- .../versions/v2022_11_28/models/group_0566.py | 48 +- .../versions/v2022_11_28/models/group_0567.py | 67 +- .../versions/v2022_11_28/models/group_0568.py | 186 +- .../versions/v2022_11_28/models/group_0569.py | 100 +- .../versions/v2022_11_28/models/group_0570.py | 163 +- .../versions/v2022_11_28/models/group_0571.py | 37 +- .../versions/v2022_11_28/models/group_0572.py | 70 +- .../versions/v2022_11_28/models/group_0573.py | 112 +- .../versions/v2022_11_28/models/group_0574.py | 115 +- .../versions/v2022_11_28/models/group_0575.py | 60 +- .../versions/v2022_11_28/models/group_0577.py | 2 +- .../versions/v2022_11_28/models/group_0578.py | 2 +- .../versions/v2022_11_28/models/group_0579.py | 12 +- .../versions/v2022_11_28/models/group_0580.py | 14 +- .../versions/v2022_11_28/models/group_0581.py | 10 +- .../versions/v2022_11_28/models/group_0587.py | 165 +- .../versions/v2022_11_28/models/group_0588.py | 173 +- .../versions/v2022_11_28/models/group_0589.py | 49 +- .../versions/v2022_11_28/models/group_0590.py | 64 +- .../versions/v2022_11_28/models/group_0591.py | 29 +- .../versions/v2022_11_28/models/group_0592.py | 227 +- .../versions/v2022_11_28/models/group_0593.py | 103 +- .../versions/v2022_11_28/models/group_0594.py | 193 +- .../versions/v2022_11_28/models/group_0595.py | 62 +- .../versions/v2022_11_28/models/group_0596.py | 105 +- .../versions/v2022_11_28/models/group_0597.py | 111 +- .../versions/v2022_11_28/models/group_0598.py | 54 +- .../versions/v2022_11_28/models/group_0599.py | 130 +- .../versions/v2022_11_28/models/group_0600.py | 149 +- .../versions/v2022_11_28/models/group_0601.py | 49 +- .../versions/v2022_11_28/models/group_0602.py | 62 +- .../versions/v2022_11_28/models/group_0603.py | 408 +- .../versions/v2022_11_28/models/group_0604.py | 417 +- .../versions/v2022_11_28/models/group_0605.py | 422 +- .../versions/v2022_11_28/models/group_0606.py | 436 +- .../versions/v2022_11_28/models/group_0607.py | 422 +- .../versions/v2022_11_28/models/group_0608.py | 426 +- .../versions/v2022_11_28/models/group_0609.py | 419 +- .../versions/v2022_11_28/models/group_0610.py | 426 +- .../versions/v2022_11_28/models/group_0611.py | 406 +- .../versions/v2022_11_28/models/group_0612.py | 414 +- .../versions/v2022_11_28/models/group_0613.py | 409 +- .../versions/v2022_11_28/models/group_0614.py | 421 +- .../versions/v2022_11_28/models/group_0615.py | 246 +- .../versions/v2022_11_28/models/group_0616.py | 518 +- .../versions/v2022_11_28/models/group_0617.py | 211 +- .../versions/v2022_11_28/models/group_0618.py | 419 +- .../versions/v2022_11_28/models/group_0619.py | 22 +- .../versions/v2022_11_28/models/group_0620.py | 416 +- .../versions/v2022_11_28/models/group_0621.py | 427 +- .../versions/v2022_11_28/models/group_0622.py | 247 +- .../versions/v2022_11_28/models/group_0623.py | 510 +- .../versions/v2022_11_28/models/group_0624.py | 438 +- .../versions/v2022_11_28/models/group_0625.py | 28 +- .../versions/v2022_11_28/models/group_0626.py | 28 +- .../versions/v2022_11_28/models/group_0627.py | 24 +- .../versions/v2022_11_28/models/group_0628.py | 408 +- .../versions/v2022_11_28/models/group_0629.py | 417 +- .../versions/v2022_11_28/models/group_0630.py | 28 +- .../versions/v2022_11_28/models/group_0631.py | 35 +- .../versions/v2022_11_28/models/group_0632.py | 24 +- .../versions/v2022_11_28/models/group_0633.py | 74 +- .../versions/v2022_11_28/models/group_0634.py | 86 +- .../versions/v2022_11_28/models/group_0635.py | 81 +- .../versions/v2022_11_28/models/group_0636.py | 58 +- .../versions/v2022_11_28/models/group_0637.py | 60 +- .../versions/v2022_11_28/models/group_0638.py | 81 +- .../versions/v2022_11_28/models/group_0639.py | 79 +- .../versions/v2022_11_28/models/group_0640.py | 80 +- .../versions/v2022_11_28/models/group_0641.py | 61 +- .../versions/v2022_11_28/models/group_0642.py | 68 +- .../versions/v2022_11_28/models/group_0643.py | 32 +- .../versions/v2022_11_28/models/group_0644.py | 76 +- .../versions/v2022_11_28/models/group_0645.py | 22 +- .../versions/v2022_11_28/models/group_0646.py | 71 +- .../versions/v2022_11_28/models/group_0647.py | 68 +- .../versions/v2022_11_28/models/group_0648.py | 22 +- .../versions/v2022_11_28/models/group_0649.py | 22 +- .../versions/v2022_11_28/models/group_0650.py | 73 +- .../versions/v2022_11_28/models/group_0651.py | 75 +- .../versions/v2022_11_28/models/group_0652.py | 33 +- .../versions/v2022_11_28/models/group_0653.py | 20 +- .../versions/v2022_11_28/models/group_0654.py | 28 +- .../versions/v2022_11_28/models/group_0655.py | 23 +- .../versions/v2022_11_28/models/group_0656.py | 84 +- .../versions/v2022_11_28/models/group_0657.py | 84 +- .../versions/v2022_11_28/models/group_0658.py | 44 +- .../versions/v2022_11_28/models/group_0659.py | 82 +- .../versions/v2022_11_28/models/group_0660.py | 76 +- .../versions/v2022_11_28/models/group_0661.py | 102 +- .../versions/v2022_11_28/models/group_0662.py | 542 +- .../versions/v2022_11_28/models/group_0663.py | 597 +- .../versions/v2022_11_28/models/group_0664.py | 111 +- .../versions/v2022_11_28/models/group_0665.py | 149 +- .../versions/v2022_11_28/models/group_0666.py | 175 +- .../versions/v2022_11_28/models/group_0667.py | 99 +- .../versions/v2022_11_28/models/group_0668.py | 18 +- .../versions/v2022_11_28/models/group_0669.py | 21 +- .../versions/v2022_11_28/models/group_0670.py | 29 +- .../versions/v2022_11_28/models/group_0671.py | 42 +- .../versions/v2022_11_28/models/group_0672.py | 69 +- .../versions/v2022_11_28/models/group_0673.py | 62 +- .../versions/v2022_11_28/models/group_0674.py | 63 +- .../versions/v2022_11_28/models/group_0675.py | 39 +- .../versions/v2022_11_28/models/group_0676.py | 85 +- .../versions/v2022_11_28/models/group_0677.py | 92 +- .../versions/v2022_11_28/models/group_0678.py | 103 +- .../versions/v2022_11_28/models/group_0679.py | 77 +- .../versions/v2022_11_28/models/group_0680.py | 60 +- .../versions/v2022_11_28/models/group_0681.py | 91 +- .../versions/v2022_11_28/models/group_0682.py | 26 +- .../versions/v2022_11_28/models/group_0683.py | 28 +- .../versions/v2022_11_28/models/group_0684.py | 47 +- .../versions/v2022_11_28/models/group_0685.py | 43 +- .../versions/v2022_11_28/models/group_0686.py | 22 +- .../versions/v2022_11_28/models/group_0687.py | 30 +- .../versions/v2022_11_28/models/group_0688.py | 68 +- .../versions/v2022_11_28/models/group_0689.py | 64 +- .../versions/v2022_11_28/models/group_0690.py | 33 +- .../versions/v2022_11_28/models/group_0691.py | 19 +- .../versions/v2022_11_28/models/group_0692.py | 19 +- .../versions/v2022_11_28/models/group_0693.py | 76 +- .../versions/v2022_11_28/models/group_0694.py | 82 +- .../versions/v2022_11_28/models/group_0695.py | 42 +- .../versions/v2022_11_28/models/group_0696.py | 40 +- .../versions/v2022_11_28/models/group_0697.py | 16 +- .../versions/v2022_11_28/models/group_0698.py | 99 +- .../versions/v2022_11_28/models/group_0699.py | 99 +- .../versions/v2022_11_28/models/group_0700.py | 44 +- .../versions/v2022_11_28/models/group_0701.py | 22 +- .../versions/v2022_11_28/models/group_0702.py | 21 +- .../versions/v2022_11_28/models/group_0703.py | 16 +- .../versions/v2022_11_28/models/group_0704.py | 83 +- .../versions/v2022_11_28/models/group_0705.py | 95 +- .../versions/v2022_11_28/models/group_0706.py | 1141 +- .../versions/v2022_11_28/models/group_0707.py | 495 +- .../versions/v2022_11_28/models/group_0708.py | 350 +- .../versions/v2022_11_28/models/group_0709.py | 1190 +-- .../versions/v2022_11_28/models/group_0710.py | 20 +- .../versions/v2022_11_28/models/group_0711.py | 32 +- .../versions/v2022_11_28/models/group_0712.py | 1161 +- .../versions/v2022_11_28/models/group_0713.py | 1172 +- .../versions/v2022_11_28/models/group_0714.py | 1158 +- .../versions/v2022_11_28/models/group_0715.py | 433 +- .../versions/v2022_11_28/models/group_0716.py | 334 +- .../versions/v2022_11_28/models/group_0717.py | 1136 +- .../versions/v2022_11_28/models/group_0718.py | 32 +- .../versions/v2022_11_28/models/group_0719.py | 20 +- .../versions/v2022_11_28/models/group_0720.py | 20 +- .../versions/v2022_11_28/models/group_0721.py | 1355 ++- .../versions/v2022_11_28/models/group_0722.py | 538 +- .../versions/v2022_11_28/models/group_0723.py | 348 +- .../versions/v2022_11_28/models/group_0724.py | 516 +- .../versions/v2022_11_28/models/group_0725.py | 524 +- .../versions/v2022_11_28/models/group_0726.py | 715 +- .../versions/v2022_11_28/models/group_0727.py | 402 +- .../versions/v2022_11_28/models/group_0728.py | 488 +- .../versions/v2022_11_28/models/group_0729.py | 415 +- .../versions/v2022_11_28/models/group_0730.py | 596 +- .../versions/v2022_11_28/models/group_0731.py | 651 +- .../versions/v2022_11_28/models/group_0732.py | 504 +- .../versions/v2022_11_28/models/group_0733.py | 796 +- .../versions/v2022_11_28/models/group_0734.py | 412 +- .../versions/v2022_11_28/models/group_0735.py | 360 +- .../versions/v2022_11_28/models/group_0736.py | 385 +- .../versions/v2022_11_28/models/group_0737.py | 1134 +- .../versions/v2022_11_28/models/group_0738.py | 393 +- .../versions/v2022_11_28/models/group_0739.py | 110 +- .../versions/v2022_11_28/models/group_0740.py | 588 +- .../versions/v2022_11_28/models/group_0741.py | 640 +- .../versions/v2022_11_28/models/group_0742.py | 102 +- .../versions/v2022_11_28/models/group_0743.py | 171 +- .../versions/v2022_11_28/models/group_0744.py | 229 +- .../versions/v2022_11_28/models/group_0745.py | 20 +- .../versions/v2022_11_28/models/group_0746.py | 83 +- .../versions/v2022_11_28/models/group_0747.py | 211 +- .../versions/v2022_11_28/models/group_0748.py | 167 +- .../versions/v2022_11_28/models/group_0749.py | 22 +- .../versions/v2022_11_28/models/group_0750.py | 22 +- .../versions/v2022_11_28/models/group_0751.py | 27 +- .../versions/v2022_11_28/models/group_0752.py | 20 +- .../versions/v2022_11_28/models/group_0753.py | 26 +- .../versions/v2022_11_28/models/group_0754.py | 18 +- .../versions/v2022_11_28/models/group_0755.py | 18 +- .../versions/v2022_11_28/models/group_0756.py | 45 +- .../versions/v2022_11_28/models/group_0757.py | 87 +- .../versions/v2022_11_28/models/group_0758.py | 72 +- .../versions/v2022_11_28/models/group_0759.py | 18 +- .../versions/v2022_11_28/models/group_0760.py | 18 +- .../versions/v2022_11_28/models/group_0761.py | 45 +- .../versions/v2022_11_28/models/group_0762.py | 53 +- .../versions/v2022_11_28/models/group_0763.py | 20 +- .../versions/v2022_11_28/models/group_0764.py | 22 +- .../versions/v2022_11_28/models/group_0765.py | 68 +- .../versions/v2022_11_28/models/group_0766.py | 49 +- .../versions/v2022_11_28/models/group_0767.py | 109 +- .../versions/v2022_11_28/models/group_0768.py | 183 +- .../versions/v2022_11_28/models/group_0769.py | 190 +- .../versions/v2022_11_28/models/group_0770.py | 218 +- .../versions/v2022_11_28/models/group_0771.py | 105 +- .../versions/v2022_11_28/models/group_0772.py | 23 +- .../versions/v2022_11_28/models/group_0773.py | 85 +- .../versions/v2022_11_28/models/group_0774.py | 85 +- .../versions/v2022_11_28/models/group_0775.py | 83 +- .../versions/v2022_11_28/models/group_0776.py | 90 +- .../versions/v2022_11_28/models/group_0777.py | 28 +- .../versions/v2022_11_28/models/group_0778.py | 36 +- .../versions/v2022_11_28/models/group_0779.py | 50 +- .../versions/v2022_11_28/models/group_0780.py | 20 +- .../versions/v2022_11_28/models/group_0781.py | 20 +- .../versions/v2022_11_28/models/group_0782.py | 20 +- .../versions/v2022_11_28/models/group_0783.py | 58 +- .../versions/v2022_11_28/models/group_0784.py | 61 +- .../versions/v2022_11_28/models/group_0785.py | 20 +- .../versions/v2022_11_28/models/group_0786.py | 22 +- .../versions/v2022_11_28/models/group_0787.py | 155 +- .../versions/v2022_11_28/models/group_0788.py | 150 +- .../versions/v2022_11_28/models/group_0789.py | 44 +- .../versions/v2022_11_28/models/group_0790.py | 16 +- .../versions/v2022_11_28/models/group_0791.py | 41 +- .../versions/v2022_11_28/models/group_0792.py | 20 +- .../versions/v2022_11_28/models/group_0793.py | 44 +- .../versions/v2022_11_28/models/group_0794.py | 48 +- .../versions/v2022_11_28/models/group_0795.py | 22 +- .../versions/v2022_11_28/models/group_0796.py | 26 +- .../versions/v2022_11_28/models/group_0797.py | 30 +- .../versions/v2022_11_28/models/group_0798.py | 22 +- .../versions/v2022_11_28/models/group_0799.py | 217 +- .../versions/v2022_11_28/models/group_0800.py | 233 +- .../versions/v2022_11_28/models/group_0801.py | 21 +- .../versions/v2022_11_28/models/group_0802.py | 21 +- .../versions/v2022_11_28/models/group_0803.py | 21 +- .../versions/v2022_11_28/models/group_0804.py | 52 +- .../versions/v2022_11_28/models/group_0805.py | 18 +- .../versions/v2022_11_28/models/group_0806.py | 28 +- .../versions/v2022_11_28/models/group_0807.py | 18 +- .../versions/v2022_11_28/models/group_0808.py | 46 +- .../versions/v2022_11_28/models/group_0809.py | 233 +- .../versions/v2022_11_28/models/group_0810.py | 80 +- .../versions/v2022_11_28/models/group_0811.py | 66 +- .../versions/v2022_11_28/models/group_0812.py | 171 +- .../versions/v2022_11_28/models/group_0813.py | 183 +- .../versions/v2022_11_28/models/group_0814.py | 235 +- .../versions/v2022_11_28/models/group_0815.py | 32 +- .../versions/v2022_11_28/models/group_0816.py | 102 +- .../versions/v2022_11_28/models/group_0817.py | 100 +- .../versions/v2022_11_28/models/group_0818.py | 118 +- .../versions/v2022_11_28/models/group_0819.py | 144 +- .../versions/v2022_11_28/models/group_0820.py | 89 +- .../versions/v2022_11_28/models/group_0821.py | 86 +- .../versions/v2022_11_28/models/group_0822.py | 108 +- .../versions/v2022_11_28/models/group_0823.py | 44 +- .../versions/v2022_11_28/models/group_0824.py | 485 +- .../versions/v2022_11_28/models/group_0825.py | 179 +- .../versions/v2022_11_28/models/group_0826.py | 186 +- .../versions/v2022_11_28/models/group_0827.py | 495 +- .../versions/v2022_11_28/models/group_0828.py | 39 +- .../versions/v2022_11_28/models/group_0829.py | 28 +- .../versions/v2022_11_28/models/group_0830.py | 27 +- .../versions/v2022_11_28/models/group_0831.py | 28 +- .../versions/v2022_11_28/models/group_0832.py | 26 +- .../versions/v2022_11_28/models/group_0833.py | 10 +- .../versions/v2022_11_28/models/group_0834.py | 10 +- .../versions/v2022_11_28/models/group_0835.py | 10 +- .../versions/v2022_11_28/models/group_0836.py | 35 +- .../versions/v2022_11_28/models/group_0837.py | 41 +- .../versions/v2022_11_28/models/group_0838.py | 18 +- .../versions/v2022_11_28/models/group_0839.py | 146 +- .../versions/v2022_11_28/models/group_0840.py | 47 +- .../versions/v2022_11_28/models/group_0841.py | 128 +- .../versions/v2022_11_28/models/group_0842.py | 17 +- .../versions/v2022_11_28/models/group_0843.py | 17 +- .../versions/v2022_11_28/models/group_0844.py | 32 +- .../versions/v2022_11_28/models/group_0845.py | 36 +- .../versions/v2022_11_28/models/group_0846.py | 38 +- .../versions/v2022_11_28/models/group_0847.py | 45 +- .../versions/v2022_11_28/models/group_0848.py | 41 +- .../versions/v2022_11_28/models/group_0849.py | 8 +- .../versions/v2022_11_28/models/group_0850.py | 12 +- .../versions/v2022_11_28/models/group_0851.py | 18 +- .../versions/v2022_11_28/models/group_0852.py | 23 +- .../versions/v2022_11_28/models/group_0853.py | 21 +- .../versions/v2022_11_28/models/group_0854.py | 18 +- .../versions/v2022_11_28/models/group_0855.py | 12 +- .../versions/v2022_11_28/models/group_0856.py | 19 +- .../versions/v2022_11_28/models/group_0857.py | 23 +- .../versions/v2022_11_28/models/group_0858.py | 123 +- .../versions/v2022_11_28/models/group_0859.py | 141 +- .../versions/v2022_11_28/models/group_0860.py | 33 +- .../versions/v2022_11_28/models/group_0861.py | 53 +- .../versions/v2022_11_28/models/group_0862.py | 53 +- .../versions/v2022_11_28/models/group_0863.py | 10 +- .../versions/v2022_11_28/models/group_0864.py | 12 +- .../versions/v2022_11_28/models/group_0865.py | 12 +- .../versions/v2022_11_28/models/group_0866.py | 27 +- .../versions/v2022_11_28/models/group_0867.py | 26 +- .../versions/v2022_11_28/models/group_0868.py | 23 +- .../versions/v2022_11_28/models/group_0869.py | 15 +- .../versions/v2022_11_28/models/group_0870.py | 51 +- .../versions/v2022_11_28/models/group_0871.py | 50 +- .../versions/v2022_11_28/models/group_0872.py | 21 +- .../versions/v2022_11_28/models/group_0873.py | 49 +- .../versions/v2022_11_28/models/group_0874.py | 12 +- .../versions/v2022_11_28/models/group_0875.py | 15 +- .../versions/v2022_11_28/models/group_0876.py | 15 +- .../versions/v2022_11_28/models/group_0877.py | 15 +- .../versions/v2022_11_28/models/group_0878.py | 15 +- .../versions/v2022_11_28/models/group_0879.py | 29 +- .../versions/v2022_11_28/models/group_0880.py | 29 +- .../versions/v2022_11_28/models/group_0881.py | 18 +- .../versions/v2022_11_28/models/group_0882.py | 18 +- .../versions/v2022_11_28/models/group_0883.py | 11 +- .../versions/v2022_11_28/models/group_0884.py | 19 +- .../versions/v2022_11_28/models/group_0885.py | 36 +- .../versions/v2022_11_28/models/group_0886.py | 38 +- .../versions/v2022_11_28/models/group_0887.py | 28 +- .../versions/v2022_11_28/models/group_0888.py | 15 +- .../versions/v2022_11_28/models/group_0889.py | 40 +- .../versions/v2022_11_28/models/group_0890.py | 36 +- .../versions/v2022_11_28/models/group_0891.py | 17 +- .../versions/v2022_11_28/models/group_0892.py | 26 +- .../versions/v2022_11_28/models/group_0893.py | 15 +- .../versions/v2022_11_28/models/group_0894.py | 22 +- .../versions/v2022_11_28/models/group_0895.py | 56 +- .../versions/v2022_11_28/models/group_0896.py | 56 +- .../versions/v2022_11_28/models/group_0897.py | 12 +- .../versions/v2022_11_28/models/group_0898.py | 83 +- .../versions/v2022_11_28/models/group_0899.py | 118 +- .../versions/v2022_11_28/models/group_0900.py | 53 +- .../versions/v2022_11_28/models/group_0901.py | 202 +- .../versions/v2022_11_28/models/group_0902.py | 184 +- .../versions/v2022_11_28/models/group_0903.py | 195 +- .../versions/v2022_11_28/models/group_0904.py | 184 +- .../versions/v2022_11_28/models/group_0905.py | 17 +- .../versions/v2022_11_28/models/group_0906.py | 17 +- .../versions/v2022_11_28/models/group_0907.py | 27 +- .../versions/v2022_11_28/models/group_0908.py | 31 +- .../versions/v2022_11_28/models/group_0909.py | 25 +- .../versions/v2022_11_28/models/group_0910.py | 10 +- .../versions/v2022_11_28/models/group_0911.py | 45 +- .../versions/v2022_11_28/models/group_0912.py | 40 +- .../versions/v2022_11_28/models/group_0913.py | 31 +- .../versions/v2022_11_28/models/group_0914.py | 15 +- .../versions/v2022_11_28/models/group_0915.py | 15 +- .../versions/v2022_11_28/models/group_0916.py | 18 +- .../versions/v2022_11_28/models/group_0917.py | 18 +- .../versions/v2022_11_28/models/group_0918.py | 19 +- .../versions/v2022_11_28/models/group_0919.py | 19 +- .../versions/v2022_11_28/models/group_0920.py | 18 +- .../versions/v2022_11_28/models/group_0921.py | 18 +- .../versions/v2022_11_28/models/group_0922.py | 18 +- .../versions/v2022_11_28/models/group_0923.py | 34 +- .../versions/v2022_11_28/models/group_0924.py | 41 +- .../versions/v2022_11_28/models/group_0925.py | 31 +- .../versions/v2022_11_28/models/group_0926.py | 15 +- .../versions/v2022_11_28/models/group_0927.py | 49 +- .../versions/v2022_11_28/models/group_0928.py | 27 +- .../versions/v2022_11_28/models/group_0929.py | 35 +- .../versions/v2022_11_28/models/group_0930.py | 28 +- .../versions/v2022_11_28/models/group_0931.py | 15 +- .../versions/v2022_11_28/models/group_0932.py | 41 +- .../versions/v2022_11_28/models/group_0933.py | 46 +- .../versions/v2022_11_28/models/group_0934.py | 20 +- .../versions/v2022_11_28/models/group_0935.py | 43 +- .../versions/v2022_11_28/models/group_0936.py | 46 +- .../versions/v2022_11_28/models/group_0937.py | 18 +- .../versions/v2022_11_28/models/group_0938.py | 15 +- .../versions/v2022_11_28/models/group_0939.py | 27 +- .../versions/v2022_11_28/models/group_0940.py | 20 +- .../versions/v2022_11_28/models/group_0941.py | 25 +- .../versions/v2022_11_28/models/group_0942.py | 15 +- .../versions/v2022_11_28/models/group_0943.py | 55 +- .../versions/v2022_11_28/models/group_0944.py | 62 +- .../versions/v2022_11_28/models/group_0945.py | 46 +- .../versions/v2022_11_28/models/group_0946.py | 56 +- .../versions/v2022_11_28/models/group_0947.py | 38 +- .../versions/v2022_11_28/models/group_0948.py | 21 +- .../versions/v2022_11_28/models/group_0949.py | 19 +- .../versions/v2022_11_28/models/group_0950.py | 128 +- .../versions/v2022_11_28/models/group_0951.py | 201 +- .../versions/v2022_11_28/models/group_0952.py | 59 +- .../versions/v2022_11_28/models/group_0953.py | 114 +- .../versions/v2022_11_28/models/group_0954.py | 44 +- .../versions/v2022_11_28/models/group_0955.py | 17 +- .../versions/v2022_11_28/models/group_0956.py | 40 +- .../versions/v2022_11_28/models/group_0957.py | 28 +- .../versions/v2022_11_28/models/group_0958.py | 33 +- .../versions/v2022_11_28/models/group_0959.py | 20 +- .../versions/v2022_11_28/models/group_0960.py | 17 +- .../versions/v2022_11_28/models/group_0961.py | 14 +- .../versions/v2022_11_28/models/group_0962.py | 18 +- .../versions/v2022_11_28/models/group_0963.py | 18 +- .../versions/v2022_11_28/models/group_0964.py | 16 +- .../versions/v2022_11_28/models/group_0965.py | 13 +- .../versions/v2022_11_28/models/group_0966.py | 16 +- .../versions/v2022_11_28/models/group_0967.py | 14 +- .../versions/v2022_11_28/models/group_0968.py | 14 +- .../versions/v2022_11_28/models/group_0969.py | 17 +- .../versions/v2022_11_28/models/group_0970.py | 19 +- .../versions/v2022_11_28/models/group_0971.py | 20 +- .../versions/v2022_11_28/models/group_0972.py | 21 +- .../versions/v2022_11_28/models/group_0973.py | 31 +- .../versions/v2022_11_28/models/group_0974.py | 21 +- .../versions/v2022_11_28/models/group_0975.py | 28 +- .../versions/v2022_11_28/models/group_0976.py | 12 +- .../versions/v2022_11_28/models/group_0977.py | 17 +- .../versions/v2022_11_28/models/group_0978.py | 33 +- .../versions/v2022_11_28/models/group_0979.py | 31 +- .../versions/v2022_11_28/models/group_0980.py | 15 +- .../versions/v2022_11_28/models/group_0981.py | 16 +- .../versions/v2022_11_28/models/group_0982.py | 28 +- .../versions/v2022_11_28/models/group_0983.py | 28 +- .../versions/v2022_11_28/models/group_0984.py | 16 +- .../versions/v2022_11_28/models/group_0985.py | 16 +- .../versions/v2022_11_28/models/group_0986.py | 13 +- .../versions/v2022_11_28/models/group_0987.py | 284 +- .../versions/v2022_11_28/models/group_0988.py | 282 +- .../versions/v2022_11_28/models/group_0989.py | 17 +- .../versions/v2022_11_28/models/group_0990.py | 19 +- .../versions/v2022_11_28/models/group_0991.py | 22 +- .../versions/v2022_11_28/models/group_0992.py | 12 +- .../versions/v2022_11_28/models/group_0993.py | 23 +- .../versions/v2022_11_28/models/group_0994.py | 23 +- .../versions/v2022_11_28/models/group_0995.py | 29 +- .../versions/v2022_11_28/models/group_0996.py | 21 +- .../versions/v2022_11_28/models/group_0997.py | 11 +- .../versions/v2022_11_28/models/group_0998.py | 19 +- .../versions/v2022_11_28/models/group_0999.py | 12 +- .../versions/v2022_11_28/models/group_1000.py | 14 +- .../versions/v2022_11_28/models/group_1001.py | 12 +- .../versions/v2022_11_28/models/group_1002.py | 21 +- .../versions/v2022_11_28/models/group_1003.py | 20 +- .../versions/v2022_11_28/models/group_1004.py | 8 +- .../versions/v2022_11_28/models/group_1005.py | 17 +- .../versions/v2022_11_28/models/group_1006.py | 17 +- .../versions/v2022_11_28/models/group_1007.py | 17 +- .../versions/v2022_11_28/models/group_1008.py | 14 +- .../versions/v2022_11_28/models/group_1009.py | 14 +- .../versions/v2022_11_28/models/group_1010.py | 40 +- .../versions/v2022_11_28/models/group_1011.py | 52 +- .../versions/v2022_11_28/models/group_1012.py | 38 +- .../versions/v2022_11_28/models/group_1013.py | 53 +- .../versions/v2022_11_28/models/group_1014.py | 50 +- .../versions/v2022_11_28/models/group_1015.py | 84 +- .../versions/v2022_11_28/models/group_1016.py | 89 +- .../versions/v2022_11_28/models/group_1017.py | 219 +- .../versions/v2022_11_28/models/group_1018.py | 161 +- .../versions/v2022_11_28/models/group_1019.py | 93 +- .../versions/v2022_11_28/models/group_1020.py | 46 +- .../versions/v2022_11_28/models/group_1021.py | 8 +- .../versions/v2022_11_28/models/group_1022.py | 9 +- .../versions/v2022_11_28/models/group_1023.py | 21 +- .../versions/v2022_11_28/models/group_1024.py | 8 +- .../versions/v2022_11_28/models/group_1025.py | 8 +- .../versions/v2022_11_28/models/group_1026.py | 14 +- .../versions/v2022_11_28/models/group_1027.py | 12 +- .../versions/v2022_11_28/models/group_1028.py | 8 +- .../versions/v2022_11_28/models/group_1029.py | 14 +- .../versions/v2022_11_28/models/group_1030.py | 8 +- .../versions/v2022_11_28/models/group_1031.py | 8 +- .../versions/v2022_11_28/models/group_1032.py | 14 +- .../versions/v2022_11_28/models/group_1033.py | 112 +- .../versions/v2022_11_28/models/group_1034.py | 128 +- .../versions/v2022_11_28/models/group_1035.py | 37 +- .../versions/v2022_11_28/models/group_1036.py | 128 +- .../versions/v2022_11_28/models/group_1037.py | 125 +- .../versions/v2022_11_28/models/group_1038.py | 35 +- .../versions/v2022_11_28/models/group_1039.py | 67 +- .../versions/v2022_11_28/models/group_1040.py | 33 +- .../versions/v2022_11_28/models/group_1041.py | 34 +- .../versions/v2022_11_28/models/group_1042.py | 47 +- .../versions/v2022_11_28/models/group_1043.py | 40 +- .../versions/v2022_11_28/models/group_1044.py | 16 +- .../versions/v2022_11_28/models/group_1045.py | 14 +- .../versions/v2022_11_28/models/group_1046.py | 49 +- .../versions/v2022_11_28/models/group_1047.py | 58 +- .../versions/v2022_11_28/models/group_1048.py | 57 +- .../versions/v2022_11_28/models/group_1049.py | 69 +- .../versions/v2022_11_28/models/group_1050.py | 30 +- .../versions/v2022_11_28/models/group_1051.py | 33 +- .../versions/v2022_11_28/models/group_1052.py | 36 +- .../versions/v2022_11_28/models/group_1053.py | 37 +- .../versions/v2022_11_28/models/group_1054.py | 16 +- .../versions/v2022_11_28/models/group_1055.py | 15 +- .../versions/v2022_11_28/models/group_1056.py | 16 +- .../versions/v2022_11_28/models/group_1057.py | 26 +- .../versions/v2022_11_28/models/group_1058.py | 25 +- .../versions/v2022_11_28/models/group_1059.py | 67 +- .../versions/v2022_11_28/models/group_1060.py | 67 +- .../versions/v2022_11_28/models/group_1061.py | 64 +- .../versions/v2022_11_28/models/group_1062.py | 57 +- .../versions/v2022_11_28/models/group_1063.py | 37 +- .../versions/v2022_11_28/models/group_1064.py | 22 +- .../versions/v2022_11_28/models/group_1065.py | 59 +- .../versions/v2022_11_28/models/group_1066.py | 54 +- .../versions/v2022_11_28/models/group_1067.py | 48 +- .../versions/v2022_11_28/models/group_1068.py | 57 +- .../versions/v2022_11_28/models/group_1069.py | 59 +- .../versions/v2022_11_28/models/group_1070.py | 64 +- .../versions/v2022_11_28/models/group_1071.py | 35 +- .../versions/v2022_11_28/models/group_1072.py | 19 +- .../versions/v2022_11_28/models/group_1073.py | 29 +- .../versions/v2022_11_28/models/group_1074.py | 17 +- .../versions/v2022_11_28/models/group_1075.py | 17 +- .../versions/v2022_11_28/models/group_1076.py | 14 +- .../versions/v2022_11_28/models/group_1077.py | 14 +- .../versions/v2022_11_28/models/group_1078.py | 30 +- .../versions/v2022_11_28/models/group_1079.py | 21 +- .../versions/v2022_11_28/models/group_1080.py | 74 +- .../versions/v2022_11_28/models/group_1081.py | 77 +- .../versions/v2022_11_28/models/group_1082.py | 17 +- .../versions/v2022_11_28/models/group_1083.py | 44 +- .../versions/v2022_11_28/models/group_1084.py | 57 +- .../versions/v2022_11_28/models/group_1085.py | 58 +- .../versions/v2022_11_28/models/group_1086.py | 51 +- .../versions/v2022_11_28/models/group_1087.py | 35 +- .../versions/v2022_11_28/models/group_1088.py | 29 +- .../versions/v2022_11_28/models/group_1089.py | 21 +- .../versions/v2022_11_28/models/group_1090.py | 28 +- .../versions/v2022_11_28/models/group_1091.py | 17 +- .../versions/v2022_11_28/models/group_1092.py | 16 +- .../versions/v2022_11_28/models/group_1093.py | 21 +- .../versions/v2022_11_28/models/group_1094.py | 48 +- .../versions/v2022_11_28/models/group_1095.py | 59 +- .../versions/v2022_11_28/models/group_1096.py | 16 +- .../versions/v2022_11_28/models/group_1097.py | 60 +- .../versions/v2022_11_28/models/group_1098.py | 55 +- .../versions/v2022_11_28/models/group_1099.py | 10 +- .../versions/v2022_11_28/models/group_1100.py | 15 +- .../versions/v2022_11_28/models/group_1101.py | 18 +- .../versions/v2022_11_28/models/group_1102.py | 26 +- .../versions/v2022_11_28/models/group_1103.py | 24 +- .../versions/v2022_11_28/models/group_1104.py | 18 +- .../versions/v2022_11_28/models/group_1105.py | 26 +- .../versions/v2022_11_28/models/group_1106.py | 24 +- .../versions/v2022_11_28/models/group_1107.py | 19 +- .../versions/v2022_11_28/models/group_1108.py | 19 +- .../versions/v2022_11_28/models/group_1109.py | 16 +- .../versions/v2022_11_28/models/group_1110.py | 18 +- .../versions/v2022_11_28/models/group_1111.py | 18 +- .../versions/v2022_11_28/models/group_1112.py | 19 +- .../versions/v2022_11_28/models/group_1113.py | 21 +- .../versions/v2022_11_28/models/group_1114.py | 13 +- .../versions/v2022_11_28/models/group_1115.py | 23 +- .../versions/v2022_11_28/models/group_1116.py | 21 +- .../versions/v2022_11_28/models/group_1117.py | 25 +- .../versions/v2022_11_28/models/group_1118.py | 12 +- .../versions/v2022_11_28/models/group_1119.py | 23 +- .../versions/v2022_11_28/models/group_1120.py | 16 +- .../versions/v2022_11_28/models/group_1121.py | 23 +- .../versions/v2022_11_28/models/group_1122.py | 34 +- .../versions/v2022_11_28/models/group_1123.py | 25 +- .../versions/v2022_11_28/models/group_1124.py | 25 +- .../versions/v2022_11_28/models/group_1125.py | 15 +- .../versions/v2022_11_28/models/group_1126.py | 15 +- .../versions/v2022_11_28/models/group_1127.py | 31 +- .../versions/v2022_11_28/models/group_1128.py | 21 +- .../versions/v2022_11_28/models/group_1129.py | 20 +- .../versions/v2022_11_28/models/group_1130.py | 33 +- .../versions/v2022_11_28/models/group_1131.py | 33 +- .../versions/v2022_11_28/models/group_1132.py | 15 +- .../versions/v2022_11_28/models/group_1133.py | 17 +- .../versions/v2022_11_28/models/group_1134.py | 42 +- .../versions/v2022_11_28/models/group_1135.py | 52 +- .../versions/v2022_11_28/models/group_1136.py | 16 +- .../versions/v2022_11_28/models/group_1137.py | 31 +- .../versions/v2022_11_28/models/group_1138.py | 47 +- .../versions/v2022_11_28/models/group_1139.py | 53 +- .../versions/v2022_11_28/models/group_1140.py | 51 +- .../versions/v2022_11_28/models/group_1141.py | 26 +- .../versions/v2022_11_28/models/group_1142.py | 25 +- .../versions/v2022_11_28/models/group_1143.py | 8 +- .../versions/v2022_11_28/models/group_1144.py | 16 +- .../versions/v2022_11_28/models/group_1145.py | 16 +- .../versions/v2022_11_28/models/group_1146.py | 16 +- .../versions/v2022_11_28/models/group_1147.py | 51 +- .../versions/v2022_11_28/models/group_1148.py | 52 +- .../versions/v2022_11_28/models/group_1149.py | 17 +- .../versions/v2022_11_28/models/group_1150.py | 16 +- .../versions/v2022_11_28/models/group_1151.py | 18 +- .../versions/v2022_11_28/models/group_1152.py | 14 +- .../versions/v2022_11_28/models/group_1153.py | 49 +- .../versions/v2022_11_28/models/group_1154.py | 41 +- .../versions/v2022_11_28/models/group_1155.py | 25 +- .../versions/v2022_11_28/models/group_1156.py | 36 +- .../versions/v2022_11_28/models/group_1157.py | 36 +- .../versions/v2022_11_28/models/group_1158.py | 82 +- .../versions/v2022_11_28/models/group_1159.py | 55 +- .../versions/v2022_11_28/models/group_1160.py | 81 +- .../versions/v2022_11_28/models/group_1161.py | 27 +- .../versions/v2022_11_28/models/group_1162.py | 28 +- .../versions/v2022_11_28/models/group_1163.py | 24 +- .../versions/v2022_11_28/models/group_1164.py | 19 +- .../versions/v2022_11_28/models/group_1165.py | 12 +- .../versions/v2022_11_28/models/group_1166.py | 21 +- .../versions/v2022_11_28/models/group_1167.py | 26 +- .../versions/v2022_11_28/models/group_1168.py | 35 +- .../versions/v2022_11_28/models/group_1169.py | 33 +- .../versions/v2022_11_28/models/group_1170.py | 20 +- .../versions/v2022_11_28/models/group_1171.py | 17 +- .../versions/v2022_11_28/models/group_1172.py | 8 +- .../versions/v2022_11_28/models/group_1173.py | 22 +- .../versions/v2022_11_28/models/group_1174.py | 16 +- .../versions/v2022_11_28/models/group_1175.py | 16 +- .../versions/v2022_11_28/models/group_1176.py | 13 +- .../versions/v2022_11_28/models/group_1177.py | 16 +- .../versions/v2022_11_28/models/group_1178.py | 16 +- .../versions/v2022_11_28/models/group_1179.py | 34 +- .../versions/v2022_11_28/models/group_1180.py | 50 +- .../versions/v2022_11_28/models/group_1181.py | 58 +- .../versions/v2022_11_28/models/group_1182.py | 43 +- .../versions/v2022_11_28/models/group_1183.py | 63 +- .../versions/v2022_11_28/models/group_1184.py | 46 +- .../versions/v2022_11_28/models/group_1185.py | 26 +- .../versions/v2022_11_28/models/group_1186.py | 15 +- .../versions/v2022_11_28/models/group_1187.py | 21 +- .../versions/v2022_11_28/models/group_1188.py | 24 +- .../versions/v2022_11_28/models/group_1189.py | 20 +- .../versions/v2022_11_28/models/group_1190.py | 19 +- .../versions/v2022_11_28/models/group_1191.py | 21 +- .../versions/v2022_11_28/models/group_1192.py | 15 +- .../versions/v2022_11_28/models/group_1193.py | 27 +- .../versions/v2022_11_28/models/group_1194.py | 18 +- .../versions/v2022_11_28/models/group_1195.py | 15 +- .../versions/v2022_11_28/models/group_1196.py | 18 +- .../versions/v2022_11_28/models/group_1197.py | 20 +- .../versions/v2022_11_28/models/group_1198.py | 20 +- .../versions/v2022_11_28/models/group_1199.py | 42 +- .../versions/v2022_11_28/models/group_1200.py | 43 +- .../versions/v2022_11_28/models/group_1201.py | 94 +- .../versions/v2022_11_28/models/group_1202.py | 100 +- .../versions/v2022_11_28/models/group_1203.py | 10 +- .../versions/v2022_11_28/models/group_1204.py | 23 +- .../versions/v2022_11_28/models/group_1205.py | 22 +- .../versions/v2022_11_28/models/group_1206.py | 58 +- .../versions/v2022_11_28/models/group_1207.py | 58 +- .../versions/v2022_11_28/models/group_1208.py | 12 +- .../versions/v2022_11_28/models/group_1209.py | 86 +- .../versions/v2022_11_28/models/group_1210.py | 97 - .../versions/v2022_11_28/rest/__init__.py | 8 +- .../v2022_11_28/rest/code_security.py | 33 +- githubkit/versions/v2022_11_28/rest/issues.py | 20 +- .../v2022_11_28/rest/private_registries.py | 72 +- .../rest/{projects.py => projects_classic.py} | 202 +- githubkit/versions/v2022_11_28/rest/repos.py | 4 - .../versions/v2022_11_28/types/__init__.py | 8982 ++++++++-------- .../versions/v2022_11_28/types/group_0028.py | 2 + .../versions/v2022_11_28/types/group_0029.py | 13 +- .../versions/v2022_11_28/types/group_0030.py | 15 +- .../versions/v2022_11_28/types/group_0031.py | 63 +- .../versions/v2022_11_28/types/group_0032.py | 77 +- .../versions/v2022_11_28/types/group_0033.py | 32 +- .../versions/v2022_11_28/types/group_0034.py | 31 +- .../versions/v2022_11_28/types/group_0035.py | 77 +- .../versions/v2022_11_28/types/group_0036.py | 99 +- .../versions/v2022_11_28/types/group_0037.py | 40 +- .../versions/v2022_11_28/types/group_0038.py | 103 +- .../versions/v2022_11_28/types/group_0039.py | 98 +- .../versions/v2022_11_28/types/group_0040.py | 47 +- .../versions/v2022_11_28/types/group_0041.py | 95 +- .../versions/v2022_11_28/types/group_0042.py | 94 +- .../versions/v2022_11_28/types/group_0043.py | 41 +- .../versions/v2022_11_28/types/group_0044.py | 48 +- .../versions/v2022_11_28/types/group_0045.py | 115 +- .../versions/v2022_11_28/types/group_0046.py | 53 +- .../versions/v2022_11_28/types/group_0047.py | 141 +- .../versions/v2022_11_28/types/group_0048.py | 79 +- .../versions/v2022_11_28/types/group_0049.py | 92 +- .../versions/v2022_11_28/types/group_0050.py | 98 +- .../versions/v2022_11_28/types/group_0051.py | 122 +- .../versions/v2022_11_28/types/group_0052.py | 79 +- .../versions/v2022_11_28/types/group_0053.py | 117 +- .../versions/v2022_11_28/types/group_0054.py | 35 +- .../versions/v2022_11_28/types/group_0055.py | 46 +- .../versions/v2022_11_28/types/group_0056.py | 22 +- .../versions/v2022_11_28/types/group_0057.py | 42 +- .../versions/v2022_11_28/types/group_0058.py | 47 +- .../versions/v2022_11_28/types/group_0059.py | 82 +- .../versions/v2022_11_28/types/group_0060.py | 88 +- .../versions/v2022_11_28/types/group_0061.py | 187 +- .../versions/v2022_11_28/types/group_0062.py | 95 +- .../versions/v2022_11_28/types/group_0063.py | 156 +- .../versions/v2022_11_28/types/group_0064.py | 41 +- .../versions/v2022_11_28/types/group_0065.py | 23 +- .../versions/v2022_11_28/types/group_0066.py | 42 +- .../versions/v2022_11_28/types/group_0067.py | 96 +- .../versions/v2022_11_28/types/group_0068.py | 30 +- .../versions/v2022_11_28/types/group_0069.py | 96 +- .../versions/v2022_11_28/types/group_0070.py | 55 +- .../versions/v2022_11_28/types/group_0071.py | 16 +- .../versions/v2022_11_28/types/group_0072.py | 53 +- .../versions/v2022_11_28/types/group_0073.py | 15 +- .../versions/v2022_11_28/types/group_0074.py | 27 +- .../versions/v2022_11_28/types/group_0075.py | 15 +- .../versions/v2022_11_28/types/group_0076.py | 14 +- .../versions/v2022_11_28/types/group_0077.py | 12 +- .../versions/v2022_11_28/types/group_0078.py | 16 +- .../versions/v2022_11_28/types/group_0079.py | 22 +- .../versions/v2022_11_28/types/group_0080.py | 18 +- .../versions/v2022_11_28/types/group_0081.py | 37 +- .../versions/v2022_11_28/types/group_0082.py | 20 +- .../versions/v2022_11_28/types/group_0083.py | 47 +- .../versions/v2022_11_28/types/group_0084.py | 48 +- .../versions/v2022_11_28/types/group_0085.py | 55 +- .../versions/v2022_11_28/types/group_0086.py | 51 +- .../versions/v2022_11_28/types/group_0087.py | 40 +- .../versions/v2022_11_28/types/group_0088.py | 56 +- .../versions/v2022_11_28/types/group_0089.py | 45 +- .../versions/v2022_11_28/types/group_0090.py | 55 +- .../versions/v2022_11_28/types/group_0091.py | 103 +- .../versions/v2022_11_28/types/group_0092.py | 24 +- .../versions/v2022_11_28/types/group_0093.py | 99 +- .../versions/v2022_11_28/types/group_0094.py | 62 +- .../versions/v2022_11_28/types/group_0095.py | 197 +- .../versions/v2022_11_28/types/group_0096.py | 60 +- .../versions/v2022_11_28/types/group_0097.py | 199 +- .../versions/v2022_11_28/types/group_0098.py | 31 +- .../versions/v2022_11_28/types/group_0099.py | 40 +- .../versions/v2022_11_28/types/group_0100.py | 29 +- .../versions/v2022_11_28/types/group_0101.py | 41 +- .../versions/v2022_11_28/types/group_0102.py | 14 +- .../versions/v2022_11_28/types/group_0103.py | 13 +- .../versions/v2022_11_28/types/group_0104.py | 17 +- .../versions/v2022_11_28/types/group_0105.py | 19 +- .../versions/v2022_11_28/types/group_0106.py | 24 +- .../versions/v2022_11_28/types/group_0107.py | 28 +- .../versions/v2022_11_28/types/group_0108.py | 24 +- .../versions/v2022_11_28/types/group_0109.py | 39 +- .../versions/v2022_11_28/types/group_0110.py | 52 +- .../versions/v2022_11_28/types/group_0111.py | 41 +- .../versions/v2022_11_28/types/group_0112.py | 56 +- .../versions/v2022_11_28/types/group_0113.py | 60 +- .../versions/v2022_11_28/types/group_0114.py | 61 +- .../versions/v2022_11_28/types/group_0115.py | 97 +- .../versions/v2022_11_28/types/group_0116.py | 85 +- .../versions/v2022_11_28/types/group_0117.py | 79 +- .../versions/v2022_11_28/types/group_0118.py | 84 +- .../versions/v2022_11_28/types/group_0119.py | 43 +- .../versions/v2022_11_28/types/group_0120.py | 38 +- .../versions/v2022_11_28/types/group_0121.py | 27 +- .../versions/v2022_11_28/types/group_0122.py | 25 +- .../versions/v2022_11_28/types/group_0123.py | 14 +- .../versions/v2022_11_28/types/group_0124.py | 150 +- .../versions/v2022_11_28/types/group_0125.py | 21 +- .../versions/v2022_11_28/types/group_0126.py | 147 +- .../versions/v2022_11_28/types/group_0127.py | 17 +- .../versions/v2022_11_28/types/group_0128.py | 18 +- .../versions/v2022_11_28/types/group_0129.py | 7 +- .../versions/v2022_11_28/types/group_0130.py | 14 +- .../versions/v2022_11_28/types/group_0131.py | 10 +- .../versions/v2022_11_28/types/group_0132.py | 14 +- .../versions/v2022_11_28/types/group_0133.py | 26 +- .../versions/v2022_11_28/types/group_0134.py | 20 +- .../versions/v2022_11_28/types/group_0135.py | 29 +- .../versions/v2022_11_28/types/group_0136.py | 18 +- .../versions/v2022_11_28/types/group_0137.py | 49 +- .../versions/v2022_11_28/types/group_0138.py | 20 +- .../versions/v2022_11_28/types/group_0139.py | 44 +- .../versions/v2022_11_28/types/group_0140.py | 15 +- .../versions/v2022_11_28/types/group_0141.py | 17 +- .../versions/v2022_11_28/types/group_0142.py | 17 +- .../versions/v2022_11_28/types/group_0143.py | 15 +- .../versions/v2022_11_28/types/group_0144.py | 15 +- .../versions/v2022_11_28/types/group_0145.py | 30 +- .../versions/v2022_11_28/types/group_0146.py | 18 +- .../versions/v2022_11_28/types/group_0147.py | 35 +- .../versions/v2022_11_28/types/group_0148.py | 16 +- .../versions/v2022_11_28/types/group_0149.py | 30 +- .../versions/v2022_11_28/types/group_0150.py | 15 +- .../versions/v2022_11_28/types/group_0151.py | 27 +- .../versions/v2022_11_28/types/group_0152.py | 14 +- .../versions/v2022_11_28/types/group_0153.py | 6 +- .../versions/v2022_11_28/types/group_0154.py | 14 +- .../versions/v2022_11_28/types/group_0155.py | 6 +- .../versions/v2022_11_28/types/group_0156.py | 14 +- .../versions/v2022_11_28/types/group_0157.py | 6 +- .../versions/v2022_11_28/types/group_0158.py | 14 +- .../versions/v2022_11_28/types/group_0159.py | 6 +- .../versions/v2022_11_28/types/group_0160.py | 16 +- .../versions/v2022_11_28/types/group_0161.py | 14 +- .../versions/v2022_11_28/types/group_0162.py | 17 +- .../versions/v2022_11_28/types/group_0163.py | 8 +- .../versions/v2022_11_28/types/group_0164.py | 16 +- .../versions/v2022_11_28/types/group_0165.py | 8 +- .../versions/v2022_11_28/types/group_0166.py | 14 +- .../versions/v2022_11_28/types/group_0167.py | 8 +- .../versions/v2022_11_28/types/group_0168.py | 16 +- .../versions/v2022_11_28/types/group_0169.py | 18 +- .../versions/v2022_11_28/types/group_0170.py | 24 +- .../versions/v2022_11_28/types/group_0171.py | 17 +- .../versions/v2022_11_28/types/group_0172.py | 29 +- .../versions/v2022_11_28/types/group_0173.py | 118 +- .../versions/v2022_11_28/types/group_0174.py | 37 +- .../versions/v2022_11_28/types/group_0175.py | 145 +- .../versions/v2022_11_28/types/group_0176.py | 28 +- .../versions/v2022_11_28/types/group_0177.py | 42 +- .../versions/v2022_11_28/types/group_0178.py | 13 +- .../versions/v2022_11_28/types/group_0179.py | 14 +- .../versions/v2022_11_28/types/group_0180.py | 16 +- .../versions/v2022_11_28/types/group_0181.py | 27 +- .../versions/v2022_11_28/types/group_0182.py | 138 +- .../versions/v2022_11_28/types/group_0183.py | 65 +- .../versions/v2022_11_28/types/group_0184.py | 141 +- .../versions/v2022_11_28/types/group_0185.py | 48 +- .../versions/v2022_11_28/types/group_0186.py | 19 +- .../versions/v2022_11_28/types/group_0187.py | 110 +- .../versions/v2022_11_28/types/group_0188.py | 41 +- .../versions/v2022_11_28/types/group_0189.py | 112 +- .../versions/v2022_11_28/types/group_0190.py | 38 +- .../versions/v2022_11_28/types/group_0191.py | 30 +- .../versions/v2022_11_28/types/group_0192.py | 48 +- .../versions/v2022_11_28/types/group_0193.py | 119 +- .../versions/v2022_11_28/types/group_0194.py | 47 +- .../versions/v2022_11_28/types/group_0195.py | 118 +- .../versions/v2022_11_28/types/group_0196.py | 30 +- .../versions/v2022_11_28/types/group_0197.py | 22 +- .../versions/v2022_11_28/types/group_0198.py | 16 +- .../versions/v2022_11_28/types/group_0199.py | 26 +- .../versions/v2022_11_28/types/group_0200.py | 46 +- .../versions/v2022_11_28/types/group_0201.py | 39 +- .../versions/v2022_11_28/types/group_0202.py | 69 +- .../versions/v2022_11_28/types/group_0203.py | 28 +- .../versions/v2022_11_28/types/group_0204.py | 62 +- .../versions/v2022_11_28/types/group_0205.py | 18 +- .../versions/v2022_11_28/types/group_0206.py | 19 +- .../versions/v2022_11_28/types/group_0207.py | 13 +- .../versions/v2022_11_28/types/group_0208.py | 55 +- .../versions/v2022_11_28/types/group_0209.py | 43 +- .../versions/v2022_11_28/types/group_0210.py | 97 +- .../versions/v2022_11_28/types/group_0211.py | 51 +- .../versions/v2022_11_28/types/group_0212.py | 70 +- .../versions/v2022_11_28/types/group_0213.py | 34 +- .../versions/v2022_11_28/types/group_0214.py | 44 +- .../versions/v2022_11_28/types/group_0215.py | 52 +- .../versions/v2022_11_28/types/group_0216.py | 93 +- .../versions/v2022_11_28/types/group_0217.py | 70 +- .../versions/v2022_11_28/types/group_0218.py | 97 +- .../versions/v2022_11_28/types/group_0219.py | 47 +- .../versions/v2022_11_28/types/group_0220.py | 33 +- .../versions/v2022_11_28/types/group_0221.py | 30 +- .../versions/v2022_11_28/types/group_0222.py | 34 +- .../versions/v2022_11_28/types/group_0223.py | 139 +- .../versions/v2022_11_28/types/group_0224.py | 137 +- .../versions/v2022_11_28/types/group_0225.py | 128 +- .../versions/v2022_11_28/types/group_0226.py | 133 +- .../versions/v2022_11_28/types/group_0227.py | 32 +- .../versions/v2022_11_28/types/group_0228.py | 30 +- .../versions/v2022_11_28/types/group_0229.py | 57 +- .../versions/v2022_11_28/types/group_0230.py | 42 +- .../versions/v2022_11_28/types/group_0231.py | 61 +- .../versions/v2022_11_28/types/group_0232.py | 130 +- .../versions/v2022_11_28/types/group_0233.py | 42 +- .../versions/v2022_11_28/types/group_0234.py | 137 +- .../versions/v2022_11_28/types/group_0235.py | 44 +- .../versions/v2022_11_28/types/group_0236.py | 75 +- .../versions/v2022_11_28/types/group_0237.py | 42 +- .../versions/v2022_11_28/types/group_0238.py | 68 +- .../versions/v2022_11_28/types/group_0239.py | 44 +- .../versions/v2022_11_28/types/group_0240.py | 86 +- .../versions/v2022_11_28/types/group_0241.py | 67 +- .../versions/v2022_11_28/types/group_0242.py | 44 +- .../versions/v2022_11_28/types/group_0243.py | 62 +- .../versions/v2022_11_28/types/group_0244.py | 15 +- .../versions/v2022_11_28/types/group_0245.py | 27 +- .../versions/v2022_11_28/types/group_0246.py | 16 +- .../versions/v2022_11_28/types/group_0247.py | 33 +- .../versions/v2022_11_28/types/group_0248.py | 17 +- .../versions/v2022_11_28/types/group_0249.py | 27 +- .../versions/v2022_11_28/types/group_0250.py | 46 +- .../versions/v2022_11_28/types/group_0251.py | 20 +- .../versions/v2022_11_28/types/group_0252.py | 61 +- .../versions/v2022_11_28/types/group_0253.py | 15 +- .../versions/v2022_11_28/types/group_0254.py | 61 +- .../versions/v2022_11_28/types/group_0255.py | 43 +- .../versions/v2022_11_28/types/group_0256.py | 42 +- .../versions/v2022_11_28/types/group_0257.py | 38 +- .../versions/v2022_11_28/types/group_0258.py | 17 +- .../versions/v2022_11_28/types/group_0259.py | 27 +- .../versions/v2022_11_28/types/group_0260.py | 30 +- .../versions/v2022_11_28/types/group_0261.py | 31 +- .../versions/v2022_11_28/types/group_0262.py | 40 +- .../versions/v2022_11_28/types/group_0263.py | 60 +- .../versions/v2022_11_28/types/group_0264.py | 54 +- .../versions/v2022_11_28/types/group_0265.py | 60 +- .../versions/v2022_11_28/types/group_0266.py | 54 +- .../versions/v2022_11_28/types/group_0267.py | 28 +- .../versions/v2022_11_28/types/group_0268.py | 80 +- .../versions/v2022_11_28/types/group_0269.py | 32 +- .../versions/v2022_11_28/types/group_0270.py | 88 +- .../versions/v2022_11_28/types/group_0271.py | 47 +- .../versions/v2022_11_28/types/group_0272.py | 31 +- .../versions/v2022_11_28/types/group_0273.py | 54 +- .../versions/v2022_11_28/types/group_0274.py | 41 +- .../versions/v2022_11_28/types/group_0275.py | 74 +- .../versions/v2022_11_28/types/group_0276.py | 49 +- .../versions/v2022_11_28/types/group_0277.py | 52 +- .../versions/v2022_11_28/types/group_0278.py | 23 +- .../versions/v2022_11_28/types/group_0279.py | 25 +- .../versions/v2022_11_28/types/group_0280.py | 115 +- .../versions/v2022_11_28/types/group_0281.py | 61 +- .../versions/v2022_11_28/types/group_0282.py | 111 +- .../versions/v2022_11_28/types/group_0283.py | 71 +- .../versions/v2022_11_28/types/group_0284.py | 42 +- .../versions/v2022_11_28/types/group_0285.py | 69 +- .../versions/v2022_11_28/types/group_0286.py | 81 +- .../versions/v2022_11_28/types/group_0287.py | 36 +- .../versions/v2022_11_28/types/group_0288.py | 81 +- .../versions/v2022_11_28/types/group_0289.py | 33 +- .../versions/v2022_11_28/types/group_0290.py | 59 +- .../versions/v2022_11_28/types/group_0291.py | 67 +- .../versions/v2022_11_28/types/group_0292.py | 57 +- .../versions/v2022_11_28/types/group_0293.py | 71 +- .../versions/v2022_11_28/types/group_0294.py | 21 +- .../versions/v2022_11_28/types/group_0295.py | 66 +- .../versions/v2022_11_28/types/group_0296.py | 18 +- .../versions/v2022_11_28/types/group_0297.py | 15 +- .../versions/v2022_11_28/types/group_0298.py | 18 +- .../versions/v2022_11_28/types/group_0299.py | 34 +- .../versions/v2022_11_28/types/group_0300.py | 14 +- .../versions/v2022_11_28/types/group_0301.py | 36 +- .../versions/v2022_11_28/types/group_0302.py | 72 +- .../versions/v2022_11_28/types/group_0303.py | 29 +- .../versions/v2022_11_28/types/group_0304.py | 76 +- .../versions/v2022_11_28/types/group_0305.py | 29 +- .../versions/v2022_11_28/types/group_0306.py | 45 +- .../versions/v2022_11_28/types/group_0307.py | 45 +- .../versions/v2022_11_28/types/group_0308.py | 67 +- .../versions/v2022_11_28/types/group_0309.py | 28 +- .../versions/v2022_11_28/types/group_0310.py | 66 +- .../versions/v2022_11_28/types/group_0311.py | 112 +- .../versions/v2022_11_28/types/group_0312.py | 36 +- .../versions/v2022_11_28/types/group_0313.py | 105 +- .../versions/v2022_11_28/types/group_0314.py | 27 +- .../versions/v2022_11_28/types/group_0315.py | 25 +- .../versions/v2022_11_28/types/group_0316.py | 26 +- .../versions/v2022_11_28/types/group_0317.py | 24 +- .../versions/v2022_11_28/types/group_0318.py | 21 +- .../versions/v2022_11_28/types/group_0319.py | 26 +- .../versions/v2022_11_28/types/group_0320.py | 27 +- .../versions/v2022_11_28/types/group_0321.py | 27 +- .../versions/v2022_11_28/types/group_0322.py | 17 +- .../versions/v2022_11_28/types/group_0323.py | 28 +- .../versions/v2022_11_28/types/group_0324.py | 28 +- .../versions/v2022_11_28/types/group_0325.py | 18 +- .../versions/v2022_11_28/types/group_0326.py | 20 +- .../versions/v2022_11_28/types/group_0327.py | 57 +- .../versions/v2022_11_28/types/group_0328.py | 46 +- .../versions/v2022_11_28/types/group_0329.py | 52 +- .../versions/v2022_11_28/types/group_0330.py | 81 +- .../versions/v2022_11_28/types/group_0331.py | 62 +- .../versions/v2022_11_28/types/group_0332.py | 119 +- .../versions/v2022_11_28/types/group_0333.py | 65 +- .../versions/v2022_11_28/types/group_0334.py | 102 +- .../versions/v2022_11_28/types/group_0335.py | 16 +- .../versions/v2022_11_28/types/group_0336.py | 29 +- .../versions/v2022_11_28/types/group_0337.py | 29 +- .../versions/v2022_11_28/types/group_0338.py | 45 +- .../versions/v2022_11_28/types/group_0339.py | 19 +- .../versions/v2022_11_28/types/group_0340.py | 74 +- .../versions/v2022_11_28/types/group_0341.py | 35 +- .../versions/v2022_11_28/types/group_0342.py | 59 +- .../versions/v2022_11_28/types/group_0343.py | 34 +- .../versions/v2022_11_28/types/group_0344.py | 39 +- .../versions/v2022_11_28/types/group_0345.py | 84 +- .../versions/v2022_11_28/types/group_0346.py | 95 +- .../versions/v2022_11_28/types/group_0347.py | 90 +- .../versions/v2022_11_28/types/group_0348.py | 95 +- .../versions/v2022_11_28/types/group_0349.py | 24 +- .../versions/v2022_11_28/types/group_0350.py | 30 +- .../versions/v2022_11_28/types/group_0351.py | 22 +- .../versions/v2022_11_28/types/group_0352.py | 63 +- .../versions/v2022_11_28/types/group_0353.py | 55 +- .../versions/v2022_11_28/types/group_0354.py | 64 +- .../versions/v2022_11_28/types/group_0355.py | 54 +- .../versions/v2022_11_28/types/group_0356.py | 55 +- .../versions/v2022_11_28/types/group_0357.py | 30 +- .../versions/v2022_11_28/types/group_0358.py | 47 +- .../versions/v2022_11_28/types/group_0359.py | 18 +- .../versions/v2022_11_28/types/group_0360.py | 12 +- .../versions/v2022_11_28/types/group_0361.py | 8 +- .../versions/v2022_11_28/types/group_0362.py | 11 +- .../versions/v2022_11_28/types/group_0363.py | 11 +- .../versions/v2022_11_28/types/group_0364.py | 11 +- .../versions/v2022_11_28/types/group_0365.py | 11 +- .../versions/v2022_11_28/types/group_0366.py | 12 +- .../versions/v2022_11_28/types/group_0367.py | 11 +- .../versions/v2022_11_28/types/group_0368.py | 11 +- .../versions/v2022_11_28/types/group_0369.py | 12 +- .../versions/v2022_11_28/types/group_0370.py | 11 +- .../versions/v2022_11_28/types/group_0371.py | 12 +- .../versions/v2022_11_28/types/group_0372.py | 12 +- .../versions/v2022_11_28/types/group_0373.py | 12 +- .../versions/v2022_11_28/types/group_0374.py | 12 +- .../versions/v2022_11_28/types/group_0375.py | 12 +- .../versions/v2022_11_28/types/group_0376.py | 12 +- .../versions/v2022_11_28/types/group_0377.py | 12 +- .../versions/v2022_11_28/types/group_0378.py | 12 +- .../versions/v2022_11_28/types/group_0379.py | 12 +- .../versions/v2022_11_28/types/group_0380.py | 81 +- .../versions/v2022_11_28/types/group_0381.py | 67 +- .../versions/v2022_11_28/types/group_0382.py | 76 +- .../versions/v2022_11_28/types/group_0383.py | 94 +- .../versions/v2022_11_28/types/group_0384.py | 13 +- .../versions/v2022_11_28/types/group_0385.py | 89 +- .../versions/v2022_11_28/types/group_0386.py | 57 +- .../versions/v2022_11_28/types/group_0387.py | 40 +- .../versions/v2022_11_28/types/group_0388.py | 60 +- .../versions/v2022_11_28/types/group_0389.py | 82 +- .../versions/v2022_11_28/types/group_0390.py | 28 +- .../versions/v2022_11_28/types/group_0391.py | 14 +- .../versions/v2022_11_28/types/group_0392.py | 34 +- .../versions/v2022_11_28/types/group_0393.py | 26 +- .../versions/v2022_11_28/types/group_0394.py | 23 +- .../versions/v2022_11_28/types/group_0395.py | 24 +- .../versions/v2022_11_28/types/group_0396.py | 20 +- .../versions/v2022_11_28/types/group_0397.py | 14 +- .../versions/v2022_11_28/types/group_0398.py | 15 +- .../versions/v2022_11_28/types/group_0399.py | 12 +- .../versions/v2022_11_28/types/group_0400.py | 13 +- .../versions/v2022_11_28/types/group_0401.py | 28 +- .../versions/v2022_11_28/types/group_0402.py | 46 +- .../versions/v2022_11_28/types/group_0403.py | 52 +- .../versions/v2022_11_28/types/group_0404.py | 49 +- .../versions/v2022_11_28/types/group_0405.py | 115 +- .../versions/v2022_11_28/types/group_0406.py | 45 +- .../versions/v2022_11_28/types/group_0407.py | 191 +- .../versions/v2022_11_28/types/group_0408.py | 74 +- .../versions/v2022_11_28/types/group_0409.py | 143 +- .../versions/v2022_11_28/types/group_0410.py | 116 +- .../versions/v2022_11_28/types/group_0411.py | 62 +- .../versions/v2022_11_28/types/group_0412.py | 71 +- .../versions/v2022_11_28/types/group_0413.py | 92 +- .../versions/v2022_11_28/types/group_0414.py | 23 +- .../versions/v2022_11_28/types/group_0415.py | 125 +- .../versions/v2022_11_28/types/group_0416.py | 19 +- .../versions/v2022_11_28/types/group_0417.py | 78 +- .../versions/v2022_11_28/types/group_0418.py | 20 +- .../versions/v2022_11_28/types/group_0419.py | 38 +- .../versions/v2022_11_28/types/group_0420.py | 15 +- .../versions/v2022_11_28/types/group_0421.py | 24 +- .../versions/v2022_11_28/types/group_0422.py | 17 +- .../versions/v2022_11_28/types/group_0423.py | 31 +- .../versions/v2022_11_28/types/group_0424.py | 27 +- .../versions/v2022_11_28/types/group_0425.py | 34 +- .../versions/v2022_11_28/types/group_0426.py | 35 +- .../versions/v2022_11_28/types/group_0427.py | 278 +- .../versions/v2022_11_28/types/group_0428.py | 65 +- .../versions/v2022_11_28/types/group_0429.py | 299 +- .../versions/v2022_11_28/types/group_0430.py | 95 +- .../versions/v2022_11_28/types/group_0431.py | 61 +- .../versions/v2022_11_28/types/group_0432.py | 62 +- .../versions/v2022_11_28/types/group_0433.py | 74 +- .../versions/v2022_11_28/types/group_0434.py | 21 +- .../versions/v2022_11_28/types/group_0435.py | 40 +- .../versions/v2022_11_28/types/group_0436.py | 82 +- .../versions/v2022_11_28/types/group_0437.py | 125 +- .../versions/v2022_11_28/types/group_0438.py | 25 +- .../versions/v2022_11_28/types/group_0439.py | 150 +- .../versions/v2022_11_28/types/group_0440.py | 78 +- .../versions/v2022_11_28/types/group_0441.py | 13 +- .../versions/v2022_11_28/types/group_0442.py | 84 +- .../versions/v2022_11_28/types/group_0443.py | 26 +- .../versions/v2022_11_28/types/group_0444.py | 291 +- .../versions/v2022_11_28/types/group_0445.py | 56 +- .../versions/v2022_11_28/types/group_0446.py | 98 +- .../versions/v2022_11_28/types/group_0447.py | 32 +- .../versions/v2022_11_28/types/group_0448.py | 344 +- .../versions/v2022_11_28/types/group_0449.py | 65 +- .../versions/v2022_11_28/types/group_0450.py | 70 +- .../versions/v2022_11_28/types/group_0451.py | 50 +- .../versions/v2022_11_28/types/group_0452.py | 77 +- .../versions/v2022_11_28/types/group_0453.py | 58 +- .../versions/v2022_11_28/types/group_0454.py | 198 +- .../versions/v2022_11_28/types/group_0455.py | 33 +- .../versions/v2022_11_28/types/group_0456.py | 194 +- .../versions/v2022_11_28/types/group_0457.py | 46 +- .../versions/v2022_11_28/types/group_0458.py | 68 +- .../versions/v2022_11_28/types/group_0459.py | 26 +- .../versions/v2022_11_28/types/group_0460.py | 29 +- .../versions/v2022_11_28/types/group_0461.py | 34 +- .../versions/v2022_11_28/types/group_0462.py | 87 +- .../versions/v2022_11_28/types/group_0463.py | 34 +- .../versions/v2022_11_28/types/group_0464.py | 895 +- .../versions/v2022_11_28/types/group_0465.py | 133 +- .../versions/v2022_11_28/types/group_0466.py | 827 +- .../versions/v2022_11_28/types/group_0467.py | 148 +- .../versions/v2022_11_28/types/group_0468.py | 123 +- .../versions/v2022_11_28/types/group_0469.py | 114 +- .../versions/v2022_11_28/types/group_0470.py | 161 +- .../versions/v2022_11_28/types/group_0471.py | 128 +- .../versions/v2022_11_28/types/group_0472.py | 151 +- .../versions/v2022_11_28/types/group_0473.py | 99 +- .../versions/v2022_11_28/types/group_0474.py | 127 +- .../versions/v2022_11_28/types/group_0475.py | 47 +- .../versions/v2022_11_28/types/group_0476.py | 65 +- .../versions/v2022_11_28/types/group_0477.py | 18 +- .../versions/v2022_11_28/types/group_0478.py | 18 +- .../versions/v2022_11_28/types/group_0479.py | 166 +- .../versions/v2022_11_28/types/group_0480.py | 20 +- .../versions/v2022_11_28/types/group_0481.py | 169 +- .../versions/v2022_11_28/types/group_0482.py | 16 +- .../versions/v2022_11_28/types/group_0483.py | 8 +- .../versions/v2022_11_28/types/group_0484.py | 29 +- .../versions/v2022_11_28/types/group_0485.py | 8 +- .../versions/v2022_11_28/types/group_0486.py | 29 +- .../versions/v2022_11_28/types/group_0487.py | 8 +- .../versions/v2022_11_28/types/group_0488.py | 262 +- .../versions/v2022_11_28/types/group_0489.py | 260 +- .../versions/v2022_11_28/types/group_0490.py | 102 +- .../versions/v2022_11_28/types/group_0491.py | 266 +- .../versions/v2022_11_28/types/group_0492.py | 297 +- .../versions/v2022_11_28/types/group_0493.py | 122 +- .../versions/v2022_11_28/types/group_0494.py | 116 +- .../versions/v2022_11_28/types/group_0495.py | 86 +- .../versions/v2022_11_28/types/group_0496.py | 114 +- .../versions/v2022_11_28/types/group_0497.py | 166 +- .../versions/v2022_11_28/types/group_0498.py | 113 +- .../versions/v2022_11_28/types/group_0499.py | 101 +- .../versions/v2022_11_28/types/group_0500.py | 34 +- .../versions/v2022_11_28/types/group_0501.py | 16 +- .../versions/v2022_11_28/types/group_0502.py | 26 +- .../versions/v2022_11_28/types/group_0503.py | 23 +- .../versions/v2022_11_28/types/group_0504.py | 22 +- .../versions/v2022_11_28/types/group_0505.py | 27 +- .../versions/v2022_11_28/types/group_0506.py | 22 +- .../versions/v2022_11_28/types/group_0507.py | 18 +- .../versions/v2022_11_28/types/group_0508.py | 18 +- .../versions/v2022_11_28/types/group_0509.py | 18 +- .../versions/v2022_11_28/types/group_0510.py | 18 +- .../versions/v2022_11_28/types/group_0511.py | 18 +- .../versions/v2022_11_28/types/group_0512.py | 22 +- .../versions/v2022_11_28/types/group_0513.py | 22 +- .../versions/v2022_11_28/types/group_0514.py | 545 +- .../versions/v2022_11_28/types/group_0515.py | 37 +- .../versions/v2022_11_28/types/group_0516.py | 335 +- .../versions/v2022_11_28/types/group_0517.py | 423 +- .../versions/v2022_11_28/types/group_0518.py | 188 +- .../versions/v2022_11_28/types/group_0519.py | 542 +- .../versions/v2022_11_28/types/group_0520.py | 452 +- .../versions/v2022_11_28/types/group_0521.py | 764 +- .../versions/v2022_11_28/types/group_0522.py | 20 +- .../versions/v2022_11_28/types/group_0523.py | 54 +- .../versions/v2022_11_28/types/group_0524.py | 20 +- .../versions/v2022_11_28/types/group_0525.py | 37 +- .../versions/v2022_11_28/types/group_0526.py | 20 +- .../versions/v2022_11_28/types/group_0527.py | 37 +- .../versions/v2022_11_28/types/group_0528.py | 43 +- .../versions/v2022_11_28/types/group_0529.py | 20 +- .../versions/v2022_11_28/types/group_0530.py | 43 +- .../versions/v2022_11_28/types/group_0531.py | 20 +- .../versions/v2022_11_28/types/group_0532.py | 18 +- .../versions/v2022_11_28/types/group_0533.py | 20 +- .../versions/v2022_11_28/types/group_0534.py | 26 +- .../versions/v2022_11_28/types/group_0535.py | 24 +- .../versions/v2022_11_28/types/group_0536.py | 28 +- .../versions/v2022_11_28/types/group_0537.py | 22 +- .../versions/v2022_11_28/types/group_0538.py | 20 +- .../versions/v2022_11_28/types/group_0539.py | 23 +- .../versions/v2022_11_28/types/group_0540.py | 158 +- .../versions/v2022_11_28/types/group_0541.py | 154 +- .../versions/v2022_11_28/types/group_0542.py | 150 +- .../versions/v2022_11_28/types/group_0543.py | 200 +- .../versions/v2022_11_28/types/group_0544.py | 18 +- .../versions/v2022_11_28/types/group_0545.py | 129 +- .../versions/v2022_11_28/types/group_0546.py | 30 +- .../versions/v2022_11_28/types/group_0547.py | 39 +- .../versions/v2022_11_28/types/group_0548.py | 21 +- .../versions/v2022_11_28/types/group_0549.py | 40 +- .../versions/v2022_11_28/types/group_0550.py | 40 +- .../versions/v2022_11_28/types/group_0551.py | 40 +- .../versions/v2022_11_28/types/group_0552.py | 97 +- .../versions/v2022_11_28/types/group_0553.py | 16 +- .../versions/v2022_11_28/types/group_0554.py | 98 +- .../versions/v2022_11_28/types/group_0555.py | 95 +- .../versions/v2022_11_28/types/group_0556.py | 166 +- .../versions/v2022_11_28/types/group_0557.py | 107 +- .../versions/v2022_11_28/types/group_0558.py | 127 +- .../versions/v2022_11_28/types/group_0559.py | 127 +- .../versions/v2022_11_28/types/group_0560.py | 69 +- .../versions/v2022_11_28/types/group_0561.py | 57 +- .../versions/v2022_11_28/types/group_0562.py | 47 +- .../versions/v2022_11_28/types/group_0563.py | 85 +- .../versions/v2022_11_28/types/group_0564.py | 162 +- .../versions/v2022_11_28/types/group_0565.py | 156 +- .../versions/v2022_11_28/types/group_0566.py | 42 +- .../versions/v2022_11_28/types/group_0567.py | 55 +- .../versions/v2022_11_28/types/group_0568.py | 166 +- .../versions/v2022_11_28/types/group_0569.py | 75 +- .../versions/v2022_11_28/types/group_0570.py | 130 +- .../versions/v2022_11_28/types/group_0571.py | 31 +- .../versions/v2022_11_28/types/group_0572.py | 58 +- .../versions/v2022_11_28/types/group_0573.py | 101 +- .../versions/v2022_11_28/types/group_0574.py | 108 +- .../versions/v2022_11_28/types/group_0575.py | 51 +- .../versions/v2022_11_28/types/group_0577.py | 2 +- .../versions/v2022_11_28/types/group_0578.py | 2 +- .../versions/v2022_11_28/types/group_0579.py | 12 +- .../versions/v2022_11_28/types/group_0580.py | 12 +- .../versions/v2022_11_28/types/group_0581.py | 8 +- .../versions/v2022_11_28/types/group_0587.py | 147 +- .../versions/v2022_11_28/types/group_0588.py | 156 +- .../versions/v2022_11_28/types/group_0589.py | 44 +- .../versions/v2022_11_28/types/group_0590.py | 55 +- .../versions/v2022_11_28/types/group_0591.py | 24 +- .../versions/v2022_11_28/types/group_0592.py | 190 +- .../versions/v2022_11_28/types/group_0593.py | 76 +- .../versions/v2022_11_28/types/group_0594.py | 160 +- .../versions/v2022_11_28/types/group_0595.py | 54 +- .../versions/v2022_11_28/types/group_0596.py | 96 +- .../versions/v2022_11_28/types/group_0597.py | 106 +- .../versions/v2022_11_28/types/group_0598.py | 46 +- .../versions/v2022_11_28/types/group_0599.py | 116 +- .../versions/v2022_11_28/types/group_0600.py | 130 +- .../versions/v2022_11_28/types/group_0601.py | 41 +- .../versions/v2022_11_28/types/group_0602.py | 52 +- .../versions/v2022_11_28/types/group_0603.py | 353 +- .../versions/v2022_11_28/types/group_0604.py | 365 +- .../versions/v2022_11_28/types/group_0605.py | 361 +- .../versions/v2022_11_28/types/group_0606.py | 373 +- .../versions/v2022_11_28/types/group_0607.py | 356 +- .../versions/v2022_11_28/types/group_0608.py | 364 +- .../versions/v2022_11_28/types/group_0609.py | 354 +- .../versions/v2022_11_28/types/group_0610.py | 362 +- .../versions/v2022_11_28/types/group_0611.py | 355 +- .../versions/v2022_11_28/types/group_0612.py | 367 +- .../versions/v2022_11_28/types/group_0613.py | 355 +- .../versions/v2022_11_28/types/group_0614.py | 365 +- .../versions/v2022_11_28/types/group_0615.py | 200 +- .../versions/v2022_11_28/types/group_0616.py | 438 +- .../versions/v2022_11_28/types/group_0617.py | 171 +- .../versions/v2022_11_28/types/group_0618.py | 363 +- .../versions/v2022_11_28/types/group_0619.py | 20 +- .../versions/v2022_11_28/types/group_0620.py | 353 +- .../versions/v2022_11_28/types/group_0621.py | 365 +- .../versions/v2022_11_28/types/group_0622.py | 204 +- .../versions/v2022_11_28/types/group_0623.py | 435 +- .../versions/v2022_11_28/types/group_0624.py | 391 +- .../versions/v2022_11_28/types/group_0625.py | 22 +- .../versions/v2022_11_28/types/group_0626.py | 24 +- .../versions/v2022_11_28/types/group_0627.py | 22 +- .../versions/v2022_11_28/types/group_0628.py | 355 +- .../versions/v2022_11_28/types/group_0629.py | 365 +- .../versions/v2022_11_28/types/group_0630.py | 24 +- .../versions/v2022_11_28/types/group_0631.py | 26 +- .../versions/v2022_11_28/types/group_0632.py | 20 +- .../versions/v2022_11_28/types/group_0633.py | 54 +- .../versions/v2022_11_28/types/group_0634.py | 61 +- .../versions/v2022_11_28/types/group_0635.py | 72 +- .../versions/v2022_11_28/types/group_0636.py | 48 +- .../versions/v2022_11_28/types/group_0637.py | 52 +- .../versions/v2022_11_28/types/group_0638.py | 74 +- .../versions/v2022_11_28/types/group_0639.py | 64 +- .../versions/v2022_11_28/types/group_0640.py | 60 +- .../versions/v2022_11_28/types/group_0641.py | 47 +- .../versions/v2022_11_28/types/group_0642.py | 58 +- .../versions/v2022_11_28/types/group_0643.py | 28 +- .../versions/v2022_11_28/types/group_0644.py | 60 +- .../versions/v2022_11_28/types/group_0645.py | 17 +- .../versions/v2022_11_28/types/group_0646.py | 55 +- .../versions/v2022_11_28/types/group_0647.py | 56 +- .../versions/v2022_11_28/types/group_0648.py | 20 +- .../versions/v2022_11_28/types/group_0649.py | 20 +- .../versions/v2022_11_28/types/group_0650.py | 54 +- .../versions/v2022_11_28/types/group_0651.py | 56 +- .../versions/v2022_11_28/types/group_0652.py | 26 +- .../versions/v2022_11_28/types/group_0653.py | 18 +- .../versions/v2022_11_28/types/group_0654.py | 22 +- .../versions/v2022_11_28/types/group_0655.py | 20 +- .../versions/v2022_11_28/types/group_0656.py | 75 +- .../versions/v2022_11_28/types/group_0657.py | 75 +- .../versions/v2022_11_28/types/group_0658.py | 37 +- .../versions/v2022_11_28/types/group_0659.py | 54 +- .../versions/v2022_11_28/types/group_0660.py | 53 +- .../versions/v2022_11_28/types/group_0661.py | 80 +- .../versions/v2022_11_28/types/group_0662.py | 476 +- .../versions/v2022_11_28/types/group_0663.py | 504 +- .../versions/v2022_11_28/types/group_0664.py | 78 +- .../versions/v2022_11_28/types/group_0665.py | 145 +- .../versions/v2022_11_28/types/group_0666.py | 155 +- .../versions/v2022_11_28/types/group_0667.py | 80 +- .../versions/v2022_11_28/types/group_0668.py | 16 +- .../versions/v2022_11_28/types/group_0669.py | 18 +- .../versions/v2022_11_28/types/group_0670.py | 20 +- .../versions/v2022_11_28/types/group_0671.py | 26 +- .../versions/v2022_11_28/types/group_0672.py | 48 +- .../versions/v2022_11_28/types/group_0673.py | 45 +- .../versions/v2022_11_28/types/group_0674.py | 42 +- .../versions/v2022_11_28/types/group_0675.py | 35 +- .../versions/v2022_11_28/types/group_0676.py | 73 +- .../versions/v2022_11_28/types/group_0677.py | 80 +- .../versions/v2022_11_28/types/group_0678.py | 85 +- .../versions/v2022_11_28/types/group_0679.py | 52 +- .../versions/v2022_11_28/types/group_0680.py | 52 +- .../versions/v2022_11_28/types/group_0681.py | 68 +- .../versions/v2022_11_28/types/group_0682.py | 22 +- .../versions/v2022_11_28/types/group_0683.py | 22 +- .../versions/v2022_11_28/types/group_0684.py | 39 +- .../versions/v2022_11_28/types/group_0685.py | 37 +- .../versions/v2022_11_28/types/group_0686.py | 20 +- .../versions/v2022_11_28/types/group_0687.py | 24 +- .../versions/v2022_11_28/types/group_0688.py | 50 +- .../versions/v2022_11_28/types/group_0689.py | 48 +- .../versions/v2022_11_28/types/group_0690.py | 22 +- .../versions/v2022_11_28/types/group_0691.py | 17 +- .../versions/v2022_11_28/types/group_0692.py | 17 +- .../versions/v2022_11_28/types/group_0693.py | 65 +- .../versions/v2022_11_28/types/group_0694.py | 69 +- .../versions/v2022_11_28/types/group_0695.py | 38 +- .../versions/v2022_11_28/types/group_0696.py | 36 +- .../versions/v2022_11_28/types/group_0697.py | 14 +- .../versions/v2022_11_28/types/group_0698.py | 100 +- .../versions/v2022_11_28/types/group_0699.py | 98 +- .../versions/v2022_11_28/types/group_0700.py | 40 +- .../versions/v2022_11_28/types/group_0701.py | 18 +- .../versions/v2022_11_28/types/group_0702.py | 16 +- .../versions/v2022_11_28/types/group_0703.py | 14 +- .../versions/v2022_11_28/types/group_0704.py | 70 +- .../versions/v2022_11_28/types/group_0705.py | 74 +- .../versions/v2022_11_28/types/group_0706.py | 941 +- .../versions/v2022_11_28/types/group_0707.py | 365 +- .../versions/v2022_11_28/types/group_0708.py | 268 +- .../versions/v2022_11_28/types/group_0709.py | 981 +- .../versions/v2022_11_28/types/group_0710.py | 18 +- .../versions/v2022_11_28/types/group_0711.py | 24 +- .../versions/v2022_11_28/types/group_0712.py | 959 +- .../versions/v2022_11_28/types/group_0713.py | 964 +- .../versions/v2022_11_28/types/group_0714.py | 950 +- .../versions/v2022_11_28/types/group_0715.py | 334 +- .../versions/v2022_11_28/types/group_0716.py | 260 +- .../versions/v2022_11_28/types/group_0717.py | 935 +- .../versions/v2022_11_28/types/group_0718.py | 24 +- .../versions/v2022_11_28/types/group_0719.py | 18 +- .../versions/v2022_11_28/types/group_0720.py | 18 +- .../versions/v2022_11_28/types/group_0721.py | 1090 +- .../versions/v2022_11_28/types/group_0722.py | 397 +- .../versions/v2022_11_28/types/group_0723.py | 259 +- .../versions/v2022_11_28/types/group_0724.py | 400 +- .../versions/v2022_11_28/types/group_0725.py | 372 +- .../versions/v2022_11_28/types/group_0726.py | 514 +- .../versions/v2022_11_28/types/group_0727.py | 312 +- .../versions/v2022_11_28/types/group_0728.py | 376 +- .../versions/v2022_11_28/types/group_0729.py | 321 +- .../versions/v2022_11_28/types/group_0730.py | 459 +- .../versions/v2022_11_28/types/group_0731.py | 447 +- .../versions/v2022_11_28/types/group_0732.py | 400 +- .../versions/v2022_11_28/types/group_0733.py | 554 +- .../versions/v2022_11_28/types/group_0734.py | 318 +- .../versions/v2022_11_28/types/group_0735.py | 262 +- .../versions/v2022_11_28/types/group_0736.py | 286 +- .../versions/v2022_11_28/types/group_0737.py | 880 +- .../versions/v2022_11_28/types/group_0738.py | 298 +- .../versions/v2022_11_28/types/group_0739.py | 78 +- .../versions/v2022_11_28/types/group_0740.py | 502 +- .../versions/v2022_11_28/types/group_0741.py | 528 +- .../versions/v2022_11_28/types/group_0742.py | 72 +- .../versions/v2022_11_28/types/group_0743.py | 155 +- .../versions/v2022_11_28/types/group_0744.py | 181 +- .../versions/v2022_11_28/types/group_0745.py | 18 +- .../versions/v2022_11_28/types/group_0746.py | 61 +- .../versions/v2022_11_28/types/group_0747.py | 184 +- .../versions/v2022_11_28/types/group_0748.py | 150 +- .../versions/v2022_11_28/types/group_0749.py | 20 +- .../versions/v2022_11_28/types/group_0750.py | 20 +- .../versions/v2022_11_28/types/group_0751.py | 20 +- .../versions/v2022_11_28/types/group_0752.py | 18 +- .../versions/v2022_11_28/types/group_0753.py | 20 +- .../versions/v2022_11_28/types/group_0754.py | 16 +- .../versions/v2022_11_28/types/group_0755.py | 16 +- .../versions/v2022_11_28/types/group_0756.py | 35 +- .../versions/v2022_11_28/types/group_0757.py | 66 +- .../versions/v2022_11_28/types/group_0758.py | 59 +- .../versions/v2022_11_28/types/group_0759.py | 16 +- .../versions/v2022_11_28/types/group_0760.py | 16 +- .../versions/v2022_11_28/types/group_0761.py | 40 +- .../versions/v2022_11_28/types/group_0762.py | 44 +- .../versions/v2022_11_28/types/group_0763.py | 18 +- .../versions/v2022_11_28/types/group_0764.py | 20 +- .../versions/v2022_11_28/types/group_0765.py | 46 +- .../versions/v2022_11_28/types/group_0766.py | 39 +- .../versions/v2022_11_28/types/group_0767.py | 90 +- .../versions/v2022_11_28/types/group_0768.py | 161 +- .../versions/v2022_11_28/types/group_0769.py | 176 +- .../versions/v2022_11_28/types/group_0770.py | 178 +- .../versions/v2022_11_28/types/group_0771.py | 98 +- .../versions/v2022_11_28/types/group_0772.py | 18 +- .../versions/v2022_11_28/types/group_0773.py | 81 +- .../versions/v2022_11_28/types/group_0774.py | 81 +- .../versions/v2022_11_28/types/group_0775.py | 81 +- .../versions/v2022_11_28/types/group_0776.py | 83 +- .../versions/v2022_11_28/types/group_0777.py | 20 +- .../versions/v2022_11_28/types/group_0778.py | 22 +- .../versions/v2022_11_28/types/group_0779.py | 24 +- .../versions/v2022_11_28/types/group_0780.py | 18 +- .../versions/v2022_11_28/types/group_0781.py | 18 +- .../versions/v2022_11_28/types/group_0782.py | 18 +- .../versions/v2022_11_28/types/group_0783.py | 38 +- .../versions/v2022_11_28/types/group_0784.py | 38 +- .../versions/v2022_11_28/types/group_0785.py | 18 +- .../versions/v2022_11_28/types/group_0786.py | 20 +- .../versions/v2022_11_28/types/group_0787.py | 120 +- .../versions/v2022_11_28/types/group_0788.py | 118 +- .../versions/v2022_11_28/types/group_0789.py | 20 +- .../versions/v2022_11_28/types/group_0790.py | 11 +- .../versions/v2022_11_28/types/group_0791.py | 23 +- .../versions/v2022_11_28/types/group_0792.py | 18 +- .../versions/v2022_11_28/types/group_0793.py | 35 +- .../versions/v2022_11_28/types/group_0794.py | 36 +- .../versions/v2022_11_28/types/group_0795.py | 20 +- .../versions/v2022_11_28/types/group_0796.py | 21 +- .../versions/v2022_11_28/types/group_0797.py | 25 +- .../versions/v2022_11_28/types/group_0798.py | 20 +- .../versions/v2022_11_28/types/group_0799.py | 196 +- .../versions/v2022_11_28/types/group_0800.py | 197 +- .../versions/v2022_11_28/types/group_0801.py | 18 +- .../versions/v2022_11_28/types/group_0802.py | 18 +- .../versions/v2022_11_28/types/group_0803.py | 18 +- .../versions/v2022_11_28/types/group_0804.py | 27 +- .../versions/v2022_11_28/types/group_0805.py | 16 +- .../versions/v2022_11_28/types/group_0806.py | 22 +- .../versions/v2022_11_28/types/group_0807.py | 16 +- .../versions/v2022_11_28/types/group_0808.py | 35 +- .../versions/v2022_11_28/types/group_0809.py | 193 +- .../versions/v2022_11_28/types/group_0810.py | 56 +- .../versions/v2022_11_28/types/group_0811.py | 52 +- .../versions/v2022_11_28/types/group_0812.py | 120 +- .../versions/v2022_11_28/types/group_0813.py | 122 +- .../versions/v2022_11_28/types/group_0814.py | 193 +- .../versions/v2022_11_28/types/group_0815.py | 30 +- .../versions/v2022_11_28/types/group_0816.py | 76 +- .../versions/v2022_11_28/types/group_0817.py | 72 +- .../versions/v2022_11_28/types/group_0818.py | 94 +- .../versions/v2022_11_28/types/group_0819.py | 106 +- .../versions/v2022_11_28/types/group_0820.py | 61 +- .../versions/v2022_11_28/types/group_0821.py | 76 +- .../versions/v2022_11_28/types/group_0822.py | 88 +- .../versions/v2022_11_28/types/group_0823.py | 36 +- .../versions/v2022_11_28/types/group_0824.py | 430 +- .../versions/v2022_11_28/types/group_0825.py | 140 +- .../versions/v2022_11_28/types/group_0826.py | 150 +- .../versions/v2022_11_28/types/group_0827.py | 427 +- .../versions/v2022_11_28/types/group_0828.py | 26 +- .../versions/v2022_11_28/types/group_0829.py | 16 +- .../versions/v2022_11_28/types/group_0830.py | 14 +- .../versions/v2022_11_28/types/group_0831.py | 14 +- .../versions/v2022_11_28/types/group_0832.py | 14 +- .../versions/v2022_11_28/types/group_0833.py | 6 +- .../versions/v2022_11_28/types/group_0834.py | 6 +- .../versions/v2022_11_28/types/group_0835.py | 6 +- .../versions/v2022_11_28/types/group_0836.py | 15 +- .../versions/v2022_11_28/types/group_0837.py | 17 +- .../versions/v2022_11_28/types/group_0838.py | 13 +- .../versions/v2022_11_28/types/group_0839.py | 75 +- .../versions/v2022_11_28/types/group_0840.py | 26 +- .../versions/v2022_11_28/types/group_0841.py | 67 +- .../versions/v2022_11_28/types/group_0842.py | 12 +- .../versions/v2022_11_28/types/group_0843.py | 11 +- .../versions/v2022_11_28/types/group_0844.py | 22 +- .../versions/v2022_11_28/types/group_0845.py | 28 +- .../versions/v2022_11_28/types/group_0846.py | 30 +- .../versions/v2022_11_28/types/group_0847.py | 36 +- .../versions/v2022_11_28/types/group_0848.py | 32 +- .../versions/v2022_11_28/types/group_0849.py | 6 +- .../versions/v2022_11_28/types/group_0850.py | 8 +- .../versions/v2022_11_28/types/group_0851.py | 14 +- .../versions/v2022_11_28/types/group_0852.py | 15 +- .../versions/v2022_11_28/types/group_0853.py | 13 +- .../versions/v2022_11_28/types/group_0854.py | 10 +- .../versions/v2022_11_28/types/group_0855.py | 8 +- .../versions/v2022_11_28/types/group_0856.py | 13 +- .../versions/v2022_11_28/types/group_0857.py | 16 +- .../versions/v2022_11_28/types/group_0858.py | 53 +- .../versions/v2022_11_28/types/group_0859.py | 69 +- .../versions/v2022_11_28/types/group_0860.py | 24 +- .../versions/v2022_11_28/types/group_0861.py | 31 +- .../versions/v2022_11_28/types/group_0862.py | 31 +- .../versions/v2022_11_28/types/group_0863.py | 8 +- .../versions/v2022_11_28/types/group_0864.py | 10 +- .../versions/v2022_11_28/types/group_0865.py | 10 +- .../versions/v2022_11_28/types/group_0866.py | 14 +- .../versions/v2022_11_28/types/group_0867.py | 13 +- .../versions/v2022_11_28/types/group_0868.py | 15 +- .../versions/v2022_11_28/types/group_0869.py | 11 +- .../versions/v2022_11_28/types/group_0870.py | 33 +- .../versions/v2022_11_28/types/group_0871.py | 33 +- .../versions/v2022_11_28/types/group_0872.py | 12 +- .../versions/v2022_11_28/types/group_0873.py | 19 +- .../versions/v2022_11_28/types/group_0874.py | 10 +- .../versions/v2022_11_28/types/group_0875.py | 11 +- .../versions/v2022_11_28/types/group_0876.py | 11 +- .../versions/v2022_11_28/types/group_0877.py | 11 +- .../versions/v2022_11_28/types/group_0878.py | 11 +- .../versions/v2022_11_28/types/group_0879.py | 16 +- .../versions/v2022_11_28/types/group_0880.py | 16 +- .../versions/v2022_11_28/types/group_0881.py | 12 +- .../versions/v2022_11_28/types/group_0882.py | 11 +- .../versions/v2022_11_28/types/group_0883.py | 6 +- .../versions/v2022_11_28/types/group_0884.py | 11 +- .../versions/v2022_11_28/types/group_0885.py | 30 +- .../versions/v2022_11_28/types/group_0886.py | 27 +- .../versions/v2022_11_28/types/group_0887.py | 17 +- .../versions/v2022_11_28/types/group_0888.py | 11 +- .../versions/v2022_11_28/types/group_0889.py | 30 +- .../versions/v2022_11_28/types/group_0890.py | 24 +- .../versions/v2022_11_28/types/group_0891.py | 12 +- .../versions/v2022_11_28/types/group_0892.py | 17 +- .../versions/v2022_11_28/types/group_0893.py | 11 +- .../versions/v2022_11_28/types/group_0894.py | 11 +- .../versions/v2022_11_28/types/group_0895.py | 40 +- .../versions/v2022_11_28/types/group_0896.py | 39 +- .../versions/v2022_11_28/types/group_0897.py | 8 +- .../versions/v2022_11_28/types/group_0898.py | 67 +- .../versions/v2022_11_28/types/group_0899.py | 76 +- .../versions/v2022_11_28/types/group_0900.py | 27 +- .../versions/v2022_11_28/types/group_0901.py | 111 +- .../versions/v2022_11_28/types/group_0902.py | 101 +- .../versions/v2022_11_28/types/group_0903.py | 103 +- .../versions/v2022_11_28/types/group_0904.py | 103 +- .../versions/v2022_11_28/types/group_0905.py | 11 +- .../versions/v2022_11_28/types/group_0906.py | 13 +- .../versions/v2022_11_28/types/group_0907.py | 21 +- .../versions/v2022_11_28/types/group_0908.py | 20 +- .../versions/v2022_11_28/types/group_0909.py | 17 +- .../versions/v2022_11_28/types/group_0910.py | 6 +- .../versions/v2022_11_28/types/group_0911.py | 29 +- .../versions/v2022_11_28/types/group_0912.py | 27 +- .../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 | 8 +- .../versions/v2022_11_28/types/group_0916.py | 11 +- .../versions/v2022_11_28/types/group_0917.py | 11 +- .../versions/v2022_11_28/types/group_0918.py | 12 +- .../versions/v2022_11_28/types/group_0919.py | 12 +- .../versions/v2022_11_28/types/group_0920.py | 11 +- .../versions/v2022_11_28/types/group_0921.py | 11 +- .../versions/v2022_11_28/types/group_0922.py | 11 +- .../versions/v2022_11_28/types/group_0923.py | 28 +- .../versions/v2022_11_28/types/group_0924.py | 27 +- .../versions/v2022_11_28/types/group_0925.py | 17 +- .../versions/v2022_11_28/types/group_0926.py | 11 +- .../versions/v2022_11_28/types/group_0927.py | 31 +- .../versions/v2022_11_28/types/group_0928.py | 18 +- .../versions/v2022_11_28/types/group_0929.py | 23 +- .../versions/v2022_11_28/types/group_0930.py | 17 +- .../versions/v2022_11_28/types/group_0931.py | 11 +- .../versions/v2022_11_28/types/group_0932.py | 14 +- .../versions/v2022_11_28/types/group_0933.py | 17 +- .../versions/v2022_11_28/types/group_0934.py | 14 +- .../versions/v2022_11_28/types/group_0935.py | 16 +- .../versions/v2022_11_28/types/group_0936.py | 17 +- .../versions/v2022_11_28/types/group_0937.py | 10 +- .../versions/v2022_11_28/types/group_0938.py | 11 +- .../versions/v2022_11_28/types/group_0939.py | 12 +- .../versions/v2022_11_28/types/group_0940.py | 7 +- .../versions/v2022_11_28/types/group_0941.py | 14 +- .../versions/v2022_11_28/types/group_0942.py | 7 +- .../versions/v2022_11_28/types/group_0943.py | 57 +- .../versions/v2022_11_28/types/group_0944.py | 47 +- .../versions/v2022_11_28/types/group_0945.py | 16 +- .../versions/v2022_11_28/types/group_0946.py | 46 +- .../versions/v2022_11_28/types/group_0947.py | 18 +- .../versions/v2022_11_28/types/group_0948.py | 13 +- .../versions/v2022_11_28/types/group_0949.py | 11 +- .../versions/v2022_11_28/types/group_0950.py | 57 +- .../versions/v2022_11_28/types/group_0951.py | 108 +- .../versions/v2022_11_28/types/group_0952.py | 54 +- .../versions/v2022_11_28/types/group_0953.py | 89 +- .../versions/v2022_11_28/types/group_0954.py | 28 +- .../versions/v2022_11_28/types/group_0955.py | 12 +- .../versions/v2022_11_28/types/group_0956.py | 27 +- .../versions/v2022_11_28/types/group_0957.py | 16 +- .../versions/v2022_11_28/types/group_0958.py | 18 +- .../versions/v2022_11_28/types/group_0959.py | 11 +- .../versions/v2022_11_28/types/group_0960.py | 11 +- .../versions/v2022_11_28/types/group_0961.py | 10 +- .../versions/v2022_11_28/types/group_0962.py | 13 +- .../versions/v2022_11_28/types/group_0963.py | 12 +- .../versions/v2022_11_28/types/group_0964.py | 12 +- .../versions/v2022_11_28/types/group_0965.py | 8 +- .../versions/v2022_11_28/types/group_0966.py | 10 +- .../versions/v2022_11_28/types/group_0967.py | 9 +- .../versions/v2022_11_28/types/group_0968.py | 9 +- .../versions/v2022_11_28/types/group_0969.py | 11 +- .../versions/v2022_11_28/types/group_0970.py | 12 +- .../versions/v2022_11_28/types/group_0971.py | 11 +- .../versions/v2022_11_28/types/group_0972.py | 11 +- .../versions/v2022_11_28/types/group_0973.py | 26 +- .../versions/v2022_11_28/types/group_0974.py | 17 +- .../versions/v2022_11_28/types/group_0975.py | 25 +- .../versions/v2022_11_28/types/group_0976.py | 9 +- .../versions/v2022_11_28/types/group_0977.py | 10 +- .../versions/v2022_11_28/types/group_0978.py | 26 +- .../versions/v2022_11_28/types/group_0979.py | 25 +- .../versions/v2022_11_28/types/group_0980.py | 8 +- .../versions/v2022_11_28/types/group_0981.py | 12 +- .../versions/v2022_11_28/types/group_0982.py | 15 +- .../versions/v2022_11_28/types/group_0983.py | 15 +- .../versions/v2022_11_28/types/group_0984.py | 11 +- .../versions/v2022_11_28/types/group_0985.py | 11 +- .../versions/v2022_11_28/types/group_0986.py | 11 +- .../versions/v2022_11_28/types/group_0987.py | 168 +- .../versions/v2022_11_28/types/group_0988.py | 166 +- .../versions/v2022_11_28/types/group_0989.py | 13 +- .../versions/v2022_11_28/types/group_0990.py | 12 +- .../versions/v2022_11_28/types/group_0991.py | 15 +- .../versions/v2022_11_28/types/group_0992.py | 10 +- .../versions/v2022_11_28/types/group_0993.py | 15 +- .../versions/v2022_11_28/types/group_0994.py | 15 +- .../versions/v2022_11_28/types/group_0995.py | 16 +- .../versions/v2022_11_28/types/group_0996.py | 11 +- .../versions/v2022_11_28/types/group_0997.py | 6 +- .../versions/v2022_11_28/types/group_0998.py | 11 +- .../versions/v2022_11_28/types/group_0999.py | 10 +- .../versions/v2022_11_28/types/group_1000.py | 12 +- .../versions/v2022_11_28/types/group_1001.py | 10 +- .../versions/v2022_11_28/types/group_1002.py | 14 +- .../versions/v2022_11_28/types/group_1003.py | 13 +- .../versions/v2022_11_28/types/group_1004.py | 6 +- .../versions/v2022_11_28/types/group_1005.py | 13 +- .../versions/v2022_11_28/types/group_1006.py | 12 +- .../versions/v2022_11_28/types/group_1007.py | 12 +- .../versions/v2022_11_28/types/group_1008.py | 12 +- .../versions/v2022_11_28/types/group_1009.py | 12 +- .../versions/v2022_11_28/types/group_1010.py | 36 +- .../versions/v2022_11_28/types/group_1011.py | 45 +- .../versions/v2022_11_28/types/group_1012.py | 29 +- .../versions/v2022_11_28/types/group_1013.py | 49 +- .../versions/v2022_11_28/types/group_1014.py | 48 +- .../versions/v2022_11_28/types/group_1015.py | 70 +- .../versions/v2022_11_28/types/group_1016.py | 72 +- .../versions/v2022_11_28/types/group_1017.py | 129 +- .../versions/v2022_11_28/types/group_1018.py | 99 +- .../versions/v2022_11_28/types/group_1019.py | 56 +- .../versions/v2022_11_28/types/group_1020.py | 28 +- .../versions/v2022_11_28/types/group_1021.py | 6 +- .../versions/v2022_11_28/types/group_1022.py | 7 +- .../versions/v2022_11_28/types/group_1023.py | 15 +- .../versions/v2022_11_28/types/group_1024.py | 6 +- .../versions/v2022_11_28/types/group_1025.py | 6 +- .../versions/v2022_11_28/types/group_1026.py | 12 +- .../versions/v2022_11_28/types/group_1027.py | 8 +- .../versions/v2022_11_28/types/group_1028.py | 8 +- .../versions/v2022_11_28/types/group_1029.py | 14 +- .../versions/v2022_11_28/types/group_1030.py | 6 +- .../versions/v2022_11_28/types/group_1031.py | 6 +- .../versions/v2022_11_28/types/group_1032.py | 12 +- .../versions/v2022_11_28/types/group_1033.py | 59 +- .../versions/v2022_11_28/types/group_1034.py | 78 +- .../versions/v2022_11_28/types/group_1035.py | 32 +- .../versions/v2022_11_28/types/group_1036.py | 84 +- .../versions/v2022_11_28/types/group_1037.py | 83 +- .../versions/v2022_11_28/types/group_1038.py | 30 +- .../versions/v2022_11_28/types/group_1039.py | 48 +- .../versions/v2022_11_28/types/group_1040.py | 26 +- .../versions/v2022_11_28/types/group_1041.py | 27 +- .../versions/v2022_11_28/types/group_1042.py | 19 +- .../versions/v2022_11_28/types/group_1043.py | 19 +- .../versions/v2022_11_28/types/group_1044.py | 10 +- .../versions/v2022_11_28/types/group_1045.py | 10 +- .../versions/v2022_11_28/types/group_1046.py | 22 +- .../versions/v2022_11_28/types/group_1047.py | 20 +- .../versions/v2022_11_28/types/group_1048.py | 24 +- .../versions/v2022_11_28/types/group_1049.py | 33 +- .../versions/v2022_11_28/types/group_1050.py | 27 +- .../versions/v2022_11_28/types/group_1051.py | 25 +- .../versions/v2022_11_28/types/group_1052.py | 28 +- .../versions/v2022_11_28/types/group_1053.py | 27 +- .../versions/v2022_11_28/types/group_1054.py | 9 +- .../versions/v2022_11_28/types/group_1055.py | 10 +- .../versions/v2022_11_28/types/group_1056.py | 11 +- .../versions/v2022_11_28/types/group_1057.py | 16 +- .../versions/v2022_11_28/types/group_1058.py | 16 +- .../versions/v2022_11_28/types/group_1059.py | 43 +- .../versions/v2022_11_28/types/group_1060.py | 40 +- .../versions/v2022_11_28/types/group_1061.py | 43 +- .../versions/v2022_11_28/types/group_1062.py | 33 +- .../versions/v2022_11_28/types/group_1063.py | 27 +- .../versions/v2022_11_28/types/group_1064.py | 14 +- .../versions/v2022_11_28/types/group_1065.py | 32 +- .../versions/v2022_11_28/types/group_1066.py | 29 +- .../versions/v2022_11_28/types/group_1067.py | 17 +- .../versions/v2022_11_28/types/group_1068.py | 33 +- .../versions/v2022_11_28/types/group_1069.py | 39 +- .../versions/v2022_11_28/types/group_1070.py | 38 +- .../versions/v2022_11_28/types/group_1071.py | 23 +- .../versions/v2022_11_28/types/group_1072.py | 15 +- .../versions/v2022_11_28/types/group_1073.py | 22 +- .../versions/v2022_11_28/types/group_1074.py | 12 +- .../versions/v2022_11_28/types/group_1075.py | 12 +- .../versions/v2022_11_28/types/group_1076.py | 12 +- .../versions/v2022_11_28/types/group_1077.py | 12 +- .../versions/v2022_11_28/types/group_1078.py | 9 +- .../versions/v2022_11_28/types/group_1079.py | 11 +- .../versions/v2022_11_28/types/group_1080.py | 45 +- .../versions/v2022_11_28/types/group_1081.py | 47 +- .../versions/v2022_11_28/types/group_1082.py | 10 +- .../versions/v2022_11_28/types/group_1083.py | 29 +- .../versions/v2022_11_28/types/group_1084.py | 33 +- .../versions/v2022_11_28/types/group_1085.py | 32 +- .../versions/v2022_11_28/types/group_1086.py | 29 +- .../versions/v2022_11_28/types/group_1087.py | 18 +- .../versions/v2022_11_28/types/group_1088.py | 17 +- .../versions/v2022_11_28/types/group_1089.py | 9 +- .../versions/v2022_11_28/types/group_1090.py | 13 +- .../versions/v2022_11_28/types/group_1091.py | 12 +- .../versions/v2022_11_28/types/group_1092.py | 9 +- .../versions/v2022_11_28/types/group_1093.py | 11 +- .../versions/v2022_11_28/types/group_1094.py | 30 +- .../versions/v2022_11_28/types/group_1095.py | 31 +- .../versions/v2022_11_28/types/group_1096.py | 11 +- .../versions/v2022_11_28/types/group_1097.py | 40 +- .../versions/v2022_11_28/types/group_1098.py | 37 +- .../versions/v2022_11_28/types/group_1099.py | 6 +- .../versions/v2022_11_28/types/group_1100.py | 10 +- .../versions/v2022_11_28/types/group_1101.py | 10 +- .../versions/v2022_11_28/types/group_1102.py | 19 +- .../versions/v2022_11_28/types/group_1103.py | 19 +- .../versions/v2022_11_28/types/group_1104.py | 10 +- .../versions/v2022_11_28/types/group_1105.py | 19 +- .../versions/v2022_11_28/types/group_1106.py | 19 +- .../versions/v2022_11_28/types/group_1107.py | 11 +- .../versions/v2022_11_28/types/group_1108.py | 12 +- .../versions/v2022_11_28/types/group_1109.py | 11 +- .../versions/v2022_11_28/types/group_1110.py | 9 +- .../versions/v2022_11_28/types/group_1111.py | 9 +- .../versions/v2022_11_28/types/group_1112.py | 12 +- .../versions/v2022_11_28/types/group_1113.py | 12 +- .../versions/v2022_11_28/types/group_1114.py | 8 +- .../versions/v2022_11_28/types/group_1115.py | 12 +- .../versions/v2022_11_28/types/group_1116.py | 12 +- .../versions/v2022_11_28/types/group_1117.py | 15 +- .../versions/v2022_11_28/types/group_1118.py | 8 +- .../versions/v2022_11_28/types/group_1119.py | 12 +- .../versions/v2022_11_28/types/group_1120.py | 10 +- .../versions/v2022_11_28/types/group_1121.py | 16 +- .../versions/v2022_11_28/types/group_1122.py | 24 +- .../versions/v2022_11_28/types/group_1123.py | 18 +- .../versions/v2022_11_28/types/group_1124.py | 18 +- .../versions/v2022_11_28/types/group_1125.py | 10 +- .../versions/v2022_11_28/types/group_1126.py | 10 +- .../versions/v2022_11_28/types/group_1127.py | 22 +- .../versions/v2022_11_28/types/group_1128.py | 13 +- .../versions/v2022_11_28/types/group_1129.py | 12 +- .../versions/v2022_11_28/types/group_1130.py | 17 +- .../versions/v2022_11_28/types/group_1131.py | 17 +- .../versions/v2022_11_28/types/group_1132.py | 11 +- .../versions/v2022_11_28/types/group_1133.py | 13 +- .../versions/v2022_11_28/types/group_1134.py | 19 +- .../versions/v2022_11_28/types/group_1135.py | 17 +- .../versions/v2022_11_28/types/group_1136.py | 11 +- .../versions/v2022_11_28/types/group_1137.py | 16 +- .../versions/v2022_11_28/types/group_1138.py | 27 +- .../versions/v2022_11_28/types/group_1139.py | 32 +- .../versions/v2022_11_28/types/group_1140.py | 22 +- .../versions/v2022_11_28/types/group_1141.py | 14 +- .../versions/v2022_11_28/types/group_1142.py | 13 +- .../versions/v2022_11_28/types/group_1143.py | 6 +- .../versions/v2022_11_28/types/group_1144.py | 10 +- .../versions/v2022_11_28/types/group_1145.py | 10 +- .../versions/v2022_11_28/types/group_1146.py | 10 +- .../versions/v2022_11_28/types/group_1147.py | 30 +- .../versions/v2022_11_28/types/group_1148.py | 29 +- .../versions/v2022_11_28/types/group_1149.py | 12 +- .../versions/v2022_11_28/types/group_1150.py | 10 +- .../versions/v2022_11_28/types/group_1151.py | 10 +- .../versions/v2022_11_28/types/group_1152.py | 9 +- .../versions/v2022_11_28/types/group_1153.py | 18 +- .../versions/v2022_11_28/types/group_1154.py | 17 +- .../versions/v2022_11_28/types/group_1155.py | 13 +- .../versions/v2022_11_28/types/group_1156.py | 17 +- .../versions/v2022_11_28/types/group_1157.py | 17 +- .../versions/v2022_11_28/types/group_1158.py | 69 +- .../versions/v2022_11_28/types/group_1159.py | 50 +- .../versions/v2022_11_28/types/group_1160.py | 67 +- .../versions/v2022_11_28/types/group_1161.py | 17 +- .../versions/v2022_11_28/types/group_1162.py | 16 +- .../versions/v2022_11_28/types/group_1163.py | 13 +- .../versions/v2022_11_28/types/group_1164.py | 11 +- .../versions/v2022_11_28/types/group_1165.py | 8 +- .../versions/v2022_11_28/types/group_1166.py | 12 +- .../versions/v2022_11_28/types/group_1167.py | 14 +- .../versions/v2022_11_28/types/group_1168.py | 16 +- .../versions/v2022_11_28/types/group_1169.py | 18 +- .../versions/v2022_11_28/types/group_1170.py | 11 +- .../versions/v2022_11_28/types/group_1171.py | 11 +- .../versions/v2022_11_28/types/group_1172.py | 8 +- .../versions/v2022_11_28/types/group_1173.py | 13 +- .../versions/v2022_11_28/types/group_1174.py | 10 +- .../versions/v2022_11_28/types/group_1175.py | 12 +- .../versions/v2022_11_28/types/group_1176.py | 8 +- .../versions/v2022_11_28/types/group_1177.py | 10 +- .../versions/v2022_11_28/types/group_1178.py | 10 +- .../versions/v2022_11_28/types/group_1179.py | 17 +- .../versions/v2022_11_28/types/group_1180.py | 21 +- .../versions/v2022_11_28/types/group_1181.py | 25 +- .../versions/v2022_11_28/types/group_1182.py | 26 +- .../versions/v2022_11_28/types/group_1183.py | 33 +- .../versions/v2022_11_28/types/group_1184.py | 32 +- .../versions/v2022_11_28/types/group_1185.py | 16 +- .../versions/v2022_11_28/types/group_1186.py | 11 +- .../versions/v2022_11_28/types/group_1187.py | 12 +- .../versions/v2022_11_28/types/group_1188.py | 15 +- .../versions/v2022_11_28/types/group_1189.py | 14 +- .../versions/v2022_11_28/types/group_1190.py | 12 +- .../versions/v2022_11_28/types/group_1191.py | 13 +- .../versions/v2022_11_28/types/group_1192.py | 11 +- .../versions/v2022_11_28/types/group_1193.py | 20 +- .../versions/v2022_11_28/types/group_1194.py | 14 +- .../versions/v2022_11_28/types/group_1195.py | 13 +- .../versions/v2022_11_28/types/group_1196.py | 14 +- .../versions/v2022_11_28/types/group_1197.py | 11 +- .../versions/v2022_11_28/types/group_1198.py | 12 +- .../versions/v2022_11_28/types/group_1199.py | 18 +- .../versions/v2022_11_28/types/group_1200.py | 19 +- .../versions/v2022_11_28/types/group_1201.py | 37 +- .../versions/v2022_11_28/types/group_1202.py | 50 +- .../versions/v2022_11_28/types/group_1203.py | 6 +- .../versions/v2022_11_28/types/group_1204.py | 16 +- .../versions/v2022_11_28/types/group_1205.py | 10 +- .../versions/v2022_11_28/types/group_1206.py | 42 +- .../versions/v2022_11_28/types/group_1207.py | 41 +- .../versions/v2022_11_28/types/group_1208.py | 8 +- .../versions/v2022_11_28/types/group_1209.py | 70 +- .../versions/v2022_11_28/types/group_1210.py | 81 - 4909 files changed, 207171 insertions(+), 207809 deletions(-) delete mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1336.py rename githubkit/versions/ghec_v2022_11_28/rest/{projects.py => projects_classic.py} (94%) delete mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1336.py delete mode 100644 githubkit/versions/v2022_11_28/models/group_1210.py rename githubkit/versions/v2022_11_28/rest/{projects.py => projects_classic.py} (92%) delete mode 100644 githubkit/versions/v2022_11_28/types/group_1210.py diff --git a/githubkit/rest/__init__.py b/githubkit/rest/__init__.py index 8f7c7d78b..287da34af 100644 --- a/githubkit/rest/__init__.py +++ b/githubkit/rest/__init__.py @@ -331,6 +331,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) + from githubkit.versions.v2022_11_28.models import ( + CodeScanningOptions as CodeScanningOptions, + ) from githubkit.versions.v2022_11_28.models import ( CodeScanningOrganizationAlertItems as CodeScanningOrganizationAlertItems, ) @@ -985,9 +988,6 @@ from githubkit.versions.v2022_11_28.models import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - IssueSearchResultItemPropSubIssuesSummary as IssueSearchResultItemPropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import IssueType as IssueType from githubkit.versions.v2022_11_28.models import Job as Job from githubkit.versions.v2022_11_28.models import ( @@ -4397,9 +4397,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) @@ -4481,9 +4478,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) @@ -4565,9 +4559,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) @@ -4652,9 +4643,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) @@ -4739,9 +4727,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDeletedPropIssuePropSubIssuesSummary as WebhookIssuesDeletedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) @@ -4781,9 +4766,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) @@ -4832,9 +4814,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesEditedPropIssuePropSubIssuesSummary as WebhookIssuesEditedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) @@ -4874,9 +4853,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLabeledPropIssuePropSubIssuesSummary as WebhookIssuesLabeledPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) @@ -4916,9 +4892,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssuePropSubIssuesSummary as WebhookIssuesLockedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) @@ -4958,9 +4931,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary as WebhookIssuesMilestonedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) @@ -5003,9 +4973,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) @@ -5057,9 +5024,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesOpenedPropIssuePropSubIssuesSummary as WebhookIssuesOpenedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) @@ -5102,9 +5066,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssuePropSubIssuesSummary as WebhookIssuesReopenedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) @@ -5147,9 +5108,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) @@ -5213,9 +5171,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssuePropSubIssuesSummary as WebhookIssuesUnlockedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) @@ -8978,9 +8933,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhooksIssue2PropReactions as WebhooksIssue2PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhooksIssue2PropSubIssuesSummary as WebhooksIssue2PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhooksIssue2PropUser as WebhooksIssue2PropUser, ) @@ -9023,9 +8975,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhooksIssuePropReactions as WebhooksIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhooksIssuePropSubIssuesSummary as WebhooksIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhooksIssuePropUser as WebhooksIssuePropUser, ) @@ -9847,6 +9796,7 @@ "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", + "CodeScanningOptions", "CodeScanningDefaultSetupOptions", "CodeSecurityDefaultConfigurationsItems", "SimpleRepository", @@ -9878,8 +9828,8 @@ "Milestone", "IssueType", "ReactionRollup", - "Issue", "SubIssuesSummary", + "Issue", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", "IssueComment", @@ -10521,7 +10471,6 @@ "CommitSearchResultItemPropCommitPropTree", "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropSubIssuesSummary", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", "LabelSearchResultItem", @@ -10611,7 +10560,6 @@ "WebhooksIssuePropPerformedViaGithubAppPropPermissions", "WebhooksIssuePropPullRequest", "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", "WebhooksIssuePropUser", "WebhooksMilestone", "WebhooksMilestonePropCreator", @@ -10626,7 +10574,6 @@ "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", "WebhooksIssue2PropPullRequest", "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", "WebhooksIssue2PropUser", "WebhooksUserMannequin", "WebhooksMarketplacePurchase", @@ -11052,7 +10999,6 @@ "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary", "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -11080,7 +11026,6 @@ "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary", "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -11108,7 +11053,6 @@ "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary", "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -11139,7 +11083,6 @@ "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp", "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -11162,7 +11105,6 @@ "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesDeletedPropIssuePropPullRequest", "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", "WebhookIssuesDeletedPropIssuePropUser", "WebhookIssuesDemilestoned", "WebhookIssuesDemilestonedPropIssue", @@ -11176,7 +11118,6 @@ "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesDemilestonedPropIssuePropPullRequest", "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesDemilestonedPropIssuePropUser", "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", @@ -11193,7 +11134,6 @@ "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesEditedPropIssuePropPullRequest", "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", "WebhookIssuesEditedPropIssuePropUser", "WebhookIssuesLabeled", "WebhookIssuesLabeledPropIssue", @@ -11207,7 +11147,6 @@ "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesLabeledPropIssuePropPullRequest", "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", "WebhookIssuesLabeledPropIssuePropUser", "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", @@ -11221,7 +11160,6 @@ "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesLockedPropIssuePropPullRequest", "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", "WebhookIssuesLockedPropIssuePropUser", "WebhookIssuesMilestoned", "WebhookIssuesMilestonedPropIssue", @@ -11235,7 +11173,6 @@ "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesMilestonedPropIssuePropPullRequest", "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesMilestonedPropIssuePropUser", "WebhookIssuesOpened", "WebhookIssuesOpenedPropChanges", @@ -11255,7 +11192,6 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -11268,7 +11204,6 @@ "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesOpenedPropIssuePropPullRequest", "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropIssuePropUser", "WebhookIssuesPinned", "WebhookIssuesReopened", @@ -11283,7 +11218,6 @@ "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesReopenedPropIssuePropPullRequest", "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", "WebhookIssuesReopenedPropIssuePropUser", "WebhookIssuesTransferred", "WebhookIssuesTransferredPropChanges", @@ -11303,7 +11237,6 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", "WebhookIssuesTyped", "WebhookIssuesUnassigned", @@ -11320,7 +11253,6 @@ "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesUnlockedPropIssuePropPullRequest", "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", "WebhookIssuesUnlockedPropIssuePropUser", "WebhookIssuesUnpinned", "WebhookIssuesUntyped", diff --git a/githubkit/versions/ghec_v2022_11_28/models/__init__.py b/githubkit/versions/ghec_v2022_11_28/models/__init__.py index 5f0556cec..fc02e3c9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/models/__init__.py @@ -228,2822 +228,2808 @@ from .group_0063 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0064 import ( + from .group_0064 import CodeScanningOptions as CodeScanningOptions + from .group_0065 import ( CodeScanningDefaultSetupOptions as CodeScanningDefaultSetupOptions, ) - from .group_0065 import ( + from .group_0066 import ( CodeSecurityDefaultConfigurationsItems as CodeSecurityDefaultConfigurationsItems, ) - from .group_0066 import ( + from .group_0067 import ( CodeSecurityConfigurationRepositories as CodeSecurityConfigurationRepositories, ) - from .group_0067 import ( + from .group_0068 import ( EnterpriseSecurityAnalysisSettings as EnterpriseSecurityAnalysisSettings, ) - from .group_0068 import GetConsumedLicenses as GetConsumedLicenses - from .group_0068 import ( + from .group_0069 import GetConsumedLicenses as GetConsumedLicenses + from .group_0069 import ( GetConsumedLicensesPropUsersItems as GetConsumedLicensesPropUsersItems, ) - from .group_0069 import TeamSimple as TeamSimple - from .group_0070 import Team as Team - from .group_0070 import TeamPropPermissions as TeamPropPermissions - from .group_0071 import CopilotSeatDetails as CopilotSeatDetails - from .group_0071 import EnterpriseTeam as EnterpriseTeam - from .group_0072 import CopilotDotcomChat as CopilotDotcomChat - from .group_0072 import ( + from .group_0070 import TeamSimple as TeamSimple + from .group_0071 import Team as Team + from .group_0071 import TeamPropPermissions as TeamPropPermissions + from .group_0072 import CopilotSeatDetails as CopilotSeatDetails + from .group_0072 import EnterpriseTeam as EnterpriseTeam + from .group_0073 import CopilotDotcomChat as CopilotDotcomChat + from .group_0073 import ( CopilotDotcomChatPropModelsItems as CopilotDotcomChatPropModelsItems, ) - from .group_0072 import CopilotDotcomPullRequests as CopilotDotcomPullRequests - from .group_0072 import ( + from .group_0073 import CopilotDotcomPullRequests as CopilotDotcomPullRequests + from .group_0073 import ( CopilotDotcomPullRequestsPropRepositoriesItems as CopilotDotcomPullRequestsPropRepositoriesItems, ) - from .group_0072 import ( + from .group_0073 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems, ) - from .group_0072 import CopilotIdeChat as CopilotIdeChat - from .group_0072 import ( + from .group_0073 import CopilotIdeChat as CopilotIdeChat + from .group_0073 import ( CopilotIdeChatPropEditorsItems as CopilotIdeChatPropEditorsItems, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeChatPropEditorsItemsPropModelsItems as CopilotIdeChatPropEditorsItemsPropModelsItems, ) - from .group_0072 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions - from .group_0072 import ( + from .group_0073 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions + from .group_0073 import ( CopilotIdeCodeCompletionsPropEditorsItems as CopilotIdeCodeCompletionsPropEditorsItems, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeCodeCompletionsPropLanguagesItems as CopilotIdeCodeCompletionsPropLanguagesItems, ) - from .group_0072 import CopilotUsageMetricsDay as CopilotUsageMetricsDay - from .group_0073 import DependabotAlertPackage as DependabotAlertPackage - from .group_0074 import ( + from .group_0073 import CopilotUsageMetricsDay as CopilotUsageMetricsDay + from .group_0074 import DependabotAlertPackage as DependabotAlertPackage + from .group_0075 import ( DependabotAlertSecurityVulnerability as DependabotAlertSecurityVulnerability, ) - from .group_0074 import ( + from .group_0075 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisory as DependabotAlertSecurityAdvisory, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisoryPropCvss as DependabotAlertSecurityAdvisoryPropCvss, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisoryPropCwesItems as DependabotAlertSecurityAdvisoryPropCwesItems, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItems as DependabotAlertSecurityAdvisoryPropIdentifiersItems, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisoryPropReferencesItems as DependabotAlertSecurityAdvisoryPropReferencesItems, ) - from .group_0076 import ( + from .group_0077 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) - from .group_0077 import ( + from .group_0078 import ( DependabotAlertWithRepositoryPropDependency as DependabotAlertWithRepositoryPropDependency, ) - from .group_0078 import GetLicenseSyncStatus as GetLicenseSyncStatus - from .group_0078 import ( + from .group_0079 import GetLicenseSyncStatus as GetLicenseSyncStatus + from .group_0079 import ( GetLicenseSyncStatusPropServerInstancesItems as GetLicenseSyncStatusPropServerInstancesItems, ) - from .group_0078 import ( + from .group_0079 import ( GetLicenseSyncStatusPropServerInstancesItemsPropLastSync as GetLicenseSyncStatusPropServerInstancesItemsPropLastSync, ) - from .group_0079 import NetworkConfiguration as NetworkConfiguration - from .group_0080 import NetworkSettings as NetworkSettings - from .group_0081 import CustomProperty as CustomProperty - from .group_0082 import CustomPropertySetPayload as CustomPropertySetPayload - from .group_0083 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor - from .group_0084 import ( + from .group_0080 import NetworkConfiguration as NetworkConfiguration + from .group_0081 import NetworkSettings as NetworkSettings + from .group_0082 import CustomProperty as CustomProperty + from .group_0083 import CustomPropertySetPayload as CustomPropertySetPayload + from .group_0084 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor + from .group_0085 import ( EnterpriseRulesetConditionsOrganizationNameTarget as EnterpriseRulesetConditionsOrganizationNameTarget, ) - from .group_0085 import ( + from .group_0086 import ( EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName as EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, ) - from .group_0086 import ( + from .group_0087 import ( RepositoryRulesetConditionsRepositoryNameTarget as RepositoryRulesetConditionsRepositoryNameTarget, ) - from .group_0087 import ( + from .group_0088 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) - from .group_0088 import RepositoryRulesetConditions as RepositoryRulesetConditions - from .group_0089 import ( + from .group_0089 import RepositoryRulesetConditions as RepositoryRulesetConditions + from .group_0090 import ( RepositoryRulesetConditionsPropRefName as RepositoryRulesetConditionsPropRefName, ) - from .group_0090 import ( + from .group_0091 import ( RepositoryRulesetConditionsRepositoryPropertyTarget as RepositoryRulesetConditionsRepositoryPropertyTarget, ) - from .group_0091 import ( + from .group_0092 import ( RepositoryRulesetConditionsRepositoryPropertySpec as RepositoryRulesetConditionsRepositoryPropertySpec, ) - from .group_0091 import ( + from .group_0092 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) - from .group_0092 import ( + from .group_0093 import ( EnterpriseRulesetConditionsOrganizationIdTarget as EnterpriseRulesetConditionsOrganizationIdTarget, ) - from .group_0093 import ( + from .group_0094 import ( EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId as EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, ) - from .group_0094 import ( + from .group_0095 import ( EnterpriseRulesetConditionsOneof0 as EnterpriseRulesetConditionsOneof0, ) - from .group_0095 import ( + from .group_0096 import ( EnterpriseRulesetConditionsOneof1 as EnterpriseRulesetConditionsOneof1, ) - from .group_0096 import ( + from .group_0097 import ( EnterpriseRulesetConditionsOneof2 as EnterpriseRulesetConditionsOneof2, ) - from .group_0097 import ( + from .group_0098 import ( EnterpriseRulesetConditionsOneof3 as EnterpriseRulesetConditionsOneof3, ) - from .group_0098 import RepositoryRuleCreation as RepositoryRuleCreation - from .group_0098 import RepositoryRuleDeletion as RepositoryRuleDeletion - from .group_0098 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward - from .group_0098 import ( + from .group_0099 import RepositoryRuleCreation as RepositoryRuleCreation + from .group_0099 import RepositoryRuleDeletion as RepositoryRuleDeletion + from .group_0099 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward + from .group_0099 import ( RepositoryRuleRequiredSignatures as RepositoryRuleRequiredSignatures, ) - from .group_0099 import RepositoryRuleUpdate as RepositoryRuleUpdate - from .group_0100 import ( + from .group_0100 import RepositoryRuleUpdate as RepositoryRuleUpdate + from .group_0101 import ( RepositoryRuleUpdatePropParameters as RepositoryRuleUpdatePropParameters, ) - from .group_0101 import ( + from .group_0102 import ( RepositoryRuleRequiredLinearHistory as RepositoryRuleRequiredLinearHistory, ) - from .group_0102 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue from .group_0103 import ( - RepositoryRuleMergeQueuePropParameters as RepositoryRuleMergeQueuePropParameters, - ) - from .group_0104 import ( RepositoryRuleRequiredDeployments as RepositoryRuleRequiredDeployments, ) - from .group_0105 import ( + from .group_0104 import ( RepositoryRuleRequiredDeploymentsPropParameters as RepositoryRuleRequiredDeploymentsPropParameters, ) - from .group_0106 import ( + from .group_0105 import ( RepositoryRuleParamsRequiredReviewerConfiguration as RepositoryRuleParamsRequiredReviewerConfiguration, ) - from .group_0106 import RepositoryRuleParamsReviewer as RepositoryRuleParamsReviewer - from .group_0107 import RepositoryRulePullRequest as RepositoryRulePullRequest - from .group_0108 import ( + from .group_0105 import RepositoryRuleParamsReviewer as RepositoryRuleParamsReviewer + from .group_0106 import RepositoryRulePullRequest as RepositoryRulePullRequest + from .group_0107 import ( RepositoryRulePullRequestPropParameters as RepositoryRulePullRequestPropParameters, ) - from .group_0109 import ( + from .group_0108 import ( RepositoryRuleRequiredStatusChecks as RepositoryRuleRequiredStatusChecks, ) - from .group_0110 import ( + from .group_0109 import ( RepositoryRuleParamsStatusCheckConfiguration as RepositoryRuleParamsStatusCheckConfiguration, ) - from .group_0110 import ( + from .group_0109 import ( RepositoryRuleRequiredStatusChecksPropParameters as RepositoryRuleRequiredStatusChecksPropParameters, ) - from .group_0111 import ( + from .group_0110 import ( RepositoryRuleCommitMessagePattern as RepositoryRuleCommitMessagePattern, ) - from .group_0112 import ( + from .group_0111 import ( RepositoryRuleCommitMessagePatternPropParameters as RepositoryRuleCommitMessagePatternPropParameters, ) - from .group_0113 import ( + from .group_0112 import ( RepositoryRuleCommitAuthorEmailPattern as RepositoryRuleCommitAuthorEmailPattern, ) - from .group_0114 import ( + from .group_0113 import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from .group_0115 import ( + from .group_0114 import ( RepositoryRuleCommitterEmailPattern as RepositoryRuleCommitterEmailPattern, ) - from .group_0116 import ( + from .group_0115 import ( RepositoryRuleCommitterEmailPatternPropParameters as RepositoryRuleCommitterEmailPatternPropParameters, ) - from .group_0117 import ( + from .group_0116 import ( RepositoryRuleBranchNamePattern as RepositoryRuleBranchNamePattern, ) - from .group_0118 import ( + from .group_0117 import ( RepositoryRuleBranchNamePatternPropParameters as RepositoryRuleBranchNamePatternPropParameters, ) - from .group_0119 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern - from .group_0120 import ( + from .group_0118 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern + from .group_0119 import ( RepositoryRuleTagNamePatternPropParameters as RepositoryRuleTagNamePatternPropParameters, ) - from .group_0121 import ( + from .group_0120 import ( RepositoryRuleFilePathRestriction as RepositoryRuleFilePathRestriction, ) - from .group_0122 import ( + from .group_0121 import ( RepositoryRuleFilePathRestrictionPropParameters as RepositoryRuleFilePathRestrictionPropParameters, ) - from .group_0123 import ( + from .group_0122 import ( RepositoryRuleMaxFilePathLength as RepositoryRuleMaxFilePathLength, ) - from .group_0124 import ( + from .group_0123 import ( RepositoryRuleMaxFilePathLengthPropParameters as RepositoryRuleMaxFilePathLengthPropParameters, ) - from .group_0125 import ( + from .group_0124 import ( RepositoryRuleFileExtensionRestriction as RepositoryRuleFileExtensionRestriction, ) - from .group_0126 import ( + from .group_0125 import ( RepositoryRuleFileExtensionRestrictionPropParameters as RepositoryRuleFileExtensionRestrictionPropParameters, ) - from .group_0127 import RepositoryRuleMaxFileSize as RepositoryRuleMaxFileSize - from .group_0128 import ( + from .group_0126 import RepositoryRuleMaxFileSize as RepositoryRuleMaxFileSize + from .group_0127 import ( RepositoryRuleMaxFileSizePropParameters as RepositoryRuleMaxFileSizePropParameters, ) - from .group_0129 import ( + from .group_0128 import ( RepositoryRuleParamsRestrictedCommits as RepositoryRuleParamsRestrictedCommits, ) - from .group_0130 import RepositoryRuleWorkflows as RepositoryRuleWorkflows - from .group_0131 import ( + from .group_0129 import RepositoryRuleWorkflows as RepositoryRuleWorkflows + from .group_0130 import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) - from .group_0131 import ( + from .group_0130 import ( RepositoryRuleWorkflowsPropParameters as RepositoryRuleWorkflowsPropParameters, ) - from .group_0132 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning - from .group_0133 import ( + from .group_0131 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning + from .group_0132 import ( RepositoryRuleCodeScanningPropParameters as RepositoryRuleCodeScanningPropParameters, ) - from .group_0133 import ( + from .group_0132 import ( RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, ) - from .group_0134 import ( + from .group_0133 import ( RepositoryRulesetConditionsRepositoryIdTarget as RepositoryRulesetConditionsRepositoryIdTarget, ) - from .group_0135 import ( + from .group_0134 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId, ) - from .group_0136 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 - from .group_0137 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 - from .group_0138 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 - from .group_0139 import RepositoryRuleset as RepositoryRuleset - from .group_0139 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks + from .group_0135 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 + from .group_0136 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 + from .group_0137 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 + from .group_0138 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue from .group_0139 import ( + RepositoryRuleMergeQueuePropParameters as RepositoryRuleMergeQueuePropParameters, + ) + from .group_0140 import RepositoryRuleset as RepositoryRuleset + from .group_0140 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks + from .group_0140 import ( RepositoryRulesetPropLinksPropHtml as RepositoryRulesetPropLinksPropHtml, ) - from .group_0139 import ( + from .group_0140 import ( RepositoryRulesetPropLinksPropSelf as RepositoryRulesetPropLinksPropSelf, ) - from .group_0140 import RulesetVersion as RulesetVersion - from .group_0141 import RulesetVersionPropActor as RulesetVersionPropActor - from .group_0142 import RulesetVersionWithState as RulesetVersionWithState - from .group_0143 import ( + from .group_0141 import RulesetVersion as RulesetVersion + from .group_0142 import RulesetVersionPropActor as RulesetVersionPropActor + from .group_0143 import RulesetVersionWithState as RulesetVersionWithState + from .group_0144 import ( RulesetVersionWithStateAllof1 as RulesetVersionWithStateAllof1, ) - from .group_0144 import ( + from .group_0145 import ( RulesetVersionWithStateAllof1PropState as RulesetVersionWithStateAllof1PropState, ) - from .group_0145 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0145 import ( + from .group_0146 import SecretScanningLocationCommit as SecretScanningLocationCommit + from .group_0146 import ( SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, ) - from .group_0146 import ( + from .group_0147 import ( SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, ) - from .group_0146 import ( + from .group_0147 import ( SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, ) - from .group_0146 import ( + from .group_0147 import ( SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, ) - from .group_0146 import ( + from .group_0147 import ( SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, ) - from .group_0147 import ( + from .group_0148 import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) - from .group_0147 import ( + from .group_0148 import ( SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, ) - from .group_0148 import ( + from .group_0149 import ( OrganizationSecretScanningAlert as OrganizationSecretScanningAlert, ) - from .group_0149 import ActionsBillingUsage as ActionsBillingUsage - from .group_0149 import ( + from .group_0150 import ActionsBillingUsage as ActionsBillingUsage + from .group_0150 import ( ActionsBillingUsagePropMinutesUsedBreakdown as ActionsBillingUsagePropMinutesUsedBreakdown, ) - from .group_0150 import ( + from .group_0151 import ( AdvancedSecurityActiveCommitters as AdvancedSecurityActiveCommitters, ) - from .group_0150 import ( + from .group_0151 import ( AdvancedSecurityActiveCommittersRepository as AdvancedSecurityActiveCommittersRepository, ) - from .group_0150 import ( + from .group_0151 import ( AdvancedSecurityActiveCommittersUser as AdvancedSecurityActiveCommittersUser, ) - from .group_0151 import GetAllCostCenters as GetAllCostCenters - from .group_0151 import ( + from .group_0152 import GetAllCostCenters as GetAllCostCenters + from .group_0152 import ( GetAllCostCentersPropCostCentersItems as GetAllCostCentersPropCostCentersItems, ) - from .group_0151 import ( + from .group_0152 import ( GetAllCostCentersPropCostCentersItemsPropResourcesItems as GetAllCostCentersPropCostCentersItemsPropResourcesItems, ) - from .group_0152 import GetCostCenter as GetCostCenter - from .group_0152 import ( + from .group_0153 import GetCostCenter as GetCostCenter + from .group_0153 import ( GetCostCenterPropResourcesItems as GetCostCenterPropResourcesItems, ) - from .group_0153 import DeleteCostCenter as DeleteCostCenter - from .group_0154 import PackagesBillingUsage as PackagesBillingUsage - from .group_0155 import CombinedBillingUsage as CombinedBillingUsage - from .group_0156 import BillingUsageReport as BillingUsageReport - from .group_0156 import ( + from .group_0154 import DeleteCostCenter as DeleteCostCenter + from .group_0155 import PackagesBillingUsage as PackagesBillingUsage + from .group_0156 import CombinedBillingUsage as CombinedBillingUsage + from .group_0157 import BillingUsageReport as BillingUsageReport + from .group_0157 import ( BillingUsageReportPropUsageItemsItems as BillingUsageReportPropUsageItemsItems, ) - from .group_0157 import Milestone as Milestone - from .group_0158 import IssueType as IssueType - from .group_0159 import ReactionRollup as ReactionRollup - from .group_0160 import Issue as Issue - from .group_0160 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 - from .group_0160 import IssuePropPullRequest as IssuePropPullRequest - from .group_0160 import SubIssuesSummary as SubIssuesSummary - from .group_0161 import IssueComment as IssueComment - from .group_0162 import Actor as Actor - from .group_0162 import Event as Event - from .group_0162 import EventPropPayload as EventPropPayload - from .group_0162 import ( + from .group_0158 import Milestone as Milestone + from .group_0159 import IssueType as IssueType + from .group_0160 import ReactionRollup as ReactionRollup + from .group_0161 import SubIssuesSummary as SubIssuesSummary + from .group_0162 import Issue as Issue + from .group_0162 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 + from .group_0162 import IssuePropPullRequest as IssuePropPullRequest + from .group_0163 import IssueComment as IssueComment + from .group_0164 import Actor as Actor + from .group_0164 import Event as Event + from .group_0164 import EventPropPayload as EventPropPayload + from .group_0164 import ( EventPropPayloadPropPagesItems as EventPropPayloadPropPagesItems, ) - from .group_0162 import EventPropRepo as EventPropRepo - from .group_0163 import Feed as Feed - from .group_0163 import FeedPropLinks as FeedPropLinks - from .group_0163 import LinkWithType as LinkWithType - from .group_0164 import BaseGist as BaseGist - from .group_0164 import BaseGistPropFiles as BaseGistPropFiles - from .group_0165 import GistHistory as GistHistory - from .group_0165 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus - from .group_0165 import GistSimplePropForkOf as GistSimplePropForkOf - from .group_0165 import ( + from .group_0164 import EventPropRepo as EventPropRepo + from .group_0165 import Feed as Feed + from .group_0165 import FeedPropLinks as FeedPropLinks + from .group_0165 import LinkWithType as LinkWithType + from .group_0166 import BaseGist as BaseGist + from .group_0166 import BaseGistPropFiles as BaseGistPropFiles + from .group_0167 import GistHistory as GistHistory + from .group_0167 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus + from .group_0167 import GistSimplePropForkOf as GistSimplePropForkOf + from .group_0167 import ( GistSimplePropForkOfPropFiles as GistSimplePropForkOfPropFiles, ) - from .group_0166 import GistSimple as GistSimple - from .group_0166 import GistSimplePropFiles as GistSimplePropFiles - from .group_0166 import GistSimplePropForksItems as GistSimplePropForksItems - from .group_0166 import PublicUser as PublicUser - from .group_0166 import PublicUserPropPlan as PublicUserPropPlan - from .group_0167 import GistComment as GistComment - from .group_0168 import GistCommit as GistCommit - from .group_0168 import GistCommitPropChangeStatus as GistCommitPropChangeStatus - from .group_0169 import GitignoreTemplate as GitignoreTemplate - from .group_0170 import License as License - from .group_0171 import MarketplaceListingPlan as MarketplaceListingPlan - from .group_0172 import MarketplacePurchase as MarketplacePurchase - from .group_0173 import ( + from .group_0168 import GistSimple as GistSimple + from .group_0168 import GistSimplePropFiles as GistSimplePropFiles + from .group_0168 import GistSimplePropForksItems as GistSimplePropForksItems + from .group_0168 import PublicUser as PublicUser + from .group_0168 import PublicUserPropPlan as PublicUserPropPlan + from .group_0169 import GistComment as GistComment + from .group_0170 import GistCommit as GistCommit + from .group_0170 import GistCommitPropChangeStatus as GistCommitPropChangeStatus + from .group_0171 import GitignoreTemplate as GitignoreTemplate + from .group_0172 import License as License + from .group_0173 import MarketplaceListingPlan as MarketplaceListingPlan + from .group_0174 import MarketplacePurchase as MarketplacePurchase + from .group_0175 import ( MarketplacePurchasePropMarketplacePendingChange as MarketplacePurchasePropMarketplacePendingChange, ) - from .group_0173 import ( + from .group_0175 import ( MarketplacePurchasePropMarketplacePurchase as MarketplacePurchasePropMarketplacePurchase, ) - from .group_0174 import ApiOverview as ApiOverview - from .group_0174 import ApiOverviewPropDomains as ApiOverviewPropDomains - from .group_0174 import ( + from .group_0176 import ApiOverview as ApiOverview + from .group_0176 import ApiOverviewPropDomains as ApiOverviewPropDomains + from .group_0176 import ( ApiOverviewPropDomainsPropActionsInbound as ApiOverviewPropDomainsPropActionsInbound, ) - from .group_0174 import ( + from .group_0176 import ( ApiOverviewPropDomainsPropArtifactAttestations as ApiOverviewPropDomainsPropArtifactAttestations, ) - from .group_0174 import ( + from .group_0176 import ( ApiOverviewPropSshKeyFingerprints as ApiOverviewPropSshKeyFingerprints, ) - from .group_0175 import SecurityAndAnalysis as SecurityAndAnalysis - from .group_0175 import ( + from .group_0177 import SecurityAndAnalysis as SecurityAndAnalysis + from .group_0177 import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropCodeSecurity as SecurityAndAnalysisPropCodeSecurity, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropDependabotSecurityUpdates as SecurityAndAnalysisPropDependabotSecurityUpdates, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanning as SecurityAndAnalysisPropSecretScanning, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanningAiDetection as SecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanningPushProtection as SecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanningValidityChecks as SecurityAndAnalysisPropSecretScanningValidityChecks, ) - from .group_0176 import CodeOfConduct as CodeOfConduct - from .group_0176 import MinimalRepository as MinimalRepository - from .group_0176 import ( + from .group_0178 import CodeOfConduct as CodeOfConduct + from .group_0178 import MinimalRepository as MinimalRepository + from .group_0178 import ( MinimalRepositoryPropCustomProperties as MinimalRepositoryPropCustomProperties, ) - from .group_0176 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense - from .group_0176 import ( + from .group_0178 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense + from .group_0178 import ( MinimalRepositoryPropPermissions as MinimalRepositoryPropPermissions, ) - from .group_0177 import Thread as Thread - from .group_0177 import ThreadPropSubject as ThreadPropSubject - from .group_0178 import ThreadSubscription as ThreadSubscription - from .group_0179 import ( + from .group_0179 import Thread as Thread + from .group_0179 import ThreadPropSubject as ThreadPropSubject + from .group_0180 import ThreadSubscription as ThreadSubscription + from .group_0181 import ( OrganizationCustomRepositoryRole as OrganizationCustomRepositoryRole, ) - from .group_0180 import ( + from .group_0182 import ( DependabotRepositoryAccessDetails as DependabotRepositoryAccessDetails, ) - from .group_0181 import OrganizationFull as OrganizationFull - from .group_0181 import OrganizationFullPropPlan as OrganizationFullPropPlan - from .group_0182 import OidcCustomSub as OidcCustomSub - from .group_0183 import ( + from .group_0183 import OrganizationFull as OrganizationFull + from .group_0183 import OrganizationFullPropPlan as OrganizationFullPropPlan + from .group_0184 import OidcCustomSub as OidcCustomSub + from .group_0185 import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) - from .group_0184 import ActionsPublicKey as ActionsPublicKey - from .group_0185 import SecretScanningBypassRequest as SecretScanningBypassRequest - from .group_0185 import ( + from .group_0186 import ActionsPublicKey as ActionsPublicKey + from .group_0187 import SecretScanningBypassRequest as SecretScanningBypassRequest + from .group_0187 import ( SecretScanningBypassRequestPropDataItems as SecretScanningBypassRequestPropDataItems, ) - from .group_0185 import ( + from .group_0187 import ( SecretScanningBypassRequestPropOrganization as SecretScanningBypassRequestPropOrganization, ) - from .group_0185 import ( + from .group_0187 import ( SecretScanningBypassRequestPropRepository as SecretScanningBypassRequestPropRepository, ) - from .group_0185 import ( + from .group_0187 import ( SecretScanningBypassRequestPropRequester as SecretScanningBypassRequestPropRequester, ) - from .group_0186 import CampaignSummary as CampaignSummary - from .group_0186 import ( + from .group_0188 import CampaignSummary as CampaignSummary + from .group_0188 import ( CampaignSummaryPropAlertStats as CampaignSummaryPropAlertStats, ) - from .group_0187 import CodespaceMachine as CodespaceMachine - from .group_0188 import Codespace as Codespace - from .group_0188 import CodespacePropGitStatus as CodespacePropGitStatus - from .group_0188 import ( + from .group_0189 import CodespaceMachine as CodespaceMachine + from .group_0190 import Codespace as Codespace + from .group_0190 import CodespacePropGitStatus as CodespacePropGitStatus + from .group_0190 import ( CodespacePropRuntimeConstraints as CodespacePropRuntimeConstraints, ) - from .group_0189 import CodespacesPublicKey as CodespacesPublicKey - from .group_0190 import CopilotOrganizationDetails as CopilotOrganizationDetails - from .group_0190 import ( + from .group_0191 import CodespacesPublicKey as CodespacesPublicKey + from .group_0192 import CopilotOrganizationDetails as CopilotOrganizationDetails + from .group_0192 import ( CopilotOrganizationSeatBreakdown as CopilotOrganizationSeatBreakdown, ) - from .group_0191 import CredentialAuthorization as CredentialAuthorization - from .group_0192 import ( + from .group_0193 import CredentialAuthorization as CredentialAuthorization + from .group_0194 import ( OrganizationCustomRepositoryRoleCreateSchema as OrganizationCustomRepositoryRoleCreateSchema, ) - from .group_0193 import ( + from .group_0195 import ( OrganizationCustomRepositoryRoleUpdateSchema as OrganizationCustomRepositoryRoleUpdateSchema, ) - from .group_0194 import DependabotPublicKey as DependabotPublicKey - from .group_0195 import ( + from .group_0196 import DependabotPublicKey as DependabotPublicKey + from .group_0197 import ( CodeScanningAlertDismissalRequest as CodeScanningAlertDismissalRequest, ) - from .group_0195 import ( + from .group_0197 import ( CodeScanningAlertDismissalRequestPropDataItems as CodeScanningAlertDismissalRequestPropDataItems, ) - from .group_0195 import ( + from .group_0197 import ( CodeScanningAlertDismissalRequestPropOrganization as CodeScanningAlertDismissalRequestPropOrganization, ) - from .group_0195 import ( + from .group_0197 import ( CodeScanningAlertDismissalRequestPropRepository as CodeScanningAlertDismissalRequestPropRepository, ) - from .group_0195 import ( + from .group_0197 import ( CodeScanningAlertDismissalRequestPropRequester as CodeScanningAlertDismissalRequestPropRequester, ) - from .group_0195 import DismissalRequestResponse as DismissalRequestResponse - from .group_0195 import ( + from .group_0197 import DismissalRequestResponse as DismissalRequestResponse + from .group_0197 import ( DismissalRequestResponsePropReviewer as DismissalRequestResponsePropReviewer, ) - from .group_0196 import ( + from .group_0198 import ( SecretScanningDismissalRequest as SecretScanningDismissalRequest, ) - from .group_0196 import ( + from .group_0198 import ( SecretScanningDismissalRequestPropDataItems as SecretScanningDismissalRequestPropDataItems, ) - from .group_0196 import ( + from .group_0198 import ( SecretScanningDismissalRequestPropOrganization as SecretScanningDismissalRequestPropOrganization, ) - from .group_0196 import ( + from .group_0198 import ( SecretScanningDismissalRequestPropRepository as SecretScanningDismissalRequestPropRepository, ) - from .group_0196 import ( + from .group_0198 import ( SecretScanningDismissalRequestPropRequester as SecretScanningDismissalRequestPropRequester, ) - from .group_0197 import Package as Package - from .group_0198 import ExternalGroup as ExternalGroup - from .group_0198 import ( + from .group_0199 import Package as Package + from .group_0200 import ExternalGroup as ExternalGroup + from .group_0200 import ( ExternalGroupPropMembersItems as ExternalGroupPropMembersItems, ) - from .group_0198 import ExternalGroupPropTeamsItems as ExternalGroupPropTeamsItems - from .group_0199 import ExternalGroups as ExternalGroups - from .group_0199 import ( + from .group_0200 import ExternalGroupPropTeamsItems as ExternalGroupPropTeamsItems + from .group_0201 import ExternalGroups as ExternalGroups + from .group_0201 import ( ExternalGroupsPropGroupsItems as ExternalGroupsPropGroupsItems, ) - from .group_0200 import OrganizationInvitation as OrganizationInvitation - from .group_0201 import ( + from .group_0202 import OrganizationInvitation as OrganizationInvitation + from .group_0203 import ( RepositoryFineGrainedPermission as RepositoryFineGrainedPermission, ) - from .group_0202 import OrgHook as OrgHook - from .group_0202 import OrgHookPropConfig as OrgHookPropConfig - from .group_0203 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems - from .group_0204 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems - from .group_0205 import ApiInsightsSummaryStats as ApiInsightsSummaryStats - from .group_0206 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems - from .group_0207 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems - from .group_0208 import InteractionLimitResponse as InteractionLimitResponse - from .group_0209 import InteractionLimit as InteractionLimit - from .group_0210 import OrganizationCreateIssueType as OrganizationCreateIssueType - from .group_0211 import OrganizationUpdateIssueType as OrganizationUpdateIssueType - from .group_0212 import OrgMembership as OrgMembership - from .group_0212 import OrgMembershipPropPermissions as OrgMembershipPropPermissions - from .group_0213 import Migration as Migration - from .group_0214 import ( + from .group_0204 import OrgHook as OrgHook + from .group_0204 import OrgHookPropConfig as OrgHookPropConfig + from .group_0205 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems + from .group_0206 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems + from .group_0207 import ApiInsightsSummaryStats as ApiInsightsSummaryStats + from .group_0208 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems + from .group_0209 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems + from .group_0210 import InteractionLimitResponse as InteractionLimitResponse + from .group_0211 import InteractionLimit as InteractionLimit + from .group_0212 import OrganizationCreateIssueType as OrganizationCreateIssueType + from .group_0213 import OrganizationUpdateIssueType as OrganizationUpdateIssueType + from .group_0214 import OrgMembership as OrgMembership + from .group_0214 import OrgMembershipPropPermissions as OrgMembershipPropPermissions + from .group_0215 import Migration as Migration + from .group_0216 import ( OrganizationFineGrainedPermission as OrganizationFineGrainedPermission, ) - from .group_0215 import OrganizationRole as OrganizationRole - from .group_0215 import ( + from .group_0217 import OrganizationRole as OrganizationRole + from .group_0217 import ( OrgsOrgOrganizationRolesGetResponse200 as OrgsOrgOrganizationRolesGetResponse200, ) - from .group_0216 import ( + from .group_0218 import ( OrganizationCustomOrganizationRoleCreateSchema as OrganizationCustomOrganizationRoleCreateSchema, ) - from .group_0217 import ( + from .group_0219 import ( OrganizationCustomOrganizationRoleUpdateSchema as OrganizationCustomOrganizationRoleUpdateSchema, ) - from .group_0218 import TeamRoleAssignment as TeamRoleAssignment - from .group_0218 import ( + from .group_0220 import TeamRoleAssignment as TeamRoleAssignment + from .group_0220 import ( TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, ) - from .group_0219 import UserRoleAssignment as UserRoleAssignment - from .group_0220 import PackageVersion as PackageVersion - from .group_0220 import PackageVersionPropMetadata as PackageVersionPropMetadata - from .group_0220 import ( + from .group_0221 import UserRoleAssignment as UserRoleAssignment + from .group_0222 import PackageVersion as PackageVersion + from .group_0222 import PackageVersionPropMetadata as PackageVersionPropMetadata + from .group_0222 import ( PackageVersionPropMetadataPropContainer as PackageVersionPropMetadataPropContainer, ) - from .group_0220 import ( + from .group_0222 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) - from .group_0221 import ( + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequest as OrganizationProgrammaticAccessGrantRequest, ) - from .group_0221 import ( + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequestPropPermissions as OrganizationProgrammaticAccessGrantRequestPropPermissions, ) - from .group_0221 import ( + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, ) - from .group_0221 import ( + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther, ) - from .group_0221 import ( + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrant as OrganizationProgrammaticAccessGrant, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrantPropPermissions as OrganizationProgrammaticAccessGrantPropPermissions, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOther as OrganizationProgrammaticAccessGrantPropPermissionsPropOther, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0223 import ( + from .group_0225 import ( OrgPrivateRegistryConfigurationWithSelectedRepositories as OrgPrivateRegistryConfigurationWithSelectedRepositories, ) - from .group_0224 import Project as Project - from .group_0225 import CustomPropertyValue as CustomPropertyValue - from .group_0226 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues - from .group_0227 import CodeOfConductSimple as CodeOfConductSimple - from .group_0228 import FullRepository as FullRepository - from .group_0228 import ( + from .group_0226 import Project as Project + from .group_0227 import CustomPropertyValue as CustomPropertyValue + from .group_0228 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues + from .group_0229 import CodeOfConductSimple as CodeOfConductSimple + from .group_0230 import FullRepository as FullRepository + from .group_0230 import ( FullRepositoryPropCustomProperties as FullRepositoryPropCustomProperties, ) - from .group_0228 import ( + from .group_0230 import ( FullRepositoryPropPermissions as FullRepositoryPropPermissions, ) - from .group_0229 import RuleSuitesItems as RuleSuitesItems - from .group_0230 import RuleSuite as RuleSuite - from .group_0230 import ( + from .group_0231 import RuleSuitesItems as RuleSuitesItems + from .group_0232 import RuleSuite as RuleSuite + from .group_0232 import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) - from .group_0230 import ( + from .group_0232 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSource as RuleSuitePropRuleEvaluationsItemsPropRuleSource, ) - from .group_0231 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit - from .group_0232 import RepositoryAdvisory as RepositoryAdvisory - from .group_0232 import ( + from .group_0233 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit + from .group_0234 import RepositoryAdvisory as RepositoryAdvisory + from .group_0234 import ( RepositoryAdvisoryPropCreditsItems as RepositoryAdvisoryPropCreditsItems, ) - from .group_0232 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss - from .group_0232 import ( + from .group_0234 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss + from .group_0234 import ( RepositoryAdvisoryPropCwesItems as RepositoryAdvisoryPropCwesItems, ) - from .group_0232 import ( + from .group_0234 import ( RepositoryAdvisoryPropIdentifiersItems as RepositoryAdvisoryPropIdentifiersItems, ) - from .group_0232 import ( + from .group_0234 import ( RepositoryAdvisoryPropSubmission as RepositoryAdvisoryPropSubmission, ) - from .group_0232 import ( + from .group_0234 import ( RepositoryAdvisoryVulnerability as RepositoryAdvisoryVulnerability, ) - from .group_0232 import ( + from .group_0234 import ( RepositoryAdvisoryVulnerabilityPropPackage as RepositoryAdvisoryVulnerabilityPropPackage, ) - from .group_0233 import GroupMapping as GroupMapping - from .group_0233 import GroupMappingPropGroupsItems as GroupMappingPropGroupsItems - from .group_0234 import TeamFull as TeamFull - from .group_0234 import TeamOrganization as TeamOrganization - from .group_0234 import TeamOrganizationPropPlan as TeamOrganizationPropPlan - from .group_0235 import TeamDiscussion as TeamDiscussion - from .group_0236 import TeamDiscussionComment as TeamDiscussionComment - from .group_0237 import Reaction as Reaction - from .group_0238 import TeamMembership as TeamMembership - from .group_0239 import TeamProject as TeamProject - from .group_0239 import TeamProjectPropPermissions as TeamProjectPropPermissions - from .group_0240 import TeamRepository as TeamRepository - from .group_0240 import ( + from .group_0235 import GroupMapping as GroupMapping + from .group_0235 import GroupMappingPropGroupsItems as GroupMappingPropGroupsItems + from .group_0236 import TeamFull as TeamFull + from .group_0236 import TeamOrganization as TeamOrganization + from .group_0236 import TeamOrganizationPropPlan as TeamOrganizationPropPlan + from .group_0237 import TeamDiscussion as TeamDiscussion + from .group_0238 import TeamDiscussionComment as TeamDiscussionComment + from .group_0239 import Reaction as Reaction + from .group_0240 import TeamMembership as TeamMembership + from .group_0241 import TeamProject as TeamProject + from .group_0241 import TeamProjectPropPermissions as TeamProjectPropPermissions + from .group_0242 import TeamRepository as TeamRepository + from .group_0242 import ( TeamRepositoryPropPermissions as TeamRepositoryPropPermissions, ) - from .group_0241 import ProjectCard as ProjectCard - from .group_0242 import ProjectColumn as ProjectColumn - from .group_0243 import ( + from .group_0243 import ProjectCard as ProjectCard + from .group_0244 import ProjectColumn as ProjectColumn + from .group_0245 import ( ProjectCollaboratorPermission as ProjectCollaboratorPermission, ) - from .group_0244 import RateLimit as RateLimit - from .group_0245 import RateLimitOverview as RateLimitOverview - from .group_0246 import ( + from .group_0246 import RateLimit as RateLimit + from .group_0247 import RateLimitOverview as RateLimitOverview + from .group_0248 import ( RateLimitOverviewPropResources as RateLimitOverviewPropResources, ) - from .group_0247 import Artifact as Artifact - from .group_0247 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun - from .group_0248 import ActionsCacheList as ActionsCacheList - from .group_0248 import ( + from .group_0249 import Artifact as Artifact + from .group_0249 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun + from .group_0250 import ActionsCacheList as ActionsCacheList + from .group_0250 import ( ActionsCacheListPropActionsCachesItems as ActionsCacheListPropActionsCachesItems, ) - from .group_0249 import Job as Job - from .group_0249 import JobPropStepsItems as JobPropStepsItems - from .group_0250 import OidcCustomSubRepo as OidcCustomSubRepo - from .group_0251 import ActionsSecret as ActionsSecret - from .group_0252 import ActionsVariable as ActionsVariable - from .group_0253 import ActionsRepositoryPermissions as ActionsRepositoryPermissions - from .group_0254 import ( + from .group_0251 import Job as Job + from .group_0251 import JobPropStepsItems as JobPropStepsItems + from .group_0252 import OidcCustomSubRepo as OidcCustomSubRepo + from .group_0253 import ActionsSecret as ActionsSecret + from .group_0254 import ActionsVariable as ActionsVariable + from .group_0255 import ActionsRepositoryPermissions as ActionsRepositoryPermissions + from .group_0256 import ( ActionsWorkflowAccessToRepository as ActionsWorkflowAccessToRepository, ) - from .group_0255 import PullRequestMinimal as PullRequestMinimal - from .group_0255 import PullRequestMinimalPropBase as PullRequestMinimalPropBase - from .group_0255 import ( + from .group_0257 import PullRequestMinimal as PullRequestMinimal + from .group_0257 import PullRequestMinimalPropBase as PullRequestMinimalPropBase + from .group_0257 import ( PullRequestMinimalPropBasePropRepo as PullRequestMinimalPropBasePropRepo, ) - from .group_0255 import PullRequestMinimalPropHead as PullRequestMinimalPropHead - from .group_0255 import ( + from .group_0257 import PullRequestMinimalPropHead as PullRequestMinimalPropHead + from .group_0257 import ( PullRequestMinimalPropHeadPropRepo as PullRequestMinimalPropHeadPropRepo, ) - from .group_0256 import SimpleCommit as SimpleCommit - from .group_0256 import SimpleCommitPropAuthor as SimpleCommitPropAuthor - from .group_0256 import SimpleCommitPropCommitter as SimpleCommitPropCommitter - from .group_0257 import ReferencedWorkflow as ReferencedWorkflow - from .group_0257 import WorkflowRun as WorkflowRun - from .group_0258 import EnvironmentApprovals as EnvironmentApprovals - from .group_0258 import ( + from .group_0258 import SimpleCommit as SimpleCommit + from .group_0258 import SimpleCommitPropAuthor as SimpleCommitPropAuthor + from .group_0258 import SimpleCommitPropCommitter as SimpleCommitPropCommitter + from .group_0259 import ReferencedWorkflow as ReferencedWorkflow + from .group_0259 import WorkflowRun as WorkflowRun + from .group_0260 import EnvironmentApprovals as EnvironmentApprovals + from .group_0260 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) - from .group_0259 import ( + from .group_0261 import ( ReviewCustomGatesCommentRequired as ReviewCustomGatesCommentRequired, ) - from .group_0260 import ( + from .group_0262 import ( ReviewCustomGatesStateRequired as ReviewCustomGatesStateRequired, ) - from .group_0261 import PendingDeployment as PendingDeployment - from .group_0261 import ( + from .group_0263 import PendingDeployment as PendingDeployment + from .group_0263 import ( PendingDeploymentPropEnvironment as PendingDeploymentPropEnvironment, ) - from .group_0261 import ( + from .group_0263 import ( PendingDeploymentPropReviewersItems as PendingDeploymentPropReviewersItems, ) - from .group_0262 import Deployment as Deployment - from .group_0262 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 - from .group_0263 import WorkflowRunUsage as WorkflowRunUsage - from .group_0263 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable - from .group_0263 import ( + from .group_0264 import Deployment as Deployment + from .group_0264 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 + from .group_0265 import WorkflowRunUsage as WorkflowRunUsage + from .group_0265 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable + from .group_0265 import ( WorkflowRunUsagePropBillablePropMacos as WorkflowRunUsagePropBillablePropMacos, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropUbuntu as WorkflowRunUsagePropBillablePropUbuntu, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropWindows as WorkflowRunUsagePropBillablePropWindows, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems, ) - from .group_0264 import WorkflowUsage as WorkflowUsage - from .group_0264 import WorkflowUsagePropBillable as WorkflowUsagePropBillable - from .group_0264 import ( + from .group_0266 import WorkflowUsage as WorkflowUsage + from .group_0266 import WorkflowUsagePropBillable as WorkflowUsagePropBillable + from .group_0266 import ( WorkflowUsagePropBillablePropMacos as WorkflowUsagePropBillablePropMacos, ) - from .group_0264 import ( + from .group_0266 import ( WorkflowUsagePropBillablePropUbuntu as WorkflowUsagePropBillablePropUbuntu, ) - from .group_0264 import ( + from .group_0266 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) - from .group_0265 import Activity as Activity - from .group_0266 import Autolink as Autolink - from .group_0267 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes - from .group_0268 import ( + from .group_0267 import Activity as Activity + from .group_0268 import Autolink as Autolink + from .group_0269 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes + from .group_0270 import ( ProtectedBranchPullRequestReview as ProtectedBranchPullRequestReview, ) - from .group_0269 import ( + from .group_0271 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0269 import ( + from .group_0271 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0270 import BranchRestrictionPolicy as BranchRestrictionPolicy - from .group_0270 import ( + from .group_0272 import BranchRestrictionPolicy as BranchRestrictionPolicy + from .group_0272 import ( BranchRestrictionPolicyPropAppsItems as BranchRestrictionPolicyPropAppsItems, ) - from .group_0270 import ( + from .group_0272 import ( BranchRestrictionPolicyPropAppsItemsPropOwner as BranchRestrictionPolicyPropAppsItemsPropOwner, ) - from .group_0270 import ( + from .group_0272 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0270 import ( + from .group_0272 import ( BranchRestrictionPolicyPropTeamsItems as BranchRestrictionPolicyPropTeamsItems, ) - from .group_0270 import ( + from .group_0272 import ( BranchRestrictionPolicyPropUsersItems as BranchRestrictionPolicyPropUsersItems, ) - from .group_0271 import BranchProtection as BranchProtection - from .group_0271 import ( + from .group_0273 import BranchProtection as BranchProtection + from .group_0273 import ( BranchProtectionPropAllowDeletions as BranchProtectionPropAllowDeletions, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropAllowForcePushes as BranchProtectionPropAllowForcePushes, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropAllowForkSyncing as BranchProtectionPropAllowForkSyncing, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropBlockCreations as BranchProtectionPropBlockCreations, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropLockBranch as BranchProtectionPropLockBranch, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropRequiredLinearHistory as BranchProtectionPropRequiredLinearHistory, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropRequiredSignatures as BranchProtectionPropRequiredSignatures, ) - from .group_0271 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced - from .group_0271 import ( + from .group_0273 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced + from .group_0273 import ( ProtectedBranchRequiredStatusCheck as ProtectedBranchRequiredStatusCheck, ) - from .group_0271 import ( + from .group_0273 import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) - from .group_0272 import ShortBranch as ShortBranch - from .group_0272 import ShortBranchPropCommit as ShortBranchPropCommit - from .group_0273 import GitUser as GitUser - from .group_0274 import Verification as Verification - from .group_0275 import DiffEntry as DiffEntry - from .group_0276 import Commit as Commit - from .group_0276 import CommitPropParentsItems as CommitPropParentsItems - from .group_0276 import CommitPropStats as CommitPropStats - from .group_0276 import EmptyObject as EmptyObject - from .group_0277 import CommitPropCommit as CommitPropCommit - from .group_0277 import CommitPropCommitPropTree as CommitPropCommitPropTree - from .group_0278 import BranchWithProtection as BranchWithProtection - from .group_0278 import ( + from .group_0274 import ShortBranch as ShortBranch + from .group_0274 import ShortBranchPropCommit as ShortBranchPropCommit + from .group_0275 import GitUser as GitUser + from .group_0276 import Verification as Verification + from .group_0277 import DiffEntry as DiffEntry + from .group_0278 import Commit as Commit + from .group_0278 import CommitPropParentsItems as CommitPropParentsItems + from .group_0278 import CommitPropStats as CommitPropStats + from .group_0278 import EmptyObject as EmptyObject + from .group_0279 import CommitPropCommit as CommitPropCommit + from .group_0279 import CommitPropCommitPropTree as CommitPropCommitPropTree + from .group_0280 import BranchWithProtection as BranchWithProtection + from .group_0280 import ( BranchWithProtectionPropLinks as BranchWithProtectionPropLinks, ) - from .group_0279 import ProtectedBranch as ProtectedBranch - from .group_0279 import ( + from .group_0281 import ProtectedBranch as ProtectedBranch + from .group_0281 import ( ProtectedBranchPropAllowDeletions as ProtectedBranchPropAllowDeletions, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropAllowForcePushes as ProtectedBranchPropAllowForcePushes, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropAllowForkSyncing as ProtectedBranchPropAllowForkSyncing, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropBlockCreations as ProtectedBranchPropBlockCreations, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropEnforceAdmins as ProtectedBranchPropEnforceAdmins, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropLockBranch as ProtectedBranchPropLockBranch, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropRequiredConversationResolution as ProtectedBranchPropRequiredConversationResolution, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropRequiredLinearHistory as ProtectedBranchPropRequiredLinearHistory, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropRequiredSignatures as ProtectedBranchPropRequiredSignatures, ) - from .group_0279 import StatusCheckPolicy as StatusCheckPolicy - from .group_0279 import ( + from .group_0281 import StatusCheckPolicy as StatusCheckPolicy + from .group_0281 import ( StatusCheckPolicyPropChecksItems as StatusCheckPolicyPropChecksItems, ) - from .group_0280 import ( + from .group_0282 import ( ProtectedBranchPropRequiredPullRequestReviews as ProtectedBranchPropRequiredPullRequestReviews, ) - from .group_0281 import ( + from .group_0283 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0281 import ( + from .group_0283 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0282 import DeploymentSimple as DeploymentSimple - from .group_0283 import CheckRun as CheckRun - from .group_0283 import CheckRunPropCheckSuite as CheckRunPropCheckSuite - from .group_0283 import CheckRunPropOutput as CheckRunPropOutput - from .group_0284 import CheckAnnotation as CheckAnnotation - from .group_0285 import CheckSuite as CheckSuite - from .group_0285 import ( + from .group_0284 import DeploymentSimple as DeploymentSimple + from .group_0285 import CheckRun as CheckRun + from .group_0285 import CheckRunPropCheckSuite as CheckRunPropCheckSuite + from .group_0285 import CheckRunPropOutput as CheckRunPropOutput + from .group_0286 import CheckAnnotation as CheckAnnotation + from .group_0287 import CheckSuite as CheckSuite + from .group_0287 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200 as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200, ) - from .group_0286 import CheckSuitePreference as CheckSuitePreference - from .group_0286 import ( + from .group_0288 import CheckSuitePreference as CheckSuitePreference + from .group_0288 import ( CheckSuitePreferencePropPreferences as CheckSuitePreferencePropPreferences, ) - from .group_0286 import ( + from .group_0288 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0287 import CodeScanningAlertItems as CodeScanningAlertItems - from .group_0288 import CodeScanningAlert as CodeScanningAlert - from .group_0288 import CodeScanningAlertRule as CodeScanningAlertRule - from .group_0289 import CodeScanningAutofix as CodeScanningAutofix - from .group_0290 import CodeScanningAutofixCommits as CodeScanningAutofixCommits - from .group_0291 import ( + from .group_0289 import CodeScanningAlertItems as CodeScanningAlertItems + from .group_0290 import CodeScanningAlert as CodeScanningAlert + from .group_0290 import CodeScanningAlertRule as CodeScanningAlertRule + from .group_0291 import CodeScanningAutofix as CodeScanningAutofix + from .group_0292 import CodeScanningAutofixCommits as CodeScanningAutofixCommits + from .group_0293 import ( CodeScanningAutofixCommitsResponse as CodeScanningAutofixCommitsResponse, ) - from .group_0292 import CodeScanningAnalysis as CodeScanningAnalysis - from .group_0293 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion - from .group_0294 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase - from .group_0295 import ( + from .group_0294 import CodeScanningAnalysis as CodeScanningAnalysis + from .group_0295 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion + from .group_0296 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase + from .group_0297 import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) - from .group_0296 import ( + from .group_0298 import ( CodeScanningVariantAnalysisSkippedRepoGroup as CodeScanningVariantAnalysisSkippedRepoGroup, ) - from .group_0297 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis - from .group_0298 import ( + from .group_0299 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis + from .group_0300 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItems as CodeScanningVariantAnalysisPropScannedRepositoriesItems, ) - from .group_0299 import ( + from .group_0301 import ( CodeScanningVariantAnalysisPropSkippedRepositories as CodeScanningVariantAnalysisPropSkippedRepositories, ) - from .group_0299 import ( + from .group_0301 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) - from .group_0300 import ( + from .group_0302 import ( CodeScanningVariantAnalysisRepoTask as CodeScanningVariantAnalysisRepoTask, ) - from .group_0301 import CodeScanningDefaultSetup as CodeScanningDefaultSetup - from .group_0302 import ( + from .group_0303 import CodeScanningDefaultSetup as CodeScanningDefaultSetup + from .group_0304 import ( CodeScanningDefaultSetupUpdate as CodeScanningDefaultSetupUpdate, ) - from .group_0303 import ( + from .group_0305 import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) - from .group_0304 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt - from .group_0305 import CodeScanningSarifsStatus as CodeScanningSarifsStatus - from .group_0306 import ( + from .group_0306 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt + from .group_0307 import CodeScanningSarifsStatus as CodeScanningSarifsStatus + from .group_0308 import ( CodeSecurityConfigurationForRepository as CodeSecurityConfigurationForRepository, ) - from .group_0307 import CodeownersErrors as CodeownersErrors - from .group_0307 import ( + from .group_0309 import CodeownersErrors as CodeownersErrors + from .group_0309 import ( CodeownersErrorsPropErrorsItems as CodeownersErrorsPropErrorsItems, ) - from .group_0308 import ( + from .group_0310 import ( CodespacesPermissionsCheckForDevcontainer as CodespacesPermissionsCheckForDevcontainer, ) - from .group_0309 import RepositoryInvitation as RepositoryInvitation - from .group_0310 import Collaborator as Collaborator - from .group_0310 import CollaboratorPropPermissions as CollaboratorPropPermissions - from .group_0310 import ( + from .group_0311 import RepositoryInvitation as RepositoryInvitation + from .group_0312 import Collaborator as Collaborator + from .group_0312 import CollaboratorPropPermissions as CollaboratorPropPermissions + from .group_0312 import ( RepositoryCollaboratorPermission as RepositoryCollaboratorPermission, ) - from .group_0311 import CommitComment as CommitComment - from .group_0311 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent - from .group_0312 import BranchShort as BranchShort - from .group_0312 import BranchShortPropCommit as BranchShortPropCommit - from .group_0313 import Link as Link - from .group_0314 import AutoMerge as AutoMerge - from .group_0315 import PullRequestSimple as PullRequestSimple - from .group_0315 import ( + from .group_0313 import CommitComment as CommitComment + from .group_0313 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent + from .group_0314 import BranchShort as BranchShort + from .group_0314 import BranchShortPropCommit as BranchShortPropCommit + from .group_0315 import Link as Link + from .group_0316 import AutoMerge as AutoMerge + from .group_0317 import PullRequestSimple as PullRequestSimple + from .group_0317 import ( PullRequestSimplePropLabelsItems as PullRequestSimplePropLabelsItems, ) - from .group_0316 import PullRequestSimplePropBase as PullRequestSimplePropBase - from .group_0316 import PullRequestSimplePropHead as PullRequestSimplePropHead - from .group_0317 import PullRequestSimplePropLinks as PullRequestSimplePropLinks - from .group_0318 import CombinedCommitStatus as CombinedCommitStatus - from .group_0318 import SimpleCommitStatus as SimpleCommitStatus - from .group_0319 import Status as Status - from .group_0320 import CommunityHealthFile as CommunityHealthFile - from .group_0320 import CommunityProfile as CommunityProfile - from .group_0320 import CommunityProfilePropFiles as CommunityProfilePropFiles - from .group_0321 import CommitComparison as CommitComparison - from .group_0322 import ContentTree as ContentTree - from .group_0322 import ContentTreePropEntriesItems as ContentTreePropEntriesItems - from .group_0322 import ( + from .group_0318 import PullRequestSimplePropBase as PullRequestSimplePropBase + from .group_0318 import PullRequestSimplePropHead as PullRequestSimplePropHead + from .group_0319 import PullRequestSimplePropLinks as PullRequestSimplePropLinks + from .group_0320 import CombinedCommitStatus as CombinedCommitStatus + from .group_0320 import SimpleCommitStatus as SimpleCommitStatus + from .group_0321 import Status as Status + from .group_0322 import CommunityHealthFile as CommunityHealthFile + from .group_0322 import CommunityProfile as CommunityProfile + from .group_0322 import CommunityProfilePropFiles as CommunityProfilePropFiles + from .group_0323 import CommitComparison as CommitComparison + from .group_0324 import ContentTree as ContentTree + from .group_0324 import ContentTreePropEntriesItems as ContentTreePropEntriesItems + from .group_0324 import ( ContentTreePropEntriesItemsPropLinks as ContentTreePropEntriesItemsPropLinks, ) - from .group_0322 import ContentTreePropLinks as ContentTreePropLinks - from .group_0323 import ContentDirectoryItems as ContentDirectoryItems - from .group_0323 import ( + from .group_0324 import ContentTreePropLinks as ContentTreePropLinks + from .group_0325 import ContentDirectoryItems as ContentDirectoryItems + from .group_0325 import ( ContentDirectoryItemsPropLinks as ContentDirectoryItemsPropLinks, ) - from .group_0324 import ContentFile as ContentFile - from .group_0324 import ContentFilePropLinks as ContentFilePropLinks - from .group_0325 import ContentSymlink as ContentSymlink - from .group_0325 import ContentSymlinkPropLinks as ContentSymlinkPropLinks - from .group_0326 import ContentSubmodule as ContentSubmodule - from .group_0326 import ContentSubmodulePropLinks as ContentSubmodulePropLinks - from .group_0327 import FileCommit as FileCommit - from .group_0327 import FileCommitPropCommit as FileCommitPropCommit - from .group_0327 import ( + from .group_0326 import ContentFile as ContentFile + from .group_0326 import ContentFilePropLinks as ContentFilePropLinks + from .group_0327 import ContentSymlink as ContentSymlink + from .group_0327 import ContentSymlinkPropLinks as ContentSymlinkPropLinks + from .group_0328 import ContentSubmodule as ContentSubmodule + from .group_0328 import ContentSubmodulePropLinks as ContentSubmodulePropLinks + from .group_0329 import FileCommit as FileCommit + from .group_0329 import FileCommitPropCommit as FileCommitPropCommit + from .group_0329 import ( FileCommitPropCommitPropAuthor as FileCommitPropCommitPropAuthor, ) - from .group_0327 import ( + from .group_0329 import ( FileCommitPropCommitPropCommitter as FileCommitPropCommitPropCommitter, ) - from .group_0327 import ( + from .group_0329 import ( FileCommitPropCommitPropParentsItems as FileCommitPropCommitPropParentsItems, ) - from .group_0327 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree - from .group_0327 import ( + from .group_0329 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree + from .group_0329 import ( FileCommitPropCommitPropVerification as FileCommitPropCommitPropVerification, ) - from .group_0327 import FileCommitPropContent as FileCommitPropContent - from .group_0327 import ( + from .group_0329 import FileCommitPropContent as FileCommitPropContent + from .group_0329 import ( FileCommitPropContentPropLinks as FileCommitPropContentPropLinks, ) - from .group_0328 import RepositoryRuleViolationError as RepositoryRuleViolationError - from .group_0328 import ( + from .group_0330 import RepositoryRuleViolationError as RepositoryRuleViolationError + from .group_0330 import ( RepositoryRuleViolationErrorPropMetadata as RepositoryRuleViolationErrorPropMetadata, ) - from .group_0328 import ( + from .group_0330 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanning as RepositoryRuleViolationErrorPropMetadataPropSecretScanning, ) - from .group_0328 import ( + from .group_0330 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems, ) - from .group_0329 import Contributor as Contributor - from .group_0330 import DependabotAlert as DependabotAlert - from .group_0331 import ( + from .group_0331 import Contributor as Contributor + from .group_0332 import DependabotAlert as DependabotAlert + from .group_0333 import ( DependabotAlertPropDependency as DependabotAlertPropDependency, ) - from .group_0332 import DependencyGraphDiffItems as DependencyGraphDiffItems - from .group_0332 import ( + from .group_0334 import DependencyGraphDiffItems as DependencyGraphDiffItems + from .group_0334 import ( DependencyGraphDiffItemsPropVulnerabilitiesItems as DependencyGraphDiffItemsPropVulnerabilitiesItems, ) - from .group_0333 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom - from .group_0333 import ( + from .group_0335 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom + from .group_0335 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0333 import ( + from .group_0335 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfo as DependencyGraphSpdxSbomPropSbomPropCreationInfo, ) - from .group_0333 import ( + from .group_0335 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItems as DependencyGraphSpdxSbomPropSbomPropPackagesItems, ) - from .group_0333 import ( + from .group_0335 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0333 import ( + from .group_0335 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItems as DependencyGraphSpdxSbomPropSbomPropRelationshipsItems, ) - from .group_0334 import Metadata as Metadata - from .group_0335 import Dependency as Dependency - from .group_0336 import Manifest as Manifest - from .group_0336 import ManifestPropFile as ManifestPropFile - from .group_0336 import ManifestPropResolved as ManifestPropResolved - from .group_0337 import Snapshot as Snapshot - from .group_0337 import SnapshotPropDetector as SnapshotPropDetector - from .group_0337 import SnapshotPropJob as SnapshotPropJob - from .group_0337 import SnapshotPropManifests as SnapshotPropManifests - from .group_0338 import DeploymentStatus as DeploymentStatus - from .group_0339 import ( + from .group_0336 import Metadata as Metadata + from .group_0337 import Dependency as Dependency + from .group_0338 import Manifest as Manifest + from .group_0338 import ManifestPropFile as ManifestPropFile + from .group_0338 import ManifestPropResolved as ManifestPropResolved + from .group_0339 import Snapshot as Snapshot + from .group_0339 import SnapshotPropDetector as SnapshotPropDetector + from .group_0339 import SnapshotPropJob as SnapshotPropJob + from .group_0339 import SnapshotPropManifests as SnapshotPropManifests + from .group_0340 import DeploymentStatus as DeploymentStatus + from .group_0341 import ( DeploymentBranchPolicySettings as DeploymentBranchPolicySettings, ) - from .group_0340 import Environment as Environment - from .group_0340 import ( + from .group_0342 import Environment as Environment + from .group_0342 import ( EnvironmentPropProtectionRulesItemsAnyof0 as EnvironmentPropProtectionRulesItemsAnyof0, ) - from .group_0340 import ( + from .group_0342 import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) - from .group_0340 import ( + from .group_0342 import ( ReposOwnerRepoEnvironmentsGetResponse200 as ReposOwnerRepoEnvironmentsGetResponse200, ) - from .group_0341 import ( + from .group_0343 import ( EnvironmentPropProtectionRulesItemsAnyof1 as EnvironmentPropProtectionRulesItemsAnyof1, ) - from .group_0342 import ( + from .group_0344 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems, ) - from .group_0343 import ( + from .group_0345 import ( DeploymentBranchPolicyNamePatternWithType as DeploymentBranchPolicyNamePatternWithType, ) - from .group_0344 import ( + from .group_0346 import ( DeploymentBranchPolicyNamePattern as DeploymentBranchPolicyNamePattern, ) - from .group_0345 import CustomDeploymentRuleApp as CustomDeploymentRuleApp - from .group_0346 import DeploymentProtectionRule as DeploymentProtectionRule - from .group_0346 import ( + from .group_0347 import CustomDeploymentRuleApp as CustomDeploymentRuleApp + from .group_0348 import DeploymentProtectionRule as DeploymentProtectionRule + from .group_0348 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0347 import ShortBlob as ShortBlob - from .group_0348 import Blob as Blob - from .group_0349 import GitCommit as GitCommit - from .group_0349 import GitCommitPropAuthor as GitCommitPropAuthor - from .group_0349 import GitCommitPropCommitter as GitCommitPropCommitter - from .group_0349 import GitCommitPropParentsItems as GitCommitPropParentsItems - from .group_0349 import GitCommitPropTree as GitCommitPropTree - from .group_0349 import GitCommitPropVerification as GitCommitPropVerification - from .group_0350 import GitRef as GitRef - from .group_0350 import GitRefPropObject as GitRefPropObject - from .group_0351 import GitTag as GitTag - from .group_0351 import GitTagPropObject as GitTagPropObject - from .group_0351 import GitTagPropTagger as GitTagPropTagger - from .group_0352 import GitTree as GitTree - from .group_0352 import GitTreePropTreeItems as GitTreePropTreeItems - from .group_0353 import HookResponse as HookResponse - from .group_0354 import Hook as Hook - from .group_0355 import Import as Import - from .group_0355 import ( + from .group_0349 import ShortBlob as ShortBlob + from .group_0350 import Blob as Blob + from .group_0351 import GitCommit as GitCommit + from .group_0351 import GitCommitPropAuthor as GitCommitPropAuthor + from .group_0351 import GitCommitPropCommitter as GitCommitPropCommitter + from .group_0351 import GitCommitPropParentsItems as GitCommitPropParentsItems + from .group_0351 import GitCommitPropTree as GitCommitPropTree + from .group_0351 import GitCommitPropVerification as GitCommitPropVerification + from .group_0352 import GitRef as GitRef + from .group_0352 import GitRefPropObject as GitRefPropObject + from .group_0353 import GitTag as GitTag + from .group_0353 import GitTagPropObject as GitTagPropObject + from .group_0353 import GitTagPropTagger as GitTagPropTagger + from .group_0354 import GitTree as GitTree + from .group_0354 import GitTreePropTreeItems as GitTreePropTreeItems + from .group_0355 import HookResponse as HookResponse + from .group_0356 import Hook as Hook + from .group_0357 import Import as Import + from .group_0357 import ( ImportPropProjectChoicesItems as ImportPropProjectChoicesItems, ) - from .group_0356 import PorterAuthor as PorterAuthor - from .group_0357 import PorterLargeFile as PorterLargeFile - from .group_0358 import IssueEvent as IssueEvent - from .group_0358 import IssueEventDismissedReview as IssueEventDismissedReview - from .group_0358 import IssueEventLabel as IssueEventLabel - from .group_0358 import IssueEventMilestone as IssueEventMilestone - from .group_0358 import IssueEventProjectCard as IssueEventProjectCard - from .group_0358 import IssueEventRename as IssueEventRename - from .group_0359 import LabeledIssueEvent as LabeledIssueEvent - from .group_0359 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel - from .group_0360 import UnlabeledIssueEvent as UnlabeledIssueEvent - from .group_0360 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel - from .group_0361 import AssignedIssueEvent as AssignedIssueEvent - from .group_0362 import UnassignedIssueEvent as UnassignedIssueEvent - from .group_0363 import MilestonedIssueEvent as MilestonedIssueEvent - from .group_0363 import ( + from .group_0358 import PorterAuthor as PorterAuthor + from .group_0359 import PorterLargeFile as PorterLargeFile + from .group_0360 import IssueEvent as IssueEvent + from .group_0360 import IssueEventDismissedReview as IssueEventDismissedReview + from .group_0360 import IssueEventLabel as IssueEventLabel + from .group_0360 import IssueEventMilestone as IssueEventMilestone + from .group_0360 import IssueEventProjectCard as IssueEventProjectCard + from .group_0360 import IssueEventRename as IssueEventRename + from .group_0361 import LabeledIssueEvent as LabeledIssueEvent + from .group_0361 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel + from .group_0362 import UnlabeledIssueEvent as UnlabeledIssueEvent + from .group_0362 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel + from .group_0363 import AssignedIssueEvent as AssignedIssueEvent + from .group_0364 import UnassignedIssueEvent as UnassignedIssueEvent + from .group_0365 import MilestonedIssueEvent as MilestonedIssueEvent + from .group_0365 import ( MilestonedIssueEventPropMilestone as MilestonedIssueEventPropMilestone, ) - from .group_0364 import DemilestonedIssueEvent as DemilestonedIssueEvent - from .group_0364 import ( + from .group_0366 import DemilestonedIssueEvent as DemilestonedIssueEvent + from .group_0366 import ( DemilestonedIssueEventPropMilestone as DemilestonedIssueEventPropMilestone, ) - from .group_0365 import RenamedIssueEvent as RenamedIssueEvent - from .group_0365 import RenamedIssueEventPropRename as RenamedIssueEventPropRename - from .group_0366 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent - from .group_0367 import ( + from .group_0367 import RenamedIssueEvent as RenamedIssueEvent + from .group_0367 import RenamedIssueEventPropRename as RenamedIssueEventPropRename + from .group_0368 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent + from .group_0369 import ( ReviewRequestRemovedIssueEvent as ReviewRequestRemovedIssueEvent, ) - from .group_0368 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent - from .group_0368 import ( + from .group_0370 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent + from .group_0370 import ( ReviewDismissedIssueEventPropDismissedReview as ReviewDismissedIssueEventPropDismissedReview, ) - from .group_0369 import LockedIssueEvent as LockedIssueEvent - from .group_0370 import AddedToProjectIssueEvent as AddedToProjectIssueEvent - from .group_0370 import ( + from .group_0371 import LockedIssueEvent as LockedIssueEvent + from .group_0372 import AddedToProjectIssueEvent as AddedToProjectIssueEvent + from .group_0372 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0371 import ( + from .group_0373 import ( MovedColumnInProjectIssueEvent as MovedColumnInProjectIssueEvent, ) - from .group_0371 import ( + from .group_0373 import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) - from .group_0372 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent - from .group_0372 import ( + from .group_0374 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent + from .group_0374 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0373 import ( + from .group_0375 import ( ConvertedNoteToIssueIssueEvent as ConvertedNoteToIssueIssueEvent, ) - from .group_0373 import ( + from .group_0375 import ( ConvertedNoteToIssueIssueEventPropProjectCard as ConvertedNoteToIssueIssueEventPropProjectCard, ) - from .group_0374 import TimelineCommentEvent as TimelineCommentEvent - from .group_0375 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent - from .group_0376 import ( + from .group_0376 import TimelineCommentEvent as TimelineCommentEvent + from .group_0377 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent + from .group_0378 import ( TimelineCrossReferencedEventPropSource as TimelineCrossReferencedEventPropSource, ) - from .group_0377 import TimelineCommittedEvent as TimelineCommittedEvent - from .group_0377 import ( + from .group_0379 import TimelineCommittedEvent as TimelineCommittedEvent + from .group_0379 import ( TimelineCommittedEventPropAuthor as TimelineCommittedEventPropAuthor, ) - from .group_0377 import ( + from .group_0379 import ( TimelineCommittedEventPropCommitter as TimelineCommittedEventPropCommitter, ) - from .group_0377 import ( + from .group_0379 import ( TimelineCommittedEventPropParentsItems as TimelineCommittedEventPropParentsItems, ) - from .group_0377 import ( + from .group_0379 import ( TimelineCommittedEventPropTree as TimelineCommittedEventPropTree, ) - from .group_0377 import ( + from .group_0379 import ( TimelineCommittedEventPropVerification as TimelineCommittedEventPropVerification, ) - from .group_0378 import TimelineReviewedEvent as TimelineReviewedEvent - from .group_0378 import ( + from .group_0380 import TimelineReviewedEvent as TimelineReviewedEvent + from .group_0380 import ( TimelineReviewedEventPropLinks as TimelineReviewedEventPropLinks, ) - from .group_0378 import ( + from .group_0380 import ( TimelineReviewedEventPropLinksPropHtml as TimelineReviewedEventPropLinksPropHtml, ) - from .group_0378 import ( + from .group_0380 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0379 import PullRequestReviewComment as PullRequestReviewComment - from .group_0379 import ( + from .group_0381 import PullRequestReviewComment as PullRequestReviewComment + from .group_0381 import ( PullRequestReviewCommentPropLinks as PullRequestReviewCommentPropLinks, ) - from .group_0379 import ( + from .group_0381 import ( PullRequestReviewCommentPropLinksPropHtml as PullRequestReviewCommentPropLinksPropHtml, ) - from .group_0379 import ( + from .group_0381 import ( PullRequestReviewCommentPropLinksPropPullRequest as PullRequestReviewCommentPropLinksPropPullRequest, ) - from .group_0379 import ( + from .group_0381 import ( PullRequestReviewCommentPropLinksPropSelf as PullRequestReviewCommentPropLinksPropSelf, ) - from .group_0379 import TimelineLineCommentedEvent as TimelineLineCommentedEvent - from .group_0380 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent - from .group_0381 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent - from .group_0382 import StateChangeIssueEvent as StateChangeIssueEvent - from .group_0383 import DeployKey as DeployKey - from .group_0384 import Language as Language - from .group_0385 import LicenseContent as LicenseContent - from .group_0385 import LicenseContentPropLinks as LicenseContentPropLinks - from .group_0386 import MergedUpstream as MergedUpstream - from .group_0387 import Page as Page - from .group_0387 import PagesHttpsCertificate as PagesHttpsCertificate - from .group_0387 import PagesSourceHash as PagesSourceHash - from .group_0388 import PageBuild as PageBuild - from .group_0388 import PageBuildPropError as PageBuildPropError - from .group_0389 import PageBuildStatus as PageBuildStatus - from .group_0390 import PageDeployment as PageDeployment - from .group_0391 import PagesDeploymentStatus as PagesDeploymentStatus - from .group_0392 import PagesHealthCheck as PagesHealthCheck - from .group_0392 import ( + from .group_0381 import TimelineLineCommentedEvent as TimelineLineCommentedEvent + from .group_0382 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent + from .group_0383 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent + from .group_0384 import StateChangeIssueEvent as StateChangeIssueEvent + from .group_0385 import DeployKey as DeployKey + from .group_0386 import Language as Language + from .group_0387 import LicenseContent as LicenseContent + from .group_0387 import LicenseContentPropLinks as LicenseContentPropLinks + from .group_0388 import MergedUpstream as MergedUpstream + from .group_0389 import Page as Page + from .group_0389 import PagesHttpsCertificate as PagesHttpsCertificate + from .group_0389 import PagesSourceHash as PagesSourceHash + from .group_0390 import PageBuild as PageBuild + from .group_0390 import PageBuildPropError as PageBuildPropError + from .group_0391 import PageBuildStatus as PageBuildStatus + from .group_0392 import PageDeployment as PageDeployment + from .group_0393 import PagesDeploymentStatus as PagesDeploymentStatus + from .group_0394 import PagesHealthCheck as PagesHealthCheck + from .group_0394 import ( PagesHealthCheckPropAltDomain as PagesHealthCheckPropAltDomain, ) - from .group_0392 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain - from .group_0393 import PullRequest as PullRequest - from .group_0394 import PullRequestPropLabelsItems as PullRequestPropLabelsItems - from .group_0395 import PullRequestPropBase as PullRequestPropBase - from .group_0395 import PullRequestPropHead as PullRequestPropHead - from .group_0396 import PullRequestPropLinks as PullRequestPropLinks - from .group_0397 import PullRequestMergeResult as PullRequestMergeResult - from .group_0398 import PullRequestReviewRequest as PullRequestReviewRequest - from .group_0399 import PullRequestReview as PullRequestReview - from .group_0399 import PullRequestReviewPropLinks as PullRequestReviewPropLinks - from .group_0399 import ( + from .group_0394 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain + from .group_0395 import PullRequest as PullRequest + from .group_0396 import PullRequestPropLabelsItems as PullRequestPropLabelsItems + from .group_0397 import PullRequestPropBase as PullRequestPropBase + from .group_0397 import PullRequestPropHead as PullRequestPropHead + from .group_0398 import PullRequestPropLinks as PullRequestPropLinks + from .group_0399 import PullRequestMergeResult as PullRequestMergeResult + from .group_0400 import PullRequestReviewRequest as PullRequestReviewRequest + from .group_0401 import PullRequestReview as PullRequestReview + from .group_0401 import PullRequestReviewPropLinks as PullRequestReviewPropLinks + from .group_0401 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0399 import ( + from .group_0401 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0400 import ReviewComment as ReviewComment - from .group_0401 import ReviewCommentPropLinks as ReviewCommentPropLinks - from .group_0402 import ReleaseAsset as ReleaseAsset - from .group_0403 import Release as Release - from .group_0404 import ReleaseNotesContent as ReleaseNotesContent - from .group_0405 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo - from .group_0406 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 - from .group_0407 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 - from .group_0408 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 - from .group_0409 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 - from .group_0410 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 - from .group_0411 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 - from .group_0412 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 - from .group_0413 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 - from .group_0414 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 - from .group_0415 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 - from .group_0416 import ( + from .group_0402 import ReviewComment as ReviewComment + from .group_0403 import ReviewCommentPropLinks as ReviewCommentPropLinks + from .group_0404 import ReleaseAsset as ReleaseAsset + from .group_0405 import Release as Release + from .group_0406 import ReleaseNotesContent as ReleaseNotesContent + from .group_0407 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo + from .group_0408 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 + from .group_0409 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 + from .group_0410 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 + from .group_0411 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 + from .group_0412 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 + from .group_0413 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 + from .group_0414 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 + from .group_0415 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 + from .group_0416 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 + from .group_0417 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 + from .group_0418 import ( RepositoryRuleDetailedOneof10 as RepositoryRuleDetailedOneof10, ) - from .group_0417 import ( + from .group_0419 import ( RepositoryRuleDetailedOneof11 as RepositoryRuleDetailedOneof11, ) - from .group_0418 import ( + from .group_0420 import ( RepositoryRuleDetailedOneof12 as RepositoryRuleDetailedOneof12, ) - from .group_0419 import ( + from .group_0421 import ( RepositoryRuleDetailedOneof13 as RepositoryRuleDetailedOneof13, ) - from .group_0420 import ( + from .group_0422 import ( RepositoryRuleDetailedOneof14 as RepositoryRuleDetailedOneof14, ) - from .group_0421 import ( + from .group_0423 import ( RepositoryRuleDetailedOneof15 as RepositoryRuleDetailedOneof15, ) - from .group_0422 import ( + from .group_0424 import ( RepositoryRuleDetailedOneof16 as RepositoryRuleDetailedOneof16, ) - from .group_0423 import ( + from .group_0425 import ( RepositoryRuleDetailedOneof17 as RepositoryRuleDetailedOneof17, ) - from .group_0424 import ( + from .group_0426 import ( RepositoryRuleDetailedOneof18 as RepositoryRuleDetailedOneof18, ) - from .group_0425 import ( + from .group_0427 import ( RepositoryRuleDetailedOneof19 as RepositoryRuleDetailedOneof19, ) - from .group_0426 import ( + from .group_0428 import ( RepositoryRuleDetailedOneof20 as RepositoryRuleDetailedOneof20, ) - from .group_0427 import SecretScanningAlert as SecretScanningAlert - from .group_0428 import SecretScanningLocation as SecretScanningLocation - from .group_0429 import ( + from .group_0429 import SecretScanningAlert as SecretScanningAlert + from .group_0430 import SecretScanningLocation as SecretScanningLocation + from .group_0431 import ( SecretScanningPushProtectionBypass as SecretScanningPushProtectionBypass, ) - from .group_0430 import SecretScanningScan as SecretScanningScan - from .group_0430 import SecretScanningScanHistory as SecretScanningScanHistory - from .group_0430 import ( + from .group_0432 import SecretScanningScan as SecretScanningScan + from .group_0432 import SecretScanningScanHistory as SecretScanningScanHistory + from .group_0432 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItems as SecretScanningScanHistoryPropCustomPatternBackfillScansItems, ) - from .group_0431 import ( + from .group_0433 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1 as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1, ) - from .group_0432 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate - from .group_0432 import ( + from .group_0434 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate + from .group_0434 import ( RepositoryAdvisoryCreatePropCreditsItems as RepositoryAdvisoryCreatePropCreditsItems, ) - from .group_0432 import ( + from .group_0434 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItems as RepositoryAdvisoryCreatePropVulnerabilitiesItems, ) - from .group_0432 import ( + from .group_0434 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0433 import ( + from .group_0435 import ( PrivateVulnerabilityReportCreate as PrivateVulnerabilityReportCreate, ) - from .group_0433 import ( + from .group_0435 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0433 import ( + from .group_0435 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0434 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate - from .group_0434 import ( + from .group_0436 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate + from .group_0436 import ( RepositoryAdvisoryUpdatePropCreditsItems as RepositoryAdvisoryUpdatePropCreditsItems, ) - from .group_0434 import ( + from .group_0436 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0434 import ( + from .group_0436 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0435 import Stargazer as Stargazer - from .group_0436 import CommitActivity as CommitActivity - from .group_0437 import ContributorActivity as ContributorActivity - from .group_0437 import ( + from .group_0437 import Stargazer as Stargazer + from .group_0438 import CommitActivity as CommitActivity + from .group_0439 import ContributorActivity as ContributorActivity + from .group_0439 import ( ContributorActivityPropWeeksItems as ContributorActivityPropWeeksItems, ) - from .group_0438 import ParticipationStats as ParticipationStats - from .group_0439 import RepositorySubscription as RepositorySubscription - from .group_0440 import Tag as Tag - from .group_0440 import TagPropCommit as TagPropCommit - from .group_0441 import TagProtection as TagProtection - from .group_0442 import Topic as Topic - from .group_0443 import Traffic as Traffic - from .group_0444 import CloneTraffic as CloneTraffic - from .group_0445 import ContentTraffic as ContentTraffic - from .group_0446 import ReferrerTraffic as ReferrerTraffic - from .group_0447 import ViewTraffic as ViewTraffic - from .group_0448 import GroupResponse as GroupResponse - from .group_0448 import ( + from .group_0440 import ParticipationStats as ParticipationStats + from .group_0441 import RepositorySubscription as RepositorySubscription + from .group_0442 import Tag as Tag + from .group_0442 import TagPropCommit as TagPropCommit + from .group_0443 import TagProtection as TagProtection + from .group_0444 import Topic as Topic + from .group_0445 import Traffic as Traffic + from .group_0446 import CloneTraffic as CloneTraffic + from .group_0447 import ContentTraffic as ContentTraffic + from .group_0448 import ReferrerTraffic as ReferrerTraffic + from .group_0449 import ViewTraffic as ViewTraffic + from .group_0450 import GroupResponse as GroupResponse + from .group_0450 import ( GroupResponsePropMembersItems as GroupResponsePropMembersItems, ) - from .group_0449 import Meta as Meta - from .group_0450 import ScimEnterpriseGroupList as ScimEnterpriseGroupList - from .group_0450 import ScimEnterpriseGroupResponse as ScimEnterpriseGroupResponse - from .group_0450 import ( + from .group_0451 import Meta as Meta + from .group_0452 import ScimEnterpriseGroupList as ScimEnterpriseGroupList + from .group_0452 import ScimEnterpriseGroupResponse as ScimEnterpriseGroupResponse + from .group_0452 import ( ScimEnterpriseGroupResponseMergedMembers as ScimEnterpriseGroupResponseMergedMembers, ) - from .group_0451 import ( + from .group_0453 import ( ScimEnterpriseGroupResponseAllof1 as ScimEnterpriseGroupResponseAllof1, ) - from .group_0451 import ( + from .group_0453 import ( ScimEnterpriseGroupResponseAllof1PropMembersItems as ScimEnterpriseGroupResponseAllof1PropMembersItems, ) - from .group_0452 import Group as Group - from .group_0452 import GroupPropMembersItems as GroupPropMembersItems - from .group_0453 import PatchSchema as PatchSchema - from .group_0453 import ( + from .group_0454 import Group as Group + from .group_0454 import GroupPropMembersItems as GroupPropMembersItems + from .group_0455 import PatchSchema as PatchSchema + from .group_0455 import ( PatchSchemaPropOperationsItems as PatchSchemaPropOperationsItems, ) - from .group_0454 import UserEmailsResponseItems as UserEmailsResponseItems - from .group_0454 import UserNameResponse as UserNameResponse - from .group_0455 import UserRoleItems as UserRoleItems - from .group_0456 import UserResponse as UserResponse - from .group_0457 import ScimEnterpriseUserList as ScimEnterpriseUserList - from .group_0457 import ScimEnterpriseUserResponse as ScimEnterpriseUserResponse - from .group_0458 import ( + from .group_0456 import UserEmailsResponseItems as UserEmailsResponseItems + from .group_0456 import UserNameResponse as UserNameResponse + from .group_0457 import UserRoleItems as UserRoleItems + from .group_0458 import UserResponse as UserResponse + from .group_0459 import ScimEnterpriseUserList as ScimEnterpriseUserList + from .group_0459 import ScimEnterpriseUserResponse as ScimEnterpriseUserResponse + from .group_0460 import ( ScimEnterpriseUserResponseAllof1 as ScimEnterpriseUserResponseAllof1, ) - from .group_0459 import ( + from .group_0461 import ( ScimEnterpriseUserResponseAllof1PropGroupsItems as ScimEnterpriseUserResponseAllof1PropGroupsItems, ) - from .group_0460 import User as User - from .group_0460 import UserEmailsItems as UserEmailsItems - from .group_0460 import UserName as UserName - from .group_0461 import ScimUser as ScimUser - from .group_0461 import ScimUserList as ScimUserList - from .group_0461 import ScimUserPropEmailsItems as ScimUserPropEmailsItems - from .group_0461 import ScimUserPropGroupsItems as ScimUserPropGroupsItems - from .group_0461 import ScimUserPropMeta as ScimUserPropMeta - from .group_0461 import ScimUserPropName as ScimUserPropName - from .group_0461 import ScimUserPropOperationsItems as ScimUserPropOperationsItems - from .group_0461 import ( + from .group_0462 import User as User + from .group_0462 import UserEmailsItems as UserEmailsItems + from .group_0462 import UserName as UserName + from .group_0463 import ScimUser as ScimUser + from .group_0463 import ScimUserList as ScimUserList + from .group_0463 import ScimUserPropEmailsItems as ScimUserPropEmailsItems + from .group_0463 import ScimUserPropGroupsItems as ScimUserPropGroupsItems + from .group_0463 import ScimUserPropMeta as ScimUserPropMeta + from .group_0463 import ScimUserPropName as ScimUserPropName + from .group_0463 import ScimUserPropOperationsItems as ScimUserPropOperationsItems + from .group_0463 import ( ScimUserPropOperationsItemsPropValueOneof1 as ScimUserPropOperationsItemsPropValueOneof1, ) - from .group_0461 import ScimUserPropRolesItems as ScimUserPropRolesItems - from .group_0462 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0462 import ( + from .group_0463 import ScimUserPropRolesItems as ScimUserPropRolesItems + from .group_0464 import SearchResultTextMatchesItems as SearchResultTextMatchesItems + from .group_0464 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0463 import CodeSearchResultItem as CodeSearchResultItem - from .group_0463 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0464 import CommitSearchResultItem as CommitSearchResultItem - from .group_0464 import ( + from .group_0465 import CodeSearchResultItem as CodeSearchResultItem + from .group_0465 import SearchCodeGetResponse200 as SearchCodeGetResponse200 + from .group_0466 import CommitSearchResultItem as CommitSearchResultItem + from .group_0466 import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from .group_0464 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 - from .group_0465 import ( + from .group_0466 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 + from .group_0467 import ( CommitSearchResultItemPropCommit as CommitSearchResultItemPropCommit, ) - from .group_0465 import ( + from .group_0467 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0465 import ( + from .group_0467 import ( CommitSearchResultItemPropCommitPropTree as CommitSearchResultItemPropCommitPropTree, ) - from .group_0466 import IssueSearchResultItem as IssueSearchResultItem - from .group_0466 import ( + from .group_0468 import IssueSearchResultItem as IssueSearchResultItem + from .group_0468 import ( IssueSearchResultItemPropLabelsItems as IssueSearchResultItemPropLabelsItems, ) - from .group_0466 import ( + from .group_0468 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0466 import ( - IssueSearchResultItemPropSubIssuesSummary as IssueSearchResultItemPropSubIssuesSummary, - ) - from .group_0466 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 - from .group_0467 import LabelSearchResultItem as LabelSearchResultItem - from .group_0467 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 - from .group_0468 import RepoSearchResultItem as RepoSearchResultItem - from .group_0468 import ( + from .group_0468 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 + from .group_0469 import LabelSearchResultItem as LabelSearchResultItem + from .group_0469 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 + from .group_0470 import RepoSearchResultItem as RepoSearchResultItem + from .group_0470 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0468 import ( + from .group_0470 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0469 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 - from .group_0469 import TopicSearchResultItem as TopicSearchResultItem - from .group_0469 import ( + from .group_0471 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 + from .group_0471 import TopicSearchResultItem as TopicSearchResultItem + from .group_0471 import ( TopicSearchResultItemPropAliasesItems as TopicSearchResultItemPropAliasesItems, ) - from .group_0469 import ( + from .group_0471 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelation as TopicSearchResultItemPropAliasesItemsPropTopicRelation, ) - from .group_0469 import ( + from .group_0471 import ( TopicSearchResultItemPropRelatedItems as TopicSearchResultItemPropRelatedItems, ) - from .group_0469 import ( + from .group_0471 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0470 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0470 import UserSearchResultItem as UserSearchResultItem - from .group_0471 import PrivateUser as PrivateUser - from .group_0471 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0472 import CodespacesUserPublicKey as CodespacesUserPublicKey - from .group_0473 import CodespaceExportDetails as CodespaceExportDetails - from .group_0474 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0474 import ( + from .group_0472 import SearchUsersGetResponse200 as SearchUsersGetResponse200 + from .group_0472 import UserSearchResultItem as UserSearchResultItem + from .group_0473 import PrivateUser as PrivateUser + from .group_0473 import PrivateUserPropPlan as PrivateUserPropPlan + from .group_0474 import CodespacesUserPublicKey as CodespacesUserPublicKey + from .group_0475 import CodespaceExportDetails as CodespaceExportDetails + from .group_0476 import CodespaceWithFullRepository as CodespaceWithFullRepository + from .group_0476 import ( CodespaceWithFullRepositoryPropGitStatus as CodespaceWithFullRepositoryPropGitStatus, ) - from .group_0474 import ( + from .group_0476 import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from .group_0475 import Email as Email - from .group_0476 import GpgKey as GpgKey - from .group_0476 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0476 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0476 import ( + from .group_0477 import Email as Email + from .group_0478 import GpgKey as GpgKey + from .group_0478 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems + from .group_0478 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems + from .group_0478 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0477 import Key as Key - from .group_0478 import MarketplaceAccount as MarketplaceAccount - from .group_0478 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0479 import SocialAccount as SocialAccount - from .group_0480 import SshSigningKey as SshSigningKey - from .group_0481 import StarredRepository as StarredRepository - from .group_0482 import Hovercard as Hovercard - from .group_0482 import HovercardPropContextsItems as HovercardPropContextsItems - from .group_0483 import KeySimple as KeySimple - from .group_0484 import BillingUsageReportUser as BillingUsageReportUser - from .group_0484 import ( + from .group_0479 import Key as Key + from .group_0480 import MarketplaceAccount as MarketplaceAccount + from .group_0480 import UserMarketplacePurchase as UserMarketplacePurchase + from .group_0481 import SocialAccount as SocialAccount + from .group_0482 import SshSigningKey as SshSigningKey + from .group_0483 import StarredRepository as StarredRepository + from .group_0484 import Hovercard as Hovercard + from .group_0484 import HovercardPropContextsItems as HovercardPropContextsItems + from .group_0485 import KeySimple as KeySimple + from .group_0486 import BillingUsageReportUser as BillingUsageReportUser + from .group_0486 import ( BillingUsageReportUserPropUsageItemsItems as BillingUsageReportUserPropUsageItemsItems, ) - from .group_0485 import EnterpriseWebhooks as EnterpriseWebhooks - from .group_0486 import SimpleInstallation as SimpleInstallation - from .group_0487 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0488 import RepositoryWebhooks as RepositoryWebhooks - from .group_0488 import ( + from .group_0487 import EnterpriseWebhooks as EnterpriseWebhooks + from .group_0488 import SimpleInstallation as SimpleInstallation + from .group_0489 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks + from .group_0490 import RepositoryWebhooks as RepositoryWebhooks + from .group_0490 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0488 import ( + from .group_0490 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0488 import ( + from .group_0490 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0488 import ( + from .group_0490 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0488 import ( + from .group_0490 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0489 import WebhooksRule as WebhooksRule - from .group_0490 import ExemptionResponse as ExemptionResponse - from .group_0491 import DismissalRequestCodeScanning as DismissalRequestCodeScanning - from .group_0491 import ( + from .group_0491 import WebhooksRule as WebhooksRule + from .group_0492 import ExemptionResponse as ExemptionResponse + from .group_0493 import DismissalRequestCodeScanning as DismissalRequestCodeScanning + from .group_0493 import ( DismissalRequestCodeScanningMetadata as DismissalRequestCodeScanningMetadata, ) - from .group_0491 import ( + from .group_0493 import ( DismissalRequestCodeScanningPropDataItems as DismissalRequestCodeScanningPropDataItems, ) - from .group_0491 import ( + from .group_0493 import ( DismissalRequestSecretScanning as DismissalRequestSecretScanning, ) - from .group_0491 import ( + from .group_0493 import ( DismissalRequestSecretScanningMetadata as DismissalRequestSecretScanningMetadata, ) - from .group_0491 import ( + from .group_0493 import ( DismissalRequestSecretScanningPropDataItems as DismissalRequestSecretScanningPropDataItems, ) - from .group_0491 import ExemptionRequest as ExemptionRequest - from .group_0491 import ( + from .group_0493 import ExemptionRequest as ExemptionRequest + from .group_0493 import ( ExemptionRequestPushRulesetBypass as ExemptionRequestPushRulesetBypass, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestPushRulesetBypassPropDataItems as ExemptionRequestPushRulesetBypassPropDataItems, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestSecretScanning as ExemptionRequestSecretScanning, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestSecretScanningMetadata as ExemptionRequestSecretScanningMetadata, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestSecretScanningPropDataItems as ExemptionRequestSecretScanningPropDataItems, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestSecretScanningPropDataItemsPropLocationsItems as ExemptionRequestSecretScanningPropDataItemsPropLocationsItems, ) - from .group_0492 import SimpleCheckSuite as SimpleCheckSuite - from .group_0493 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0493 import ( + from .group_0494 import SimpleCheckSuite as SimpleCheckSuite + from .group_0495 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0495 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0494 import WebhooksDeployKey as WebhooksDeployKey - from .group_0495 import WebhooksWorkflow as WebhooksWorkflow - from .group_0496 import WebhooksApprover as WebhooksApprover - from .group_0496 import WebhooksReviewersItems as WebhooksReviewersItems - from .group_0496 import ( + from .group_0496 import WebhooksDeployKey as WebhooksDeployKey + from .group_0497 import WebhooksWorkflow as WebhooksWorkflow + from .group_0498 import WebhooksApprover as WebhooksApprover + from .group_0498 import WebhooksReviewersItems as WebhooksReviewersItems + from .group_0498 import ( WebhooksReviewersItemsPropReviewer as WebhooksReviewersItemsPropReviewer, ) - from .group_0497 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun - from .group_0498 import WebhooksUser as WebhooksUser - from .group_0499 import WebhooksAnswer as WebhooksAnswer - from .group_0499 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions - from .group_0499 import WebhooksAnswerPropUser as WebhooksAnswerPropUser - from .group_0500 import Discussion as Discussion - from .group_0500 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0500 import DiscussionPropCategory as DiscussionPropCategory - from .group_0500 import DiscussionPropReactions as DiscussionPropReactions - from .group_0500 import DiscussionPropUser as DiscussionPropUser - from .group_0500 import Label as Label - from .group_0501 import WebhooksComment as WebhooksComment - from .group_0501 import WebhooksCommentPropReactions as WebhooksCommentPropReactions - from .group_0501 import WebhooksCommentPropUser as WebhooksCommentPropUser - from .group_0502 import WebhooksLabel as WebhooksLabel - from .group_0503 import WebhooksRepositoriesItems as WebhooksRepositoriesItems - from .group_0504 import ( + from .group_0499 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun + from .group_0500 import WebhooksUser as WebhooksUser + from .group_0501 import WebhooksAnswer as WebhooksAnswer + from .group_0501 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions + from .group_0501 import WebhooksAnswerPropUser as WebhooksAnswerPropUser + from .group_0502 import Discussion as Discussion + from .group_0502 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0502 import DiscussionPropCategory as DiscussionPropCategory + from .group_0502 import DiscussionPropReactions as DiscussionPropReactions + from .group_0502 import DiscussionPropUser as DiscussionPropUser + from .group_0502 import Label as Label + from .group_0503 import WebhooksComment as WebhooksComment + from .group_0503 import WebhooksCommentPropReactions as WebhooksCommentPropReactions + from .group_0503 import WebhooksCommentPropUser as WebhooksCommentPropUser + from .group_0504 import WebhooksLabel as WebhooksLabel + from .group_0505 import WebhooksRepositoriesItems as WebhooksRepositoriesItems + from .group_0506 import ( WebhooksRepositoriesAddedItems as WebhooksRepositoriesAddedItems, ) - from .group_0505 import WebhooksIssueComment as WebhooksIssueComment - from .group_0505 import ( + from .group_0507 import WebhooksIssueComment as WebhooksIssueComment + from .group_0507 import ( WebhooksIssueCommentPropReactions as WebhooksIssueCommentPropReactions, ) - from .group_0505 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser - from .group_0506 import WebhooksChanges as WebhooksChanges - from .group_0506 import WebhooksChangesPropBody as WebhooksChangesPropBody - from .group_0507 import WebhooksIssue as WebhooksIssue - from .group_0507 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee - from .group_0507 import ( + from .group_0507 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser + from .group_0508 import WebhooksChanges as WebhooksChanges + from .group_0508 import WebhooksChangesPropBody as WebhooksChangesPropBody + from .group_0509 import WebhooksIssue as WebhooksIssue + from .group_0509 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee + from .group_0509 import ( WebhooksIssuePropAssigneesItems as WebhooksIssuePropAssigneesItems, ) - from .group_0507 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems - from .group_0507 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone - from .group_0507 import ( + from .group_0509 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems + from .group_0509 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone + from .group_0509 import ( WebhooksIssuePropMilestonePropCreator as WebhooksIssuePropMilestonePropCreator, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropPerformedViaGithubApp as WebhooksIssuePropPerformedViaGithubApp, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropPerformedViaGithubAppPropOwner as WebhooksIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissions as WebhooksIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0507 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest - from .group_0507 import WebhooksIssuePropReactions as WebhooksIssuePropReactions - from .group_0507 import ( - WebhooksIssuePropSubIssuesSummary as WebhooksIssuePropSubIssuesSummary, - ) - from .group_0507 import WebhooksIssuePropUser as WebhooksIssuePropUser - from .group_0508 import WebhooksMilestone as WebhooksMilestone - from .group_0508 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator - from .group_0509 import WebhooksIssue2 as WebhooksIssue2 - from .group_0509 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee - from .group_0509 import ( + from .group_0509 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest + from .group_0509 import WebhooksIssuePropReactions as WebhooksIssuePropReactions + from .group_0509 import WebhooksIssuePropUser as WebhooksIssuePropUser + from .group_0510 import WebhooksMilestone as WebhooksMilestone + from .group_0510 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator + from .group_0511 import WebhooksIssue2 as WebhooksIssue2 + from .group_0511 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee + from .group_0511 import ( WebhooksIssue2PropAssigneesItems as WebhooksIssue2PropAssigneesItems, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropLabelsItems as WebhooksIssue2PropLabelsItems, ) - from .group_0509 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone - from .group_0509 import ( + from .group_0511 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone + from .group_0511 import ( WebhooksIssue2PropMilestonePropCreator as WebhooksIssue2PropMilestonePropCreator, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropPerformedViaGithubApp as WebhooksIssue2PropPerformedViaGithubApp, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwner as WebhooksIssue2PropPerformedViaGithubAppPropOwner, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissions as WebhooksIssue2PropPerformedViaGithubAppPropPermissions, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropPullRequest as WebhooksIssue2PropPullRequest, ) - from .group_0509 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions - from .group_0509 import ( - WebhooksIssue2PropSubIssuesSummary as WebhooksIssue2PropSubIssuesSummary, - ) - from .group_0509 import WebhooksIssue2PropUser as WebhooksIssue2PropUser - from .group_0510 import WebhooksUserMannequin as WebhooksUserMannequin - from .group_0511 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase - from .group_0511 import ( + from .group_0511 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions + from .group_0511 import WebhooksIssue2PropUser as WebhooksIssue2PropUser + from .group_0512 import WebhooksUserMannequin as WebhooksUserMannequin + from .group_0513 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase + from .group_0513 import ( WebhooksMarketplacePurchasePropAccount as WebhooksMarketplacePurchasePropAccount, ) - from .group_0511 import ( + from .group_0513 import ( WebhooksMarketplacePurchasePropPlan as WebhooksMarketplacePurchasePropPlan, ) - from .group_0512 import ( + from .group_0514 import ( WebhooksPreviousMarketplacePurchase as WebhooksPreviousMarketplacePurchase, ) - from .group_0512 import ( + from .group_0514 import ( WebhooksPreviousMarketplacePurchasePropAccount as WebhooksPreviousMarketplacePurchasePropAccount, ) - from .group_0512 import ( + from .group_0514 import ( WebhooksPreviousMarketplacePurchasePropPlan as WebhooksPreviousMarketplacePurchasePropPlan, ) - from .group_0513 import WebhooksTeam as WebhooksTeam - from .group_0513 import WebhooksTeamPropParent as WebhooksTeamPropParent - from .group_0514 import MergeGroup as MergeGroup - from .group_0515 import WebhooksMilestone3 as WebhooksMilestone3 - from .group_0515 import ( + from .group_0515 import WebhooksTeam as WebhooksTeam + from .group_0515 import WebhooksTeamPropParent as WebhooksTeamPropParent + from .group_0516 import MergeGroup as MergeGroup + from .group_0517 import WebhooksMilestone3 as WebhooksMilestone3 + from .group_0517 import ( WebhooksMilestone3PropCreator as WebhooksMilestone3PropCreator, ) - from .group_0516 import WebhooksMembership as WebhooksMembership - from .group_0516 import WebhooksMembershipPropUser as WebhooksMembershipPropUser - from .group_0517 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0517 import ( + from .group_0518 import WebhooksMembership as WebhooksMembership + from .group_0518 import WebhooksMembershipPropUser as WebhooksMembershipPropUser + from .group_0519 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0518 import WebhooksProjectCard as WebhooksProjectCard - from .group_0518 import ( + from .group_0520 import WebhooksProjectCard as WebhooksProjectCard + from .group_0520 import ( WebhooksProjectCardPropCreator as WebhooksProjectCardPropCreator, ) - from .group_0519 import WebhooksProject as WebhooksProject - from .group_0519 import WebhooksProjectPropCreator as WebhooksProjectPropCreator - from .group_0520 import WebhooksProjectColumn as WebhooksProjectColumn - from .group_0521 import ProjectsV2 as ProjectsV2 - from .group_0522 import WebhooksProjectChanges as WebhooksProjectChanges - from .group_0522 import ( + from .group_0521 import WebhooksProject as WebhooksProject + from .group_0521 import WebhooksProjectPropCreator as WebhooksProjectPropCreator + from .group_0522 import WebhooksProjectColumn as WebhooksProjectColumn + from .group_0523 import ProjectsV2 as ProjectsV2 + from .group_0524 import WebhooksProjectChanges as WebhooksProjectChanges + from .group_0524 import ( WebhooksProjectChangesPropArchivedAt as WebhooksProjectChangesPropArchivedAt, ) - from .group_0523 import ProjectsV2Item as ProjectsV2Item - from .group_0524 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate - from .group_0525 import PullRequestWebhook as PullRequestWebhook - from .group_0526 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 - from .group_0527 import WebhooksPullRequest5 as WebhooksPullRequest5 - from .group_0527 import ( + from .group_0525 import ProjectsV2Item as ProjectsV2Item + from .group_0526 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate + from .group_0527 import PullRequestWebhook as PullRequestWebhook + from .group_0528 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0529 import WebhooksPullRequest5 as WebhooksPullRequest5 + from .group_0529 import ( WebhooksPullRequest5PropAssignee as WebhooksPullRequest5PropAssignee, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropAssigneesItems as WebhooksPullRequest5PropAssigneesItems, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropAutoMerge as WebhooksPullRequest5PropAutoMerge, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropAutoMergePropEnabledBy as WebhooksPullRequest5PropAutoMergePropEnabledBy, ) - from .group_0527 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase - from .group_0527 import ( + from .group_0529 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase + from .group_0529 import ( WebhooksPullRequest5PropBasePropRepo as WebhooksPullRequest5PropBasePropRepo, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBasePropRepoPropLicense as WebhooksPullRequest5PropBasePropRepoPropLicense, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBasePropRepoPropOwner as WebhooksPullRequest5PropBasePropRepoPropOwner, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBasePropRepoPropPermissions as WebhooksPullRequest5PropBasePropRepoPropPermissions, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBasePropUser as WebhooksPullRequest5PropBasePropUser, ) - from .group_0527 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead - from .group_0527 import ( + from .group_0529 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead + from .group_0529 import ( WebhooksPullRequest5PropHeadPropRepo as WebhooksPullRequest5PropHeadPropRepo, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadPropRepoPropLicense as WebhooksPullRequest5PropHeadPropRepoPropLicense, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadPropRepoPropOwner as WebhooksPullRequest5PropHeadPropRepoPropOwner, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissions as WebhooksPullRequest5PropHeadPropRepoPropPermissions, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadPropUser as WebhooksPullRequest5PropHeadPropUser, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLabelsItems as WebhooksPullRequest5PropLabelsItems, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinks as WebhooksPullRequest5PropLinks, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropComments as WebhooksPullRequest5PropLinksPropComments, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropCommits as WebhooksPullRequest5PropLinksPropCommits, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropHtml as WebhooksPullRequest5PropLinksPropHtml, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropIssue as WebhooksPullRequest5PropLinksPropIssue, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropReviewComment as WebhooksPullRequest5PropLinksPropReviewComment, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropReviewComments as WebhooksPullRequest5PropLinksPropReviewComments, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropSelf as WebhooksPullRequest5PropLinksPropSelf, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropStatuses as WebhooksPullRequest5PropLinksPropStatuses, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropMergedBy as WebhooksPullRequest5PropMergedBy, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropMilestone as WebhooksPullRequest5PropMilestone, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropMilestonePropCreator as WebhooksPullRequest5PropMilestonePropCreator, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0 as WebhooksPullRequest5PropRequestedReviewersItemsOneof0, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1 as WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedTeamsItems as WebhooksPullRequest5PropRequestedTeamsItems, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParent as WebhooksPullRequest5PropRequestedTeamsItemsPropParent, ) - from .group_0527 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser - from .group_0528 import WebhooksReviewComment as WebhooksReviewComment - from .group_0528 import ( + from .group_0529 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser + from .group_0530 import WebhooksReviewComment as WebhooksReviewComment + from .group_0530 import ( WebhooksReviewCommentPropLinks as WebhooksReviewCommentPropLinks, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropLinksPropHtml as WebhooksReviewCommentPropLinksPropHtml, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropLinksPropPullRequest as WebhooksReviewCommentPropLinksPropPullRequest, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropLinksPropSelf as WebhooksReviewCommentPropLinksPropSelf, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropReactions as WebhooksReviewCommentPropReactions, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropUser as WebhooksReviewCommentPropUser, ) - from .group_0529 import WebhooksReview as WebhooksReview - from .group_0529 import WebhooksReviewPropLinks as WebhooksReviewPropLinks - from .group_0529 import ( + from .group_0531 import WebhooksReview as WebhooksReview + from .group_0531 import WebhooksReviewPropLinks as WebhooksReviewPropLinks + from .group_0531 import ( WebhooksReviewPropLinksPropHtml as WebhooksReviewPropLinksPropHtml, ) - from .group_0529 import ( + from .group_0531 import ( WebhooksReviewPropLinksPropPullRequest as WebhooksReviewPropLinksPropPullRequest, ) - from .group_0529 import WebhooksReviewPropUser as WebhooksReviewPropUser - from .group_0530 import WebhooksRelease as WebhooksRelease - from .group_0530 import ( + from .group_0531 import WebhooksReviewPropUser as WebhooksReviewPropUser + from .group_0532 import WebhooksRelease as WebhooksRelease + from .group_0532 import ( WebhooksReleasePropAssetsItems as WebhooksReleasePropAssetsItems, ) - from .group_0530 import ( + from .group_0532 import ( WebhooksReleasePropAssetsItemsPropUploader as WebhooksReleasePropAssetsItemsPropUploader, ) - from .group_0530 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor - from .group_0530 import WebhooksReleasePropReactions as WebhooksReleasePropReactions - from .group_0531 import WebhooksRelease1 as WebhooksRelease1 - from .group_0531 import ( + from .group_0532 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor + from .group_0532 import WebhooksReleasePropReactions as WebhooksReleasePropReactions + from .group_0533 import WebhooksRelease1 as WebhooksRelease1 + from .group_0533 import ( WebhooksRelease1PropAssetsItems as WebhooksRelease1PropAssetsItems, ) - from .group_0531 import ( + from .group_0533 import ( WebhooksRelease1PropAssetsItemsPropUploader as WebhooksRelease1PropAssetsItemsPropUploader, ) - from .group_0531 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor - from .group_0531 import ( + from .group_0533 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor + from .group_0533 import ( WebhooksRelease1PropReactions as WebhooksRelease1PropReactions, ) - from .group_0532 import WebhooksAlert as WebhooksAlert - from .group_0532 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser - from .group_0533 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0534 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory - from .group_0534 import ( + from .group_0534 import WebhooksAlert as WebhooksAlert + from .group_0534 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser + from .group_0535 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0536 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory + from .group_0536 import ( WebhooksSecurityAdvisoryPropCvss as WebhooksSecurityAdvisoryPropCvss, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropCwesItems as WebhooksSecurityAdvisoryPropCwesItems, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropIdentifiersItems as WebhooksSecurityAdvisoryPropIdentifiersItems, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropReferencesItems as WebhooksSecurityAdvisoryPropReferencesItems, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItems as WebhooksSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0535 import WebhooksSponsorship as WebhooksSponsorship - from .group_0535 import ( + from .group_0537 import WebhooksSponsorship as WebhooksSponsorship + from .group_0537 import ( WebhooksSponsorshipPropMaintainer as WebhooksSponsorshipPropMaintainer, ) - from .group_0535 import ( + from .group_0537 import ( WebhooksSponsorshipPropSponsor as WebhooksSponsorshipPropSponsor, ) - from .group_0535 import ( + from .group_0537 import ( WebhooksSponsorshipPropSponsorable as WebhooksSponsorshipPropSponsorable, ) - from .group_0535 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier - from .group_0536 import WebhooksChanges8 as WebhooksChanges8 - from .group_0536 import WebhooksChanges8PropTier as WebhooksChanges8PropTier - from .group_0536 import ( + from .group_0537 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier + from .group_0538 import WebhooksChanges8 as WebhooksChanges8 + from .group_0538 import WebhooksChanges8PropTier as WebhooksChanges8PropTier + from .group_0538 import ( WebhooksChanges8PropTierPropFrom as WebhooksChanges8PropTierPropFrom, ) - from .group_0537 import WebhooksTeam1 as WebhooksTeam1 - from .group_0537 import WebhooksTeam1PropParent as WebhooksTeam1PropParent - from .group_0538 import ( + from .group_0539 import WebhooksTeam1 as WebhooksTeam1 + from .group_0539 import WebhooksTeam1PropParent as WebhooksTeam1PropParent + from .group_0540 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0539 import ( + from .group_0541 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0540 import ( + from .group_0542 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0541 import ( + from .group_0543 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, ) - from .group_0543 import ( + from .group_0545 import ( WebhookExemptionRequestCancelled as WebhookExemptionRequestCancelled, ) - from .group_0544 import ( + from .group_0546 import ( WebhookExemptionRequestCompleted as WebhookExemptionRequestCompleted, ) - from .group_0545 import ( + from .group_0547 import ( WebhookExemptionRequestCreated as WebhookExemptionRequestCreated, ) - from .group_0546 import ( + from .group_0548 import ( WebhookExemptionRequestResponseDismissed as WebhookExemptionRequestResponseDismissed, ) - from .group_0547 import ( + from .group_0549 import ( WebhookExemptionRequestResponseSubmitted as WebhookExemptionRequestResponseSubmitted, ) - from .group_0548 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0549 import ( + from .group_0550 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0551 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0550 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0551 import ( + from .group_0552 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0553 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0552 import ( + from .group_0554 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0552 import ( + from .group_0554 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0553 import ( + from .group_0555 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0554 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0555 import ( + from .group_0556 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0557 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0556 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0556 import ( + from .group_0558 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0557 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0557 import ( + from .group_0559 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0558 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0558 import ( + from .group_0560 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0565 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0565 import ( + from .group_0567 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0567 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0565 import ( + from .group_0567 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0565 import ( + from .group_0567 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0566 import WebhookCreate as WebhookCreate - from .group_0567 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0568 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0568 import ( + from .group_0568 import WebhookCreate as WebhookCreate + from .group_0569 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0570 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0570 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0569 import ( + from .group_0571 import ( WebhookCustomPropertyPromotedToEnterprise as WebhookCustomPropertyPromotedToEnterprise, ) - from .group_0570 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0571 import ( + from .group_0572 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0573 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0572 import WebhookDelete as WebhookDelete - from .group_0573 import ( + from .group_0574 import WebhookDelete as WebhookDelete + from .group_0575 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0574 import ( + from .group_0576 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0575 import ( + from .group_0577 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0576 import ( + from .group_0578 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0577 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0578 import ( + from .group_0579 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0580 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0579 import ( + from .group_0581 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0580 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0581 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0582 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0582 import ( + from .group_0582 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0583 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0584 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0584 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0583 import ( + from .group_0585 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0588 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0589 import ( + from .group_0590 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0591 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0589 import ( + from .group_0591 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0589 import ( + from .group_0591 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0589 import ( + from .group_0591 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0590 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0591 import ( + from .group_0592 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0593 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0592 import ( + from .group_0594 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0593 import ( + from .group_0595 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0593 import ( + from .group_0595 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0593 import ( + from .group_0595 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0594 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0595 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0596 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0596 import ( + from .group_0596 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0597 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0598 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0598 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0596 import ( + from .group_0598 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0596 import ( + from .group_0598 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0597 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0598 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0599 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0600 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0601 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0602 import ( + from .group_0599 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0600 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0601 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0602 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0603 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0604 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0603 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0604 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0605 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0606 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0607 import WebhookFork as WebhookFork - from .group_0608 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0608 import ( + from .group_0605 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0606 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0607 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0608 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0609 import WebhookFork as WebhookFork + from .group_0610 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0610 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0608 import ( + from .group_0610 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0609 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0609 import ( + from .group_0611 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0611 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0609 import ( + from .group_0611 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0610 import ( + from .group_0612 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0611 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0611 import ( + from .group_0613 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0613 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0611 import ( + from .group_0613 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0612 import ( + from .group_0614 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0613 import WebhookGollum as WebhookGollum - from .group_0613 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0614 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0615 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0616 import ( + from .group_0615 import WebhookGollum as WebhookGollum + from .group_0615 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0616 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0617 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0618 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0617 import ( + from .group_0619 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0617 import ( + from .group_0619 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0618 import ( + from .group_0620 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0618 import ( + from .group_0620 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0619 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0620 import ( + from .group_0621 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0622 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0620 import ( + from .group_0622 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0620 import ( + from .group_0622 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0620 import ( + from .group_0622 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0620 import ( + from .group_0622 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0621 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0622 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0623 import ( + from .group_0623 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0624 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0625 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0623 import ( + from .group_0625 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0623 import ( + from .group_0625 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0624 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0624 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0624 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0624 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0625 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0625 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0625 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0625 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0626 import ( + from .group_0628 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0626 import ( + from .group_0628 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0626 import ( + from .group_0628 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0627 import ( + from .group_0629 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0628 import ( + from .group_0630 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0629 import ( + from .group_0631 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0629 import ( + from .group_0631 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0630 import ( + from .group_0632 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0631 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary, - ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0633 import ( + from .group_0634 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0634 import ( + from .group_0635 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0635 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0636 import ( + from .group_0636 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0637 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0636 import ( + from .group_0637 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0636 import ( + from .group_0637 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0636 import ( + from .group_0637 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0637 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0637 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0637 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0637 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0638 import ( + from .group_0639 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0638 import ( + from .group_0639 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0638 import ( + from .group_0639 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0639 import ( + from .group_0640 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0640 import ( + from .group_0641 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0641 import ( + from .group_0642 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0641 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) from .group_0642 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) from .group_0643 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) from .group_0644 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, @@ -3125,6046 +3111,6007 @@ WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) from .group_0655 import ( - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary, - ) - from .group_0656 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0657 import ( + from .group_0656 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0658 import ( + from .group_0657 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0659 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0660 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0661 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0661 import ( + from .group_0658 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0659 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0660 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0661 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0661 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) - from .group_0661 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0661 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0663 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0664 import ( + from .group_0663 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0665 import ( + from .group_0664 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0665 import ( + from .group_0664 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0666 import ( + from .group_0665 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0667 import ( + from .group_0666 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) from .group_0667 import ( - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, - ) - from .group_0668 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0669 import ( + from .group_0668 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0670 import ( + from .group_0669 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0671 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0672 import ( + from .group_0670 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0671 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0672 import ( - WebhookIssuesDeletedPropIssuePropSubIssuesSummary as WebhookIssuesDeletedPropIssuePropSubIssuesSummary, - ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0673 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0674 import ( + from .group_0672 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0673 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0674 import ( - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary, - ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) - from .group_0675 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0675 import ( + from .group_0674 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0674 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0675 import ( + from .group_0674 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0675 import ( + from .group_0674 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0676 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0676 import ( + from .group_0675 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0675 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0676 import ( - WebhookIssuesEditedPropIssuePropSubIssuesSummary as WebhookIssuesEditedPropIssuePropSubIssuesSummary, - ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0677 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0678 import ( + from .group_0676 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0677 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0678 import ( - WebhookIssuesLabeledPropIssuePropSubIssuesSummary as WebhookIssuesLabeledPropIssuePropSubIssuesSummary, - ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0679 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0680 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0680 import ( + from .group_0678 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0679 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0679 import ( WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from .group_0680 import ( - WebhookIssuesLockedPropIssuePropSubIssuesSummary as WebhookIssuesLockedPropIssuePropSubIssuesSummary, - ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) - from .group_0681 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0682 import ( + from .group_0680 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0681 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0682 import ( - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary as WebhookIssuesMilestonedPropIssuePropSubIssuesSummary, - ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) - from .group_0683 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0684 import ( + from .group_0682 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0683 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0685 import ( - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary, - ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0686 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0686 import ( + from .group_0685 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0686 import ( - WebhookIssuesOpenedPropIssuePropSubIssuesSummary as WebhookIssuesOpenedPropIssuePropSubIssuesSummary, - ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0687 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0688 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0689 import ( + from .group_0686 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0687 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0688 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from .group_0689 import ( - WebhookIssuesReopenedPropIssuePropSubIssuesSummary as WebhookIssuesReopenedPropIssuePropSubIssuesSummary, - ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0690 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0691 import ( + from .group_0689 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0690 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0692 import ( - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary, - ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0693 import WebhookIssuesTyped as WebhookIssuesTyped - from .group_0694 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0695 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0696 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0697 import ( + from .group_0692 import WebhookIssuesTyped as WebhookIssuesTyped + from .group_0693 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0694 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0695 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0696 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from .group_0697 import ( - WebhookIssuesUnlockedPropIssuePropSubIssuesSummary as WebhookIssuesUnlockedPropIssuePropSubIssuesSummary, - ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0698 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0699 import WebhookIssuesUntyped as WebhookIssuesUntyped - from .group_0700 import WebhookLabelCreated as WebhookLabelCreated - from .group_0701 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0702 import WebhookLabelEdited as WebhookLabelEdited - from .group_0702 import ( + from .group_0697 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0698 import WebhookIssuesUntyped as WebhookIssuesUntyped + from .group_0699 import WebhookLabelCreated as WebhookLabelCreated + from .group_0700 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0701 import WebhookLabelEdited as WebhookLabelEdited + from .group_0701 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0702 import ( + from .group_0701 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0702 import ( + from .group_0701 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0702 import ( + from .group_0701 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0703 import ( + from .group_0702 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0704 import ( + from .group_0703 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0704 import ( + from .group_0703 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0704 import ( + from .group_0703 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0704 import ( + from .group_0703 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0705 import ( + from .group_0704 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0705 import ( + from .group_0704 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0705 import ( + from .group_0704 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0705 import ( + from .group_0704 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0706 import ( + from .group_0705 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0706 import ( + from .group_0705 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0706 import ( + from .group_0705 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, ) - from .group_0706 import ( + from .group_0705 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0707 import ( + from .group_0706 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0708 import WebhookMemberAdded as WebhookMemberAdded - from .group_0708 import ( + from .group_0707 import WebhookMemberAdded as WebhookMemberAdded + from .group_0707 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0708 import ( + from .group_0707 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0708 import ( + from .group_0707 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0709 import WebhookMemberEdited as WebhookMemberEdited - from .group_0709 import ( + from .group_0708 import WebhookMemberEdited as WebhookMemberEdited + from .group_0708 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0709 import ( + from .group_0708 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0709 import ( + from .group_0708 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0710 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0711 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0711 import ( + from .group_0709 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0710 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0710 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0712 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0712 import ( + from .group_0711 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0711 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0713 import ( + from .group_0712 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0714 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0715 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0715 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0715 import ( + from .group_0713 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0714 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0714 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0714 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0716 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0717 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0718 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0719 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0719 import ( + from .group_0715 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0716 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0717 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0718 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0718 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0719 import ( + from .group_0718 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0719 import ( + from .group_0718 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0719 import ( + from .group_0718 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0720 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0721 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0722 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0723 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0724 import ( + from .group_0719 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0720 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0721 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0722 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0723 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0725 import ( + from .group_0724 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0725 import ( + from .group_0724 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0725 import ( + from .group_0724 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0726 import ( + from .group_0725 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0727 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0727 import ( + from .group_0726 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0726 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0727 import ( + from .group_0726 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0728 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0728 import ( + from .group_0727 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0727 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0728 import ( + from .group_0727 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0728 import ( + from .group_0727 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0729 import WebhookPackagePublished as WebhookPackagePublished - from .group_0730 import ( + from .group_0728 import WebhookPackagePublished as WebhookPackagePublished + from .group_0729 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0732 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0733 import ( + from .group_0731 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0732 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0735 import WebhookPageBuild as WebhookPageBuild - from .group_0735 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0735 import ( + from .group_0734 import WebhookPageBuild as WebhookPageBuild + from .group_0734 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0734 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0739 import ( + from .group_0738 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0740 import WebhookPing as WebhookPing - from .group_0741 import WebhookPingPropHook as WebhookPingPropHook - from .group_0741 import ( + from .group_0739 import WebhookPing as WebhookPing + from .group_0740 import WebhookPingPropHook as WebhookPingPropHook + from .group_0740 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0742 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0743 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0743 import ( + from .group_0741 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0742 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0742 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0743 import ( + from .group_0742 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0744 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0745 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0745 import ( + from .group_0743 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0744 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0744 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0745 import ( + from .group_0744 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0746 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0746 import ( + from .group_0745 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0745 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0746 import ( + from .group_0745 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0747 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0747 import ( + from .group_0746 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0746 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0747 import ( + from .group_0746 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0747 import ( + from .group_0746 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0747 import ( + from .group_0746 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0748 import ( + from .group_0747 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0748 import ( + from .group_0747 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0749 import ( + from .group_0748 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0749 import ( + from .group_0748 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0750 import WebhookProjectClosed as WebhookProjectClosed - from .group_0751 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0752 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0753 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0753 import ( + from .group_0749 import WebhookProjectClosed as WebhookProjectClosed + from .group_0750 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0751 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0752 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0752 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0753 import ( + from .group_0752 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0754 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0755 import WebhookProjectCreated as WebhookProjectCreated - from .group_0756 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0757 import WebhookProjectEdited as WebhookProjectEdited - from .group_0757 import ( + from .group_0753 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0754 import WebhookProjectCreated as WebhookProjectCreated + from .group_0755 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0756 import WebhookProjectEdited as WebhookProjectEdited + from .group_0756 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0757 import ( + from .group_0756 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0757 import ( + from .group_0756 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0758 import WebhookProjectReopened as WebhookProjectReopened - from .group_0759 import ( + from .group_0757 import WebhookProjectReopened as WebhookProjectReopened + from .group_0758 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0760 import ( + from .group_0759 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0761 import ( + from .group_0760 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0763 import ( + from .group_0762 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0764 import ( + from .group_0763 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0764 import ( + from .group_0763 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0764 import ( + from .group_0763 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0765 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0766 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0767 import ProjectsV2IterationSetting as ProjectsV2IterationSetting - from .group_0767 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption - from .group_0767 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0767 import ( + from .group_0764 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0765 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0766 import ProjectsV2IterationSetting as ProjectsV2IterationSetting + from .group_0766 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption + from .group_0766 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0766 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0767 import ( + from .group_0766 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0767 import ( + from .group_0766 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0767 import ( + from .group_0766 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0768 import ( + from .group_0767 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0768 import ( + from .group_0767 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0768 import ( + from .group_0767 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0769 import ( + from .group_0768 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0770 import ( + from .group_0769 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0771 import ( + from .group_0770 import ( WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, ) - from .group_0772 import ( + from .group_0771 import ( WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, ) - from .group_0774 import WebhookPublic as WebhookPublic - from .group_0775 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0775 import ( + from .group_0773 import WebhookPublic as WebhookPublic + from .group_0774 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0778 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0779 import ( + from .group_0777 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0778 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0780 import ( + from .group_0779 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0781 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0781 import ( + from .group_0780 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0782 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0782 import ( + from .group_0781 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0781 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0783 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0783 import ( + from .group_0782 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0784 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0784 import ( + from .group_0783 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0785 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0785 import ( + from .group_0784 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0784 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0786 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0787 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0788 import ( + from .group_0785 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0786 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0787 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0789 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0790 import ( + from .group_0788 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0789 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0803 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0803 import ( + from .group_0802 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0804 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0804 import ( + from .group_0803 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0805 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0805 import ( + from .group_0804 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0806 import WebhookPush as WebhookPush - from .group_0806 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0806 import ( + from .group_0805 import WebhookPush as WebhookPush + from .group_0805 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0805 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0806 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0806 import ( + from .group_0805 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0805 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0806 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0806 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0806 import ( + from .group_0805 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0805 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0805 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0807 import ( + from .group_0806 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0808 import ( + from .group_0807 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0808 import ( + from .group_0807 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0808 import ( + from .group_0807 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0810 import ( + from .group_0809 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0811 import ( + from .group_0810 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0811 import ( + from .group_0810 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0811 import ( + from .group_0810 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0813 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0814 import WebhookReleaseDeleted as WebhookReleaseDeleted - from .group_0815 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0815 import ( + from .group_0812 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0813 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0814 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0814 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0815 import ( + from .group_0814 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0815 import ( + from .group_0814 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0815 import ( + from .group_0814 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0815 import ( + from .group_0814 import ( WebhookReleaseEditedPropChangesPropTagName as WebhookReleaseEditedPropChangesPropTagName, ) - from .group_0816 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0816 import ( + from .group_0815 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0815 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0816 import ( + from .group_0815 import ( WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, ) - from .group_0816 import ( + from .group_0815 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0816 import ( + from .group_0815 import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0816 import ( + from .group_0815 import ( WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, ) - from .group_0817 import WebhookReleasePublished as WebhookReleasePublished - from .group_0818 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0819 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0820 import ( + from .group_0816 import WebhookReleasePublished as WebhookReleasePublished + from .group_0817 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0818 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0819 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0821 import ( + from .group_0820 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0822 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0823 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0824 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0825 import ( + from .group_0821 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0822 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0823 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0824 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0825 import ( + from .group_0824 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0826 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0826 import ( + from .group_0825 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0825 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0826 import ( + from .group_0825 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0826 import ( + from .group_0825 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0826 import ( + from .group_0825 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0826 import ( + from .group_0825 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0827 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0828 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0829 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0830 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0830 import ( + from .group_0826 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0827 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0828 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0829 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0829 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0830 import ( + from .group_0829 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0830 import ( + from .group_0829 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0831 import ( + from .group_0830 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0832 import ( + from .group_0831 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0833 import ( + from .group_0832 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0834 import ( + from .group_0833 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0834 import ( + from .group_0833 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0834 import ( + from .group_0833 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0835 import ( + from .group_0834 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0837 import ( + from .group_0836 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0839 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0839 import ( + from .group_0838 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0838 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0840 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0841 import ( + from .group_0839 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0840 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0842 import ( + from .group_0841 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0842 import ( + from .group_0841 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0842 import ( + from .group_0841 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, ) - from .group_0843 import ( + from .group_0842 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0844 import ( + from .group_0843 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0844 import ( + from .group_0843 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0844 import ( + from .group_0843 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, ) - from .group_0845 import ( + from .group_0844 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0846 import ( + from .group_0845 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0847 import ( + from .group_0846 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0848 import ( + from .group_0847 import ( WebhookSecretScanningAlertPubliclyLeaked as WebhookSecretScanningAlertPubliclyLeaked, ) - from .group_0849 import ( + from .group_0848 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0850 import ( + from .group_0849 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0851 import ( + from .group_0850 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0852 import ( + from .group_0851 import ( WebhookSecretScanningScanCompleted as WebhookSecretScanningScanCompleted, ) - from .group_0853 import ( + from .group_0852 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0854 import ( + from .group_0853 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0855 import ( + from .group_0854 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0857 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0858 import ( + from .group_0856 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0857 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0859 import ( + from .group_0858 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0860 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0861 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0862 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0862 import ( + from .group_0859 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0860 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0861 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0861 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0862 import ( + from .group_0861 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0863 import ( + from .group_0862 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0864 import ( + from .group_0863 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0865 import ( + from .group_0864 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0866 import WebhookStarCreated as WebhookStarCreated - from .group_0867 import WebhookStarDeleted as WebhookStarDeleted - from .group_0868 import WebhookStatus as WebhookStatus - from .group_0868 import ( + from .group_0865 import WebhookStarCreated as WebhookStarCreated + from .group_0866 import WebhookStarDeleted as WebhookStarDeleted + from .group_0867 import WebhookStatus as WebhookStatus + from .group_0867 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0868 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0868 import ( + from .group_0867 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0867 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0869 import ( + from .group_0868 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0870 import ( + from .group_0869 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0871 import ( + from .group_0870 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0872 import ( + from .group_0871 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0873 import ( + from .group_0872 import ( WebhookSubIssuesParentIssueAdded as WebhookSubIssuesParentIssueAdded, ) - from .group_0874 import ( + from .group_0873 import ( WebhookSubIssuesParentIssueRemoved as WebhookSubIssuesParentIssueRemoved, ) - from .group_0875 import ( + from .group_0874 import ( WebhookSubIssuesSubIssueAdded as WebhookSubIssuesSubIssueAdded, ) - from .group_0876 import ( + from .group_0875 import ( WebhookSubIssuesSubIssueRemoved as WebhookSubIssuesSubIssueRemoved, ) - from .group_0877 import WebhookTeamAdd as WebhookTeamAdd - from .group_0878 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0878 import ( + from .group_0876 import WebhookTeamAdd as WebhookTeamAdd + from .group_0877 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0878 import ( + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0878 import ( + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0878 import ( + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0878 import ( + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0879 import WebhookTeamCreated as WebhookTeamCreated - from .group_0879 import ( + from .group_0878 import WebhookTeamCreated as WebhookTeamCreated + from .group_0878 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0879 import ( + from .group_0878 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0879 import ( + from .group_0878 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0879 import ( + from .group_0878 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0879 import ( + from .group_0878 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0880 import WebhookTeamDeleted as WebhookTeamDeleted - from .group_0880 import ( + from .group_0879 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0879 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0880 import ( + from .group_0879 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0880 import ( + from .group_0879 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0880 import ( + from .group_0879 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0880 import ( + from .group_0879 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0881 import WebhookTeamEdited as WebhookTeamEdited - from .group_0881 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0881 import ( + from .group_0880 import WebhookTeamEdited as WebhookTeamEdited + from .group_0880 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0880 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0883 import WebhookWatchStarted as WebhookWatchStarted - from .group_0884 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0884 import ( + from .group_0882 import WebhookWatchStarted as WebhookWatchStarted + from .group_0883 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0883 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0885 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0885 import ( + from .group_0884 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0884 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0885 import ( + from .group_0884 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0886 import ( + from .group_0885 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0886 import ( + from .group_0885 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0887 import ( + from .group_0886 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0887 import ( + from .group_0886 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0888 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0888 import ( + from .group_0887 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0887 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0888 import ( + from .group_0887 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0889 import ( + from .group_0888 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0889 import ( + from .group_0888 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0890 import ( + from .group_0889 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0890 import ( + from .group_0889 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0891 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_0891 import ( + from .group_0890 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_0890 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0891 import ( + from .group_0890 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0892 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0892 import ( + from .group_0891 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0891 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0892 import ( + from .group_0891 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0893 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0893 import ( + from .group_0892 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, ) - from .group_0894 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0894 import ( + from .group_0893 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0895 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0895 import ( + from .group_0894 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0896 import ( + from .group_0895 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0897 import ( + from .group_0896 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0898 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0899 import ( + from .group_0897 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0898 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0900 import ( + from .group_0899 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0901 import ( + from .group_0900 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0902 import ( + from .group_0901 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0903 import ( + from .group_0902 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0904 import ( + from .group_0903 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0905 import ( + from .group_0904 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0906 import CredentialsRevokePostBody as CredentialsRevokePostBody - from .group_0907 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0908 import ( + from .group_0905 import CredentialsRevokePostBody as CredentialsRevokePostBody + from .group_0906 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0907 import ( EnterprisesEnterpriseActionsHostedRunnersGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersGetResponse200, ) - from .group_0909 import ( + from .group_0908 import ( EnterprisesEnterpriseActionsHostedRunnersPostBody as EnterprisesEnterpriseActionsHostedRunnersPostBody, ) - from .group_0909 import ( + from .group_0908 import ( EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage as EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage, ) - from .group_0910 import ( + from .group_0909 import ( EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, ) - from .group_0911 import ( + from .group_0910 import ( EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, ) - from .group_0912 import ( + from .group_0911 import ( EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, ) - from .group_0913 import ( + from .group_0912 import ( EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, ) - from .group_0914 import ( + from .group_0913 import ( EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody as EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody, ) - from .group_0915 import ( + from .group_0914 import ( EnterprisesEnterpriseActionsPermissionsPutBody as EnterprisesEnterpriseActionsPermissionsPutBody, ) - from .group_0916 import ( + from .group_0915 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200 as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200, ) - from .group_0917 import ( + from .group_0916 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody, ) - from .group_0918 import ( + from .group_0917 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200, ) - from .group_0918 import RunnerGroupsEnterprise as RunnerGroupsEnterprise - from .group_0919 import ( + from .group_0917 import RunnerGroupsEnterprise as RunnerGroupsEnterprise + from .group_0918 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBody as EnterprisesEnterpriseActionsRunnerGroupsPostBody, ) - from .group_0920 import ( + from .group_0919 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0921 import ( + from .group_0920 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200, ) - from .group_0922 import ( + from .group_0921 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody, ) - from .group_0923 import ( + from .group_0922 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0924 import ( + from .group_0923 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0925 import ( + from .group_0924 import ( EnterprisesEnterpriseActionsRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnersGetResponse200, ) - from .group_0926 import ( + from .group_0925 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, ) - from .group_0927 import ( + from .group_0926 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201 as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_0928 import ( + from .group_0927 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0929 import ( + from .group_0928 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0930 import ( + from .group_0929 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0931 import ( + from .group_0930 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0932 import ( + from .group_0931 import ( EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody as EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody, ) - from .group_0933 import ( + from .group_0932 import ( EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBody as EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBody, ) - from .group_0934 import ( + from .group_0933 import ( EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBody as EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBody, ) - from .group_0935 import ( + from .group_0934 import ( EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBody as EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBody, ) - from .group_0936 import ( + from .group_0935 import ( EnterprisesEnterpriseAuditLogStreamsPostBody as EnterprisesEnterpriseAuditLogStreamsPostBody, ) - from .group_0937 import ( + from .group_0936 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody as EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody, ) - from .group_0938 import ( + from .group_0937 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422 as EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422, ) - from .group_0939 import ( + from .group_0938 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503 as EnterprisesEnterpriseCodeScanningAlertsGetResponse503, ) - from .group_0940 import ( + from .group_0939 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsPostBody, ) - from .group_0940 import ( + from .group_0939 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0941 import ( + from .group_0940 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0941 import ( + from .group_0940 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0942 import ( + from .group_0941 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0943 import ( + from .group_0942 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0944 import ( + from .group_0943 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0945 import ( + from .group_0944 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody, ) - from .group_0946 import ( + from .group_0945 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200 as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, ) - from .group_0947 import ( + from .group_0946 import ( EnterprisesEnterpriseMembersUsernameCopilotGetResponse200 as EnterprisesEnterpriseMembersUsernameCopilotGetResponse200, ) - from .group_0948 import ( + from .group_0947 import ( EnterprisesEnterpriseNetworkConfigurationsGetResponse200 as EnterprisesEnterpriseNetworkConfigurationsGetResponse200, ) - from .group_0949 import ( + from .group_0948 import ( EnterprisesEnterpriseNetworkConfigurationsPostBody as EnterprisesEnterpriseNetworkConfigurationsPostBody, ) - from .group_0950 import ( + from .group_0949 import ( EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody as EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody, ) - from .group_0951 import ( + from .group_0950 import ( EnterprisesEnterprisePropertiesSchemaPatchBody as EnterprisesEnterprisePropertiesSchemaPatchBody, ) - from .group_0952 import ( + from .group_0951 import ( EnterprisesEnterpriseRulesetsPostBody as EnterprisesEnterpriseRulesetsPostBody, ) - from .group_0953 import ( + from .group_0952 import ( EnterprisesEnterpriseRulesetsRulesetIdPutBody as EnterprisesEnterpriseRulesetsRulesetIdPutBody, ) - from .group_0954 import ( + from .group_0953 import ( EnterprisesEnterpriseSettingsBillingCostCentersPostBody as EnterprisesEnterpriseSettingsBillingCostCentersPostBody, ) - from .group_0955 import ( + from .group_0954 import ( EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200, ) - from .group_0955 import ( + from .group_0954 import ( EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems as EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems, ) - from .group_0956 import ( + from .group_0955 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody, ) - from .group_0957 import ( + from .group_0956 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody, ) - from .group_0958 import ( + from .group_0957 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200, ) - from .group_0959 import ( + from .group_0958 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody, ) - from .group_0960 import ( + from .group_0959 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200, ) - from .group_0961 import GistsPostBody as GistsPostBody - from .group_0961 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_0962 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0962 import ( + from .group_0960 import GistsPostBody as GistsPostBody + from .group_0960 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_0961 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0961 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0963 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0963 import ( + from .group_0962 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0962 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0964 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0965 import ( + from .group_0963 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0964 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0966 import ( + from .group_0965 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0967 import ( + from .group_0966 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0968 import MarkdownPostBody as MarkdownPostBody - from .group_0969 import NotificationsPutBody as NotificationsPutBody - from .group_0970 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0971 import ( + from .group_0967 import MarkdownPostBody as MarkdownPostBody + from .group_0968 import NotificationsPutBody as NotificationsPutBody + from .group_0969 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0970 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0972 import ( + from .group_0971 import ( OrganizationsOrganizationIdCustomRolesGetResponse200 as OrganizationsOrganizationIdCustomRolesGetResponse200, ) - from .group_0973 import ( + from .group_0972 import ( OrganizationsOrgDependabotRepositoryAccessPatchBody as OrganizationsOrgDependabotRepositoryAccessPatchBody, ) - from .group_0974 import ( + from .group_0973 import ( OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, ) - from .group_0975 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_0976 import ( + from .group_0974 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_0975 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0976 import ( + from .group_0975 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0977 import ( + from .group_0976 import ( OrgsOrgActionsHostedRunnersGetResponse200 as OrgsOrgActionsHostedRunnersGetResponse200, ) - from .group_0978 import ( + from .group_0977 import ( OrgsOrgActionsHostedRunnersPostBody as OrgsOrgActionsHostedRunnersPostBody, ) - from .group_0978 import ( + from .group_0977 import ( OrgsOrgActionsHostedRunnersPostBodyPropImage as OrgsOrgActionsHostedRunnersPostBodyPropImage, ) - from .group_0979 import ( + from .group_0978 import ( OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, ) - from .group_0980 import ( + from .group_0979 import ( OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, ) - from .group_0981 import ( + from .group_0980 import ( OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, ) - from .group_0982 import ( + from .group_0981 import ( OrgsOrgActionsHostedRunnersPlatformsGetResponse200 as OrgsOrgActionsHostedRunnersPlatformsGetResponse200, ) - from .group_0983 import ( + from .group_0982 import ( OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, ) - from .group_0984 import ( + from .group_0983 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0985 import ( + from .group_0984 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0986 import ( + from .group_0985 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0987 import ( + from .group_0986 import ( OrgsOrgActionsRunnerGroupsGetResponse200 as OrgsOrgActionsRunnerGroupsGetResponse200, ) - from .group_0987 import RunnerGroupsOrg as RunnerGroupsOrg - from .group_0988 import ( + from .group_0986 import RunnerGroupsOrg as RunnerGroupsOrg + from .group_0987 import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) - from .group_0989 import ( + from .group_0988 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0990 import ( + from .group_0989 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, ) - from .group_0991 import ( + from .group_0990 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, ) - from .group_0992 import ( + from .group_0991 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, ) - from .group_0993 import ( + from .group_0992 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0994 import ( + from .group_0993 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0995 import ( + from .group_0994 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0996 import ( + from .group_0995 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0997 import ( + from .group_0996 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0998 import ( + from .group_0997 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0999 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0999 import ( + from .group_0998 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0998 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_1000 import ( + from .group_0999 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_1001 import ( + from .group_1000 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1002 import ( + from .group_1001 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_1003 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_1003 import ( + from .group_1002 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_1002 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_1004 import ( + from .group_1003 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_1005 import ( + from .group_1004 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_1006 import ( + from .group_1005 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_1007 import ( + from .group_1006 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_1008 import ( + from .group_1007 import ( OrgsOrgAttestationsBulkListPostBody as OrgsOrgAttestationsBulkListPostBody, ) - from .group_1009 import ( + from .group_1008 import ( OrgsOrgAttestationsBulkListPostResponse200 as OrgsOrgAttestationsBulkListPostResponse200, ) - from .group_1009 import ( + from .group_1008 import ( OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests, ) - from .group_1009 import ( + from .group_1008 import ( OrgsOrgAttestationsBulkListPostResponse200PropPageInfo as OrgsOrgAttestationsBulkListPostResponse200PropPageInfo, ) - from .group_1010 import ( + from .group_1009 import ( OrgsOrgAttestationsDeleteRequestPostBodyOneof0 as OrgsOrgAttestationsDeleteRequestPostBodyOneof0, ) - from .group_1011 import ( + from .group_1010 import ( OrgsOrgAttestationsDeleteRequestPostBodyOneof1 as OrgsOrgAttestationsDeleteRequestPostBodyOneof1, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_1013 import OrgsOrgCampaignsPostBody as OrgsOrgCampaignsPostBody - from .group_1013 import ( + from .group_1012 import OrgsOrgCampaignsPostBody as OrgsOrgCampaignsPostBody + from .group_1012 import ( OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems as OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems, ) - from .group_1014 import ( + from .group_1013 import ( OrgsOrgCampaignsCampaignNumberPatchBody as OrgsOrgCampaignsCampaignNumberPatchBody, ) - from .group_1015 import ( + from .group_1014 import ( OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, ) - from .group_1015 import ( + from .group_1014 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_1015 import ( + from .group_1014 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_1015 import ( + from .group_1014 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_1016 import ( + from .group_1015 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, ) - from .group_1017 import ( + from .group_1016 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_1017 import ( + from .group_1016 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_1017 import ( + from .group_1016 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_1017 import ( + from .group_1016 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_1018 import ( + from .group_1017 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_1019 import ( + from .group_1018 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_1020 import ( + from .group_1019 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_1021 import ( + from .group_1020 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_1022 import ( + from .group_1021 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_1023 import ( + from .group_1022 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_1024 import ( + from .group_1023 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_1025 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_1025 import ( + from .group_1024 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_1024 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_1026 import ( + from .group_1025 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_1027 import ( + from .group_1026 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1028 import ( + from .group_1027 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1029 import ( + from .group_1028 import ( OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, ) - from .group_1030 import ( + from .group_1029 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_1031 import ( + from .group_1030 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_1032 import ( + from .group_1031 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_1033 import ( + from .group_1032 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_1034 import ( + from .group_1033 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_1035 import ( + from .group_1034 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_1036 import ( + from .group_1035 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_1037 import ( + from .group_1036 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_1038 import ( + from .group_1037 import ( OrgsOrgCustomRepositoryRolesGetResponse200 as OrgsOrgCustomRepositoryRolesGetResponse200, ) - from .group_1039 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_1039 import ( + from .group_1038 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_1038 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_1040 import ( + from .group_1039 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_1041 import ( + from .group_1040 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1042 import ( + from .group_1041 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_1043 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_1043 import ( + from .group_1042 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_1042 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_1044 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_1044 import ( + from .group_1043 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_1043 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_1045 import ( + from .group_1044 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_1046 import ( + from .group_1045 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_1047 import ( + from .group_1046 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_1048 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_1049 import ( + from .group_1047 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_1048 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_1050 import ( + from .group_1049 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_1051 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody - from .group_1052 import ( + from .group_1050 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_1051 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_1053 import ( + from .group_1052 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_1054 import ( + from .group_1053 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_1055 import ( + from .group_1054 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_1056 import ( + from .group_1055 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_1057 import ( + from .group_1056 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_1058 import ( + from .group_1057 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_1059 import ( + from .group_1058 import ( OrgPrivateRegistryConfiguration as OrgPrivateRegistryConfiguration, ) - from .group_1059 import ( + from .group_1058 import ( OrgsOrgPrivateRegistriesGetResponse200 as OrgsOrgPrivateRegistriesGetResponse200, ) - from .group_1060 import ( + from .group_1059 import ( OrgsOrgPrivateRegistriesPostBody as OrgsOrgPrivateRegistriesPostBody, ) - from .group_1061 import ( + from .group_1060 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200 as OrgsOrgPrivateRegistriesPublicKeyGetResponse200, ) - from .group_1062 import ( + from .group_1061 import ( OrgsOrgPrivateRegistriesSecretNamePatchBody as OrgsOrgPrivateRegistriesSecretNamePatchBody, ) - from .group_1063 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_1064 import ( + from .group_1062 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_1063 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_1065 import ( + from .group_1064 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_1066 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_1066 import ( + from .group_1065 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_1065 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_1067 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_1068 import ( + from .group_1066 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_1067 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_1069 import ( + from .group_1068 import ( OrgsOrgSettingsNetworkConfigurationsGetResponse200 as OrgsOrgSettingsNetworkConfigurationsGetResponse200, ) - from .group_1070 import ( + from .group_1069 import ( OrgsOrgSettingsNetworkConfigurationsPostBody as OrgsOrgSettingsNetworkConfigurationsPostBody, ) - from .group_1071 import ( + from .group_1070 import ( OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, ) - from .group_1072 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_1073 import ( + from .group_1071 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_1072 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_1074 import ( + from .group_1073 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_1075 import ( + from .group_1074 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_1076 import ( + from .group_1075 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1077 import ( + from .group_1076 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1078 import ( + from .group_1077 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1079 import ( + from .group_1078 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_1080 import ( + from .group_1079 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBody as OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, ) - from .group_1081 import ( + from .group_1080 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_1082 import ( + from .group_1081 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_1083 import ( + from .group_1082 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_1084 import ( + from .group_1083 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_1085 import ( + from .group_1084 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, ) - from .group_1085 import ( + from .group_1084 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_1086 import ( + from .group_1085 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_1087 import ( + from .group_1086 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_1088 import ( + from .group_1087 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_1089 import ( + from .group_1088 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_1090 import ( + from .group_1089 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_1091 import ( + from .group_1090 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_1091 import ( + from .group_1090 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_1092 import ( + from .group_1091 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_1092 import ( + from .group_1091 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_1093 import ( + from .group_1092 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_1094 import ( + from .group_1093 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_1095 import ( + from .group_1094 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_1096 import ( + from .group_1095 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_1096 import ( + from .group_1095 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_1097 import ( + from .group_1096 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_1098 import ( + from .group_1097 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_1099 import ( + from .group_1098 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_1100 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_1101 import ( + from .group_1099 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_1100 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_1102 import ( + from .group_1101 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_1103 import ( + from .group_1102 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_1104 import ( + from .group_1103 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_1105 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody - from .group_1105 import ( + from .group_1104 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks, ) - from .group_1106 import ( + from .group_1105 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_1107 import ( + from .group_1106 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_1108 import ( + from .group_1107 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_1109 import ( + from .group_1108 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_1110 import ( + from .group_1109 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_1111 import ( + from .group_1110 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_1112 import ( + from .group_1111 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_1113 import ( + from .group_1112 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_1114 import ( + from .group_1113 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_1115 import ( + from .group_1114 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_1116 import ( + from .group_1115 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_1117 import ( + from .group_1116 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_1118 import ( + from .group_1117 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_1119 import ( + from .group_1118 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_1120 import ( + from .group_1119 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_1121 import ( + from .group_1120 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_1122 import ( + from .group_1121 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_1123 import ( + from .group_1122 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_1124 import ( + from .group_1123 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_1125 import ( + from .group_1124 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_1126 import ( + from .group_1125 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_1127 import ( + from .group_1126 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_1128 import ( + from .group_1127 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_1128 import Workflow as Workflow - from .group_1129 import ( + from .group_1127 import Workflow as Workflow + from .group_1128 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_1129 import ( + from .group_1128 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_1130 import ( + from .group_1129 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, ) - from .group_1132 import ( + from .group_1131 import ( ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_1134 import ( + from .group_1133 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_1136 import ( + from .group_1135 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_1136 import ( + from .group_1135 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_1136 import ( + from .group_1135 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_1137 import ( + from .group_1136 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_1137 import ( + from .group_1136 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_1138 import ( + from .group_1137 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_1139 import ( + from .group_1138 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_1140 import ( + from .group_1139 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_1141 import ( + from .group_1140 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody, ) - from .group_1142 import ( + from .group_1141 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody, ) - from .group_1143 import ( + from .group_1142 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody, ) - from .group_1144 import ( + from .group_1143 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_1145 import ( + from .group_1144 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_1146 import ( + from .group_1145 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_1147 import ( + from .group_1146 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody, ) - from .group_1148 import ( + from .group_1147 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody, ) - from .group_1149 import ( + from .group_1148 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody, ) - from .group_1150 import ( + from .group_1149 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_1151 import ( + from .group_1150 import ( ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody as ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody, ) - from .group_1152 import ( + from .group_1151 import ( ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200 as ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_1154 import ( + from .group_1153 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_1155 import ( + from .group_1154 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_1157 import ( + from .group_1156 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_1158 import ( + from .group_1157 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_1159 import ( + from .group_1158 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_1160 import ( + from .group_1159 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_1160 import ( + from .group_1159 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_1161 import ( + from .group_1160 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) - from .group_1162 import ( + from .group_1161 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_1163 import ( + from .group_1162 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_1164 import ( + from .group_1163 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_1165 import ( + from .group_1164 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_1166 import ( + from .group_1165 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_1167 import ( + from .group_1166 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1168 import ( + from .group_1167 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_1169 import ( + from .group_1168 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_1169 import ( + from .group_1168 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_1170 import ( + from .group_1169 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_1171 import ( + from .group_1170 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1171 import ( + from .group_1170 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_1172 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1172 import ( + from .group_1171 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1171 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_1173 import ( + from .group_1172 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_1174 import ( + from .group_1173 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_1175 import ( + from .group_1174 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_1176 import ( + from .group_1175 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_1177 import ( + from .group_1176 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_1178 import ( + from .group_1177 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_1179 import ( + from .group_1178 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_1179 import ( + from .group_1178 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_1179 import ( + from .group_1178 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_1180 import ( + from .group_1179 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1180 import ( + from .group_1179 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_1180 import ( + from .group_1179 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_1181 import ( + from .group_1180 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_1182 import DependabotSecret as DependabotSecret - from .group_1182 import ( + from .group_1181 import DependabotSecret as DependabotSecret + from .group_1181 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_1183 import ( + from .group_1182 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_1184 import ( + from .group_1183 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_1185 import ( + from .group_1184 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_1185 import ( + from .group_1184 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1186 import ( + from .group_1185 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1187 import ( + from .group_1186 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1188 import ( + from .group_1187 import ( ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody as ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody, ) - from .group_1189 import ( + from .group_1188 import ( ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody as ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody, ) - from .group_1190 import ( + from .group_1189 import ( ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200 as ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200, ) - from .group_1191 import ( + from .group_1190 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1191 import ( + from .group_1190 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1192 import ( + from .group_1191 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1192 import ( + from .group_1191 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1193 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1193 import ( + from .group_1192 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1192 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_1194 import ( + from .group_1193 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_1195 import ( + from .group_1194 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_1196 import ( + from .group_1195 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) - from .group_1197 import ( + from .group_1196 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1198 import ( + from .group_1197 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) - from .group_1199 import ( + from .group_1198 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1200 import ( + from .group_1199 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_1201 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1202 import ( + from .group_1200 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_1201 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1203 import ( + from .group_1202 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1203 import ( + from .group_1202 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1203 import ( + from .group_1202 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1204 import ( + from .group_1203 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1205 import ( + from .group_1204 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1206 import ( + from .group_1205 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1206 import ( + from .group_1205 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1207 import ( + from .group_1206 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1207 import ( + from .group_1206 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1208 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1208 import ( + from .group_1207 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_1207 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1209 import ( + from .group_1208 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1210 import ( + from .group_1209 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1211 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1212 import ( + from .group_1210 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1211 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) - from .group_1213 import ( + from .group_1212 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1214 import ( + from .group_1213 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1215 import ( + from .group_1214 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1216 import ( + from .group_1215 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1217 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1217 import ( + from .group_1216 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1216 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1218 import ( + from .group_1217 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1219 import ( + from .group_1218 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1220 import ( + from .group_1219 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1220 import ( + from .group_1219 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1221 import ( + from .group_1220 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1222 import ( + from .group_1221 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1223 import ( + from .group_1222 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1224 import ( + from .group_1223 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1225 import ( + from .group_1224 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1225 import ( + from .group_1224 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_1226 import ( + from .group_1225 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1227 import ( + from .group_1226 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1228 import ( + from .group_1227 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1228 import ( + from .group_1227 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) - from .group_1229 import ( + from .group_1228 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_1230 import ( + from .group_1229 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1231 import ( + from .group_1230 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1232 import ( + from .group_1231 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody, ) - from .group_1233 import ( + from .group_1232 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody, ) - from .group_1234 import ( + from .group_1233 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody, ) - from .group_1235 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1236 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1237 import ( + from .group_1234 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1235 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1236 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1238 import ( + from .group_1237 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1239 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1240 import ( + from .group_1238 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1239 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1241 import ( + from .group_1240 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1242 import ( + from .group_1241 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) - from .group_1243 import ( + from .group_1242 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1244 import ( + from .group_1243 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1245 import ( + from .group_1244 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1246 import ( + from .group_1245 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1247 import ( + from .group_1246 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1248 import ( + from .group_1247 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1249 import ( + from .group_1248 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1250 import ( + from .group_1249 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1251 import ( + from .group_1250 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1252 import ( + from .group_1251 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1253 import ( + from .group_1252 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1254 import ( + from .group_1253 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1255 import ( + from .group_1254 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1256 import ( + from .group_1255 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_1257 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1258 import ( + from .group_1256 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1257 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1259 import ( + from .group_1258 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) - from .group_1260 import ( + from .group_1259 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1261 import ( + from .group_1260 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1262 import ( + from .group_1261 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_1263 import ( + from .group_1262 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1264 import ( + from .group_1263 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1265 import ( + from .group_1264 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1266 import ( + from .group_1265 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1267 import ( + from .group_1266 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1268 import ( + from .group_1267 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1269 import ( + from .group_1268 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1270 import ( + from .group_1269 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1270 import ( + from .group_1269 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1271 import ( + from .group_1270 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) - from .group_1272 import ( + from .group_1271 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_1273 import ( + from .group_1272 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) - from .group_1274 import ( + from .group_1273 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1275 import ( + from .group_1274 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1276 import ( + from .group_1275 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1277 import ( + from .group_1276 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_1278 import ( + from .group_1277 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1279 import ( + from .group_1278 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) - from .group_1280 import ( + from .group_1279 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_1281 import ( + from .group_1280 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1282 import ( + from .group_1281 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1283 import ( + from .group_1282 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1284 import ( + from .group_1283 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody, ) - from .group_1285 import ( + from .group_1284 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1286 import ( + from .group_1285 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) - from .group_1287 import ( + from .group_1286 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1288 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody - from .group_1289 import ( + from .group_1287 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_1288 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1290 import ( + from .group_1289 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_1291 import ( + from .group_1290 import ( ScimV2OrganizationsOrgUsersPostBody as ScimV2OrganizationsOrgUsersPostBody, ) - from .group_1291 import ( + from .group_1290 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems, ) - from .group_1291 import ( + from .group_1290 import ( ScimV2OrganizationsOrgUsersPostBodyPropName as ScimV2OrganizationsOrgUsersPostBodyPropName, ) - from .group_1292 import ( + from .group_1291 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBody as ScimV2OrganizationsOrgUsersScimUserIdPutBody, ) - from .group_1292 import ( + from .group_1291 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems, ) - from .group_1292 import ( + from .group_1291 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName, ) - from .group_1293 import ( + from .group_1292 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBody as ScimV2OrganizationsOrgUsersScimUserIdPatchBody, ) - from .group_1293 import ( + from .group_1292 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems, ) - from .group_1293 import ( + from .group_1292 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, ) - from .group_1293 import ( + from .group_1292 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items, ) - from .group_1294 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1295 import ( + from .group_1293 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1294 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) - from .group_1296 import ( + from .group_1295 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) - from .group_1297 import ( + from .group_1296 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1298 import ( + from .group_1297 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1299 import ( + from .group_1298 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1300 import ( + from .group_1299 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_1301 import ( + from .group_1300 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) - from .group_1302 import ( + from .group_1301 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1303 import ( + from .group_1302 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1304 import ( + from .group_1303 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) - from .group_1305 import ( + from .group_1304 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBody as TeamsTeamIdTeamSyncGroupMappingsPatchBody, ) - from .group_1305 import ( + from .group_1304 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_1306 import UserPatchBody as UserPatchBody - from .group_1307 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1308 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1309 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1309 import ( + from .group_1305 import UserPatchBody as UserPatchBody + from .group_1306 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1307 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1308 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1308 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) - from .group_1310 import CodespacesSecret as CodespacesSecret - from .group_1310 import ( + from .group_1309 import CodespacesSecret as CodespacesSecret + from .group_1309 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) - from .group_1311 import ( + from .group_1310 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) - from .group_1312 import ( + from .group_1311 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1313 import ( + from .group_1312 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1314 import ( + from .group_1313 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) - from .group_1315 import ( + from .group_1314 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) - from .group_1316 import ( + from .group_1315 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) - from .group_1317 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1318 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 - from .group_1319 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1320 import UserGpgKeysPostBody as UserGpgKeysPostBody - from .group_1321 import ( + from .group_1316 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1317 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_1318 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1319 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_1320 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1322 import ( + from .group_1321 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_1323 import ( + from .group_1322 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) - from .group_1324 import UserKeysPostBody as UserKeysPostBody - from .group_1325 import ( + from .group_1323 import UserKeysPostBody as UserKeysPostBody + from .group_1324 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) - from .group_1326 import UserMigrationsPostBody as UserMigrationsPostBody - from .group_1327 import UserProjectsPostBody as UserProjectsPostBody - from .group_1328 import UserReposPostBody as UserReposPostBody - from .group_1329 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1330 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody - from .group_1331 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody - from .group_1332 import ( + from .group_1325 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_1326 import UserProjectsPostBody as UserProjectsPostBody + from .group_1327 import UserReposPostBody as UserReposPostBody + from .group_1328 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1329 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_1330 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_1331 import ( UsersUsernameAttestationsBulkListPostBody as UsersUsernameAttestationsBulkListPostBody, ) - from .group_1333 import ( + from .group_1332 import ( UsersUsernameAttestationsBulkListPostResponse200 as UsersUsernameAttestationsBulkListPostResponse200, ) - from .group_1333 import ( + from .group_1332 import ( UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests as UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests, ) - from .group_1333 import ( + from .group_1332 import ( UsersUsernameAttestationsBulkListPostResponse200PropPageInfo as UsersUsernameAttestationsBulkListPostResponse200PropPageInfo, ) - from .group_1334 import ( + from .group_1333 import ( UsersUsernameAttestationsDeleteRequestPostBodyOneof0 as UsersUsernameAttestationsDeleteRequestPostBodyOneof0, ) - from .group_1335 import ( + from .group_1334 import ( UsersUsernameAttestationsDeleteRequestPostBodyOneof1 as UsersUsernameAttestationsDeleteRequestPostBodyOneof1, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) else: @@ -9335,24 +9282,25 @@ "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0064": ("CodeScanningDefaultSetupOptions",), - ".group_0065": ("CodeSecurityDefaultConfigurationsItems",), - ".group_0066": ("CodeSecurityConfigurationRepositories",), - ".group_0067": ("EnterpriseSecurityAnalysisSettings",), - ".group_0068": ( + ".group_0064": ("CodeScanningOptions",), + ".group_0065": ("CodeScanningDefaultSetupOptions",), + ".group_0066": ("CodeSecurityDefaultConfigurationsItems",), + ".group_0067": ("CodeSecurityConfigurationRepositories",), + ".group_0068": ("EnterpriseSecurityAnalysisSettings",), + ".group_0069": ( "GetConsumedLicenses", "GetConsumedLicensesPropUsersItems", ), - ".group_0069": ("TeamSimple",), - ".group_0070": ( + ".group_0070": ("TeamSimple",), + ".group_0071": ( "Team", "TeamPropPermissions", ), - ".group_0071": ( + ".group_0072": ( "CopilotSeatDetails", "EnterpriseTeam", ), - ".group_0072": ( + ".group_0073": ( "CopilotUsageMetricsDay", "CopilotDotcomChat", "CopilotDotcomChatPropModelsItems", @@ -9368,125 +9316,125 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", ), - ".group_0073": ("DependabotAlertPackage",), - ".group_0074": ( + ".group_0074": ("DependabotAlertPackage",), + ".group_0075": ( "DependabotAlertSecurityVulnerability", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", ), - ".group_0075": ( + ".group_0076": ( "DependabotAlertSecurityAdvisory", "DependabotAlertSecurityAdvisoryPropCvss", "DependabotAlertSecurityAdvisoryPropCwesItems", "DependabotAlertSecurityAdvisoryPropIdentifiersItems", "DependabotAlertSecurityAdvisoryPropReferencesItems", ), - ".group_0076": ("DependabotAlertWithRepository",), - ".group_0077": ("DependabotAlertWithRepositoryPropDependency",), - ".group_0078": ( + ".group_0077": ("DependabotAlertWithRepository",), + ".group_0078": ("DependabotAlertWithRepositoryPropDependency",), + ".group_0079": ( "GetLicenseSyncStatus", "GetLicenseSyncStatusPropServerInstancesItems", "GetLicenseSyncStatusPropServerInstancesItemsPropLastSync", ), - ".group_0079": ("NetworkConfiguration",), - ".group_0080": ("NetworkSettings",), - ".group_0081": ("CustomProperty",), - ".group_0082": ("CustomPropertySetPayload",), - ".group_0083": ("RepositoryRulesetBypassActor",), - ".group_0084": ("EnterpriseRulesetConditionsOrganizationNameTarget",), - ".group_0085": ( + ".group_0080": ("NetworkConfiguration",), + ".group_0081": ("NetworkSettings",), + ".group_0082": ("CustomProperty",), + ".group_0083": ("CustomPropertySetPayload",), + ".group_0084": ("RepositoryRulesetBypassActor",), + ".group_0085": ("EnterpriseRulesetConditionsOrganizationNameTarget",), + ".group_0086": ( "EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName", ), - ".group_0086": ("RepositoryRulesetConditionsRepositoryNameTarget",), - ".group_0087": ( + ".group_0087": ("RepositoryRulesetConditionsRepositoryNameTarget",), + ".group_0088": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName", ), - ".group_0088": ("RepositoryRulesetConditions",), - ".group_0089": ("RepositoryRulesetConditionsPropRefName",), - ".group_0090": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), - ".group_0091": ( + ".group_0089": ("RepositoryRulesetConditions",), + ".group_0090": ("RepositoryRulesetConditionsPropRefName",), + ".group_0091": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), + ".group_0092": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", "RepositoryRulesetConditionsRepositoryPropertySpec", ), - ".group_0092": ("EnterpriseRulesetConditionsOrganizationIdTarget",), - ".group_0093": ( + ".group_0093": ("EnterpriseRulesetConditionsOrganizationIdTarget",), + ".group_0094": ( "EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId", ), - ".group_0094": ("EnterpriseRulesetConditionsOneof0",), - ".group_0095": ("EnterpriseRulesetConditionsOneof1",), - ".group_0096": ("EnterpriseRulesetConditionsOneof2",), - ".group_0097": ("EnterpriseRulesetConditionsOneof3",), - ".group_0098": ( + ".group_0095": ("EnterpriseRulesetConditionsOneof0",), + ".group_0096": ("EnterpriseRulesetConditionsOneof1",), + ".group_0097": ("EnterpriseRulesetConditionsOneof2",), + ".group_0098": ("EnterpriseRulesetConditionsOneof3",), + ".group_0099": ( "RepositoryRuleCreation", "RepositoryRuleDeletion", "RepositoryRuleRequiredSignatures", "RepositoryRuleNonFastForward", ), - ".group_0099": ("RepositoryRuleUpdate",), - ".group_0100": ("RepositoryRuleUpdatePropParameters",), - ".group_0101": ("RepositoryRuleRequiredLinearHistory",), - ".group_0102": ("RepositoryRuleMergeQueue",), - ".group_0103": ("RepositoryRuleMergeQueuePropParameters",), - ".group_0104": ("RepositoryRuleRequiredDeployments",), - ".group_0105": ("RepositoryRuleRequiredDeploymentsPropParameters",), - ".group_0106": ( + ".group_0100": ("RepositoryRuleUpdate",), + ".group_0101": ("RepositoryRuleUpdatePropParameters",), + ".group_0102": ("RepositoryRuleRequiredLinearHistory",), + ".group_0103": ("RepositoryRuleRequiredDeployments",), + ".group_0104": ("RepositoryRuleRequiredDeploymentsPropParameters",), + ".group_0105": ( "RepositoryRuleParamsRequiredReviewerConfiguration", "RepositoryRuleParamsReviewer", ), - ".group_0107": ("RepositoryRulePullRequest",), - ".group_0108": ("RepositoryRulePullRequestPropParameters",), - ".group_0109": ("RepositoryRuleRequiredStatusChecks",), - ".group_0110": ( + ".group_0106": ("RepositoryRulePullRequest",), + ".group_0107": ("RepositoryRulePullRequestPropParameters",), + ".group_0108": ("RepositoryRuleRequiredStatusChecks",), + ".group_0109": ( "RepositoryRuleRequiredStatusChecksPropParameters", "RepositoryRuleParamsStatusCheckConfiguration", ), - ".group_0111": ("RepositoryRuleCommitMessagePattern",), - ".group_0112": ("RepositoryRuleCommitMessagePatternPropParameters",), - ".group_0113": ("RepositoryRuleCommitAuthorEmailPattern",), - ".group_0114": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), - ".group_0115": ("RepositoryRuleCommitterEmailPattern",), - ".group_0116": ("RepositoryRuleCommitterEmailPatternPropParameters",), - ".group_0117": ("RepositoryRuleBranchNamePattern",), - ".group_0118": ("RepositoryRuleBranchNamePatternPropParameters",), - ".group_0119": ("RepositoryRuleTagNamePattern",), - ".group_0120": ("RepositoryRuleTagNamePatternPropParameters",), - ".group_0121": ("RepositoryRuleFilePathRestriction",), - ".group_0122": ("RepositoryRuleFilePathRestrictionPropParameters",), - ".group_0123": ("RepositoryRuleMaxFilePathLength",), - ".group_0124": ("RepositoryRuleMaxFilePathLengthPropParameters",), - ".group_0125": ("RepositoryRuleFileExtensionRestriction",), - ".group_0126": ("RepositoryRuleFileExtensionRestrictionPropParameters",), - ".group_0127": ("RepositoryRuleMaxFileSize",), - ".group_0128": ("RepositoryRuleMaxFileSizePropParameters",), - ".group_0129": ("RepositoryRuleParamsRestrictedCommits",), - ".group_0130": ("RepositoryRuleWorkflows",), - ".group_0131": ( + ".group_0110": ("RepositoryRuleCommitMessagePattern",), + ".group_0111": ("RepositoryRuleCommitMessagePatternPropParameters",), + ".group_0112": ("RepositoryRuleCommitAuthorEmailPattern",), + ".group_0113": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), + ".group_0114": ("RepositoryRuleCommitterEmailPattern",), + ".group_0115": ("RepositoryRuleCommitterEmailPatternPropParameters",), + ".group_0116": ("RepositoryRuleBranchNamePattern",), + ".group_0117": ("RepositoryRuleBranchNamePatternPropParameters",), + ".group_0118": ("RepositoryRuleTagNamePattern",), + ".group_0119": ("RepositoryRuleTagNamePatternPropParameters",), + ".group_0120": ("RepositoryRuleFilePathRestriction",), + ".group_0121": ("RepositoryRuleFilePathRestrictionPropParameters",), + ".group_0122": ("RepositoryRuleMaxFilePathLength",), + ".group_0123": ("RepositoryRuleMaxFilePathLengthPropParameters",), + ".group_0124": ("RepositoryRuleFileExtensionRestriction",), + ".group_0125": ("RepositoryRuleFileExtensionRestrictionPropParameters",), + ".group_0126": ("RepositoryRuleMaxFileSize",), + ".group_0127": ("RepositoryRuleMaxFileSizePropParameters",), + ".group_0128": ("RepositoryRuleParamsRestrictedCommits",), + ".group_0129": ("RepositoryRuleWorkflows",), + ".group_0130": ( "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", ), - ".group_0132": ("RepositoryRuleCodeScanning",), - ".group_0133": ( + ".group_0131": ("RepositoryRuleCodeScanning",), + ".group_0132": ( "RepositoryRuleCodeScanningPropParameters", "RepositoryRuleParamsCodeScanningTool", ), - ".group_0134": ("RepositoryRulesetConditionsRepositoryIdTarget",), - ".group_0135": ( + ".group_0133": ("RepositoryRulesetConditionsRepositoryIdTarget",), + ".group_0134": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId", ), - ".group_0136": ("OrgRulesetConditionsOneof0",), - ".group_0137": ("OrgRulesetConditionsOneof1",), - ".group_0138": ("OrgRulesetConditionsOneof2",), - ".group_0139": ( + ".group_0135": ("OrgRulesetConditionsOneof0",), + ".group_0136": ("OrgRulesetConditionsOneof1",), + ".group_0137": ("OrgRulesetConditionsOneof2",), + ".group_0138": ("RepositoryRuleMergeQueue",), + ".group_0139": ("RepositoryRuleMergeQueuePropParameters",), + ".group_0140": ( "RepositoryRuleset", "RepositoryRulesetPropLinks", "RepositoryRulesetPropLinksPropSelf", "RepositoryRulesetPropLinksPropHtml", ), - ".group_0140": ("RulesetVersion",), - ".group_0141": ("RulesetVersionPropActor",), - ".group_0142": ("RulesetVersionWithState",), - ".group_0143": ("RulesetVersionWithStateAllof1",), - ".group_0144": ("RulesetVersionWithStateAllof1PropState",), - ".group_0145": ( + ".group_0141": ("RulesetVersion",), + ".group_0142": ("RulesetVersionPropActor",), + ".group_0143": ("RulesetVersionWithState",), + ".group_0144": ("RulesetVersionWithStateAllof1",), + ".group_0145": ("RulesetVersionWithStateAllof1PropState",), + ".group_0146": ( "SecretScanningLocationCommit", "SecretScanningLocationWikiCommit", "SecretScanningLocationIssueBody", @@ -9495,102 +9443,102 @@ "SecretScanningLocationPullRequestBody", "SecretScanningLocationPullRequestReview", ), - ".group_0146": ( + ".group_0147": ( "SecretScanningLocationIssueTitle", "SecretScanningLocationIssueComment", "SecretScanningLocationPullRequestTitle", "SecretScanningLocationPullRequestReviewComment", ), - ".group_0147": ( + ".group_0148": ( "SecretScanningLocationDiscussionBody", "SecretScanningLocationPullRequestComment", ), - ".group_0148": ("OrganizationSecretScanningAlert",), - ".group_0149": ( + ".group_0149": ("OrganizationSecretScanningAlert",), + ".group_0150": ( "ActionsBillingUsage", "ActionsBillingUsagePropMinutesUsedBreakdown", ), - ".group_0150": ( + ".group_0151": ( "AdvancedSecurityActiveCommitters", "AdvancedSecurityActiveCommittersRepository", "AdvancedSecurityActiveCommittersUser", ), - ".group_0151": ( + ".group_0152": ( "GetAllCostCenters", "GetAllCostCentersPropCostCentersItems", "GetAllCostCentersPropCostCentersItemsPropResourcesItems", ), - ".group_0152": ( + ".group_0153": ( "GetCostCenter", "GetCostCenterPropResourcesItems", ), - ".group_0153": ("DeleteCostCenter",), - ".group_0154": ("PackagesBillingUsage",), - ".group_0155": ("CombinedBillingUsage",), - ".group_0156": ( + ".group_0154": ("DeleteCostCenter",), + ".group_0155": ("PackagesBillingUsage",), + ".group_0156": ("CombinedBillingUsage",), + ".group_0157": ( "BillingUsageReport", "BillingUsageReportPropUsageItemsItems", ), - ".group_0157": ("Milestone",), - ".group_0158": ("IssueType",), - ".group_0159": ("ReactionRollup",), - ".group_0160": ( + ".group_0158": ("Milestone",), + ".group_0159": ("IssueType",), + ".group_0160": ("ReactionRollup",), + ".group_0161": ("SubIssuesSummary",), + ".group_0162": ( "Issue", - "SubIssuesSummary", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", ), - ".group_0161": ("IssueComment",), - ".group_0162": ( + ".group_0163": ("IssueComment",), + ".group_0164": ( "EventPropPayload", "EventPropPayloadPropPagesItems", "Event", "Actor", "EventPropRepo", ), - ".group_0163": ( + ".group_0165": ( "Feed", "FeedPropLinks", "LinkWithType", ), - ".group_0164": ( + ".group_0166": ( "BaseGist", "BaseGistPropFiles", ), - ".group_0165": ( + ".group_0167": ( "GistHistory", "GistHistoryPropChangeStatus", "GistSimplePropForkOf", "GistSimplePropForkOfPropFiles", ), - ".group_0166": ( + ".group_0168": ( "GistSimple", "GistSimplePropFiles", "GistSimplePropForksItems", "PublicUser", "PublicUserPropPlan", ), - ".group_0167": ("GistComment",), - ".group_0168": ( + ".group_0169": ("GistComment",), + ".group_0170": ( "GistCommit", "GistCommitPropChangeStatus", ), - ".group_0169": ("GitignoreTemplate",), - ".group_0170": ("License",), - ".group_0171": ("MarketplaceListingPlan",), - ".group_0172": ("MarketplacePurchase",), - ".group_0173": ( + ".group_0171": ("GitignoreTemplate",), + ".group_0172": ("License",), + ".group_0173": ("MarketplaceListingPlan",), + ".group_0174": ("MarketplacePurchase",), + ".group_0175": ( "MarketplacePurchasePropMarketplacePendingChange", "MarketplacePurchasePropMarketplacePurchase", ), - ".group_0174": ( + ".group_0176": ( "ApiOverview", "ApiOverviewPropSshKeyFingerprints", "ApiOverviewPropDomains", "ApiOverviewPropDomainsPropActionsInbound", "ApiOverviewPropDomainsPropArtifactAttestations", ), - ".group_0175": ( + ".group_0177": ( "SecurityAndAnalysis", "SecurityAndAnalysisPropAdvancedSecurity", "SecurityAndAnalysisPropCodeSecurity", @@ -9601,54 +9549,54 @@ "SecurityAndAnalysisPropSecretScanningAiDetection", "SecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_0176": ( + ".group_0178": ( "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", "MinimalRepositoryPropCustomProperties", ), - ".group_0177": ( + ".group_0179": ( "Thread", "ThreadPropSubject", ), - ".group_0178": ("ThreadSubscription",), - ".group_0179": ("OrganizationCustomRepositoryRole",), - ".group_0180": ("DependabotRepositoryAccessDetails",), - ".group_0181": ( + ".group_0180": ("ThreadSubscription",), + ".group_0181": ("OrganizationCustomRepositoryRole",), + ".group_0182": ("DependabotRepositoryAccessDetails",), + ".group_0183": ( "OrganizationFull", "OrganizationFullPropPlan", ), - ".group_0182": ("OidcCustomSub",), - ".group_0183": ("ActionsOrganizationPermissions",), - ".group_0184": ("ActionsPublicKey",), - ".group_0185": ( + ".group_0184": ("OidcCustomSub",), + ".group_0185": ("ActionsOrganizationPermissions",), + ".group_0186": ("ActionsPublicKey",), + ".group_0187": ( "SecretScanningBypassRequest", "SecretScanningBypassRequestPropRepository", "SecretScanningBypassRequestPropOrganization", "SecretScanningBypassRequestPropRequester", "SecretScanningBypassRequestPropDataItems", ), - ".group_0186": ( + ".group_0188": ( "CampaignSummary", "CampaignSummaryPropAlertStats", ), - ".group_0187": ("CodespaceMachine",), - ".group_0188": ( + ".group_0189": ("CodespaceMachine",), + ".group_0190": ( "Codespace", "CodespacePropGitStatus", "CodespacePropRuntimeConstraints", ), - ".group_0189": ("CodespacesPublicKey",), - ".group_0190": ( + ".group_0191": ("CodespacesPublicKey",), + ".group_0192": ( "CopilotOrganizationDetails", "CopilotOrganizationSeatBreakdown", ), - ".group_0191": ("CredentialAuthorization",), - ".group_0192": ("OrganizationCustomRepositoryRoleCreateSchema",), - ".group_0193": ("OrganizationCustomRepositoryRoleUpdateSchema",), - ".group_0194": ("DependabotPublicKey",), - ".group_0195": ( + ".group_0193": ("CredentialAuthorization",), + ".group_0194": ("OrganizationCustomRepositoryRoleCreateSchema",), + ".group_0195": ("OrganizationCustomRepositoryRoleUpdateSchema",), + ".group_0196": ("DependabotPublicKey",), + ".group_0197": ( "CodeScanningAlertDismissalRequest", "CodeScanningAlertDismissalRequestPropRepository", "CodeScanningAlertDismissalRequestPropOrganization", @@ -9657,93 +9605,93 @@ "DismissalRequestResponse", "DismissalRequestResponsePropReviewer", ), - ".group_0196": ( + ".group_0198": ( "SecretScanningDismissalRequest", "SecretScanningDismissalRequestPropRepository", "SecretScanningDismissalRequestPropOrganization", "SecretScanningDismissalRequestPropRequester", "SecretScanningDismissalRequestPropDataItems", ), - ".group_0197": ("Package",), - ".group_0198": ( + ".group_0199": ("Package",), + ".group_0200": ( "ExternalGroup", "ExternalGroupPropTeamsItems", "ExternalGroupPropMembersItems", ), - ".group_0199": ( + ".group_0201": ( "ExternalGroups", "ExternalGroupsPropGroupsItems", ), - ".group_0200": ("OrganizationInvitation",), - ".group_0201": ("RepositoryFineGrainedPermission",), - ".group_0202": ( + ".group_0202": ("OrganizationInvitation",), + ".group_0203": ("RepositoryFineGrainedPermission",), + ".group_0204": ( "OrgHook", "OrgHookPropConfig", ), - ".group_0203": ("ApiInsightsRouteStatsItems",), - ".group_0204": ("ApiInsightsSubjectStatsItems",), - ".group_0205": ("ApiInsightsSummaryStats",), - ".group_0206": ("ApiInsightsTimeStatsItems",), - ".group_0207": ("ApiInsightsUserStatsItems",), - ".group_0208": ("InteractionLimitResponse",), - ".group_0209": ("InteractionLimit",), - ".group_0210": ("OrganizationCreateIssueType",), - ".group_0211": ("OrganizationUpdateIssueType",), - ".group_0212": ( + ".group_0205": ("ApiInsightsRouteStatsItems",), + ".group_0206": ("ApiInsightsSubjectStatsItems",), + ".group_0207": ("ApiInsightsSummaryStats",), + ".group_0208": ("ApiInsightsTimeStatsItems",), + ".group_0209": ("ApiInsightsUserStatsItems",), + ".group_0210": ("InteractionLimitResponse",), + ".group_0211": ("InteractionLimit",), + ".group_0212": ("OrganizationCreateIssueType",), + ".group_0213": ("OrganizationUpdateIssueType",), + ".group_0214": ( "OrgMembership", "OrgMembershipPropPermissions", ), - ".group_0213": ("Migration",), - ".group_0214": ("OrganizationFineGrainedPermission",), - ".group_0215": ( + ".group_0215": ("Migration",), + ".group_0216": ("OrganizationFineGrainedPermission",), + ".group_0217": ( "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", ), - ".group_0216": ("OrganizationCustomOrganizationRoleCreateSchema",), - ".group_0217": ("OrganizationCustomOrganizationRoleUpdateSchema",), - ".group_0218": ( + ".group_0218": ("OrganizationCustomOrganizationRoleCreateSchema",), + ".group_0219": ("OrganizationCustomOrganizationRoleUpdateSchema",), + ".group_0220": ( "TeamRoleAssignment", "TeamRoleAssignmentPropPermissions", ), - ".group_0219": ("UserRoleAssignment",), - ".group_0220": ( + ".group_0221": ("UserRoleAssignment",), + ".group_0222": ( "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", "PackageVersionPropMetadataPropDocker", ), - ".group_0221": ( + ".group_0223": ( "OrganizationProgrammaticAccessGrantRequest", "OrganizationProgrammaticAccessGrantRequestPropPermissions", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", ), - ".group_0222": ( + ".group_0224": ( "OrganizationProgrammaticAccessGrant", "OrganizationProgrammaticAccessGrantPropPermissions", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", ), - ".group_0223": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), - ".group_0224": ("Project",), - ".group_0225": ("CustomPropertyValue",), - ".group_0226": ("OrgRepoCustomPropertyValues",), - ".group_0227": ("CodeOfConductSimple",), - ".group_0228": ( + ".group_0225": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), + ".group_0226": ("Project",), + ".group_0227": ("CustomPropertyValue",), + ".group_0228": ("OrgRepoCustomPropertyValues",), + ".group_0229": ("CodeOfConductSimple",), + ".group_0230": ( "FullRepository", "FullRepositoryPropPermissions", "FullRepositoryPropCustomProperties", ), - ".group_0229": ("RuleSuitesItems",), - ".group_0230": ( + ".group_0231": ("RuleSuitesItems",), + ".group_0232": ( "RuleSuite", "RuleSuitePropRuleEvaluationsItems", "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ), - ".group_0231": ("RepositoryAdvisoryCredit",), - ".group_0232": ( + ".group_0233": ("RepositoryAdvisoryCredit",), + ".group_0234": ( "RepositoryAdvisory", "RepositoryAdvisoryPropIdentifiersItems", "RepositoryAdvisoryPropSubmission", @@ -9753,82 +9701,82 @@ "RepositoryAdvisoryVulnerability", "RepositoryAdvisoryVulnerabilityPropPackage", ), - ".group_0233": ( + ".group_0235": ( "GroupMapping", "GroupMappingPropGroupsItems", ), - ".group_0234": ( + ".group_0236": ( "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", ), - ".group_0235": ("TeamDiscussion",), - ".group_0236": ("TeamDiscussionComment",), - ".group_0237": ("Reaction",), - ".group_0238": ("TeamMembership",), - ".group_0239": ( + ".group_0237": ("TeamDiscussion",), + ".group_0238": ("TeamDiscussionComment",), + ".group_0239": ("Reaction",), + ".group_0240": ("TeamMembership",), + ".group_0241": ( "TeamProject", "TeamProjectPropPermissions", ), - ".group_0240": ( + ".group_0242": ( "TeamRepository", "TeamRepositoryPropPermissions", ), - ".group_0241": ("ProjectCard",), - ".group_0242": ("ProjectColumn",), - ".group_0243": ("ProjectCollaboratorPermission",), - ".group_0244": ("RateLimit",), - ".group_0245": ("RateLimitOverview",), - ".group_0246": ("RateLimitOverviewPropResources",), - ".group_0247": ( + ".group_0243": ("ProjectCard",), + ".group_0244": ("ProjectColumn",), + ".group_0245": ("ProjectCollaboratorPermission",), + ".group_0246": ("RateLimit",), + ".group_0247": ("RateLimitOverview",), + ".group_0248": ("RateLimitOverviewPropResources",), + ".group_0249": ( "Artifact", "ArtifactPropWorkflowRun", ), - ".group_0248": ( + ".group_0250": ( "ActionsCacheList", "ActionsCacheListPropActionsCachesItems", ), - ".group_0249": ( + ".group_0251": ( "Job", "JobPropStepsItems", ), - ".group_0250": ("OidcCustomSubRepo",), - ".group_0251": ("ActionsSecret",), - ".group_0252": ("ActionsVariable",), - ".group_0253": ("ActionsRepositoryPermissions",), - ".group_0254": ("ActionsWorkflowAccessToRepository",), - ".group_0255": ( + ".group_0252": ("OidcCustomSubRepo",), + ".group_0253": ("ActionsSecret",), + ".group_0254": ("ActionsVariable",), + ".group_0255": ("ActionsRepositoryPermissions",), + ".group_0256": ("ActionsWorkflowAccessToRepository",), + ".group_0257": ( "PullRequestMinimal", "PullRequestMinimalPropHead", "PullRequestMinimalPropHeadPropRepo", "PullRequestMinimalPropBase", "PullRequestMinimalPropBasePropRepo", ), - ".group_0256": ( + ".group_0258": ( "SimpleCommit", "SimpleCommitPropAuthor", "SimpleCommitPropCommitter", ), - ".group_0257": ( + ".group_0259": ( "WorkflowRun", "ReferencedWorkflow", ), - ".group_0258": ( + ".group_0260": ( "EnvironmentApprovals", "EnvironmentApprovalsPropEnvironmentsItems", ), - ".group_0259": ("ReviewCustomGatesCommentRequired",), - ".group_0260": ("ReviewCustomGatesStateRequired",), - ".group_0261": ( + ".group_0261": ("ReviewCustomGatesCommentRequired",), + ".group_0262": ("ReviewCustomGatesStateRequired",), + ".group_0263": ( "PendingDeploymentPropReviewersItems", "PendingDeployment", "PendingDeploymentPropEnvironment", ), - ".group_0262": ( + ".group_0264": ( "Deployment", "DeploymentPropPayloadOneof0", ), - ".group_0263": ( + ".group_0265": ( "WorkflowRunUsage", "WorkflowRunUsagePropBillable", "WorkflowRunUsagePropBillablePropUbuntu", @@ -9838,22 +9786,22 @@ "WorkflowRunUsagePropBillablePropWindows", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ), - ".group_0264": ( + ".group_0266": ( "WorkflowUsage", "WorkflowUsagePropBillable", "WorkflowUsagePropBillablePropUbuntu", "WorkflowUsagePropBillablePropMacos", "WorkflowUsagePropBillablePropWindows", ), - ".group_0265": ("Activity",), - ".group_0266": ("Autolink",), - ".group_0267": ("CheckAutomatedSecurityFixes",), - ".group_0268": ("ProtectedBranchPullRequestReview",), - ".group_0269": ( + ".group_0267": ("Activity",), + ".group_0268": ("Autolink",), + ".group_0269": ("CheckAutomatedSecurityFixes",), + ".group_0270": ("ProtectedBranchPullRequestReview",), + ".group_0271": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictions", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", ), - ".group_0270": ( + ".group_0272": ( "BranchRestrictionPolicy", "BranchRestrictionPolicyPropUsersItems", "BranchRestrictionPolicyPropTeamsItems", @@ -9861,7 +9809,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwner", "BranchRestrictionPolicyPropAppsItemsPropPermissions", ), - ".group_0271": ( + ".group_0273": ( "BranchProtection", "ProtectedBranchAdminEnforced", "BranchProtectionPropRequiredLinearHistory", @@ -9875,28 +9823,28 @@ "ProtectedBranchRequiredStatusCheck", "ProtectedBranchRequiredStatusCheckPropChecksItems", ), - ".group_0272": ( + ".group_0274": ( "ShortBranch", "ShortBranchPropCommit", ), - ".group_0273": ("GitUser",), - ".group_0274": ("Verification",), - ".group_0275": ("DiffEntry",), - ".group_0276": ( + ".group_0275": ("GitUser",), + ".group_0276": ("Verification",), + ".group_0277": ("DiffEntry",), + ".group_0278": ( "Commit", "EmptyObject", "CommitPropParentsItems", "CommitPropStats", ), - ".group_0277": ( + ".group_0279": ( "CommitPropCommit", "CommitPropCommitPropTree", ), - ".group_0278": ( + ".group_0280": ( "BranchWithProtection", "BranchWithProtectionPropLinks", ), - ".group_0279": ( + ".group_0281": ( "ProtectedBranch", "ProtectedBranchPropRequiredSignatures", "ProtectedBranchPropEnforceAdmins", @@ -9910,117 +9858,117 @@ "StatusCheckPolicy", "StatusCheckPolicyPropChecksItems", ), - ".group_0280": ("ProtectedBranchPropRequiredPullRequestReviews",), - ".group_0281": ( + ".group_0282": ("ProtectedBranchPropRequiredPullRequestReviews",), + ".group_0283": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ), - ".group_0282": ("DeploymentSimple",), - ".group_0283": ( + ".group_0284": ("DeploymentSimple",), + ".group_0285": ( "CheckRun", "CheckRunPropOutput", "CheckRunPropCheckSuite", ), - ".group_0284": ("CheckAnnotation",), - ".group_0285": ( + ".group_0286": ("CheckAnnotation",), + ".group_0287": ( "CheckSuite", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", ), - ".group_0286": ( + ".group_0288": ( "CheckSuitePreference", "CheckSuitePreferencePropPreferences", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ), - ".group_0287": ("CodeScanningAlertItems",), - ".group_0288": ( + ".group_0289": ("CodeScanningAlertItems",), + ".group_0290": ( "CodeScanningAlert", "CodeScanningAlertRule", ), - ".group_0289": ("CodeScanningAutofix",), - ".group_0290": ("CodeScanningAutofixCommits",), - ".group_0291": ("CodeScanningAutofixCommitsResponse",), - ".group_0292": ("CodeScanningAnalysis",), - ".group_0293": ("CodeScanningAnalysisDeletion",), - ".group_0294": ("CodeScanningCodeqlDatabase",), - ".group_0295": ("CodeScanningVariantAnalysisRepository",), - ".group_0296": ("CodeScanningVariantAnalysisSkippedRepoGroup",), - ".group_0297": ("CodeScanningVariantAnalysis",), - ".group_0298": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), - ".group_0299": ( + ".group_0291": ("CodeScanningAutofix",), + ".group_0292": ("CodeScanningAutofixCommits",), + ".group_0293": ("CodeScanningAutofixCommitsResponse",), + ".group_0294": ("CodeScanningAnalysis",), + ".group_0295": ("CodeScanningAnalysisDeletion",), + ".group_0296": ("CodeScanningCodeqlDatabase",), + ".group_0297": ("CodeScanningVariantAnalysisRepository",), + ".group_0298": ("CodeScanningVariantAnalysisSkippedRepoGroup",), + ".group_0299": ("CodeScanningVariantAnalysis",), + ".group_0300": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), + ".group_0301": ( "CodeScanningVariantAnalysisPropSkippedRepositories", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", ), - ".group_0300": ("CodeScanningVariantAnalysisRepoTask",), - ".group_0301": ("CodeScanningDefaultSetup",), - ".group_0302": ("CodeScanningDefaultSetupUpdate",), - ".group_0303": ("CodeScanningDefaultSetupUpdateResponse",), - ".group_0304": ("CodeScanningSarifsReceipt",), - ".group_0305": ("CodeScanningSarifsStatus",), - ".group_0306": ("CodeSecurityConfigurationForRepository",), - ".group_0307": ( + ".group_0302": ("CodeScanningVariantAnalysisRepoTask",), + ".group_0303": ("CodeScanningDefaultSetup",), + ".group_0304": ("CodeScanningDefaultSetupUpdate",), + ".group_0305": ("CodeScanningDefaultSetupUpdateResponse",), + ".group_0306": ("CodeScanningSarifsReceipt",), + ".group_0307": ("CodeScanningSarifsStatus",), + ".group_0308": ("CodeSecurityConfigurationForRepository",), + ".group_0309": ( "CodeownersErrors", "CodeownersErrorsPropErrorsItems", ), - ".group_0308": ("CodespacesPermissionsCheckForDevcontainer",), - ".group_0309": ("RepositoryInvitation",), - ".group_0310": ( + ".group_0310": ("CodespacesPermissionsCheckForDevcontainer",), + ".group_0311": ("RepositoryInvitation",), + ".group_0312": ( "RepositoryCollaboratorPermission", "Collaborator", "CollaboratorPropPermissions", ), - ".group_0311": ( + ".group_0313": ( "CommitComment", "TimelineCommitCommentedEvent", ), - ".group_0312": ( + ".group_0314": ( "BranchShort", "BranchShortPropCommit", ), - ".group_0313": ("Link",), - ".group_0314": ("AutoMerge",), - ".group_0315": ( + ".group_0315": ("Link",), + ".group_0316": ("AutoMerge",), + ".group_0317": ( "PullRequestSimple", "PullRequestSimplePropLabelsItems", ), - ".group_0316": ( + ".group_0318": ( "PullRequestSimplePropHead", "PullRequestSimplePropBase", ), - ".group_0317": ("PullRequestSimplePropLinks",), - ".group_0318": ( + ".group_0319": ("PullRequestSimplePropLinks",), + ".group_0320": ( "CombinedCommitStatus", "SimpleCommitStatus", ), - ".group_0319": ("Status",), - ".group_0320": ( + ".group_0321": ("Status",), + ".group_0322": ( "CommunityProfilePropFiles", "CommunityHealthFile", "CommunityProfile", ), - ".group_0321": ("CommitComparison",), - ".group_0322": ( + ".group_0323": ("CommitComparison",), + ".group_0324": ( "ContentTree", "ContentTreePropLinks", "ContentTreePropEntriesItems", "ContentTreePropEntriesItemsPropLinks", ), - ".group_0323": ( + ".group_0325": ( "ContentDirectoryItems", "ContentDirectoryItemsPropLinks", ), - ".group_0324": ( + ".group_0326": ( "ContentFile", "ContentFilePropLinks", ), - ".group_0325": ( + ".group_0327": ( "ContentSymlink", "ContentSymlinkPropLinks", ), - ".group_0326": ( + ".group_0328": ( "ContentSubmodule", "ContentSubmodulePropLinks", ), - ".group_0327": ( + ".group_0329": ( "FileCommit", "FileCommitPropContent", "FileCommitPropContentPropLinks", @@ -10031,20 +9979,20 @@ "FileCommitPropCommitPropParentsItems", "FileCommitPropCommitPropVerification", ), - ".group_0328": ( + ".group_0330": ( "RepositoryRuleViolationError", "RepositoryRuleViolationErrorPropMetadata", "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", ), - ".group_0329": ("Contributor",), - ".group_0330": ("DependabotAlert",), - ".group_0331": ("DependabotAlertPropDependency",), - ".group_0332": ( + ".group_0331": ("Contributor",), + ".group_0332": ("DependabotAlert",), + ".group_0333": ("DependabotAlertPropDependency",), + ".group_0334": ( "DependencyGraphDiffItems", "DependencyGraphDiffItemsPropVulnerabilitiesItems", ), - ".group_0333": ( + ".group_0335": ( "DependencyGraphSpdxSbom", "DependencyGraphSpdxSbomPropSbom", "DependencyGraphSpdxSbomPropSbomPropCreationInfo", @@ -10052,39 +10000,39 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItems", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", ), - ".group_0334": ("Metadata",), - ".group_0335": ("Dependency",), - ".group_0336": ( + ".group_0336": ("Metadata",), + ".group_0337": ("Dependency",), + ".group_0338": ( "Manifest", "ManifestPropFile", "ManifestPropResolved", ), - ".group_0337": ( + ".group_0339": ( "Snapshot", "SnapshotPropJob", "SnapshotPropDetector", "SnapshotPropManifests", ), - ".group_0338": ("DeploymentStatus",), - ".group_0339": ("DeploymentBranchPolicySettings",), - ".group_0340": ( + ".group_0340": ("DeploymentStatus",), + ".group_0341": ("DeploymentBranchPolicySettings",), + ".group_0342": ( "Environment", "EnvironmentPropProtectionRulesItemsAnyof0", "EnvironmentPropProtectionRulesItemsAnyof2", "ReposOwnerRepoEnvironmentsGetResponse200", ), - ".group_0341": ("EnvironmentPropProtectionRulesItemsAnyof1",), - ".group_0342": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), - ".group_0343": ("DeploymentBranchPolicyNamePatternWithType",), - ".group_0344": ("DeploymentBranchPolicyNamePattern",), - ".group_0345": ("CustomDeploymentRuleApp",), - ".group_0346": ( + ".group_0343": ("EnvironmentPropProtectionRulesItemsAnyof1",), + ".group_0344": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), + ".group_0345": ("DeploymentBranchPolicyNamePatternWithType",), + ".group_0346": ("DeploymentBranchPolicyNamePattern",), + ".group_0347": ("CustomDeploymentRuleApp",), + ".group_0348": ( "DeploymentProtectionRule", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ), - ".group_0347": ("ShortBlob",), - ".group_0348": ("Blob",), - ".group_0349": ( + ".group_0349": ("ShortBlob",), + ".group_0350": ("Blob",), + ".group_0351": ( "GitCommit", "GitCommitPropAuthor", "GitCommitPropCommitter", @@ -10092,28 +10040,28 @@ "GitCommitPropParentsItems", "GitCommitPropVerification", ), - ".group_0350": ( + ".group_0352": ( "GitRef", "GitRefPropObject", ), - ".group_0351": ( + ".group_0353": ( "GitTag", "GitTagPropTagger", "GitTagPropObject", ), - ".group_0352": ( + ".group_0354": ( "GitTree", "GitTreePropTreeItems", ), - ".group_0353": ("HookResponse",), - ".group_0354": ("Hook",), - ".group_0355": ( + ".group_0355": ("HookResponse",), + ".group_0356": ("Hook",), + ".group_0357": ( "Import", "ImportPropProjectChoicesItems", ), - ".group_0356": ("PorterAuthor",), - ".group_0357": ("PorterLargeFile",), - ".group_0358": ( + ".group_0358": ("PorterAuthor",), + ".group_0359": ("PorterLargeFile",), + ".group_0360": ( "IssueEvent", "IssueEventLabel", "IssueEventDismissedReview", @@ -10121,55 +10069,55 @@ "IssueEventProjectCard", "IssueEventRename", ), - ".group_0359": ( + ".group_0361": ( "LabeledIssueEvent", "LabeledIssueEventPropLabel", ), - ".group_0360": ( + ".group_0362": ( "UnlabeledIssueEvent", "UnlabeledIssueEventPropLabel", ), - ".group_0361": ("AssignedIssueEvent",), - ".group_0362": ("UnassignedIssueEvent",), - ".group_0363": ( + ".group_0363": ("AssignedIssueEvent",), + ".group_0364": ("UnassignedIssueEvent",), + ".group_0365": ( "MilestonedIssueEvent", "MilestonedIssueEventPropMilestone", ), - ".group_0364": ( + ".group_0366": ( "DemilestonedIssueEvent", "DemilestonedIssueEventPropMilestone", ), - ".group_0365": ( + ".group_0367": ( "RenamedIssueEvent", "RenamedIssueEventPropRename", ), - ".group_0366": ("ReviewRequestedIssueEvent",), - ".group_0367": ("ReviewRequestRemovedIssueEvent",), - ".group_0368": ( + ".group_0368": ("ReviewRequestedIssueEvent",), + ".group_0369": ("ReviewRequestRemovedIssueEvent",), + ".group_0370": ( "ReviewDismissedIssueEvent", "ReviewDismissedIssueEventPropDismissedReview", ), - ".group_0369": ("LockedIssueEvent",), - ".group_0370": ( + ".group_0371": ("LockedIssueEvent",), + ".group_0372": ( "AddedToProjectIssueEvent", "AddedToProjectIssueEventPropProjectCard", ), - ".group_0371": ( + ".group_0373": ( "MovedColumnInProjectIssueEvent", "MovedColumnInProjectIssueEventPropProjectCard", ), - ".group_0372": ( + ".group_0374": ( "RemovedFromProjectIssueEvent", "RemovedFromProjectIssueEventPropProjectCard", ), - ".group_0373": ( + ".group_0375": ( "ConvertedNoteToIssueIssueEvent", "ConvertedNoteToIssueIssueEventPropProjectCard", ), - ".group_0374": ("TimelineCommentEvent",), - ".group_0375": ("TimelineCrossReferencedEvent",), - ".group_0376": ("TimelineCrossReferencedEventPropSource",), - ".group_0377": ( + ".group_0376": ("TimelineCommentEvent",), + ".group_0377": ("TimelineCrossReferencedEvent",), + ".group_0378": ("TimelineCrossReferencedEventPropSource",), + ".group_0379": ( "TimelineCommittedEvent", "TimelineCommittedEventPropAuthor", "TimelineCommittedEventPropCommitter", @@ -10177,13 +10125,13 @@ "TimelineCommittedEventPropParentsItems", "TimelineCommittedEventPropVerification", ), - ".group_0378": ( + ".group_0380": ( "TimelineReviewedEvent", "TimelineReviewedEventPropLinks", "TimelineReviewedEventPropLinksPropHtml", "TimelineReviewedEventPropLinksPropPullRequest", ), - ".group_0379": ( + ".group_0381": ( "PullRequestReviewComment", "PullRequestReviewCommentPropLinks", "PullRequestReviewCommentPropLinksPropSelf", @@ -10191,162 +10139,162 @@ "PullRequestReviewCommentPropLinksPropPullRequest", "TimelineLineCommentedEvent", ), - ".group_0380": ("TimelineAssignedIssueEvent",), - ".group_0381": ("TimelineUnassignedIssueEvent",), - ".group_0382": ("StateChangeIssueEvent",), - ".group_0383": ("DeployKey",), - ".group_0384": ("Language",), - ".group_0385": ( + ".group_0382": ("TimelineAssignedIssueEvent",), + ".group_0383": ("TimelineUnassignedIssueEvent",), + ".group_0384": ("StateChangeIssueEvent",), + ".group_0385": ("DeployKey",), + ".group_0386": ("Language",), + ".group_0387": ( "LicenseContent", "LicenseContentPropLinks", ), - ".group_0386": ("MergedUpstream",), - ".group_0387": ( + ".group_0388": ("MergedUpstream",), + ".group_0389": ( "Page", "PagesSourceHash", "PagesHttpsCertificate", ), - ".group_0388": ( + ".group_0390": ( "PageBuild", "PageBuildPropError", ), - ".group_0389": ("PageBuildStatus",), - ".group_0390": ("PageDeployment",), - ".group_0391": ("PagesDeploymentStatus",), - ".group_0392": ( + ".group_0391": ("PageBuildStatus",), + ".group_0392": ("PageDeployment",), + ".group_0393": ("PagesDeploymentStatus",), + ".group_0394": ( "PagesHealthCheck", "PagesHealthCheckPropDomain", "PagesHealthCheckPropAltDomain", ), - ".group_0393": ("PullRequest",), - ".group_0394": ("PullRequestPropLabelsItems",), - ".group_0395": ( + ".group_0395": ("PullRequest",), + ".group_0396": ("PullRequestPropLabelsItems",), + ".group_0397": ( "PullRequestPropHead", "PullRequestPropBase", ), - ".group_0396": ("PullRequestPropLinks",), - ".group_0397": ("PullRequestMergeResult",), - ".group_0398": ("PullRequestReviewRequest",), - ".group_0399": ( + ".group_0398": ("PullRequestPropLinks",), + ".group_0399": ("PullRequestMergeResult",), + ".group_0400": ("PullRequestReviewRequest",), + ".group_0401": ( "PullRequestReview", "PullRequestReviewPropLinks", "PullRequestReviewPropLinksPropHtml", "PullRequestReviewPropLinksPropPullRequest", ), - ".group_0400": ("ReviewComment",), - ".group_0401": ("ReviewCommentPropLinks",), - ".group_0402": ("ReleaseAsset",), - ".group_0403": ("Release",), - ".group_0404": ("ReleaseNotesContent",), - ".group_0405": ("RepositoryRuleRulesetInfo",), - ".group_0406": ("RepositoryRuleDetailedOneof0",), - ".group_0407": ("RepositoryRuleDetailedOneof1",), - ".group_0408": ("RepositoryRuleDetailedOneof2",), - ".group_0409": ("RepositoryRuleDetailedOneof3",), - ".group_0410": ("RepositoryRuleDetailedOneof4",), - ".group_0411": ("RepositoryRuleDetailedOneof5",), - ".group_0412": ("RepositoryRuleDetailedOneof6",), - ".group_0413": ("RepositoryRuleDetailedOneof7",), - ".group_0414": ("RepositoryRuleDetailedOneof8",), - ".group_0415": ("RepositoryRuleDetailedOneof9",), - ".group_0416": ("RepositoryRuleDetailedOneof10",), - ".group_0417": ("RepositoryRuleDetailedOneof11",), - ".group_0418": ("RepositoryRuleDetailedOneof12",), - ".group_0419": ("RepositoryRuleDetailedOneof13",), - ".group_0420": ("RepositoryRuleDetailedOneof14",), - ".group_0421": ("RepositoryRuleDetailedOneof15",), - ".group_0422": ("RepositoryRuleDetailedOneof16",), - ".group_0423": ("RepositoryRuleDetailedOneof17",), - ".group_0424": ("RepositoryRuleDetailedOneof18",), - ".group_0425": ("RepositoryRuleDetailedOneof19",), - ".group_0426": ("RepositoryRuleDetailedOneof20",), - ".group_0427": ("SecretScanningAlert",), - ".group_0428": ("SecretScanningLocation",), - ".group_0429": ("SecretScanningPushProtectionBypass",), - ".group_0430": ( + ".group_0402": ("ReviewComment",), + ".group_0403": ("ReviewCommentPropLinks",), + ".group_0404": ("ReleaseAsset",), + ".group_0405": ("Release",), + ".group_0406": ("ReleaseNotesContent",), + ".group_0407": ("RepositoryRuleRulesetInfo",), + ".group_0408": ("RepositoryRuleDetailedOneof0",), + ".group_0409": ("RepositoryRuleDetailedOneof1",), + ".group_0410": ("RepositoryRuleDetailedOneof2",), + ".group_0411": ("RepositoryRuleDetailedOneof3",), + ".group_0412": ("RepositoryRuleDetailedOneof4",), + ".group_0413": ("RepositoryRuleDetailedOneof5",), + ".group_0414": ("RepositoryRuleDetailedOneof6",), + ".group_0415": ("RepositoryRuleDetailedOneof7",), + ".group_0416": ("RepositoryRuleDetailedOneof8",), + ".group_0417": ("RepositoryRuleDetailedOneof9",), + ".group_0418": ("RepositoryRuleDetailedOneof10",), + ".group_0419": ("RepositoryRuleDetailedOneof11",), + ".group_0420": ("RepositoryRuleDetailedOneof12",), + ".group_0421": ("RepositoryRuleDetailedOneof13",), + ".group_0422": ("RepositoryRuleDetailedOneof14",), + ".group_0423": ("RepositoryRuleDetailedOneof15",), + ".group_0424": ("RepositoryRuleDetailedOneof16",), + ".group_0425": ("RepositoryRuleDetailedOneof17",), + ".group_0426": ("RepositoryRuleDetailedOneof18",), + ".group_0427": ("RepositoryRuleDetailedOneof19",), + ".group_0428": ("RepositoryRuleDetailedOneof20",), + ".group_0429": ("SecretScanningAlert",), + ".group_0430": ("SecretScanningLocation",), + ".group_0431": ("SecretScanningPushProtectionBypass",), + ".group_0432": ( "SecretScanningScanHistory", "SecretScanningScan", "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", ), - ".group_0431": ( + ".group_0433": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1", ), - ".group_0432": ( + ".group_0434": ( "RepositoryAdvisoryCreate", "RepositoryAdvisoryCreatePropCreditsItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0433": ( + ".group_0435": ( "PrivateVulnerabilityReportCreate", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0434": ( + ".group_0436": ( "RepositoryAdvisoryUpdate", "RepositoryAdvisoryUpdatePropCreditsItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", ), - ".group_0435": ("Stargazer",), - ".group_0436": ("CommitActivity",), - ".group_0437": ( + ".group_0437": ("Stargazer",), + ".group_0438": ("CommitActivity",), + ".group_0439": ( "ContributorActivity", "ContributorActivityPropWeeksItems", ), - ".group_0438": ("ParticipationStats",), - ".group_0439": ("RepositorySubscription",), - ".group_0440": ( + ".group_0440": ("ParticipationStats",), + ".group_0441": ("RepositorySubscription",), + ".group_0442": ( "Tag", "TagPropCommit", ), - ".group_0441": ("TagProtection",), - ".group_0442": ("Topic",), - ".group_0443": ("Traffic",), - ".group_0444": ("CloneTraffic",), - ".group_0445": ("ContentTraffic",), - ".group_0446": ("ReferrerTraffic",), - ".group_0447": ("ViewTraffic",), - ".group_0448": ( + ".group_0443": ("TagProtection",), + ".group_0444": ("Topic",), + ".group_0445": ("Traffic",), + ".group_0446": ("CloneTraffic",), + ".group_0447": ("ContentTraffic",), + ".group_0448": ("ReferrerTraffic",), + ".group_0449": ("ViewTraffic",), + ".group_0450": ( "GroupResponse", "GroupResponsePropMembersItems", ), - ".group_0449": ("Meta",), - ".group_0450": ( + ".group_0451": ("Meta",), + ".group_0452": ( "ScimEnterpriseGroupResponse", "ScimEnterpriseGroupResponseMergedMembers", "ScimEnterpriseGroupList", ), - ".group_0451": ( + ".group_0453": ( "ScimEnterpriseGroupResponseAllof1", "ScimEnterpriseGroupResponseAllof1PropMembersItems", ), - ".group_0452": ( + ".group_0454": ( "Group", "GroupPropMembersItems", ), - ".group_0453": ( + ".group_0455": ( "PatchSchema", "PatchSchemaPropOperationsItems", ), - ".group_0454": ( + ".group_0456": ( "UserNameResponse", "UserEmailsResponseItems", ), - ".group_0455": ("UserRoleItems",), - ".group_0456": ("UserResponse",), - ".group_0457": ( + ".group_0457": ("UserRoleItems",), + ".group_0458": ("UserResponse",), + ".group_0459": ( "ScimEnterpriseUserResponse", "ScimEnterpriseUserList", ), - ".group_0458": ("ScimEnterpriseUserResponseAllof1",), - ".group_0459": ("ScimEnterpriseUserResponseAllof1PropGroupsItems",), - ".group_0460": ( + ".group_0460": ("ScimEnterpriseUserResponseAllof1",), + ".group_0461": ("ScimEnterpriseUserResponseAllof1PropGroupsItems",), + ".group_0462": ( "User", "UserName", "UserEmailsItems", ), - ".group_0461": ( + ".group_0463": ( "ScimUserList", "ScimUser", "ScimUserPropName", @@ -10357,41 +10305,40 @@ "ScimUserPropOperationsItems", "ScimUserPropOperationsItemsPropValueOneof1", ), - ".group_0462": ( + ".group_0464": ( "SearchResultTextMatchesItems", "SearchResultTextMatchesItemsPropMatchesItems", ), - ".group_0463": ( + ".group_0465": ( "CodeSearchResultItem", "SearchCodeGetResponse200", ), - ".group_0464": ( + ".group_0466": ( "CommitSearchResultItem", "CommitSearchResultItemPropParentsItems", "SearchCommitsGetResponse200", ), - ".group_0465": ( + ".group_0467": ( "CommitSearchResultItemPropCommit", "CommitSearchResultItemPropCommitPropAuthor", "CommitSearchResultItemPropCommitPropTree", ), - ".group_0466": ( + ".group_0468": ( "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropSubIssuesSummary", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", ), - ".group_0467": ( + ".group_0469": ( "LabelSearchResultItem", "SearchLabelsGetResponse200", ), - ".group_0468": ( + ".group_0470": ( "RepoSearchResultItem", "RepoSearchResultItemPropPermissions", "SearchRepositoriesGetResponse200", ), - ".group_0469": ( + ".group_0471": ( "TopicSearchResultItem", "TopicSearchResultItemPropRelatedItems", "TopicSearchResultItemPropRelatedItemsPropTopicRelation", @@ -10399,49 +10346,49 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelation", "SearchTopicsGetResponse200", ), - ".group_0470": ( + ".group_0472": ( "UserSearchResultItem", "SearchUsersGetResponse200", ), - ".group_0471": ( + ".group_0473": ( "PrivateUser", "PrivateUserPropPlan", ), - ".group_0472": ("CodespacesUserPublicKey",), - ".group_0473": ("CodespaceExportDetails",), - ".group_0474": ( + ".group_0474": ("CodespacesUserPublicKey",), + ".group_0475": ("CodespaceExportDetails",), + ".group_0476": ( "CodespaceWithFullRepository", "CodespaceWithFullRepositoryPropGitStatus", "CodespaceWithFullRepositoryPropRuntimeConstraints", ), - ".group_0475": ("Email",), - ".group_0476": ( + ".group_0477": ("Email",), + ".group_0478": ( "GpgKey", "GpgKeyPropEmailsItems", "GpgKeyPropSubkeysItems", "GpgKeyPropSubkeysItemsPropEmailsItems", ), - ".group_0477": ("Key",), - ".group_0478": ( + ".group_0479": ("Key",), + ".group_0480": ( "UserMarketplacePurchase", "MarketplaceAccount", ), - ".group_0479": ("SocialAccount",), - ".group_0480": ("SshSigningKey",), - ".group_0481": ("StarredRepository",), - ".group_0482": ( + ".group_0481": ("SocialAccount",), + ".group_0482": ("SshSigningKey",), + ".group_0483": ("StarredRepository",), + ".group_0484": ( "Hovercard", "HovercardPropContextsItems", ), - ".group_0483": ("KeySimple",), - ".group_0484": ( + ".group_0485": ("KeySimple",), + ".group_0486": ( "BillingUsageReportUser", "BillingUsageReportUserPropUsageItemsItems", ), - ".group_0485": ("EnterpriseWebhooks",), - ".group_0486": ("SimpleInstallation",), - ".group_0487": ("OrganizationSimpleWebhooks",), - ".group_0488": ( + ".group_0487": ("EnterpriseWebhooks",), + ".group_0488": ("SimpleInstallation",), + ".group_0489": ("OrganizationSimpleWebhooks",), + ".group_0490": ( "RepositoryWebhooks", "RepositoryWebhooksPropPermissions", "RepositoryWebhooksPropCustomProperties", @@ -10449,9 +10396,9 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), - ".group_0489": ("WebhooksRule",), - ".group_0490": ("ExemptionResponse",), - ".group_0491": ( + ".group_0491": ("WebhooksRule",), + ".group_0492": ("ExemptionResponse",), + ".group_0493": ( "ExemptionRequest", "ExemptionRequestSecretScanningMetadata", "DismissalRequestSecretScanningMetadata", @@ -10466,26 +10413,26 @@ "ExemptionRequestSecretScanningPropDataItems", "ExemptionRequestSecretScanningPropDataItemsPropLocationsItems", ), - ".group_0492": ("SimpleCheckSuite",), - ".group_0493": ( + ".group_0494": ("SimpleCheckSuite",), + ".group_0495": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0494": ("WebhooksDeployKey",), - ".group_0495": ("WebhooksWorkflow",), - ".group_0496": ( + ".group_0496": ("WebhooksDeployKey",), + ".group_0497": ("WebhooksWorkflow",), + ".group_0498": ( "WebhooksApprover", "WebhooksReviewersItems", "WebhooksReviewersItemsPropReviewer", ), - ".group_0497": ("WebhooksWorkflowJobRun",), - ".group_0498": ("WebhooksUser",), - ".group_0499": ( + ".group_0499": ("WebhooksWorkflowJobRun",), + ".group_0500": ("WebhooksUser",), + ".group_0501": ( "WebhooksAnswer", "WebhooksAnswerPropReactions", "WebhooksAnswerPropUser", ), - ".group_0500": ( + ".group_0502": ( "Discussion", "Label", "DiscussionPropAnswerChosenBy", @@ -10493,24 +10440,24 @@ "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0501": ( + ".group_0503": ( "WebhooksComment", "WebhooksCommentPropReactions", "WebhooksCommentPropUser", ), - ".group_0502": ("WebhooksLabel",), - ".group_0503": ("WebhooksRepositoriesItems",), - ".group_0504": ("WebhooksRepositoriesAddedItems",), - ".group_0505": ( + ".group_0504": ("WebhooksLabel",), + ".group_0505": ("WebhooksRepositoriesItems",), + ".group_0506": ("WebhooksRepositoriesAddedItems",), + ".group_0507": ( "WebhooksIssueComment", "WebhooksIssueCommentPropReactions", "WebhooksIssueCommentPropUser", ), - ".group_0506": ( + ".group_0508": ( "WebhooksChanges", "WebhooksChangesPropBody", ), - ".group_0507": ( + ".group_0509": ( "WebhooksIssue", "WebhooksIssuePropAssignee", "WebhooksIssuePropAssigneesItems", @@ -10522,14 +10469,13 @@ "WebhooksIssuePropPerformedViaGithubAppPropPermissions", "WebhooksIssuePropPullRequest", "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", "WebhooksIssuePropUser", ), - ".group_0508": ( + ".group_0510": ( "WebhooksMilestone", "WebhooksMilestonePropCreator", ), - ".group_0509": ( + ".group_0511": ( "WebhooksIssue2", "WebhooksIssue2PropAssignee", "WebhooksIssue2PropAssigneesItems", @@ -10541,34 +10487,33 @@ "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", "WebhooksIssue2PropPullRequest", "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", "WebhooksIssue2PropUser", ), - ".group_0510": ("WebhooksUserMannequin",), - ".group_0511": ( + ".group_0512": ("WebhooksUserMannequin",), + ".group_0513": ( "WebhooksMarketplacePurchase", "WebhooksMarketplacePurchasePropAccount", "WebhooksMarketplacePurchasePropPlan", ), - ".group_0512": ( + ".group_0514": ( "WebhooksPreviousMarketplacePurchase", "WebhooksPreviousMarketplacePurchasePropAccount", "WebhooksPreviousMarketplacePurchasePropPlan", ), - ".group_0513": ( + ".group_0515": ( "WebhooksTeam", "WebhooksTeamPropParent", ), - ".group_0514": ("MergeGroup",), - ".group_0515": ( + ".group_0516": ("MergeGroup",), + ".group_0517": ( "WebhooksMilestone3", "WebhooksMilestone3PropCreator", ), - ".group_0516": ( + ".group_0518": ( "WebhooksMembership", "WebhooksMembershipPropUser", ), - ".group_0517": ( + ".group_0519": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -10584,25 +10529,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0518": ( + ".group_0520": ( "WebhooksProjectCard", "WebhooksProjectCardPropCreator", ), - ".group_0519": ( + ".group_0521": ( "WebhooksProject", "WebhooksProjectPropCreator", ), - ".group_0520": ("WebhooksProjectColumn",), - ".group_0521": ("ProjectsV2",), - ".group_0522": ( + ".group_0522": ("WebhooksProjectColumn",), + ".group_0523": ("ProjectsV2",), + ".group_0524": ( "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", ), - ".group_0523": ("ProjectsV2Item",), - ".group_0524": ("ProjectsV2StatusUpdate",), - ".group_0525": ("PullRequestWebhook",), - ".group_0526": ("PullRequestWebhookAllof1",), - ".group_0527": ( + ".group_0525": ("ProjectsV2Item",), + ".group_0526": ("ProjectsV2StatusUpdate",), + ".group_0527": ("PullRequestWebhook",), + ".group_0528": ("PullRequestWebhookAllof1",), + ".group_0529": ( "WebhooksPullRequest5", "WebhooksPullRequest5PropAssignee", "WebhooksPullRequest5PropAssigneesItems", @@ -10640,7 +10585,7 @@ "WebhooksPullRequest5PropRequestedTeamsItems", "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", ), - ".group_0528": ( + ".group_0530": ( "WebhooksReviewComment", "WebhooksReviewCommentPropReactions", "WebhooksReviewCommentPropUser", @@ -10649,33 +10594,33 @@ "WebhooksReviewCommentPropLinksPropPullRequest", "WebhooksReviewCommentPropLinksPropSelf", ), - ".group_0529": ( + ".group_0531": ( "WebhooksReview", "WebhooksReviewPropUser", "WebhooksReviewPropLinks", "WebhooksReviewPropLinksPropHtml", "WebhooksReviewPropLinksPropPullRequest", ), - ".group_0530": ( + ".group_0532": ( "WebhooksRelease", "WebhooksReleasePropAuthor", "WebhooksReleasePropReactions", "WebhooksReleasePropAssetsItems", "WebhooksReleasePropAssetsItemsPropUploader", ), - ".group_0531": ( + ".group_0533": ( "WebhooksRelease1", "WebhooksRelease1PropAssetsItems", "WebhooksRelease1PropAssetsItemsPropUploader", "WebhooksRelease1PropAuthor", "WebhooksRelease1PropReactions", ), - ".group_0532": ( + ".group_0534": ( "WebhooksAlert", "WebhooksAlertPropDismisser", ), - ".group_0533": ("SecretScanningAlertWebhook",), - ".group_0534": ( + ".group_0535": ("SecretScanningAlertWebhook",), + ".group_0536": ( "WebhooksSecurityAdvisory", "WebhooksSecurityAdvisoryPropCvss", "WebhooksSecurityAdvisoryPropCwesItems", @@ -10685,27 +10630,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0535": ( + ".group_0537": ( "WebhooksSponsorship", "WebhooksSponsorshipPropMaintainer", "WebhooksSponsorshipPropSponsor", "WebhooksSponsorshipPropSponsorable", "WebhooksSponsorshipPropTier", ), - ".group_0536": ( + ".group_0538": ( "WebhooksChanges8", "WebhooksChanges8PropTier", "WebhooksChanges8PropTierPropFrom", ), - ".group_0537": ( + ".group_0539": ( "WebhooksTeam1", "WebhooksTeam1PropParent", ), - ".group_0538": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0539": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0540": ("WebhookBranchProtectionRuleCreated",), - ".group_0541": ("WebhookBranchProtectionRuleDeleted",), - ".group_0542": ( + ".group_0540": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0541": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0542": ("WebhookBranchProtectionRuleCreated",), + ".group_0543": ("WebhookBranchProtectionRuleDeleted",), + ".group_0544": ( "WebhookBranchProtectionRuleEdited", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", @@ -10720,23 +10665,23 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0543": ("WebhookExemptionRequestCancelled",), - ".group_0544": ("WebhookExemptionRequestCompleted",), - ".group_0545": ("WebhookExemptionRequestCreated",), - ".group_0546": ("WebhookExemptionRequestResponseDismissed",), - ".group_0547": ("WebhookExemptionRequestResponseSubmitted",), - ".group_0548": ("WebhookCheckRunCompleted",), - ".group_0549": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0550": ("WebhookCheckRunCreated",), - ".group_0551": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0552": ( + ".group_0545": ("WebhookExemptionRequestCancelled",), + ".group_0546": ("WebhookExemptionRequestCompleted",), + ".group_0547": ("WebhookExemptionRequestCreated",), + ".group_0548": ("WebhookExemptionRequestResponseDismissed",), + ".group_0549": ("WebhookExemptionRequestResponseSubmitted",), + ".group_0550": ("WebhookCheckRunCompleted",), + ".group_0551": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0552": ("WebhookCheckRunCreated",), + ".group_0553": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0554": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0553": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0554": ("WebhookCheckRunRerequested",), - ".group_0555": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0556": ( + ".group_0555": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0556": ("WebhookCheckRunRerequested",), + ".group_0557": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0558": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -10751,7 +10696,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0557": ( + ".group_0559": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -10766,7 +10711,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0558": ( + ".group_0560": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -10781,7 +10726,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0559": ( + ".group_0561": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -10791,7 +10736,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0560": ( + ".group_0562": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -10802,7 +10747,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", ), - ".group_0561": ( + ".group_0563": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -10811,7 +10756,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0562": ( + ".group_0564": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -10821,7 +10766,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0563": ( + ".group_0565": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -10831,7 +10776,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0564": ( + ".group_0566": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -10840,32 +10785,32 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0565": ( + ".group_0567": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0566": ("WebhookCreate",), - ".group_0567": ("WebhookCustomPropertyCreated",), - ".group_0568": ( + ".group_0568": ("WebhookCreate",), + ".group_0569": ("WebhookCustomPropertyCreated",), + ".group_0570": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0569": ("WebhookCustomPropertyPromotedToEnterprise",), - ".group_0570": ("WebhookCustomPropertyUpdated",), - ".group_0571": ("WebhookCustomPropertyValuesUpdated",), - ".group_0572": ("WebhookDelete",), - ".group_0573": ("WebhookDependabotAlertAutoDismissed",), - ".group_0574": ("WebhookDependabotAlertAutoReopened",), - ".group_0575": ("WebhookDependabotAlertCreated",), - ".group_0576": ("WebhookDependabotAlertDismissed",), - ".group_0577": ("WebhookDependabotAlertFixed",), - ".group_0578": ("WebhookDependabotAlertReintroduced",), - ".group_0579": ("WebhookDependabotAlertReopened",), - ".group_0580": ("WebhookDeployKeyCreated",), - ".group_0581": ("WebhookDeployKeyDeleted",), - ".group_0582": ( + ".group_0571": ("WebhookCustomPropertyPromotedToEnterprise",), + ".group_0572": ("WebhookCustomPropertyUpdated",), + ".group_0573": ("WebhookCustomPropertyValuesUpdated",), + ".group_0574": ("WebhookDelete",), + ".group_0575": ("WebhookDependabotAlertAutoDismissed",), + ".group_0576": ("WebhookDependabotAlertAutoReopened",), + ".group_0577": ("WebhookDependabotAlertCreated",), + ".group_0578": ("WebhookDependabotAlertDismissed",), + ".group_0579": ("WebhookDependabotAlertFixed",), + ".group_0580": ("WebhookDependabotAlertReintroduced",), + ".group_0581": ("WebhookDependabotAlertReopened",), + ".group_0582": ("WebhookDeployKeyCreated",), + ".group_0583": ("WebhookDeployKeyDeleted",), + ".group_0584": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropDeployment", "WebhookDeploymentCreatedPropDeploymentPropCreator", @@ -10887,8 +10832,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0583": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0584": ( + ".group_0585": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0586": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", "WebhookDeploymentReviewApprovedPropWorkflowRun", @@ -10906,7 +10851,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0585": ( + ".group_0587": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", "WebhookDeploymentReviewRejectedPropWorkflowRun", @@ -10924,7 +10869,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0586": ( + ".group_0588": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", "WebhookDeploymentReviewRequestedPropReviewersItems", @@ -10944,7 +10889,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0587": ( + ".group_0589": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropDeployment", @@ -10972,119 +10917,116 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0588": ("WebhookDiscussionAnswered",), - ".group_0589": ( + ".group_0590": ("WebhookDiscussionAnswered",), + ".group_0591": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0590": ("WebhookDiscussionClosed",), - ".group_0591": ("WebhookDiscussionCommentCreated",), - ".group_0592": ("WebhookDiscussionCommentDeleted",), - ".group_0593": ( + ".group_0592": ("WebhookDiscussionClosed",), + ".group_0593": ("WebhookDiscussionCommentCreated",), + ".group_0594": ("WebhookDiscussionCommentDeleted",), + ".group_0595": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", ), - ".group_0594": ("WebhookDiscussionCreated",), - ".group_0595": ("WebhookDiscussionDeleted",), - ".group_0596": ( + ".group_0596": ("WebhookDiscussionCreated",), + ".group_0597": ("WebhookDiscussionDeleted",), + ".group_0598": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0597": ("WebhookDiscussionLabeled",), - ".group_0598": ("WebhookDiscussionLocked",), - ".group_0599": ("WebhookDiscussionPinned",), - ".group_0600": ("WebhookDiscussionReopened",), - ".group_0601": ("WebhookDiscussionTransferred",), - ".group_0602": ("WebhookDiscussionTransferredPropChanges",), - ".group_0603": ("WebhookDiscussionUnanswered",), - ".group_0604": ("WebhookDiscussionUnlabeled",), - ".group_0605": ("WebhookDiscussionUnlocked",), - ".group_0606": ("WebhookDiscussionUnpinned",), - ".group_0607": ("WebhookFork",), - ".group_0608": ( + ".group_0599": ("WebhookDiscussionLabeled",), + ".group_0600": ("WebhookDiscussionLocked",), + ".group_0601": ("WebhookDiscussionPinned",), + ".group_0602": ("WebhookDiscussionReopened",), + ".group_0603": ("WebhookDiscussionTransferred",), + ".group_0604": ("WebhookDiscussionTransferredPropChanges",), + ".group_0605": ("WebhookDiscussionUnanswered",), + ".group_0606": ("WebhookDiscussionUnlabeled",), + ".group_0607": ("WebhookDiscussionUnlocked",), + ".group_0608": ("WebhookDiscussionUnpinned",), + ".group_0609": ("WebhookFork",), + ".group_0610": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0609": ( + ".group_0611": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0610": ("WebhookForkPropForkeeAllof0PropPermissions",), - ".group_0611": ( + ".group_0612": ("WebhookForkPropForkeeAllof0PropPermissions",), + ".group_0613": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0612": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0613": ( + ".group_0614": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0615": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0614": ("WebhookInstallationCreated",), - ".group_0615": ("WebhookInstallationDeleted",), - ".group_0616": ("WebhookInstallationNewPermissionsAccepted",), - ".group_0617": ( + ".group_0616": ("WebhookInstallationCreated",), + ".group_0617": ("WebhookInstallationDeleted",), + ".group_0618": ("WebhookInstallationNewPermissionsAccepted",), + ".group_0619": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ), - ".group_0618": ( + ".group_0620": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ), - ".group_0619": ("WebhookInstallationSuspend",), - ".group_0620": ( + ".group_0621": ("WebhookInstallationSuspend",), + ".group_0622": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0621": ("WebhookInstallationUnsuspend",), - ".group_0622": ("WebhookIssueCommentCreated",), - ".group_0623": ( + ".group_0623": ("WebhookInstallationUnsuspend",), + ".group_0624": ("WebhookIssueCommentCreated",), + ".group_0625": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0624": ( + ".group_0626": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0625": ( + ".group_0627": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0626": ( + ".group_0628": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0627": ( + ".group_0629": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0628": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0629": ( + ".group_0630": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0631": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0630": ( + ".group_0632": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0631": ( - "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary", - ), - ".group_0632": ( + ".group_0633": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -11094,41 +11036,38 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0633": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0634": ( + ".group_0634": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0635": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0635": ("WebhookIssueCommentDeleted",), - ".group_0636": ( + ".group_0636": ("WebhookIssueCommentDeleted",), + ".group_0637": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0637": ( + ".group_0638": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0638": ( + ".group_0639": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0639": ( + ".group_0640": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0640": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0641": ( + ".group_0641": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0642": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0642": ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", - ), ".group_0643": ( - "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), ".group_0644": ( "WebhookIssueCommentDeletedPropIssueAllof1", @@ -11174,9 +11113,6 @@ "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), ".group_0655": ( - "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary", - ), - ".group_0656": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -11186,13 +11122,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0657": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0658": ( + ".group_0656": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0657": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0659": ("WebhookIssuesAssigned",), - ".group_0660": ("WebhookIssuesClosed",), - ".group_0661": ( + ".group_0658": ("WebhookIssuesAssigned",), + ".group_0659": ("WebhookIssuesClosed",), + ".group_0660": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -11200,7 +11136,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0662": ( + ".group_0661": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -11208,18 +11144,15 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0663": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0664": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0665": ( + ".group_0662": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0663": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0664": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0666": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0665": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0666": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), ".group_0667": ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", - ), - ".group_0668": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -11229,10 +11162,10 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0669": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0670": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0671": ("WebhookIssuesDeleted",), - ".group_0672": ( + ".group_0668": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0669": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0670": ("WebhookIssuesDeleted",), + ".group_0671": ( "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", "WebhookIssuesDeletedPropIssuePropAssigneesItems", @@ -11244,11 +11177,10 @@ "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesDeletedPropIssuePropPullRequest", "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0673": ("WebhookIssuesDemilestoned",), - ".group_0674": ( + ".group_0672": ("WebhookIssuesDemilestoned",), + ".group_0673": ( "WebhookIssuesDemilestonedPropIssue", "WebhookIssuesDemilestonedPropIssuePropAssignee", "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", @@ -11260,16 +11192,15 @@ "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesDemilestonedPropIssuePropPullRequest", "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesDemilestonedPropIssuePropUser", ), - ".group_0675": ( + ".group_0674": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", "WebhookIssuesEditedPropChangesPropBody", "WebhookIssuesEditedPropChangesPropTitle", ), - ".group_0676": ( + ".group_0675": ( "WebhookIssuesEditedPropIssue", "WebhookIssuesEditedPropIssuePropAssignee", "WebhookIssuesEditedPropIssuePropAssigneesItems", @@ -11281,11 +11212,10 @@ "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesEditedPropIssuePropPullRequest", "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0677": ("WebhookIssuesLabeled",), - ".group_0678": ( + ".group_0676": ("WebhookIssuesLabeled",), + ".group_0677": ( "WebhookIssuesLabeledPropIssue", "WebhookIssuesLabeledPropIssuePropAssignee", "WebhookIssuesLabeledPropIssuePropAssigneesItems", @@ -11297,11 +11227,10 @@ "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesLabeledPropIssuePropPullRequest", "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0679": ("WebhookIssuesLocked",), - ".group_0680": ( + ".group_0678": ("WebhookIssuesLocked",), + ".group_0679": ( "WebhookIssuesLockedPropIssue", "WebhookIssuesLockedPropIssuePropAssignee", "WebhookIssuesLockedPropIssuePropAssigneesItems", @@ -11313,11 +11242,10 @@ "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesLockedPropIssuePropPullRequest", "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0681": ("WebhookIssuesMilestoned",), - ".group_0682": ( + ".group_0680": ("WebhookIssuesMilestoned",), + ".group_0681": ( "WebhookIssuesMilestonedPropIssue", "WebhookIssuesMilestonedPropIssuePropAssignee", "WebhookIssuesMilestonedPropIssuePropAssigneesItems", @@ -11329,11 +11257,10 @@ "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesMilestonedPropIssuePropPullRequest", "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesMilestonedPropIssuePropUser", ), - ".group_0683": ("WebhookIssuesOpened",), - ".group_0684": ( + ".group_0682": ("WebhookIssuesOpened",), + ".group_0683": ( "WebhookIssuesOpenedPropChanges", "WebhookIssuesOpenedPropChangesPropOldRepository", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", @@ -11341,7 +11268,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0685": ( + ".group_0684": ( "WebhookIssuesOpenedPropChangesPropOldIssue", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", @@ -11353,10 +11280,9 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", ), - ".group_0686": ( + ".group_0685": ( "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", "WebhookIssuesOpenedPropIssuePropAssigneesItems", @@ -11368,12 +11294,11 @@ "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesOpenedPropIssuePropPullRequest", "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropIssuePropUser", ), - ".group_0687": ("WebhookIssuesPinned",), - ".group_0688": ("WebhookIssuesReopened",), - ".group_0689": ( + ".group_0686": ("WebhookIssuesPinned",), + ".group_0687": ("WebhookIssuesReopened",), + ".group_0688": ( "WebhookIssuesReopenedPropIssue", "WebhookIssuesReopenedPropIssuePropAssignee", "WebhookIssuesReopenedPropIssuePropAssigneesItems", @@ -11385,11 +11310,10 @@ "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesReopenedPropIssuePropPullRequest", "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0690": ("WebhookIssuesTransferred",), - ".group_0691": ( + ".group_0689": ("WebhookIssuesTransferred",), + ".group_0690": ( "WebhookIssuesTransferredPropChanges", "WebhookIssuesTransferredPropChangesPropNewRepository", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", @@ -11397,7 +11321,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0692": ( + ".group_0691": ( "WebhookIssuesTransferredPropChangesPropNewIssue", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", @@ -11409,14 +11333,13 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", ), - ".group_0693": ("WebhookIssuesTyped",), - ".group_0694": ("WebhookIssuesUnassigned",), - ".group_0695": ("WebhookIssuesUnlabeled",), - ".group_0696": ("WebhookIssuesUnlocked",), - ".group_0697": ( + ".group_0692": ("WebhookIssuesTyped",), + ".group_0693": ("WebhookIssuesUnassigned",), + ".group_0694": ("WebhookIssuesUnlabeled",), + ".group_0695": ("WebhookIssuesUnlocked",), + ".group_0696": ( "WebhookIssuesUnlockedPropIssue", "WebhookIssuesUnlockedPropIssuePropAssignee", "WebhookIssuesUnlockedPropIssuePropAssigneesItems", @@ -11428,107 +11351,106 @@ "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesUnlockedPropIssuePropPullRequest", "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", "WebhookIssuesUnlockedPropIssuePropUser", ), - ".group_0698": ("WebhookIssuesUnpinned",), - ".group_0699": ("WebhookIssuesUntyped",), - ".group_0700": ("WebhookLabelCreated",), - ".group_0701": ("WebhookLabelDeleted",), - ".group_0702": ( + ".group_0697": ("WebhookIssuesUnpinned",), + ".group_0698": ("WebhookIssuesUntyped",), + ".group_0699": ("WebhookLabelCreated",), + ".group_0700": ("WebhookLabelDeleted",), + ".group_0701": ( "WebhookLabelEdited", "WebhookLabelEditedPropChanges", "WebhookLabelEditedPropChangesPropColor", "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0703": ("WebhookMarketplacePurchaseCancelled",), - ".group_0704": ( + ".group_0702": ("WebhookMarketplacePurchaseCancelled",), + ".group_0703": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0705": ( + ".group_0704": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0706": ( + ".group_0705": ( "WebhookMarketplacePurchasePendingChangeCancelled", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ), - ".group_0707": ("WebhookMarketplacePurchasePurchased",), - ".group_0708": ( + ".group_0706": ("WebhookMarketplacePurchasePurchased",), + ".group_0707": ( "WebhookMemberAdded", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0709": ( + ".group_0708": ( "WebhookMemberEdited", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0710": ("WebhookMemberRemoved",), - ".group_0711": ( + ".group_0709": ("WebhookMemberRemoved",), + ".group_0710": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropSender", ), - ".group_0712": ( + ".group_0711": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropSender", ), - ".group_0713": ("WebhookMergeGroupChecksRequested",), - ".group_0714": ("WebhookMergeGroupDestroyed",), - ".group_0715": ( + ".group_0712": ("WebhookMergeGroupChecksRequested",), + ".group_0713": ("WebhookMergeGroupDestroyed",), + ".group_0714": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0716": ("WebhookMilestoneClosed",), - ".group_0717": ("WebhookMilestoneCreated",), - ".group_0718": ("WebhookMilestoneDeleted",), - ".group_0719": ( + ".group_0715": ("WebhookMilestoneClosed",), + ".group_0716": ("WebhookMilestoneCreated",), + ".group_0717": ("WebhookMilestoneDeleted",), + ".group_0718": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", "WebhookMilestoneEditedPropChangesPropDueOn", "WebhookMilestoneEditedPropChangesPropTitle", ), - ".group_0720": ("WebhookMilestoneOpened",), - ".group_0721": ("WebhookOrgBlockBlocked",), - ".group_0722": ("WebhookOrgBlockUnblocked",), - ".group_0723": ("WebhookOrganizationDeleted",), - ".group_0724": ("WebhookOrganizationMemberAdded",), - ".group_0725": ( + ".group_0719": ("WebhookMilestoneOpened",), + ".group_0720": ("WebhookOrgBlockBlocked",), + ".group_0721": ("WebhookOrgBlockUnblocked",), + ".group_0722": ("WebhookOrganizationDeleted",), + ".group_0723": ("WebhookOrganizationMemberAdded",), + ".group_0724": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0726": ("WebhookOrganizationMemberRemoved",), - ".group_0727": ( + ".group_0725": ("WebhookOrganizationMemberRemoved",), + ".group_0726": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", ), - ".group_0728": ( + ".group_0727": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0729": ("WebhookPackagePublished",), - ".group_0730": ( + ".group_0728": ("WebhookPackagePublished",), + ".group_0729": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0731": ( + ".group_0730": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -11560,13 +11482,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0732": ("WebhookPackageUpdated",), - ".group_0733": ( + ".group_0731": ("WebhookPackageUpdated",), + ".group_0732": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0734": ( + ".group_0733": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -11575,75 +11497,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0735": ( + ".group_0734": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0736": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0737": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0738": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0739": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0740": ("WebhookPing",), - ".group_0741": ( + ".group_0735": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0736": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0737": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0738": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0739": ("WebhookPing",), + ".group_0740": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0742": ("WebhookPingFormEncoded",), - ".group_0743": ( + ".group_0741": ("WebhookPingFormEncoded",), + ".group_0742": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", ), - ".group_0744": ("WebhookProjectCardCreated",), - ".group_0745": ( + ".group_0743": ("WebhookProjectCardCreated",), + ".group_0744": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0746": ( + ".group_0745": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", ), - ".group_0747": ( + ".group_0746": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0748": ( + ".group_0747": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0749": ( + ".group_0748": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0750": ("WebhookProjectClosed",), - ".group_0751": ("WebhookProjectColumnCreated",), - ".group_0752": ("WebhookProjectColumnDeleted",), - ".group_0753": ( + ".group_0749": ("WebhookProjectClosed",), + ".group_0750": ("WebhookProjectColumnCreated",), + ".group_0751": ("WebhookProjectColumnDeleted",), + ".group_0752": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0754": ("WebhookProjectColumnMoved",), - ".group_0755": ("WebhookProjectCreated",), - ".group_0756": ("WebhookProjectDeleted",), - ".group_0757": ( + ".group_0753": ("WebhookProjectColumnMoved",), + ".group_0754": ("WebhookProjectCreated",), + ".group_0755": ("WebhookProjectDeleted",), + ".group_0756": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", "WebhookProjectEditedPropChangesPropName", ), - ".group_0758": ("WebhookProjectReopened",), - ".group_0759": ("WebhookProjectsV2ProjectClosed",), - ".group_0760": ("WebhookProjectsV2ProjectCreated",), - ".group_0761": ("WebhookProjectsV2ProjectDeleted",), - ".group_0762": ( + ".group_0757": ("WebhookProjectReopened",), + ".group_0758": ("WebhookProjectsV2ProjectClosed",), + ".group_0759": ("WebhookProjectsV2ProjectCreated",), + ".group_0760": ("WebhookProjectsV2ProjectDeleted",), + ".group_0761": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -11651,15 +11573,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0763": ("WebhookProjectsV2ItemArchived",), - ".group_0764": ( + ".group_0762": ("WebhookProjectsV2ItemArchived",), + ".group_0763": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0765": ("WebhookProjectsV2ItemCreated",), - ".group_0766": ("WebhookProjectsV2ItemDeleted",), - ".group_0767": ( + ".group_0764": ("WebhookProjectsV2ItemCreated",), + ".group_0765": ("WebhookProjectsV2ItemDeleted",), + ".group_0766": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", @@ -11668,16 +11590,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0768": ( + ".group_0767": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0769": ("WebhookProjectsV2ItemRestored",), - ".group_0770": ("WebhookProjectsV2ProjectReopened",), - ".group_0771": ("WebhookProjectsV2StatusUpdateCreated",), - ".group_0772": ("WebhookProjectsV2StatusUpdateDeleted",), - ".group_0773": ( + ".group_0768": ("WebhookProjectsV2ItemRestored",), + ".group_0769": ("WebhookProjectsV2ProjectReopened",), + ".group_0770": ("WebhookProjectsV2StatusUpdateCreated",), + ".group_0771": ("WebhookProjectsV2StatusUpdateDeleted",), + ".group_0772": ( "WebhookProjectsV2StatusUpdateEdited", "WebhookProjectsV2StatusUpdateEditedPropChanges", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", @@ -11685,8 +11607,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", ), - ".group_0774": ("WebhookPublic",), - ".group_0775": ( + ".group_0773": ("WebhookPublic",), + ".group_0774": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", "WebhookPullRequestAssignedPropPullRequestPropAssignee", @@ -11725,7 +11647,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0776": ( + ".group_0775": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -11764,7 +11686,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0777": ( + ".group_0776": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -11803,10 +11725,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0778": ("WebhookPullRequestClosed",), - ".group_0779": ("WebhookPullRequestConvertedToDraft",), - ".group_0780": ("WebhookPullRequestDemilestoned",), - ".group_0781": ( + ".group_0777": ("WebhookPullRequestClosed",), + ".group_0778": ("WebhookPullRequestConvertedToDraft",), + ".group_0779": ("WebhookPullRequestDemilestoned",), + ".group_0780": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -11845,7 +11767,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0782": ( + ".group_0781": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -11854,7 +11776,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0783": ( + ".group_0782": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -11893,7 +11815,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0784": ( + ".group_0783": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropPullRequest", "WebhookPullRequestLabeledPropPullRequestPropAssignee", @@ -11932,7 +11854,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0785": ( + ".group_0784": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -11971,11 +11893,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0786": ("WebhookPullRequestMilestoned",), - ".group_0787": ("WebhookPullRequestOpened",), - ".group_0788": ("WebhookPullRequestReadyForReview",), - ".group_0789": ("WebhookPullRequestReopened",), - ".group_0790": ( + ".group_0785": ("WebhookPullRequestMilestoned",), + ".group_0786": ("WebhookPullRequestOpened",), + ".group_0787": ("WebhookPullRequestReadyForReview",), + ".group_0788": ("WebhookPullRequestReopened",), + ".group_0789": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -12020,7 +11942,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0791": ( + ".group_0790": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropPullRequest", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", @@ -12058,7 +11980,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0792": ( + ".group_0791": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropPullRequest", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", @@ -12096,7 +12018,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0793": ( + ".group_0792": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -12139,7 +12061,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0794": ( + ".group_0793": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -12179,7 +12101,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0795": ( + ".group_0794": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -12219,7 +12141,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0796": ( + ".group_0795": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -12260,7 +12182,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0797": ( + ".group_0796": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -12300,7 +12222,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0798": ( + ".group_0797": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -12341,7 +12263,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0799": ( + ".group_0798": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropPullRequest", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", @@ -12379,7 +12301,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0800": ( + ".group_0799": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -12425,7 +12347,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0801": ( + ".group_0800": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -12471,7 +12393,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0802": ( + ".group_0801": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -12510,7 +12432,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0803": ( + ".group_0802": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropPullRequest", "WebhookPullRequestUnassignedPropPullRequestPropAssignee", @@ -12549,7 +12471,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0804": ( + ".group_0803": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropPullRequest", "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", @@ -12588,7 +12510,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0805": ( + ".group_0804": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -12627,7 +12549,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0806": ( + ".group_0805": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -12642,13 +12564,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0807": ("WebhookRegistryPackagePublished",), - ".group_0808": ( + ".group_0806": ("WebhookRegistryPackagePublished",), + ".group_0807": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0809": ( + ".group_0808": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -12679,13 +12601,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0810": ("WebhookRegistryPackageUpdated",), - ".group_0811": ( + ".group_0809": ("WebhookRegistryPackageUpdated",), + ".group_0810": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0812": ( + ".group_0811": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -12694,9 +12616,9 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0813": ("WebhookReleaseCreated",), - ".group_0814": ("WebhookReleaseDeleted",), - ".group_0815": ( + ".group_0812": ("WebhookReleaseCreated",), + ".group_0813": ("WebhookReleaseDeleted",), + ".group_0814": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", @@ -12704,7 +12626,7 @@ "WebhookReleaseEditedPropChangesPropTagName", "WebhookReleaseEditedPropChangesPropMakeLatest", ), - ".group_0816": ( + ".group_0815": ( "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", "WebhookReleasePrereleasedPropReleasePropAssetsItems", @@ -12712,19 +12634,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthor", "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0817": ("WebhookReleasePublished",), - ".group_0818": ("WebhookReleaseReleased",), - ".group_0819": ("WebhookReleaseUnpublished",), - ".group_0820": ("WebhookRepositoryAdvisoryPublished",), - ".group_0821": ("WebhookRepositoryAdvisoryReported",), - ".group_0822": ("WebhookRepositoryArchived",), - ".group_0823": ("WebhookRepositoryCreated",), - ".group_0824": ("WebhookRepositoryDeleted",), - ".group_0825": ( + ".group_0816": ("WebhookReleasePublished",), + ".group_0817": ("WebhookReleaseReleased",), + ".group_0818": ("WebhookReleaseUnpublished",), + ".group_0819": ("WebhookRepositoryAdvisoryPublished",), + ".group_0820": ("WebhookRepositoryAdvisoryReported",), + ".group_0821": ("WebhookRepositoryArchived",), + ".group_0822": ("WebhookRepositoryCreated",), + ".group_0823": ("WebhookRepositoryDeleted",), + ".group_0824": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0826": ( + ".group_0825": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -12732,25 +12654,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0827": ("WebhookRepositoryImport",), - ".group_0828": ("WebhookRepositoryPrivatized",), - ".group_0829": ("WebhookRepositoryPublicized",), - ".group_0830": ( + ".group_0826": ("WebhookRepositoryImport",), + ".group_0827": ("WebhookRepositoryPrivatized",), + ".group_0828": ("WebhookRepositoryPublicized",), + ".group_0829": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0831": ("WebhookRepositoryRulesetCreated",), - ".group_0832": ("WebhookRepositoryRulesetDeleted",), - ".group_0833": ("WebhookRepositoryRulesetEdited",), - ".group_0834": ( + ".group_0830": ("WebhookRepositoryRulesetCreated",), + ".group_0831": ("WebhookRepositoryRulesetDeleted",), + ".group_0832": ("WebhookRepositoryRulesetEdited",), + ".group_0833": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0835": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0836": ( + ".group_0834": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0835": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -12758,15 +12680,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0837": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0838": ( + ".group_0836": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0837": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0839": ( + ".group_0838": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -12774,31 +12696,31 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0840": ("WebhookRepositoryUnarchived",), - ".group_0841": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0842": ( + ".group_0839": ("WebhookRepositoryUnarchived",), + ".group_0840": ("WebhookRepositoryVulnerabilityAlertCreate",), + ".group_0841": ( "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ), - ".group_0843": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0844": ( + ".group_0842": ("WebhookRepositoryVulnerabilityAlertReopen",), + ".group_0843": ( "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ), - ".group_0845": ("WebhookSecretScanningAlertCreated",), - ".group_0846": ("WebhookSecretScanningAlertLocationCreated",), - ".group_0847": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0848": ("WebhookSecretScanningAlertPubliclyLeaked",), - ".group_0849": ("WebhookSecretScanningAlertReopened",), - ".group_0850": ("WebhookSecretScanningAlertResolved",), - ".group_0851": ("WebhookSecretScanningAlertValidated",), - ".group_0852": ("WebhookSecretScanningScanCompleted",), - ".group_0853": ("WebhookSecurityAdvisoryPublished",), - ".group_0854": ("WebhookSecurityAdvisoryUpdated",), - ".group_0855": ("WebhookSecurityAdvisoryWithdrawn",), - ".group_0856": ( + ".group_0844": ("WebhookSecretScanningAlertCreated",), + ".group_0845": ("WebhookSecretScanningAlertLocationCreated",), + ".group_0846": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0847": ("WebhookSecretScanningAlertPubliclyLeaked",), + ".group_0848": ("WebhookSecretScanningAlertReopened",), + ".group_0849": ("WebhookSecretScanningAlertResolved",), + ".group_0850": ("WebhookSecretScanningAlertValidated",), + ".group_0851": ("WebhookSecretScanningScanCompleted",), + ".group_0852": ("WebhookSecurityAdvisoryPublished",), + ".group_0853": ("WebhookSecurityAdvisoryUpdated",), + ".group_0854": ("WebhookSecurityAdvisoryWithdrawn",), + ".group_0855": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", @@ -12808,22 +12730,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0857": ("WebhookSecurityAndAnalysis",), - ".group_0858": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0859": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0860": ("WebhookSponsorshipCancelled",), - ".group_0861": ("WebhookSponsorshipCreated",), - ".group_0862": ( + ".group_0856": ("WebhookSecurityAndAnalysis",), + ".group_0857": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0858": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0859": ("WebhookSponsorshipCancelled",), + ".group_0860": ("WebhookSponsorshipCreated",), + ".group_0861": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", ), - ".group_0863": ("WebhookSponsorshipPendingCancellation",), - ".group_0864": ("WebhookSponsorshipPendingTierChange",), - ".group_0865": ("WebhookSponsorshipTierChanged",), - ".group_0866": ("WebhookStarCreated",), - ".group_0867": ("WebhookStarDeleted",), - ".group_0868": ( + ".group_0862": ("WebhookSponsorshipPendingCancellation",), + ".group_0863": ("WebhookSponsorshipPendingTierChange",), + ".group_0864": ("WebhookSponsorshipTierChanged",), + ".group_0865": ("WebhookStarCreated",), + ".group_0866": ("WebhookStarDeleted",), + ".group_0867": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -12837,16 +12759,16 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0869": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0870": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0871": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0872": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0873": ("WebhookSubIssuesParentIssueAdded",), - ".group_0874": ("WebhookSubIssuesParentIssueRemoved",), - ".group_0875": ("WebhookSubIssuesSubIssueAdded",), - ".group_0876": ("WebhookSubIssuesSubIssueRemoved",), - ".group_0877": ("WebhookTeamAdd",), - ".group_0878": ( + ".group_0868": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0869": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0870": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0871": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0872": ("WebhookSubIssuesParentIssueAdded",), + ".group_0873": ("WebhookSubIssuesParentIssueRemoved",), + ".group_0874": ("WebhookSubIssuesSubIssueAdded",), + ".group_0875": ("WebhookSubIssuesSubIssueRemoved",), + ".group_0876": ("WebhookTeamAdd",), + ".group_0877": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -12854,7 +12776,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ), - ".group_0879": ( + ".group_0878": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -12862,7 +12784,7 @@ "WebhookTeamCreatedPropRepositoryPropOwner", "WebhookTeamCreatedPropRepositoryPropPermissions", ), - ".group_0880": ( + ".group_0879": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -12870,7 +12792,7 @@ "WebhookTeamDeletedPropRepositoryPropOwner", "WebhookTeamDeletedPropRepositoryPropPermissions", ), - ".group_0881": ( + ".group_0880": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -12886,7 +12808,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0882": ( + ".group_0881": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -12894,48 +12816,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ), - ".group_0883": ("WebhookWatchStarted",), - ".group_0884": ( + ".group_0882": ("WebhookWatchStarted",), + ".group_0883": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0885": ( + ".group_0884": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0886": ( + ".group_0885": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0887": ( + ".group_0886": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0888": ( + ".group_0887": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0889": ( + ".group_0888": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0890": ( + ".group_0889": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0891": ( + ".group_0890": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0892": ( + ".group_0891": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0893": ( + ".group_0892": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflowRun", "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", @@ -12954,7 +12876,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0894": ( + ".group_0893": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflowRun", "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", @@ -12973,7 +12895,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0895": ( + ".group_0894": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflowRun", "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", @@ -12992,392 +12914,392 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0896": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0897": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0898": ("AppHookConfigPatchBody",), - ".group_0899": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0900": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0901": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0902": ("ApplicationsClientIdTokenPostBody",), - ".group_0903": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0904": ("ApplicationsClientIdTokenPatchBody",), - ".group_0905": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0906": ("CredentialsRevokePostBody",), - ".group_0907": ("EmojisGetResponse200",), - ".group_0908": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",), - ".group_0909": ( + ".group_0895": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0896": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0897": ("AppHookConfigPatchBody",), + ".group_0898": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0899": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0900": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0901": ("ApplicationsClientIdTokenPostBody",), + ".group_0902": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0903": ("ApplicationsClientIdTokenPatchBody",), + ".group_0904": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0905": ("CredentialsRevokePostBody",), + ".group_0906": ("EmojisGetResponse200",), + ".group_0907": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",), + ".group_0908": ( "EnterprisesEnterpriseActionsHostedRunnersPostBody", "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage", ), - ".group_0910": ( + ".group_0909": ( "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200", ), - ".group_0911": ( + ".group_0910": ( "EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200", ), - ".group_0912": ( + ".group_0911": ( "EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200", ), - ".group_0913": ( + ".group_0912": ( "EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200", ), - ".group_0914": ( + ".group_0913": ( "EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody", ), - ".group_0915": ("EnterprisesEnterpriseActionsPermissionsPutBody",), - ".group_0916": ( + ".group_0914": ("EnterprisesEnterpriseActionsPermissionsPutBody",), + ".group_0915": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200", ), - ".group_0917": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), - ".group_0918": ( + ".group_0916": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), + ".group_0917": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", "RunnerGroupsEnterprise", ), - ".group_0919": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), - ".group_0920": ( + ".group_0918": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), + ".group_0919": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody", ), - ".group_0921": ( + ".group_0920": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", ), - ".group_0922": ( + ".group_0921": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody", ), - ".group_0923": ( + ".group_0922": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0924": ( + ".group_0923": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody", ), - ".group_0925": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), - ".group_0926": ( + ".group_0924": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), + ".group_0925": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody", ), - ".group_0927": ( + ".group_0926": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201", ), - ".group_0928": ( + ".group_0927": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200", ), - ".group_0929": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), - ".group_0930": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), - ".group_0931": ( + ".group_0928": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), + ".group_0929": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), + ".group_0930": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200", ), - ".group_0932": ( + ".group_0931": ( "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody", ), - ".group_0933": ( + ".group_0932": ( "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBody", ), - ".group_0934": ( + ".group_0933": ( "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBody", ), - ".group_0935": ( + ".group_0934": ( "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBody", ), - ".group_0936": ("EnterprisesEnterpriseAuditLogStreamsPostBody",), - ".group_0937": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",), - ".group_0938": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",), - ".group_0939": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), - ".group_0940": ( + ".group_0935": ("EnterprisesEnterpriseAuditLogStreamsPostBody",), + ".group_0936": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",), + ".group_0937": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",), + ".group_0938": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), + ".group_0939": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0941": ( + ".group_0940": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0942": ( + ".group_0941": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0943": ( + ".group_0942": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0944": ( + ".group_0943": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0945": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), - ".group_0946": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",), - ".group_0947": ("EnterprisesEnterpriseMembersUsernameCopilotGetResponse200",), - ".group_0948": ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",), - ".group_0949": ("EnterprisesEnterpriseNetworkConfigurationsPostBody",), - ".group_0950": ( + ".group_0944": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), + ".group_0945": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",), + ".group_0946": ("EnterprisesEnterpriseMembersUsernameCopilotGetResponse200",), + ".group_0947": ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",), + ".group_0948": ("EnterprisesEnterpriseNetworkConfigurationsPostBody",), + ".group_0949": ( "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody", ), - ".group_0951": ("EnterprisesEnterprisePropertiesSchemaPatchBody",), - ".group_0952": ("EnterprisesEnterpriseRulesetsPostBody",), - ".group_0953": ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",), - ".group_0954": ("EnterprisesEnterpriseSettingsBillingCostCentersPostBody",), - ".group_0955": ( + ".group_0950": ("EnterprisesEnterprisePropertiesSchemaPatchBody",), + ".group_0951": ("EnterprisesEnterpriseRulesetsPostBody",), + ".group_0952": ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",), + ".group_0953": ("EnterprisesEnterpriseSettingsBillingCostCentersPostBody",), + ".group_0954": ( "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200", "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems", ), - ".group_0956": ( + ".group_0955": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody", ), - ".group_0957": ( + ".group_0956": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", ), - ".group_0958": ( + ".group_0957": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", ), - ".group_0959": ( + ".group_0958": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", ), - ".group_0960": ( + ".group_0959": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", ), - ".group_0961": ( + ".group_0960": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0962": ( + ".group_0961": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0963": ( + ".group_0962": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0964": ("GistsGistIdCommentsPostBody",), - ".group_0965": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0966": ("GistsGistIdStarGetResponse404",), - ".group_0967": ("InstallationRepositoriesGetResponse200",), - ".group_0968": ("MarkdownPostBody",), - ".group_0969": ("NotificationsPutBody",), - ".group_0970": ("NotificationsPutResponse202",), - ".group_0971": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0972": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), - ".group_0973": ("OrganizationsOrgDependabotRepositoryAccessPatchBody",), - ".group_0974": ( + ".group_0963": ("GistsGistIdCommentsPostBody",), + ".group_0964": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0965": ("GistsGistIdStarGetResponse404",), + ".group_0966": ("InstallationRepositoriesGetResponse200",), + ".group_0967": ("MarkdownPostBody",), + ".group_0968": ("NotificationsPutBody",), + ".group_0969": ("NotificationsPutResponse202",), + ".group_0970": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0971": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), + ".group_0972": ("OrganizationsOrgDependabotRepositoryAccessPatchBody",), + ".group_0973": ( "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody", ), - ".group_0975": ("OrgsOrgPatchBody",), - ".group_0976": ( + ".group_0974": ("OrgsOrgPatchBody",), + ".group_0975": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0977": ("OrgsOrgActionsHostedRunnersGetResponse200",), - ".group_0978": ( + ".group_0976": ("OrgsOrgActionsHostedRunnersGetResponse200",), + ".group_0977": ( "OrgsOrgActionsHostedRunnersPostBody", "OrgsOrgActionsHostedRunnersPostBodyPropImage", ), - ".group_0979": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), - ".group_0980": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), - ".group_0981": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), - ".group_0982": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), - ".group_0983": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), - ".group_0984": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0985": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0986": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0987": ( + ".group_0978": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), + ".group_0979": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), + ".group_0980": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), + ".group_0981": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), + ".group_0982": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), + ".group_0983": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0984": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0985": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0986": ( "OrgsOrgActionsRunnerGroupsGetResponse200", "RunnerGroupsOrg", ), - ".group_0988": ("OrgsOrgActionsRunnerGroupsPostBody",), - ".group_0989": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), - ".group_0990": ( + ".group_0987": ("OrgsOrgActionsRunnerGroupsPostBody",), + ".group_0988": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), + ".group_0989": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200", ), - ".group_0991": ( + ".group_0990": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", ), - ".group_0992": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), - ".group_0993": ( + ".group_0991": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), + ".group_0992": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0994": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), - ".group_0995": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0996": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0997": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0998": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0999": ( + ".group_0993": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), + ".group_0994": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0995": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0996": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0997": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0998": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_1000": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_1001": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_1002": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_1003": ( + ".group_0999": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_1000": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_1001": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_1002": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_1004": ("OrgsOrgActionsVariablesPostBody",), - ".group_1005": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_1006": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_1007": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_1008": ("OrgsOrgAttestationsBulkListPostBody",), - ".group_1009": ( + ".group_1003": ("OrgsOrgActionsVariablesPostBody",), + ".group_1004": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_1005": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_1006": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_1007": ("OrgsOrgAttestationsBulkListPostBody",), + ".group_1008": ( "OrgsOrgAttestationsBulkListPostResponse200", "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", ), - ".group_1010": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0",), - ".group_1011": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1",), - ".group_1012": ( + ".group_1009": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0",), + ".group_1010": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1",), + ".group_1011": ( "OrgsOrgAttestationsSubjectDigestGetResponse200", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_1013": ( + ".group_1012": ( "OrgsOrgCampaignsPostBody", "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", ), - ".group_1014": ("OrgsOrgCampaignsCampaignNumberPatchBody",), - ".group_1015": ( + ".group_1013": ("OrgsOrgCampaignsCampaignNumberPatchBody",), + ".group_1014": ( "OrgsOrgCodeSecurityConfigurationsPostBody", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_1016": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), - ".group_1017": ( + ".group_1015": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), + ".group_1016": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_1018": ( + ".group_1017": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_1019": ( + ".group_1018": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_1020": ( + ".group_1019": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_1021": ("OrgsOrgCodespacesGetResponse200",), - ".group_1022": ("OrgsOrgCodespacesAccessPutBody",), - ".group_1023": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_1024": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_1025": ( + ".group_1020": ("OrgsOrgCodespacesGetResponse200",), + ".group_1021": ("OrgsOrgCodespacesAccessPutBody",), + ".group_1022": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_1023": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_1024": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_1026": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_1027": ( + ".group_1025": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_1026": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_1028": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1029": ("OrgsOrgCopilotBillingSeatsGetResponse200",), - ".group_1030": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_1031": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_1032": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_1033": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_1034": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_1035": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_1036": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_1037": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_1038": ("OrgsOrgCustomRepositoryRolesGetResponse200",), - ".group_1039": ( + ".group_1027": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1028": ("OrgsOrgCopilotBillingSeatsGetResponse200",), + ".group_1029": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_1030": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_1031": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_1032": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_1033": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_1034": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_1035": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_1036": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_1037": ("OrgsOrgCustomRepositoryRolesGetResponse200",), + ".group_1038": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_1040": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_1041": ( + ".group_1039": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_1040": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_1042": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_1043": ( + ".group_1041": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_1042": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_1044": ( + ".group_1043": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_1045": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_1046": ("OrgsOrgInstallationsGetResponse200",), - ".group_1047": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_1048": ("OrgsOrgInvitationsPostBody",), - ".group_1049": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_1050": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_1051": ("OrgsOrgMigrationsPostBody",), - ".group_1052": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_1053": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_1054": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_1055": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_1056": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_1057": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_1058": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_1059": ( + ".group_1044": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_1045": ("OrgsOrgInstallationsGetResponse200",), + ".group_1046": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_1047": ("OrgsOrgInvitationsPostBody",), + ".group_1048": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_1049": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_1050": ("OrgsOrgMigrationsPostBody",), + ".group_1051": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_1052": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_1053": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_1054": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_1055": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_1056": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_1057": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_1058": ( "OrgsOrgPrivateRegistriesGetResponse200", "OrgPrivateRegistryConfiguration", ), - ".group_1060": ("OrgsOrgPrivateRegistriesPostBody",), - ".group_1061": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), - ".group_1062": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), - ".group_1063": ("OrgsOrgProjectsPostBody",), - ".group_1064": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_1065": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_1066": ( + ".group_1059": ("OrgsOrgPrivateRegistriesPostBody",), + ".group_1060": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), + ".group_1061": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), + ".group_1062": ("OrgsOrgProjectsPostBody",), + ".group_1063": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_1064": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_1065": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_1067": ("OrgsOrgRulesetsPostBody",), - ".group_1068": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_1069": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",), - ".group_1070": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), - ".group_1071": ( + ".group_1066": ("OrgsOrgRulesetsPostBody",), + ".group_1067": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_1068": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",), + ".group_1069": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), + ".group_1070": ( "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody", ), - ".group_1072": ("OrgsOrgTeamsPostBody",), - ".group_1073": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_1074": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_1075": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_1076": ( + ".group_1071": ("OrgsOrgTeamsPostBody",), + ".group_1072": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_1073": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_1074": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_1075": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_1077": ( + ".group_1076": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1078": ( + ".group_1077": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1079": ( + ".group_1078": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_1080": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), - ".group_1081": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_1082": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_1083": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_1084": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_1085": ( + ".group_1079": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), + ".group_1080": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_1081": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_1082": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_1083": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_1084": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_1086": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_1087": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_1088": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_1089": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_1090": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_1091": ( + ".group_1085": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_1086": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_1087": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_1088": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_1089": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_1090": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_1092": ( + ".group_1091": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_1093": ("ProjectsColumnsColumnIdPatchBody",), - ".group_1094": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_1095": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_1096": ( + ".group_1092": ("ProjectsColumnsColumnIdPatchBody",), + ".group_1093": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_1094": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_1095": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_1097": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_1098": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_1099": ("ProjectsProjectIdDeleteResponse403",), - ".group_1100": ("ProjectsProjectIdPatchBody",), - ".group_1101": ("ProjectsProjectIdPatchResponse403",), - ".group_1102": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_1103": ("ProjectsProjectIdColumnsPostBody",), - ".group_1104": ("ReposOwnerRepoDeleteResponse403",), - ".group_1105": ( + ".group_1096": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_1097": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_1098": ("ProjectsProjectIdDeleteResponse403",), + ".group_1099": ("ProjectsProjectIdPatchBody",), + ".group_1100": ("ProjectsProjectIdPatchResponse403",), + ".group_1101": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_1102": ("ProjectsProjectIdColumnsPostBody",), + ".group_1103": ("ReposOwnerRepoDeleteResponse403",), + ".group_1104": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", @@ -13388,55 +13310,55 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_1106": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_1107": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_1108": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_1109": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_1110": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_1111": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_1112": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_1113": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_1114": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_1115": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_1116": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_1117": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_1118": ( + ".group_1105": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_1106": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_1107": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_1108": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_1109": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_1110": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_1111": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_1112": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_1113": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_1114": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_1115": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_1116": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_1117": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_1119": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_1120": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_1121": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_1122": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_1123": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_1124": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_1125": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_1126": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_1127": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_1128": ( + ".group_1118": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_1119": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_1120": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_1121": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_1122": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_1123": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_1124": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_1125": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_1126": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_1127": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_1129": ( + ".group_1128": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_1130": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_1131": ( + ".group_1129": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_1130": ( "ReposOwnerRepoAttestationsPostBody", "ReposOwnerRepoAttestationsPostBodyPropBundle", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", ), - ".group_1132": ("ReposOwnerRepoAttestationsPostResponse201",), - ".group_1133": ( + ".group_1131": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_1132": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_1134": ("ReposOwnerRepoAutolinksPostBody",), - ".group_1135": ( + ".group_1133": ("ReposOwnerRepoAutolinksPostBody",), + ".group_1134": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -13445,379 +13367,379 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_1136": ( + ".group_1135": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_1137": ( + ".group_1136": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_1138": ( + ".group_1137": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_1139": ( + ".group_1138": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_1140": ( + ".group_1139": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_1141": ( + ".group_1140": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody", ), - ".group_1142": ( + ".group_1141": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody", ), - ".group_1143": ( + ".group_1142": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody", ), - ".group_1144": ( + ".group_1143": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_1145": ( + ".group_1144": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_1146": ( + ".group_1145": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_1147": ( + ".group_1146": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody", ), - ".group_1148": ( + ".group_1147": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody", ), - ".group_1149": ( + ".group_1148": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody", ), - ".group_1150": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_1151": ( + ".group_1149": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_1150": ( "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody", ), - ".group_1152": ( + ".group_1151": ( "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200", ), - ".group_1153": ( + ".group_1152": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_1154": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_1155": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_1156": ( + ".group_1153": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_1154": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_1155": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_1157": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_1158": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_1159": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_1160": ( + ".group_1156": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_1157": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_1158": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_1159": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_1161": ( + ".group_1160": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_1162": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_1163": ( + ".group_1161": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_1162": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_1164": ( + ".group_1163": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_1165": ( + ".group_1164": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_1166": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_1167": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_1168": ("ReposOwnerRepoCodespacesPostBody",), - ".group_1169": ( + ".group_1165": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_1166": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_1167": ("ReposOwnerRepoCodespacesPostBody",), + ".group_1168": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_1170": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_1171": ( + ".group_1169": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_1170": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_1172": ( + ".group_1171": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_1173": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_1174": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_1175": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_1176": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_1177": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_1178": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_1179": ( + ".group_1172": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_1173": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_1174": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_1175": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_1176": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_1177": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_1178": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_1180": ( + ".group_1179": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_1181": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_1182": ( + ".group_1180": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_1181": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_1183": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_1184": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_1185": ( + ".group_1182": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_1183": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_1184": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1186": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1187": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1188": ( + ".group_1185": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_1186": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_1187": ( "ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody", ), - ".group_1189": ( + ".group_1188": ( "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody", ), - ".group_1190": ( + ".group_1189": ( "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200", ), - ".group_1191": ( + ".group_1190": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1192": ( + ".group_1191": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1193": ( + ".group_1192": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1194": ( + ".group_1193": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1195": ( + ".group_1194": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1196": ( + ".group_1195": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1197": ( + ".group_1196": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1198": ( + ".group_1197": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1199": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1200": ( + ".group_1198": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_1199": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1201": ("ReposOwnerRepoForksPostBody",), - ".group_1202": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1203": ( + ".group_1200": ("ReposOwnerRepoForksPostBody",), + ".group_1201": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_1202": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1204": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1205": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1206": ( + ".group_1203": ("ReposOwnerRepoGitRefsPostBody",), + ".group_1204": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_1205": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1207": ( + ".group_1206": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1208": ( + ".group_1207": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1209": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1210": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1211": ("ReposOwnerRepoImportPutBody",), - ".group_1212": ("ReposOwnerRepoImportPatchBody",), - ".group_1213": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1214": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1215": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1216": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1217": ( + ".group_1208": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_1209": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_1210": ("ReposOwnerRepoImportPutBody",), + ".group_1211": ("ReposOwnerRepoImportPatchBody",), + ".group_1212": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_1213": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_1214": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_1215": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_1216": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1218": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1219": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1220": ( + ".group_1217": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_1218": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_1219": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1221": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1222": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1223": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1224": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1225": ( + ".group_1220": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_1221": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_1222": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_1223": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_1224": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1226": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1227": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1228": ( + ".group_1225": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_1226": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_1227": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1229": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1230": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1231": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1232": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), - ".group_1233": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), - ".group_1234": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), - ".group_1235": ("ReposOwnerRepoKeysPostBody",), - ".group_1236": ("ReposOwnerRepoLabelsPostBody",), - ".group_1237": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1238": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1239": ("ReposOwnerRepoMergesPostBody",), - ".group_1240": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1241": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1242": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1243": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1244": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1245": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1246": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1247": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1248": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1249": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1250": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1251": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1252": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1253": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1254": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1255": ("ReposOwnerRepoProjectsPostBody",), - ".group_1256": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1257": ("ReposOwnerRepoPullsPostBody",), - ".group_1258": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1259": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1260": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1261": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1262": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1263": ( + ".group_1228": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_1229": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1230": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1231": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), + ".group_1232": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), + ".group_1233": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), + ".group_1234": ("ReposOwnerRepoKeysPostBody",), + ".group_1235": ("ReposOwnerRepoLabelsPostBody",), + ".group_1236": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1237": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1238": ("ReposOwnerRepoMergesPostBody",), + ".group_1239": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1240": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1241": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1242": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1243": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1244": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1245": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1246": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1247": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1248": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1249": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1250": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1251": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1252": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1253": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1254": ("ReposOwnerRepoProjectsPostBody",), + ".group_1255": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1256": ("ReposOwnerRepoPullsPostBody",), + ".group_1257": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1258": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1259": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1260": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1261": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1262": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1264": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1265": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1266": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1267": ( + ".group_1263": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1264": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1265": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1266": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1268": ( + ".group_1267": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1269": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1270": ( + ".group_1268": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1269": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1271": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1272": ( + ".group_1270": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1271": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1273": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1274": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1275": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1276": ("ReposOwnerRepoReleasesPostBody",), - ".group_1277": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1278": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1279": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1280": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1281": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1282": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1283": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1284": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), - ".group_1285": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1286": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1287": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1288": ("ReposOwnerRepoTopicsPutBody",), - ".group_1289": ("ReposOwnerRepoTransferPostBody",), - ".group_1290": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1291": ( + ".group_1272": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1273": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1274": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1275": ("ReposOwnerRepoReleasesPostBody",), + ".group_1276": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1277": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1278": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1279": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1280": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1281": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1282": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1283": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), + ".group_1284": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1285": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1286": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1287": ("ReposOwnerRepoTopicsPutBody",), + ".group_1288": ("ReposOwnerRepoTransferPostBody",), + ".group_1289": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1290": ( "ScimV2OrganizationsOrgUsersPostBody", "ScimV2OrganizationsOrgUsersPostBodyPropName", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", ), - ".group_1292": ( + ".group_1291": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBody", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", ), - ".group_1293": ( + ".group_1292": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", ), - ".group_1294": ("TeamsTeamIdPatchBody",), - ".group_1295": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1296": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1297": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1298": ( + ".group_1293": ("TeamsTeamIdPatchBody",), + ".group_1294": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1295": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1296": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1297": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1299": ( + ".group_1298": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1300": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1301": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1302": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1303": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1304": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1305": ( + ".group_1299": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1300": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1301": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1302": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1303": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1304": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBody", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_1306": ("UserPatchBody",), - ".group_1307": ("UserCodespacesGetResponse200",), - ".group_1308": ("UserCodespacesPostBodyOneof0",), - ".group_1309": ( + ".group_1305": ("UserPatchBody",), + ".group_1306": ("UserCodespacesGetResponse200",), + ".group_1307": ("UserCodespacesPostBodyOneof0",), + ".group_1308": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1310": ( + ".group_1309": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1311": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1312": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1313": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1314": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1315": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1316": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1317": ("UserEmailVisibilityPatchBody",), - ".group_1318": ("UserEmailsPostBodyOneof0",), - ".group_1319": ("UserEmailsDeleteBodyOneof0",), - ".group_1320": ("UserGpgKeysPostBody",), - ".group_1321": ("UserInstallationsGetResponse200",), - ".group_1322": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1323": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1324": ("UserKeysPostBody",), - ".group_1325": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1326": ("UserMigrationsPostBody",), - ".group_1327": ("UserProjectsPostBody",), - ".group_1328": ("UserReposPostBody",), - ".group_1329": ("UserSocialAccountsPostBody",), - ".group_1330": ("UserSocialAccountsDeleteBody",), - ".group_1331": ("UserSshSigningKeysPostBody",), - ".group_1332": ("UsersUsernameAttestationsBulkListPostBody",), - ".group_1333": ( + ".group_1310": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1311": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1312": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1313": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1314": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1315": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1316": ("UserEmailVisibilityPatchBody",), + ".group_1317": ("UserEmailsPostBodyOneof0",), + ".group_1318": ("UserEmailsDeleteBodyOneof0",), + ".group_1319": ("UserGpgKeysPostBody",), + ".group_1320": ("UserInstallationsGetResponse200",), + ".group_1321": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1322": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1323": ("UserKeysPostBody",), + ".group_1324": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1325": ("UserMigrationsPostBody",), + ".group_1326": ("UserProjectsPostBody",), + ".group_1327": ("UserReposPostBody",), + ".group_1328": ("UserSocialAccountsPostBody",), + ".group_1329": ("UserSocialAccountsDeleteBody",), + ".group_1330": ("UserSshSigningKeysPostBody",), + ".group_1331": ("UsersUsernameAttestationsBulkListPostBody",), + ".group_1332": ( "UsersUsernameAttestationsBulkListPostResponse200", "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", "UsersUsernameAttestationsBulkListPostResponse200PropPageInfo", ), - ".group_1334": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",), - ".group_1335": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",), - ".group_1336": ( + ".group_1333": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",), + ".group_1334": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",), + ".group_1335": ( "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", 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 5f96157cd..0d0db1bcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0063.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0063.py @@ -165,6 +165,10 @@ class CodeSecurityConfigurationPropCodeScanningOptions(GitHubModel): Feature options for code scanning """ + allow_advanced: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether to allow repos which use advanced setup" + ) + class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions(GitHubModel): """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions 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 a49412509..f4c8c5941 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0064.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0064.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,17 @@ from githubkit.utils import UNSET -class CodeScanningDefaultSetupOptions(GitHubModel): - """CodeScanningDefaultSetupOptions +class CodeScanningOptions(GitHubModel): + """CodeScanningOptions - Feature options for code scanning default setup + Security Configuration feature options for code scanning """ - runner_type: Missing[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'.", + allow_advanced: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether to allow repos which use advanced setup" ) -model_rebuild(CodeScanningDefaultSetupOptions) +model_rebuild(CodeScanningOptions) -__all__ = ("CodeScanningDefaultSetupOptions",) +__all__ = ("CodeScanningOptions",) 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 a95ae9b0d..a49412509 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0065.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0065.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_0063 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/ghec_v2022_11_28/models/group_0066.py b/githubkit/versions/ghec_v2022_11_28/models/group_0066.py index 088060e91..a95ae9b0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0066.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0066.py @@ -17,35 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0061 import SimpleRepository - - -class CodeSecurityConfigurationRepositories(GitHubModel): - """CodeSecurityConfigurationRepositories - - Repositories associated with a code security configuration and attachment status - """ - - 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.", +from .group_0063 import CodeSecurityConfiguration + + +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", + ) ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" ) -model_rebuild(CodeSecurityConfigurationRepositories) +model_rebuild(CodeSecurityDefaultConfigurationsItems) -__all__ = ("CodeSecurityConfigurationRepositories",) +__all__ = ("CodeSecurityDefaultConfigurationsItems",) 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 c8c7be2a0..088060e91 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0067.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0067.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,44 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0061 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.", - ) - ) - dependabot_alerts_enabled_for_new_repositories: bool = Field( - description="Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this\nenterprise." - ) - secret_scanning_enabled_for_new_repositories: bool = Field( - description="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\nenterprise." - ) - 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." - ) - 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_non_provider_patterns_enabled_for_new_repositories: Missing[ - bool +class CodeSecurityConfigurationRepositories(GitHubModel): + """CodeSecurityConfigurationRepositories + + Repositories associated with a code security configuration and attachment status + """ + + status: Missing[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] ] = Field( default=UNSET, - description="Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", + description="The attachment status of the code security configuration on the repository.", ) - 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.", + repository: Missing[SimpleRepository] = Field( + default=UNSET, title="Simple Repository", description="A GitHub repository." ) -model_rebuild(EnterpriseSecurityAnalysisSettings) +model_rebuild(CodeSecurityConfigurationRepositories) -__all__ = ("EnterpriseSecurityAnalysisSettings",) +__all__ = ("CodeSecurityConfigurationRepositories",) 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 bb791ce22..c8c7be2a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0068.py @@ -18,46 +18,43 @@ from githubkit.utils import UNSET -class GetConsumedLicenses(GitHubModel): - """Enterprise Consumed Licenses - - A breakdown of the licenses consumed by an enterprise. - """ - - total_seats_consumed: Missing[int] = Field(default=UNSET) - total_seats_purchased: Missing[int] = Field(default=UNSET) - users: Missing[list[GetConsumedLicensesPropUsersItems]] = Field(default=UNSET) - - -class GetConsumedLicensesPropUsersItems(GitHubModel): - """GetConsumedLicensesPropUsersItems""" - - 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(GetConsumedLicenses) -model_rebuild(GetConsumedLicensesPropUsersItems) - -__all__ = ( - "GetConsumedLicenses", - "GetConsumedLicensesPropUsersItems", -) +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.", + ) + ) + dependabot_alerts_enabled_for_new_repositories: bool = Field( + description="Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this\nenterprise." + ) + secret_scanning_enabled_for_new_repositories: bool = Field( + description="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\nenterprise." + ) + 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." + ) + 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_non_provider_patterns_enabled_for_new_repositories: Missing[ + bool + ] = Field( + default=UNSET, + description="Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", + ) + 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.", + ) + + +model_rebuild(EnterpriseSecurityAnalysisSettings) + +__all__ = ("EnterpriseSecurityAnalysisSettings",) 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 51fd6a419..bb791ce22 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0069.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0069.py @@ -18,36 +18,46 @@ from githubkit.utils import UNSET -class TeamSimple(GitHubModel): - """Team Simple +class GetConsumedLicenses(GitHubModel): + """Enterprise Consumed Licenses - Groups of organization members that gives permissions on specified repositories. + A breakdown of the licenses consumed by an enterprise. """ - 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" + total_seats_consumed: Missing[int] = Field(default=UNSET) + total_seats_purchased: Missing[int] = Field(default=UNSET) + users: Missing[list[GetConsumedLicensesPropUsersItems]] = Field(default=UNSET) + + +class GetConsumedLicensesPropUsersItems(GitHubModel): + """GetConsumedLicensesPropUsersItems""" + + 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." ) - 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",) + 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) + +__all__ = ( + "GetConsumedLicenses", + "GetConsumedLicensesPropUsersItems", +) 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 9358345df..51fd6a419 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0070.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0070.py @@ -17,45 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0069 import TeamSimple - -class Team(GitHubModel): - """Team +class TeamSimple(GitHubModel): + """Team Simple Groups of organization members that gives permissions on specified repositories. """ - id: int = Field() + id: int = Field(description="Unique identifier of the team") 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() + 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() - parent: Union[None, TeamSimple] = Field() - - -class TeamPropPermissions(GitHubModel): - """TeamPropPermissions""" - - pull: bool = Field() - triage: bool = Field() - push: bool = Field() - maintain: bool = Field() - admin: bool = Field() + slug: str = Field() + ldap_dn: Missing[str] = Field( + default=UNSET, + description="Distinguished Name (DN) that team maps to within LDAP environment", + ) -model_rebuild(Team) -model_rebuild(TeamPropPermissions) +model_rebuild(TeamSimple) -__all__ = ( - "Team", - "TeamPropPermissions", -) +__all__ = ("TeamSimple",) 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 0a15a671c..f4e3ae875 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0071.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0071.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,74 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0036 import OrganizationSimple -from .group_0070 import Team +from .group_0070 import TeamSimple -class CopilotSeatDetails(GitHubModel): - """Copilot Business Seat Detail +class Team(GitHubModel): + """Team - Information about a Copilot Business seat assignment for a user, team, or - organization. - """ - - assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) - assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( - default=UNSET, - description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", - ) - pending_cancellation_date: Missing[Union[date, None]] = Field( - default=UNSET, - description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", - ) - last_activity_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", - ) - last_activity_editor: Missing[Union[str, None]] = Field( - default=UNSET, - description="Last editor that was used by the user for a GitHub Copilot completion.", - ) - created_at: datetime = Field( - description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", - ) - plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( - default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", - ) - - -class EnterpriseTeam(GitHubModel): - """Enterprise Team - - Group of enterprise owners and/or members + Groups of organization members that gives permissions on specified repositories. """ id: int = Field() + node_id: str = Field() name: str = Field() - description: Missing[str] = Field(default=UNSET) 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() - sync_to_organizations: Missing[str] = Field(default=UNSET) - organization_selection_type: Missing[str] = Field(default=UNSET) - group_id: Missing[Union[str, None]] = Field(default=UNSET) - group_name: Missing[Union[str, None]] = Field(default=UNSET) html_url: str = Field() members_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() + 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(CopilotSeatDetails) -model_rebuild(EnterpriseTeam) +model_rebuild(Team) +model_rebuild(TeamPropPermissions) __all__ = ( - "CopilotSeatDetails", - "EnterpriseTeam", + "Team", + "TeamPropPermissions", ) 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 b2ecce70b..663d46c92 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0072.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0072.py @@ -9,350 +9,83 @@ from __future__ import annotations -from datetime import date -from typing import Union +from datetime import date, datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0036 import OrganizationSimple +from .group_0071 import Team -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 Chat. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, - description="The training date for the custom model (if applicable).", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", - ) - total_chats: Missing[int] = Field( - default=UNSET, - description="Total number of chats initiated by users on github.com.", - ) - - -class CopilotIdeChat(ExtraGitHubModel): - """CopilotIdeChat - - Usage metrics for Copilot Chat in the IDE. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat in the IDE.", - ) - editors: Missing[list[CopilotIdeChatPropEditorsItems]] = Field(default=UNSET) - - -class CopilotIdeChatPropEditorsItems(GitHubModel): - """CopilotIdeChatPropEditorsItems - - Copilot Chat metrics, for active editors. - """ - - name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who prompted Copilot Chat in the specified editor.", - ) - models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", - ) - - -class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeChatPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who prompted Copilot Chat in the given editor and model.", - ) - total_chats: Missing[int] = Field( - default=UNSET, - description="The total number of chats initiated by users in the given editor and model.", - ) - total_chat_insertion_events: Missing[int] = Field( - default=UNSET, - description="The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor.", - ) - total_chat_copy_events: Missing[int] = Field( - default=UNSET, - description="The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor.", - ) - - -class CopilotDotcomPullRequests(ExtraGitHubModel): - """CopilotDotcomPullRequests - - Usage metrics for Copilot for pull requests. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once.", - ) - repositories: Missing[list[CopilotDotcomPullRequestsPropRepositoriesItems]] = Field( - default=UNSET, - description="Repositories in which users used Copilot for Pull Requests to generate pull request summaries", - ) - - -class CopilotDotcomPullRequestsPropRepositoriesItems(GitHubModel): - """CopilotDotcomPullRequestsPropRepositoriesItems""" - - name: Missing[str] = Field(default=UNSET, description="Repository name") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository.", - ) - models: Missing[ - list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems] - ] = Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", - ) - - -class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel): - """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot pull request summaries. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." - ) - total_pr_summaries_created: Missing[int] = Field( - default=UNSET, - description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", - ) - - -class CopilotIdeCodeCompletions(ExtraGitHubModel): - """CopilotIdeCodeCompletions - - Usage metrics for Copilot editor code completions in the IDE. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances.", - ) - languages: Missing[list[CopilotIdeCodeCompletionsPropLanguagesItems]] = Field( - default=UNSET, description="Code completion metrics for active languages." - ) - editors: Missing[list[CopilotIdeCodeCompletionsPropEditorsItems]] = Field( - default=UNSET - ) - - -class CopilotIdeCodeCompletionsPropLanguagesItems(GitHubModel): - """CopilotIdeCodeCompletionsPropLanguagesItems +class CopilotSeatDetails(GitHubModel): + """Copilot Business Seat Detail - Usage metrics for a given language for the given editor for Copilot code - completions. + Information about a Copilot Business seat assignment for a user, team, or + organization. """ - name: Missing[str] = Field( + assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) + assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( default=UNSET, - description="Name of the language used for Copilot code completion suggestions.", + description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", ) - total_engaged_users: Missing[int] = Field( + pending_cancellation_date: Missing[Union[date, None]] = Field( default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances.", + description="The 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.", ) - - -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( + last_activity_at: Missing[Union[datetime, None]] = 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.", - ) + description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", ) - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( + last_activity_editor: Missing[Union[str, None]] = Field( default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." + description="Last editor that was used by the user for a GitHub Copilot completion.", ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." + created_at: datetime = Field( + description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." ) - total_engaged_users: Missing[int] = Field( + updated_at: Missing[datetime] = 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="**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.", ) - languages: Missing[ - list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems] - ] = Field( + plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( default=UNSET, - description="Code completion metrics for active languages, for the given editor.", + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", ) -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems( - GitHubModel -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems +class EnterpriseTeam(GitHubModel): + """Enterprise Team - Usage metrics for a given language for the given editor for Copilot code - completions. + Group of enterprise owners and/or members """ - 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.", - ) + id: int = Field() + name: str = Field() + description: Missing[str] = Field(default=UNSET) + slug: str = Field() + url: str = Field() + sync_to_organizations: Missing[str] = Field(default=UNSET) + organization_selection_type: Missing[str] = Field(default=UNSET) + group_id: Missing[Union[str, None]] = Field(default=UNSET) + group_name: Missing[Union[str, None]] = Field(default=UNSET) + html_url: str = Field() + members_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() -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(CopilotSeatDetails) +model_rebuild(EnterpriseTeam) __all__ = ( - "CopilotDotcomChat", - "CopilotDotcomChatPropModelsItems", - "CopilotDotcomPullRequests", - "CopilotDotcomPullRequestsPropRepositoriesItems", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems", - "CopilotIdeChat", - "CopilotIdeChatPropEditorsItems", - "CopilotIdeChatPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletions", - "CopilotIdeCodeCompletionsPropEditorsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", - "CopilotIdeCodeCompletionsPropLanguagesItems", - "CopilotUsageMetricsDay", + "CopilotSeatDetails", + "EnterpriseTeam", ) 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 ff820726e..b2ecce70b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0073.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0073.py @@ -9,23 +9,350 @@ 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 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 Chat. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, + description="The training date for the custom model (if applicable).", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", + ) + total_chats: Missing[int] = Field( + default=UNSET, + description="Total number of chats initiated by users on github.com.", + ) + + +class CopilotIdeChat(ExtraGitHubModel): + """CopilotIdeChat + + Usage metrics for Copilot Chat in the IDE. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat in the IDE.", + ) + editors: Missing[list[CopilotIdeChatPropEditorsItems]] = Field(default=UNSET) + + +class CopilotIdeChatPropEditorsItems(GitHubModel): + """CopilotIdeChatPropEditorsItems + + Copilot Chat metrics, for active editors. + """ + + name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the specified editor.", + ) + models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + + +class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): + """CopilotIdeChatPropEditorsItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the given editor and model.", + ) + total_chats: Missing[int] = Field( + default=UNSET, + description="The total number of chats initiated by users in the given editor and model.", + ) + total_chat_insertion_events: Missing[int] = Field( + default=UNSET, + description="The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor.", + ) + total_chat_copy_events: Missing[int] = Field( + default=UNSET, + description="The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor.", + ) + + +class CopilotDotcomPullRequests(ExtraGitHubModel): + """CopilotDotcomPullRequests + Usage metrics for Copilot for pull requests. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once.", + ) + repositories: Missing[list[CopilotDotcomPullRequestsPropRepositoriesItems]] = Field( + default=UNSET, + description="Repositories in which users used Copilot for Pull Requests to generate pull request summaries", + ) + + +class CopilotDotcomPullRequestsPropRepositoriesItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItems""" + + name: Missing[str] = Field(default=UNSET, description="Repository name") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository.", + ) + models: Missing[ + list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems] + ] = Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) -class DependabotAlertPackage(GitHubModel): - """DependabotAlertPackage - Details for the vulnerable package. +class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot pull request summaries. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_pr_summaries_created: Missing[int] = Field( + default=UNSET, + description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", + ) + + +class CopilotIdeCodeCompletions(ExtraGitHubModel): + """CopilotIdeCodeCompletions + + Usage metrics for Copilot editor code completions in the IDE. """ - ecosystem: str = Field( - description="The package's language or package management ecosystem." + 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.", ) - name: str = Field(description="The unique package name within its ecosystem.") -model_rebuild(DependabotAlertPackage) +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__ = ("DependabotAlertPackage",) +__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_0074.py b/githubkit/versions/ghec_v2022_11_28/models/group_0074.py index ec2d41243..ff820726e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0074.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0074.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_0073 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/ghec_v2022_11_28/models/group_0075.py b/githubkit/versions/ghec_v2022_11_28/models/group_0075.py index 10ee60883..a82241ab6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0075.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0075.py @@ -9,123 +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_0002 import SecurityAdvisoryEpss -from .group_0074 import DependabotAlertSecurityVulnerability +from .group_0074 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) - 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: 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/ghec_v2022_11_28/models/group_0076.py b/githubkit/versions/ghec_v2022_11_28/models/group_0076.py index eff2fc3c7..813b10467 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0076.py +++ b/githubkit/versions/ghec_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,65 +18,114 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0061 import SimpleRepository -from .group_0074 import DependabotAlertSecurityVulnerability -from .group_0075 import DependabotAlertSecurityAdvisory -from .group_0077 import DependabotAlertWithRepositoryPropDependency +from .group_0001 import CvssSeverities +from .group_0002 import SecurityAdvisoryEpss +from .group_0075 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/ghec_v2022_11_28/models/group_0077.py b/githubkit/versions/ghec_v2022_11_28/models/group_0077.py index c93c6a21e..bfacf4f12 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0077.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0077.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,33 +18,65 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0073 import DependabotAlertPackage +from .group_0003 import SimpleUser +from .group_0061 import SimpleRepository +from .group_0075 import DependabotAlertSecurityVulnerability +from .group_0076 import DependabotAlertSecurityAdvisory +from .group_0078 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( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", + 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`." ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - relationship: Missing[ - Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]] - ] = 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[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 vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', + 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(DependabotAlertWithRepositoryPropDependency) +model_rebuild(DependabotAlertWithRepository) -__all__ = ("DependabotAlertWithRepositoryPropDependency",) +__all__ = ("DependabotAlertWithRepository",) 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 caa4389c7..fe325e90b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0078.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0078.py @@ -9,48 +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_0074 import DependabotAlertPackage + -class GetLicenseSyncStatus(GitHubModel): - """License Sync Status +class DependabotAlertWithRepositoryPropDependency(GitHubModel): + """DependabotAlertWithRepositoryPropDependency - Information about the status of a license sync job for an enterprise. + Details for the vulnerable dependency. """ - server_instances: Missing[list[GetLicenseSyncStatusPropServerInstancesItems]] = ( - Field(default=UNSET) + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - - -class GetLicenseSyncStatusPropServerInstancesItems(GitHubModel): - """GetLicenseSyncStatusPropServerInstancesItems""" - - server_id: Missing[str] = Field(default=UNSET) - hostname: Missing[str] = Field(default=UNSET) - last_sync: Missing[GetLicenseSyncStatusPropServerInstancesItemsPropLastSync] = ( - Field(default=UNSET) + manifest_path: Missing[str] = Field( + default=UNSET, + description="The full path to the dependency manifest file, relative to the root of the repository.", + ) + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." + ) + relationship: Missing[ + Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]] + ] = Field( + default=UNSET, + description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', ) -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) +model_rebuild(DependabotAlertWithRepositoryPropDependency) -__all__ = ( - "GetLicenseSyncStatus", - "GetLicenseSyncStatusPropServerInstancesItems", - "GetLicenseSyncStatusPropServerInstancesItemsPropLastSync", -) +__all__ = ("DependabotAlertWithRepositoryPropDependency",) 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 2310c882f..caa4389c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0079.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0079.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,27 +16,41 @@ from githubkit.utils import UNSET -class NetworkConfiguration(GitHubModel): - """Hosted compute network configuration +class GetLicenseSyncStatus(GitHubModel): + """License Sync Status - A hosted compute network configuration. + Information about the status of a license sync job for an enterprise. """ - 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.", + server_instances: Missing[list[GetLicenseSyncStatusPropServerInstancesItems]] = ( + Field(default=UNSET) ) - created_on: Union[datetime, None] = Field( - description="The time at which the network configuration was created, in ISO 8601 format." + + +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(NetworkConfiguration) +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__ = ("NetworkConfiguration",) +__all__ = ( + "GetLicenseSyncStatus", + "GetLicenseSyncStatusPropServerInstancesItems", + "GetLicenseSyncStatusPropServerInstancesItemsPropLastSync", +) 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 cd1bede75..2310c882f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0080.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0080.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,28 +19,27 @@ from githubkit.utils import UNSET -class NetworkSettings(GitHubModel): - """Hosted compute network settings resource +class NetworkConfiguration(GitHubModel): + """Hosted compute network configuration - A hosted compute network settings resource. + A hosted compute network configuration. """ - id: str = Field( - description="The unique identifier of the network settings resource." - ) - network_configuration_id: Missing[str] = 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 identifier of the network configuration that is using this settings resource.", + description="The hosted compute service the network configuration supports.", ) - 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." + network_settings_ids: Missing[list[str]] = Field( + default=UNSET, + description="The unique identifier of each network settings in the configuration.", ) - region: str = Field( - description="The location of the subnet this network settings resource is configured for." + created_on: Union[datetime, None] = Field( + description="The time at which the network configuration was created, in ISO 8601 format." ) -model_rebuild(NetworkSettings) +model_rebuild(NetworkConfiguration) -__all__ = ("NetworkSettings",) +__all__ = ("NetworkConfiguration",) 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 e7f7856d5..cd1bede75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0081.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0081.py @@ -9,58 +9,35 @@ 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.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class CustomProperty(GitHubModel): - """Organization Custom Property +class NetworkSettings(GitHubModel): + """Hosted compute network settings resource - Custom property defined on an organization + A hosted compute network settings resource. """ - 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") + id: str = Field( + description="The unique identifier of the network settings resource." ) - 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" + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of the network configuration that is using this settings resource.", ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" + 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." ) - 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.", + region: str = Field( + description="The location of the subnet this network settings resource is configured for." ) - 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(NetworkSettings) -__all__ = ("CustomProperty",) +__all__ = ("NetworkSettings",) 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 e20487da9..e7f7856d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0082.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0082.py @@ -18,12 +18,20 @@ from githubkit.utils import UNSET -class CustomPropertySetPayload(GitHubModel): - """Custom Property Set Payload +class CustomProperty(GitHubModel): + """Organization Custom Property - Custom property set payload + Custom property defined on an organization """ + 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") ) @@ -53,6 +61,6 @@ class CustomPropertySetPayload(GitHubModel): ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(CustomPropertySetPayload) +model_rebuild(CustomProperty) -__all__ = ("CustomPropertySetPayload",) +__all__ = ("CustomProperty",) 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 880232183..e20487da9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0083.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0083.py @@ -9,39 +9,50 @@ 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. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are 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", - "EnterpriseOwner", - ] = 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.", ) + 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(RepositoryRulesetBypassActor) +model_rebuild(CustomPropertySetPayload) -__all__ = ("RepositoryRulesetBypassActor",) +__all__ = ("CustomPropertySetPayload",) 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 358c264ed..880232183 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0084.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0084.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_0085 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, -) +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterpriseRulesetConditionsOrganizationNameTarget(GitHubModel): - """Repository ruleset conditions for organization names +class RepositoryRulesetBypassActor(GitHubModel): + """Repository Ruleset Bypass Actor - Parameters for an organization name condition + An actor that can bypass rules in a ruleset """ - organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() - - -model_rebuild(EnterpriseRulesetConditionsOrganizationNameTarget) - -__all__ = ("EnterpriseRulesetConditionsOrganizationNameTarget",) + 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_0085.py b/githubkit/versions/ghec_v2022_11_28/models/group_0085.py index 383e2cb2c..c63cd9c25 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0085.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0085.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_0086 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, +) -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.", - ) - 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 EnterpriseRulesetConditionsOrganizationNameTarget(GitHubModel): + """Repository ruleset conditions for organization names + Parameters for an organization name condition + """ -model_rebuild(EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName) + organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() -__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName",) + +model_rebuild(EnterpriseRulesetConditionsOrganizationNameTarget) + +__all__ = ("EnterpriseRulesetConditionsOrganizationNameTarget",) 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 553e8a01d..383e2cb2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0086.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_0087 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) +class EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName( + GitHubModel +): + """EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName""" -class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): - """Repository ruleset conditions for repository names + 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 a repository name condition - """ - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() +model_rebuild(EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName) - -model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) - -__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) +__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName",) 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 45d8e8310..117e3dcf9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0087.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0087.py @@ -12,27 +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_0088 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - 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.", - ) +class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): + """Repository ruleset conditions for repository names + Parameters for a repository name condition + """ -model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) + +model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) + +__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) 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 2ef10ea65..45d8e8310 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0088.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0088.py @@ -15,18 +15,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0089 import RepositoryRulesetConditionsPropRefName +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" -class RepositoryRulesetConditions(GitHubModel): - """Repository ruleset conditions for ref names + 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.", + ) - Parameters for a repository ruleset ref name condition - """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) - -model_rebuild(RepositoryRulesetConditions) - -__all__ = ("RepositoryRulesetConditions",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) 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 1ca843cd5..2b412b979 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0089.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0089.py @@ -15,20 +15,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0090 import RepositoryRulesetConditionsPropRefName -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 RepositoryRulesetConditions(GitHubModel): + """Repository ruleset conditions for ref names + Parameters for a repository ruleset ref name condition + """ -model_rebuild(RepositoryRulesetConditionsPropRefName) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -__all__ = ("RepositoryRulesetConditionsPropRefName",) + +model_rebuild(RepositoryRulesetConditions) + +__all__ = ("RepositoryRulesetConditions",) 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 d33119269..1ca843cd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0090.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0090.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_0091 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/ghec_v2022_11_28/models/group_0091.py b/githubkit/versions/ghec_v2022_11_28/models/group_0091.py index de1e60e46..46d5213b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0091.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0091.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_0092 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): - """Repository ruleset property targeting definition +class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): + """Repository ruleset conditions for repository properties - Parameters for a targeting a repository property + Parameters for a repository property 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_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpec", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", -) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) 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 adb9ee618..de1e60e46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0092.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0092.py @@ -9,24 +9,50 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0093 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, -) +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 EnterpriseRulesetConditionsOrganizationIdTarget(GitHubModel): - """Repository ruleset conditions for organization IDs - Parameters for an organization ID condition +class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): + """Repository ruleset property targeting definition + + Parameters for a targeting a repository property """ - organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() + name: str = Field(description="The name of the repository property to target") + property_values: list[str] = Field( + description="The values to match for the repository property" + ) + source: Missing[Literal["custom", "system"]] = Field( + default=UNSET, + description="The source of the repository property. Defaults to 'custom' if not specified.", + ) -model_rebuild(EnterpriseRulesetConditionsOrganizationIdTarget) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) -__all__ = ("EnterpriseRulesetConditionsOrganizationIdTarget",) +__all__ = ( + "RepositoryRulesetConditionsRepositoryPropertySpec", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", +) 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 188401d9a..a9fcb26f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0093.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0093.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_0094 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, +) -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 EnterpriseRulesetConditionsOrganizationIdTarget(GitHubModel): + """Repository ruleset conditions for organization IDs + Parameters for an organization ID condition + """ -model_rebuild(EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId) + organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() -__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId",) + +model_rebuild(EnterpriseRulesetConditionsOrganizationIdTarget) + +__all__ = ("EnterpriseRulesetConditionsOrganizationIdTarget",) 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 8b2462836..188401d9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0094.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0094.py @@ -15,26 +15,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0085 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, -) -from .group_0087 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) -from .group_0089 import RepositoryRulesetConditionsPropRefName +class EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId(GitHubModel): + """EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId""" -class EnterpriseRulesetConditionsOneof0(GitHubModel): - """organization_name_and_repository_name + 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.", + ) - 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(EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId) - -model_rebuild(EnterpriseRulesetConditionsOneof0) - -__all__ = ("EnterpriseRulesetConditionsOneof0",) +__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId",) 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 b1f15bf8a..40f670e54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0095.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0095.py @@ -15,26 +15,26 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0085 import ( +from .group_0086 import ( EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, ) -from .group_0089 import RepositoryRulesetConditionsPropRefName -from .group_0091 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +from .group_0088 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) +from .group_0090 import RepositoryRulesetConditionsPropRefName -class EnterpriseRulesetConditionsOneof1(GitHubModel): - """organization_name_and_repository_property +class EnterpriseRulesetConditionsOneof0(GitHubModel): + """organization_name_and_repository_name - Conditions to target organizations by name and repositories by property + Conditions to target organizations by name and all repositories """ organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(EnterpriseRulesetConditionsOneof1) +model_rebuild(EnterpriseRulesetConditionsOneof0) -__all__ = ("EnterpriseRulesetConditionsOneof1",) +__all__ = ("EnterpriseRulesetConditionsOneof0",) 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 d57438b73..ca4708b01 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0096.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0096.py @@ -15,26 +15,26 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0087 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +from .group_0086 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, ) -from .group_0089 import RepositoryRulesetConditionsPropRefName -from .group_0093 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, +from .group_0090 import RepositoryRulesetConditionsPropRefName +from .group_0092 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) -class EnterpriseRulesetConditionsOneof2(GitHubModel): - """organization_id_and_repository_name +class EnterpriseRulesetConditionsOneof1(GitHubModel): + """organization_name_and_repository_property - Conditions to target organizations by id and all repositories + Conditions to target organizations by name and repositories by property """ - organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(EnterpriseRulesetConditionsOneof2) +model_rebuild(EnterpriseRulesetConditionsOneof1) -__all__ = ("EnterpriseRulesetConditionsOneof2",) +__all__ = ("EnterpriseRulesetConditionsOneof1",) 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 0c1ef6af4..55e57e7e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0097.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0097.py @@ -15,26 +15,26 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0089 import RepositoryRulesetConditionsPropRefName -from .group_0091 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +from .group_0088 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) -from .group_0093 import ( +from .group_0090 import RepositoryRulesetConditionsPropRefName +from .group_0094 import ( EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, ) -class EnterpriseRulesetConditionsOneof3(GitHubModel): - """organization_id_and_repository_property +class EnterpriseRulesetConditionsOneof2(GitHubModel): + """organization_id_and_repository_name - Conditions to target organization by id and repositories by property + Conditions to target organizations by id and all repositories """ organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(EnterpriseRulesetConditionsOneof3) +model_rebuild(EnterpriseRulesetConditionsOneof2) -__all__ = ("EnterpriseRulesetConditionsOneof3",) +__all__ = ("EnterpriseRulesetConditionsOneof2",) 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 d7ce200e3..c58582542 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0098.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0098.py @@ -9,57 +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 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() +from .group_0090 import RepositoryRulesetConditionsPropRefName +from .group_0092 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) +from .group_0094 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, +) -class RepositoryRuleNonFastForward(GitHubModel): - """non_fast_forward +class EnterpriseRulesetConditionsOneof3(GitHubModel): + """organization_id_and_repository_property - Prevent users with push access from force pushing to refs. + Conditions to target organization by id and repositories by property """ - type: Literal["non_fast_forward"] = Field() + organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(RepositoryRuleCreation) -model_rebuild(RepositoryRuleDeletion) -model_rebuild(RepositoryRuleRequiredSignatures) -model_rebuild(RepositoryRuleNonFastForward) +model_rebuild(EnterpriseRulesetConditionsOneof3) -__all__ = ( - "RepositoryRuleCreation", - "RepositoryRuleDeletion", - "RepositoryRuleNonFastForward", - "RepositoryRuleRequiredSignatures", -) +__all__ = ("EnterpriseRulesetConditionsOneof3",) 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 d3ab1ce01..d7ce200e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0099.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0099.py @@ -14,22 +14,52 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0100 import RepositoryRuleUpdatePropParameters +class RepositoryRuleCreation(GitHubModel): + """creation -class RepositoryRuleUpdate(GitHubModel): - """update + 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 - Only allow users with bypass permission to update matching refs. + Prevent users with push access from force pushing to refs. """ - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) + type: Literal["non_fast_forward"] = Field() -model_rebuild(RepositoryRuleUpdate) +model_rebuild(RepositoryRuleCreation) +model_rebuild(RepositoryRuleDeletion) +model_rebuild(RepositoryRuleRequiredSignatures) +model_rebuild(RepositoryRuleNonFastForward) -__all__ = ("RepositoryRuleUpdate",) +__all__ = ( + "RepositoryRuleCreation", + "RepositoryRuleDeletion", + "RepositoryRuleNonFastForward", + "RepositoryRuleRequiredSignatures", +) 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 24be869ac..0d22d9bc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0100.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0100.py @@ -9,19 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0101 import RepositoryRuleUpdatePropParameters + +class RepositoryRuleUpdate(GitHubModel): + """update -class RepositoryRuleUpdatePropParameters(GitHubModel): - """RepositoryRuleUpdatePropParameters""" + Only allow users with bypass permission to update matching refs. + """ - update_allows_fetch_and_merge: bool = Field( - description="Branch can pull changes from its upstream repository" - ) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleUpdatePropParameters) +model_rebuild(RepositoryRuleUpdate) -__all__ = ("RepositoryRuleUpdatePropParameters",) +__all__ = ("RepositoryRuleUpdate",) 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 5a1b53ca6..24be869ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0101.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0101.py @@ -9,22 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleRequiredLinearHistory(GitHubModel): - """required_linear_history - - Prevent merge commits from being pushed to matching refs. - """ +class RepositoryRuleUpdatePropParameters(GitHubModel): + """RepositoryRuleUpdatePropParameters""" - type: Literal["required_linear_history"] = Field() + update_allows_fetch_and_merge: bool = Field( + description="Branch can pull changes from its upstream repository" + ) -model_rebuild(RepositoryRuleRequiredLinearHistory) +model_rebuild(RepositoryRuleUpdatePropParameters) -__all__ = ("RepositoryRuleRequiredLinearHistory",) +__all__ = ("RepositoryRuleUpdatePropParameters",) 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 5a33ffcad..5a1b53ca6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0102.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0102.py @@ -14,22 +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_0103 import RepositoryRuleMergeQueuePropParameters +class RepositoryRuleRequiredLinearHistory(GitHubModel): + """required_linear_history -class RepositoryRuleMergeQueue(GitHubModel): - """merge_queue - - Merges must be performed via a merge queue. + Prevent merge commits from being pushed to matching refs. """ - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) + type: Literal["required_linear_history"] = Field() -model_rebuild(RepositoryRuleMergeQueue) +model_rebuild(RepositoryRuleRequiredLinearHistory) -__all__ = ("RepositoryRuleMergeQueue",) +__all__ = ("RepositoryRuleRequiredLinearHistory",) 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 152d1eb45..ca0b46777 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0103.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0103.py @@ -14,40 +14,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0104 import RepositoryRuleRequiredDeploymentsPropParameters -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.", +class RepositoryRuleRequiredDeployments(GitHubModel): + """required_deployments + + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. + """ + + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( + default=UNSET ) -model_rebuild(RepositoryRuleMergeQueuePropParameters) +model_rebuild(RepositoryRuleRequiredDeployments) -__all__ = ("RepositoryRuleMergeQueuePropParameters",) +__all__ = ("RepositoryRuleRequiredDeployments",) 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 1ad2610c6..d174bdf82 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0104.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0104.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0105 import RepositoryRuleRequiredDeploymentsPropParameters - -class RepositoryRuleRequiredDeployments(GitHubModel): - """required_deployments - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. - """ +class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): + """RepositoryRuleRequiredDeploymentsPropParameters""" - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET + required_deployment_environments: list[str] = Field( + description="The environments that must be successfully deployed to before branches can be merged." ) -model_rebuild(RepositoryRuleRequiredDeployments) +model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) -__all__ = ("RepositoryRuleRequiredDeployments",) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) 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 d174bdf82..ea8b1f632 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0105.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0105.py @@ -9,19 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): + """RequiredReviewerConfiguration + + A reviewing team, and file patterns describing which files they must approve + changes to. + """ + + file_patterns: list[str] = Field( + description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." + ) + minimum_approvals: int = Field( + description="Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional." + ) + reviewer: RepositoryRuleParamsReviewer = Field( + title="Reviewer", description="A required reviewing team" + ) + + +class RepositoryRuleParamsReviewer(GitHubModel): + """Reviewer + + A required reviewing team + """ - required_deployment_environments: list[str] = Field( - description="The environments that must be successfully deployed to before branches can be merged." + id: int = Field( + description="ID of the reviewer which must review changes to matching files." ) + type: Literal["Team"] = Field(description="The type of the reviewer") -model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) +model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) +model_rebuild(RepositoryRuleParamsReviewer) -__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) +__all__ = ( + "RepositoryRuleParamsRequiredReviewerConfiguration", + "RepositoryRuleParamsReviewer", +) 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 ea8b1f632..0706301a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0106.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0106.py @@ -14,42 +14,23 @@ 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 RepositoryRulePullRequestPropParameters -class RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): - """RequiredReviewerConfiguration - A reviewing team, and file patterns describing which files they must approve - changes to. - """ - - file_patterns: list[str] = Field( - description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." - ) - minimum_approvals: int = Field( - description="Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional." - ) - reviewer: RepositoryRuleParamsReviewer = Field( - title="Reviewer", description="A required reviewing team" - ) - - -class RepositoryRuleParamsReviewer(GitHubModel): - """Reviewer +class RepositoryRulePullRequest(GitHubModel): + """pull_request - A required reviewing team + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. """ - id: int = Field( - description="ID of the reviewer which must review changes to matching files." - ) - type: Literal["Team"] = Field(description="The type of the reviewer") + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) -model_rebuild(RepositoryRuleParamsReviewer) +model_rebuild(RepositoryRulePullRequest) -__all__ = ( - "RepositoryRuleParamsRequiredReviewerConfiguration", - "RepositoryRuleParamsReviewer", -) +__all__ = ("RepositoryRulePullRequest",) 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 263870f81..6e5c94812 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0107.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0107.py @@ -17,20 +17,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0108 import RepositoryRulePullRequestPropParameters - -class RepositoryRulePullRequest(GitHubModel): - """pull_request - - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. - """ - - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) - - -model_rebuild(RepositoryRulePullRequest) - -__all__ = ("RepositoryRulePullRequest",) +class RepositoryRulePullRequestPropParameters(GitHubModel): + """RepositoryRulePullRequestPropParameters""" + + allowed_merge_methods: Missing[list[Literal["merge", "squash", "rebase"]]] = Field( + default=UNSET, + description="Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.", + ) + automatic_copilot_code_review_enabled: Missing[bool] = Field( + default=UNSET, + description="Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review.", + ) + dismiss_stale_reviews_on_push: bool = Field( + description="New, reviewable commits pushed will dismiss previous pull request review approvals." + ) + require_code_owner_review: bool = Field( + description="Require an approving review in pull requests that modify files that have a designated code owner." + ) + require_last_push_approval: bool = Field( + description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." + ) + required_approving_review_count: int = Field( + le=10.0, + description="The number of approving reviews that are required before a pull request can be merged.", + ) + required_review_thread_resolution: bool = Field( + description="All conversations on code must be resolved before a pull request can be merged." + ) + + +model_rebuild(RepositoryRulePullRequestPropParameters) + +__all__ = ("RepositoryRulePullRequestPropParameters",) 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 6e5c94812..4bc009827 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0108.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0108.py @@ -17,36 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0109 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRulePullRequestPropParameters(GitHubModel): - """RepositoryRulePullRequestPropParameters""" - allowed_merge_methods: Missing[list[Literal["merge", "squash", "rebase"]]] = Field( - default=UNSET, - description="Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.", - ) - automatic_copilot_code_review_enabled: Missing[bool] = Field( - default=UNSET, - description="Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review.", - ) - dismiss_stale_reviews_on_push: bool = Field( - description="New, reviewable commits pushed will dismiss previous pull request review approvals." - ) - require_code_owner_review: bool = Field( - description="Require an approving review in pull requests that modify files that have a designated code owner." - ) - require_last_push_approval: bool = Field( - description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." - ) - required_approving_review_count: int = Field( - le=10.0, - description="The number of approving reviews that are required before a pull request can be merged.", - ) - required_review_thread_resolution: bool = Field( - description="All conversations on code must be resolved before a pull request can be merged." +class 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 ) -model_rebuild(RepositoryRulePullRequestPropParameters) +model_rebuild(RepositoryRuleRequiredStatusChecks) -__all__ = ("RepositoryRulePullRequestPropParameters",) +__all__ = ("RepositoryRuleRequiredStatusChecks",) 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 ec77cb088..83288089b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0109.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0109.py @@ -9,30 +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_0110 import RepositoryRuleRequiredStatusChecksPropParameters +class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): + """RepositoryRuleRequiredStatusChecksPropParameters""" -class RepositoryRuleRequiredStatusChecks(GitHubModel): - """required_status_checks + 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." + ) - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. + +class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): + """StatusCheckConfiguration + + Required status check """ - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = 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(RepositoryRuleRequiredStatusChecks) +model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) +model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) -__all__ = ("RepositoryRuleRequiredStatusChecks",) +__all__ = ( + "RepositoryRuleParamsStatusCheckConfiguration", + "RepositoryRuleRequiredStatusChecksPropParameters", +) 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 83288089b..f57754fab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0110.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0110.py @@ -9,47 +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_0111 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): - """RepositoryRuleRequiredStatusChecksPropParameters""" - 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 RepositoryRuleCommitMessagePattern(GitHubModel): + """commit_message_pattern - -class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): - """StatusCheckConfiguration - - Required status check + Parameters to be used for the commit_message_pattern rule """ - 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.", + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( + default=UNSET ) -model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) -model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) +model_rebuild(RepositoryRuleCommitMessagePattern) -__all__ = ( - "RepositoryRuleParamsStatusCheckConfiguration", - "RepositoryRuleRequiredStatusChecksPropParameters", -) +__all__ = ("RepositoryRuleCommitMessagePattern",) 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 60de3dec7..982c7c60e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0111.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0111.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0112 import RepositoryRuleCommitMessagePatternPropParameters +class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): + """RepositoryRuleCommitMessagePatternPropParameters""" -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 + 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(RepositoryRuleCommitMessagePattern) +model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) -__all__ = ("RepositoryRuleCommitMessagePattern",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) 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 982c7c60e..a3a9611a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0112.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0112.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0113 import RepositoryRuleCommitAuthorEmailPatternPropParameters -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." +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(RepositoryRuleCommitMessagePatternPropParameters) +model_rebuild(RepositoryRuleCommitAuthorEmailPattern) -__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) +__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) 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 c255d7b01..a402d7764 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,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0114 import RepositoryRuleCommitAuthorEmailPatternPropParameters +class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" -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 + 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(RepositoryRuleCommitAuthorEmailPattern) +model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) -__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) 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 a402d7764..b7fa63441 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0114.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0114.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0115 import RepositoryRuleCommitterEmailPatternPropParameters -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 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(RepositoryRuleCommitAuthorEmailPatternPropParameters) +model_rebuild(RepositoryRuleCommitterEmailPattern) -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) +__all__ = ("RepositoryRuleCommitterEmailPattern",) 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 c7be02915..7652318a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0115.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0115.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0116 import RepositoryRuleCommitterEmailPatternPropParameters +class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitterEmailPatternPropParameters""" -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 + 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(RepositoryRuleCommitterEmailPattern) +model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) -__all__ = ("RepositoryRuleCommitterEmailPattern",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) 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 7652318a1..580130ed7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0116.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0116.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0117 import RepositoryRuleBranchNamePatternPropParameters -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 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 ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) +model_rebuild(RepositoryRuleBranchNamePattern) -__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) +__all__ = ("RepositoryRuleBranchNamePattern",) 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 b8c986271..b85419b00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0117.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0117.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0118 import RepositoryRuleBranchNamePatternPropParameters +class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): + """RepositoryRuleBranchNamePatternPropParameters""" -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(RepositoryRuleBranchNamePatternPropParameters) -__all__ = ("RepositoryRuleBranchNamePattern",) +__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) 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 b85419b00..ac5146958 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0118.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0118.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0119 import RepositoryRuleTagNamePatternPropParameters -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 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 ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleBranchNamePatternPropParameters) +model_rebuild(RepositoryRuleTagNamePattern) -__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) +__all__ = ("RepositoryRuleTagNamePattern",) 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 6ba745a45..c8e4fb0a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0119.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0119.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0120 import RepositoryRuleTagNamePatternPropParameters +class RepositoryRuleTagNamePatternPropParameters(GitHubModel): + """RepositoryRuleTagNamePatternPropParameters""" -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(RepositoryRuleTagNamePatternPropParameters) -__all__ = ("RepositoryRuleTagNamePattern",) +__all__ = ("RepositoryRuleTagNamePatternPropParameters",) 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 c8e4fb0a0..2860c7f7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0120.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0120.py @@ -17,22 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0121 import RepositoryRuleFilePathRestrictionPropParameters -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 RepositoryRuleFilePathRestriction(GitHubModel): + """file_path_restriction + + Prevent commits that include changes in specified file and folder paths from + being pushed to the commit graph. This includes absolute paths that contain file + names. + """ + + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePatternPropParameters) +model_rebuild(RepositoryRuleFilePathRestriction) -__all__ = ("RepositoryRuleTagNamePatternPropParameters",) +__all__ = ("RepositoryRuleFilePathRestriction",) 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 2f3377314..3965a83fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0121.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0121.py @@ -9,31 +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_0122 import RepositoryRuleFilePathRestrictionPropParameters - -class RepositoryRuleFilePathRestriction(GitHubModel): - """file_path_restriction - Prevent commits that include changes in specified file and folder paths from - being pushed to the commit graph. This includes absolute paths that contain file - names. - """ +class RepositoryRuleFilePathRestrictionPropParameters(GitHubModel): + """RepositoryRuleFilePathRestrictionPropParameters""" - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( - default=UNSET + restricted_file_paths: list[str] = Field( + description="The file paths that are restricted from being pushed to the commit graph." ) -model_rebuild(RepositoryRuleFilePathRestriction) +model_rebuild(RepositoryRuleFilePathRestrictionPropParameters) -__all__ = ("RepositoryRuleFilePathRestriction",) +__all__ = ("RepositoryRuleFilePathRestrictionPropParameters",) 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 3965a83fb..865ab15c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0122.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0122.py @@ -9,19 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0123 import RepositoryRuleMaxFilePathLengthPropParameters + +class RepositoryRuleMaxFilePathLength(GitHubModel): + """max_file_path_length -class RepositoryRuleFilePathRestrictionPropParameters(GitHubModel): - """RepositoryRuleFilePathRestrictionPropParameters""" + Prevent commits that include file paths that exceed the specified character + limit from being pushed to the commit graph. + """ - restricted_file_paths: list[str] = Field( - description="The file paths that are restricted from being pushed to the commit graph." + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + default=UNSET ) -model_rebuild(RepositoryRuleFilePathRestrictionPropParameters) +model_rebuild(RepositoryRuleMaxFilePathLength) -__all__ = ("RepositoryRuleFilePathRestrictionPropParameters",) +__all__ = ("RepositoryRuleMaxFilePathLength",) 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 31921420d..a30d74300 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0123.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0123.py @@ -9,30 +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_0124 import RepositoryRuleMaxFilePathLengthPropParameters - -class RepositoryRuleMaxFilePathLength(GitHubModel): - """max_file_path_length - Prevent commits that include file paths that exceed the specified character - limit from being pushed to the commit graph. - """ +class RepositoryRuleMaxFilePathLengthPropParameters(GitHubModel): + """RepositoryRuleMaxFilePathLengthPropParameters""" - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( - default=UNSET + max_file_path_length: int = Field( + le=32767.0, + ge=1.0, + description="The maximum amount of characters allowed in file paths.", ) -model_rebuild(RepositoryRuleMaxFilePathLength) +model_rebuild(RepositoryRuleMaxFilePathLengthPropParameters) -__all__ = ("RepositoryRuleMaxFilePathLength",) +__all__ = ("RepositoryRuleMaxFilePathLengthPropParameters",) 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 a30d74300..a27c1d250 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0124.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0124.py @@ -9,21 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0125 import RepositoryRuleFileExtensionRestrictionPropParameters + +class RepositoryRuleFileExtensionRestriction(GitHubModel): + """file_extension_restriction -class RepositoryRuleMaxFilePathLengthPropParameters(GitHubModel): - """RepositoryRuleMaxFilePathLengthPropParameters""" + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. + """ - max_file_path_length: int = Field( - le=32767.0, - ge=1.0, - description="The maximum amount of characters allowed in file paths.", + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + default=UNSET ) -model_rebuild(RepositoryRuleMaxFilePathLengthPropParameters) +model_rebuild(RepositoryRuleFileExtensionRestriction) -__all__ = ("RepositoryRuleMaxFilePathLengthPropParameters",) +__all__ = ("RepositoryRuleFileExtensionRestriction",) 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 2c29d47a2..9da9478a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0125.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0125.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0126 import RepositoryRuleFileExtensionRestrictionPropParameters - -class RepositoryRuleFileExtensionRestriction(GitHubModel): - """file_extension_restriction - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. - """ +class RepositoryRuleFileExtensionRestrictionPropParameters(GitHubModel): + """RepositoryRuleFileExtensionRestrictionPropParameters""" - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( - default=UNSET + restricted_file_extensions: list[str] = Field( + description="The file extensions that are restricted from being pushed to the commit graph." ) -model_rebuild(RepositoryRuleFileExtensionRestriction) +model_rebuild(RepositoryRuleFileExtensionRestrictionPropParameters) -__all__ = ("RepositoryRuleFileExtensionRestriction",) +__all__ = ("RepositoryRuleFileExtensionRestrictionPropParameters",) 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 9da9478a2..8d4c3095e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0126.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0126.py @@ -9,19 +9,28 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0127 import RepositoryRuleMaxFileSizePropParameters + +class RepositoryRuleMaxFileSize(GitHubModel): + """max_file_size -class RepositoryRuleFileExtensionRestrictionPropParameters(GitHubModel): - """RepositoryRuleFileExtensionRestrictionPropParameters""" + Prevent commits with individual files that exceed the specified limit from being + pushed to the commit graph. + """ - restricted_file_extensions: list[str] = Field( - description="The file extensions that are restricted from being pushed to the commit graph." - ) + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleFileExtensionRestrictionPropParameters) +model_rebuild(RepositoryRuleMaxFileSize) -__all__ = ("RepositoryRuleFileExtensionRestrictionPropParameters",) +__all__ = ("RepositoryRuleMaxFileSize",) 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 d56238ee2..b2a41a5e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0127.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0127.py @@ -9,28 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0128 import RepositoryRuleMaxFileSizePropParameters - -class RepositoryRuleMaxFileSize(GitHubModel): - """max_file_size - Prevent commits with individual files that exceed the specified limit from being - pushed to the commit graph. - """ +class RepositoryRuleMaxFileSizePropParameters(GitHubModel): + """RepositoryRuleMaxFileSizePropParameters""" - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) + max_file_size: int = Field( + le=100.0, + ge=1.0, + description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", + ) -model_rebuild(RepositoryRuleMaxFileSize) +model_rebuild(RepositoryRuleMaxFileSizePropParameters) -__all__ = ("RepositoryRuleMaxFileSize",) +__all__ = ("RepositoryRuleMaxFileSizePropParameters",) 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 b2a41a5e2..2482237a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0128.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0128.py @@ -12,18 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleMaxFileSizePropParameters(GitHubModel): - """RepositoryRuleMaxFileSizePropParameters""" +class RepositoryRuleParamsRestrictedCommits(GitHubModel): + """RestrictedCommits - 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).", - ) + 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(RepositoryRuleMaxFileSizePropParameters) -__all__ = ("RepositoryRuleMaxFileSizePropParameters",) +model_rebuild(RepositoryRuleParamsRestrictedCommits) + +__all__ = ("RepositoryRuleParamsRestrictedCommits",) 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 2482237a7..837832afa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0129.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0129.py @@ -9,23 +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 RepositoryRuleWorkflowsPropParameters + -class RepositoryRuleParamsRestrictedCommits(GitHubModel): - """RestrictedCommits +class RepositoryRuleWorkflows(GitHubModel): + """workflows - Restricted commit + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - oid: str = Field(description="Full or abbreviated commit hash to reject") - reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleParamsRestrictedCommits) +model_rebuild(RepositoryRuleWorkflows) -__all__ = ("RepositoryRuleParamsRestrictedCommits",) +__all__ = ("RepositoryRuleWorkflows",) 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 0369e48a6..56d86ff5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0130.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0130.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_0131 import RepositoryRuleWorkflowsPropParameters - -class RepositoryRuleWorkflows(GitHubModel): - """workflows +class RepositoryRuleWorkflowsPropParameters(GitHubModel): + """RepositoryRuleWorkflowsPropParameters""" - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. - """ + 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." + ) - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) +class RepositoryRuleParamsWorkflowFileReference(GitHubModel): + """WorkflowFileReference -model_rebuild(RepositoryRuleWorkflows) + A workflow that must run for this rule to pass + """ -__all__ = ("RepositoryRuleWorkflows",) + path: str = Field(description="The path to the workflow file") + ref: Missing[str] = Field( + default=UNSET, description="The ref (branch or tag) of the workflow file to use" + ) + repository_id: int = Field( + description="The ID of the repository where the workflow is defined" + ) + sha: Missing[str] = Field( + default=UNSET, description="The commit SHA of the workflow file to use" + ) + + +model_rebuild(RepositoryRuleWorkflowsPropParameters) +model_rebuild(RepositoryRuleParamsWorkflowFileReference) + +__all__ = ( + "RepositoryRuleParamsWorkflowFileReference", + "RepositoryRuleWorkflowsPropParameters", +) 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 56d86ff5b..95d24d57f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0131.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0131.py @@ -9,47 +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_0132 import RepositoryRuleCodeScanningPropParameters + -class RepositoryRuleWorkflowsPropParameters(GitHubModel): - """RepositoryRuleWorkflowsPropParameters""" +class RepositoryRuleCodeScanning(GitHubModel): + """code_scanning - 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." - ) + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. + """ + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) -class RepositoryRuleParamsWorkflowFileReference(GitHubModel): - """WorkflowFileReference - A workflow that must run for this rule to pass - """ +model_rebuild(RepositoryRuleCodeScanning) - path: str = Field(description="The path to the workflow file") - ref: Missing[str] = Field( - default=UNSET, description="The ref (branch or tag) of the workflow file to use" - ) - repository_id: int = Field( - description="The ID of the repository where the workflow is defined" - ) - sha: Missing[str] = Field( - default=UNSET, description="The commit SHA of the workflow file to use" - ) - - -model_rebuild(RepositoryRuleWorkflowsPropParameters) -model_rebuild(RepositoryRuleParamsWorkflowFileReference) - -__all__ = ( - "RepositoryRuleParamsWorkflowFileReference", - "RepositoryRuleWorkflowsPropParameters", -) +__all__ = ("RepositoryRuleCodeScanning",) 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 5a335ff4c..140bbe07a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0132.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0132.py @@ -14,24 +14,37 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0133 import RepositoryRuleCodeScanningPropParameters +class RepositoryRuleCodeScanningPropParameters(GitHubModel): + """RepositoryRuleCodeScanningPropParameters""" -class RepositoryRuleCodeScanning(GitHubModel): - """code_scanning + code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( + description="Tools that must provide code scanning results for this rule to pass." + ) - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. + +class RepositoryRuleParamsCodeScanningTool(GitHubModel): + """CodeScanningTool + + A tool that must provide code scanning results for this rule to pass. """ - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + 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(RepositoryRuleCodeScanning) +model_rebuild(RepositoryRuleCodeScanningPropParameters) +model_rebuild(RepositoryRuleParamsCodeScanningTool) -__all__ = ("RepositoryRuleCodeScanning",) +__all__ = ( + "RepositoryRuleCodeScanningPropParameters", + "RepositoryRuleParamsCodeScanningTool", +) 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 140bbe07a..4be10816d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0133.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0133.py @@ -9,42 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0134 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class RepositoryRuleCodeScanningPropParameters(GitHubModel): - """RepositoryRuleCodeScanningPropParameters""" - - code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( - description="Tools that must provide code scanning results for this rule to pass." - ) +class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): + """Repository ruleset conditions for repository IDs -class RepositoryRuleParamsCodeScanningTool(GitHubModel): - """CodeScanningTool - - A tool that must provide code scanning results for this rule to pass. + Parameters for a repository ID condition """ - 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)."' + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() ) - tool: str = Field(description="The name of a code scanning tool") -model_rebuild(RepositoryRuleCodeScanningPropParameters) -model_rebuild(RepositoryRuleParamsCodeScanningTool) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) -__all__ = ( - "RepositoryRuleCodeScanningPropParameters", - "RepositoryRuleParamsCodeScanningTool", -) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) 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 16a68c84d..fd9df3d90 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0134.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0134.py @@ -12,21 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0135 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" -class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): - """Repository ruleset conditions for repository IDs - - Parameters for a repository ID condition - """ - - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() + repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) 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 fd9df3d90..cf9d9228e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0135.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0135.py @@ -15,16 +15,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0088 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) +from .group_0090 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 OrgRulesetConditionsOneof0(GitHubModel): + """repository_name_and_ref_name + Conditions to target repositories by name and refs by name + """ -model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) + +model_rebuild(OrgRulesetConditionsOneof0) + +__all__ = ("OrgRulesetConditionsOneof0",) 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 f3aad1408..ed50f74ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0136.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0136.py @@ -15,22 +15,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0087 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) -from .group_0089 import RepositoryRulesetConditionsPropRefName +from .group_0090 import RepositoryRulesetConditionsPropRefName +from .group_0134 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class OrgRulesetConditionsOneof0(GitHubModel): - """repository_name_and_ref_name +class OrgRulesetConditionsOneof1(GitHubModel): + """repository_id_and_ref_name - Conditions to target repositories by name and refs by name + Conditions to target repositories by id and refs by name """ ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() + ) -model_rebuild(OrgRulesetConditionsOneof0) +model_rebuild(OrgRulesetConditionsOneof1) -__all__ = ("OrgRulesetConditionsOneof0",) +__all__ = ("OrgRulesetConditionsOneof1",) 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 f06d9c2f5..480fceeb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0137.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0137.py @@ -15,22 +15,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0089 import RepositoryRulesetConditionsPropRefName -from .group_0135 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +from .group_0090 import RepositoryRulesetConditionsPropRefName +from .group_0092 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class OrgRulesetConditionsOneof1(GitHubModel): - """repository_id_and_ref_name +class OrgRulesetConditionsOneof2(GitHubModel): + """repository_property_and_ref_name - Conditions to target repositories by id and refs by name + Conditions to target repositories by property and refs by name """ ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() - ) + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -model_rebuild(OrgRulesetConditionsOneof1) +model_rebuild(OrgRulesetConditionsOneof2) -__all__ = ("OrgRulesetConditionsOneof1",) +__all__ = ("OrgRulesetConditionsOneof2",) 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 81780e58e..fc113f145 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0138.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0138.py @@ -9,28 +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_0089 import RepositoryRulesetConditionsPropRefName -from .group_0091 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, -) +from .group_0139 import RepositoryRuleMergeQueuePropParameters -class OrgRulesetConditionsOneof2(GitHubModel): - """repository_property_and_ref_name +class RepositoryRuleMergeQueue(GitHubModel): + """merge_queue - Conditions to target repositories by property and refs by name + Merges must be performed via a merge queue. """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + type: Literal["merge_queue"] = Field() + parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) -model_rebuild(OrgRulesetConditionsOneof2) +model_rebuild(RepositoryRuleMergeQueue) -__all__ = ("OrgRulesetConditionsOneof2",) +__all__ = ("RepositoryRuleMergeQueue",) 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 30b291c77..152d1eb45 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0139.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0139.py @@ -9,146 +9,45 @@ 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_0083 import RepositoryRulesetBypassActor -from .group_0088 import RepositoryRulesetConditions -from .group_0098 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0099 import RepositoryRuleUpdate -from .group_0101 import RepositoryRuleRequiredLinearHistory -from .group_0102 import RepositoryRuleMergeQueue -from .group_0104 import RepositoryRuleRequiredDeployments -from .group_0107 import RepositoryRulePullRequest -from .group_0109 import RepositoryRuleRequiredStatusChecks -from .group_0111 import RepositoryRuleCommitMessagePattern -from .group_0113 import RepositoryRuleCommitAuthorEmailPattern -from .group_0115 import RepositoryRuleCommitterEmailPattern -from .group_0117 import RepositoryRuleBranchNamePattern -from .group_0119 import RepositoryRuleTagNamePattern -from .group_0121 import RepositoryRuleFilePathRestriction -from .group_0123 import RepositoryRuleMaxFilePathLength -from .group_0125 import RepositoryRuleFileExtensionRestriction -from .group_0127 import RepositoryRuleMaxFileSize -from .group_0130 import RepositoryRuleWorkflows -from .group_0132 import RepositoryRuleCodeScanning -from .group_0136 import OrgRulesetConditionsOneof0 -from .group_0137 import OrgRulesetConditionsOneof1 -from .group_0138 import OrgRulesetConditionsOneof2 +class RepositoryRuleMergeQueuePropParameters(GitHubModel): + """RepositoryRuleMergeQueuePropParameters""" -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" + 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", ) - source_type: Missing[Literal["Repository", "Organization", "Enterprise"]] = Field( - default=UNSET, description="The type of the source of the ruleset" + 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." ) - 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." + 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.", ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", + max_entries_to_merge: int = Field( + le=100.0, + description="The maximum number of PRs that will be merged together in a group.", ) - 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.", + merge_method: Literal["MERGE", "SQUASH", "REBASE"] = Field( + description="Method to use when merging changes from queued pull requests." ) - node_id: Missing[str] = Field(default=UNSET) - links: Missing[RepositoryRulesetPropLinks] = Field(default=UNSET, alias="_links") - conditions: Missing[ - Union[ - RepositoryRulesetConditions, - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - None, - ] - ] = Field(default=UNSET) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - - -class RepositoryRulesetPropLinks(GitHubModel): - """RepositoryRulesetPropLinks""" - - self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( - default=UNSET, alias="self" + min_entries_to_merge: int = Field( + le=100.0, + description="The minimum number of PRs that will be merged together in a group.", ) - html: Missing[Union[RepositoryRulesetPropLinksPropHtml, None]] = Field( - default=UNSET + 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 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) +model_rebuild(RepositoryRuleMergeQueuePropParameters) -__all__ = ( - "RepositoryRuleset", - "RepositoryRulesetPropLinks", - "RepositoryRulesetPropLinksPropHtml", - "RepositoryRulesetPropLinksPropSelf", -) +__all__ = ("RepositoryRuleMergeQueuePropParameters",) 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 1a4699c69..673fccb08 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0140.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0140.py @@ -10,27 +10,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_0141 import RulesetVersionPropActor +from .group_0084 import RepositoryRulesetBypassActor +from .group_0089 import RepositoryRulesetConditions +from .group_0099 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0100 import RepositoryRuleUpdate +from .group_0102 import RepositoryRuleRequiredLinearHistory +from .group_0103 import RepositoryRuleRequiredDeployments +from .group_0106 import RepositoryRulePullRequest +from .group_0108 import RepositoryRuleRequiredStatusChecks +from .group_0110 import RepositoryRuleCommitMessagePattern +from .group_0112 import RepositoryRuleCommitAuthorEmailPattern +from .group_0114 import RepositoryRuleCommitterEmailPattern +from .group_0116 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleTagNamePattern +from .group_0120 import RepositoryRuleFilePathRestriction +from .group_0122 import RepositoryRuleMaxFilePathLength +from .group_0124 import RepositoryRuleFileExtensionRestriction +from .group_0126 import RepositoryRuleMaxFileSize +from .group_0129 import RepositoryRuleWorkflows +from .group_0131 import RepositoryRuleCodeScanning +from .group_0135 import OrgRulesetConditionsOneof0 +from .group_0136 import OrgRulesetConditionsOneof1 +from .group_0137 import OrgRulesetConditionsOneof2 +from .group_0138 import RepositoryRuleMergeQueue -class RulesetVersion(GitHubModel): - """Ruleset version +class RepositoryRuleset(GitHubModel): + """Repository ruleset - The historical version of a ruleset + A set of rules to apply when specified conditions are met. """ - version_id: int = Field(description="The ID of the previous version of the ruleset") - actor: RulesetVersionPropActor = Field( - description="The actor who updated the ruleset" + id: 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" ) - updated_at: datetime = Field() + 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, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class RepositoryRulesetPropLinks(GitHubModel): + """RepositoryRulesetPropLinks""" + + self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( + default=UNSET, alias="self" + ) + html: Missing[Union[RepositoryRulesetPropLinksPropHtml, None]] = Field( + default=UNSET + ) + + +class RepositoryRulesetPropLinksPropSelf(GitHubModel): + """RepositoryRulesetPropLinksPropSelf""" + + href: Missing[str] = Field(default=UNSET, description="The URL of the ruleset") + + +class RepositoryRulesetPropLinksPropHtml(GitHubModel): + """RepositoryRulesetPropLinksPropHtml""" + + href: Missing[str] = Field(default=UNSET, description="The html URL of the ruleset") -model_rebuild(RulesetVersion) +model_rebuild(RepositoryRuleset) +model_rebuild(RepositoryRulesetPropLinks) +model_rebuild(RepositoryRulesetPropLinksPropSelf) +model_rebuild(RepositoryRulesetPropLinksPropHtml) -__all__ = ("RulesetVersion",) +__all__ = ( + "RepositoryRuleset", + "RepositoryRulesetPropLinks", + "RepositoryRulesetPropLinksPropHtml", + "RepositoryRulesetPropLinksPropSelf", +) 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 e9dbd595b..3f1e24494 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0141.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0141.py @@ -9,23 +9,28 @@ 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_0142 import RulesetVersionPropActor -class RulesetVersionPropActor(GitHubModel): - """RulesetVersionPropActor +class RulesetVersion(GitHubModel): + """Ruleset version - The actor who updated the ruleset + The historical version of a ruleset """ - id: Missing[int] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + version_id: int = Field(description="The ID of the previous version of the ruleset") + actor: RulesetVersionPropActor = Field( + description="The actor who updated the ruleset" + ) + updated_at: datetime = Field() -model_rebuild(RulesetVersionPropActor) +model_rebuild(RulesetVersion) -__all__ = ("RulesetVersionPropActor",) +__all__ = ("RulesetVersion",) 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 fd27a11cd..e9dbd595b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0142.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0142.py @@ -9,29 +9,23 @@ 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_0141 import RulesetVersionPropActor -from .group_0144 import RulesetVersionWithStateAllof1PropState +class RulesetVersionPropActor(GitHubModel): + """RulesetVersionPropActor -class RulesetVersionWithState(GitHubModel): - """RulesetVersionWithState""" + The actor who updated the ruleset + """ - version_id: int = Field(description="The ID of the previous version of the ruleset") - actor: RulesetVersionPropActor = Field( - description="The actor who updated the ruleset" - ) - updated_at: datetime = Field() - state: RulesetVersionWithStateAllof1PropState = Field( - description="The state of the ruleset version" - ) + id: Missing[int] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) -model_rebuild(RulesetVersionWithState) +model_rebuild(RulesetVersionPropActor) -__all__ = ("RulesetVersionWithState",) +__all__ = ("RulesetVersionPropActor",) 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 7e10ba5d4..bfca27720 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0143.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0143.py @@ -9,21 +9,29 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0144 import RulesetVersionWithStateAllof1PropState +from .group_0142 import RulesetVersionPropActor +from .group_0145 import RulesetVersionWithStateAllof1PropState -class RulesetVersionWithStateAllof1(GitHubModel): - """RulesetVersionWithStateAllof1""" +class RulesetVersionWithState(GitHubModel): + """RulesetVersionWithState""" + version_id: int = Field(description="The ID of the previous version of the ruleset") + actor: RulesetVersionPropActor = Field( + description="The actor who updated the ruleset" + ) + updated_at: datetime = Field() state: RulesetVersionWithStateAllof1PropState = Field( description="The state of the ruleset version" ) -model_rebuild(RulesetVersionWithStateAllof1) +model_rebuild(RulesetVersionWithState) -__all__ = ("RulesetVersionWithStateAllof1",) +__all__ = ("RulesetVersionWithState",) 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 004126d69..6a4648e0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0144.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0144.py @@ -9,16 +9,21 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from .group_0145 import RulesetVersionWithStateAllof1PropState + -class RulesetVersionWithStateAllof1PropState(GitHubModel): - """RulesetVersionWithStateAllof1PropState +class RulesetVersionWithStateAllof1(GitHubModel): + """RulesetVersionWithStateAllof1""" - The state of the ruleset version - """ + state: RulesetVersionWithStateAllof1PropState = Field( + description="The state of the ruleset version" + ) -model_rebuild(RulesetVersionWithStateAllof1PropState) +model_rebuild(RulesetVersionWithStateAllof1) -__all__ = ("RulesetVersionWithStateAllof1PropState",) +__all__ = ("RulesetVersionWithStateAllof1",) 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 33230057f..004126d69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0145.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0145.py @@ -9,141 +9,16 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -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 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 SecretScanningLocationDiscussionTitle(GitHubModel): - """SecretScanningLocationDiscussionTitle +class RulesetVersionWithStateAllof1PropState(GitHubModel): + """RulesetVersionWithStateAllof1PropState - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. + The state of the ruleset version """ - discussion_title_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 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 SecretScanningLocationPullRequestReview(GitHubModel): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str = Field( - description="The API URL to get the pull request review where the secret was detected." - ) - -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestReview) +model_rebuild(RulesetVersionWithStateAllof1PropState) -__all__ = ( - "SecretScanningLocationCommit", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationWikiCommit", -) +__all__ = ("RulesetVersionWithStateAllof1PropState",) 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 a6d3ca865..33230057f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0146.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0146.py @@ -14,63 +14,136 @@ from githubkit.compat import GitHubModel, model_rebuild -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. """ - issue_title_url: str = Field( + 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 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 +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 SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. """ - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." ) -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody - 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. + 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_title_url: str = Field( + pull_request_body_url: str = Field( description="The API URL to get the pull request where the secret was detected." ) -class SecretScanningLocationPullRequestReviewComment(GitHubModel): - """SecretScanningLocationPullRequestReviewComment +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview - 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. + 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_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." ) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestReview) __all__ = ( - "SecretScanningLocationIssueComment", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationPullRequestReviewComment", - "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationCommit", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationWikiCommit", ) 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 a909a64f7..a6d3ca865 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0147.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0147.py @@ -14,34 +14,63 @@ from githubkit.compat import GitHubModel, model_rebuild -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. """ - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." ) -class SecretScanningLocationPullRequestComment(GitHubModel): - """SecretScanningLocationPullRequestComment +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment - 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. + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. """ - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." ) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationPullRequestComment) +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 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(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestReviewComment) __all__ = ( - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationPullRequestComment", + "SecretScanningLocationIssueComment", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationPullRequestReviewComment", + "SecretScanningLocationPullRequestTitle", ) 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 3a48e63e1..a909a64f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0148.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0148.py @@ -9,152 +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 - -from .group_0003 import SimpleUser -from .group_0061 import SimpleRepository -from .group_0145 import ( - SecretScanningLocationCommit, - SecretScanningLocationDiscussionComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestReview, - SecretScanningLocationWikiCommit, -) -from .group_0146 import ( - SecretScanningLocationIssueComment, - SecretScanningLocationIssueTitle, - SecretScanningLocationPullRequestReviewComment, - SecretScanningLocationPullRequestTitle, -) -from .group_0147 import ( - SecretScanningLocationDiscussionBody, - SecretScanningLocationPullRequestComment, -) -class OrganizationSecretScanningAlert(GitHubModel): - """OrganizationSecretScanningAlert""" +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." - ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", - ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( - default=UNSET - ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when reviewing a push protection bypass.", - ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when requesting a push protection bypass.", - ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment that was optionally added when this alert was closed", - ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the secret was publicly leaked." - ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", - ) - is_base64_encoded: Missing[Union[bool, None]] = Field( - default=UNSET, - description="A boolean value representing whether or not alert is base64 encoded", + 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." ) - first_location_detected: Missing[ - Union[ - None, - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - has_more_locations: Missing[bool] = Field( - default=UNSET, - description="A boolean value representing whether or not the token in the alert was detected in more than one location.", + + +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." ) -model_rebuild(OrganizationSecretScanningAlert) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationPullRequestComment) -__all__ = ("OrganizationSecretScanningAlert",) +__all__ = ( + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationPullRequestComment", +) 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 6546dd05e..e6ef5e3d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0149.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0149.py @@ -9,99 +9,152 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0061 import SimpleRepository +from .group_0146 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0147 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0148 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) + -class ActionsBillingUsage(GitHubModel): - """ActionsBillingUsage""" +class OrganizationSecretScanningAlert(GitHubModel): + """OrganizationSecretScanningAlert""" - total_minutes_used: int = Field( - description="The sum of the free and paid GitHub Actions minutes used." + number: Missing[int] = Field( + default=UNSET, description="The security alert number." ) - total_paid_minutes_used: int = Field( - description="The total paid GitHub Actions minutes used." + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - included_minutes: int = Field( - description="The amount of free GitHub Actions minutes available." + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." ) - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() - - -class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): - """ActionsBillingUsagePropMinutesUsedBreakdown""" - - ubuntu: Missing[int] = Field( - default=UNSET, - alias="UBUNTU", - description="Total minutes used on Ubuntu runner machines.", + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." ) - macos: Missing[int] = Field( + locations_url: Missing[str] = Field( default=UNSET, - alias="MACOS", - description="Total minutes used on macOS runner machines.", + description="The REST API URL of the code locations for this alert.", ) - windows: Missing[int] = Field( + state: Missing[Literal["open", "resolved"]] = Field( default=UNSET, - alias="WINDOWS", - description="Total minutes used on Windows runner machines.", + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", ) - ubuntu_4_core: Missing[int] = Field( + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( default=UNSET, - description="Total minutes used on Ubuntu 4 core runner machines.", + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - ubuntu_8_core: Missing[int] = Field( + resolved_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Total minutes used on Ubuntu 8 core runner machines.", + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - ubuntu_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 16 core runner machines.", + 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." ) - ubuntu_32_core: Missing[int] = Field( + secret_type_display_name: Missing[str] = Field( default=UNSET, - description="Total minutes used on Ubuntu 32 core runner machines.", + 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)."', ) - ubuntu_64_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 64 core runner machines.", + 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." ) - windows_4_core: Missing[int] = Field( + push_protection_bypassed: Missing[Union[bool, None]] = Field( default=UNSET, - description="Total minutes used on Windows 4 core runner machines.", + description="Whether push protection was bypassed for the detected secret.", ) - windows_8_core: Missing[int] = Field( + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Total minutes used on Windows 8 core runner machines.", + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - windows_16_core: Missing[int] = Field( + 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="Total minutes used on Windows 16 core runner machines.", + description="An optional comment when reviewing a push protection bypass.", ) - windows_32_core: Missing[int] = Field( + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( default=UNSET, - description="Total minutes used on Windows 32 core runner machines.", + 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." ) - windows_64_core: Missing[int] = Field( + resolution_comment: Missing[Union[str, None]] = Field( default=UNSET, - description="Total minutes used on Windows 64 core runner machines.", + description="The comment that was optionally added when this alert was closed", ) - macos_12_core: Missing[int] = Field( + 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="Total minutes used on macOS 12 core runner machines.", + description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", ) - total: Missing[int] = Field( - default=UNSET, description="Total minutes used on all runner machines." + is_base64_encoded: Missing[Union[bool, None]] = Field( + default=UNSET, + description="A boolean value representing whether or not alert is base64 encoded", + ) + first_location_detected: Missing[ + Union[ + None, + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + has_more_locations: Missing[bool] = Field( + default=UNSET, + description="A boolean value representing whether or not the token in the alert was detected in more than one location.", ) -model_rebuild(ActionsBillingUsage) -model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) +model_rebuild(OrganizationSecretScanningAlert) -__all__ = ( - "ActionsBillingUsage", - "ActionsBillingUsagePropMinutesUsedBreakdown", -) +__all__ = ("OrganizationSecretScanningAlert",) 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 d579b5f48..6546dd05e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0150.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0150.py @@ -16,46 +16,92 @@ from githubkit.utils import UNSET -class AdvancedSecurityActiveCommitters(GitHubModel): - """AdvancedSecurityActiveCommitters""" +class ActionsBillingUsage(GitHubModel): + """ActionsBillingUsage""" - 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", + total_minutes_used: int = Field( + description="The sum of the free and paid GitHub Actions minutes used." ) - purchased_advanced_security_committers: Missing[int] = Field( - default=UNSET, - description="The total number of GitHub Advanced Security licences purchased", + total_paid_minutes_used: int = Field( + description="The total paid GitHub Actions minutes used." ) - repositories: list[AdvancedSecurityActiveCommittersRepository] = Field() - - -class AdvancedSecurityActiveCommittersRepository(GitHubModel): - """AdvancedSecurityActiveCommittersRepository""" - - name: str = Field() - advanced_security_committers: int = Field() - advanced_security_committers_breakdown: list[ - AdvancedSecurityActiveCommittersUser - ] = Field() + included_minutes: int = Field( + description="The amount of free GitHub Actions minutes available." + ) + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() -class AdvancedSecurityActiveCommittersUser(GitHubModel): - """AdvancedSecurityActiveCommittersUser""" +class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): + """ActionsBillingUsagePropMinutesUsedBreakdown""" - user_login: str = Field() - last_pushed_date: str = Field() - last_pushed_email: str = Field() + 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(AdvancedSecurityActiveCommitters) -model_rebuild(AdvancedSecurityActiveCommittersRepository) -model_rebuild(AdvancedSecurityActiveCommittersUser) +model_rebuild(ActionsBillingUsage) +model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) __all__ = ( - "AdvancedSecurityActiveCommitters", - "AdvancedSecurityActiveCommittersRepository", - "AdvancedSecurityActiveCommittersUser", + "ActionsBillingUsage", + "ActionsBillingUsagePropMinutesUsedBreakdown", ) 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 8473587a0..d579b5f48 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0151.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0151.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,38 +16,46 @@ from githubkit.utils import UNSET -class GetAllCostCenters(GitHubModel): - """GetAllCostCenters""" +class AdvancedSecurityActiveCommitters(GitHubModel): + """AdvancedSecurityActiveCommitters""" - cost_centers: Missing[list[GetAllCostCentersPropCostCentersItems]] = Field( - default=UNSET, alias="costCenters" + 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 GetAllCostCentersPropCostCentersItems(GitHubModel): - """GetAllCostCentersPropCostCentersItems""" +class AdvancedSecurityActiveCommittersRepository(GitHubModel): + """AdvancedSecurityActiveCommittersRepository""" - id: str = Field(description="ID of the cost center.") - name: str = Field(description="Name of the cost center.") - state: Missing[Literal["active", "deleted"]] = Field( - default=UNSET, description="State of the cost center." - ) - resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItems] = Field() + name: str = Field() + advanced_security_committers: int = Field() + advanced_security_committers_breakdown: list[ + AdvancedSecurityActiveCommittersUser + ] = Field() -class GetAllCostCentersPropCostCentersItemsPropResourcesItems(GitHubModel): - """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" +class AdvancedSecurityActiveCommittersUser(GitHubModel): + """AdvancedSecurityActiveCommittersUser""" - type: str = Field(description="Type of the resource.") - name: str = Field(description="Name of the resource.") + user_login: str = Field() + last_pushed_date: str = Field() + last_pushed_email: str = Field() -model_rebuild(GetAllCostCenters) -model_rebuild(GetAllCostCentersPropCostCentersItems) -model_rebuild(GetAllCostCentersPropCostCentersItemsPropResourcesItems) +model_rebuild(AdvancedSecurityActiveCommitters) +model_rebuild(AdvancedSecurityActiveCommittersRepository) +model_rebuild(AdvancedSecurityActiveCommittersUser) __all__ = ( - "GetAllCostCenters", - "GetAllCostCentersPropCostCentersItems", - "GetAllCostCentersPropCostCentersItemsPropResourcesItems", + "AdvancedSecurityActiveCommitters", + "AdvancedSecurityActiveCommittersRepository", + "AdvancedSecurityActiveCommittersUser", ) 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 8ddd6af0f..8473587a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0152.py @@ -9,30 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class GetAllCostCenters(GitHubModel): + """GetAllCostCenters""" + + cost_centers: Missing[list[GetAllCostCentersPropCostCentersItems]] = Field( + default=UNSET, alias="costCenters" + ) -class GetCostCenter(GitHubModel): - """GetCostCenter""" +class GetAllCostCentersPropCostCentersItems(GitHubModel): + """GetAllCostCentersPropCostCentersItems""" id: str = Field(description="ID of the cost center.") name: str = Field(description="Name of the cost center.") - resources: list[GetCostCenterPropResourcesItems] = Field() + state: Missing[Literal["active", "deleted"]] = Field( + default=UNSET, description="State of the cost center." + ) + resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItems] = Field() -class GetCostCenterPropResourcesItems(GitHubModel): - """GetCostCenterPropResourcesItems""" +class GetAllCostCentersPropCostCentersItemsPropResourcesItems(GitHubModel): + """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" type: str = Field(description="Type of the resource.") name: str = Field(description="Name of the resource.") -model_rebuild(GetCostCenter) -model_rebuild(GetCostCenterPropResourcesItems) +model_rebuild(GetAllCostCenters) +model_rebuild(GetAllCostCentersPropCostCentersItems) +model_rebuild(GetAllCostCentersPropCostCentersItemsPropResourcesItems) __all__ = ( - "GetCostCenter", - "GetCostCenterPropResourcesItems", + "GetAllCostCenters", + "GetAllCostCentersPropCostCentersItems", + "GetAllCostCentersPropCostCentersItemsPropResourcesItems", ) 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 66e1e6af5..8ddd6af0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0153.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0153.py @@ -9,27 +9,30 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class DeleteCostCenter(GitHubModel): - """DeleteCostCenter""" +class GetCostCenter(GitHubModel): + """GetCostCenter""" + + id: str = Field(description="ID of the cost center.") + name: str = Field(description="Name of the cost center.") + resources: list[GetCostCenterPropResourcesItems] = Field() + + +class GetCostCenterPropResourcesItems(GitHubModel): + """GetCostCenterPropResourcesItems""" - message: str = Field( - description="A message indicating the result of the deletion operation" - ) - id: str = Field(description="The unique identifier of the deleted cost center") - name: str = Field(description="The name of the deleted cost center") - cost_center_state: Literal["CostCenterArchived"] = Field( - alias="costCenterState", - description="The state of the cost center after deletion", - ) + type: str = Field(description="Type of the resource.") + name: str = Field(description="Name of the resource.") -model_rebuild(DeleteCostCenter) +model_rebuild(GetCostCenter) +model_rebuild(GetCostCenterPropResourcesItems) -__all__ = ("DeleteCostCenter",) +__all__ = ( + "GetCostCenter", + "GetCostCenterPropResourcesItems", +) 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 b7be403af..66e1e6af5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0154.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0154.py @@ -9,25 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class PackagesBillingUsage(GitHubModel): - """PackagesBillingUsage""" +class DeleteCostCenter(GitHubModel): + """DeleteCostCenter""" - 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." + message: str = Field( + description="A message indicating the result of the deletion operation" ) - included_gigabytes_bandwidth: int = Field( - description="Free storage space (GB) for GitHub Packages." + id: str = Field(description="The unique identifier of the deleted cost center") + name: str = Field(description="The name of the deleted cost center") + cost_center_state: Literal["CostCenterArchived"] = Field( + alias="costCenterState", + description="The state of the cost center after deletion", ) -model_rebuild(PackagesBillingUsage) +model_rebuild(DeleteCostCenter) -__all__ = ("PackagesBillingUsage",) +__all__ = ("DeleteCostCenter",) 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 7f2b2b444..b7be403af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0155.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0155.py @@ -14,20 +14,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class CombinedBillingUsage(GitHubModel): - """CombinedBillingUsage""" +class PackagesBillingUsage(GitHubModel): + """PackagesBillingUsage""" - days_left_in_billing_cycle: int = Field( - description="Numbers of days left in billing cycle." + total_gigabytes_bandwidth_used: int = Field( + description="Sum of the free and paid storage space (GB) for GitHuub Packages." ) - estimated_paid_storage_for_month: int = Field( - description="Estimated storage space (GB) used in billing cycle." + total_paid_gigabytes_bandwidth_used: int = Field( + description="Total paid storage space (GB) for GitHuub Packages." ) - estimated_storage_for_month: int = Field( - description="Estimated sum of free and paid storage space (GB) used in billing cycle." + included_gigabytes_bandwidth: int = Field( + description="Free storage space (GB) for GitHub Packages." ) -model_rebuild(CombinedBillingUsage) +model_rebuild(PackagesBillingUsage) -__all__ = ("CombinedBillingUsage",) +__all__ = ("PackagesBillingUsage",) 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 856ee3686..7f2b2b444 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0156.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0156.py @@ -12,52 +12,22 @@ 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""" +class CombinedBillingUsage(GitHubModel): + """CombinedBillingUsage""" - usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" + days_left_in_billing_cycle: int = Field( + description="Numbers of days left in billing cycle." ) - - -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." + estimated_paid_storage_for_month: int = Field( + description="Estimated storage space (GB) used in billing cycle." ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." + estimated_storage_for_month: int = Field( + description="Estimated sum of free and paid storage space (GB) used in billing cycle." ) -model_rebuild(BillingUsageReport) -model_rebuild(BillingUsageReportPropUsageItemsItems) +model_rebuild(CombinedBillingUsage) -__all__ = ( - "BillingUsageReport", - "BillingUsageReportPropUsageItemsItems", -) +__all__ = ("CombinedBillingUsage",) 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 5c7ac6985..856ee3686 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0157.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0157.py @@ -9,42 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + -from .group_0003 import SimpleUser +class BillingUsageReport(GitHubModel): + """BillingUsageReport""" + usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" + ) -class Milestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +class BillingUsageReportPropUsageItemsItems(GitHubModel): + """BillingUsageReportPropUsageItemsItems""" - 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." + date: str = Field(description="Date of the usage line item.") + product: str = Field(description="Product name.") + sku: str = Field(description="SKU name.") + quantity: int = Field(description="Quantity of the usage line item.") + unit_type: str = Field( + alias="unitType", description="Unit type of the usage line item." + ) + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." + ) + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." + ) + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." + ) + net_amount: float = Field( + alias="netAmount", description="Net amount of the usage line item." + ) + organization_name: str = Field( + alias="organizationName", description="Name of the organization." + ) + repository_name: Missing[str] = Field( + default=UNSET, alias="repositoryName", description="Name of the repository." ) - title: str = Field(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(BillingUsageReport) +model_rebuild(BillingUsageReportPropUsageItemsItems) -__all__ = ("Milestone",) +__all__ = ( + "BillingUsageReport", + "BillingUsageReportPropUsageItemsItems", +) 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 699a0740c..5c7ac6985 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0158.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0158.py @@ -15,41 +15,36 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class IssueType(GitHubModel): - """Issue Type - The type of issue. +class Milestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ - id: int = Field(description="The unique identifier of the issue type.") - node_id: str = Field(description="The node identifier of the issue type.") - name: str = Field(description="The name of the issue type.") - description: Union[str, None] = Field( - description="The description of the issue type." - ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="The color of the issue type.") - created_at: Missing[datetime] = Field( - default=UNSET, description="The time the issue type created." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, description="The time the issue type last updated." - ) - is_enabled: Missing[bool] = Field( - default=UNSET, description="The enabled state of the issue type." + 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(IssueType) +model_rebuild(Milestone) -__all__ = ("IssueType",) +__all__ = ("Milestone",) 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 fd85f1373..699a0740c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0159.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0159.py @@ -9,26 +9,47 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReactionRollup(GitHubModel): - """Reaction Rollup""" - - url: str = Field() - total_count: int = Field() - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - laugh: int = Field() - confused: int = Field() - heart: int = Field() - hooray: int = Field() - eyes: int = Field() - rocket: int = Field() - - -model_rebuild(ReactionRollup) - -__all__ = ("ReactionRollup",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class IssueType(GitHubModel): + """Issue Type + + The type of issue. + """ + + id: int = Field(description="The unique identifier of the issue type.") + node_id: str = Field(description="The node identifier of the issue type.") + name: str = Field(description="The name of the issue type.") + description: Union[str, None] = Field( + description="The description of the issue type." + ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="The color of the issue type.") + created_at: Missing[datetime] = Field( + default=UNSET, description="The time the issue type created." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, description="The time the issue type last updated." + ) + is_enabled: Missing[bool] = Field( + default=UNSET, description="The enabled state of the issue type." + ) + + +model_rebuild(IssueType) + +__all__ = ("IssueType",) 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 fcd00f123..fd85f1373 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0160.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0160.py @@ -9,134 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0020 import Repository -from .group_0157 import Milestone -from .group_0158 import IssueType -from .group_0159 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", "duplicate"]] - ] = Field(default=UNSET, description="The reason for the current state") - title: str = Field(description="Title of the issue") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - user: Union[None, SimpleUser] = Field() - labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( - description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" - ) - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - milestone: Union[None, Milestone] = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - comments: int = Field() - pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - sub_issues_summary: Missing[SubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - - -class SubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class IssuePropLabelsItemsOneof1(GitHubModel): - """IssuePropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) -class IssuePropPullRequest(GitHubModel): - """IssuePropPullRequest""" +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/ghec_v2022_11_28/models/group_0161.py b/githubkit/versions/ghec_v2022_11_28/models/group_0161.py index 25096395f..f2cb2d719 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0161.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0161.py @@ -9,58 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0159 import ReactionRollup - -class IssueComment(GitHubModel): - """Issue Comment - Comments provide a way for people to collaborate on an issue. - """ +class SubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - 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") + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(IssueComment) +model_rebuild(SubIssuesSummary) -__all__ = ("IssueComment",) +__all__ = ("SubIssuesSummary",) 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 9ca803511..3cbdfff39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0162.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0162.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,116 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0160 import Issue -from .group_0161 import IssueComment +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0158 import Milestone +from .group_0159 import IssueType +from .group_0160 import ReactionRollup +from .group_0161 import SubIssuesSummary -class EventPropPayload(GitHubModel): - """EventPropPayload""" +class Issue(GitHubModel): + """Issue - 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 + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ - 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() - + id: int = Field() + node_id: str = Field() + url: str = Field(description="URL for the issue") + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() + events_url: str = Field() + html_url: str = Field() + number: int = Field( + description="Number uniquely identifying the issue within its repository" + ) + state: str = Field(description="State of the issue; either 'open' or 'closed'") + state_reason: Missing[ + Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] + ] = Field(default=UNSET, description="The reason for the current state") + title: str = Field(description="Title of the issue") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" + ) + user: Union[None, SimpleUser] = Field() + labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( + description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" + ) + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + milestone: Union[None, Milestone] = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + comments: int = Field() + pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) -class Actor(GitHubModel): - """Actor - Actor - """ +class IssuePropLabelsItemsOneof1(GitHubModel): + """IssuePropLabelsItemsOneof1""" - 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() + 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 EventPropRepo(GitHubModel): - """EventPropRepo""" +class IssuePropPullRequest(GitHubModel): + """IssuePropPullRequest""" - id: int = Field() - name: str = Field() - url: str = Field() + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -model_rebuild(EventPropPayload) -model_rebuild(EventPropPayloadPropPagesItems) -model_rebuild(Event) -model_rebuild(Actor) -model_rebuild(EventPropRepo) +model_rebuild(Issue) +model_rebuild(IssuePropLabelsItemsOneof1) +model_rebuild(IssuePropPullRequest) __all__ = ( - "Actor", - "Event", - "EventPropPayload", - "EventPropPayloadPropPagesItems", - "EventPropRepo", + "Issue", + "IssuePropLabelsItemsOneof1", + "IssuePropPullRequest", ) 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 a40a69c97..66c5847c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0163.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0163.py @@ -9,86 +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 +from .group_0160 import ReactionRollup -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 IssueComment(GitHubModel): + """Issue Comment + Comments provide a way for people to collaborate on an issue. + """ -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" + 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" ) - current_user: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + 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.", ) - current_user_public: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - current_user_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() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(Feed) -model_rebuild(FeedPropLinks) -model_rebuild(LinkWithType) +model_rebuild(IssueComment) -__all__ = ( - "Feed", - "FeedPropLinks", - "LinkWithType", -) +__all__ = ("IssueComment",) 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 f2be178a2..5ba806ea8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0164.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0164.py @@ -10,56 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0162 import Issue +from .group_0163 import IssueComment -class BaseGist(GitHubModel): - """Base Gist +class EventPropPayload(GitHubModel): + """EventPropPayload""" - Base Gist + 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 """ - 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() + type: Union[str, None] = Field() + actor: Actor = Field(title="Actor", description="Actor") + repo: EventPropRepo = Field() + org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") + payload: EventPropPayload = Field() public: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[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) + created_at: Union[datetime, None] = Field() + +class Actor(GitHubModel): + """Actor -class BaseGistPropFiles(ExtraGitHubModel): - """BaseGistPropFiles""" + 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(BaseGist) -model_rebuild(BaseGistPropFiles) +model_rebuild(EventPropPayload) +model_rebuild(EventPropPayloadPropPagesItems) +model_rebuild(Event) +model_rebuild(Actor) +model_rebuild(EventPropRepo) __all__ = ( - "BaseGist", - "BaseGistPropFiles", + "Actor", + "Event", + "EventPropPayload", + "EventPropPayloadPropPagesItems", + "EventPropRepo", ) 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 825cce14c..a40a69c97 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0165.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0165.py @@ -9,80 +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_0003 import SimpleUser - -class GistHistory(GitHubModel): - """Gist History +class Feed(GitHubModel): + """Feed - Gist History + Feed """ - 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) - + 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 LinkWithType(GitHubModel): + """Link With Type + + Hypermedia Link with Type + """ -class GistSimplePropForkOf(GitHubModel): - """Gist + href: str = Field() + type: str = Field() - Gist - """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() - node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() - html_url: str = Field() - files: GistSimplePropForkOfPropFiles = Field() - public: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[list[Any]] = Field(default=UNSET) - history: Missing[list[Any]] = Field(default=UNSET) - - -class GistSimplePropForkOfPropFiles(ExtraGitHubModel): - """GistSimplePropForkOfPropFiles""" - - -model_rebuild(GistHistory) -model_rebuild(GistHistoryPropChangeStatus) -model_rebuild(GistSimplePropForkOf) -model_rebuild(GistSimplePropForkOfPropFiles) +model_rebuild(Feed) +model_rebuild(FeedPropLinks) +model_rebuild(LinkWithType) __all__ = ( - "GistHistory", - "GistHistoryPropChangeStatus", - "GistSimplePropForkOf", - "GistSimplePropForkOfPropFiles", + "Feed", + "FeedPropLinks", + "LinkWithType", ) 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 8d67acb03..f2be178a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0166.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0166.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 @@ -19,126 +19,47 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0165 import GistHistory, GistSimplePropForkOf -class GistSimple(GitHubModel): - """Gist Simple +class BaseGist(GitHubModel): + """Base Gist - Gist Simple + Base Gist """ - 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) + 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: Missing[Union[str, None]] = Field(default=UNSET) - comments_url: Missing[str] = 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 GistSimplePropFiles(ExtraGitHubModel): - """GistSimplePropFiles""" - - -class GistSimplePropForksItems(GitHubModel): - """GistSimplePropForksItems""" - - id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[PublicUser] = Field( - default=UNSET, title="Public User", description="Public User" - ) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - - -class PublicUser(GitHubModel): - """Public User - - Public User - """ - - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - plan: Missing[PublicUserPropPlan] = Field(default=UNSET) - private_gists: Missing[int] = Field(default=UNSET) - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - disk_usage: Missing[int] = Field(default=UNSET) - collaborators: Missing[int] = Field(default=UNSET) - - -class PublicUserPropPlan(GitHubModel): - """PublicUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() +class BaseGistPropFiles(ExtraGitHubModel): + """BaseGistPropFiles""" -model_rebuild(GistSimple) -model_rebuild(GistSimplePropFiles) -model_rebuild(GistSimplePropForksItems) -model_rebuild(PublicUser) -model_rebuild(PublicUserPropPlan) +model_rebuild(BaseGist) +model_rebuild(BaseGistPropFiles) __all__ = ( - "GistSimple", - "GistSimplePropFiles", - "GistSimplePropForksItems", - "PublicUser", - "PublicUserPropPlan", + "BaseGist", + "BaseGistPropFiles", ) 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 429704889..825cce14c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0167.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0167.py @@ -10,43 +10,79 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Any, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser -class GistComment(GitHubModel): - """Gist Comment +class GistHistory(GitHubModel): + """Gist History - A comment made to a 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 """ - id: int = Field() - node_id: str = Field() url: str = Field() - body: str = Field(max_length=65535, description="The comment text.") - user: Union[None, SimpleUser] = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: GistSimplePropForkOfPropFiles = Field() + public: bool = Field() created_at: datetime = Field() updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - - -model_rebuild(GistComment) - -__all__ = ("GistComment",) + description: Union[str, None] = Field() + comments: int = Field() + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[list[Any]] = Field(default=UNSET) + history: Missing[list[Any]] = Field(default=UNSET) + + +class GistSimplePropForkOfPropFiles(ExtraGitHubModel): + """GistSimplePropForkOfPropFiles""" + + +model_rebuild(GistHistory) +model_rebuild(GistHistoryPropChangeStatus) +model_rebuild(GistSimplePropForkOf) +model_rebuild(GistSimplePropForkOfPropFiles) + +__all__ = ( + "GistHistory", + "GistHistoryPropChangeStatus", + "GistSimplePropForkOf", + "GistSimplePropForkOfPropFiles", +) 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 d417526bd..bfbe02b20 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0168.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0168.py @@ -14,38 +14,131 @@ 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_0167 import GistHistory, GistSimplePropForkOf -class GistCommit(GitHubModel): - """Gist Commit +class GistSimple(GitHubModel): + """Gist Simple - Gist Commit + Gist Simple """ - 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) - + 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 + """ -model_rebuild(GistCommit) -model_rebuild(GistCommitPropChangeStatus) + 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__ = ( - "GistCommit", - "GistCommitPropChangeStatus", + "GistSimple", + "GistSimplePropFiles", + "GistSimplePropForksItems", + "PublicUser", + "PublicUserPropPlan", ) 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 68fca7a2b..429704889 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0169.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0169.py @@ -9,21 +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_0003 import SimpleUser -class GitignoreTemplate(GitHubModel): - """Gitignore Template - - Gitignore Template - """ - name: str = Field() - source: str = Field() +class GistComment(GitHubModel): + """Gist Comment + A comment made to a gist. + """ -model_rebuild(GitignoreTemplate) - -__all__ = ("GitignoreTemplate",) + 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.", + ) + + +model_rebuild(GistComment) + +__all__ = ("GistComment",) 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 783d62fbc..d417526bd 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,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 License(GitHubModel): - """License - License +class GistCommit(GitHubModel): + """Gist Commit + + Gist Commit """ - 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() + 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(License) +model_rebuild(GistCommit) +model_rebuild(GistCommitPropChangeStatus) -__all__ = ("License",) +__all__ = ( + "GistCommit", + "GistCommitPropChangeStatus", +) 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 f13661e40..68fca7a2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0171.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0171.py @@ -9,34 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class MarketplaceListingPlan(GitHubModel): - """Marketplace Listing Plan +class GitignoreTemplate(GitHubModel): + """Gitignore Template - Marketplace Listing Plan + Gitignore Template """ - 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() + source: str = Field() -model_rebuild(MarketplaceListingPlan) +model_rebuild(GitignoreTemplate) -__all__ = ("MarketplaceListingPlan",) +__all__ = ("GitignoreTemplate",) 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 d9275ddc7..783d62fbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0172.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0172.py @@ -14,33 +14,29 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0173 import ( - MarketplacePurchasePropMarketplacePendingChange, - MarketplacePurchasePropMarketplacePurchase, -) +class License(GitHubModel): + """License -class MarketplacePurchase(GitHubModel): - """Marketplace Purchase - - Marketplace Purchase + License """ - 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() + 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(MarketplacePurchase) +model_rebuild(License) -__all__ = ("MarketplacePurchase",) +__all__ = ("License",) 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 b0c29b638..f13661e40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0173.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0173.py @@ -9,52 +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_0171 import MarketplaceListingPlan - - -class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): - """MarketplacePurchasePropMarketplacePendingChange""" - - is_installed: Missing[bool] = Field(default=UNSET) - effective_date: Missing[str] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -class MarketplacePurchasePropMarketplacePurchase(GitHubModel): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: Missing[str] = Field(default=UNSET) - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - is_installed: Missing[bool] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - on_free_trial: Missing[bool] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -model_rebuild(MarketplacePurchasePropMarketplacePendingChange) -model_rebuild(MarketplacePurchasePropMarketplacePurchase) - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChange", - "MarketplacePurchasePropMarketplacePurchase", -) + + +class MarketplaceListingPlan(GitHubModel): + """Marketplace Listing Plan + + Marketplace Listing Plan + """ + + 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",) 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 b8030b113..3085f74cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0174.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0174.py @@ -9,89 +9,38 @@ 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_0175 import ( + MarketplacePurchasePropMarketplacePendingChange, + MarketplacePurchasePropMarketplacePurchase, +) -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""" - - 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 MarketplacePurchase(GitHubModel): + """Marketplace Purchase -class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): - """ApiOverviewPropDomainsPropArtifactAttestations""" + Marketplace Purchase + """ - trust_domain: Missing[str] = Field(default=UNSET) - services: Missing[list[str]] = Field(default=UNSET) + url: str = Field() + type: str = Field() + id: int = Field() + login: str = Field() + organization_billing_email: Missing[str] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + marketplace_pending_change: Missing[ + Union[MarketplacePurchasePropMarketplacePendingChange, None] + ] = Field(default=UNSET) + marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() -model_rebuild(ApiOverview) -model_rebuild(ApiOverviewPropSshKeyFingerprints) -model_rebuild(ApiOverviewPropDomains) -model_rebuild(ApiOverviewPropDomainsPropActionsInbound) -model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) +model_rebuild(MarketplacePurchase) -__all__ = ( - "ApiOverview", - "ApiOverviewPropDomains", - "ApiOverviewPropDomainsPropActionsInbound", - "ApiOverviewPropDomainsPropArtifactAttestations", - "ApiOverviewPropSshKeyFingerprints", -) +__all__ = ("MarketplacePurchase",) 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 ea6c438b5..2dcf7d01f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0175.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0175.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,109 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0173 import MarketplaceListingPlan -class SecurityAndAnalysis(GitHubModel): - """SecurityAndAnalysis""" - advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( - default=UNSET - ) - code_security: Missing[SecurityAndAnalysisPropCodeSecurity] = Field(default=UNSET) - dependabot_security_updates: Missing[ - SecurityAndAnalysisPropDependabotSecurityUpdates - ] = 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="Enable or disable Dependabot security updates for the repository.", + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", ) - secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( - default=UNSET - ) - secret_scanning_push_protection: Missing[ - SecurityAndAnalysisPropSecretScanningPushProtection - ] = Field(default=UNSET) - secret_scanning_non_provider_patterns: Missing[ - SecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field(default=UNSET) - secret_scanning_ai_detection: Missing[ - SecurityAndAnalysisPropSecretScanningAiDetection - ] = Field(default=UNSET) - secret_scanning_validity_checks: Missing[ - SecurityAndAnalysisPropSecretScanningValidityChecks - ] = Field(default=UNSET) - - -class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - -class SecurityAndAnalysisPropCodeSecurity(GitHubModel): - """SecurityAndAnalysisPropCodeSecurity""" - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) +class MarketplacePurchasePropMarketplacePurchase(GitHubModel): + """MarketplacePurchasePropMarketplacePurchase""" - -class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): - """SecurityAndAnalysisPropDependabotSecurityUpdates - - Enable or disable Dependabot security updates for the repository. - """ - - status: Missing[Literal["enabled", "disabled"]] = Field( + 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, - description="The enablement status of Dependabot security updates for the repository.", + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", ) -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(SecurityAndAnalysisPropCodeSecurity) -model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) -model_rebuild(SecurityAndAnalysisPropSecretScanning) -model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) -model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) -model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) -model_rebuild(SecurityAndAnalysisPropSecretScanningValidityChecks) +model_rebuild(MarketplacePurchasePropMarketplacePendingChange) +model_rebuild(MarketplacePurchasePropMarketplacePurchase) __all__ = ( - "SecurityAndAnalysis", - "SecurityAndAnalysisPropAdvancedSecurity", - "SecurityAndAnalysisPropCodeSecurity", - "SecurityAndAnalysisPropDependabotSecurityUpdates", - "SecurityAndAnalysisPropSecretScanning", - "SecurityAndAnalysisPropSecretScanningAiDetection", - "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "SecurityAndAnalysisPropSecretScanningPushProtection", - "SecurityAndAnalysisPropSecretScanningValidityChecks", + "MarketplacePurchasePropMarketplacePendingChange", + "MarketplacePurchasePropMarketplacePurchase", ) 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 936a08b2a..b8030b113 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0176.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0176.py @@ -9,179 +9,89 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0175 import SecurityAndAnalysis - -class MinimalRepository(GitHubModel): - """Minimal Repository +class ApiOverview(GitHubModel): + """Api Overview - Minimal Repository + Api Overview """ - 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" + verifiable_password_authentication: bool = Field() + ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( + default=UNSET ) - 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( + 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 ) - custom_properties: Missing[MinimalRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( + Field(default=UNSET) ) -class CodeOfConduct(GitHubModel): - """Code Of Conduct - - Code Of Conduct - """ - - key: str = Field() - name: str = Field() - url: str = Field() - body: Missing[str] = Field(default=UNSET) - html_url: Union[str, None] = Field() - - -class MinimalRepositoryPropPermissions(GitHubModel): - """MinimalRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) +class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): + """ApiOverviewPropDomainsPropActionsInbound""" + full_domains: Missing[list[str]] = Field(default=UNSET) + wildcard_domains: Missing[list[str]] = Field(default=UNSET) -class MinimalRepositoryPropLicense(GitHubModel): - """MinimalRepositoryPropLicense""" - key: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - spdx_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) +class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): + """ApiOverviewPropDomainsPropArtifactAttestations""" - -class MinimalRepositoryPropCustomProperties(ExtraGitHubModel): - """MinimalRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + trust_domain: Missing[str] = Field(default=UNSET) + services: Missing[list[str]] = Field(default=UNSET) -model_rebuild(MinimalRepository) -model_rebuild(CodeOfConduct) -model_rebuild(MinimalRepositoryPropPermissions) -model_rebuild(MinimalRepositoryPropLicense) -model_rebuild(MinimalRepositoryPropCustomProperties) +model_rebuild(ApiOverview) +model_rebuild(ApiOverviewPropSshKeyFingerprints) +model_rebuild(ApiOverviewPropDomains) +model_rebuild(ApiOverviewPropDomainsPropActionsInbound) +model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) __all__ = ( - "CodeOfConduct", - "MinimalRepository", - "MinimalRepositoryPropCustomProperties", - "MinimalRepositoryPropLicense", - "MinimalRepositoryPropPermissions", + "ApiOverview", + "ApiOverviewPropDomains", + "ApiOverviewPropDomainsPropActionsInbound", + "ApiOverviewPropDomainsPropArtifactAttestations", + "ApiOverviewPropSshKeyFingerprints", ) 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 dd17cc948..17725e174 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0177.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0177.py @@ -9,47 +9,124 @@ 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_0176 import MinimalRepository +class SecurityAndAnalysis(GitHubModel): + """SecurityAndAnalysis""" + + advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( + default=UNSET, + description="Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n", + ) + code_security: Missing[SecurityAndAnalysisPropCodeSecurity] = Field(default=UNSET) + dependabot_security_updates: Missing[ + SecurityAndAnalysisPropDependabotSecurityUpdates + ] = Field( + default=UNSET, + description="Enable or disable Dependabot security updates for the repository.", + ) + secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( + default=UNSET + ) + secret_scanning_push_protection: Missing[ + SecurityAndAnalysisPropSecretScanningPushProtection + ] = Field(default=UNSET) + secret_scanning_non_provider_patterns: Missing[ + SecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field(default=UNSET) + secret_scanning_ai_detection: Missing[ + SecurityAndAnalysisPropSecretScanningAiDetection + ] = Field(default=UNSET) + secret_scanning_validity_checks: Missing[ + SecurityAndAnalysisPropSecretScanningValidityChecks + ] = Field(default=UNSET) + + +class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """SecurityAndAnalysisPropAdvancedSecurity + + Enable or disable GitHub Advanced Security for the repository. + + For standalone Code Scanning or Secret Protection products, this parameter + cannot be used. + """ + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -class Thread(GitHubModel): - """Thread - Thread +class SecurityAndAnalysisPropCodeSecurity(GitHubModel): + """SecurityAndAnalysisPropCodeSecurity""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - id: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + status: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, + description="The enablement status of Dependabot security updates for the 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""" +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""" - title: str = Field() - url: str = Field() - latest_comment_url: str = Field() - type: str = Field() + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -model_rebuild(Thread) -model_rebuild(ThreadPropSubject) +model_rebuild(SecurityAndAnalysis) +model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(SecurityAndAnalysisPropCodeSecurity) +model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) +model_rebuild(SecurityAndAnalysisPropSecretScanning) +model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) +model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) +model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) +model_rebuild(SecurityAndAnalysisPropSecretScanningValidityChecks) __all__ = ( - "Thread", - "ThreadPropSubject", + "SecurityAndAnalysis", + "SecurityAndAnalysisPropAdvancedSecurity", + "SecurityAndAnalysisPropCodeSecurity", + "SecurityAndAnalysisPropDependabotSecurityUpdates", + "SecurityAndAnalysisPropSecretScanning", + "SecurityAndAnalysisPropSecretScanningAiDetection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "SecurityAndAnalysisPropSecretScanningPushProtection", + "SecurityAndAnalysisPropSecretScanningValidityChecks", ) 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 3f78547c4..558119ae9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0178.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0178.py @@ -14,26 +14,174 @@ 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_0177 import SecurityAndAnalysis -class ThreadSubscription(GitHubModel): - """Thread Subscription - Thread Subscription +class MinimalRepository(GitHubModel): + """Minimal Repository + + Minimal Repository """ - subscribed: bool = Field() - ignored: bool = Field() - reason: Union[str, None] = Field() - created_at: Union[datetime, 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() - thread_url: Missing[str] = Field(default=UNSET) - repository_url: Missing[str] = Field(default=UNSET) + 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 + ) + custom_properties: Missing[MinimalRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class CodeOfConduct(GitHubModel): + """Code Of Conduct + + Code Of Conduct + """ + + key: str = Field() + name: str = Field() + url: str = Field() + body: Missing[str] = Field(default=UNSET) + html_url: Union[str, None] = Field() + + +class MinimalRepositoryPropPermissions(GitHubModel): + """MinimalRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) + + +class MinimalRepositoryPropLicense(GitHubModel): + """MinimalRepositoryPropLicense""" + + key: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + spdx_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + + +class MinimalRepositoryPropCustomProperties(ExtraGitHubModel): + """MinimalRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -model_rebuild(ThreadSubscription) +model_rebuild(MinimalRepository) +model_rebuild(CodeOfConduct) +model_rebuild(MinimalRepositoryPropPermissions) +model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(MinimalRepositoryPropCustomProperties) -__all__ = ("ThreadSubscription",) +__all__ = ( + "CodeOfConduct", + "MinimalRepository", + "MinimalRepositoryPropCustomProperties", + "MinimalRepositoryPropLicense", + "MinimalRepositoryPropPermissions", +) 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 15376e3fa..e5666acf3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0179.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0179.py @@ -9,41 +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_0003 import SimpleUser +from .group_0178 import MinimalRepository -class OrganizationCustomRepositoryRole(GitHubModel): - """Organization Custom Repository Role +class Thread(GitHubModel): + """Thread - Custom repository roles created by organization owners + Thread """ - 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.", + id: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - 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() + 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() -model_rebuild(OrganizationCustomRepositoryRole) +model_rebuild(Thread) +model_rebuild(ThreadPropSubject) -__all__ = ("OrganizationCustomRepositoryRole",) +__all__ = ( + "Thread", + "ThreadPropSubject", +) 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 985c13bca..3f78547c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0180.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0180.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,25 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0061 import SimpleRepository +class ThreadSubscription(GitHubModel): + """Thread Subscription -class DependabotRepositoryAccessDetails(GitHubModel): - """Dependabot Repository Access Details - - Information about repositories that Dependabot is able to access in an - organization + Thread Subscription """ - default_level: Missing[Union[None, Literal["public", "internal"]]] = Field( - default=UNSET, - description="The default repository access level for Dependabot updates.", - ) - accessible_repositories: Missing[list[Union[None, SimpleRepository]]] = Field( - default=UNSET - ) + 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(DependabotRepositoryAccessDetails) +model_rebuild(ThreadSubscription) -__all__ = ("DependabotRepositoryAccessDetails",) +__all__ = ("ThreadSubscription",) 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 0160f55d8..15376e3fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0181.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0181.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,143 +18,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class OrganizationFull(GitHubModel): - """Organization Full - Prevents users in the organization from using insecure methods of two-factor - authentication to fulfill a two-factor requirement. - Removes non-compliant outside collaborators from the organization and its - repositories. +class OrganizationCustomRepositoryRole(GitHubModel): + """Organization Custom Repository Role - 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. + Custom repository roles created by organization owners """ - 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) - default_repository_branch: 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="The default branch for repositories created in this organization.", + description="A short description about who this role is for or what permissions it grants.", ) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_delete_repositories: Missing[bool] = Field(default=UNSET) - members_can_change_repo_visibility: Missing[bool] = Field(default=UNSET) - members_can_invite_outside_collaborators: Missing[bool] = Field(default=UNSET) - members_can_delete_issues: Missing[bool] = Field(default=UNSET) - display_commenter_full_name_setting_enabled: Missing[bool] = Field(default=UNSET) - readers_can_create_discussions: Missing[bool] = Field(default=UNSET) - members_can_create_teams: Missing[bool] = Field(default=UNSET) - members_can_view_dependency_insights: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET + base_role: Literal["read", "triage", "write", "maintain"] = Field( + description="The system role from which this role inherits permissions." ) - 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.", + 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() - 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(OrganizationFull) -model_rebuild(OrganizationFullPropPlan) +model_rebuild(OrganizationCustomRepositoryRole) -__all__ = ( - "OrganizationFull", - "OrganizationFullPropPlan", -) +__all__ = ("OrganizationCustomRepositoryRole",) 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 e3255a143..985c13bca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0182.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0182.py @@ -9,22 +9,33 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0061 import SimpleRepository -class OidcCustomSub(GitHubModel): - """Actions OIDC Subject customization +class DependabotRepositoryAccessDetails(GitHubModel): + """Dependabot Repository Access Details - Actions OIDC Subject customization + Information about repositories that Dependabot is able to access in an + organization """ - include_claim_keys: list[str] = Field( - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." + default_level: Missing[Union[None, Literal["public", "internal"]]] = Field( + default=UNSET, + description="The default repository access level for Dependabot updates.", + ) + accessible_repositories: Missing[list[Union[None, SimpleRepository]]] = Field( + default=UNSET ) -model_rebuild(OidcCustomSub) +model_rebuild(DependabotRepositoryAccessDetails) -__all__ = ("OidcCustomSub",) +__all__ = ("DependabotRepositoryAccessDetails",) 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 3efa01ac1..0160f55d8 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,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -18,26 +19,142 @@ from githubkit.utils import UNSET -class ActionsOrganizationPermissions(GitHubModel): - """ActionsOrganizationPermissions""" +class OrganizationFull(GitHubModel): + """Organization Full - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + 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) + default_repository_branch: Missing[Union[str, None]] = Field( + default=UNSET, + description="The default branch for repositories created in this organization.", + ) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_delete_repositories: Missing[bool] = Field(default=UNSET) + members_can_change_repo_visibility: Missing[bool] = Field(default=UNSET) + members_can_invite_outside_collaborators: Missing[bool] = Field(default=UNSET) + members_can_delete_issues: Missing[bool] = Field(default=UNSET) + display_commenter_full_name_setting_enabled: Missing[bool] = Field(default=UNSET) + readers_can_create_discussions: Missing[bool] = Field(default=UNSET) + members_can_create_teams: Missing[bool] = Field(default=UNSET) + members_can_view_dependency_insights: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET + ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/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.", ) - selected_repositories_url: Missing[str] = Field( + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( default=UNSET, - description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", + description="An optional URL string to display to contributors who are blocked from pushing a secret.", ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + secret_scanning_validity_checks_enabled: Missing[bool] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + 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.", ) - selected_actions_url: Missing[str] = Field( + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + deploy_keys_enabled_for_repositories: Missing[bool] = Field( default=UNSET, - description="The 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="Controls whether or not deploy keys may be added and used for repositories in the organization.", ) -model_rebuild(ActionsOrganizationPermissions) +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) -__all__ = ("ActionsOrganizationPermissions",) +__all__ = ( + "OrganizationFull", + "OrganizationFullPropPlan", +) 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 9d8938959..e3255a143 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0184.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0184.py @@ -12,24 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ActionsPublicKey(GitHubModel): - """ActionsPublicKey +class OidcCustomSub(GitHubModel): + """Actions OIDC Subject customization - The public key used for setting Actions Secrets. + Actions OIDC Subject customization """ - 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) + include_claim_keys: list[str] = Field( + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." + ) -model_rebuild(ActionsPublicKey) +model_rebuild(OidcCustomSub) -__all__ = ("ActionsPublicKey",) +__all__ = ("OidcCustomSub",) 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 675052c89..3efa01ac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0185.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0185.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,143 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0056 import BypassResponse +class ActionsOrganizationPermissions(GitHubModel): + """ActionsOrganizationPermissions""" -class SecretScanningBypassRequest(GitHubModel): - """Secret scanning bypass request - - A bypass request made by a user asking to be exempted from push protection 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[SecretScanningBypassRequestPropRepository] = Field( - default=UNSET, description="The repository the bypass request is for." - ) - organization: Missing[SecretScanningBypassRequestPropOrganization] = Field( - default=UNSET, - description="The organization associated with the repository the bypass request is for.", - ) - requester: Missing[SecretScanningBypassRequestPropRequester] = Field( - default=UNSET, description="The user who requested the bypass." - ) - request_type: Missing[str] = Field( - default=UNSET, description="The type of request." - ) - data: Missing[Union[list[SecretScanningBypassRequestPropDataItems], None]] = Field( - default=UNSET, - description="Data describing the push rules that are being requested to be bypassed.", + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." ) - resource_identifier: Missing[str] = Field( + selected_repositories_url: 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 SecretScanningBypassRequestPropRepository(GitHubModel): - """SecretScanningBypassRequestPropRepository - - The repository the bypass request is for. - """ - - id: Missing[int] = Field( - default=UNSET, description="The ID of the repository the bypass request is for." - ) - name: Missing[str] = Field( - default=UNSET, - description="The name of the repository the bypass request is for.", - ) - full_name: Missing[str] = Field( - default=UNSET, - description="The full name of the repository the bypass request is for.", - ) - - -class SecretScanningBypassRequestPropOrganization(GitHubModel): - """SecretScanningBypassRequestPropOrganization - - The organization associated with the repository the bypass request is for. - """ - - id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") - name: Missing[str] = Field( - default=UNSET, description="The name of the organization." - ) - - -class SecretScanningBypassRequestPropRequester(GitHubModel): - """SecretScanningBypassRequestPropRequester - - The user who requested the bypass. - """ - - actor_id: Missing[int] = Field( - default=UNSET, description="The ID of the GitHub user who requested the bypass." - ) - actor_name: Missing[str] = Field( - default=UNSET, - description="The name of the GitHub user who requested the bypass.", - ) - - -class SecretScanningBypassRequestPropDataItems(GitHubModel): - """SecretScanningBypassRequestPropDataItems""" - - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - bypass_reason: Missing[Literal["used_in_tests", "false_positive", "fix_later"]] = ( - Field(default=UNSET, description="The reason the bypass was requested.") + 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`.", ) - path: Missing[str] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="The path in the repo where the secret was located during the request.", + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - branch: Missing[str] = Field( + selected_actions_url: Missing[str] = Field( default=UNSET, - description="The branch in the repo where the secret was located during the request.", + 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(SecretScanningBypassRequest) -model_rebuild(SecretScanningBypassRequestPropRepository) -model_rebuild(SecretScanningBypassRequestPropOrganization) -model_rebuild(SecretScanningBypassRequestPropRequester) -model_rebuild(SecretScanningBypassRequestPropDataItems) +model_rebuild(ActionsOrganizationPermissions) -__all__ = ( - "SecretScanningBypassRequest", - "SecretScanningBypassRequestPropDataItems", - "SecretScanningBypassRequestPropOrganization", - "SecretScanningBypassRequestPropRepository", - "SecretScanningBypassRequestPropRequester", -) +__all__ = ("ActionsOrganizationPermissions",) 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 11555a745..9d8938959 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0186.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0186.py @@ -9,71 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0070 import Team - -class CampaignSummary(GitHubModel): - """Campaign summary +class ActionsPublicKey(GitHubModel): + """ActionsPublicKey - The campaign metadata and alert stats. + The public key used for setting Actions Secrets. """ - number: int = Field(description="The number of the newly created campaign") - created_at: datetime = Field( - description="The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - name: Missing[str] = Field(default=UNSET, description="The campaign name") - description: str = Field(description="The campaign description") - managers: list[SimpleUser] = Field(description="The campaign managers") - team_managers: Missing[list[Team]] = Field( - default=UNSET, description="The campaign team managers" - ) - published_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - ends_at: datetime = Field( - description="The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - closed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.", - ) - state: Literal["open", "closed"] = Field( - title="Campaign state", - description="Indicates whether a campaign is open or closed", - ) - contact_link: Union[str, None] = Field( - description="The contact link of the campaign." - ) - alert_stats: Missing[CampaignSummaryPropAlertStats] = Field(default=UNSET) - - -class CampaignSummaryPropAlertStats(GitHubModel): - """CampaignSummaryPropAlertStats""" - - open_count: int = Field(description="The number of open alerts") - closed_count: int = Field(description="The number of closed alerts") - in_progress_count: int = Field(description="The number of in-progress alerts") + 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(CampaignSummary) -model_rebuild(CampaignSummaryPropAlertStats) +model_rebuild(ActionsPublicKey) -__all__ = ( - "CampaignSummary", - "CampaignSummaryPropAlertStats", -) +__all__ = ("ActionsPublicKey",) 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 db250979c..675052c89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0187.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0187.py @@ -9,36 +9,152 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0056 import BypassResponse -class CodespaceMachine(GitHubModel): - """Codespace machine - A description of the machine powering a codespace. +class SecretScanningBypassRequest(GitHubModel): + """Secret scanning bypass request + + A bypass request made by a user asking to be exempted from push protection 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[SecretScanningBypassRequestPropRepository] = Field( + default=UNSET, description="The repository the bypass request is for." + ) + organization: Missing[SecretScanningBypassRequestPropOrganization] = Field( + default=UNSET, + description="The organization associated with the repository the bypass request is for.", + ) + requester: Missing[SecretScanningBypassRequestPropRequester] = Field( + default=UNSET, description="The user who requested the bypass." + ) + request_type: Missing[str] = Field( + default=UNSET, description="The type of request." + ) + data: Missing[Union[list[SecretScanningBypassRequestPropDataItems], None]] = Field( + default=UNSET, + description="Data describing the push rules that are being requested to be bypassed.", + ) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The unique identifier for the request type of the bypass request. For example, a commit SHA.", + ) + status: Missing[ + Literal[ + "pending", "denied", "approved", "cancelled", "completed", "expired", "open" + ] + ] = Field(default=UNSET, description="The status of the bypass request.") + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the bypass request.", + ) + expires_at: Missing[datetime] = Field( + default=UNSET, description="The date and time the bypass request will expire." + ) + created_at: Missing[datetime] = Field( + default=UNSET, description="The date and time the bypass request was created." + ) + responses: Missing[Union[list[BypassResponse], None]] = Field( + default=UNSET, description="The responses to the bypass request." + ) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the bypass request in a browser." + ) + + +class SecretScanningBypassRequestPropRepository(GitHubModel): + """SecretScanningBypassRequestPropRepository + + The repository the bypass request is for. """ - name: str = Field(description="The name of the machine.") - display_name: str = Field( - description="The display name of the machine includes cores, memory, and storage." + id: Missing[int] = Field( + default=UNSET, description="The ID of the repository the bypass request is for." + ) + name: Missing[str] = Field( + default=UNSET, + description="The name of the repository the bypass request is for.", + ) + full_name: Missing[str] = Field( + default=UNSET, + description="The full name of the repository the bypass request is for.", + ) + + +class SecretScanningBypassRequestPropOrganization(GitHubModel): + """SecretScanningBypassRequestPropOrganization + + The organization associated with the repository the bypass request is for. + """ + + id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") + name: Missing[str] = Field( + default=UNSET, description="The name of the organization." + ) + + +class SecretScanningBypassRequestPropRequester(GitHubModel): + """SecretScanningBypassRequestPropRequester + + The user who requested the bypass. + """ + + actor_id: Missing[int] = Field( + default=UNSET, description="The ID of the GitHub user who requested the bypass." + ) + actor_name: Missing[str] = Field( + default=UNSET, + description="The name of the GitHub user who requested the bypass.", + ) + + +class SecretScanningBypassRequestPropDataItems(GitHubModel): + """SecretScanningBypassRequestPropDataItems""" + + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." ) - 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." + bypass_reason: Missing[Literal["used_in_tests", "false_positive", "fix_later"]] = ( + Field(default=UNSET, description="The reason the bypass was requested.") ) - memory_in_bytes: int = Field( - description="How much memory is available to the codespace." + path: Missing[str] = Field( + default=UNSET, + description="The path in the repo where the secret was located during the request.", ) - 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.' + branch: Missing[str] = Field( + default=UNSET, + description="The branch in the repo where the secret was located during the request.", ) -model_rebuild(CodespaceMachine) +model_rebuild(SecretScanningBypassRequest) +model_rebuild(SecretScanningBypassRequestPropRepository) +model_rebuild(SecretScanningBypassRequestPropOrganization) +model_rebuild(SecretScanningBypassRequestPropRequester) +model_rebuild(SecretScanningBypassRequestPropDataItems) -__all__ = ("CodespaceMachine",) +__all__ = ( + "SecretScanningBypassRequest", + "SecretScanningBypassRequestPropDataItems", + "SecretScanningBypassRequestPropOrganization", + "SecretScanningBypassRequestPropRepository", + "SecretScanningBypassRequestPropRequester", +) 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 4efce5f5d..215904753 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0188.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0188.py @@ -19,156 +19,61 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0176 import MinimalRepository -from .group_0187 import CodespaceMachine +from .group_0071 import Team -class Codespace(GitHubModel): - """Codespace +class CampaignSummary(GitHubModel): + """Campaign summary - A codespace. + The campaign metadata and alert stats. """ - 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." + number: int = Field(description="The number of the newly created campaign") + created_at: datetime = Field( + description="The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." + updated_at: datetime = Field( + description="The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." + name: Missing[str] = Field(default=UNSET, description="The campaign name") + description: str = Field(description="The campaign description") + managers: list[SimpleUser] = Field(description="The campaign managers") + team_managers: Missing[list[Team]] = Field( + default=UNSET, description="The campaign team managers" ) - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( + published_at: Missing[datetime] = 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." + description="The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ends_at: datetime = Field( + description="The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - 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( + closed_at: Missing[Union[datetime, 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." + description="The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.", ) - 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.", + state: Literal["open", "closed"] = Field( + title="Campaign state", + description="Indicates whether a campaign is open or closed", ) - 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.", + contact_link: Union[str, None] = Field( + description="The contact link of the campaign." ) + alert_stats: Missing[CampaignSummaryPropAlertStats] = Field(default=UNSET) -class CodespacePropGitStatus(GitHubModel): - """CodespacePropGitStatus +class CampaignSummaryPropAlertStats(GitHubModel): + """CampaignSummaryPropAlertStats""" - 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.", - ) + open_count: int = Field(description="The number of open alerts") + closed_count: int = Field(description="The number of closed alerts") + in_progress_count: int = Field(description="The number of in-progress alerts") -model_rebuild(Codespace) -model_rebuild(CodespacePropGitStatus) -model_rebuild(CodespacePropRuntimeConstraints) +model_rebuild(CampaignSummary) +model_rebuild(CampaignSummaryPropAlertStats) __all__ = ( - "Codespace", - "CodespacePropGitStatus", - "CodespacePropRuntimeConstraints", + "CampaignSummary", + "CampaignSummaryPropAlertStats", ) 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 1a40b558a..db250979c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0189.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0189.py @@ -9,27 +9,36 @@ 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 CodespacesPublicKey(GitHubModel): - """CodespacesPublicKey +class CodespaceMachine(GitHubModel): + """Codespace machine - The public key used for setting Codespaces 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.") - 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(CodespacesPublicKey) - -__all__ = ("CodespacesPublicKey",) + 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_0190.py b/githubkit/versions/ghec_v2022_11_28/models/group_0190.py index 5c75bf257..cb762e2ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0190.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0190.py @@ -9,85 +9,166 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0178 import MinimalRepository +from .group_0189 import CodespaceMachine -class CopilotOrganizationDetails(ExtraGitHubModel): - """Copilot Organization Details - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. +class Codespace(GitHubModel): + """Codespace + + A codespace. """ - seat_breakdown: CopilotOrganizationSeatBreakdown = Field( - title="Copilot Seat Breakdown", - description="The breakdown of Copilot Business seats for the organization.", + 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.", ) - public_code_suggestions: Literal["allow", "block", "unconfigured"] = Field( - description="The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)." + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." ) - ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = 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 organization policy for allowing or disallowing Copilot Chat in the IDE.", + 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." ) - platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) + pending_operation: Missing[Union[bool, None]] = Field( default=UNSET, - description="The organization policy for allowing or disallowing Copilot features on GitHub.com.", + 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.", ) - cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( default=UNSET, - description="The organization policy for allowing or disallowing Copilot in the CLI.", + description="Text to show user when codespace is disabled by a pending operation", ) - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] = Field(description="The mode of assigning new seats.") - plan_type: Missing[Literal["business", "enterprise"]] = Field( + idle_timeout_notice: Missing[Union[str, None]] = Field( default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + 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 CopilotOrganizationSeatBreakdown(GitHubModel): - """Copilot Seat Breakdown +class CodespacePropGitStatus(GitHubModel): + """CodespacePropGitStatus - The breakdown of Copilot Business seats for the organization. + Details about the codespace's git repository. """ - total: Missing[int] = Field( + ahead: Missing[int] = Field( default=UNSET, - description="The total number of seats being billed for the organization as of the current billing cycle.", + description="The number of commits the local repository is ahead of the remote.", ) - added_this_cycle: Missing[int] = Field( - default=UNSET, description="Seats added during the current billing cycle." - ) - pending_cancellation: Missing[int] = Field( + behind: Missing[int] = Field( default=UNSET, - description="The number of seats that are pending cancellation at the end of the current billing cycle.", + 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." ) - pending_invitation: Missing[int] = Field( + has_uncommitted_changes: Missing[bool] = Field( default=UNSET, - description="The number of users who have been invited to receive a Copilot seat through this organization.", + description="Whether the local repository has uncommitted changes.", ) - active_this_cycle: Missing[int] = Field( + ref: Missing[str] = Field( default=UNSET, - description="The number of seats that have used Copilot during the current billing cycle.", + description="The current branch (or SHA if in detached HEAD state) of the local repository.", ) - inactive_this_cycle: Missing[int] = Field( + + +class CodespacePropRuntimeConstraints(GitHubModel): + """CodespacePropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( default=UNSET, - description="The number of seats that have not used Copilot during the current billing cycle.", + description="The privacy settings a user can select from when forwarding a port.", ) -model_rebuild(CopilotOrganizationDetails) -model_rebuild(CopilotOrganizationSeatBreakdown) +model_rebuild(Codespace) +model_rebuild(CodespacePropGitStatus) +model_rebuild(CodespacePropRuntimeConstraints) __all__ = ( - "CopilotOrganizationDetails", - "CopilotOrganizationSeatBreakdown", + "Codespace", + "CodespacePropGitStatus", + "CodespacePropRuntimeConstraints", ) 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 18c7fd8c8..1a40b558a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0191.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0191.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,53 +16,20 @@ from githubkit.utils import UNSET -class CredentialAuthorization(GitHubModel): - """Credential Authorization +class CodespacesPublicKey(GitHubModel): + """CodespacesPublicKey - Credential Authorization + The public key used for setting Codespaces secrets. """ - 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.", - ) + 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(CredentialAuthorization) +model_rebuild(CodespacesPublicKey) -__all__ = ("CredentialAuthorization",) +__all__ = ("CodespacesPublicKey",) 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 239aec0c5..5c75bf257 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0192.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0192.py @@ -9,31 +9,85 @@ 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.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrganizationCustomRepositoryRoleCreateSchema(GitHubModel): - """OrganizationCustomRepositoryRoleCreateSchema""" +class CopilotOrganizationDetails(ExtraGitHubModel): + """Copilot Organization Details - name: str = Field(description="The name of the custom role.") - description: Missing[Union[str, None]] = Field( + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. + """ + + seat_breakdown: CopilotOrganizationSeatBreakdown = Field( + title="Copilot Seat Breakdown", + description="The breakdown of Copilot Business seats for the organization.", + ) + public_code_suggestions: Literal["allow", "block", "unconfigured"] = Field( + description="The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)." + ) + ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing Copilot Chat in the IDE.", + ) + platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing Copilot features on GitHub.com.", + ) + cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing Copilot in the CLI.", + ) + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] = Field(description="The mode of assigning new seats.") + plan_type: Missing[Literal["business", "enterprise"]] = Field( + default=UNSET, + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + ) + + +class CopilotOrganizationSeatBreakdown(GitHubModel): + """Copilot Seat Breakdown + + The breakdown of Copilot Business seats for the organization. + """ + + total: Missing[int] = Field( default=UNSET, - description="A short description about who this role is for or what permissions it grants.", + 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." ) - base_role: Literal["read", "triage", "write", "maintain"] = Field( - description="The system role from which this role inherits permissions." + pending_cancellation: Missing[int] = Field( + default=UNSET, + description="The number of seats that are pending cancellation at the end of the current billing cycle.", ) - permissions: list[str] = Field( - description="A list of additional permissions included in this role." + pending_invitation: Missing[int] = Field( + default=UNSET, + description="The number of users who have been invited to receive a Copilot seat through this organization.", + ) + active_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have used Copilot during the current billing cycle.", + ) + inactive_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have not used Copilot during the current billing cycle.", ) -model_rebuild(OrganizationCustomRepositoryRoleCreateSchema) +model_rebuild(CopilotOrganizationDetails) +model_rebuild(CopilotOrganizationSeatBreakdown) -__all__ = ("OrganizationCustomRepositoryRoleCreateSchema",) +__all__ = ( + "CopilotOrganizationDetails", + "CopilotOrganizationSeatBreakdown", +) 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 e195d09e0..18c7fd8c8 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,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -18,26 +19,53 @@ from githubkit.utils import UNSET -class OrganizationCustomRepositoryRoleUpdateSchema(GitHubModel): - """OrganizationCustomRepositoryRoleUpdateSchema""" +class CredentialAuthorization(GitHubModel): + """Credential Authorization - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." + 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." ) - description: Missing[Union[str, None]] = Field( + authorized_credential_title: Missing[Union[str, None]] = Field( default=UNSET, - description="A short description about who this role is for or what permissions it grants.", + description="The title given to the ssh key. This will only be present when the credential is an ssh key.", ) - base_role: Missing[Literal["read", "triage", "write", "maintain"]] = Field( + authorized_credential_note: Missing[Union[str, None]] = Field( default=UNSET, - description="The system role from which this role inherits permissions.", + description="The note given to the token. This will only be present when the credential is a token.", ) - permissions: Missing[list[str]] = Field( + authorized_credential_expires_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="A list of additional permissions included in this role.", + description="The expiry for the token. This will only be present when the credential is a token.", ) -model_rebuild(OrganizationCustomRepositoryRoleUpdateSchema) +model_rebuild(CredentialAuthorization) -__all__ = ("OrganizationCustomRepositoryRoleUpdateSchema",) +__all__ = ("CredentialAuthorization",) 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 a7dfe2e7d..239aec0c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0194.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0194.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 DependabotPublicKey(GitHubModel): - """DependabotPublicKey - - The public key used for setting Dependabot Secrets. - """ +class OrganizationCustomRepositoryRoleCreateSchema(GitHubModel): + """OrganizationCustomRepositoryRoleCreateSchema""" - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + 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(DependabotPublicKey) +model_rebuild(OrganizationCustomRepositoryRoleCreateSchema) -__all__ = ("DependabotPublicKey",) +__all__ = ("OrganizationCustomRepositoryRoleCreateSchema",) 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 6ca1d68ea..e195d09e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0195.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0195.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,180 +18,26 @@ from githubkit.utils import UNSET -class CodeScanningAlertDismissalRequest(GitHubModel): - """Code scanning alert dismissal request +class OrganizationCustomRepositoryRoleUpdateSchema(GitHubModel): + """OrganizationCustomRepositoryRoleUpdateSchema""" - Alert dismisal request made by a user asking to dismiss a code scanning alert. - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the dismissal request." - ) - number: Missing[int] = Field( - default=UNSET, - description="The number uniquely identifying the dismissal request within its repository.", - ) - repository: Missing[CodeScanningAlertDismissalRequestPropRepository] = Field( - default=UNSET, description="The repository the dismissal request is for." - ) - organization: Missing[CodeScanningAlertDismissalRequestPropOrganization] = Field( - default=UNSET, - description="The organization associated with the repository the dismissal request is for.", - ) - requester: Missing[CodeScanningAlertDismissalRequestPropRequester] = Field( - default=UNSET, description="The user who requested the dismissal request." - ) - request_type: Missing[str] = Field( - default=UNSET, description="The type of request." - ) - data: Missing[Union[list[CodeScanningAlertDismissalRequestPropDataItems], None]] = ( - Field( - default=UNSET, description="Data describing the dismissal request metadata." - ) - ) - resource_identifier: Missing[str] = Field( - default=UNSET, - description="The unique identifier for the request type of the dismissal request.", - ) - status: Missing[Literal["pending", "denied", "approved", "expired"]] = Field( - default=UNSET, description="The status of the dismissal request." - ) - requester_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment the requester provided when creating the dismissal request.", - ) - expires_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the dismissal request will expire.", - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the dismissal request was created.", - ) - responses: Missing[Union[list[DismissalRequestResponse], None]] = Field( - default=UNSET, description="The responses to the dismissal request." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field( - default=UNSET, description="The URL to view the dismissal request in a browser." - ) - - -class CodeScanningAlertDismissalRequestPropRepository(GitHubModel): - """CodeScanningAlertDismissalRequestPropRepository - - The repository the dismissal request is for. - """ - - id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository the dismissal request is for.", - ) - name: Missing[str] = Field( - default=UNSET, - description="The name of the repository the dismissal request is for.", - ) - full_name: Missing[str] = Field( - default=UNSET, - description="The full name of the repository the dismissal request is for.", - ) - - -class CodeScanningAlertDismissalRequestPropOrganization(GitHubModel): - """CodeScanningAlertDismissalRequestPropOrganization - - The organization associated with the repository the dismissal request is for. - """ - - id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") name: Missing[str] = Field( - default=UNSET, description="The name of the organization." - ) - - -class CodeScanningAlertDismissalRequestPropRequester(GitHubModel): - """CodeScanningAlertDismissalRequestPropRequester - - The user who requested the dismissal request. - """ - - actor_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub user who requested the dismissal request.", + default=UNSET, description="The name of the custom role." ) - actor_name: Missing[str] = Field( + description: Missing[Union[str, None]] = Field( default=UNSET, - description="The name of the GitHub user who requested the dismissal request.", - ) - - -class CodeScanningAlertDismissalRequestPropDataItems(GitHubModel): - """CodeScanningAlertDismissalRequestPropDataItems""" - - reason: Missing[str] = Field( - default=UNSET, description="The reason for the dismissal request." - ) - alert_number: Missing[str] = Field(default=UNSET, description="alert number.") - pr_review_thread_id: Missing[str] = Field( - default=UNSET, description="The ID of the pull request review thread." + description="A short description about who this role is for or what permissions it grants.", ) - - -class DismissalRequestResponse(GitHubModel): - """Dismissal request response - - A response made by a requester to dismiss the request. - """ - - id: Missing[int] = Field( - default=UNSET, description="The ID of the response to the dismissal request." - ) - reviewer: Missing[DismissalRequestResponsePropReviewer] = Field( - default=UNSET, description="The user who reviewed the dismissal request." - ) - message: Missing[Union[str, None]] = Field( - default=UNSET, description="The response comment of the reviewer." - ) - status: Missing[Literal["approved", "denied", "dismissed"]] = Field( - default=UNSET, - description="The response status to the dismissal request until dismissed.", - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the response to the dismissal request was created.", - ) - - -class DismissalRequestResponsePropReviewer(GitHubModel): - """DismissalRequestResponsePropReviewer - - The user who reviewed the dismissal request. - """ - - actor_id: Missing[int] = Field( + base_role: Missing[Literal["read", "triage", "write", "maintain"]] = Field( default=UNSET, - description="The ID of the GitHub user who reviewed the dismissal request.", + description="The system role from which this role inherits permissions.", ) - actor_name: Missing[str] = Field( + permissions: Missing[list[str]] = Field( default=UNSET, - description="The name of the GitHub user who reviewed the dismissal request.", + description="A list of additional permissions included in this role.", ) -model_rebuild(CodeScanningAlertDismissalRequest) -model_rebuild(CodeScanningAlertDismissalRequestPropRepository) -model_rebuild(CodeScanningAlertDismissalRequestPropOrganization) -model_rebuild(CodeScanningAlertDismissalRequestPropRequester) -model_rebuild(CodeScanningAlertDismissalRequestPropDataItems) -model_rebuild(DismissalRequestResponse) -model_rebuild(DismissalRequestResponsePropReviewer) +model_rebuild(OrganizationCustomRepositoryRoleUpdateSchema) -__all__ = ( - "CodeScanningAlertDismissalRequest", - "CodeScanningAlertDismissalRequestPropDataItems", - "CodeScanningAlertDismissalRequestPropOrganization", - "CodeScanningAlertDismissalRequestPropRepository", - "CodeScanningAlertDismissalRequestPropRequester", - "DismissalRequestResponse", - "DismissalRequestResponsePropReviewer", -) +__all__ = ("OrganizationCustomRepositoryRoleUpdateSchema",) 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 0af8baf32..a7dfe2e7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0196.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0196.py @@ -9,155 +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_0056 import BypassResponse - - -class SecretScanningDismissalRequest(GitHubModel): - """Secret scanning alert dismissal request - - A dismissal request made by a user asking to close a secret scanning alert in - this repository. - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the dismissal request." - ) - number: Missing[int] = Field( - default=UNSET, - description="The number uniquely identifying the dismissal request within its repository.", - ) - repository: Missing[SecretScanningDismissalRequestPropRepository] = Field( - default=UNSET, description="The repository the dismissal request is for." - ) - organization: Missing[SecretScanningDismissalRequestPropOrganization] = Field( - default=UNSET, - description="The organization associated with the repository the dismissal request is for.", - ) - requester: Missing[SecretScanningDismissalRequestPropRequester] = Field( - default=UNSET, description="The user who requested the dismissal." - ) - request_type: Missing[str] = Field( - default=UNSET, description="The type of request." - ) - data: Missing[Union[list[SecretScanningDismissalRequestPropDataItems], None]] = ( - Field( - default=UNSET, - description="Data describing the secret alert that is being requested to be dismissed.", - ) - ) - resource_identifier: Missing[str] = Field( - default=UNSET, - description="The number of the secret scanning alert that was detected.", - ) - status: Missing[ - Literal["pending", "denied", "approved", "cancelled", "expired"] - ] = Field(default=UNSET, description="The status of the dismissal request.") - requester_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment the requester provided when creating the dismissal request.", - ) - expires_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the dismissal request will expire.", - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the dismissal request was created.", - ) - responses: Missing[Union[list[BypassResponse], None]] = Field( - default=UNSET, description="The responses to the dismissal request." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field( - default=UNSET, description="The URL to view the dismissal request in a browser." - ) - - -class SecretScanningDismissalRequestPropRepository(GitHubModel): - """SecretScanningDismissalRequestPropRepository - - The repository the dismissal request is for. - """ - - id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository the dismissal request is for.", - ) - name: Missing[str] = Field( - default=UNSET, - description="The name of the repository the dismissal request is for.", - ) - full_name: Missing[str] = Field( - default=UNSET, - description="The full name of the repository the dismissal request is for.", - ) - - -class SecretScanningDismissalRequestPropOrganization(GitHubModel): - """SecretScanningDismissalRequestPropOrganization - - The organization associated with the repository the dismissal request is for. - """ - - id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") - name: Missing[str] = Field( - default=UNSET, description="The name of the organization." - ) -class SecretScanningDismissalRequestPropRequester(GitHubModel): - """SecretScanningDismissalRequestPropRequester +class DependabotPublicKey(GitHubModel): + """DependabotPublicKey - The user who requested the dismissal. + The public key used for setting Dependabot Secrets. """ - actor_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub user who requested the dismissal.", - ) - actor_name: Missing[str] = Field( - default=UNSET, - description="The name of the GitHub user who requested the dismissal.", - ) - - -class SecretScanningDismissalRequestPropDataItems(GitHubModel): - """SecretScanningDismissalRequestPropDataItems""" - - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - alert_number: Missing[str] = Field( - default=UNSET, - description="The number of the secret scanning alert that was detected.", - ) - reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( - Field( - default=UNSET, - description="The reason the user provided for requesting the dismissal.", - ) - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(SecretScanningDismissalRequest) -model_rebuild(SecretScanningDismissalRequestPropRepository) -model_rebuild(SecretScanningDismissalRequestPropOrganization) -model_rebuild(SecretScanningDismissalRequestPropRequester) -model_rebuild(SecretScanningDismissalRequestPropDataItems) +model_rebuild(DependabotPublicKey) -__all__ = ( - "SecretScanningDismissalRequest", - "SecretScanningDismissalRequestPropDataItems", - "SecretScanningDismissalRequestPropOrganization", - "SecretScanningDismissalRequestPropRepository", - "SecretScanningDismissalRequestPropRequester", -) +__all__ = ("DependabotPublicKey",) 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 e4b97ed99..6ca1d68ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0197.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0197.py @@ -18,31 +18,181 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0176 import MinimalRepository +class CodeScanningAlertDismissalRequest(GitHubModel): + """Code scanning alert dismissal request -class Package(GitHubModel): - """Package + Alert dismisal request made by a user asking to dismiss a code scanning alert. + """ + + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the dismissal request." + ) + number: Missing[int] = Field( + default=UNSET, + description="The number uniquely identifying the dismissal request within its repository.", + ) + repository: Missing[CodeScanningAlertDismissalRequestPropRepository] = Field( + default=UNSET, description="The repository the dismissal request is for." + ) + organization: Missing[CodeScanningAlertDismissalRequestPropOrganization] = Field( + default=UNSET, + description="The organization associated with the repository the dismissal request is for.", + ) + requester: Missing[CodeScanningAlertDismissalRequestPropRequester] = Field( + default=UNSET, description="The user who requested the dismissal request." + ) + request_type: Missing[str] = Field( + default=UNSET, description="The type of request." + ) + data: Missing[Union[list[CodeScanningAlertDismissalRequestPropDataItems], None]] = ( + Field( + default=UNSET, description="Data describing the dismissal request metadata." + ) + ) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The unique identifier for the request type of the dismissal request.", + ) + status: Missing[Literal["pending", "denied", "approved", "expired"]] = Field( + default=UNSET, description="The status of the dismissal request." + ) + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the dismissal request.", + ) + expires_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the dismissal request will expire.", + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the dismissal request was created.", + ) + responses: Missing[Union[list[DismissalRequestResponse], None]] = Field( + default=UNSET, description="The responses to the dismissal request." + ) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the dismissal request in a browser." + ) + + +class CodeScanningAlertDismissalRequestPropRepository(GitHubModel): + """CodeScanningAlertDismissalRequestPropRepository + + The repository the dismissal request is for. + """ + + id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository the dismissal request is for.", + ) + name: Missing[str] = Field( + default=UNSET, + description="The name of the repository the dismissal request is for.", + ) + full_name: Missing[str] = Field( + default=UNSET, + description="The full name of the repository the dismissal request is for.", + ) + + +class CodeScanningAlertDismissalRequestPropOrganization(GitHubModel): + """CodeScanningAlertDismissalRequestPropOrganization + + The organization associated with the repository the dismissal request is for. + """ + + id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") + name: Missing[str] = Field( + default=UNSET, description="The name of the organization." + ) + + +class CodeScanningAlertDismissalRequestPropRequester(GitHubModel): + """CodeScanningAlertDismissalRequestPropRequester + + The user who requested the dismissal request. + """ + + actor_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub user who requested the dismissal request.", + ) + actor_name: Missing[str] = Field( + default=UNSET, + description="The name of the GitHub user who requested the dismissal request.", + ) + + +class CodeScanningAlertDismissalRequestPropDataItems(GitHubModel): + """CodeScanningAlertDismissalRequestPropDataItems""" + + reason: Missing[str] = Field( + default=UNSET, description="The reason for the dismissal request." + ) + alert_number: Missing[str] = Field(default=UNSET, description="alert number.") + pr_review_thread_id: Missing[str] = Field( + default=UNSET, description="The ID of the pull request review thread." + ) + + +class DismissalRequestResponse(GitHubModel): + """Dismissal request response + + A response made by a requester to dismiss the request. + """ + + id: Missing[int] = Field( + default=UNSET, description="The ID of the response to the dismissal request." + ) + reviewer: Missing[DismissalRequestResponsePropReviewer] = Field( + default=UNSET, description="The user who reviewed the dismissal request." + ) + message: Missing[Union[str, None]] = Field( + default=UNSET, description="The response comment of the reviewer." + ) + status: Missing[Literal["approved", "denied", "dismissed"]] = Field( + default=UNSET, + description="The response status to the dismissal request until dismissed.", + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the response to the dismissal request was created.", + ) + + +class DismissalRequestResponsePropReviewer(GitHubModel): + """DismissalRequestResponsePropReviewer - A software package + The user who reviewed the dismissal request. """ - 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() + actor_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub user who reviewed the dismissal request.", + ) + actor_name: Missing[str] = Field( + default=UNSET, + description="The name of the GitHub user who reviewed the dismissal request.", + ) -model_rebuild(Package) +model_rebuild(CodeScanningAlertDismissalRequest) +model_rebuild(CodeScanningAlertDismissalRequestPropRepository) +model_rebuild(CodeScanningAlertDismissalRequestPropOrganization) +model_rebuild(CodeScanningAlertDismissalRequestPropRequester) +model_rebuild(CodeScanningAlertDismissalRequestPropDataItems) +model_rebuild(DismissalRequestResponse) +model_rebuild(DismissalRequestResponsePropReviewer) -__all__ = ("Package",) +__all__ = ( + "CodeScanningAlertDismissalRequest", + "CodeScanningAlertDismissalRequestPropDataItems", + "CodeScanningAlertDismissalRequestPropOrganization", + "CodeScanningAlertDismissalRequestPropRepository", + "CodeScanningAlertDismissalRequestPropRequester", + "DismissalRequestResponse", + "DismissalRequestResponsePropReviewer", +) 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 da221fb55..0af8baf32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0198.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0198.py @@ -9,54 +9,155 @@ 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_0056 import BypassResponse + -class ExternalGroup(GitHubModel): - """ExternalGroup +class SecretScanningDismissalRequest(GitHubModel): + """Secret scanning alert dismissal request - Information about an external group's usage and its members + A dismissal request made by a user asking to close a secret scanning alert in + this repository. """ - 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" + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the dismissal request." + ) + number: Missing[int] = Field( + default=UNSET, + description="The number uniquely identifying the dismissal request within its repository.", + ) + repository: Missing[SecretScanningDismissalRequestPropRepository] = Field( + default=UNSET, description="The repository the dismissal request is for." + ) + organization: Missing[SecretScanningDismissalRequestPropOrganization] = Field( + default=UNSET, + description="The organization associated with the repository the dismissal request is for.", + ) + requester: Missing[SecretScanningDismissalRequestPropRequester] = Field( + default=UNSET, description="The user who requested the dismissal." + ) + request_type: Missing[str] = Field( + default=UNSET, description="The type of request." + ) + data: Missing[Union[list[SecretScanningDismissalRequestPropDataItems], None]] = ( + Field( + default=UNSET, + description="Data describing the secret alert that is being requested to be dismissed.", + ) + ) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The number of the secret scanning alert that was detected.", ) - teams: list[ExternalGroupPropTeamsItems] = Field( - description="An array of teams linked to this group" + status: Missing[ + Literal["pending", "denied", "approved", "cancelled", "expired"] + ] = Field(default=UNSET, description="The status of the dismissal request.") + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the dismissal request.", ) - members: list[ExternalGroupPropMembersItems] = Field( - description="An array of external members linked to this group" + expires_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the dismissal request will expire.", ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the dismissal request was created.", + ) + responses: Missing[Union[list[BypassResponse], None]] = Field( + default=UNSET, description="The responses to the dismissal request." + ) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the dismissal request in a browser." + ) + +class SecretScanningDismissalRequestPropRepository(GitHubModel): + """SecretScanningDismissalRequestPropRepository -class ExternalGroupPropTeamsItems(GitHubModel): - """ExternalGroupPropTeamsItems""" + The repository the dismissal request is for. + """ - team_id: int = Field(description="The id for a team") - team_name: str = Field(description="The name of the team") + id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository the dismissal request is for.", + ) + name: Missing[str] = Field( + default=UNSET, + description="The name of the repository the dismissal request is for.", + ) + full_name: Missing[str] = Field( + default=UNSET, + description="The full name of the repository the dismissal request is for.", + ) -class ExternalGroupPropMembersItems(GitHubModel): - """ExternalGroupPropMembersItems""" +class SecretScanningDismissalRequestPropOrganization(GitHubModel): + """SecretScanningDismissalRequestPropOrganization - 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") + The organization associated with the repository the dismissal request is for. + """ + + id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") + name: Missing[str] = Field( + default=UNSET, description="The name of the organization." + ) + + +class SecretScanningDismissalRequestPropRequester(GitHubModel): + """SecretScanningDismissalRequestPropRequester + + The user who requested the dismissal. + """ + + actor_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub user who requested the dismissal.", + ) + actor_name: Missing[str] = Field( + default=UNSET, + description="The name of the GitHub user who requested the dismissal.", + ) + + +class SecretScanningDismissalRequestPropDataItems(GitHubModel): + """SecretScanningDismissalRequestPropDataItems""" + + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + alert_number: Missing[str] = Field( + default=UNSET, + description="The number of the secret scanning alert that was detected.", + ) + reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( + Field( + default=UNSET, + description="The reason the user provided for requesting the dismissal.", + ) + ) -model_rebuild(ExternalGroup) -model_rebuild(ExternalGroupPropTeamsItems) -model_rebuild(ExternalGroupPropMembersItems) +model_rebuild(SecretScanningDismissalRequest) +model_rebuild(SecretScanningDismissalRequestPropRepository) +model_rebuild(SecretScanningDismissalRequestPropOrganization) +model_rebuild(SecretScanningDismissalRequestPropRequester) +model_rebuild(SecretScanningDismissalRequestPropDataItems) __all__ = ( - "ExternalGroup", - "ExternalGroupPropMembersItems", - "ExternalGroupPropTeamsItems", + "SecretScanningDismissalRequest", + "SecretScanningDismissalRequestPropDataItems", + "SecretScanningDismissalRequestPropOrganization", + "SecretScanningDismissalRequestPropRepository", + "SecretScanningDismissalRequestPropRequester", ) 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 0ecffcf17..3c9830a04 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0199.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0199.py @@ -9,37 +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_0178 import MinimalRepository -class ExternalGroups(GitHubModel): - """ExternalGroups - - 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", - ) +class Package(GitHubModel): + """Package + A software package + """ -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") + 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(ExternalGroups) -model_rebuild(ExternalGroupsPropGroupsItems) +model_rebuild(Package) -__all__ = ( - "ExternalGroups", - "ExternalGroupsPropGroupsItems", -) +__all__ = ("Package",) 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 a7a2456e5..da221fb55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0200.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0200.py @@ -9,37 +9,54 @@ 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 ExternalGroup(GitHubModel): + """ExternalGroup - Organization Invitation + Information about an external group's usage and its 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) + group_id: int = Field(description="The internal ID of the group") + group_name: str = Field(description="The display name for the group") + updated_at: Missing[str] = Field( + default=UNSET, description="The date when the group was last updated_at" + ) + teams: list[ExternalGroupPropTeamsItems] = Field( + description="An array of teams linked to this group" + ) + members: list[ExternalGroupPropMembersItems] = Field( + description="An array of external members linked to this group" + ) + + +class ExternalGroupPropTeamsItems(GitHubModel): + """ExternalGroupPropTeamsItems""" + + team_id: int = Field(description="The id for a team") + team_name: str = Field(description="The name of the team") + + +class 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(OrganizationInvitation) +model_rebuild(ExternalGroup) +model_rebuild(ExternalGroupPropTeamsItems) +model_rebuild(ExternalGroupPropMembersItems) -__all__ = ("OrganizationInvitation",) +__all__ = ( + "ExternalGroup", + "ExternalGroupPropMembersItems", + "ExternalGroupPropTeamsItems", +) 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 467053545..0ecffcf17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0201.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0201.py @@ -12,18 +12,34 @@ 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 +class ExternalGroups(GitHubModel): + """ExternalGroups - A fine-grained permission that protects repository resources. + A list of external groups available to be connected to a team """ - name: str = Field() - description: str = Field() + groups: Missing[list[ExternalGroupsPropGroupsItems]] = Field( + default=UNSET, + description="An array of external groups available to be mapped to a team", + ) -model_rebuild(RepositoryFineGrainedPermission) +class ExternalGroupsPropGroupsItems(GitHubModel): + """ExternalGroupsPropGroupsItems""" -__all__ = ("RepositoryFineGrainedPermission",) + 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_0202.py b/githubkit/versions/ghec_v2022_11_28/models/group_0202.py index c07e88da1..a7a2456e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0202.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0202.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field @@ -17,39 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class OrgHook(GitHubModel): - """Org Hook - Org Hook +class OrganizationInvitation(GitHubModel): + """Organization Invitation + + Organization Invitation """ id: int = Field() - url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - name: str = Field() - events: list[str] = Field() - active: bool = Field() - config: OrgHookPropConfig = Field() - updated_at: datetime = Field() - created_at: datetime = Field() - type: str = Field() - - -class OrgHookPropConfig(GitHubModel): - """OrgHookPropConfig""" - - 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", -) + 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",) 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 0a96c6c73..467053545 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0203.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0203.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 RepositoryFineGrainedPermission(GitHubModel): + """Repository Fine-Grained Permission + + A fine-grained permission that protects repository resources. + """ - 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) + name: str = Field() + description: str = Field() -model_rebuild(ApiInsightsRouteStatsItems) +model_rebuild(RepositoryFineGrainedPermission) -__all__ = ("ApiInsightsRouteStatsItems",) +__all__ = ("RepositoryFineGrainedPermission",) 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 4d268bc1d..c07e88da1 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,7 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from pydantic import Field @@ -18,18 +18,38 @@ from githubkit.utils import UNSET -class ApiInsightsSubjectStatsItems(GitHubModel): - """ApiInsightsSubjectStatsItems""" +class OrgHook(GitHubModel): + """Org Hook - 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) + 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(ApiInsightsSubjectStatsItems) -__all__ = ("ApiInsightsSubjectStatsItems",) +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/ghec_v2022_11_28/models/group_0205.py b/githubkit/versions/ghec_v2022_11_28/models/group_0205.py index 43562dec3..0a96c6c73 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0205.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0205.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,12 +18,13 @@ from githubkit.utils import UNSET -class ApiInsightsSummaryStats(GitHubModel): - """Summary Stats - - API Insights usage summary stats for an organization - """ +class ApiInsightsRouteStatsItems(GitHubModel): + """ApiInsightsRouteStatsItems""" + http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") + api_route: Missing[str] = Field( + default=UNSET, description="The API path's route template" + ) total_request_count: Missing[int] = Field( default=UNSET, description="The total number of requests within the queried time period", @@ -30,8 +33,10 @@ class ApiInsightsSummaryStats(GitHubModel): default=UNSET, description="The total number of requests that were rate limited within the queried time period", ) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsSummaryStats) +model_rebuild(ApiInsightsRouteStatsItems) -__all__ = ("ApiInsightsSummaryStats",) +__all__ = ("ApiInsightsRouteStatsItems",) 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 1e53263ef..4d268bc1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0206.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0206.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,14 +18,18 @@ from githubkit.utils import UNSET -class ApiInsightsTimeStatsItems(GitHubModel): - """ApiInsightsTimeStatsItems""" +class ApiInsightsSubjectStatsItems(GitHubModel): + """ApiInsightsSubjectStatsItems""" - timestamp: Missing[str] = Field(default=UNSET) + 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(ApiInsightsTimeStatsItems) +model_rebuild(ApiInsightsSubjectStatsItems) -__all__ = ("ApiInsightsTimeStatsItems",) +__all__ = ("ApiInsightsSubjectStatsItems",) 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 3b86770cc..43562dec3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0207.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0207.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,20 +16,22 @@ from githubkit.utils import UNSET -class ApiInsightsUserStatsItems(GitHubModel): - """ApiInsightsUserStatsItems""" +class ApiInsightsSummaryStats(GitHubModel): + """Summary Stats + + API Insights usage summary stats for an organization + """ - 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) + 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(ApiInsightsUserStatsItems) +model_rebuild(ApiInsightsSummaryStats) -__all__ = ("ApiInsightsUserStatsItems",) +__all__ = ("ApiInsightsSummaryStats",) 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 1f7c3f84d..1e53263ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0208.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0208.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 +from githubkit.typing import Missing +from githubkit.utils import UNSET -class InteractionLimitResponse(GitHubModel): - """Interaction Limits - - Interaction limit settings. - """ +class ApiInsightsTimeStatsItems(GitHubModel): + """ApiInsightsTimeStatsItems""" - 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() + 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(InteractionLimitResponse) +model_rebuild(ApiInsightsTimeStatsItems) -__all__ = ("InteractionLimitResponse",) +__all__ = ("ApiInsightsTimeStatsItems",) 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 341c1cb09..3b86770cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0209.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0209.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 InteractionLimit(GitHubModel): - """Interaction Restrictions +class ApiInsightsUserStatsItems(GitHubModel): + """ApiInsightsUserStatsItems""" - Limit interactions to a specific type of user for a specified duration - """ + 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) - 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(ApiInsightsUserStatsItems) -model_rebuild(InteractionLimit) - -__all__ = ("InteractionLimit",) +__all__ = ("ApiInsightsUserStatsItems",) 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 427838689..1f7c3f84d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0210.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0210.py @@ -9,35 +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 -class OrganizationCreateIssueType(GitHubModel): - """OrganizationCreateIssueType""" +class InteractionLimitResponse(GitHubModel): + """Interaction Limits - name: str = Field(description="Name of the issue type.") - is_enabled: bool = Field( - description="Whether or not the issue type is enabled at the organization level." - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the issue type." + 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." ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="Color for the issue type.") + origin: str = Field() + expires_at: datetime = Field() -model_rebuild(OrganizationCreateIssueType) +model_rebuild(InteractionLimitResponse) -__all__ = ("OrganizationCreateIssueType",) +__all__ = ("InteractionLimitResponse",) 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 35d9a70f4..341c1cb09 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0211.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0211.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,23 @@ from githubkit.utils import UNSET -class OrganizationUpdateIssueType(GitHubModel): - """OrganizationUpdateIssueType""" +class InteractionLimit(GitHubModel): + """Interaction Restrictions - name: str = Field(description="Name of the issue type.") - is_enabled: bool = Field( - description="Whether or not the issue type is enabled at the organization level." + Limit interactions to a specific type of user for a specified duration + """ + + 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." ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the issue type." + 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`.", ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(OrganizationUpdateIssueType) +model_rebuild(InteractionLimit) -__all__ = ("OrganizationUpdateIssueType",) +__all__ = ("InteractionLimit",) 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 930db64ef..427838689 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0212.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0212.py @@ -17,41 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0036 import OrganizationSimple +class OrganizationCreateIssueType(GitHubModel): + """OrganizationCreateIssueType""" -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." - ) - role: Literal["admin", "member", "billing_manager"] = Field( - description="The user's membership type in the organization." + name: str = Field(description="Name of the issue type.") + is_enabled: bool = Field( + description="Whether or not the issue type is enabled at the organization level." ) - organization_url: str = Field() - organization: OrganizationSimple = Field( - title="Organization Simple", description="A GitHub organization." + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the issue type." ) - user: Union[None, SimpleUser] = Field() - permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) - - -class OrgMembershipPropPermissions(GitHubModel): - """OrgMembershipPropPermissions""" - - can_create_repository: bool = Field() + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(OrgMembership) -model_rebuild(OrgMembershipPropPermissions) +model_rebuild(OrganizationCreateIssueType) -__all__ = ( - "OrgMembership", - "OrgMembershipPropPermissions", -) +__all__ = ("OrganizationCreateIssueType",) 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 64aae139a..35d9a70f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0213.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0213.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,41 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository - - -class Migration(GitHubModel): - """Migration - - A migration. - """ - - id: int = Field() - owner: Union[None, SimpleUser] = Field() - guid: str = Field() - state: str = Field() - lock_repositories: bool = Field() - exclude_metadata: bool = Field() - exclude_git_data: bool = Field() - exclude_attachments: bool = Field() - exclude_releases: bool = Field() - exclude_owner_projects: bool = Field() - org_metadata_only: bool = Field() - repositories: list[Repository] = Field( - description="The repositories included in the migration. Only returned for export migrations." + +class OrganizationUpdateIssueType(GitHubModel): + """OrganizationUpdateIssueType""" + + name: str = Field(description="Name of the issue type.") + is_enabled: bool = Field( + description="Whether or not the issue type is enabled at the organization level." ) - 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"`.', + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the issue type." ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(Migration) +model_rebuild(OrganizationUpdateIssueType) -__all__ = ("Migration",) +__all__ = ("OrganizationUpdateIssueType",) 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 d92a39bb6..0877c4810 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0214.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0214.py @@ -9,21 +9,58 @@ 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_0003 import SimpleUser +from .group_0036 import OrganizationSimple -class OrganizationFineGrainedPermission(GitHubModel): - """Organization Fine-Grained Permission +class OrgMembership(GitHubModel): + """Org Membership - A fine-grained permission that protects organization resources. + Org Membership """ - name: str = Field() - description: str = Field() + 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." + ) + direct_membership: Missing[bool] = Field( + default=UNSET, + description="Whether the user has direct membership in the organization.", + ) + enterprise_teams_providing_indirect_membership: Missing[list[str]] = Field( + max_length=100 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the enterprise teams providing the user with indirect membership in the organization.\nA limit of 100 enterprise team slugs is returned.", + ) + 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(OrganizationFineGrainedPermission) +model_rebuild(OrgMembership) +model_rebuild(OrgMembershipPropPermissions) -__all__ = ("OrganizationFineGrainedPermission",) +__all__ = ( + "OrgMembership", + "OrgMembershipPropPermissions", +) 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 c78f983ac..64aae139a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0215.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0215.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,59 +19,40 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0020 import Repository -class OrganizationRole(GitHubModel): - """Organization Role +class Migration(GitHubModel): + """Migration - Organization roles + A migration. """ - 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""" - - total_count: Missing[int] = Field( - default=UNSET, - description="The total number of organization roles available to the organization.", + 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." ) - roles: Missing[list[OrganizationRole]] = Field( + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + node_id: str = Field() + archive_url: Missing[str] = Field(default=UNSET) + exclude: Missing[list[str]] = Field( default=UNSET, - description="The list of organization roles available to the organization.", + 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(OrganizationRole) -model_rebuild(OrgsOrgOrganizationRolesGetResponse200) +model_rebuild(Migration) -__all__ = ( - "OrganizationRole", - "OrgsOrgOrganizationRolesGetResponse200", -) +__all__ = ("Migration",) 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 84e1c371f..d92a39bb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0216.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0216.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 -class OrganizationCustomOrganizationRoleCreateSchema(GitHubModel): - """OrganizationCustomOrganizationRoleCreateSchema""" +class OrganizationFineGrainedPermission(GitHubModel): + """Organization Fine-Grained Permission + + A fine-grained permission that protects organization resources. + """ - 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.", - ) + name: str = Field() + description: str = Field() -model_rebuild(OrganizationCustomOrganizationRoleCreateSchema) +model_rebuild(OrganizationFineGrainedPermission) -__all__ = ("OrganizationCustomOrganizationRoleCreateSchema",) +__all__ = ("OrganizationFineGrainedPermission",) 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 c849e4005..c78f983ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0217.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0217.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,29 +18,60 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class OrganizationCustomOrganizationRoleUpdateSchema(GitHubModel): - """OrganizationCustomOrganizationRoleUpdateSchema""" - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." - ) - description: Missing[str] = Field( +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 the intended use of this role or the permissions it grants.", + description="A short description about who this role is for or what permissions it grants.", ) - permissions: Missing[list[str]] = Field( + base_role: Missing[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] + ] = Field( default=UNSET, - description="A list of additional permissions included in this role.", + description="The system role from which this role inherits permissions.", ) - base_role: Missing[ - Literal["none", "read", "triage", "write", "maintain", "admin"] + source: Missing[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] ] = Field( default=UNSET, - description="The system role from which this role can inherit permissions.", + 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""" + + 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(OrganizationCustomOrganizationRoleUpdateSchema) +model_rebuild(OrganizationRole) +model_rebuild(OrgsOrgOrganizationRolesGetResponse200) -__all__ = ("OrganizationCustomOrganizationRoleUpdateSchema",) +__all__ = ( + "OrganizationRole", + "OrgsOrgOrganizationRolesGetResponse200", +) 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 aa0b6a0c5..84e1c371f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0218.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0218.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_0069 import TeamSimple +class OrganizationCustomOrganizationRoleCreateSchema(GitHubModel): + """OrganizationCustomOrganizationRoleCreateSchema""" -class TeamRoleAssignment(GitHubModel): - """A Role Assignment for a Team - - The Relationship a Team has with a role. - """ - - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + name: str = Field(description="The name of the custom role.") + description: Missing[str] = Field( default=UNSET, - description="Determines if the team has a direct, indirect, or mixed relationship to a role", + 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.", ) - 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(OrganizationCustomOrganizationRoleCreateSchema) -__all__ = ( - "TeamRoleAssignment", - "TeamRoleAssignmentPropPermissions", -) +__all__ = ("OrganizationCustomOrganizationRoleCreateSchema",) 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 080c20dea..c849e4005 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0219.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0219.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,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0069 import TeamSimple +class OrganizationCustomOrganizationRoleUpdateSchema(GitHubModel): + """OrganizationCustomOrganizationRoleUpdateSchema""" -class UserRoleAssignment(GitHubModel): - """A Role Assignment for a User - - The Relationship a User has with a role. - """ - - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." + ) + description: Missing[str] = Field( default=UNSET, - description="Determines if the user has a direct, indirect, or mixed relationship to a role", + description="A short description about the intended use of this role or the permissions it grants.", ) - inherited_from: Missing[list[TeamSimple]] = Field( - default=UNSET, description="Team the user has gotten the role through" + permissions: Missing[list[str]] = Field( + default=UNSET, + description="A list of additional permissions included in this role.", ) - name: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - starred_at: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(UserRoleAssignment) - -__all__ = ("UserRoleAssignment",) + base_role: Missing[ + Literal["none", "read", "triage", "write", "maintain", "admin"] + ] = Field( + default=UNSET, + description="The system role from which this role can inherit permissions.", + ) + + +model_rebuild(OrganizationCustomOrganizationRoleUpdateSchema) + +__all__ = ("OrganizationCustomOrganizationRoleUpdateSchema",) 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 fe0d0f426..e36655a14 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0220.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0220.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,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0070 import TeamSimple -class PackageVersion(GitHubModel): - """Package Version - - A version of a software package - """ - - id: int = Field(description="Unique identifier of the package version.") - name: str = Field(description="The name of the package version.") - url: str = Field() - package_html_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - description: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) - metadata: Missing[PackageVersionPropMetadata] = Field( - default=UNSET, title="Package Version Metadata" - ) +class TeamRoleAssignment(GitHubModel): + """A Role Assignment for a Team -class PackageVersionPropMetadata(GitHubModel): - """Package Version Metadata""" + The Relationship a Team has with a role. + """ - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - container: Missing[PackageVersionPropMetadataPropContainer] = Field( - default=UNSET, title="Container Metadata" + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + default=UNSET, + description="Determines if the team has a direct, indirect, or mixed relationship to a role", ) - docker: Missing[PackageVersionPropMetadataPropDocker] = Field( - default=UNSET, title="Docker Metadata" - ) - - -class PackageVersionPropMetadataPropContainer(GitHubModel): - """Container Metadata""" - - tags: list[str] = 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 PackageVersionPropMetadataPropDocker(GitHubModel): - """Docker Metadata""" +class TeamRoleAssignmentPropPermissions(GitHubModel): + """TeamRoleAssignmentPropPermissions""" - tag: Missing[list[str]] = Field(default=UNSET) + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() -model_rebuild(PackageVersion) -model_rebuild(PackageVersionPropMetadata) -model_rebuild(PackageVersionPropMetadataPropContainer) -model_rebuild(PackageVersionPropMetadataPropDocker) +model_rebuild(TeamRoleAssignment) +model_rebuild(TeamRoleAssignmentPropPermissions) __all__ = ( - "PackageVersion", - "PackageVersionPropMetadata", - "PackageVersionPropMetadataPropContainer", - "PackageVersionPropMetadataPropDocker", + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", ) 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 c7a2781c2..4f0f74653 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0221.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0221.py @@ -13,99 +13,50 @@ 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_0070 import TeamSimple -class OrganizationProgrammaticAccessGrantRequest(GitHubModel): - """Simple Organization Programmatic Access Grant Request +class UserRoleAssignment(GitHubModel): + """A Role Assignment for a User - Minimal representation of an organization programmatic access grant request for - enumerations + The Relationship a User has with a role. """ - 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", -) + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + default=UNSET, + description="Determines if the user has a direct, indirect, or mixed relationship to a role", + ) + 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_0222.py b/githubkit/versions/ghec_v2022_11_28/models/group_0222.py index 9cc3f78de..fe0d0f426 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0222.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0222.py @@ -9,100 +9,71 @@ 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 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 PackageVersion(GitHubModel): + """Package Version -class OrganizationProgrammaticAccessGrant(GitHubModel): - """Organization Programmatic Access Grant - - Minimal representation of an organization programmatic access grant for - enumerations + A version of a software package """ - 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." + 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" ) -class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissions +class PackageVersionPropMetadata(GitHubModel): + """Package Version Metadata""" - 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 + 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 OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" +class PackageVersionPropMetadataPropContainer(GitHubModel): + """Container Metadata""" + tags: list[str] = Field() -class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" +class PackageVersionPropMetadataPropDocker(GitHubModel): + """Docker Metadata""" -class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + tag: Missing[list[str]] = Field(default=UNSET) -model_rebuild(OrganizationProgrammaticAccessGrant) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) +model_rebuild(PackageVersion) +model_rebuild(PackageVersionPropMetadata) +model_rebuild(PackageVersionPropMetadataPropContainer) +model_rebuild(PackageVersionPropMetadataPropDocker) __all__ = ( - "OrganizationProgrammaticAccessGrant", - "OrganizationProgrammaticAccessGrantPropPermissions", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", + "PackageVersion", + "PackageVersionPropMetadata", + "PackageVersionPropMetadataPropContainer", + "PackageVersionPropMetadataPropDocker", ) 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 a034d5582..c7a2781c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0223.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0223.py @@ -9,41 +9,103 @@ 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 OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): - """Organization private registry - Private registry configuration for an organization +class OrganizationProgrammaticAccessGrantRequest(GitHubModel): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations """ - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( - description="The registry type." + 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." ) - username: Missing[str] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry.", + 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." ) - 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." + 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." ) - 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`.", + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." ) - created_at: datetime = Field() - updated_at: datetime = Field() + 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(OrgPrivateRegistryConfigurationWithSelectedRepositories) +model_rebuild(OrganizationProgrammaticAccessGrantRequest) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequest", + "OrganizationProgrammaticAccessGrantRequestPropPermissions", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", +) 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 a7a52f64e..9cc3f78de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0224.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0224.py @@ -9,47 +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.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -class Project(GitHubModel): - """Project +class OrganizationProgrammaticAccessGrant(GitHubModel): + """Organization Programmatic Access Grant - Projects are a way to organize columns and cards of work. + Minimal representation of an organization programmatic access grant for + enumerations """ - 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.", + 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." ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." ) + repositories_url: str = Field( + description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." + ) + permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( + description="Permissions requested, categorized by type of permission." + ) + access_granted_at: str = Field( + description="Date and time when the fine-grained personal access token was approved to access the organization." + ) + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." + ) + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( + default=UNSET + ) + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" -model_rebuild(Project) +model_rebuild(OrganizationProgrammaticAccessGrant) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) -__all__ = ("Project",) +__all__ = ( + "OrganizationProgrammaticAccessGrant", + "OrganizationProgrammaticAccessGrantPropPermissions", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", +) 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 323c1ba32..090bbd737 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0225.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0225.py @@ -9,25 +9,55 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CustomPropertyValue(GitHubModel): - """Custom Property Value +class OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): + """Organization private registry - Custom property name and associated value + Private registry configuration for an organization """ - property_name: str = Field(description="The name of the property") - value: Union[str, list[str], None] = Field( - description="The value assigned to the property" + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] = Field(description="The registry type.") + username: Missing[str] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry.", ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", + ) + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(CustomPropertyValue) +model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) -__all__ = ("CustomPropertyValue",) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0226.py b/githubkit/versions/ghec_v2022_11_28/models/group_0226.py index d978f7744..a7a52f64e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0226.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0226.py @@ -9,27 +9,47 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0225 import CustomPropertyValue +from .group_0003 import SimpleUser -class OrgRepoCustomPropertyValues(GitHubModel): - """Organization Repository Custom Property Values +class Project(GitHubModel): + """Project - List of custom property values for a repository + Projects are a way to organize columns and cards of work. """ - repository_id: int = Field() - repository_name: str = Field() - repository_full_name: str = Field() - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values" + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="Name of the project") + body: Union[str, None] = Field(description="Body of the project") + number: int = Field() + state: str = Field(description="State of the project; either 'open' or 'closed'") + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", ) -model_rebuild(OrgRepoCustomPropertyValues) +model_rebuild(Project) -__all__ = ("OrgRepoCustomPropertyValues",) +__all__ = ("Project",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0227.py b/githubkit/versions/ghec_v2022_11_28/models/group_0227.py index 35b60a16d..323c1ba32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0227.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0227.py @@ -16,18 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodeOfConductSimple(GitHubModel): - """Code Of Conduct Simple +class CustomPropertyValue(GitHubModel): + """Custom Property Value - Code of Conduct Simple + Custom property name and associated value """ - url: str = Field() - key: str = Field() - name: str = Field() - html_url: Union[str, None] = Field() + property_name: str = Field(description="The name of the property") + value: Union[str, list[str], None] = Field( + description="The value assigned to the property" + ) -model_rebuild(CodeOfConductSimple) +model_rebuild(CustomPropertyValue) -__all__ = ("CodeOfConductSimple",) +__all__ = ("CustomPropertyValue",) 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 3cf6518fb..46b532d72 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0228.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0228.py @@ -9,196 +9,27 @@ 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_0003 import SimpleUser -from .group_0019 import LicenseSimple -from .group_0020 import Repository -from .group_0175 import SecurityAndAnalysis -from .group_0227 import CodeOfConductSimple +from .group_0227 import CustomPropertyValue -class FullRepository(GitHubModel): - """Full Repository +class OrgRepoCustomPropertyValues(GitHubModel): + """Organization Repository Custom Property Values - Full Repository + List of custom property values for a 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: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field() - open_issues_count: int = Field() - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: bool = Field() - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: datetime = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - subscribers_count: int = Field() - network_count: int = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - parent: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - source: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - forks: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, description="Whether anonymous git access is allowed." + 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" ) - 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(FullRepository) -model_rebuild(FullRepositoryPropPermissions) -model_rebuild(FullRepositoryPropCustomProperties) +model_rebuild(OrgRepoCustomPropertyValues) -__all__ = ( - "FullRepository", - "FullRepositoryPropCustomProperties", - "FullRepositoryPropPermissions", -) +__all__ = ("OrgRepoCustomPropertyValues",) 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 a9156b530..35b60a16d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0229.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0229.py @@ -9,56 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RuleSuitesItems(GitHubModel): - """RuleSuitesItems""" +class CodeOfConductSimple(GitHubModel): + """Code Of Conduct Simple - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[int] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[str] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." - ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." - ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", - ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", - ) + Code of Conduct Simple + """ + url: str = Field() + key: str = Field() + name: str = Field() + html_url: Union[str, None] = Field() -model_rebuild(RuleSuitesItems) -__all__ = ("RuleSuitesItems",) +model_rebuild(CodeOfConductSimple) + +__all__ = ("CodeOfConductSimple",) 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 41bb0279e..32de6767b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0230.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0230.py @@ -14,95 +14,191 @@ 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_0177 import SecurityAndAnalysis +from .group_0229 import CodeOfConductSimple -class RuleSuite(GitHubModel): - """Rule Suite - Response +class FullRepository(GitHubModel): + """Full Repository + + Full Repository """ - 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( + 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 ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( + 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 name of the repository without the `.git` extension.", + 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.", ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", + 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).", ) - evaluation_result: Missing[Union[None, Literal["pass", "fail", "bypass"]]] = Field( + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = 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." + 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", ) - - -class RuleSuitePropRuleEvaluationsItems(GitHubModel): - """RuleSuitePropRuleEvaluationsItems""" - - rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = 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( + custom_properties: Missing[FullRepositoryPropCustomProperties] = 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.", + 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 RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" +class FullRepositoryPropPermissions(GitHubModel): + """FullRepositoryPropPermissions""" - 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." - ) + 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(RuleSuite) -model_rebuild(RuleSuitePropRuleEvaluationsItems) -model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) +model_rebuild(FullRepository) +model_rebuild(FullRepositoryPropPermissions) +model_rebuild(FullRepositoryPropCustomProperties) __all__ = ( - "RuleSuite", - "RuleSuitePropRuleEvaluationsItems", - "RuleSuitePropRuleEvaluationsItemsPropRuleSource", + "FullRepository", + "FullRepositoryPropCustomProperties", + "FullRepositoryPropPermissions", ) 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 6eb920317..a9156b530 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0231.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0231.py @@ -9,39 +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 -from .group_0003 import SimpleUser +class RuleSuitesItems(GitHubModel): + """RuleSuitesItems""" -class RepositoryAdvisoryCredit(GitHubModel): - """RepositoryAdvisoryCredit - - A credit given to a user for a repository security advisory. - """ - - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - state: Literal["accepted", "declined", "pending"] = Field( - description="The state of the user's acceptance of the credit." + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[int] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[str] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", + ) + evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", ) -model_rebuild(RepositoryAdvisoryCredit) +model_rebuild(RuleSuitesItems) -__all__ = ("RepositoryAdvisoryCredit",) +__all__ = ("RuleSuitesItems",) 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 7dff84ef3..41bb0279e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0232.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0232.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,191 +18,91 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities -from .group_0003 import SimpleUser -from .group_0070 import Team -from .group_0231 import RepositoryAdvisoryCredit +class RuleSuite(GitHubModel): + """Rule Suite -class RepositoryAdvisory(GitHubModel): - """RepositoryAdvisory - - A repository security advisory. + Response """ - 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." + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." ) - severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( - description="The severity of the advisory." + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The number that identifies the user." ) - 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." + actor_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The handle for the GitHub user account." ) - created_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was created, in ISO 8601 format." + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." ) - updated_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was last updated, in ISO 8601 format." + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." ) - published_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was published, in ISO 8601 format." + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." ) - closed_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was closed, in ISO 8601 format." + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", ) - withdrawn_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was withdrawn, in ISO 8601 format." + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", ) - 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" + 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.", ) - credits_detailed: Union[list[RepositoryAdvisoryCredit], None] = Field() - collaborating_users: Union[list[SimpleUser], None] = Field( - description="A list of users that collaborate on the advisory." + 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.", ) - collaborating_teams: Union[list[Team], None] = Field( - description="A list of teams that collaborate on the advisory." + rule_evaluations: Missing[list[RuleSuitePropRuleEvaluationsItems]] = Field( + default=UNSET, description="Details on the evaluated rules." ) - 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 RuleSuitePropRuleEvaluationsItems(GitHubModel): + """RuleSuitePropRuleEvaluationsItems""" -class RepositoryAdvisoryPropSubmission(GitHubModel): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool = Field( - description="Whether a private vulnerability report was accepted by the repository's administrators." + rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( + default=UNSET ) - - -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." + enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( + default=UNSET, description="The enforcement level of this rule source." ) - - -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." + 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.", ) - 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. - """ +class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" - 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." + 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." ) - vulnerable_functions: Union[list[str], None] = Field( - description="The functions in the package that are affected." + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the rule source." ) -class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Union[str, None] = Field( - description="The unique package name within its ecosystem." - ) - - -model_rebuild(RepositoryAdvisory) -model_rebuild(RepositoryAdvisoryPropIdentifiersItems) -model_rebuild(RepositoryAdvisoryPropSubmission) -model_rebuild(RepositoryAdvisoryPropCvss) -model_rebuild(RepositoryAdvisoryPropCwesItems) -model_rebuild(RepositoryAdvisoryPropCreditsItems) -model_rebuild(RepositoryAdvisoryVulnerability) -model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) +model_rebuild(RuleSuite) +model_rebuild(RuleSuitePropRuleEvaluationsItems) +model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) __all__ = ( - "RepositoryAdvisory", - "RepositoryAdvisoryPropCreditsItems", - "RepositoryAdvisoryPropCvss", - "RepositoryAdvisoryPropCwesItems", - "RepositoryAdvisoryPropIdentifiersItems", - "RepositoryAdvisoryPropSubmission", - "RepositoryAdvisoryVulnerability", - "RepositoryAdvisoryVulnerabilityPropPackage", + "RuleSuite", + "RuleSuitePropRuleEvaluationsItems", + "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ) 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 0e812920b..6eb920317 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0233.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0233.py @@ -9,44 +9,39 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class GroupMapping(GitHubModel): - """GroupMapping - 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 RepositoryAdvisoryCredit(GitHubModel): + """RepositoryAdvisoryCredit + A credit given to a user for a repository security advisory. + """ -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" + 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(GroupMapping) -model_rebuild(GroupMappingPropGroupsItems) +model_rebuild(RepositoryAdvisoryCredit) -__all__ = ( - "GroupMapping", - "GroupMappingPropGroupsItems", -) +__all__ = ("RepositoryAdvisoryCredit",) 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 040ea1f3f..1517ba0f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0234.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0234.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,122 +18,191 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0069 import TeamSimple +from .group_0001 import CvssSeverities +from .group_0003 import SimpleUser +from .group_0071 import Team +from .group_0233 import RepositoryAdvisoryCredit -class TeamFull(GitHubModel): - """Full Team +class RepositoryAdvisory(GitHubModel): + """RepositoryAdvisory - Groups of organization members that gives permissions on specified repositories. + 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" - ) - 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 + 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. """ - 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) + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Union[str, None] = Field( + description="The unique package name within its ecosystem." + ) + + +model_rebuild(RepositoryAdvisory) +model_rebuild(RepositoryAdvisoryPropIdentifiersItems) +model_rebuild(RepositoryAdvisoryPropSubmission) +model_rebuild(RepositoryAdvisoryPropCvss) +model_rebuild(RepositoryAdvisoryPropCwesItems) +model_rebuild(RepositoryAdvisoryPropCreditsItems) +model_rebuild(RepositoryAdvisoryVulnerability) +model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) __all__ = ( - "TeamFull", - "TeamOrganization", - "TeamOrganizationPropPlan", + "RepositoryAdvisory", + "RepositoryAdvisoryPropCreditsItems", + "RepositoryAdvisoryPropCvss", + "RepositoryAdvisoryPropCwesItems", + "RepositoryAdvisoryPropIdentifiersItems", + "RepositoryAdvisoryPropSubmission", + "RepositoryAdvisoryVulnerability", + "RepositoryAdvisoryVulnerabilityPropPackage", ) 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 14a4b333a..0e812920b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0235.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0235.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,43 +17,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0159 import ReactionRollup +class GroupMapping(GitHubModel): + """GroupMapping -class TeamDiscussion(GitHubModel): - """Team Discussion - - A team discussion is a persistent record of a free-form conversation within a - team. + External Groups to be mapped to a team for membership """ - 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." + groups: Missing[list[GroupMappingPropGroupsItems]] = Field( + default=UNSET, description="Array of groups to be mapped to this team" ) - 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." + + +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" ) - private: bool = Field( - description="Whether or not this discussion should be restricted to team members and organization owners." + synced_at: Missing[Union[str, None]] = Field( + default=UNSET, description="the time of the last sync for this group-mapping" ) - 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(GroupMapping) +model_rebuild(GroupMappingPropGroupsItems) -__all__ = ("TeamDiscussion",) +__all__ = ( + "GroupMapping", + "GroupMappingPropGroupsItems", +) 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 f776ddaf0..98f3e217b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0236.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0236.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,122 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0159 import ReactionRollup +from .group_0070 import TeamSimple -class TeamDiscussionComment(GitHubModel): - """Team Discussion Comment +class TeamFull(GitHubModel): + """Full Team - A reply to a discussion within a team. + Groups of organization members that gives permissions on specified repositories. """ - 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: 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() - last_edited_at: Union[datetime, None] = Field() - discussion_url: str = Field() - html_url: str = 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() - number: int = Field( - description="The unique sequence number of a team discussion comment." + 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() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + 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(TeamDiscussionComment) +model_rebuild(TeamFull) +model_rebuild(TeamOrganization) +model_rebuild(TeamOrganizationPropPlan) -__all__ = ("TeamDiscussionComment",) +__all__ = ( + "TeamFull", + "TeamOrganization", + "TeamOrganizationPropPlan", +) 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 b14e4e21d..340c48696 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0237.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0237.py @@ -10,31 +10,51 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0160 import ReactionRollup -class Reaction(GitHubModel): - """Reaction +class TeamDiscussion(GitHubModel): + """Team Discussion - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + A team discussion is a persistent record of a free-form conversation within a + team. """ - 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") + 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() - - -model_rebuild(Reaction) - -__all__ = ("Reaction",) + last_edited_at: Union[datetime, None] = Field() + html_url: str = Field() + node_id: str = Field() + number: int = Field(description="The unique sequence number of a team discussion.") + pinned: bool = Field( + description="Whether or not this discussion should be pinned for easy retrieval." + ) + private: bool = Field( + description="Whether or not this discussion should be restricted to team members and organization owners." + ) + team_url: str = Field() + title: str = Field(description="The title of the discussion.") + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +model_rebuild(TeamDiscussion) + +__all__ = ("TeamDiscussion",) 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 bf5d392cb..9b3275253 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0238.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0238.py @@ -9,28 +9,44 @@ 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 +from .group_0003 import SimpleUser +from .group_0160 import ReactionRollup -class TeamMembership(GitHubModel): - """Team Membership - Team Membership +class TeamDiscussionComment(GitHubModel): + """Team Discussion Comment + + A reply to a discussion within a team. """ - url: str = Field() - role: Literal["member", "maintainer"] = Field( - default="member", description="The role of the user in the 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." ) - state: Literal["active", "pending"] = Field( - description="The state of the user's membership in the team." + 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(TeamMembership) +model_rebuild(TeamDiscussionComment) -__all__ = ("TeamMembership",) +__all__ = ("TeamDiscussionComment",) 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 0c9701f5f..b14e4e21d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0239.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0239.py @@ -9,59 +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 githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -class TeamProject(GitHubModel): - """Team Project +class Reaction(GitHubModel): + """Reaction - A team's access to a project. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - 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() + 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() -class TeamProjectPropPermissions(GitHubModel): - """TeamProjectPropPermissions""" +model_rebuild(Reaction) - read: bool = Field() - write: bool = Field() - admin: bool = Field() - - -model_rebuild(TeamProject) -model_rebuild(TeamProjectPropPermissions) - -__all__ = ( - "TeamProject", - "TeamProjectPropPermissions", -) +__all__ = ("Reaction",) 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 640d1e96a..bf5d392cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0240.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0240.py @@ -9,163 +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 -from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple +class TeamMembership(GitHubModel): + """Team Membership -class TeamRepository(GitHubModel): - """Team Repository - - A team's access to a repository. + Team 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." + role: Literal["member", "maintainer"] = Field( + default="member", description="The role of the user in the 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." + state: Literal["active", "pending"] = Field( + description="The state of the user's membership in the team." ) - 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) +model_rebuild(TeamMembership) -__all__ = ( - "TeamRepository", - "TeamRepositoryPropPermissions", -) +__all__ = ("TeamMembership",) 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 8cdb479b9..0c9701f5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0241.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0241.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -21,29 +20,48 @@ from .group_0003 import SimpleUser -class ProjectCard(GitHubModel): - """Project Card +class TeamProject(GitHubModel): + """Team Project - Project cards represent a scope of work. + A team's access to a project. """ + owner_url: str = Field() url: str = Field() - id: int = Field(description="The project card's ID") + html_url: str = Field() + columns_url: str = Field() + id: int = Field() 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" + 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.", ) - 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() + 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(ProjectCard) +model_rebuild(TeamProject) +model_rebuild(TeamProjectPropPermissions) -__all__ = ("ProjectCard",) +__all__ = ( + "TeamProject", + "TeamProjectPropPermissions", +) 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 08e6fd84f..640d1e96a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0242.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0242.py @@ -10,28 +10,162 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class ProjectColumn(GitHubModel): - """Project Column - Project columns contain cards of work. +class TeamRepository(GitHubModel): + """Team Repository + + A team's access to a repository. """ - url: str = Field() - project_url: str = Field() - cards_url: str = Field() - id: int = Field(description="The unique identifier of the project column") + id: int = Field(description="Unique identifier of the repository") node_id: str = Field() - name: str = Field(description="Name of the project column") - created_at: datetime = 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") + forks: int = Field() + permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + owner: Union[None, SimpleUser] = Field() + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field() + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + + +class 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(ProjectColumn) +model_rebuild(TeamRepository) +model_rebuild(TeamRepositoryPropPermissions) -__all__ = ("ProjectColumn",) +__all__ = ( + "TeamRepository", + "TeamRepositoryPropPermissions", +) 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 8665206a9..8cdb479b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0243.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0243.py @@ -9,25 +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 ProjectCollaboratorPermission(GitHubModel): - """Project Collaborator Permission +class ProjectCard(GitHubModel): + """Project Card - Project Collaborator Permission + Project cards represent a scope of work. """ - permission: str = Field() - user: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectCollaboratorPermission) - -__all__ = ("ProjectCollaboratorPermission",) + url: str = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" + ) + column_name: Missing[str] = Field(default=UNSET) + project_id: Missing[str] = Field(default=UNSET) + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + project_url: str = Field() + + +model_rebuild(ProjectCard) + +__all__ = ("ProjectCard",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0244.py b/githubkit/versions/ghec_v2022_11_28/models/group_0244.py index 335b1a1b9..08e6fd84f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0244.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0244.py @@ -9,20 +9,29 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class RateLimit(GitHubModel): - """Rate Limit""" +class ProjectColumn(GitHubModel): + """Project Column + + Project columns contain cards of work. + """ - limit: int = Field() - remaining: int = Field() - reset: int = Field() - used: int = Field() + url: str = Field() + project_url: str = Field() + cards_url: str = Field() + id: int = Field(description="The unique identifier of the project column") + node_id: str = Field() + name: str = Field(description="Name of the project column") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(RateLimit) +model_rebuild(ProjectColumn) -__all__ = ("RateLimit",) +__all__ = ("ProjectColumn",) 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 62170aa03..8665206a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0245.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0245.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_0244 import RateLimit -from .group_0246 import RateLimitOverviewPropResources +from .group_0003 import SimpleUser -class RateLimitOverview(GitHubModel): - """Rate Limit Overview +class ProjectCollaboratorPermission(GitHubModel): + """Project Collaborator Permission - Rate Limit Overview + Project Collaborator Permission """ - resources: RateLimitOverviewPropResources = Field() - rate: RateLimit = Field(title="Rate Limit") + permission: str = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(RateLimitOverview) +model_rebuild(ProjectCollaboratorPermission) -__all__ = ("RateLimitOverview",) +__all__ = ("ProjectCollaboratorPermission",) 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 3ad363192..335b1a1b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0246.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0246.py @@ -12,31 +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_0244 import RateLimit +class RateLimit(GitHubModel): + """Rate Limit""" -class RateLimitOverviewPropResources(GitHubModel): - """RateLimitOverviewPropResources""" + limit: int = Field() + remaining: int = Field() + reset: int = Field() + used: int = Field() - 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") - dependency_sbom: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") +model_rebuild(RateLimit) -model_rebuild(RateLimitOverviewPropResources) - -__all__ = ("RateLimitOverviewPropResources",) +__all__ = ("RateLimit",) 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 5d2abd8b6..c1a8329a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0247.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0247.py @@ -9,53 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0246 import RateLimit +from .group_0248 import RateLimitOverviewPropResources -class Artifact(GitHubModel): - """Artifact +class RateLimitOverview(GitHubModel): + """Rate Limit Overview - An artifact + Rate Limit Overview """ - id: int = Field() - node_id: str = Field() - name: str = Field(description="The name of the artifact.") - size_in_bytes: int = Field(description="The size in bytes of the artifact.") - url: str = Field() - archive_download_url: str = Field() - expired: bool = Field(description="Whether or not the artifact has expired.") - created_at: Union[datetime, None] = Field() - expires_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - digest: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", - ) - workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) - - -class ArtifactPropWorkflowRun(GitHubModel): - """ArtifactPropWorkflowRun""" - - id: Missing[int] = Field(default=UNSET) - repository_id: Missing[int] = Field(default=UNSET) - head_repository_id: Missing[int] = Field(default=UNSET) - head_branch: Missing[str] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - - -model_rebuild(Artifact) -model_rebuild(ArtifactPropWorkflowRun) - -__all__ = ( - "Artifact", - "ArtifactPropWorkflowRun", -) + resources: RateLimitOverviewPropResources = Field() + rate: RateLimit = Field(title="Rate Limit") + + +model_rebuild(RateLimitOverview) + +__all__ = ("RateLimitOverview",) 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 e8023d141..80d751d25 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0248.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0248.py @@ -9,43 +9,34 @@ 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_0246 import RateLimit -class ActionsCacheList(GitHubModel): - """Repository actions caches - Repository actions caches - """ +class RateLimitOverviewPropResources(GitHubModel): + """RateLimitOverviewPropResources""" - total_count: int = Field(description="Total number of caches") - actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( - description="Array of caches" + 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") + dependency_sbom: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") -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(RateLimitOverviewPropResources) -__all__ = ( - "ActionsCacheList", - "ActionsCacheListPropActionsCachesItems", -) +__all__ = ("RateLimitOverviewPropResources",) 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 2a7eb2be6..5d2abd8b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0249.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0249.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,92 +19,43 @@ from githubkit.utils import UNSET -class Job(GitHubModel): - """Job +class Artifact(GitHubModel): + """Artifact - Information of a job execution in a workflow run + An artifact """ - 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.", - ) + id: int = Field() node_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being run.") + 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() - 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.)" + archive_download_url: str = Field() + expired: bool = Field(description="Whether or not the artifact has expired.") + created_at: Union[datetime, None] = Field() + expires_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + digest: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", ) - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) -class JobPropStepsItems(GitHubModel): - """JobPropStepsItems""" +class ArtifactPropWorkflowRun(GitHubModel): + """ArtifactPropWorkflowRun""" - 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." - ) + 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(Job) -model_rebuild(JobPropStepsItems) +model_rebuild(Artifact) +model_rebuild(ArtifactPropWorkflowRun) __all__ = ( - "Job", - "JobPropStepsItems", + "Artifact", + "ArtifactPropWorkflowRun", ) 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 cceb6bb55..e8023d141 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0250.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0250.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,21 +18,34 @@ from githubkit.utils import UNSET -class OidcCustomSubRepo(GitHubModel): - """Actions OIDC subject customization for a repository +class ActionsCacheList(GitHubModel): + """Repository actions caches - Actions OIDC subject customization for a repository + Repository actions caches """ - 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.", + total_count: int = Field(description="Total number of caches") + actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( + description="Array of caches" ) -model_rebuild(OidcCustomSubRepo) +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__ = ("OidcCustomSubRepo",) +__all__ = ( + "ActionsCacheList", + "ActionsCacheListPropActionsCachesItems", +) 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 4e5c3a572..2a7eb2be6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0251.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0251.py @@ -10,23 +10,101 @@ 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 ActionsSecret(GitHubModel): - """Actions Secret +class Job(GitHubModel): + """Job - Set secrets for GitHub Actions. + Information of a job execution in a workflow run """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = 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() + 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.") -model_rebuild(ActionsSecret) +class JobPropStepsItems(GitHubModel): + """JobPropStepsItems""" -__all__ = ("ActionsSecret",) + 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(Job) +model_rebuild(JobPropStepsItems) + +__all__ = ( + "Job", + "JobPropStepsItems", +) 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 cb0c0f09c..cceb6bb55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0252.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0252.py @@ -9,26 +9,28 @@ 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 OidcCustomSubRepo(GitHubModel): + """Actions OIDC subject customization for a repository -class ActionsVariable(GitHubModel): - """Actions Variable""" + Actions OIDC subject customization for a repository + """ - 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." + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." ) - 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." + 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(ActionsVariable) +model_rebuild(OidcCustomSubRepo) -__all__ = ("ActionsVariable",) +__all__ = ("OidcCustomSubRepo",) 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 5079bcff0..4e5c3a572 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0253.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0253.py @@ -9,31 +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 ActionsRepositoryPermissions(GitHubModel): - """ActionsRepositoryPermissions""" +class ActionsSecret(GitHubModel): + """Actions Secret - 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`.", - ) + Set secrets for GitHub Actions. + """ + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ActionsRepositoryPermissions) -__all__ = ("ActionsRepositoryPermissions",) +model_rebuild(ActionsSecret) + +__all__ = ("ActionsSecret",) 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 dbc0521ec..cb0c0f09c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0254.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0254.py @@ -9,21 +9,26 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ActionsWorkflowAccessToRepository(GitHubModel): - """ActionsWorkflowAccessToRepository""" +class ActionsVariable(GitHubModel): + """Actions Variable""" - 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." + 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." ) -model_rebuild(ActionsWorkflowAccessToRepository) +model_rebuild(ActionsVariable) -__all__ = ("ActionsWorkflowAccessToRepository",) +__all__ = ("ActionsVariable",) 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 7ce075884..5079bcff0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0255.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0255.py @@ -9,63 +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 PullRequestMinimal(GitHubModel): - """Pull Request Minimal""" - - id: int = Field() - number: int = Field() - url: str = Field() - head: PullRequestMinimalPropHead = Field() - base: PullRequestMinimalPropBase = Field() - - -class PullRequestMinimalPropHead(GitHubModel): - """PullRequestMinimalPropHead""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropHeadPropRepo = Field() - - -class PullRequestMinimalPropHeadPropRepo(GitHubModel): - """PullRequestMinimalPropHeadPropRepo""" - - id: int = Field() - url: str = Field() - name: str = Field() - - -class PullRequestMinimalPropBase(GitHubModel): - """PullRequestMinimalPropBase""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropBasePropRepo = Field() - - -class PullRequestMinimalPropBasePropRepo(GitHubModel): - """PullRequestMinimalPropBasePropRepo""" +class ActionsRepositoryPermissions(GitHubModel): + """ActionsRepositoryPermissions""" - id: int = Field() - url: str = Field() - name: str = 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.", + ) + 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(PullRequestMinimal) -model_rebuild(PullRequestMinimalPropHead) -model_rebuild(PullRequestMinimalPropHeadPropRepo) -model_rebuild(PullRequestMinimalPropBase) -model_rebuild(PullRequestMinimalPropBasePropRepo) +model_rebuild(ActionsRepositoryPermissions) -__all__ = ( - "PullRequestMinimal", - "PullRequestMinimalPropBase", - "PullRequestMinimalPropBasePropRepo", - "PullRequestMinimalPropHead", - "PullRequestMinimalPropHeadPropRepo", -) +__all__ = ("ActionsRepositoryPermissions",) 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 29f15097a..dbc0521ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0256.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0256.py @@ -9,58 +9,21 @@ 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 -class SimpleCommit(GitHubModel): - """Simple Commit +class ActionsWorkflowAccessToRepository(GitHubModel): + """ActionsWorkflowAccessToRepository""" - A commit. - """ - - id: str = Field(description="SHA for the commit") - tree_id: str = Field(description="SHA for the commit's tree") - message: str = Field(description="Message describing the purpose of the commit") - timestamp: datetime = Field(description="Timestamp of the commit") - author: Union[SimpleCommitPropAuthor, None] = Field( - description="Information about the Git author" - ) - committer: Union[SimpleCommitPropCommitter, None] = Field( - description="Information about the Git committer" + 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." ) -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(ActionsWorkflowAccessToRepository) -__all__ = ( - "SimpleCommit", - "SimpleCommitPropAuthor", - "SimpleCommitPropCommitter", -) +__all__ = ("ActionsWorkflowAccessToRepository",) 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 cd9336218..7ce075884 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0257.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0257.py @@ -9,116 +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.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0176 import MinimalRepository -from .group_0255 import PullRequestMinimal -from .group_0256 import SimpleCommit - - -class WorkflowRun(GitHubModel): - """Workflow Run - - An invocation of a workflow - """ - - id: int = Field(description="The ID of the workflow run.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow run." - ) - node_id: str = Field() - check_suite_id: Missing[int] = Field( - default=UNSET, description="The ID of the associated check suite." - ) - check_suite_node_id: Missing[str] = Field( - default=UNSET, description="The node ID of the associated check suite." - ) - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that points to the version of the workflow being run." - ) - 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 ReferencedWorkflow(GitHubModel): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str = Field() + + +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() - ref: Missing[str] = Field(default=UNSET) + repo: PullRequestMinimalPropHeadPropRepo = Field() + + +class PullRequestMinimalPropHeadPropRepo(GitHubModel): + """PullRequestMinimalPropHeadPropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() + + +class PullRequestMinimalPropBase(GitHubModel): + """PullRequestMinimalPropBase""" + + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropBasePropRepo = Field() + + +class PullRequestMinimalPropBasePropRepo(GitHubModel): + """PullRequestMinimalPropBasePropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() -model_rebuild(WorkflowRun) -model_rebuild(ReferencedWorkflow) +model_rebuild(PullRequestMinimal) +model_rebuild(PullRequestMinimalPropHead) +model_rebuild(PullRequestMinimalPropHeadPropRepo) +model_rebuild(PullRequestMinimalPropBase) +model_rebuild(PullRequestMinimalPropBasePropRepo) __all__ = ( - "ReferencedWorkflow", - "WorkflowRun", + "PullRequestMinimal", + "PullRequestMinimalPropBase", + "PullRequestMinimalPropBasePropRepo", + "PullRequestMinimalPropHead", + "PullRequestMinimalPropHeadPropRepo", ) 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 f9c274d60..29f15097a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0258.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0258.py @@ -10,57 +10,57 @@ 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 -from .group_0003 import SimpleUser +class SimpleCommit(GitHubModel): + """Simple Commit -class EnvironmentApprovals(GitHubModel): - """Environment Approval - - An entry in the reviews log for environment deployments + A commit. """ - environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( - description="The list of environments that were approved or rejected" + 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" ) - state: Literal["approved", "rejected", "pending"] = Field( - description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" + committer: Union[SimpleCommitPropCommitter, None] = Field( + description="Information about the Git committer" ) - 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""" +class SimpleCommitPropAuthor(GitHubModel): + """SimpleCommitPropAuthor - 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.", - ) + 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(EnvironmentApprovals) -model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) +model_rebuild(SimpleCommit) +model_rebuild(SimpleCommitPropAuthor) +model_rebuild(SimpleCommitPropCommitter) __all__ = ( - "EnvironmentApprovals", - "EnvironmentApprovalsPropEnvironmentsItems", + "SimpleCommit", + "SimpleCommitPropAuthor", + "SimpleCommitPropCommitter", ) 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 831ca354e..f24e1d70a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0259.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0259.py @@ -9,22 +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_0178 import MinimalRepository +from .group_0257 import PullRequestMinimal +from .group_0258 import SimpleCommit + +class WorkflowRun(GitHubModel): + """Workflow Run -class ReviewCustomGatesCommentRequired(GitHubModel): - """ReviewCustomGatesCommentRequired""" + An invocation of a workflow + """ - environment_name: str = Field( - description="The name of the environment to approve or reject." + 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." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - comment: str = Field( - description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" + 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(ReviewCustomGatesCommentRequired) +model_rebuild(WorkflowRun) +model_rebuild(ReferencedWorkflow) -__all__ = ("ReviewCustomGatesCommentRequired",) +__all__ = ( + "ReferencedWorkflow", + "WorkflowRun", +) 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 382e4485a..f9c274d60 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0260.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0260.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -17,21 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ReviewCustomGatesStateRequired(GitHubModel): - """ReviewCustomGatesStateRequired""" - environment_name: str = Field( - description="The name of the environment to approve or reject." +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." ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." + 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.", ) - comment: Missing[str] = Field( - default=UNSET, description="Optional comment to include with the review." + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was last updated, in ISO 8601 format.", ) -model_rebuild(ReviewCustomGatesStateRequired) +model_rebuild(EnvironmentApprovals) +model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) -__all__ = ("ReviewCustomGatesStateRequired",) +__all__ = ( + "EnvironmentApprovals", + "EnvironmentApprovalsPropEnvironmentsItems", +) 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 64c973b9b..831ca354e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0261.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0261.py @@ -9,65 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0070 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 PendingDeployment(GitHubModel): - """Pending Deployment +class ReviewCustomGatesCommentRequired(GitHubModel): + """ReviewCustomGatesCommentRequired""" - 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." + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - - -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." + comment: str = Field( + description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) -model_rebuild(PendingDeploymentPropReviewersItems) -model_rebuild(PendingDeployment) -model_rebuild(PendingDeploymentPropEnvironment) +model_rebuild(ReviewCustomGatesCommentRequired) -__all__ = ( - "PendingDeployment", - "PendingDeploymentPropEnvironment", - "PendingDeploymentPropReviewersItems", -) +__all__ = ("ReviewCustomGatesCommentRequired",) 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 37c49059f..382e4485a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0262.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0262.py @@ -9,63 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration +class ReviewCustomGatesStateRequired(GitHubModel): + """ReviewCustomGatesStateRequired""" -class Deployment(GitHubModel): - """Deployment - - A request for a specific ref(branch,sha,tag) to be deployed - """ - - 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.", + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + comment: Missing[str] = Field( + default=UNSET, description="Optional comment to include with the review." ) -class DeploymentPropPayloadOneof0(ExtraGitHubModel): - """DeploymentPropPayloadOneof0""" - - -model_rebuild(Deployment) -model_rebuild(DeploymentPropPayloadOneof0) +model_rebuild(ReviewCustomGatesStateRequired) -__all__ = ( - "Deployment", - "DeploymentPropPayloadOneof0", -) +__all__ = ("ReviewCustomGatesStateRequired",) 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 c81b4fcb7..b569284af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0263.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0263.py @@ -9,104 +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 - -class WorkflowRunUsage(GitHubModel): - """Workflow Run Usage - - Workflow Run Usage - """ - - billable: WorkflowRunUsagePropBillable = Field() - run_duration_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowRunUsagePropBillable(GitHubModel): - """WorkflowRunUsagePropBillable""" - - ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" - ) - macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" - ) - windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" - ) +from .group_0003 import SimpleUser +from .group_0071 import Team -class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntu""" +class PendingDeploymentPropReviewersItems(GitHubModel): + """PendingDeploymentPropReviewersItems""" - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( - Field(default=UNSET) + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" +class PendingDeployment(GitHubModel): + """Pending Deployment - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropMacos(GitHubModel): - """WorkflowRunUsagePropBillablePropMacos""" + Details of a deployment that is waiting for protection rules to pass + """ - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( - Field(default=UNSET) + 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." ) - - -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) + 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 WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" +class PendingDeploymentPropEnvironment(GitHubModel): + """PendingDeploymentPropEnvironment""" - job_id: int = Field() - duration_ms: int = Field() + 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(WorkflowRunUsage) -model_rebuild(WorkflowRunUsagePropBillable) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropMacos) -model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropWindows) -model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) +model_rebuild(PendingDeploymentPropReviewersItems) +model_rebuild(PendingDeployment) +model_rebuild(PendingDeploymentPropEnvironment) __all__ = ( - "WorkflowRunUsage", - "WorkflowRunUsagePropBillable", - "WorkflowRunUsagePropBillablePropMacos", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", - "WorkflowRunUsagePropBillablePropUbuntu", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", - "WorkflowRunUsagePropBillablePropWindows", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", + "PendingDeployment", + "PendingDeploymentPropEnvironment", + "PendingDeploymentPropReviewersItems", ) 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 f5831c47a..37c49059f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0264.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0264.py @@ -9,64 +9,63 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class WorkflowUsage(GitHubModel): - """Workflow Usage - - Workflow Usage - """ - - billable: WorkflowUsagePropBillable = Field() +class Deployment(GitHubModel): + """Deployment -class WorkflowUsagePropBillable(GitHubModel): - """WorkflowUsagePropBillable""" + A request for a specific ref(branch,sha,tag) to be deployed + """ - ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" + 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." ) - macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + 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.", ) - windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" + 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 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) +class DeploymentPropPayloadOneof0(ExtraGitHubModel): + """DeploymentPropPayloadOneof0""" -model_rebuild(WorkflowUsage) -model_rebuild(WorkflowUsagePropBillable) -model_rebuild(WorkflowUsagePropBillablePropUbuntu) -model_rebuild(WorkflowUsagePropBillablePropMacos) -model_rebuild(WorkflowUsagePropBillablePropWindows) +model_rebuild(Deployment) +model_rebuild(DeploymentPropPayloadOneof0) __all__ = ( - "WorkflowUsage", - "WorkflowUsagePropBillable", - "WorkflowUsagePropBillablePropMacos", - "WorkflowUsagePropBillablePropUbuntu", - "WorkflowUsagePropBillablePropWindows", + "Deployment", + "DeploymentPropPayloadOneof0", ) 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 49966c29c..c81b4fcb7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0265.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0265.py @@ -9,41 +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 .group_0003 import SimpleUser +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Activity(GitHubModel): - """Activity +class WorkflowRunUsage(GitHubModel): + """Workflow Run Usage - Activity + Workflow Run Usage """ - 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/`." + billable: WorkflowRunUsagePropBillable = Field() + run_duration_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowRunUsagePropBillable(GitHubModel): + """WorkflowRunUsagePropBillable""" + + ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" + ) + windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" + ) + + +class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropMacos(GitHubModel): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +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) ) - 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) +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__ = ("Activity",) +__all__ = ( + "WorkflowRunUsage", + "WorkflowRunUsagePropBillable", + "WorkflowRunUsagePropBillablePropMacos", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", + "WorkflowRunUsagePropBillablePropUbuntu", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", + "WorkflowRunUsagePropBillablePropWindows", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", +) 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 245d14611..f5831c47a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0266.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0266.py @@ -12,24 +12,61 @@ 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 +class WorkflowUsage(GitHubModel): + """Workflow Usage - An autolink reference. + Workflow Usage """ - 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." + billable: WorkflowUsagePropBillable = Field() + + +class WorkflowUsagePropBillable(GitHubModel): + """WorkflowUsagePropBillable""" + + ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - is_alphanumeric: bool = Field( - description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." + windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) -model_rebuild(Autolink) +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__ = ("Autolink",) +__all__ = ( + "WorkflowUsage", + "WorkflowUsagePropBillable", + "WorkflowUsagePropBillablePropMacos", + "WorkflowUsagePropBillablePropUbuntu", + "WorkflowUsagePropBillablePropWindows", +) 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 481ac164d..49966c29c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0267.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0267.py @@ -9,25 +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 .group_0003 import SimpleUser + -class CheckAutomatedSecurityFixes(GitHubModel): - """Check Dependabot security updates +class Activity(GitHubModel): + """Activity - Check Dependabot security updates + Activity """ - 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." + id: int = Field() + node_id: str = Field() + before: str = Field(description="The SHA of the commit before the activity.") + after: str = Field(description="The SHA of the commit after the activity.") + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." ) + timestamp: datetime = Field(description="The time when the activity occurred.") + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] = Field(description="The type of the activity that was performed.") + actor: Union[None, SimpleUser] = Field() -model_rebuild(CheckAutomatedSecurityFixes) +model_rebuild(Activity) -__all__ = ("CheckAutomatedSecurityFixes",) +__all__ = ("Activity",) 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 fa98a1e49..245d14611 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0268.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0268.py @@ -12,40 +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_0269 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, - ProtectedBranchPullRequestReviewPropDismissalRestrictions, -) +class Autolink(GitHubModel): + """Autolink reference -class ProtectedBranchPullRequestReview(GitHubModel): - """Protected Branch Pull Request Review - - Protected Branch Pull Request Review + An autolink reference. """ - 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.", + 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." ) - 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.", + is_alphanumeric: bool = Field( + description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." ) -model_rebuild(ProtectedBranchPullRequestReview) +model_rebuild(Autolink) -__all__ = ("ProtectedBranchPullRequestReview",) +__all__ = ("Autolink",) 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 ce40e7b48..481ac164d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0269.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0269.py @@ -9,60 +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 -from .group_0010 import Integration -from .group_0070 import Team -class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class CheckAutomatedSecurityFixes(GitHubModel): + """Check Dependabot security updates - 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. + Check Dependabot security updates """ - 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.", + enabled: bool = Field( + description="Whether Dependabot security updates are enabled for the repository." ) - apps: Missing[list[Union[Integration, None]]] = Field( - default=UNSET, - description="The list of apps allowed to bypass pull request requirements.", + paused: bool = Field( + description="Whether Dependabot security updates are paused for the repository." ) -model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) -model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) +model_rebuild(CheckAutomatedSecurityFixes) -__all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", - "ProtectedBranchPullRequestReviewPropDismissalRestrictions", -) +__all__ = ("CheckAutomatedSecurityFixes",) 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 b02082cc4..b6666ebcf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0270.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0270.py @@ -9,142 +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_0271 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, + ProtectedBranchPullRequestReviewPropDismissalRestrictions, +) -class BranchRestrictionPolicy(GitHubModel): - """Branch Restriction Policy - - Branch Restriction Policy - """ - - url: str = Field() - users_url: str = Field() - teams_url: str = Field() - apps_url: str = Field() - users: list[BranchRestrictionPolicyPropUsersItems] = Field() - teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() - apps: list[BranchRestrictionPolicyPropAppsItems] = Field() - - -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 ProtectedBranchPullRequestReview(GitHubModel): + """Protected Branch Pull Request Review -class BranchRestrictionPolicyPropTeamsItems(GitHubModel): - """BranchRestrictionPolicyPropTeamsItems""" + Protected Branch Pull Request Review + """ - 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 + 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.", ) - events: Missing[list[str]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: Missing[str] = Field(default=UNSET) - contents: Missing[str] = Field(default=UNSET) - issues: Missing[str] = Field(default=UNSET) - single_file: Missing[str] = Field(default=UNSET) -model_rebuild(BranchRestrictionPolicy) -model_rebuild(BranchRestrictionPolicyPropUsersItems) -model_rebuild(BranchRestrictionPolicyPropTeamsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) +model_rebuild(ProtectedBranchPullRequestReview) -__all__ = ( - "BranchRestrictionPolicy", - "BranchRestrictionPolicyPropAppsItems", - "BranchRestrictionPolicyPropAppsItemsPropOwner", - "BranchRestrictionPolicyPropAppsItemsPropPermissions", - "BranchRestrictionPolicyPropTeamsItems", - "BranchRestrictionPolicyPropUsersItems", -) +__all__ = ("ProtectedBranchPullRequestReview",) 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 18fadbeb8..64508732c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0271.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0271.py @@ -17,176 +17,52 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0268 import ProtectedBranchPullRequestReview -from .group_0270 import BranchRestrictionPolicy +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0071 import Team -class BranchProtection(GitHubModel): - """Branch Protection +class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" - 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", + users: Missing[list[SimpleUser]] = Field( + default=UNSET, description="The list of users with review dismissal access." ) - enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( - default=UNSET, - title="Protected Branch Admin Enforced", - description="Protected Branch Admin Enforced", + teams: Missing[list[Team]] = Field( + default=UNSET, description="The list of teams with review dismissal access." ) - required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( - default=UNSET, - title="Protected Branch Pull Request Review", - description="Protected Branch Pull Request Review", + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, description="The list of apps with review dismissal access." ) - restrictions: Missing[BranchRestrictionPolicy] = Field( + 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. + """ + + users: Missing[list[SimpleUser]] = 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 + description="The list of users allowed to bypass pull request requirements.", ) - lock_branch: Missing[BranchProtectionPropLockBranch] = Field( + teams: Missing[list[Team]] = 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.", + description="The list of teams allowed to bypass pull request requirements.", ) - allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( + apps: Missing[list[Union[Integration, None]]] = 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.", + description="The list of apps allowed to bypass pull request requirements.", ) -class ProtectedBranchAdminEnforced(GitHubModel): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced - """ - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropRequiredLinearHistory(GitHubModel): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForcePushes(GitHubModel): - """BranchProtectionPropAllowForcePushes""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowDeletions(GitHubModel): - """BranchProtectionPropAllowDeletions""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropBlockCreations(GitHubModel): - """BranchProtectionPropBlockCreations""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredConversationResolution(GitHubModel): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredSignatures(GitHubModel): - """BranchProtectionPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropLockBranch(GitHubModel): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForkSyncing(GitHubModel): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheck(GitHubModel): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: Missing[str] = Field(default=UNSET) - enforcement_level: Missing[str] = Field(default=UNSET) - contexts: list[str] = Field() - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() - contexts_url: Missing[str] = Field(default=UNSET) - strict: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() - - -model_rebuild(BranchProtection) -model_rebuild(ProtectedBranchAdminEnforced) -model_rebuild(BranchProtectionPropRequiredLinearHistory) -model_rebuild(BranchProtectionPropAllowForcePushes) -model_rebuild(BranchProtectionPropAllowDeletions) -model_rebuild(BranchProtectionPropBlockCreations) -model_rebuild(BranchProtectionPropRequiredConversationResolution) -model_rebuild(BranchProtectionPropRequiredSignatures) -model_rebuild(BranchProtectionPropLockBranch) -model_rebuild(BranchProtectionPropAllowForkSyncing) -model_rebuild(ProtectedBranchRequiredStatusCheck) -model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) +model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) +model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) __all__ = ( - "BranchProtection", - "BranchProtectionPropAllowDeletions", - "BranchProtectionPropAllowForcePushes", - "BranchProtectionPropAllowForkSyncing", - "BranchProtectionPropBlockCreations", - "BranchProtectionPropLockBranch", - "BranchProtectionPropRequiredConversationResolution", - "BranchProtectionPropRequiredLinearHistory", - "BranchProtectionPropRequiredSignatures", - "ProtectedBranchAdminEnforced", - "ProtectedBranchRequiredStatusCheck", - "ProtectedBranchRequiredStatusCheckPropChecksItems", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", + "ProtectedBranchPullRequestReviewPropDismissalRestrictions", ) 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 f847b5439..b02082cc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0272.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0272.py @@ -9,41 +9,142 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0271 import BranchProtection - -class ShortBranch(GitHubModel): - """Short Branch +class BranchRestrictionPolicy(GitHubModel): + """Branch Restriction Policy - Short Branch + Branch Restriction Policy """ - name: str = Field() - commit: ShortBranchPropCommit = Field() - protected: bool = Field() - protection: Missing[BranchProtection] = Field( - default=UNSET, title="Branch Protection", description="Branch Protection" - ) - protection_url: Missing[str] = Field(default=UNSET) - - -class ShortBranchPropCommit(GitHubModel): - """ShortBranchPropCommit""" - - sha: str = Field() url: str = Field() - - -model_rebuild(ShortBranch) -model_rebuild(ShortBranchPropCommit) + 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__ = ( - "ShortBranch", - "ShortBranchPropCommit", + "BranchRestrictionPolicy", + "BranchRestrictionPolicyPropAppsItems", + "BranchRestrictionPolicyPropAppsItemsPropOwner", + "BranchRestrictionPolicyPropAppsItemsPropPermissions", + "BranchRestrictionPolicyPropTeamsItems", + "BranchRestrictionPolicyPropUsersItems", ) 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 1a688a15a..5a73b8a67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0273.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0273.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field @@ -17,18 +17,176 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0270 import ProtectedBranchPullRequestReview +from .group_0272 import BranchRestrictionPolicy -class GitUser(GitHubModel): - """Git User - Metaproperties for Git author/committer information. +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) - email: Missing[str] = Field(default=UNSET) - date: Missing[datetime] = 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() -model_rebuild(GitUser) +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__ = ("GitUser",) +__all__ = ( + "BranchProtection", + "BranchProtectionPropAllowDeletions", + "BranchProtectionPropAllowForcePushes", + "BranchProtectionPropAllowForkSyncing", + "BranchProtectionPropBlockCreations", + "BranchProtectionPropLockBranch", + "BranchProtectionPropRequiredConversationResolution", + "BranchProtectionPropRequiredLinearHistory", + "BranchProtectionPropRequiredSignatures", + "ProtectedBranchAdminEnforced", + "ProtectedBranchRequiredStatusCheck", + "ProtectedBranchRequiredStatusCheckPropChecksItems", +) 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 b177fcee6..fd7d58afc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0274.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0274.py @@ -9,25 +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_0273 import BranchProtection + + +class ShortBranch(GitHubModel): + """Short Branch + + Short Branch + """ + + name: str = Field() + commit: ShortBranchPropCommit = Field() + protected: bool = Field() + protection: Missing[BranchProtection] = Field( + default=UNSET, title="Branch Protection", description="Branch Protection" + ) + protection_url: Missing[str] = Field(default=UNSET) + -class Verification(GitHubModel): - """Verification""" +class ShortBranchPropCommit(GitHubModel): + """ShortBranchPropCommit""" - 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) + sha: str = Field() + url: str = Field() -model_rebuild(Verification) +model_rebuild(ShortBranch) +model_rebuild(ShortBranchPropCommit) -__all__ = ("Verification",) +__all__ = ( + "ShortBranch", + "ShortBranchPropCommit", +) 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 3625474ad..1a688a15a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0275.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0275.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from pydantic import Field @@ -18,27 +18,17 @@ from githubkit.utils import UNSET -class DiffEntry(GitHubModel): - """Diff Entry +class GitUser(GitHubModel): + """Git User - Diff Entry + Metaproperties for Git author/committer information. """ - sha: Union[str, None] = Field() - filename: str = Field() - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] = Field() - additions: int = Field() - deletions: int = Field() - changes: int = Field() - blob_url: Union[str, None] = Field() - raw_url: Union[str, None] = Field() - contents_url: str = Field() - patch: Missing[str] = Field(default=UNSET) - previous_filename: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) -model_rebuild(DiffEntry) +model_rebuild(GitUser) -__all__ = ("DiffEntry",) +__all__ = ("GitUser",) 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 8f9ab86e6..b177fcee6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0276.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0276.py @@ -17,61 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0275 import DiffEntry -from .group_0277 import CommitPropCommit +class Verification(GitHubModel): + """Verification""" -class Commit(GitHubModel): - """Commit + 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) - 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) +model_rebuild(Verification) - -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", -) +__all__ = ("Verification",) 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 654799175..3625474ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0277.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0277.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,33 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0273 import GitUser -from .group_0274 import Verification +class DiffEntry(GitHubModel): + """Diff Entry -class CommitPropCommit(GitHubModel): - """CommitPropCommit""" + Diff Entry + """ - 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") + sha: Union[str, None] = Field() + filename: str = Field() + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] = Field() + additions: int = Field() + deletions: int = Field() + changes: int = Field() + blob_url: Union[str, None] = Field() + raw_url: Union[str, None] = Field() + contents_url: str = Field() + patch: Missing[str] = Field(default=UNSET) + previous_filename: Missing[str] = Field(default=UNSET) -class CommitPropCommitPropTree(GitHubModel): - """CommitPropCommitPropTree""" +model_rebuild(DiffEntry) - sha: str = Field() - url: str = Field() - - -model_rebuild(CommitPropCommit) -model_rebuild(CommitPropCommitPropTree) - -__all__ = ( - "CommitPropCommit", - "CommitPropCommitPropTree", -) +__all__ = ("DiffEntry",) 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 8f8d932b8..aad38a9e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0278.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0278.py @@ -9,45 +9,69 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0271 import BranchProtection -from .group_0276 import Commit +from .group_0003 import SimpleUser +from .group_0277 import DiffEntry +from .group_0279 import CommitPropCommit + + +class Commit(GitHubModel): + """Commit + + 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) -class BranchWithProtection(GitHubModel): - """Branch With Protection +class EmptyObject(GitHubModel): + """Empty Object - Branch With Protection + An object without any properties. """ - 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 CommitPropParentsItems(GitHubModel): + """CommitPropParentsItems""" + + sha: str = Field() + url: str = Field() + html_url: Missing[str] = Field(default=UNSET) -class BranchWithProtectionPropLinks(GitHubModel): - """BranchWithProtectionPropLinks""" +class CommitPropStats(GitHubModel): + """CommitPropStats""" - html: str = Field() - self_: str = Field(alias="self") + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + total: Missing[int] = Field(default=UNSET) -model_rebuild(BranchWithProtection) -model_rebuild(BranchWithProtectionPropLinks) +model_rebuild(Commit) +model_rebuild(EmptyObject) +model_rebuild(CommitPropParentsItems) +model_rebuild(CommitPropStats) __all__ = ( - "BranchWithProtection", - "BranchWithProtectionPropLinks", + "Commit", + "CommitPropParentsItems", + "CommitPropStats", + "EmptyObject", ) 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 1d6529b91..d8da1178c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0279.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0279.py @@ -17,161 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0270 import BranchRestrictionPolicy -from .group_0280 import ProtectedBranchPropRequiredPullRequestReviews +from .group_0275 import GitUser +from .group_0276 import Verification -class ProtectedBranch(GitHubModel): - """Protected Branch - - Branch protections protect branches - """ - - url: str = Field() - required_status_checks: Missing[StatusCheckPolicy] = Field( - default=UNSET, title="Status Check Policy", description="Status Check Policy" - ) - required_pull_request_reviews: Missing[ - ProtectedBranchPropRequiredPullRequestReviews - ] = Field(default=UNSET) - required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( - default=UNSET - ) - enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) - required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( - default=UNSET - ) - allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_conversation_resolution: Missing[ - ProtectedBranchPropRequiredConversationResolution - ] = Field(default=UNSET) - block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) - lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchPropRequiredSignatures(GitHubModel): - """ProtectedBranchPropRequiredSignatures""" +class CommitPropCommit(GitHubModel): + """CommitPropCommit""" 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() - + 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 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 CommitPropCommitPropTree(GitHubModel): + """CommitPropCommitPropTree""" + 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(CommitPropCommit) +model_rebuild(CommitPropCommitPropTree) __all__ = ( - "ProtectedBranch", - "ProtectedBranchPropAllowDeletions", - "ProtectedBranchPropAllowForcePushes", - "ProtectedBranchPropAllowForkSyncing", - "ProtectedBranchPropBlockCreations", - "ProtectedBranchPropEnforceAdmins", - "ProtectedBranchPropLockBranch", - "ProtectedBranchPropRequiredConversationResolution", - "ProtectedBranchPropRequiredLinearHistory", - "ProtectedBranchPropRequiredSignatures", - "StatusCheckPolicy", - "StatusCheckPolicyPropChecksItems", + "CommitPropCommit", + "CommitPropCommitPropTree", ) 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 801f661f7..28e55a634 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0280.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0280.py @@ -15,31 +15,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0281 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, -) +from .group_0273 import BranchProtection +from .group_0278 import Commit -class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): - """ProtectedBranchPropRequiredPullRequestReviews""" +class BranchWithProtection(GitHubModel): + """Branch With Protection - 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.", + Branch With Protection + """ + + name: str = Field() + commit: Commit = Field(title="Commit", description="Commit") + links: BranchWithProtectionPropLinks = Field(alias="_links") + protected: bool = Field() + protection: BranchProtection = Field( + title="Branch Protection", description="Branch Protection" ) - dismissal_restrictions: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field(default=UNSET) + protection_url: str = Field() + pattern: Missing[str] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) -model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) +class BranchWithProtectionPropLinks(GitHubModel): + """BranchWithProtectionPropLinks""" -__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) + html: str = Field() + self_: str = Field(alias="self") + + +model_rebuild(BranchWithProtection) +model_rebuild(BranchWithProtectionPropLinks) + +__all__ = ( + "BranchWithProtection", + "BranchWithProtectionPropLinks", +) 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 6d8e58500..0c4d1f1cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0281.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0281.py @@ -17,40 +17,161 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0070 import Team +from .group_0272 import BranchRestrictionPolicy +from .group_0282 import ProtectedBranchPropRequiredPullRequestReviews -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class ProtectedBranch(GitHubModel): + """Protected Branch + + Branch protections protect branches + """ 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) + 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 ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) +class ProtectedBranchPropEnforceAdmins(GitHubModel): + """ProtectedBranchPropEnforceAdmins""" + url: str = Field() + enabled: bool = Field() -model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) -model_rebuild( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) + +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() + + +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__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ProtectedBranch", + "ProtectedBranchPropAllowDeletions", + "ProtectedBranchPropAllowForcePushes", + "ProtectedBranchPropAllowForkSyncing", + "ProtectedBranchPropBlockCreations", + "ProtectedBranchPropEnforceAdmins", + "ProtectedBranchPropLockBranch", + "ProtectedBranchPropRequiredConversationResolution", + "ProtectedBranchPropRequiredLinearHistory", + "ProtectedBranchPropRequiredSignatures", + "StatusCheckPolicy", + "StatusCheckPolicyPropChecksItems", ) 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 7a0f9e876..53cf0a5ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0282.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0282.py @@ -9,49 +9,37 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration - +from .group_0283 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, +) -class DeploymentSimple(GitHubModel): - """Deployment - A deployment created as the result of an Actions check run from a workflow that - references an environment - """ +class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): + """ProtectedBranchPropRequiredPullRequestReviews""" 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( + 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="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 + 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(DeploymentSimple) +model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) -__all__ = ("DeploymentSimple",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) 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 69820fe5c..bcb4efb6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0283.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0283.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,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0255 import PullRequestMinimal -from .group_0282 import DeploymentSimple +from .group_0071 import Team -class CheckRun(GitHubModel): - """CheckRun +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - 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." - ) - 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) + 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__ = ( - "CheckRun", - "CheckRunPropCheckSuite", - "CheckRunPropOutput", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", ) 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 2dfb0cd0e..7a0f9e876 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0284.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0284.py @@ -9,31 +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_0010 import Integration -class CheckAnnotation(GitHubModel): - """Check Annotation - Check Annotation - """ - - path: str = Field() - start_line: int = Field() - end_line: int = Field() - start_column: Union[int, None] = Field() - end_column: Union[int, None] = Field() - annotation_level: Union[str, None] = Field() - title: Union[str, None] = Field() - message: Union[str, None] = Field() - raw_details: Union[str, None] = Field() - blob_href: str = Field() +class DeploymentSimple(GitHubModel): + """Deployment + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ -model_rebuild(CheckAnnotation) - -__all__ = ("CheckAnnotation",) + 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",) 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 7ad071a35..f9b948d03 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0285.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0285.py @@ -19,30 +19,27 @@ from githubkit.utils import UNSET from .group_0010 import Integration -from .group_0176 import MinimalRepository -from .group_0255 import PullRequestMinimal -from .group_0256 import SimpleCommit +from .group_0257 import PullRequestMinimal +from .group_0284 import DeploymentSimple -class CheckSuite(GitHubModel): - """CheckSuite +class CheckRun(GitHubModel): + """CheckRun - A suite of checks performed on the code of a given code change + A check performed on the code of a given code change """ - id: int = Field() + 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() - 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" - ], + 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 suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." + 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, @@ -54,38 +51,46 @@ class CheckSuite(GitHubModel): "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() + 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() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + 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." ) - 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) + 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 ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" - total_count: int = Field() - check_suites: list[CheckSuite] = Field() +class CheckRunPropCheckSuite(GitHubModel): + """CheckRunPropCheckSuite""" + + id: int = Field() -model_rebuild(CheckSuite) -model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) +model_rebuild(CheckRun) +model_rebuild(CheckRunPropOutput) +model_rebuild(CheckRunPropCheckSuite) __all__ = ( - "CheckSuite", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", + "CheckRun", + "CheckRunPropCheckSuite", + "CheckRunPropOutput", ) 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 c6fccd569..2dfb0cd0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0286.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0286.py @@ -9,48 +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 - -from .group_0176 import MinimalRepository -class CheckSuitePreference(GitHubModel): - """Check Suite Preference +class CheckAnnotation(GitHubModel): + """Check Annotation - Check suite configuration preferences for a repository. + Check Annotation """ - preferences: CheckSuitePreferencePropPreferences = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - - -class CheckSuitePreferencePropPreferences(GitHubModel): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: Missing[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] - ] = Field(default=UNSET) - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int = Field() - setting: bool = Field() + 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(CheckSuitePreference) -model_rebuild(CheckSuitePreferencePropPreferences) -model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) +model_rebuild(CheckAnnotation) -__all__ = ( - "CheckSuitePreference", - "CheckSuitePreferencePropPreferences", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", -) +__all__ = ("CheckAnnotation",) 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 950be4aa5..80fb912db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0287.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0287.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,56 +18,74 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0058 import CodeScanningAlertRuleSummary -from .group_0059 import CodeScanningAnalysisTool -from .group_0060 import CodeScanningAlertInstance +from .group_0010 import Integration +from .group_0178 import MinimalRepository +from .group_0257 import PullRequestMinimal +from .group_0258 import SimpleCommit -class CodeScanningAlertItems(GitHubModel): - """CodeScanningAlertItems""" +class CheckSuite(GitHubModel): + """CheckSuite - 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`." + 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." ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + 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." ) - 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.", - ) + 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" ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - dismissal_approved_by: Missing[Union[None, SimpleUser]] = 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) + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int = Field() + check_suites: list[CheckSuite] = Field() -model_rebuild(CodeScanningAlertItems) +model_rebuild(CheckSuite) +model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) -__all__ = ("CodeScanningAlertItems",) +__all__ = ( + "CheckSuite", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", +) 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 f289625fe..7ed0ca6a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0288.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0288.py @@ -9,105 +9,48 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0059 import CodeScanningAnalysisTool -from .group_0060 import CodeScanningAlertInstance +from .group_0178 import MinimalRepository -class CodeScanningAlert(GitHubModel): - """CodeScanningAlert""" +class CheckSuitePreference(GitHubModel): + """Check Suite Preference - 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.", - ) + Check suite configuration preferences for a repository. + """ + + preferences: CheckSuitePreferencePropPreferences = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - rule: CodeScanningAlertRule = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -class CodeScanningAlertRule(GitHubModel): - """CodeScanningAlertRule""" +class CheckSuitePreferencePropPreferences(GitHubModel): + """CheckSuitePreferencePropPreferences""" - 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.", - ) + auto_trigger_checks: Missing[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] + ] = Field(default=UNSET) + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int = Field() + setting: bool = Field() -model_rebuild(CodeScanningAlert) -model_rebuild(CodeScanningAlertRule) +model_rebuild(CheckSuitePreference) +model_rebuild(CheckSuitePreferencePropPreferences) +model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) __all__ = ( - "CodeScanningAlert", - "CodeScanningAlertRule", + "CheckSuitePreference", + "CheckSuitePreferencePropPreferences", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ) 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 9ae48ea96..950be4aa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0289.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0289.py @@ -10,25 +10,64 @@ 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 GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0058 import CodeScanningAlertRuleSummary +from .group_0059 import CodeScanningAnalysisTool +from .group_0060 import CodeScanningAlertInstance -class CodeScanningAutofix(GitHubModel): - """CodeScanningAutofix""" - status: Literal["pending", "error", "success", "outdated"] = Field( - description="The status of an autofix." +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." ) - 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`." + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -model_rebuild(CodeScanningAutofix) +model_rebuild(CodeScanningAlertItems) -__all__ = ("CodeScanningAutofix",) +__all__ = ("CodeScanningAlertItems",) 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 c0777bd5b..f289625fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0290.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0290.py @@ -9,28 +9,105 @@ from __future__ import annotations +from datetime import datetime +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0059 import CodeScanningAnalysisTool +from .group_0060 import CodeScanningAlertInstance -class CodeScanningAutofixCommits(GitHubModel): - """CodeScanningAutofixCommits - Commit an autofix for a code scanning alert - """ +class CodeScanningAlert(GitHubModel): + """CodeScanningAlert""" - target_ref: Missing[str] = Field( + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." + ) + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description='The Git reference of target branch for the commit. 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.', + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - message: Missing[str] = Field( - default=UNSET, description="Commit message to be used." + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRule = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + + +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(CodeScanningAutofixCommits) +model_rebuild(CodeScanningAlert) +model_rebuild(CodeScanningAlertRule) -__all__ = ("CodeScanningAutofixCommits",) +__all__ = ( + "CodeScanningAlert", + "CodeScanningAlertRule", +) 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 02e796aba..9ae48ea96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0291.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0291.py @@ -9,23 +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 -class CodeScanningAutofixCommitsResponse(GitHubModel): - """CodeScanningAutofixCommitsResponse""" +class CodeScanningAutofix(GitHubModel): + """CodeScanningAutofix""" - 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.', + 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`." ) - sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") -model_rebuild(CodeScanningAutofixCommitsResponse) +model_rebuild(CodeScanningAutofix) -__all__ = ("CodeScanningAutofixCommitsResponse",) +__all__ = ("CodeScanningAutofix",) 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 28c6b93fc..c0777bd5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0292.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0292.py @@ -9,57 +9,28 @@ 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_0059 import CodeScanningAnalysisTool +class CodeScanningAutofixCommits(GitHubModel): + """CodeScanningAutofixCommits -class CodeScanningAnalysis(GitHubModel): - """CodeScanningAnalysis""" + Commit an autofix for a code scanning alert + """ - 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( + target_ref: 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." + 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.', ) - rules_count: int = Field( - description="The total number of rules used in the analysis." + message: Missing[str] = Field( + default=UNSET, description="Commit message to be used." ) - 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) +model_rebuild(CodeScanningAutofixCommits) -__all__ = ("CodeScanningAnalysis",) +__all__ = ("CodeScanningAutofixCommits",) 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 d589823d8..02e796aba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0293.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0293.py @@ -9,27 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodeScanningAnalysisDeletion(GitHubModel): - """Analysis deletion - - Successful deletion of a code scanning analysis - """ +class CodeScanningAutofixCommitsResponse(GitHubModel): + """CodeScanningAutofixCommitsResponse""" - 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" + 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.") -model_rebuild(CodeScanningAnalysisDeletion) +model_rebuild(CodeScanningAutofixCommitsResponse) -__all__ = ("CodeScanningAnalysisDeletion",) +__all__ = ("CodeScanningAutofixCommitsResponse",) 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 03bb03a35..28c6b93fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0294.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0294.py @@ -10,7 +10,6 @@ from __future__ import annotations from datetime import datetime -from typing import Union from pydantic import Field @@ -18,36 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0059 import CodeScanningAnalysisTool -class CodeScanningCodeqlDatabase(GitHubModel): - """CodeQL Database +class CodeScanningAnalysis(GitHubModel): + """CodeScanningAnalysis""" - 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." + ref: str = Field( + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." ) - 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." + 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.", ) - 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." + 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." ) - commit_oid: Missing[Union[str, None]] = Field( + 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="The commit SHA of the repository at the time the CodeQL database was created.", + 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(CodeScanningCodeqlDatabase) +model_rebuild(CodeScanningAnalysis) -__all__ = ("CodeScanningCodeqlDatabase",) +__all__ = ("CodeScanningAnalysis",) 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 4561ffbb1..d589823d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0295.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0295.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -17,22 +16,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodeScanningVariantAnalysisRepository(GitHubModel): - """Repository Identifier +class CodeScanningAnalysisDeletion(GitHubModel): + """Analysis deletion - Repository Identifier + Successful deletion of a code scanning 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." + 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" ) - private: bool = Field(description="Whether the repository is private.") - stargazers_count: int = Field() - updated_at: Union[datetime, None] = Field() -model_rebuild(CodeScanningVariantAnalysisRepository) +model_rebuild(CodeScanningAnalysisDeletion) -__all__ = ("CodeScanningVariantAnalysisRepository",) +__all__ = ("CodeScanningAnalysisDeletion",) 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 42ebf4171..03bb03a35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0296.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0296.py @@ -9,24 +9,45 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser -from .group_0295 import CodeScanningVariantAnalysisRepository +class CodeScanningCodeqlDatabase(GitHubModel): + """CodeQL Database -class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): - """CodeScanningVariantAnalysisSkippedRepoGroup""" + A CodeQL database. + """ - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + id: int = Field(description="The ID of the CodeQL database.") + name: str = Field(description="The name of the CodeQL database.") + language: str = Field(description="The language of the CodeQL database.") + uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") + content_type: str = Field(description="The MIME type of the CodeQL database file.") + size: int = Field(description="The size of the CodeQL database file in bytes.") + created_at: datetime = Field( + description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + url: str = Field( + description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." ) - 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." + 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(CodeScanningVariantAnalysisSkippedRepoGroup) +model_rebuild(CodeScanningCodeqlDatabase) -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) +__all__ = ("CodeScanningCodeqlDatabase",) 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 1f9f37aa7..4561ffbb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0297.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0297.py @@ -10,69 +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 -from .group_0003 import SimpleUser -from .group_0061 import SimpleRepository -from .group_0298 import CodeScanningVariantAnalysisPropScannedRepositoriesItems -from .group_0299 import CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningVariantAnalysisRepository(GitHubModel): + """Repository Identifier -class CodeScanningVariantAnalysis(GitHubModel): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Repository Identifier """ - id: int = Field(description="The ID of the variant analysis.") - controller_repo: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack_url: str = Field(description="The download url for the query pack.") - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", - ) - status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() - actions_workflow_run_id: Missing[int] = Field( - default=UNSET, - description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", - ) - failure_reason: Missing[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] = Field( - default=UNSET, - description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", - ) - 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.", + 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(CodeScanningVariantAnalysis) +model_rebuild(CodeScanningVariantAnalysisRepository) -__all__ = ("CodeScanningVariantAnalysis",) +__all__ = ("CodeScanningVariantAnalysisRepository",) 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 6e0b0e0a8..c49ba8cb0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0298.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0298.py @@ -9,42 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0295 import CodeScanningVariantAnalysisRepository +from .group_0297 import CodeScanningVariantAnalysisRepository -class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - 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.", + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - 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.", + 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(CodeScanningVariantAnalysisPropScannedRepositoriesItems) +model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) 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 c906b1d1d..c1e99d1a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0299.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0299.py @@ -9,41 +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_0296 import CodeScanningVariantAnalysisSkippedRepoGroup +from .group_0003 import SimpleUser +from .group_0061 import SimpleRepository +from .group_0300 import CodeScanningVariantAnalysisPropScannedRepositoriesItems +from .group_0301 import CodeScanningVariantAnalysisPropSkippedRepositories -class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningVariantAnalysis(GitHubModel): + """Variant Analysis - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + A run of a CodeQL query against one or more repositories. """ - 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." + id: int = Field(description="The ID of the variant analysis.") + controller_repo: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack_url: str = Field(description="The download url for the query pack.") + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", + ) + status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() + actions_workflow_run_id: Missing[int] = Field( + default=UNSET, + description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", + ) + failure_reason: Missing[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] = Field( + default=UNSET, + description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", ) - 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." + 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(CodeScanningVariantAnalysisPropSkippedRepositories) -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) +model_rebuild(CodeScanningVariantAnalysis) -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositories", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", -) +__all__ = ("CodeScanningVariantAnalysis",) 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 f71b3d968..6a8ab5d37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0300.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0300.py @@ -17,46 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0061 import SimpleRepository +from .group_0297 import CodeScanningVariantAnalysisRepository -class CodeScanningVariantAnalysisRepoTask(GitHubModel): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." + 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." ) - 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( + artifact_size_in_bytes: Missing[int] = Field( default=UNSET, - description="The source location prefix to use. This is only available for successful analyses.", + description="The size of the artifact. This is only available for successful analyses.", ) - artifact_url: Missing[str] = Field( + failure_message: Missing[str] = Field( default=UNSET, - description="The URL of the artifact. This is only available for successful analyses.", + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", ) -model_rebuild(CodeScanningVariantAnalysisRepoTask) +model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) -__all__ = ("CodeScanningVariantAnalysisRepoTask",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) 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 3bf43d51a..dc7b95fef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0301.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0301.py @@ -9,65 +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_0298 import CodeScanningVariantAnalysisSkippedRepoGroup -class CodeScanningDefaultSetup(GitHubModel): - """CodeScanningDefaultSetup +class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositories - Configuration for code scanning default setup. + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - 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." - ) - threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( - default=UNSET, - description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", - ) - updated_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Timestamp of latest configuration update." + 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." ) - schedule: Missing[Union[None, Literal["weekly"]]] = Field( - default=UNSET, description="The frequency of the periodic 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." ) -model_rebuild(CodeScanningDefaultSetup) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) -__all__ = ("CodeScanningDefaultSetup",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositories", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", +) 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 05b0b46a3..f71b3d968 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0302.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0302.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,47 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0061 import SimpleRepository -class CodeScanningDefaultSetupUpdate(GitHubModel): - """CodeScanningDefaultSetupUpdate - Configuration for code scanning default setup. - """ +class CodeScanningVariantAnalysisRepoTask(GitHubModel): + """CodeScanningVariantAnalysisRepoTask""" - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, description="The desired state of code scanning default setup." + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." ) - runner_type: Missing[Literal["standard", "labeled"]] = Field( - default=UNSET, description="Runner type to be used." + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." ) - runner_label: Missing[Union[str, None]] = Field( + artifact_size_in_bytes: Missing[int] = Field( default=UNSET, - description="Runner label to be used if the runner type is labeled.", + description="The size of the artifact. This is only available for successful analyses.", ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + 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.", ) - threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( + database_commit_sha: Missing[str] = Field( default=UNSET, - description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", - ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] - ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") - - -model_rebuild(CodeScanningDefaultSetupUpdate) - -__all__ = ("CodeScanningDefaultSetupUpdate",) + 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(CodeScanningVariantAnalysisRepoTask) + +__all__ = ("CodeScanningVariantAnalysisRepoTask",) 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 4bb252bf7..3bf43d51a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0303.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0303.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,22 +19,55 @@ from githubkit.utils import UNSET -class CodeScanningDefaultSetupUpdateResponse(GitHubModel): - """CodeScanningDefaultSetupUpdateResponse +class CodeScanningDefaultSetup(GitHubModel): + """CodeScanningDefaultSetup - 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. + Configuration for code scanning default setup. """ - run_id: Missing[int] = Field( - default=UNSET, description="ID of the corresponding run." + 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." + ) + threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( + default=UNSET, + description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", + ) + updated_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Timestamp of latest configuration update." ) - run_url: Missing[str] = Field( - default=UNSET, description="URL of the corresponding run." + schedule: Missing[Union[None, Literal["weekly"]]] = Field( + default=UNSET, description="The frequency of the periodic analysis." ) -model_rebuild(CodeScanningDefaultSetupUpdateResponse) +model_rebuild(CodeScanningDefaultSetup) -__all__ = ("CodeScanningDefaultSetupUpdateResponse",) +__all__ = ("CodeScanningDefaultSetup",) 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 a7508c529..05b0b46a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0304.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0304.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,16 +18,46 @@ from githubkit.utils import UNSET -class CodeScanningSarifsReceipt(GitHubModel): - """CodeScanningSarifsReceipt""" +class CodeScanningDefaultSetupUpdate(GitHubModel): + """CodeScanningDefaultSetupUpdate + + Configuration for code scanning default setup. + """ - id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") - url: Missing[str] = Field( + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, description="The desired state of code scanning default setup." + ) + runner_type: Missing[Literal["standard", "labeled"]] = Field( + default=UNSET, description="Runner type to be used." + ) + runner_label: Missing[Union[str, None]] = Field( default=UNSET, - description="The REST API URL for checking the status of the upload.", + description="Runner label to be used if the runner type is labeled.", ) - - -model_rebuild(CodeScanningSarifsReceipt) - -__all__ = ("CodeScanningSarifsReceipt",) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." + ) + threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( + default=UNSET, + description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", + ) + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") + + +model_rebuild(CodeScanningDefaultSetupUpdate) + +__all__ = ("CodeScanningDefaultSetupUpdate",) 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 525bd5e50..4bb252bf7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0305.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0305.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,23 +16,22 @@ from githubkit.utils import UNSET -class CodeScanningSarifsStatus(GitHubModel): - """CodeScanningSarifsStatus""" +class CodeScanningDefaultSetupUpdateResponse(GitHubModel): + """CodeScanningDefaultSetupUpdateResponse - 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.", + 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: Missing[int] = Field( + default=UNSET, description="ID of the corresponding run." ) - errors: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="Any errors that ocurred during processing of the delivery.", + run_url: Missing[str] = Field( + default=UNSET, description="URL of the corresponding run." ) -model_rebuild(CodeScanningSarifsStatus) +model_rebuild(CodeScanningDefaultSetupUpdateResponse) -__all__ = ("CodeScanningSarifsStatus",) +__all__ = ("CodeScanningDefaultSetupUpdateResponse",) 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 8d95cb5d1..a7508c529 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0306.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0306.py @@ -9,43 +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_0063 import CodeSecurityConfiguration - -class CodeSecurityConfigurationForRepository(GitHubModel): - """CodeSecurityConfigurationForRepository +class CodeScanningSarifsReceipt(GitHubModel): + """CodeScanningSarifsReceipt""" - Code security configuration associated with a repository and attachment status - """ - - status: Missing[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] = Field( + id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") + url: Missing[str] = 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" + description="The REST API URL for checking the status of the upload.", ) -model_rebuild(CodeSecurityConfigurationForRepository) +model_rebuild(CodeScanningSarifsReceipt) -__all__ = ("CodeSecurityConfigurationForRepository",) +__all__ = ("CodeScanningSarifsReceipt",) 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 b356aafc8..525bd5e50 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 Union +from typing import Literal, Union from pydantic import Field @@ -18,38 +18,23 @@ from githubkit.utils import UNSET -class CodeownersErrors(GitHubModel): - """CODEOWNERS errors +class CodeScanningSarifsStatus(GitHubModel): + """CodeScanningSarifsStatus""" - A list of errors found in a repo's CODEOWNERS file - """ - - 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." + 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.", ) - kind: str = Field(description="The type of error.") - suggestion: Missing[Union[str, None]] = Field( + analyses_url: 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="The REST API URL for getting the analyses associated with the upload.", ) - 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)." + errors: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="Any errors that ocurred during processing of the delivery.", ) - path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CodeownersErrors) -model_rebuild(CodeownersErrorsPropErrorsItems) +model_rebuild(CodeScanningSarifsStatus) -__all__ = ( - "CodeownersErrors", - "CodeownersErrorsPropErrorsItems", -) +__all__ = ("CodeScanningSarifsStatus",) 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 de6f0cf08..8d95cb5d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0308.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0308.py @@ -9,22 +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_0063 import CodeSecurityConfiguration -class CodespacesPermissionsCheckForDevcontainer(GitHubModel): - """Codespaces Permissions Check +class CodeSecurityConfigurationForRepository(GitHubModel): + """CodeSecurityConfigurationForRepository - Permission check result for a given devcontainer config. + Code security configuration associated with a repository and attachment status """ - accepted: bool = Field( - description="Whether the user has accepted the permissions defined by the devcontainer config" + 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(CodespacesPermissionsCheckForDevcontainer) +model_rebuild(CodeSecurityConfigurationForRepository) -__all__ = ("CodespacesPermissionsCheckForDevcontainer",) +__all__ = ("CodeSecurityConfigurationForRepository",) 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 e6ed3e2b0..b356aafc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0309.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0309.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,34 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0176 import MinimalRepository +class CodeownersErrors(GitHubModel): + """CODEOWNERS errors -class RepositoryInvitation(GitHubModel): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. + A list of errors found in a repo's CODEOWNERS file """ - id: int = Field(description="Unique identifier of the repository invitation.") - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + 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." ) - 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." + 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.", ) - created_at: datetime = Field() - expired: Missing[bool] = Field( - default=UNSET, description="Whether or not the invitation has expired" + 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)." ) - url: str = Field(description="URL for the repository invitation") - html_url: str = Field() - node_id: str = Field() + path: str = Field(description="The path of the file where the error occured.") -model_rebuild(RepositoryInvitation) +model_rebuild(CodeownersErrors) +model_rebuild(CodeownersErrorsPropErrorsItems) -__all__ = ("RepositoryInvitation",) +__all__ = ( + "CodeownersErrors", + "CodeownersErrorsPropErrorsItems", +) 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 ba71473fc..de6f0cf08 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0310.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0310.py @@ -9,73 +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 RepositoryCollaboratorPermission(GitHubModel): - """Repository Collaborator Permission +class CodespacesPermissionsCheckForDevcontainer(GitHubModel): + """Codespaces Permissions Check - Repository Collaborator Permission + Permission check result for a given devcontainer config. """ - 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() + accepted: bool = Field( + description="Whether the user has accepted the permissions defined by the devcontainer config" + ) -model_rebuild(RepositoryCollaboratorPermission) -model_rebuild(Collaborator) -model_rebuild(CollaboratorPropPermissions) +model_rebuild(CodespacesPermissionsCheckForDevcontainer) -__all__ = ( - "Collaborator", - "CollaboratorPropPermissions", - "RepositoryCollaboratorPermission", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainer",) 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 234091240..681094a53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0311.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0311.py @@ -19,59 +19,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0159 import ReactionRollup +from .group_0178 import MinimalRepository -class CommitComment(GitHubModel): - """Commit Comment +class RepositoryInvitation(GitHubModel): + """Repository Invitation - Commit Comment + Repository invitations let you manage who you collaborate with. """ - 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() + 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() - 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.", + expired: Missing[bool] = Field( + default=UNSET, description="Whether or not the invitation has expired" ) - 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) + url: str = Field(description="URL for the repository invitation") + html_url: str = Field() + node_id: str = Field() -model_rebuild(CommitComment) -model_rebuild(TimelineCommitCommentedEvent) +model_rebuild(RepositoryInvitation) -__all__ = ( - "CommitComment", - "TimelineCommitCommentedEvent", -) +__all__ = ("RepositoryInvitation",) 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 1899117e7..ba71473fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0312.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0312.py @@ -9,33 +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 BranchShort(GitHubModel): - """Branch Short +class RepositoryCollaboratorPermission(GitHubModel): + """Repository Collaborator Permission - Branch Short + Repository Collaborator Permission """ - name: str = Field() - commit: BranchShortPropCommit = Field() - protected: bool = Field() - + permission: str = Field() + role_name: str = Field() + user: Union[None, Collaborator] = Field() -class BranchShortPropCommit(GitHubModel): - """BranchShortPropCommit""" - sha: str = Field() - url: str = Field() +class Collaborator(GitHubModel): + """Collaborator + Collaborator + """ -model_rebuild(BranchShort) -model_rebuild(BranchShortPropCommit) + 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__ = ( - "BranchShort", - "BranchShortPropCommit", + "Collaborator", + "CollaboratorPropPermissions", + "RepositoryCollaboratorPermission", ) 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 b537858f8..b0aefd420 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0313.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0313.py @@ -9,20 +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_0160 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") -class Link(GitHubModel): - """Link +class TimelineCommitCommentedEvent(GitHubModel): + """Timeline Commit Commented Event - Hypermedia Link + Timeline Commit Commented Event """ - href: str = Field() + 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(Link) +model_rebuild(CommitComment) +model_rebuild(TimelineCommitCommentedEvent) -__all__ = ("Link",) +__all__ = ( + "CommitComment", + "TimelineCommitCommentedEvent", +) 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 48491e4bb..1899117e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0314.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0314.py @@ -9,33 +9,33 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser - -class AutoMerge(GitHubModel): - """Auto merge +class BranchShort(GitHubModel): + """Branch Short - The status of auto merging a pull request. + Branch Short """ - 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." - ) + name: str = Field() + commit: BranchShortPropCommit = Field() + protected: bool = Field() + + +class BranchShortPropCommit(GitHubModel): + """BranchShortPropCommit""" + + sha: str = Field() + url: str = Field() -model_rebuild(AutoMerge) +model_rebuild(BranchShort) +model_rebuild(BranchShortPropCommit) -__all__ = ("AutoMerge",) +__all__ = ( + "BranchShort", + "BranchShortPropCommit", +) 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 607c435a6..b537858f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0315.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0315.py @@ -9,100 +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 - -from .group_0003 import SimpleUser -from .group_0070 import Team -from .group_0157 import Milestone -from .group_0314 import AutoMerge -from .group_0316 import PullRequestSimplePropBase, PullRequestSimplePropHead -from .group_0317 import PullRequestSimplePropLinks -class PullRequestSimple(GitHubModel): - """Pull Request Simple +class Link(GitHubModel): + """Link - Pull Request Simple + Hypermedia Link """ - 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.", - ) - - -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() + href: str = Field() -model_rebuild(PullRequestSimple) -model_rebuild(PullRequestSimplePropLabelsItems) +model_rebuild(Link) -__all__ = ( - "PullRequestSimple", - "PullRequestSimplePropLabelsItems", -) +__all__ = ("Link",) 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 f7a7c23e6..48491e4bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0316.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0316.py @@ -9,40 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from .group_0003 import SimpleUser -from .group_0020 import Repository -class PullRequestSimplePropHead(GitHubModel): - """PullRequestSimplePropHead""" +class AutoMerge(GitHubModel): + """Auto merge - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() + The status of auto merging a pull request. + """ + 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." + ) -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(AutoMerge) - -model_rebuild(PullRequestSimplePropHead) -model_rebuild(PullRequestSimplePropBase) - -__all__ = ( - "PullRequestSimplePropBase", - "PullRequestSimplePropHead", -) +__all__ = ("AutoMerge",) 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 ac2d1dd8b..adf6fb501 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0317.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0317.py @@ -9,26 +9,100 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0071 import Team +from .group_0158 import Milestone +from .group_0316 import AutoMerge +from .group_0318 import PullRequestSimplePropBase, PullRequestSimplePropHead +from .group_0319 import PullRequestSimplePropLinks + + +class PullRequestSimple(GitHubModel): + """Pull Request Simple + + Pull Request Simple + """ -from .group_0313 import Link + 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.", + ) -class PullRequestSimplePropLinks(GitHubModel): - """PullRequestSimplePropLinks""" +class PullRequestSimplePropLabelsItems(GitHubModel): + """PullRequestSimplePropLabelsItems""" - 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: 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(PullRequestSimplePropLinks) +model_rebuild(PullRequestSimple) +model_rebuild(PullRequestSimplePropLabelsItems) -__all__ = ("PullRequestSimplePropLinks",) +__all__ = ( + "PullRequestSimple", + "PullRequestSimplePropLabelsItems", +) 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 7d4bfce04..f7a7c23e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0318.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0318.py @@ -9,55 +9,40 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0176 import MinimalRepository +from .group_0003 import SimpleUser +from .group_0020 import Repository -class CombinedCommitStatus(GitHubModel): - """Combined Commit Status +class PullRequestSimplePropHead(GitHubModel): + """PullRequestSimplePropHead""" - Combined Commit Status - """ - - state: str = Field() - statuses: list[SimpleCommitStatus] = Field() + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() sha: str = Field() - total_count: int = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - commit_url: str = Field() - url: str = Field() + user: Union[None, SimpleUser] = Field() -class SimpleCommitStatus(GitHubModel): - """Simple Commit Status""" +class PullRequestSimplePropBase(GitHubModel): + """PullRequestSimplePropBase""" - 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() + 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(CombinedCommitStatus) -model_rebuild(SimpleCommitStatus) +model_rebuild(PullRequestSimplePropHead) +model_rebuild(PullRequestSimplePropBase) __all__ = ( - "CombinedCommitStatus", - "SimpleCommitStatus", + "PullRequestSimplePropBase", + "PullRequestSimplePropHead", ) 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 d233ecff0..163adb074 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0319.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0319.py @@ -9,34 +9,26 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser - +from .group_0315 import Link -class Status(GitHubModel): - """Status - The status of a commit. - """ +class PullRequestSimplePropLinks(GitHubModel): + """PullRequestSimplePropLinks""" - 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() + 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(Status) +model_rebuild(PullRequestSimplePropLinks) -__all__ = ("Status",) +__all__ = ("PullRequestSimplePropLinks",) 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 3bfe9c7d0..d73634a68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0320.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0320.py @@ -18,49 +18,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0019 import LicenseSimple -from .group_0227 import CodeOfConductSimple +from .group_0178 import MinimalRepository -class CommunityProfilePropFiles(GitHubModel): - """CommunityProfilePropFiles""" +class CombinedCommitStatus(GitHubModel): + """Combined Commit Status - 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""" + Combined Commit Status + """ + 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() - html_url: str = Field() -class CommunityProfile(GitHubModel): - """Community Profile +class SimpleCommitStatus(GitHubModel): + """Simple Commit Status""" - Community Profile - """ - - health_percentage: int = Field() description: Union[str, None] = Field() - documentation: Union[str, None] = Field() - files: CommunityProfilePropFiles = Field() - updated_at: Union[datetime, None] = Field() - content_reports_enabled: Missing[bool] = Field(default=UNSET) + 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(CommunityProfilePropFiles) -model_rebuild(CommunityHealthFile) -model_rebuild(CommunityProfile) +model_rebuild(CombinedCommitStatus) +model_rebuild(SimpleCommitStatus) __all__ = ( - "CommunityHealthFile", - "CommunityProfile", - "CommunityProfilePropFiles", + "CombinedCommitStatus", + "SimpleCommitStatus", ) 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 92ca7b43f..d233ecff0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0321.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0321.py @@ -9,39 +9,34 @@ 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_0275 import DiffEntry -from .group_0276 import Commit +from .group_0003 import SimpleUser -class CommitComparison(GitHubModel): - """Commit Comparison +class Status(GitHubModel): + """Status - Commit Comparison + The status of a commit. """ 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(CommitComparison) - -__all__ = ("CommitComparison",) + 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) + +__all__ = ("Status",) 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 95b9b271c..706813437 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0322.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0322.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -17,67 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0019 import LicenseSimple +from .group_0229 import CodeOfConductSimple -class ContentTree(GitHubModel): - """Content Tree - - Content Tree - """ - - 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) - encoding: Missing[str] = Field(default=UNSET) - links: ContentTreePropLinks = Field(alias="_links") +class CommunityProfilePropFiles(GitHubModel): + """CommunityProfilePropFiles""" -class ContentTreePropLinks(GitHubModel): - """ContentTreePropLinks""" + 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() - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") +class CommunityHealthFile(GitHubModel): + """Community Health File""" -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") + html_url: str = Field() + +class CommunityProfile(GitHubModel): + """Community Profile -class ContentTreePropEntriesItemsPropLinks(GitHubModel): - """ContentTreePropEntriesItemsPropLinks""" + 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(ContentTree) -model_rebuild(ContentTreePropLinks) -model_rebuild(ContentTreePropEntriesItems) -model_rebuild(ContentTreePropEntriesItemsPropLinks) +model_rebuild(CommunityProfilePropFiles) +model_rebuild(CommunityHealthFile) +model_rebuild(CommunityProfile) __all__ = ( - "ContentTree", - "ContentTreePropEntriesItems", - "ContentTreePropEntriesItemsPropLinks", - "ContentTreePropLinks", + "CommunityHealthFile", + "CommunityProfile", + "CommunityProfilePropFiles", ) 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 b3b3e9366..325ed0b78 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0323.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0323.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,35 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0277 import DiffEntry +from .group_0278 import Commit -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""" +class CommitComparison(GitHubModel): + """Commit Comparison - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + Commit Comparison + """ - -model_rebuild(ContentDirectoryItems) -model_rebuild(ContentDirectoryItemsPropLinks) - -__all__ = ( - "ContentDirectoryItems", - "ContentDirectoryItemsPropLinks", -) + 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(CommitComparison) + +__all__ = ("CommitComparison",) 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 15cd134fc..95b9b271c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0324.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0324.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,40 +18,66 @@ from githubkit.utils import UNSET -class ContentFile(GitHubModel): - """Content File +class ContentTree(GitHubModel): + """Content Tree - Content File + Content Tree """ - type: Literal["file"] = Field() - encoding: str = Field() + type: str = Field() size: int = Field() name: str = Field() path: str = Field() - content: str = Field() sha: str = Field() + content: Missing[str] = Field(default=UNSET) url: str = Field() git_url: Union[str, None] = Field() html_url: Union[str, None] = Field() download_url: Union[str, None] = Field() - links: ContentFilePropLinks = Field(alias="_links") - target: Missing[str] = Field(default=UNSET) - submodule_git_url: Missing[str] = Field(default=UNSET) + entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) + encoding: Missing[str] = Field(default=UNSET) + links: ContentTreePropLinks = Field(alias="_links") -class ContentFilePropLinks(GitHubModel): - """ContentFilePropLinks""" +class ContentTreePropLinks(GitHubModel): + """ContentTreePropLinks""" git: Union[str, None] = Field() html: Union[str, None] = Field() self_: str = Field(alias="self") -model_rebuild(ContentFile) -model_rebuild(ContentFilePropLinks) +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__ = ( - "ContentFile", - "ContentFilePropLinks", + "ContentTree", + "ContentTreePropEntriesItems", + "ContentTreePropEntriesItemsPropLinks", + "ContentTreePropLinks", ) 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 bc90348f6..b3b3e9366 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0325.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0325.py @@ -14,39 +14,38 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ContentSymlink(GitHubModel): - """Symlink Content +class ContentDirectoryItems(GitHubModel): + """ContentDirectoryItems""" - An object describing a symlink - """ - - type: Literal["symlink"] = Field() - target: str = Field() + 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: ContentSymlinkPropLinks = Field(alias="_links") + links: ContentDirectoryItemsPropLinks = Field(alias="_links") -class ContentSymlinkPropLinks(GitHubModel): - """ContentSymlinkPropLinks""" +class ContentDirectoryItemsPropLinks(GitHubModel): + """ContentDirectoryItemsPropLinks""" git: Union[str, None] = Field() html: Union[str, None] = Field() self_: str = Field(alias="self") -model_rebuild(ContentSymlink) -model_rebuild(ContentSymlinkPropLinks) +model_rebuild(ContentDirectoryItems) +model_rebuild(ContentDirectoryItemsPropLinks) __all__ = ( - "ContentSymlink", - "ContentSymlinkPropLinks", + "ContentDirectoryItems", + "ContentDirectoryItemsPropLinks", ) 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 99580ae80..15cd134fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0326.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0326.py @@ -14,39 +14,44 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ContentSubmodule(GitHubModel): - """Submodule Content +class ContentFile(GitHubModel): + """Content File - An object describing a submodule + Content File """ - type: Literal["submodule"] = Field() - submodule_git_url: str = Field() + 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: ContentSubmodulePropLinks = Field(alias="_links") + links: ContentFilePropLinks = Field(alias="_links") + target: Missing[str] = Field(default=UNSET) + submodule_git_url: Missing[str] = Field(default=UNSET) -class ContentSubmodulePropLinks(GitHubModel): - """ContentSubmodulePropLinks""" +class ContentFilePropLinks(GitHubModel): + """ContentFilePropLinks""" git: Union[str, None] = Field() html: Union[str, None] = Field() self_: str = Field(alias="self") -model_rebuild(ContentSubmodule) -model_rebuild(ContentSubmodulePropLinks) +model_rebuild(ContentFile) +model_rebuild(ContentFilePropLinks) __all__ = ( - "ContentSubmodule", - "ContentSubmodulePropLinks", + "ContentFile", + "ContentFilePropLinks", ) 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 446b6612c..bc90348f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0327.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0327.py @@ -9,124 +9,44 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class FileCommit(GitHubModel): - """File Commit +class ContentSymlink(GitHubModel): + """Symlink Content - File Commit + An object describing a symlink """ - content: Union[FileCommitPropContent, None] = Field() - commit: FileCommitPropCommit = Field() + 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 FileCommitPropContent(GitHubModel): - """FileCommitPropContent""" +class ContentSymlinkPropLinks(GitHubModel): + """ContentSymlinkPropLinks""" - 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" - ) + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -class FileCommitPropContentPropLinks(GitHubModel): - """FileCommitPropContentPropLinks""" - - self_: Missing[str] = Field(default=UNSET, alias="self") - git: Missing[str] = Field(default=UNSET) - html: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommit(GitHubModel): - """FileCommitPropCommit""" - - sha: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) - committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) - parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) - verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) - - -class FileCommitPropCommitPropAuthor(GitHubModel): - """FileCommitPropCommitPropAuthor""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropCommitter(GitHubModel): - """FileCommitPropCommitPropCommitter""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropTree(GitHubModel): - """FileCommitPropCommitPropTree""" - - url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropParentsItems(GitHubModel): - """FileCommitPropCommitPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropVerification(GitHubModel): - """FileCommitPropCommitPropVerification""" - - verified: Missing[bool] = Field(default=UNSET) - reason: Missing[str] = Field(default=UNSET) - signature: Missing[Union[str, None]] = Field(default=UNSET) - payload: Missing[Union[str, None]] = Field(default=UNSET) - verified_at: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(FileCommit) -model_rebuild(FileCommitPropContent) -model_rebuild(FileCommitPropContentPropLinks) -model_rebuild(FileCommitPropCommit) -model_rebuild(FileCommitPropCommitPropAuthor) -model_rebuild(FileCommitPropCommitPropCommitter) -model_rebuild(FileCommitPropCommitPropTree) -model_rebuild(FileCommitPropCommitPropParentsItems) -model_rebuild(FileCommitPropCommitPropVerification) +model_rebuild(ContentSymlink) +model_rebuild(ContentSymlinkPropLinks) __all__ = ( - "FileCommit", - "FileCommitPropCommit", - "FileCommitPropCommitPropAuthor", - "FileCommitPropCommitPropCommitter", - "FileCommitPropCommitPropParentsItems", - "FileCommitPropCommitPropTree", - "FileCommitPropCommitPropVerification", - "FileCommitPropContent", - "FileCommitPropContentPropLinks", + "ContentSymlink", + "ContentSymlinkPropLinks", ) 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 97c97b542..99580ae80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0328.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0328.py @@ -9,67 +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 RepositoryRuleViolationError(GitHubModel): - """RepositoryRuleViolationError +class ContentSubmodule(GitHubModel): + """Submodule Content - Repository rule violation was detected + An object describing a submodule """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) - - -class RepositoryRuleViolationErrorPropMetadata(GitHubModel): - """RepositoryRuleViolationErrorPropMetadata""" + type: Literal["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") - secret_scanning: Missing[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanning - ] = Field(default=UNSET) +class ContentSubmodulePropLinks(GitHubModel): + """ContentSubmodulePropLinks""" -class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") - bypass_placeholders: Missing[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems - ] - ] = Field(default=UNSET) - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( - GitHubModel -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ - - placeholder_id: Missing[str] = Field( - default=UNSET, - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", - ) - token_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(RepositoryRuleViolationError) -model_rebuild(RepositoryRuleViolationErrorPropMetadata) -model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) -model_rebuild( - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems -) +model_rebuild(ContentSubmodule) +model_rebuild(ContentSubmodulePropLinks) __all__ = ( - "RepositoryRuleViolationError", - "RepositoryRuleViolationErrorPropMetadata", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", + "ContentSubmodule", + "ContentSubmodulePropLinks", ) 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 fcc5e341f..446b6612c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0329.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0329.py @@ -18,36 +18,115 @@ from githubkit.utils import UNSET -class Contributor(GitHubModel): - """Contributor +class FileCommit(GitHubModel): + """File Commit - Contributor + File Commit """ - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) + 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) - 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() + 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) - user_view_type: 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(Contributor) +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__ = ("Contributor",) +__all__ = ( + "FileCommit", + "FileCommitPropCommit", + "FileCommitPropCommitPropAuthor", + "FileCommitPropCommitPropCommitter", + "FileCommitPropCommitPropParentsItems", + "FileCommitPropCommitPropTree", + "FileCommitPropCommitPropVerification", + "FileCommitPropContent", + "FileCommitPropContentPropLinks", +) 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 2ad2d516f..97c97b542 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0330.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0330.py @@ -9,70 +9,67 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0074 import DependabotAlertSecurityVulnerability -from .group_0075 import DependabotAlertSecurityAdvisory -from .group_0331 import DependabotAlertPropDependency +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 DependabotAlert(GitHubModel): - """DependabotAlert - A Dependabot alert. +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( + GitHubModel +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items """ - 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( + placeholder_id: Missing[str] = Field( default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + 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(DependabotAlert) +model_rebuild(RepositoryRuleViolationError) +model_rebuild(RepositoryRuleViolationErrorPropMetadata) +model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) +model_rebuild( + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems +) -__all__ = ("DependabotAlert",) +__all__ = ( + "RepositoryRuleViolationError", + "RepositoryRuleViolationErrorPropMetadata", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", +) 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 1be471361..fcc5e341f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0331.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0331.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,33 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0073 import DependabotAlertPackage +class Contributor(GitHubModel): + """Contributor -class DependabotAlertPropDependency(GitHubModel): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + Contributor """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." - ) - manifest_path: Missing[str] = Field( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", - ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." - ) - relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = ( - Field( - default=UNSET, - description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', - ) - ) - - -model_rebuild(DependabotAlertPropDependency) - -__all__ = ("DependabotAlertPropDependency",) + 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_0332.py b/githubkit/versions/ghec_v2022_11_28/models/group_0332.py index 9f05df69c..e09e0b380 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0332.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0332.py @@ -9,43 +9,70 @@ from __future__ import annotations -from typing import Literal, 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_0075 import DependabotAlertSecurityVulnerability +from .group_0076 import DependabotAlertSecurityAdvisory +from .group_0333 import DependabotAlertPropDependency -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 DependabotAlert(GitHubModel): + """DependabotAlert -class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" + A Dependabot alert. + """ - severity: str = Field() - advisory_ghsa_id: str = Field() - advisory_summary: str = Field() - advisory_url: str = 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: 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(DependencyGraphDiffItems) -model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) +model_rebuild(DependabotAlert) -__all__ = ( - "DependencyGraphDiffItems", - "DependencyGraphDiffItemsPropVulnerabilitiesItems", -) +__all__ = ("DependabotAlert",) 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 b7506354d..e1da173be 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0333.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0333.py @@ -9,160 +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_0074 import DependabotAlertPackage -class DependencyGraphSpdxSbom(GitHubModel): - """Dependency Graph SPDX SBOM - - A schema for the SPDX JSON format returned by the Dependency Graph. - """ - - 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 DependabotAlertPropDependency(GitHubModel): + """DependabotAlertPropDependency -class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + Details for the vulnerable dependency. + """ - 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.", + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - license_declared: Missing[str] = Field( + manifest_path: 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.", + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - reference_locator: str = Field( - alias="referenceLocator", - description="A locator for the particular external resource this reference refers to.", + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) - reference_type: str = Field( - alias="referenceType", - description="The category of reference to an external resource this reference refers to.", + relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = ( + Field( + default=UNSET, + description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', + ) ) -model_rebuild(DependencyGraphSpdxSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) +model_rebuild(DependabotAlertPropDependency) -__all__ = ( - "DependencyGraphSpdxSbom", - "DependencyGraphSpdxSbomPropSbom", - "DependencyGraphSpdxSbomPropSbomPropCreationInfo", - "DependencyGraphSpdxSbomPropSbomPropPackagesItems", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", -) +__all__ = ("DependabotAlertPropDependency",) 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 ffac1fb50..9f05df69c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0334.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0334.py @@ -9,17 +9,43 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Literal, Union +from pydantic import Field -class Metadata(ExtraGitHubModel): - """metadata +from githubkit.compat import GitHubModel, model_rebuild - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class DependencyGraphDiffItems(GitHubModel): + """DependencyGraphDiffItems""" -model_rebuild(Metadata) + 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." + ) -__all__ = ("Metadata",) + +class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" + + severity: str = Field() + advisory_ghsa_id: str = Field() + advisory_summary: str = Field() + advisory_url: str = Field() + + +model_rebuild(DependencyGraphDiffItems) +model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) + +__all__ = ( + "DependencyGraphDiffItems", + "DependencyGraphDiffItemsPropVulnerabilitiesItems", +) 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 7ee8b3b72..b7506354d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0335.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0335.py @@ -9,44 +9,160 @@ from __future__ import annotations -from 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_0334 import Metadata + +class DependencyGraphSpdxSbom(GitHubModel): + """Dependency Graph SPDX SBOM + + A schema for the SPDX JSON format returned by the Dependency Graph. + """ + + 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 Dependency(GitHubModel): - """Dependency""" +class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - package_url: Missing[str] = Field( - pattern="^pkg", + spdxid: Missing[str] = Field( default=UNSET, - description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", + alias="SPDXID", + description="A unique SPDX identifier for the package.", ) - metadata: Missing[Metadata] = Field( + name: Missing[str] = Field(default=UNSET, description="The name of the package.") + version_info: Missing[str] = Field( default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + alias="versionInfo", + description="The version of the package. If the package does not have an exact version specified,\na version range is given.", ) - relationship: Missing[Literal["direct", "indirect"]] = Field( + download_location: Missing[str] = Field( default=UNSET, - description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + alias="downloadLocation", + description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", ) - scope: Missing[Literal["runtime", "development"]] = Field( + files_analyzed: Missing[bool] = 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.", + alias="filesAnalyzed", + description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", ) - dependencies: Missing[list[str]] = Field( + license_concluded: Missing[str] = Field( default=UNSET, - description="Array of package-url (PURLs) of direct child dependencies.", + 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(Dependency) +model_rebuild(DependencyGraphSpdxSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) -__all__ = ("Dependency",) +__all__ = ( + "DependencyGraphSpdxSbom", + "DependencyGraphSpdxSbomPropSbom", + "DependencyGraphSpdxSbomPropSbomPropCreationInfo", + "DependencyGraphSpdxSbomPropSbomPropPackagesItems", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", +) 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 dce04e377..ffac1fb50 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0336.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0336.py @@ -9,52 +9,17 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0334 import Metadata +class Metadata(ExtraGitHubModel): + """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""" - - 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. + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. """ -model_rebuild(Manifest) -model_rebuild(ManifestPropFile) -model_rebuild(ManifestPropResolved) +model_rebuild(Metadata) -__all__ = ( - "Manifest", - "ManifestPropFile", - "ManifestPropResolved", -) +__all__ = ("Metadata",) 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 8c9293638..55bda04fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0337.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0337.py @@ -9,88 +9,44 @@ from __future__ import annotations -from datetime import datetime +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_0334 import Metadata +from .group_0336 import Metadata -class Snapshot(GitHubModel): - """snapshot +class Dependency(GitHubModel): + """Dependency""" - 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." + 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.", ) - manifests: Missing[SnapshotPropManifests] = Field( + relationship: Missing[Literal["direct", "indirect"]] = 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.", + description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another 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." + 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.", ) - 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(Dependency) -__all__ = ( - "Snapshot", - "SnapshotPropDetector", - "SnapshotPropJob", - "SnapshotPropManifests", -) +__all__ = ("Dependency",) 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 38a74a74a..65f8bb63c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0338.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0338.py @@ -9,58 +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.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration - +from .group_0336 import Metadata -class DeploymentStatus(GitHubModel): - """Deployment Status - The status of a deployment. - """ +class Manifest(GitHubModel): + """Manifest""" - 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( + name: str = Field(description="The name of the manifest.") + file: Missing[ManifestPropFile] = Field(default=UNSET) + metadata: Missing[Metadata] = Field( default=UNSET, - description="The environment of the deployment that the status is for.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - target_url: str = Field( - default="", - description="Closing down notice: the URL to associate with this status.", + resolved: Missing[ManifestPropResolved] = Field( + default=UNSET, description="A collection of resolved package dependencies." ) - 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 + + +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.", ) -model_rebuild(DeploymentStatus) +class ManifestPropResolved(ExtraGitHubModel): + """ManifestPropResolved + + A collection of resolved package dependencies. + """ + + +model_rebuild(Manifest) +model_rebuild(ManifestPropFile) +model_rebuild(ManifestPropResolved) -__all__ = ("DeploymentStatus",) +__all__ = ( + "Manifest", + "ManifestPropFile", + "ManifestPropResolved", +) 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 2969bea8b..ed8ab5087 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0339.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0339.py @@ -9,26 +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_0336 import Metadata -class DeploymentBranchPolicySettings(GitHubModel): - """DeploymentBranchPolicySettings +class Snapshot(GitHubModel): + """snapshot - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. + Create a new snapshot of a repository's dependencies. """ - 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`." + 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." ) - 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`." + 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(DeploymentBranchPolicySettings) +model_rebuild(Snapshot) +model_rebuild(SnapshotPropJob) +model_rebuild(SnapshotPropDetector) +model_rebuild(SnapshotPropManifests) -__all__ = ("DeploymentBranchPolicySettings",) +__all__ = ( + "Snapshot", + "SnapshotPropDetector", + "SnapshotPropJob", + "SnapshotPropManifests", +) 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 44a7e2062..38a74a74a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0340.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0340.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,84 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0339 import DeploymentBranchPolicySettings -from .group_0341 import EnvironmentPropProtectionRulesItemsAnyof1 +from .group_0003 import SimpleUser +from .group_0010 import Integration -class Environment(GitHubModel): - """Environment +class DeploymentStatus(GitHubModel): + """Deployment Status - Details of a deployment environment + The status of a deployment. """ - 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." + 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." ) - protection_rules: Missing[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0, - EnvironmentPropProtectionRulesItemsAnyof1, - EnvironmentPropProtectionRulesItemsAnyof2, - ] - ] - ] = Field( + environment: Missing[str] = Field( default=UNSET, - description="Built-in deployment protection rules for the environment.", + description="The environment of the deployment that the status is 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`.", - ) + target_url: str = Field( + default="", + description="Closing down notice: the URL to associate with this status.", ) - - -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).", + 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." ) - - -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" + 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 ) - environments: Missing[list[Environment]] = Field(default=UNSET) -model_rebuild(Environment) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) -model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) +model_rebuild(DeploymentStatus) -__all__ = ( - "Environment", - "EnvironmentPropProtectionRulesItemsAnyof0", - "EnvironmentPropProtectionRulesItemsAnyof2", - "ReposOwnerRepoEnvironmentsGetResponse200", -) +__all__ = ("DeploymentStatus",) 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 e221e01d3..2969bea8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0341.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0341.py @@ -12,30 +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_0342 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems +class DeploymentBranchPolicySettings(GitHubModel): + """DeploymentBranchPolicySettings -class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1""" + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ - 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.", + protected_branches: bool = Field( + description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." ) - type: 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.", + 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(EnvironmentPropProtectionRulesItemsAnyof1) +model_rebuild(DeploymentBranchPolicySettings) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) +__all__ = ("DeploymentBranchPolicySettings",) 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 c376f16c6..0ed17ddd4 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,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,19 +18,84 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0070 import Team +from .group_0341 import DeploymentBranchPolicySettings +from .group_0343 import EnvironmentPropProtectionRulesItemsAnyof1 -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class Environment(GitHubModel): + """Environment - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + Details of a deployment environment + """ + + id: int = Field(description="The id of the environment.") + node_id: str = Field() + name: str = Field(description="The name of the environment.") + url: str = Field() + html_url: str = Field() + created_at: datetime = Field( + description="The time that the environment was created, in ISO 8601 format." + ) + updated_at: datetime = Field( + description="The time that the environment was last updated, in ISO 8601 format." + ) + protection_rules: Missing[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0, + EnvironmentPropProtectionRulesItemsAnyof1, + EnvironmentPropProtectionRulesItemsAnyof2, + ] + ] + ] = Field( + default=UNSET, + description="Built-in deployment protection rules for the environment.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + wait_timer: Missing[int] = Field( + default=UNSET, + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + ) + + +class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + + +class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, description="The number of environments in this repository" ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) + environments: Missing[list[Environment]] = Field(default=UNSET) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) +model_rebuild(Environment) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) +model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) +__all__ = ( + "Environment", + "EnvironmentPropProtectionRulesItemsAnyof0", + "EnvironmentPropProtectionRulesItemsAnyof2", + "ReposOwnerRepoEnvironmentsGetResponse200", +) 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 2e5fcc0db..24dfba6ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0343.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0343.py @@ -9,26 +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_0344 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems + -class DeploymentBranchPolicyNamePatternWithType(GitHubModel): - """Deployment branch and tag policy name pattern""" +class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1""" - 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)." + 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: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag" + 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(DeploymentBranchPolicyNamePatternWithType) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) -__all__ = ("DeploymentBranchPolicyNamePatternWithType",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) 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 11e46307f..33a4e7bd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0344.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0344.py @@ -9,19 +9,27 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0071 import Team -class DeploymentBranchPolicyNamePattern(GitHubModel): - """Deployment branch policy name pattern""" +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - 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)." + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(DeploymentBranchPolicyNamePattern) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) -__all__ = ("DeploymentBranchPolicyNamePattern",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) 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 ec57f6950..2e5fcc0db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0345.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0345.py @@ -9,31 +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 CustomDeploymentRuleApp(GitHubModel): - """Custom deployment protection rule app - - A GitHub App that is providing a custom deployment protection rule. - """ +class DeploymentBranchPolicyNamePatternWithType(GitHubModel): + """Deployment branch and tag policy name pattern""" - 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." + 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)." ) - node_id: str = Field( - description="The node ID for the deployment protection rule integration." + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag" ) -model_rebuild(CustomDeploymentRuleApp) +model_rebuild(DeploymentBranchPolicyNamePatternWithType) -__all__ = ("CustomDeploymentRuleApp",) +__all__ = ("DeploymentBranchPolicyNamePatternWithType",) 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 c3dad5da5..11e46307f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0346.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0346.py @@ -12,55 +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_0345 import CustomDeploymentRuleApp +class DeploymentBranchPolicyNamePattern(GitHubModel): + """Deployment branch policy name pattern""" -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'} - """ - - 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 + name: str = Field( + description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." ) -model_rebuild(DeploymentProtectionRule) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -) +model_rebuild(DeploymentBranchPolicyNamePattern) -__all__ = ( - "DeploymentProtectionRule", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", -) +__all__ = ("DeploymentBranchPolicyNamePattern",) 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 23227f8fe..ec57f6950 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0347.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0347.py @@ -14,16 +14,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ShortBlob(GitHubModel): - """Short Blob +class CustomDeploymentRuleApp(GitHubModel): + """Custom deployment protection rule app - Short Blob + A GitHub App that is providing a custom deployment protection rule. """ - url: str = Field() - sha: 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(ShortBlob) +model_rebuild(CustomDeploymentRuleApp) -__all__ = ("ShortBlob",) +__all__ = ("CustomDeploymentRuleApp",) 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 048d8d3ff..859a40141 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0348.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0348.py @@ -9,30 +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_0347 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 Blob(GitHubModel): - """Blob +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - Blob + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} """ - 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) + 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(Blob) +model_rebuild(DeploymentProtectionRule) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +) -__all__ = ("Blob",) +__all__ = ( + "DeploymentProtectionRule", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", +) 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 36b9120b4..23227f8fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0349.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0349.py @@ -9,95 +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 -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") - +class ShortBlob(GitHubModel): + """Short Blob -class GitCommitPropCommitter(GitHubModel): - """GitCommitPropCommitter - - Identifying information for the git-user + Short Blob """ - 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() + sha: str = Field() -class GitCommitPropParentsItems(GitHubModel): - """GitCommitPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class GitCommitPropVerification(GitHubModel): - """GitCommitPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Union[str, None] = Field() - - -model_rebuild(GitCommit) -model_rebuild(GitCommitPropAuthor) -model_rebuild(GitCommitPropCommitter) -model_rebuild(GitCommitPropTree) -model_rebuild(GitCommitPropParentsItems) -model_rebuild(GitCommitPropVerification) +model_rebuild(ShortBlob) -__all__ = ( - "GitCommit", - "GitCommitPropAuthor", - "GitCommitPropCommitter", - "GitCommitPropParentsItems", - "GitCommitPropTree", - "GitCommitPropVerification", -) +__all__ = ("ShortBlob",) 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 ee31507d1..048d8d3ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0350.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0350.py @@ -9,35 +9,30 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class GitRef(GitHubModel): - """Git Reference +class Blob(GitHubModel): + """Blob - Git references within a repository + Blob """ - ref: str = Field() - node_id: str = Field() - url: str = Field() - object_: GitRefPropObject = Field(alias="object") - - -class GitRefPropObject(GitHubModel): - """GitRefPropObject""" - - type: str = Field() - sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") + 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) -model_rebuild(GitRef) -model_rebuild(GitRefPropObject) +model_rebuild(Blob) -__all__ = ( - "GitRef", - "GitRefPropObject", -) +__all__ = ("Blob",) 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 03a5be07c..36b9120b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0351.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0351.py @@ -9,53 +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_0274 import Verification -class GitTag(GitHubModel): - """Git Tag +class GitCommit(GitHubModel): + """Git Commit - Metadata for a Git tag + Low-level Git commit operations within a repository """ + sha: str = Field(description="SHA for the commit") 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") + 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") + + +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 GitTagPropTagger(GitHubModel): - """GitTagPropTagger""" - date: str = Field() - email: str = Field() - name: str = Field() +class GitCommitPropTree(GitHubModel): + """GitCommitPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() -class GitTagPropObject(GitHubModel): - """GitTagPropObject""" +class GitCommitPropParentsItems(GitHubModel): + """GitCommitPropParentsItems""" - sha: str = Field() - type: str = Field() + 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(GitTag) -model_rebuild(GitTagPropTagger) -model_rebuild(GitTagPropObject) +model_rebuild(GitCommit) +model_rebuild(GitCommitPropAuthor) +model_rebuild(GitCommitPropCommitter) +model_rebuild(GitCommitPropTree) +model_rebuild(GitCommitPropParentsItems) +model_rebuild(GitCommitPropVerification) __all__ = ( - "GitTag", - "GitTagPropObject", - "GitTagPropTagger", + "GitCommit", + "GitCommitPropAuthor", + "GitCommitPropCommitter", + "GitCommitPropParentsItems", + "GitCommitPropTree", + "GitCommitPropVerification", ) 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 a5ca2832d..ee31507d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0352.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0352.py @@ -12,39 +12,32 @@ 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 GitRef(GitHubModel): + """Git Reference - The hierarchy between files in a Git repository. + Git references within a repository """ - sha: str = Field() - url: Missing[str] = Field(default=UNSET) - truncated: bool = Field() - tree: list[GitTreePropTreeItems] = Field( - description="Objects specifying a tree structure" - ) + ref: str = Field() + node_id: str = Field() + url: str = Field() + object_: GitRefPropObject = Field(alias="object") -class GitTreePropTreeItems(GitHubModel): - """GitTreePropTreeItems""" +class GitRefPropObject(GitHubModel): + """GitRefPropObject""" - path: str = Field() - mode: str = Field() type: str = Field() - sha: str = Field() - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") + url: str = Field() -model_rebuild(GitTree) -model_rebuild(GitTreePropTreeItems) +model_rebuild(GitRef) +model_rebuild(GitRefPropObject) __all__ = ( - "GitTree", - "GitTreePropTreeItems", + "GitRef", + "GitRefPropObject", ) 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 544751a06..55cde862b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0353.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0353.py @@ -9,21 +9,53 @@ 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_0276 import Verification + + +class GitTag(GitHubModel): + """Git Tag + + 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") + + +class GitTagPropTagger(GitHubModel): + """GitTagPropTagger""" + + date: str = Field() + email: str = Field() + name: str = Field() -class HookResponse(GitHubModel): - """Hook Response""" +class GitTagPropObject(GitHubModel): + """GitTagPropObject""" - code: Union[int, None] = Field() - status: Union[str, None] = Field() - message: Union[str, None] = Field() + sha: str = Field() + type: str = Field() + url: str = Field() -model_rebuild(HookResponse) +model_rebuild(GitTag) +model_rebuild(GitTagPropTagger) +model_rebuild(GitTagPropObject) -__all__ = ("HookResponse",) +__all__ = ( + "GitTag", + "GitTagPropObject", + "GitTagPropTagger", +) 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 054631096..a5ca2832d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0354.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0354.py @@ -9,47 +9,42 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0011 import WebhookConfig -from .group_0353 import HookResponse - -class Hook(GitHubModel): - """Webhook +class GitTree(GitHubModel): + """Git Tree - Webhooks for repositories. + The hierarchy between files in a Git repository. """ - 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']." + sha: str = Field() + url: Missing[str] = Field(default=UNSET) + truncated: bool = Field() + tree: list[GitTreePropTreeItems] = Field( + description="Objects specifying a tree structure" ) - 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(Hook) +class GitTreePropTreeItems(GitHubModel): + """GitTreePropTreeItems""" + + path: str = Field() + mode: str = Field() + type: str = Field() + sha: str = Field() + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(GitTree) +model_rebuild(GitTreePropTreeItems) -__all__ = ("Hook",) +__all__ = ( + "GitTree", + "GitTreePropTreeItems", +) 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 dc0d94e75..544751a06 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0355.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0355.py @@ -9,75 +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 githubkit.typing import Missing -from githubkit.utils import UNSET -class Import(GitHubModel): - """Import +class HookResponse(GitHubModel): + """Hook Response""" - A repository import from an external source. - """ + code: Union[int, None] = Field() + status: Union[str, None] = Field() + message: Union[str, None] = 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() - html_url: str = Field() - authors_url: str = Field() - repository_url: str = Field() - svn_root: Missing[str] = Field(default=UNSET) +model_rebuild(HookResponse) -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", -) +__all__ = ("HookResponse",) 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 7ed1d272d..c09600a1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0356.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0356.py @@ -9,26 +9,47 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0011 import WebhookConfig +from .group_0355 import HookResponse -class PorterAuthor(GitHubModel): - """Porter Author +class Hook(GitHubModel): + """Webhook - Porter Author + Webhooks for repositories. """ - id: int = Field() - remote_id: str = Field() - remote_name: str = Field() - email: str = Field() - name: 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() - import_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(PorterAuthor) +model_rebuild(Hook) -__all__ = ("PorterAuthor",) +__all__ = ("Hook",) 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 c54f24120..dc0d94e75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0357.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0357.py @@ -9,23 +9,75 @@ 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 PorterLargeFile(GitHubModel): - """Porter Large File +class Import(GitHubModel): + """Import - Porter Large File + A repository import from an external source. """ - ref_name: str = Field() - path: str = Field() - oid: str = Field() - size: int = 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() + 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(PorterLargeFile) +model_rebuild(Import) +model_rebuild(ImportPropProjectChoicesItems) -__all__ = ("PorterLargeFile",) +__all__ = ( + "Import", + "ImportPropProjectChoicesItems", +) 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 ff3969224..7ed1d272d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0358.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0358.py @@ -9,150 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0070 import Team -from .group_0160 import Issue -class IssueEvent(GitHubModel): - """Issue Event +class PorterAuthor(GitHubModel): + """Porter Author - 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: 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) - - -class IssueEventMilestone(GitHubModel): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str = Field() - - -class IssueEventProjectCard(GitHubModel): - """Issue Event Project Card - - Issue Event Project Card - """ - - url: str = Field() - id: int = Field() - project_url: str = Field() - project_id: int = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -class IssueEventRename(GitHubModel): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str = Field(alias="from") - to: str = Field() + import_url: str = Field() -model_rebuild(IssueEvent) -model_rebuild(IssueEventLabel) -model_rebuild(IssueEventDismissedReview) -model_rebuild(IssueEventMilestone) -model_rebuild(IssueEventProjectCard) -model_rebuild(IssueEventRename) +model_rebuild(PorterAuthor) -__all__ = ( - "IssueEvent", - "IssueEventDismissedReview", - "IssueEventLabel", - "IssueEventMilestone", - "IssueEventProjectCard", - "IssueEventRename", -) +__all__ = ("PorterAuthor",) 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 3ec22fb63..c54f24120 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0359.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0359.py @@ -9,45 +9,23 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0010 import Integration - -class LabeledIssueEvent(GitHubModel): - """Labeled Issue Event +class PorterLargeFile(GitHubModel): + """Porter Large File - Labeled 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["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() - - -class LabeledIssueEventPropLabel(GitHubModel): - """LabeledIssueEventPropLabel""" - - name: str = Field() - color: str = Field() + ref_name: str = Field() + path: str = Field() + oid: str = Field() + size: int = Field() -model_rebuild(LabeledIssueEvent) -model_rebuild(LabeledIssueEventPropLabel) +model_rebuild(PorterLargeFile) -__all__ = ( - "LabeledIssueEvent", - "LabeledIssueEventPropLabel", -) +__all__ = ("PorterLargeFile",) 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 695ea4a4e..0ba1d565c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0360.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0360.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_0003 import SimpleUser from .group_0010 import Integration +from .group_0071 import Team +from .group_0162 import Issue -class UnlabeledIssueEvent(GitHubModel): - """Unlabeled Issue Event +class IssueEvent(GitHubModel): + """Issue Event - Unlabeled 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["unlabeled"] = 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() - label: UnlabeledIssueEventPropLabel = 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 UnlabeledIssueEventPropLabel(GitHubModel): - """UnlabeledIssueEventPropLabel""" +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 + """ - name: str = Field() - color: str = Field() + from_: str = Field(alias="from") + to: str = Field() -model_rebuild(UnlabeledIssueEvent) -model_rebuild(UnlabeledIssueEventPropLabel) +model_rebuild(IssueEvent) +model_rebuild(IssueEventLabel) +model_rebuild(IssueEventDismissedReview) +model_rebuild(IssueEventMilestone) +model_rebuild(IssueEventProjectCard) +model_rebuild(IssueEventRename) __all__ = ( - "UnlabeledIssueEvent", - "UnlabeledIssueEventPropLabel", + "IssueEvent", + "IssueEventDismissedReview", + "IssueEventLabel", + "IssueEventMilestone", + "IssueEventProjectCard", + "IssueEventRename", ) 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 34f35669c..3ec22fb63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0361.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0361.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,28 +19,35 @@ from .group_0010 import Integration -class AssignedIssueEvent(GitHubModel): - """Assigned Issue Event +class LabeledIssueEvent(GitHubModel): + """Labeled Issue Event - Assigned 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: str = 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[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.") + performed_via_github_app: Union[None, Integration, None] = Field() + label: LabeledIssueEventPropLabel = Field() -model_rebuild(AssignedIssueEvent) +class LabeledIssueEventPropLabel(GitHubModel): + """LabeledIssueEventPropLabel""" -__all__ = ("AssignedIssueEvent",) + 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_0362.py b/githubkit/versions/ghec_v2022_11_28/models/group_0362.py index d36e83286..695ea4a4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0362.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0362.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,25 +19,35 @@ from .group_0010 import Integration -class UnassignedIssueEvent(GitHubModel): - """Unassigned Issue Event +class UnlabeledIssueEvent(GitHubModel): + """Unlabeled Issue Event - Unassigned 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: str = 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() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + label: UnlabeledIssueEventPropLabel = Field() -model_rebuild(UnassignedIssueEvent) +class UnlabeledIssueEventPropLabel(GitHubModel): + """UnlabeledIssueEventPropLabel""" -__all__ = ("UnassignedIssueEvent",) + 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_0363.py b/githubkit/versions/ghec_v2022_11_28/models/group_0363.py index 734796d8a..34f35669c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0363.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0363.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,34 +19,28 @@ from .group_0010 import Integration -class MilestonedIssueEvent(GitHubModel): - """Milestoned Issue Event +class AssignedIssueEvent(GitHubModel): + """Assigned Issue Event - Milestoned 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["milestoned"] = 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: MilestonedIssueEventPropMilestone = 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 MilestonedIssueEventPropMilestone(GitHubModel): - """MilestonedIssueEventPropMilestone""" +model_rebuild(AssignedIssueEvent) - title: str = Field() - - -model_rebuild(MilestonedIssueEvent) -model_rebuild(MilestonedIssueEventPropMilestone) - -__all__ = ( - "MilestonedIssueEvent", - "MilestonedIssueEventPropMilestone", -) +__all__ = ("AssignedIssueEvent",) 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 1b03cd99a..d36e83286 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0364.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0364.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,34 +19,25 @@ from .group_0010 import Integration -class DemilestonedIssueEvent(GitHubModel): - """Demilestoned Issue Event +class UnassignedIssueEvent(GitHubModel): + """Unassigned Issue Event - Demilestoned 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["demilestoned"] = 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() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class DemilestonedIssueEventPropMilestone(GitHubModel): - """DemilestonedIssueEventPropMilestone""" +model_rebuild(UnassignedIssueEvent) - title: str = Field() - - -model_rebuild(DemilestonedIssueEvent) -model_rebuild(DemilestonedIssueEventPropMilestone) - -__all__ = ( - "DemilestonedIssueEvent", - "DemilestonedIssueEventPropMilestone", -) +__all__ = ("UnassignedIssueEvent",) 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 234895caf..734796d8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0365.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0365.py @@ -19,35 +19,34 @@ from .group_0010 import Integration -class RenamedIssueEvent(GitHubModel): - """Renamed Issue Event +class MilestonedIssueEvent(GitHubModel): + """Milestoned Issue Event - Renamed 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["renamed"] = 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() - rename: RenamedIssueEventPropRename = Field() + milestone: MilestonedIssueEventPropMilestone = Field() -class RenamedIssueEventPropRename(GitHubModel): - """RenamedIssueEventPropRename""" +class MilestonedIssueEventPropMilestone(GitHubModel): + """MilestonedIssueEventPropMilestone""" - from_: str = Field(alias="from") - to: str = Field() + title: str = Field() -model_rebuild(RenamedIssueEvent) -model_rebuild(RenamedIssueEventPropRename) +model_rebuild(MilestonedIssueEvent) +model_rebuild(MilestonedIssueEventPropMilestone) __all__ = ( - "RenamedIssueEvent", - "RenamedIssueEventPropRename", + "MilestonedIssueEvent", + "MilestonedIssueEventPropMilestone", ) 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 b992a093d..1b03cd99a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0366.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0366.py @@ -14,42 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0070 import Team -class ReviewRequestedIssueEvent(GitHubModel): - """Review Requested Issue Event +class DemilestonedIssueEvent(GitHubModel): + """Demilestoned Issue Event - Review Requested Issue Event + Demilestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_requested"] = 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() - 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",) + milestone: DemilestonedIssueEventPropMilestone = Field() + + +class DemilestonedIssueEventPropMilestone(GitHubModel): + """DemilestonedIssueEventPropMilestone""" + + title: str = Field() + + +model_rebuild(DemilestonedIssueEvent) +model_rebuild(DemilestonedIssueEventPropMilestone) + +__all__ = ( + "DemilestonedIssueEvent", + "DemilestonedIssueEventPropMilestone", +) 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 1fc8f34e0..234895caf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0367.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0367.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_0003 import SimpleUser from .group_0010 import Integration -from .group_0070 import Team -class ReviewRequestRemovedIssueEvent(GitHubModel): - """Review Request Removed Issue Event +class RenamedIssueEvent(GitHubModel): + """Renamed Issue Event - Review Request Removed 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["review_request_removed"] = 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() - 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",) + rename: RenamedIssueEventPropRename = Field() + + +class RenamedIssueEventPropRename(GitHubModel): + """RenamedIssueEventPropRename""" + + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(RenamedIssueEvent) +model_rebuild(RenamedIssueEventPropRename) + +__all__ = ( + "RenamedIssueEvent", + "RenamedIssueEventPropRename", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0368.py b/githubkit/versions/ghec_v2022_11_28/models/group_0368.py index bc686e09d..897c3f82f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0368.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0368.py @@ -19,39 +19,37 @@ from .group_0003 import SimpleUser from .group_0010 import Integration +from .group_0071 import Team -class ReviewDismissedIssueEvent(GitHubModel): - """Review Dismissed Issue Event +class ReviewRequestedIssueEvent(GitHubModel): + """Review Requested Issue Event - Review Dismissed 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["review_dismissed"] = 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() - 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", -) + 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",) 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 e0130f152..4375a1ba2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0369.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0369.py @@ -14,29 +14,42 @@ 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_0071 import Team -class LockedIssueEvent(GitHubModel): - """Locked Issue Event +class ReviewRequestRemovedIssueEvent(GitHubModel): + """Review Request Removed Issue Event - Locked 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["locked"] = Field() + event: Literal["review_request_removed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - lock_reason: Union[str, None] = Field() - - -model_rebuild(LockedIssueEvent) - -__all__ = ("LockedIssueEvent",) + 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",) 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 cf2b6b5f8..bc686e09d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0370.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0370.py @@ -21,41 +21,37 @@ from .group_0010 import Integration -class AddedToProjectIssueEvent(GitHubModel): - """Added to Project Issue Event +class ReviewDismissedIssueEvent(GitHubModel): + """Review Dismissed Issue Event - Added to Project Issue Event + Review Dismissed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["added_to_project"] = Field() + event: Literal["review_dismissed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() -class AddedToProjectIssueEventPropProjectCard(GitHubModel): - """AddedToProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[str] = Field(default=UNSET) -model_rebuild(AddedToProjectIssueEvent) -model_rebuild(AddedToProjectIssueEventPropProjectCard) +model_rebuild(ReviewDismissedIssueEvent) +model_rebuild(ReviewDismissedIssueEventPropDismissedReview) __all__ = ( - "AddedToProjectIssueEvent", - "AddedToProjectIssueEventPropProjectCard", + "ReviewDismissedIssueEvent", + "ReviewDismissedIssueEventPropDismissedReview", ) 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 5d2b15f17..e0130f152 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0371.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0371.py @@ -14,48 +14,29 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -class MovedColumnInProjectIssueEvent(GitHubModel): - """Moved Column in Project Issue Event +class LockedIssueEvent(GitHubModel): + """Locked Issue Event - Moved Column in Project Issue Event + Locked Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["moved_columns_in_project"] = Field() + event: Literal["locked"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + lock_reason: Union[str, None] = Field() -class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): - """MovedColumnInProjectIssueEventPropProjectCard""" +model_rebuild(LockedIssueEvent) - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(MovedColumnInProjectIssueEvent) -model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) - -__all__ = ( - "MovedColumnInProjectIssueEvent", - "MovedColumnInProjectIssueEventPropProjectCard", -) +__all__ = ("LockedIssueEvent",) 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 3bd6fbf40..cf2b6b5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0372.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0372.py @@ -21,28 +21,28 @@ from .group_0010 import Integration -class RemovedFromProjectIssueEvent(GitHubModel): - """Removed from Project Issue Event +class AddedToProjectIssueEvent(GitHubModel): + """Added to Project Issue Event - Removed from Project Issue Event + Added to Project 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["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[RemovedFromProjectIssueEventPropProjectCard] = Field( + project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( default=UNSET ) -class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): - """RemovedFromProjectIssueEventPropProjectCard""" +class AddedToProjectIssueEventPropProjectCard(GitHubModel): + """AddedToProjectIssueEventPropProjectCard""" id: int = Field() url: str = Field() @@ -52,10 +52,10 @@ class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): previous_column_name: Missing[str] = Field(default=UNSET) -model_rebuild(RemovedFromProjectIssueEvent) -model_rebuild(RemovedFromProjectIssueEventPropProjectCard) +model_rebuild(AddedToProjectIssueEvent) +model_rebuild(AddedToProjectIssueEventPropProjectCard) __all__ = ( - "RemovedFromProjectIssueEvent", - "RemovedFromProjectIssueEventPropProjectCard", + "AddedToProjectIssueEvent", + "AddedToProjectIssueEventPropProjectCard", ) 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 d4894ad61..5d2b15f17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0373.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0373.py @@ -21,31 +21,28 @@ from .group_0010 import Integration -class ConvertedNoteToIssueIssueEvent(GitHubModel): - """Converted Note to Issue Issue Event +class MovedColumnInProjectIssueEvent(GitHubModel): + """Moved Column in Project Issue Event - Converted Note to Issue Issue Event + Moved Column in Project 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["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[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( + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( default=UNSET ) -class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): - """ConvertedNoteToIssueIssueEventPropProjectCard""" +class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): + """MovedColumnInProjectIssueEventPropProjectCard""" id: int = Field() url: str = Field() @@ -55,10 +52,10 @@ class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): previous_column_name: Missing[str] = Field(default=UNSET) -model_rebuild(ConvertedNoteToIssueIssueEvent) -model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) +model_rebuild(MovedColumnInProjectIssueEvent) +model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) __all__ = ( - "ConvertedNoteToIssueIssueEvent", - "ConvertedNoteToIssueIssueEventPropProjectCard", + "MovedColumnInProjectIssueEvent", + "MovedColumnInProjectIssueEventPropProjectCard", ) 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 a6fa9cdd4..3bd6fbf40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0374.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0374.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -20,49 +19,43 @@ from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0159 import ReactionRollup -class TimelineCommentEvent(GitHubModel): - """Timeline Comment Event +class RemovedFromProjectIssueEvent(GitHubModel): + """Removed from Project Issue Event - Timeline Comment Event + Removed from Project Issue Event """ - event: Literal["commented"] = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - id: int = Field(description="Unique identifier of the issue comment") + id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" - ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["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 ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TimelineCommentEvent) +class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(RemovedFromProjectIssueEvent) +model_rebuild(RemovedFromProjectIssueEventPropProjectCard) -__all__ = ("TimelineCommentEvent",) +__all__ = ( + "RemovedFromProjectIssueEvent", + "RemovedFromProjectIssueEventPropProjectCard", +) 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 6ddab511f..d4894ad61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0375.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0375.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,24 +18,47 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0376 import TimelineCrossReferencedEventPropSource +from .group_0010 import Integration -class TimelineCrossReferencedEvent(GitHubModel): - """Timeline Cross Referenced Event +class ConvertedNoteToIssueIssueEvent(GitHubModel): + """Converted Note to Issue Issue Event - Timeline Cross Referenced Event + Converted Note to Issue Issue Event """ - event: Literal["cross-referenced"] = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["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.", ) - created_at: datetime = Field() - updated_at: datetime = Field() - source: TimelineCrossReferencedEventPropSource = Field() + project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( + default=UNSET + ) + + +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(TimelineCrossReferencedEvent) +model_rebuild(ConvertedNoteToIssueIssueEvent) +model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) -__all__ = ("TimelineCrossReferencedEvent",) +__all__ = ( + "ConvertedNoteToIssueIssueEvent", + "ConvertedNoteToIssueIssueEventPropProjectCard", +) 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 14ac9695e..cb349ef9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0376.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0376.py @@ -9,26 +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_0160 import Issue +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0160 import ReactionRollup + +class TimelineCommentEvent(GitHubModel): + """Timeline Comment Event -class TimelineCrossReferencedEventPropSource(GitHubModel): - """TimelineCrossReferencedEventPropSource""" + Timeline Comment 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.", + event: Literal["commented"] = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + id: int = Field(description="Unique identifier of the issue comment") + node_id: str = Field() + 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(TimelineCrossReferencedEventPropSource) +model_rebuild(TimelineCommentEvent) -__all__ = ("TimelineCrossReferencedEventPropSource",) +__all__ = ("TimelineCommentEvent",) 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 3333d74a0..bd3203cab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0377.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0377.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,89 +18,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0378 import TimelineCrossReferencedEventPropSource -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 +class TimelineCrossReferencedEvent(GitHubModel): + """Timeline Cross Referenced Event - Identifying information for the git-user + Timeline Cross Referenced Event """ - 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() + 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(TimelineCommittedEvent) -model_rebuild(TimelineCommittedEventPropAuthor) -model_rebuild(TimelineCommittedEventPropCommitter) -model_rebuild(TimelineCommittedEventPropTree) -model_rebuild(TimelineCommittedEventPropParentsItems) -model_rebuild(TimelineCommittedEventPropVerification) +model_rebuild(TimelineCrossReferencedEvent) -__all__ = ( - "TimelineCommittedEvent", - "TimelineCommittedEventPropAuthor", - "TimelineCommittedEventPropCommitter", - "TimelineCommittedEventPropParentsItems", - "TimelineCommittedEventPropTree", - "TimelineCommittedEventPropVerification", -) +__all__ = ("TimelineCrossReferencedEvent",) 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 a6060bb80..0b8ac0411 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0378.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0378.py @@ -9,79 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser - +from .group_0162 import Issue -class TimelineReviewedEvent(GitHubModel): - """Timeline Reviewed Event - Timeline Reviewed Event - """ +class TimelineCrossReferencedEventPropSource(GitHubModel): + """TimelineCrossReferencedEventPropSource""" - 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.", + 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.", ) -class TimelineReviewedEventPropLinks(GitHubModel): - """TimelineReviewedEventPropLinks""" - - html: TimelineReviewedEventPropLinksPropHtml = Field() - pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() - - -class TimelineReviewedEventPropLinksPropHtml(GitHubModel): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str = Field() - - -class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str = Field() - - -model_rebuild(TimelineReviewedEvent) -model_rebuild(TimelineReviewedEventPropLinks) -model_rebuild(TimelineReviewedEventPropLinksPropHtml) -model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) +model_rebuild(TimelineCrossReferencedEventPropSource) -__all__ = ( - "TimelineReviewedEvent", - "TimelineReviewedEventPropLinks", - "TimelineReviewedEventPropLinksPropHtml", - "TimelineReviewedEventPropLinksPropPullRequest", -) +__all__ = ("TimelineCrossReferencedEventPropSource",) 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 760a01e35..3333d74a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0379.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0379.py @@ -18,150 +18,89 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0159 import ReactionRollup +class TimelineCommittedEvent(GitHubModel): + """Timeline Committed Event -class PullRequestReviewComment(GitHubModel): - """Pull Request Review Comment - - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Committed 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(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.", + 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" ) - 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.", + committer: TimelineCommittedEventPropCommitter = Field( + description="Identifying information for the git-user" ) - 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) + 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 PullRequestReviewCommentPropLinks(GitHubModel): - """PullRequestReviewCommentPropLinks""" +class TimelineCommittedEventPropAuthor(GitHubModel): + """TimelineCommittedEventPropAuthor - self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") - html: PullRequestReviewCommentPropLinksPropHtml = Field() - pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + 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 PullRequestReviewCommentPropLinksPropSelf(GitHubModel): - """PullRequestReviewCommentPropLinksPropSelf""" - href: str = Field() +class TimelineCommittedEventPropCommitter(GitHubModel): + """TimelineCommittedEventPropCommitter + Identifying information for the git-user + """ -class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): - """PullRequestReviewCommentPropLinksPropHtml""" + 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") - href: str = Field() +class TimelineCommittedEventPropTree(GitHubModel): + """TimelineCommittedEventPropTree""" -class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewCommentPropLinksPropPullRequest""" + sha: str = Field(description="SHA for the commit") + url: str = Field() - href: str = Field() +class TimelineCommittedEventPropParentsItems(GitHubModel): + """TimelineCommittedEventPropParentsItems""" -class TimelineLineCommentedEvent(GitHubModel): - """Timeline Line Commented Event + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() - Timeline Line Commented Event - """ - event: Missing[Literal["line_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) +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(PullRequestReviewComment) -model_rebuild(PullRequestReviewCommentPropLinks) -model_rebuild(PullRequestReviewCommentPropLinksPropSelf) -model_rebuild(PullRequestReviewCommentPropLinksPropHtml) -model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) -model_rebuild(TimelineLineCommentedEvent) +model_rebuild(TimelineCommittedEvent) +model_rebuild(TimelineCommittedEventPropAuthor) +model_rebuild(TimelineCommittedEventPropCommitter) +model_rebuild(TimelineCommittedEventPropTree) +model_rebuild(TimelineCommittedEventPropParentsItems) +model_rebuild(TimelineCommittedEventPropVerification) __all__ = ( - "PullRequestReviewComment", - "PullRequestReviewCommentPropLinks", - "PullRequestReviewCommentPropLinksPropHtml", - "PullRequestReviewCommentPropLinksPropPullRequest", - "PullRequestReviewCommentPropLinksPropSelf", - "TimelineLineCommentedEvent", + "TimelineCommittedEvent", + "TimelineCommittedEventPropAuthor", + "TimelineCommittedEventPropCommitter", + "TimelineCommittedEventPropParentsItems", + "TimelineCommittedEventPropTree", + "TimelineCommittedEventPropVerification", ) 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 c45a39f8c..a6060bb80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0380.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0380.py @@ -9,34 +9,79 @@ 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 TimelineAssignedIssueEvent(GitHubModel): - """Timeline Assigned Issue Event +class TimelineReviewedEvent(GitHubModel): + """Timeline Reviewed Event - Timeline Assigned Issue Event + Timeline Reviewed Event """ - id: int = Field() + event: Literal["reviewed"] = Field() + id: int = Field(description="Unique identifier of the review") node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: 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.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: TimelineReviewedEventPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: str = Field(description="A commit SHA for the review.") + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) -model_rebuild(TimelineAssignedIssueEvent) +class TimelineReviewedEventPropLinks(GitHubModel): + """TimelineReviewedEventPropLinks""" -__all__ = ("TimelineAssignedIssueEvent",) + html: TimelineReviewedEventPropLinksPropHtml = Field() + pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() + + +class TimelineReviewedEventPropLinksPropHtml(GitHubModel): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str = Field() + + +class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(TimelineReviewedEvent) +model_rebuild(TimelineReviewedEventPropLinks) +model_rebuild(TimelineReviewedEventPropLinksPropHtml) +model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) + +__all__ = ( + "TimelineReviewedEvent", + "TimelineReviewedEventPropLinks", + "TimelineReviewedEventPropLinksPropHtml", + "TimelineReviewedEventPropLinksPropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0381.py b/githubkit/versions/ghec_v2022_11_28/models/group_0381.py index 420f91c26..ac2b8b26d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0381.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0381.py @@ -9,34 +9,159 @@ 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_0160 import ReactionRollup -class TimelineUnassignedIssueEvent(GitHubModel): - """Timeline Unassigned Issue Event +class PullRequestReviewComment(GitHubModel): + """Pull Request Review Comment - Timeline Unassigned Issue Event + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. """ - 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.") + 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) -model_rebuild(TimelineUnassignedIssueEvent) +class PullRequestReviewCommentPropLinks(GitHubModel): + """PullRequestReviewCommentPropLinks""" -__all__ = ("TimelineUnassignedIssueEvent",) + self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") + html: PullRequestReviewCommentPropLinksPropHtml = Field() + pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + + +class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str = Field() + + +class TimelineLineCommentedEvent(GitHubModel): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ + + event: Missing[Literal["line_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) + + +model_rebuild(PullRequestReviewComment) +model_rebuild(PullRequestReviewCommentPropLinks) +model_rebuild(PullRequestReviewCommentPropLinksPropSelf) +model_rebuild(PullRequestReviewCommentPropLinksPropHtml) +model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) +model_rebuild(TimelineLineCommentedEvent) + +__all__ = ( + "PullRequestReviewComment", + "PullRequestReviewCommentPropLinks", + "PullRequestReviewCommentPropLinksPropHtml", + "PullRequestReviewCommentPropLinksPropPullRequest", + "PullRequestReviewCommentPropLinksPropSelf", + "TimelineLineCommentedEvent", +) 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 799278e56..c45a39f8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0382.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0382.py @@ -9,36 +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_0003 import SimpleUser from .group_0010 import Integration -class StateChangeIssueEvent(GitHubModel): - """State Change Issue Event +class TimelineAssignedIssueEvent(GitHubModel): + """Timeline Assigned Issue Event - State Change Issue Event + Timeline Assigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() + 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() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(StateChangeIssueEvent) +model_rebuild(TimelineAssignedIssueEvent) -__all__ = ("StateChangeIssueEvent",) +__all__ = ("TimelineAssignedIssueEvent",) 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 25f7eb3a3..420f91c26 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0383.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0383.py @@ -9,33 +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_0003 import SimpleUser +from .group_0010 import Integration -class DeployKey(GitHubModel): - """Deploy Key - An SSH key granting access to a single repository. +class TimelineUnassignedIssueEvent(GitHubModel): + """Timeline Unassigned Issue Event + + Timeline Unassigned Issue Event """ id: int = Field() - key: str = Field() + node_id: str = Field() url: str = Field() - title: str = Field() - verified: bool = 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() - 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) + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(DeployKey) +model_rebuild(TimelineUnassignedIssueEvent) -__all__ = ("DeployKey",) +__all__ = ("TimelineUnassignedIssueEvent",) 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 58247c327..799278e56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0384.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0384.py @@ -9,16 +9,36 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import 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 +from .group_0010 import Integration + + +class StateChangeIssueEvent(GitHubModel): + """State Change Issue Event + + State Change Issue 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) + -model_rebuild(Language) +model_rebuild(StateChangeIssueEvent) -__all__ = ("Language",) +__all__ = ("StateChangeIssueEvent",) 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 5f83fdf69..8d8a67244 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0385.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0385.py @@ -9,48 +9,34 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0019 import LicenseSimple +class DeployKey(GitHubModel): + """Deploy Key -class LicenseContent(GitHubModel): - """License Content - - License Content + An SSH key granting access to a single repository. """ - name: str = Field() - path: str = Field() - sha: str = Field() - size: int = Field() + id: int = Field() + key: str = Field() url: str = Field() - html_url: Union[str, None] = Field() - git_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - type: str = Field() - content: str = Field() - encoding: str = Field() - links: LicenseContentPropLinks = Field(alias="_links") - license_: Union[None, LicenseSimple] = Field(alias="license") - - -class LicenseContentPropLinks(GitHubModel): - """LicenseContentPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + 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[datetime, None]] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(LicenseContent) -model_rebuild(LicenseContentPropLinks) +model_rebuild(DeployKey) -__all__ = ( - "LicenseContent", - "LicenseContentPropLinks", -) +__all__ = ("DeployKey",) 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 21374a5f3..58247c327 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0386.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0386.py @@ -9,26 +9,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 - -class MergedUpstream(GitHubModel): - """Merged upstream - - Results of a successful merge upstream request + Language """ - 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(MergedUpstream) +model_rebuild(Language) -__all__ = ("MergedUpstream",) +__all__ = ("Language",) 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 771963487..5f83fdf69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0387.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0387.py @@ -9,92 +9,48 @@ from __future__ import annotations -from datetime import date, 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_0019 import LicenseSimple -class Page(GitHubModel): - """GitHub Pages - The configuration for GitHub Pages for a repository. +class LicenseContent(GitHubModel): + """License Content + + License Content """ - 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""" - - branch: str = Field() + 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") -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) +model_rebuild(LicenseContent) +model_rebuild(LicenseContentPropLinks) __all__ = ( - "Page", - "PagesHttpsCertificate", - "PagesSourceHash", + "LicenseContent", + "LicenseContentPropLinks", ) 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 c05e5b837..21374a5f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0388.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0388.py @@ -9,42 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class MergedUpstream(GitHubModel): + """Merged upstream -class PageBuild(GitHubModel): - """Page Build - - Page Build + Results of a successful merge upstream request """ - url: str = Field() - status: str = Field() - error: PageBuildPropError = Field() - pusher: Union[None, SimpleUser] = Field() - commit: str = Field() - duration: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - - -class PageBuildPropError(GitHubModel): - """PageBuildPropError""" - - message: Union[str, None] = Field() + 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(PageBuild) -model_rebuild(PageBuildPropError) +model_rebuild(MergedUpstream) -__all__ = ( - "PageBuild", - "PageBuildPropError", -) +__all__ = ("MergedUpstream",) 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 4b54230bc..771963487 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0389.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0389.py @@ -9,21 +9,92 @@ 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 -class PageBuildStatus(GitHubModel): - """Page Build Status +class Page(GitHubModel): + """GitHub Pages - Page Build Status + The configuration for GitHub Pages for a repository. """ - url: str = Field() - status: str = Field() + 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""" + + 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(PageBuildStatus) +model_rebuild(Page) +model_rebuild(PagesSourceHash) +model_rebuild(PagesHttpsCertificate) -__all__ = ("PageBuildStatus",) +__all__ = ( + "Page", + "PagesHttpsCertificate", + "PagesSourceHash", +) 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 c3d88e76b..c05e5b837 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0390.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0390.py @@ -9,33 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class PageDeployment(GitHubModel): - """GitHub Pages - The GitHub Pages deployment status. +class PageBuild(GitHubModel): + """Page Build + + Page Build """ - 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." - ) + url: str = Field() + status: str = Field() + error: PageBuildPropError = Field() + pusher: Union[None, SimpleUser] = Field() + commit: str = Field() + duration: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + + +class PageBuildPropError(GitHubModel): + """PageBuildPropError""" + + message: Union[str, None] = Field() -model_rebuild(PageDeployment) +model_rebuild(PageBuild) +model_rebuild(PageBuildPropError) -__all__ = ("PageDeployment",) +__all__ = ( + "PageBuild", + "PageBuildPropError", +) 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 f79d28414..4b54230bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0391.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0391.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 -class PagesDeploymentStatus(GitHubModel): - """GitHub Pages deployment status""" +class PageBuildStatus(GitHubModel): + """Page Build Status + + Page Build 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.") + url: str = Field() + status: str = Field() -model_rebuild(PagesDeploymentStatus) +model_rebuild(PageBuildStatus) -__all__ = ("PagesDeploymentStatus",) +__all__ = ("PageBuildStatus",) 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 b7d3c727b..c3d88e76b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0392.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0392.py @@ -18,94 +18,24 @@ from githubkit.utils import UNSET -class PagesHealthCheck(GitHubModel): - """Pages Health Check Status +class PageDeployment(GitHubModel): + """GitHub Pages - Pages Health Check Status + The GitHub Pages deployment status. """ - domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) - alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( - default=UNSET + id: Union[int, str] = Field( + description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." ) - - -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 + status_url: str = Field( + description="The URI to monitor GitHub Pages deployment status." ) - 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 + 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." ) - 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) +model_rebuild(PageDeployment) -__all__ = ( - "PagesHealthCheck", - "PagesHealthCheckPropAltDomain", - "PagesHealthCheckPropDomain", -) +__all__ = ("PageDeployment",) 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 084b00199..f79d28414 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0393.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0393.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,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0069 import TeamSimple -from .group_0157 import Milestone -from .group_0314 import AutoMerge -from .group_0394 import PullRequestPropLabelsItems -from .group_0395 import PullRequestPropBase, PullRequestPropHead -from .group_0396 import PullRequestPropLinks +class PagesDeploymentStatus(GitHubModel): + """GitHub Pages deployment status""" -class PullRequest(GitHubModel): - """Pull Request + 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.") - 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() - 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() +model_rebuild(PagesDeploymentStatus) - -model_rebuild(PullRequest) - -__all__ = ("PullRequest",) +__all__ = ("PagesDeploymentStatus",) 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 cf1d160e5..b7d3c727b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0394.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0394.py @@ -14,20 +14,98 @@ 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 PagesHealthCheck(GitHubModel): + """Pages Health Check Status - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + Pages Health Check Status + """ + domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) + alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( + default=UNSET + ) -model_rebuild(PullRequestPropLabelsItems) -__all__ = ("PullRequestPropLabelsItems",) +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__ = ( + "PagesHealthCheck", + "PagesHealthCheckPropAltDomain", + "PagesHealthCheckPropDomain", +) 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 825d35e04..b30dfef66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0395.py @@ -9,40 +9,106 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0020 import Repository - - -class PullRequestPropHead(GitHubModel): - """PullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() - - -class PullRequestPropBase(GitHubModel): - """PullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() +from .group_0070 import TeamSimple +from .group_0158 import Milestone +from .group_0316 import AutoMerge +from .group_0396 import PullRequestPropLabelsItems +from .group_0397 import PullRequestPropBase, PullRequestPropHead +from .group_0398 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. + """ + + 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.") - - -model_rebuild(PullRequestPropHead) -model_rebuild(PullRequestPropBase) - -__all__ = ( - "PullRequestPropBase", - "PullRequestPropHead", -) + 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() + + +model_rebuild(PullRequest) + +__all__ = ("PullRequest",) 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 9b18e66cf..cf1d160e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0396.py @@ -9,26 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0313 import Link - -class PullRequestPropLinks(GitHubModel): - """PullRequestPropLinks""" +class PullRequestPropLabelsItems(GitHubModel): + """PullRequestPropLabelsItems""" - 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: 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(PullRequestPropLinks) +model_rebuild(PullRequestPropLabelsItems) -__all__ = ("PullRequestPropLinks",) +__all__ = ("PullRequestPropLabelsItems",) 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 da433b3b8..825d35e04 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0397.py @@ -9,22 +9,40 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser +from .group_0020 import Repository + + +class PullRequestPropHead(GitHubModel): + """PullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() + sha: str = Field() + user: Union[None, SimpleUser] = Field() -class PullRequestMergeResult(GitHubModel): - """Pull Request Merge Result - Pull Request Merge Result - """ +class PullRequestPropBase(GitHubModel): + """PullRequestPropBase""" + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") sha: str = Field() - merged: bool = Field() - message: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(PullRequestMergeResult) +model_rebuild(PullRequestPropHead) +model_rebuild(PullRequestPropBase) -__all__ = ("PullRequestMergeResult",) +__all__ = ( + "PullRequestPropBase", + "PullRequestPropHead", +) 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 2e17a4a1c..546a6ffef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0398.py @@ -13,20 +13,22 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0070 import Team +from .group_0315 import Link -class PullRequestReviewRequest(GitHubModel): - """Pull Request Review Request +class PullRequestPropLinks(GitHubModel): + """PullRequestPropLinks""" - Pull Request Review Request - """ + 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") - users: list[SimpleUser] = Field() - teams: list[Team] = Field() +model_rebuild(PullRequestPropLinks) -model_rebuild(PullRequestReviewRequest) - -__all__ = ("PullRequestReviewRequest",) +__all__ = ("PullRequestPropLinks",) 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 d7938b075..da433b3b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0399.py @@ -9,80 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -class PullRequestReview(GitHubModel): - """Pull Request Review +class PullRequestMergeResult(GitHubModel): + """Pull Request Merge Result - Pull Request Reviews are reviews on pull requests. + Pull Request Merge Result """ - 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.", - ) - - -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() + sha: str = Field() + merged: bool = Field() + message: str = Field() -model_rebuild(PullRequestReview) -model_rebuild(PullRequestReviewPropLinks) -model_rebuild(PullRequestReviewPropLinksPropHtml) -model_rebuild(PullRequestReviewPropLinksPropPullRequest) +model_rebuild(PullRequestMergeResult) -__all__ = ( - "PullRequestReview", - "PullRequestReviewPropLinks", - "PullRequestReviewPropLinksPropHtml", - "PullRequestReviewPropLinksPropPullRequest", -) +__all__ = ("PullRequestMergeResult",) 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 fd812433a..872a6f50b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0400.py @@ -9,90 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0159 import ReactionRollup -from .group_0401 import ReviewCommentPropLinks +from .group_0071 import Team -class ReviewComment(GitHubModel): - """Legacy Review Comment +class PullRequestReviewRequest(GitHubModel): + """Pull Request Review Request - Legacy Review Comment + Pull Request Review Request """ - 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.", - ) - 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.", - ) + users: list[SimpleUser] = Field() + teams: list[Team] = Field() -model_rebuild(ReviewComment) +model_rebuild(PullRequestReviewRequest) -__all__ = ("ReviewComment",) +__all__ = ("PullRequestReviewRequest",) 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 2ccb5e435..d7938b075 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0401.py @@ -9,21 +9,80 @@ 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 + + +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`." + ) + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + + +class PullRequestReviewPropLinks(GitHubModel): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtml = Field() + pull_request: PullRequestReviewPropLinksPropPullRequest = Field() + + +class PullRequestReviewPropLinksPropHtml(GitHubModel): + """PullRequestReviewPropLinksPropHtml""" -from .group_0313 import Link + href: str = Field() -class ReviewCommentPropLinks(GitHubModel): - """ReviewCommentPropLinks""" +class PullRequestReviewPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewPropLinksPropPullRequest""" - 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") + href: str = Field() -model_rebuild(ReviewCommentPropLinks) +model_rebuild(PullRequestReview) +model_rebuild(PullRequestReviewPropLinks) +model_rebuild(PullRequestReviewPropLinksPropHtml) +model_rebuild(PullRequestReviewPropLinksPropPullRequest) -__all__ = ("ReviewCommentPropLinks",) +__all__ = ( + "PullRequestReview", + "PullRequestReviewPropLinks", + "PullRequestReviewPropLinksPropHtml", + "PullRequestReviewPropLinksPropPullRequest", +) 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 1f2efa2a0..3be02d0d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0402.py @@ -15,34 +15,84 @@ 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_0160 import ReactionRollup +from .group_0403 import ReviewCommentPropLinks -class ReleaseAsset(GitHubModel): - """Release Asset +class ReviewComment(GitHubModel): + """Legacy Review Comment - Data related to a release. + Legacy Review Comment """ url: str = Field() - browser_download_url: str = Field() + pull_request_review_id: Union[int, None] = Field() id: int = Field() node_id: str = Field() - name: str = Field(description="The file name of the asset.") - label: Union[str, None] = Field() - state: Literal["uploaded", "open"] = Field( - description="State of the release asset." - ) - content_type: str = Field() - size: int = Field() - digest: Union[str, None] = Field() - download_count: int = Field() + 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() - uploader: Union[None, SimpleUser] = 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.", + ) + 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.", + ) -model_rebuild(ReleaseAsset) +model_rebuild(ReviewComment) -__all__ = ("ReleaseAsset",) +__all__ = ("ReviewComment",) 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 ec6b30095..e96af3bff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0403.py @@ -9,59 +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_0003 import SimpleUser -from .group_0159 import ReactionRollup -from .group_0402 import ReleaseAsset +from .group_0315 import Link -class Release(GitHubModel): - """Release - A release. - """ +class ReviewCommentPropLinks(GitHubModel): + """ReviewCommentPropLinks""" - 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") + 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(Release) +model_rebuild(ReviewCommentPropLinks) -__all__ = ("Release",) +__all__ = ("ReviewCommentPropLinks",) 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 e30bd3be3..1f2efa2a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0404.py @@ -9,23 +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 .group_0003 import SimpleUser + -class ReleaseNotesContent(GitHubModel): - """Generated Release Notes Content +class ReleaseAsset(GitHubModel): + """Release Asset - Generated name and body describing a release + Data related to a release. """ - name: str = Field(description="The generated name of the release") - body: str = Field( - description="The generated body describing the contents of the release supporting markdown formatting" + url: str = Field() + browser_download_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="The file name of the asset.") + label: Union[str, None] = Field() + state: Literal["uploaded", "open"] = Field( + description="State of the release asset." ) + content_type: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + download_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + uploader: Union[None, SimpleUser] = Field() -model_rebuild(ReleaseNotesContent) +model_rebuild(ReleaseAsset) -__all__ = ("ReleaseNotesContent",) +__all__ = ("ReleaseAsset",) 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 0e31221c5..33a21ddd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0405.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,53 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0160 import ReactionRollup +from .group_0404 import ReleaseAsset -class RepositoryRuleRulesetInfo(GitHubModel): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +class Release(GitHubModel): + """Release + + A release. """ - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", + 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." ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + immutable: Missing[bool] = Field( + default=UNSET, description="Whether or not the release is immutable." ) - 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(RepositoryRuleRulesetInfo) +model_rebuild(Release) -__all__ = ("RepositoryRuleRulesetInfo",) +__all__ = ("Release",) 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 7929bea32..e30bd3be3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0406.py @@ -9,32 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof0(GitHubModel): - """RepositoryRuleDetailedOneof0""" +class ReleaseNotesContent(GitHubModel): + """Generated Release Notes Content - type: Literal["creation"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + Generated name and body describing a release + """ + + name: str = Field(description="The generated name of the release") + body: str = Field( + description="The generated body describing the contents of the release supporting markdown formatting" ) -model_rebuild(RepositoryRuleDetailedOneof0) +model_rebuild(ReleaseNotesContent) -__all__ = ("RepositoryRuleDetailedOneof0",) +__all__ = ("ReleaseNotesContent",) 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 a8efffefe..0e31221c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0407.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0100 import RepositoryRuleUpdatePropParameters +class RepositoryRuleRulesetInfo(GitHubModel): + """repository ruleset data for rule -class RepositoryRuleDetailedOneof1(GitHubModel): - """RepositoryRuleDetailedOneof1""" + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - 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 RepositoryRuleDetailedOneof1(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof1) +model_rebuild(RepositoryRuleRulesetInfo) -__all__ = ("RepositoryRuleDetailedOneof1",) +__all__ = ("RepositoryRuleRulesetInfo",) 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 ff93ecfb1..7929bea32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0408.py @@ -18,10 +18,10 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof2(GitHubModel): - """RepositoryRuleDetailedOneof2""" +class RepositoryRuleDetailedOneof0(GitHubModel): + """RepositoryRuleDetailedOneof0""" - type: Literal["deletion"] = 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 RepositoryRuleDetailedOneof2(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof2) +model_rebuild(RepositoryRuleDetailedOneof0) -__all__ = ("RepositoryRuleDetailedOneof2",) +__all__ = ("RepositoryRuleDetailedOneof0",) 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 7db86577f..79706a9d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0409.py @@ -17,11 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0101 import RepositoryRuleUpdatePropParameters -class RepositoryRuleDetailedOneof3(GitHubModel): - """RepositoryRuleDetailedOneof3""" - type: Literal["required_linear_history"] = Field() +class RepositoryRuleDetailedOneof1(GitHubModel): + """RepositoryRuleDetailedOneof1""" + + 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.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof3(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof3) +model_rebuild(RepositoryRuleDetailedOneof1) -__all__ = ("RepositoryRuleDetailedOneof3",) +__all__ = ("RepositoryRuleDetailedOneof1",) 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 e3c866b85..ff93ecfb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0410.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0103 import RepositoryRuleMergeQueuePropParameters +class RepositoryRuleDetailedOneof2(GitHubModel): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof4(GitHubModel): - """RepositoryRuleDetailedOneof4""" - - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = 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.", @@ -38,6 +35,6 @@ class RepositoryRuleDetailedOneof4(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof4) +model_rebuild(RepositoryRuleDetailedOneof2) -__all__ = ("RepositoryRuleDetailedOneof4",) +__all__ = ("RepositoryRuleDetailedOneof2",) 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 fec940c0c..7db86577f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0411.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0105 import RepositoryRuleRequiredDeploymentsPropParameters +class RepositoryRuleDetailedOneof3(GitHubModel): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof5(GitHubModel): - """RepositoryRuleDetailedOneof5""" - - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = 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 RepositoryRuleDetailedOneof5(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof5) +model_rebuild(RepositoryRuleDetailedOneof3) -__all__ = ("RepositoryRuleDetailedOneof5",) +__all__ = ("RepositoryRuleDetailedOneof3",) 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 e9b15495d..0dc496a8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0412.py @@ -17,11 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0139 import RepositoryRuleMergeQueuePropParameters -class RepositoryRuleDetailedOneof6(GitHubModel): - """RepositoryRuleDetailedOneof6""" - type: Literal["required_signatures"] = Field() +class RepositoryRuleDetailedOneof4(GitHubModel): + """RepositoryRuleDetailedOneof4""" + + 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.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof6(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof6) +model_rebuild(RepositoryRuleDetailedOneof4) -__all__ = ("RepositoryRuleDetailedOneof6",) +__all__ = ("RepositoryRuleDetailedOneof4",) 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 6f5aecd3c..6bf5b0d70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0413.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0108 import RepositoryRulePullRequestPropParameters +from .group_0104 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleDetailedOneof7(GitHubModel): - """RepositoryRuleDetailedOneof7""" +class RepositoryRuleDetailedOneof5(GitHubModel): + """RepositoryRuleDetailedOneof5""" - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + 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.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof7(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof7) +model_rebuild(RepositoryRuleDetailedOneof5) -__all__ = ("RepositoryRuleDetailedOneof7",) +__all__ = ("RepositoryRuleDetailedOneof5",) 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 0eb47986e..e9b15495d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0414.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0110 import RepositoryRuleRequiredStatusChecksPropParameters +class RepositoryRuleDetailedOneof6(GitHubModel): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof8(GitHubModel): - """RepositoryRuleDetailedOneof8""" - - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = 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 RepositoryRuleDetailedOneof8(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof8) +model_rebuild(RepositoryRuleDetailedOneof6) -__all__ = ("RepositoryRuleDetailedOneof8",) +__all__ = ("RepositoryRuleDetailedOneof6",) 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 3f83e7bc3..e0835a99e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0415.py @@ -17,11 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0107 import RepositoryRulePullRequestPropParameters -class RepositoryRuleDetailedOneof9(GitHubModel): - """RepositoryRuleDetailedOneof9""" - type: Literal["non_fast_forward"] = Field() +class RepositoryRuleDetailedOneof7(GitHubModel): + """RepositoryRuleDetailedOneof7""" + + 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.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof9(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof9) +model_rebuild(RepositoryRuleDetailedOneof7) -__all__ = ("RepositoryRuleDetailedOneof9",) +__all__ = ("RepositoryRuleDetailedOneof7",) 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 67313592b..76e1ad660 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0416.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0112 import RepositoryRuleCommitMessagePatternPropParameters +from .group_0109 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleDetailedOneof10(GitHubModel): - """RepositoryRuleDetailedOneof10""" +class RepositoryRuleDetailedOneof8(GitHubModel): + """RepositoryRuleDetailedOneof8""" - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = 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 RepositoryRuleDetailedOneof10(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof10) +model_rebuild(RepositoryRuleDetailedOneof8) -__all__ = ("RepositoryRuleDetailedOneof10",) +__all__ = ("RepositoryRuleDetailedOneof8",) 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 5cb3c9aba..3f83e7bc3 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,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0114 import RepositoryRuleCommitAuthorEmailPatternPropParameters +class RepositoryRuleDetailedOneof9(GitHubModel): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof11(GitHubModel): - """RepositoryRuleDetailedOneof11""" - - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET - ) + type: Literal["non_fast_forward"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof11(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof11) +model_rebuild(RepositoryRuleDetailedOneof9) -__all__ = ("RepositoryRuleDetailedOneof11",) +__all__ = ("RepositoryRuleDetailedOneof9",) 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 663ce0e81..84b60638d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0418.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0116 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0111 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleDetailedOneof12(GitHubModel): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof10(GitHubModel): + """RepositoryRuleDetailedOneof10""" - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof12(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof12) +model_rebuild(RepositoryRuleDetailedOneof10) -__all__ = ("RepositoryRuleDetailedOneof12",) +__all__ = ("RepositoryRuleDetailedOneof10",) 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 341b2b114..50a8c530f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0419.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0118 import RepositoryRuleBranchNamePatternPropParameters +from .group_0113 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleDetailedOneof13(GitHubModel): - """RepositoryRuleDetailedOneof13""" +class RepositoryRuleDetailedOneof11(GitHubModel): + """RepositoryRuleDetailedOneof11""" - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof13(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof13) +model_rebuild(RepositoryRuleDetailedOneof11) -__all__ = ("RepositoryRuleDetailedOneof13",) +__all__ = ("RepositoryRuleDetailedOneof11",) 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 dc5649fc5..ea62eef2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0420.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0120 import RepositoryRuleTagNamePatternPropParameters +from .group_0115 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleDetailedOneof14(GitHubModel): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof12(GitHubModel): + """RepositoryRuleDetailedOneof12""" - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof14(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof14) +model_rebuild(RepositoryRuleDetailedOneof12) -__all__ = ("RepositoryRuleDetailedOneof14",) +__all__ = ("RepositoryRuleDetailedOneof12",) 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 8c1ed3f1a..cc306e680 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0421.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0122 import RepositoryRuleFilePathRestrictionPropParameters +from .group_0117 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryRuleDetailedOneof15(GitHubModel): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof13(GitHubModel): + """RepositoryRuleDetailedOneof13""" - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof15(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof15) +model_rebuild(RepositoryRuleDetailedOneof13) -__all__ = ("RepositoryRuleDetailedOneof15",) +__all__ = ("RepositoryRuleDetailedOneof13",) 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 818c726e9..e54b3bf0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0422.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0124 import RepositoryRuleMaxFilePathLengthPropParameters +from .group_0119 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleDetailedOneof16(GitHubModel): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof14(GitHubModel): + """RepositoryRuleDetailedOneof14""" - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof16(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof16) +model_rebuild(RepositoryRuleDetailedOneof14) -__all__ = ("RepositoryRuleDetailedOneof16",) +__all__ = ("RepositoryRuleDetailedOneof14",) 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 47c5b6fa4..55f4be4ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0423.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0126 import RepositoryRuleFileExtensionRestrictionPropParameters +from .group_0121 import RepositoryRuleFilePathRestrictionPropParameters -class RepositoryRuleDetailedOneof17(GitHubModel): - """RepositoryRuleDetailedOneof17""" +class RepositoryRuleDetailedOneof15(GitHubModel): + """RepositoryRuleDetailedOneof15""" - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof17(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof17) +model_rebuild(RepositoryRuleDetailedOneof15) -__all__ = ("RepositoryRuleDetailedOneof17",) +__all__ = ("RepositoryRuleDetailedOneof15",) 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 3db1c9e47..68d4fd325 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0424.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0128 import RepositoryRuleMaxFileSizePropParameters +from .group_0123 import RepositoryRuleMaxFilePathLengthPropParameters -class RepositoryRuleDetailedOneof18(GitHubModel): - """RepositoryRuleDetailedOneof18""" +class RepositoryRuleDetailedOneof16(GitHubModel): + """RepositoryRuleDetailedOneof16""" - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof18(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof18) +model_rebuild(RepositoryRuleDetailedOneof16) -__all__ = ("RepositoryRuleDetailedOneof18",) +__all__ = ("RepositoryRuleDetailedOneof16",) 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 3dde4ac2d..ec8af0881 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0425.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0131 import RepositoryRuleWorkflowsPropParameters +from .group_0125 import RepositoryRuleFileExtensionRestrictionPropParameters -class RepositoryRuleDetailedOneof19(GitHubModel): - """RepositoryRuleDetailedOneof19""" +class RepositoryRuleDetailedOneof17(GitHubModel): + """RepositoryRuleDetailedOneof17""" - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof19(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof19) +model_rebuild(RepositoryRuleDetailedOneof17) -__all__ = ("RepositoryRuleDetailedOneof19",) +__all__ = ("RepositoryRuleDetailedOneof17",) 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 575c1b3d4..e0b1ce49e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0426.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0133 import RepositoryRuleCodeScanningPropParameters +from .group_0127 import RepositoryRuleMaxFileSizePropParameters -class RepositoryRuleDetailedOneof20(GitHubModel): - """RepositoryRuleDetailedOneof20""" +class RepositoryRuleDetailedOneof18(GitHubModel): + """RepositoryRuleDetailedOneof18""" - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +38,6 @@ class RepositoryRuleDetailedOneof20(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof20) +model_rebuild(RepositoryRuleDetailedOneof18) -__all__ = ("RepositoryRuleDetailedOneof20",) +__all__ = ("RepositoryRuleDetailedOneof18",) 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 510e9c05b..1e07de7a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0427.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,138 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0145 import ( - SecretScanningLocationCommit, - SecretScanningLocationDiscussionComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestReview, - SecretScanningLocationWikiCommit, -) -from .group_0146 import ( - SecretScanningLocationIssueComment, - SecretScanningLocationIssueTitle, - SecretScanningLocationPullRequestReviewComment, - SecretScanningLocationPullRequestTitle, -) -from .group_0147 import ( - SecretScanningLocationDiscussionBody, - SecretScanningLocationPullRequestComment, -) +from .group_0130 import RepositoryRuleWorkflowsPropParameters -class SecretScanningAlert(GitHubModel): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof19(GitHubModel): + """RepositoryRuleDetailedOneof19""" - 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( + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = 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." + description="The type of source for the ruleset that includes this rule.", ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + description="The name of the source of the ruleset that includes this rule.", ) - 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.", - ) - is_base64_encoded: Missing[Union[bool, None]] = Field( - default=UNSET, - description="A boolean value representing whether or not alert is base64 encoded", - ) - first_location_detected: Missing[ - Union[ - None, - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - has_more_locations: Missing[bool] = Field( - default=UNSET, - description="A boolean value representing whether or not the token in the alert was detected in more than one location.", + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningAlert) +model_rebuild(RepositoryRuleDetailedOneof19) -__all__ = ("SecretScanningAlert",) +__all__ = ("RepositoryRuleDetailedOneof19",) 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 4dfc9eaf0..b7c142ebe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0428.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,69 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0145 import ( - SecretScanningLocationCommit, - SecretScanningLocationDiscussionComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestReview, - SecretScanningLocationWikiCommit, -) -from .group_0146 import ( - SecretScanningLocationIssueComment, - SecretScanningLocationIssueTitle, - SecretScanningLocationPullRequestReviewComment, - SecretScanningLocationPullRequestTitle, -) -from .group_0147 import ( - SecretScanningLocationDiscussionBody, - SecretScanningLocationPullRequestComment, -) +from .group_0132 import RepositoryRuleCodeScanningPropParameters -class SecretScanningLocation(GitHubModel): - """SecretScanningLocation""" +class RepositoryRuleDetailedOneof20(GitHubModel): + """RepositoryRuleDetailedOneof20""" - 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( + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = 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.", + 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." ) - details: Missing[ - Union[ - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) -model_rebuild(SecretScanningLocation) +model_rebuild(RepositoryRuleDetailedOneof20) -__all__ = ("SecretScanningLocation",) +__all__ = ("RepositoryRuleDetailedOneof20",) 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 fa37297f6..40006023b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0429.py @@ -18,22 +18,138 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0146 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0147 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0148 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -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 SecretScanningAlert(GitHubModel): + """SecretScanningAlert""" + + 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`.", ) - expire_at: Missing[Union[datetime, None]] = Field( + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( default=UNSET, - description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - token_type: Missing[str] = Field( - default=UNSET, description="The token type this bypass is for." + 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.", + ) + is_base64_encoded: Missing[Union[bool, None]] = Field( + default=UNSET, + description="A boolean value representing whether or not alert is base64 encoded", + ) + first_location_detected: Missing[ + Union[ + None, + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + has_more_locations: Missing[bool] = Field( + default=UNSET, + description="A boolean value representing whether or not the token in the alert was detected in more than one location.", ) -model_rebuild(SecretScanningPushProtectionBypass) +model_rebuild(SecretScanningAlert) -__all__ = ("SecretScanningPushProtectionBypass",) +__all__ = ("SecretScanningAlert",) 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 11ebab9e4..fdb934877 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0430.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,70 +17,69 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0146 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0147 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0148 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -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 SecretScanningScan(GitHubModel): - """SecretScanningScan - - Information on a single scan performed by secret scanning on the repository - """ - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( - default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", - ) - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", - ) - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( +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 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"', + 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) -model_rebuild(SecretScanningScanHistory) -model_rebuild(SecretScanningScan) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) +model_rebuild(SecretScanningLocation) -__all__ = ( - "SecretScanningScan", - "SecretScanningScanHistory", - "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", -) +__all__ = ("SecretScanningLocation",) 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 947f5d932..fa37297f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0431.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,18 +19,21 @@ from githubkit.utils import UNSET -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" +class SecretScanningPushProtectionBypass(GitHubModel): + """SecretScanningPushProtectionBypass""" - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" + reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( + Field(default=UNSET, description="The reason for bypassing push protection.") ) - pattern_scope: Missing[str] = Field( + expire_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + 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(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) +model_rebuild(SecretScanningPushProtectionBypass) -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) +__all__ = ("SecretScanningPushProtectionBypass",) 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 b09ea6fff..11ebab9e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0432.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,119 +19,69 @@ from githubkit.utils import UNSET -class RepositoryAdvisoryCreate(GitHubModel): - """RepositoryAdvisoryCreate""" +class SecretScanningScanHistory(GitHubModel): + """SecretScanningScanHistory""" - 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`.", - ) + 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 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"', ) - cvss_vector_string: Missing[Union[str, None]] = Field( + completed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + description="The time that the scan was completed. Empty if the scan is running", ) - start_private_fork: Missing[bool] = Field( + started_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + description="The time that the scan was started. Empty if the scan is pending", ) -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 SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" -class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." + 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"', ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + completed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The time that the scan was completed. Empty if the scan is running", ) - patched_versions: Missing[Union[str, None]] = Field( + started_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", + description="The time that the scan was started. Empty if the scan is pending", ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" ) - - -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." + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', ) -model_rebuild(RepositoryAdvisoryCreate) -model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(SecretScanningScanHistory) +model_rebuild(SecretScanningScan) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) __all__ = ( - "RepositoryAdvisoryCreate", - "RepositoryAdvisoryCreatePropCreditsItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", + "SecretScanningScan", + "SecretScanningScanHistory", + "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", ) 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 db0858ff6..947f5d932 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0433.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,92 +16,18 @@ 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""" +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( - Field(description="The name of the package affected by the vulnerability.") + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + pattern_scope: Missing[str] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", - ) - patched_versions: Missing[Union[str, None]] = Field( - default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', ) -model_rebuild(PrivateVulnerabilityReportCreate) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) -__all__ = ( - "PrivateVulnerabilityReportCreate", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) 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 b379d895d..b09ea6fff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0434.py @@ -18,30 +18,26 @@ from githubkit.utils import UNSET -class RepositoryAdvisoryUpdate(GitHubModel): - """RepositoryAdvisoryUpdate""" +class RepositoryAdvisoryCreate(GitHubModel): + """RepositoryAdvisoryCreate""" - summary: Missing[str] = Field( - max_length=1024, default=UNSET, description="A short summary of the advisory." + summary: str = Field( + max_length=1024, description="A short summary of the advisory." ) - description: Missing[str] = Field( + description: 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.", - ) + 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[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( + credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( Field( default=UNSET, alias="credits", @@ -58,21 +54,14 @@ class RepositoryAdvisoryUpdate(GitHubModel): 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( + start_private_fork: Missing[bool] = Field( default=UNSET, - description="A list of team slugs which have been granted write access to the advisory.", + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", ) -class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryUpdatePropCreditsItems""" +class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryCreatePropCreditsItems""" login: str = Field(description="The username of the user credited.") type: Literal[ @@ -89,10 +78,10 @@ class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): ] = Field(description="The type of credit the user is receiving.") -class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" +class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( description="The name of the package affected by the vulnerability." ) vulnerable_version_range: Missing[Union[str, None]] = Field( @@ -108,8 +97,8 @@ class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): ) -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage The name of the package affected by the vulnerability. """ @@ -134,14 +123,14 @@ class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): ) -model_rebuild(RepositoryAdvisoryUpdate) -model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryAdvisoryCreate) +model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) __all__ = ( - "RepositoryAdvisoryUpdate", - "RepositoryAdvisoryUpdatePropCreditsItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", + "RepositoryAdvisoryCreate", + "RepositoryAdvisoryCreatePropCreditsItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ) 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 e8f958a86..db0858ff6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0435.py @@ -9,26 +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 -from .group_0003 import SimpleUser +class PrivateVulnerabilityReportCreate(GitHubModel): + """PrivateVulnerabilityReportCreate""" -class Stargazer(GitHubModel): - """Stargazer + 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.", + ) - Stargazer + +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. """ - starred_at: datetime = Field() - user: Union[None, SimpleUser] = 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(Stargazer) +model_rebuild(PrivateVulnerabilityReportCreate) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) -__all__ = ("Stargazer",) +__all__ = ( + "PrivateVulnerabilityReportCreate", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", +) 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 9fc28af36..b379d895d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0436.py @@ -9,22 +9,139 @@ 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 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 CommitActivity(GitHubModel): - """Commit Activity +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - Commit Activity + The name of the package affected by the vulnerability. """ - days: list[int] = Field() - total: int = Field() - week: 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(CommitActivity) +model_rebuild(RepositoryAdvisoryUpdate) +model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) -__all__ = ("CommitActivity",) +__all__ = ( + "RepositoryAdvisoryUpdate", + "RepositoryAdvisoryUpdatePropCreditsItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", +) 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 60311444a..e8f958a86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0437.py @@ -9,41 +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 ContributorActivity(GitHubModel): - """Contributor Activity +class Stargazer(GitHubModel): + """Stargazer - Contributor Activity + Stargazer """ - author: Union[None, SimpleUser] = Field() - total: int = Field() - weeks: list[ContributorActivityPropWeeksItems] = Field() + starred_at: datetime = Field() + user: Union[None, SimpleUser] = Field() -class ContributorActivityPropWeeksItems(GitHubModel): - """ContributorActivityPropWeeksItems""" +model_rebuild(Stargazer) - 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", -) +__all__ = ("Stargazer",) 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 43efe1baa..9fc28af36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0438.py @@ -14,13 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ParticipationStats(GitHubModel): - """Participation Stats""" +class CommitActivity(GitHubModel): + """Commit Activity - all_: list[int] = Field(alias="all") - owner: list[int] = Field() + Commit Activity + """ + days: list[int] = Field() + total: int = Field() + week: int = Field() -model_rebuild(ParticipationStats) -__all__ = ("ParticipationStats",) +model_rebuild(CommitActivity) + +__all__ = ("CommitActivity",) 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 146a849ce..60311444a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0439.py @@ -9,32 +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 RepositorySubscription(GitHubModel): - """Repository Invitation - Repository invitations let you manage who you collaborate with. +class ContributorActivity(GitHubModel): + """Contributor Activity + + Contributor Activity """ - 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() + 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(RepositorySubscription) +model_rebuild(ContributorActivity) +model_rebuild(ContributorActivityPropWeeksItems) -__all__ = ("RepositorySubscription",) +__all__ = ( + "ContributorActivity", + "ContributorActivityPropWeeksItems", +) 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 c5f394186..43efe1baa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0440.py @@ -14,30 +14,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class Tag(GitHubModel): - """Tag +class ParticipationStats(GitHubModel): + """Participation Stats""" - Tag - """ + all_: list[int] = Field(alias="all") + owner: list[int] = Field() - name: str = Field() - commit: TagPropCommit = Field() - zipball_url: str = Field() - tarball_url: str = Field() - node_id: str = Field() +model_rebuild(ParticipationStats) -class TagPropCommit(GitHubModel): - """TagPropCommit""" - - sha: str = Field() - url: str = Field() - - -model_rebuild(Tag) -model_rebuild(TagPropCommit) - -__all__ = ( - "Tag", - "TagPropCommit", -) +__all__ = ("ParticipationStats",) 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 527c8ec3d..146a849ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0441.py @@ -9,26 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class TagProtection(GitHubModel): - """Tag protection +class RepositorySubscription(GitHubModel): + """Repository Invitation - Tag protection + Repository invitations let you manage who you collaborate with. """ - 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() + 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(TagProtection) +model_rebuild(RepositorySubscription) -__all__ = ("TagProtection",) +__all__ = ("RepositorySubscription",) 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 72e23363a..c5f394186 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0442.py @@ -14,15 +14,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class Topic(GitHubModel): - """Topic +class Tag(GitHubModel): + """Tag - A topic aggregates entities that are related to a subject. + Tag """ - names: list[str] = Field() + name: str = Field() + commit: TagPropCommit = Field() + zipball_url: str = Field() + tarball_url: str = Field() + node_id: str = Field() -model_rebuild(Topic) +class TagPropCommit(GitHubModel): + """TagPropCommit""" -__all__ = ("Topic",) + sha: str = Field() + url: str = Field() + + +model_rebuild(Tag) +model_rebuild(TagPropCommit) + +__all__ = ( + "Tag", + "TagPropCommit", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0443.py b/githubkit/versions/ghec_v2022_11_28/models/group_0443.py index 8f9d3f9f8..527c8ec3d 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,26 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class TagProtection(GitHubModel): + """Tag protection -class Traffic(GitHubModel): - """Traffic""" + Tag protection + """ - timestamp: datetime = Field() - uniques: int = Field() - count: int = Field() + id: Missing[int] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + pattern: str = Field() -model_rebuild(Traffic) +model_rebuild(TagProtection) -__all__ = ("Traffic",) +__all__ = ("TagProtection",) 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 b2dd4bee5..72e23363a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0444.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0443 import Traffic +class Topic(GitHubModel): + """Topic -class CloneTraffic(GitHubModel): - """Clone Traffic - - Clone Traffic + A topic aggregates entities that are related to a subject. """ - count: int = Field() - uniques: int = Field() - clones: list[Traffic] = Field() + names: list[str] = Field() -model_rebuild(CloneTraffic) +model_rebuild(Topic) -__all__ = ("CloneTraffic",) +__all__ = ("Topic",) 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 97ab65074..8f9d3f9f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0445.py @@ -9,23 +9,21 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ContentTraffic(GitHubModel): - """Content Traffic - - Content Traffic - """ +class Traffic(GitHubModel): + """Traffic""" - path: str = Field() - title: str = Field() - count: int = Field() + timestamp: datetime = Field() uniques: int = Field() + count: int = Field() -model_rebuild(ContentTraffic) +model_rebuild(Traffic) -__all__ = ("ContentTraffic",) +__all__ = ("Traffic",) 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 7ced93dd8..2f5ed6ba3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0446.py @@ -13,18 +13,20 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0445 import Traffic -class ReferrerTraffic(GitHubModel): - """Referrer Traffic - Referrer Traffic +class CloneTraffic(GitHubModel): + """Clone Traffic + + Clone Traffic """ - referrer: str = Field() count: int = Field() uniques: int = Field() + clones: list[Traffic] = Field() -model_rebuild(ReferrerTraffic) +model_rebuild(CloneTraffic) -__all__ = ("ReferrerTraffic",) +__all__ = ("CloneTraffic",) 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 ea6b707ea..97ab65074 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0447.py @@ -13,20 +13,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0443 import Traffic +class ContentTraffic(GitHubModel): + """Content Traffic -class ViewTraffic(GitHubModel): - """View Traffic - - View Traffic + Content Traffic """ + path: str = Field() + title: str = Field() count: int = Field() uniques: int = Field() - views: list[Traffic] = Field() -model_rebuild(ViewTraffic) +model_rebuild(ContentTraffic) -__all__ = ("ViewTraffic",) +__all__ = ("ContentTraffic",) 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 69adf9345..7ced93dd8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0448.py @@ -9,55 +9,22 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class 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 ReferrerTraffic(GitHubModel): + """Referrer Traffic + + Referrer Traffic + """ + + referrer: str = Field() + count: int = Field() + uniques: int = Field() + + +model_rebuild(ReferrerTraffic) + +__all__ = ("ReferrerTraffic",) 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 2d5800d81..ef674beec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0449.py @@ -9,37 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0445 import Traffic -class Meta(GitHubModel): - """Meta +class ViewTraffic(GitHubModel): + """View Traffic - The metadata associated with the creation/updates to the user. + View Traffic """ - resource_type: Literal["User", "Group"] = Field( - alias="resourceType", description="A type of a resource" - ) - created: Missing[str] = Field( - default=UNSET, description="A date and time when the user was created." - ) - last_modified: Missing[str] = Field( - default=UNSET, - alias="lastModified", - description="A data and time when the user was last modified.", - ) - location: Missing[str] = Field( - default=UNSET, description="A URL location of an object" - ) - - -model_rebuild(Meta) - -__all__ = ("Meta",) + count: int = Field() + uniques: int = Field() + views: list[Traffic] = Field() + + +model_rebuild(ViewTraffic) + +__all__ = ("ViewTraffic",) 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 c06ffb678..69adf9345 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0450.py @@ -17,11 +17,9 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0449 import Meta - -class ScimEnterpriseGroupResponse(GitHubModel): - """ScimEnterpriseGroupResponse""" +class GroupResponse(GitHubModel): + """GroupResponse""" schemas: list[ Literal[ @@ -41,20 +39,13 @@ class ScimEnterpriseGroupResponse(GitHubModel): alias="displayName", description="A human-readable name for a security group.", ) - members: Missing[list[ScimEnterpriseGroupResponseMergedMembers]] = Field( + members: Missing[list[GroupResponsePropMembersItems]] = Field( default=UNSET, description="The group members." ) - id: Missing[str] = Field( - default=UNSET, description="The internally generated id for the group object." - ) - meta: Missing[Meta] = Field( - default=UNSET, - description="The metadata associated with the creation/updates to the user.", - ) -class ScimEnterpriseGroupResponseMergedMembers(GitHubModel): - """ScimEnterpriseGroupResponseMergedMembers""" +class GroupResponsePropMembersItems(GitHubModel): + """GroupResponsePropMembersItems""" value: str = Field(description="The local unique identifier for the member") ref: str = Field(alias="$ref") @@ -63,34 +54,10 @@ class ScimEnterpriseGroupResponseMergedMembers(GitHubModel): ) -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) +model_rebuild(GroupResponse) +model_rebuild(GroupResponsePropMembersItems) __all__ = ( - "ScimEnterpriseGroupList", - "ScimEnterpriseGroupResponse", - "ScimEnterpriseGroupResponseMergedMembers", + "GroupResponse", + "GroupResponsePropMembersItems", ) 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 157e76d26..2d5800d81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0451.py @@ -9,42 +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_0449 import Meta +class Meta(GitHubModel): + """Meta -class ScimEnterpriseGroupResponseAllof1(GitHubModel): - """ScimEnterpriseGroupResponseAllof1""" + The metadata associated with the creation/updates to the user. + """ - id: Missing[str] = Field( - default=UNSET, description="The internally generated id for the group object." + resource_type: Literal["User", "Group"] = Field( + alias="resourceType", description="A type of a resource" ) - members: Missing[list[ScimEnterpriseGroupResponseAllof1PropMembersItems]] = Field( - default=UNSET, description="The security group members." + created: Missing[str] = Field( + default=UNSET, description="A date and time when the user was created." ) - meta: Missing[Meta] = Field( + last_modified: Missing[str] = Field( default=UNSET, - description="The metadata associated with the creation/updates to the user.", + 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" ) -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) +model_rebuild(Meta) -__all__ = ( - "ScimEnterpriseGroupResponseAllof1", - "ScimEnterpriseGroupResponseAllof1PropMembersItems", -) +__all__ = ("Meta",) 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 a07936c10..3dfbd4f43 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0452.py @@ -9,42 +9,88 @@ 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_0451 import Meta -class Group(GitHubModel): - """Group""" - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] = Field( +class ScimEnterpriseGroupResponse(GitHubModel): + """ScimEnterpriseGroupResponse""" + + schemas: list[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] = Field( description="The URIs that are used to indicate the namespaces of the SCIM schemas." ) - external_id: str = Field( + 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: str = Field( - alias="displayName", description="A human-readable name for a security group." + 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.", ) - members: list[GroupPropMembersItems] = Field(description="The group members.") -class GroupPropMembersItems(GitHubModel): - """GroupPropMembersItems""" +class ScimEnterpriseGroupResponseMergedMembers(GitHubModel): + """ScimEnterpriseGroupResponseMergedMembers""" 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" + 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(Group) -model_rebuild(GroupPropMembersItems) +model_rebuild(ScimEnterpriseGroupResponse) +model_rebuild(ScimEnterpriseGroupResponseMergedMembers) +model_rebuild(ScimEnterpriseGroupList) __all__ = ( - "Group", - "GroupPropMembersItems", + "ScimEnterpriseGroupList", + "ScimEnterpriseGroupResponse", + "ScimEnterpriseGroupResponseMergedMembers", ) 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 b355bee00..dd04636c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0453.py @@ -9,39 +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_0451 import Meta + -class PatchSchema(GitHubModel): - """PatchSchema""" +class ScimEnterpriseGroupResponseAllof1(GitHubModel): + """ScimEnterpriseGroupResponseAllof1""" - operations: list[PatchSchemaPropOperationsItems] = Field( - alias="Operations", description="patch operations list" + 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.", ) - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] = Field() -class PatchSchemaPropOperationsItems(GitHubModel): - """PatchSchemaPropOperationsItems""" +class ScimEnterpriseGroupResponseAllof1PropMembersItems(GitHubModel): + """ScimEnterpriseGroupResponseAllof1PropMembersItems""" - op: Literal["add", "replace", "remove"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[str] = Field( - default=UNSET, - description="Corresponding 'value' of that field specified by 'path'", - ) + value: Missing[str] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET, alias="$ref") + display: Missing[str] = Field(default=UNSET) -model_rebuild(PatchSchema) -model_rebuild(PatchSchemaPropOperationsItems) +model_rebuild(ScimEnterpriseGroupResponseAllof1) +model_rebuild(ScimEnterpriseGroupResponseAllof1PropMembersItems) __all__ = ( - "PatchSchema", - "PatchSchemaPropOperationsItems", + "ScimEnterpriseGroupResponseAllof1", + "ScimEnterpriseGroupResponseAllof1PropMembersItems", ) 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 97cce8b53..a07936c10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0454.py @@ -9,45 +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 UserNameResponse(GitHubModel): - """UserNameResponse""" +class Group(GitHubModel): + """Group""" - 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." + 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." ) - given_name: Missing[str] = Field( - default=UNSET, alias="givenName", description="The given name of the user." + external_id: str = Field( + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", ) - middle_name: Missing[str] = Field( - default=UNSET, alias="middleName", description="The middle name(s) of the user." + display_name: str = Field( + alias="displayName", description="A human-readable name for a security group." ) + members: list[GroupPropMembersItems] = Field(description="The group members.") -class UserEmailsResponseItems(GitHubModel): - """UserEmailsResponseItems""" +class GroupPropMembersItems(GitHubModel): + """GroupPropMembersItems""" - 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." + 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(UserNameResponse) -model_rebuild(UserEmailsResponseItems) +model_rebuild(Group) +model_rebuild(GroupPropMembersItems) __all__ = ( - "UserEmailsResponseItems", - "UserNameResponse", + "Group", + "GroupPropMembersItems", ) 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 f1b1e3988..b355bee00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0455.py @@ -18,28 +18,30 @@ 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 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 PatchSchemaPropOperationsItems(GitHubModel): + """PatchSchemaPropOperationsItems""" + + 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'", ) -model_rebuild(UserRoleItems) +model_rebuild(PatchSchema) +model_rebuild(PatchSchemaPropOperationsItems) -__all__ = ("UserRoleItems",) +__all__ = ( + "PatchSchema", + "PatchSchemaPropOperationsItems", +) 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 f36292efc..97cce8b53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0456.py @@ -9,47 +9,45 @@ 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_0454 import UserEmailsResponseItems, UserNameResponse -from .group_0455 import UserRoleItems - -class UserResponse(GitHubModel): - """UserResponse""" +class UserNameResponse(GitHubModel): + """UserNameResponse""" - 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( + formatted: Missing[str] = Field( default=UNSET, - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", + description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", ) - 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." + family_name: Missing[str] = Field( + default=UNSET, alias="familyName", description="The family name of 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.", + given_name: Missing[str] = Field( + default=UNSET, alias="givenName", description="The given name of the user." ) - emails: list[UserEmailsResponseItems] = Field( - description="The emails for the user." + middle_name: Missing[str] = Field( + default=UNSET, alias="middleName", description="The middle name(s) of the user." ) - roles: Missing[list[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." + + +class UserEmailsResponseItems(GitHubModel): + """UserEmailsResponseItems""" + + value: str = Field(description="The email address.") + type: Missing[str] = Field(default=UNSET, description="The type of email address.") + primary: Missing[bool] = Field( + default=UNSET, description="Whether this email address is the primary address." ) -model_rebuild(UserResponse) +model_rebuild(UserNameResponse) +model_rebuild(UserEmailsResponseItems) -__all__ = ("UserResponse",) +__all__ = ( + "UserEmailsResponseItems", + "UserNameResponse", +) 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 b5912cbf0..f1b1e3988 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0457.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0457.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,75 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0449 import Meta -from .group_0454 import UserEmailsResponseItems, UserNameResponse -from .group_0455 import UserRoleItems -from .group_0459 import ScimEnterpriseUserResponseAllof1PropGroupsItems +class UserRoleItems(GitHubModel): + """UserRoleItems""" -class ScimEnterpriseUserResponse(GitHubModel): - """ScimEnterpriseUserResponse""" - - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - active: bool = Field(description="Whether the user active in the IdP.") - user_name: Missing[str] = Field( - default=UNSET, alias="userName", description="The username for the user." - ) - name: Missing[UserNameResponse] = Field(default=UNSET) - display_name: Missing[Union[str, None]] = Field( - default=UNSET, - alias="displayName", - description="A human-readable name for the user.", - ) - emails: list[UserEmailsResponseItems] = Field( - description="The emails for the user." - ) - roles: Missing[list[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." - ) - id: str = Field(description="The internally generated id for the user object.") - groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( - default=UNSET, - description="Provisioned SCIM groups that the user is a member of.", - ) - meta: Meta = Field( - description="The metadata associated with the creation/updates to the user." - ) - - -class ScimEnterpriseUserList(GitHubModel): - """ScimEnterpriseUserList""" - - 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" + display: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + value: Literal[ + "user", + "27d9891d-2c17-4f45-a262-781a0e55c80a", + "guest_collaborator", + "1ebc4a02-e56c-43a6-92a5-02ee09b90824", + "enterprise_owner", + "981df190-8801-4618-a08a-d91f6206c954", + "ba4987ab-a1c3-412a-b58c-360fc407cb10", + "billing_manager", + "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", + "e6be2762-e4ad-4108-b72d-1bbe884a0f91", + ] = Field(description="The role value representing a user role in GitHub.") + primary: Missing[bool] = Field( + default=UNSET, description="Is the role a primary role for the user." ) -model_rebuild(ScimEnterpriseUserResponse) -model_rebuild(ScimEnterpriseUserList) +model_rebuild(UserRoleItems) -__all__ = ( - "ScimEnterpriseUserList", - "ScimEnterpriseUserResponse", -) +__all__ = ("UserRoleItems",) 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 4f2290a7e..53865d3af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0458.py @@ -9,29 +9,47 @@ 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_0449 import Meta -from .group_0459 import ScimEnterpriseUserResponseAllof1PropGroupsItems +from .group_0456 import UserEmailsResponseItems, UserNameResponse +from .group_0457 import UserRoleItems -class ScimEnterpriseUserResponseAllof1(GitHubModel): - """ScimEnterpriseUserResponseAllof1""" +class UserResponse(GitHubModel): + """UserResponse""" - id: str = Field(description="The internally generated id for the user object.") - groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( + 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, - description="Provisioned SCIM groups that the user is a member of.", + alias="displayName", + description="A human-readable name for the user.", + ) + emails: list[UserEmailsResponseItems] = Field( + description="The emails for the user." ) - meta: Meta = Field( - description="The metadata associated with the creation/updates to the user." + roles: Missing[list[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." ) -model_rebuild(ScimEnterpriseUserResponseAllof1) +model_rebuild(UserResponse) -__all__ = ("ScimEnterpriseUserResponseAllof1",) +__all__ = ("UserResponse",) 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 2e84d7213..87892e2b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0459.py @@ -9,21 +9,83 @@ 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_0451 import Meta +from .group_0456 import UserEmailsResponseItems, UserNameResponse +from .group_0457 import UserRoleItems +from .group_0461 import ScimEnterpriseUserResponseAllof1PropGroupsItems + + +class ScimEnterpriseUserResponse(GitHubModel): + """ScimEnterpriseUserResponse""" + + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: Missing[Union[str, None]] = Field( + default=UNSET, + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + active: bool = Field(description="Whether the user active in the IdP.") + user_name: Missing[str] = Field( + default=UNSET, alias="userName", description="The username for the user." + ) + name: Missing[UserNameResponse] = Field(default=UNSET) + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="A human-readable name for the user.", + ) + emails: list[UserEmailsResponseItems] = Field( + description="The emails for the user." + ) + roles: Missing[list[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." + ) + id: str = Field(description="The internally generated id for the user object.") + groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( + default=UNSET, + description="Provisioned SCIM groups that the user is a member of.", + ) + meta: Meta = Field( + description="The metadata associated with the creation/updates to the user." + ) + -class ScimEnterpriseUserResponseAllof1PropGroupsItems(GitHubModel): - """ScimEnterpriseUserResponseAllof1PropGroupsItems""" +class ScimEnterpriseUserList(GitHubModel): + """ScimEnterpriseUserList""" - value: Missing[str] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET, alias="$ref") - display: Missing[str] = Field(default=UNSET) + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] = ( + Field( + description="The URIs that are used to indicate the namespaces of the list SCIM schemas." + ) + ) + total_results: int = Field( + alias="totalResults", description="Number of results found" + ) + resources: list[ScimEnterpriseUserResponse] = Field( + alias="Resources", description="Information about each provisioned account." + ) + start_index: int = Field( + alias="startIndex", description="A starting index for the returned page" + ) + items_per_page: int = Field( + alias="itemsPerPage", description="Number of objects per page" + ) -model_rebuild(ScimEnterpriseUserResponseAllof1PropGroupsItems) +model_rebuild(ScimEnterpriseUserResponse) +model_rebuild(ScimEnterpriseUserList) -__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItems",) +__all__ = ( + "ScimEnterpriseUserList", + "ScimEnterpriseUserResponse", +) 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 c64525b7f..94f5db00d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0460.py @@ -9,73 +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_0455 import UserRoleItems - - -class User(GitHubModel): - """User""" - - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: str = Field( - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - active: bool = Field(description="Whether the user active in the IdP.") - user_name: str = Field(alias="userName", description="The username for the user.") - name: Missing[UserName] = Field(default=UNSET) - display_name: str = Field( - alias="displayName", description="A human-readable name for the user." - ) - emails: list[UserEmailsItems] = Field(description="The emails for the user.") - roles: Missing[list[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." - ) +from .group_0451 import Meta +from .group_0461 import ScimEnterpriseUserResponseAllof1PropGroupsItems -class UserName(GitHubModel): - """UserName""" +class ScimEnterpriseUserResponseAllof1(GitHubModel): + """ScimEnterpriseUserResponseAllof1""" - formatted: Missing[str] = Field( + id: str = Field(description="The internally generated id for the user object.") + groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = 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." + description="Provisioned SCIM groups that the user is a member of.", ) - - -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." + meta: Meta = Field( + description="The metadata associated with the creation/updates to the user." ) -model_rebuild(User) -model_rebuild(UserName) -model_rebuild(UserEmailsItems) +model_rebuild(ScimEnterpriseUserResponseAllof1) -__all__ = ( - "User", - "UserEmailsItems", - "UserName", -) +__all__ = ("ScimEnterpriseUserResponseAllof1",) 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 17bf8b83c..2e84d7213 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0461.py @@ -9,149 +9,21 @@ 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 - - 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( - 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." - ) - operations: Missing[list[ScimUserPropOperationsItems]] = Field( - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="Set of operations to be performed", - ) - groups: Missing[list[ScimUserPropGroupsItems]] = Field( - default=UNSET, description="associated groups" - ) - roles: Missing[list[ScimUserPropRolesItems]] = Field(default=UNSET) - - -class ScimUserPropName(GitHubModel): - """ScimUserPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") - family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") - formatted: Missing[Union[str, None]] = Field(default=UNSET) - - -class ScimUserPropEmailsItems(GitHubModel): - """ScimUserPropEmailsItems""" - - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class ScimUserPropMeta(GitHubModel): - """ScimUserPropMeta""" - - resource_type: Missing[str] = Field(default=UNSET, alias="resourceType") - created: Missing[datetime] = Field(default=UNSET) - last_modified: Missing[datetime] = Field(default=UNSET, alias="lastModified") - location: Missing[str] = Field(default=UNSET) - - -class ScimUserPropGroupsItems(GitHubModel): - """ScimUserPropGroupsItems""" - - value: Missing[str] = Field(default=UNSET) - display: Missing[str] = Field(default=UNSET) - - -class ScimUserPropRolesItems(GitHubModel): - """ScimUserPropRolesItems""" +class ScimEnterpriseUserResponseAllof1PropGroupsItems(GitHubModel): + """ScimEnterpriseUserResponseAllof1PropGroupsItems""" value: Missing[str] = Field(default=UNSET) - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET, alias="$ref") display: Missing[str] = Field(default=UNSET) -class ScimUserPropOperationsItems(GitHubModel): - """ScimUserPropOperationsItems""" - - op: Literal["add", "remove", "replace"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[str, ScimUserPropOperationsItemsPropValueOneof1, list[Any]] - ] = Field(default=UNSET) - - -class ScimUserPropOperationsItemsPropValueOneof1(GitHubModel): - """ScimUserPropOperationsItemsPropValueOneof1""" - - -model_rebuild(ScimUserList) -model_rebuild(ScimUser) -model_rebuild(ScimUserPropName) -model_rebuild(ScimUserPropEmailsItems) -model_rebuild(ScimUserPropMeta) -model_rebuild(ScimUserPropGroupsItems) -model_rebuild(ScimUserPropRolesItems) -model_rebuild(ScimUserPropOperationsItems) -model_rebuild(ScimUserPropOperationsItemsPropValueOneof1) +model_rebuild(ScimEnterpriseUserResponseAllof1PropGroupsItems) -__all__ = ( - "ScimUser", - "ScimUserList", - "ScimUserPropEmailsItems", - "ScimUserPropGroupsItems", - "ScimUserPropMeta", - "ScimUserPropName", - "ScimUserPropOperationsItems", - "ScimUserPropOperationsItemsPropValueOneof1", - "ScimUserPropRolesItems", -) +__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItems",) 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 46d30061f..d37793a82 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0462.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,30 +17,65 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0457 import UserRoleItems -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 User(GitHubModel): + """User""" + + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: str = Field( + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + active: bool = Field(description="Whether the user active in the IdP.") + user_name: str = Field(alias="userName", description="The username for the user.") + name: Missing[UserName] = Field(default=UNSET) + display_name: str = Field( + alias="displayName", description="A human-readable name for the user." + ) + emails: list[UserEmailsItems] = Field(description="The emails for the user.") + roles: Missing[list[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." + ) + + +class UserName(GitHubModel): + """UserName""" + + formatted: Missing[str] = Field( + default=UNSET, + description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", + ) + family_name: str = Field( + alias="familyName", description="The family name of the user." + ) + given_name: str = Field( + alias="givenName", description="The given name of the user." + ) + middle_name: Missing[str] = Field( + default=UNSET, alias="middleName", description="The middle name(s) of the user." ) -class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): - """SearchResultTextMatchesItemsPropMatchesItems""" +class UserEmailsItems(GitHubModel): + """UserEmailsItems""" - text: Missing[str] = Field(default=UNSET) - indices: Missing[list[int]] = Field(default=UNSET) + 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(SearchResultTextMatchesItems) -model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) +model_rebuild(User) +model_rebuild(UserName) +model_rebuild(UserEmailsItems) __all__ = ( - "SearchResultTextMatchesItems", - "SearchResultTextMatchesItemsPropMatchesItems", + "User", + "UserEmailsItems", + "UserName", ) 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 36957b8f0..17bf8b83c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0463.py @@ -10,55 +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_0176 import MinimalRepository -from .group_0462 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 CodeSearchResultItem(GitHubModel): - """Code Search Result Item - Code Search Result Item +class ScimUser(GitHubModel): + """SCIM /Users + + SCIM /Users provisioning endpoints """ - 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[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", ) - 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" + 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." ) + operations: Missing[list[ScimUserPropOperationsItems]] = Field( + min_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="Set of operations to be performed", + ) + groups: Missing[list[ScimUserPropGroupsItems]] = Field( + default=UNSET, description="associated groups" + ) + roles: Missing[list[ScimUserPropRolesItems]] = Field(default=UNSET) + + +class ScimUserPropName(GitHubModel): + """ScimUserPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") + family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") + formatted: Missing[Union[str, None]] = Field(default=UNSET) + + +class ScimUserPropEmailsItems(GitHubModel): + """ScimUserPropEmailsItems""" + + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class ScimUserPropMeta(GitHubModel): + """ScimUserPropMeta""" + + resource_type: Missing[str] = Field(default=UNSET, alias="resourceType") + created: Missing[datetime] = Field(default=UNSET) + last_modified: Missing[datetime] = Field(default=UNSET, alias="lastModified") + location: Missing[str] = Field(default=UNSET) + + +class ScimUserPropGroupsItems(GitHubModel): + """ScimUserPropGroupsItems""" + + value: Missing[str] = Field(default=UNSET) + display: Missing[str] = Field(default=UNSET) + + +class ScimUserPropRolesItems(GitHubModel): + """ScimUserPropRolesItems""" + + value: Missing[str] = Field(default=UNSET) + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + display: Missing[str] = Field(default=UNSET) + + +class ScimUserPropOperationsItems(GitHubModel): + """ScimUserPropOperationsItems""" + op: Literal["add", "remove", "replace"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[str, ScimUserPropOperationsItemsPropValueOneof1, list[Any]] + ] = Field(default=UNSET) -class SearchCodeGetResponse200(GitHubModel): - """SearchCodeGetResponse200""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CodeSearchResultItem] = Field() +class ScimUserPropOperationsItemsPropValueOneof1(GitHubModel): + """ScimUserPropOperationsItemsPropValueOneof1""" -model_rebuild(CodeSearchResultItem) -model_rebuild(SearchCodeGetResponse200) +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__ = ( - "CodeSearchResultItem", - "SearchCodeGetResponse200", + "ScimUser", + "ScimUserList", + "ScimUserPropEmailsItems", + "ScimUserPropGroupsItems", + "ScimUserPropMeta", + "ScimUserPropName", + "ScimUserPropOperationsItems", + "ScimUserPropOperationsItemsPropValueOneof1", + "ScimUserPropRolesItems", ) 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 bae522c4c..46d30061f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0464.py @@ -17,59 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0176 import MinimalRepository -from .group_0273 import GitUser -from .group_0462 import SearchResultTextMatchesItems -from .group_0465 import CommitSearchResultItemPropCommit - - -class CommitSearchResultItem(GitHubModel): - """Commit Search Result Item - - Commit Search Result Item - """ - - url: str = Field() - sha: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitSearchResultItemPropCommit = Field() - author: Union[None, SimpleUser] = Field() - committer: Union[None, GitUser] = Field() - parents: list[CommitSearchResultItemPropParentsItems] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - node_id: str = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) +class SearchResultTextMatchesItems(GitHubModel): + """SearchResultTextMatchesItems""" -class CommitSearchResultItemPropParentsItems(GitHubModel): - """CommitSearchResultItemPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = 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 SearchCommitsGetResponse200(GitHubModel): - """SearchCommitsGetResponse200""" +class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): + """SearchResultTextMatchesItemsPropMatchesItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CommitSearchResultItem] = Field() + text: Missing[str] = Field(default=UNSET) + indices: Missing[list[int]] = Field(default=UNSET) -model_rebuild(CommitSearchResultItem) -model_rebuild(CommitSearchResultItemPropParentsItems) -model_rebuild(SearchCommitsGetResponse200) +model_rebuild(SearchResultTextMatchesItems) +model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) __all__ = ( - "CommitSearchResultItem", - "CommitSearchResultItemPropParentsItems", - "SearchCommitsGetResponse200", + "SearchResultTextMatchesItems", + "SearchResultTextMatchesItemsPropMatchesItems", ) 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 6da7b5955..b6950411a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0465.py @@ -18,43 +18,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0273 import GitUser -from .group_0274 import Verification +from .group_0178 import MinimalRepository +from .group_0464 import SearchResultTextMatchesItems -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 CodeSearchResultItem(GitHubModel): + """Code Search Result Item - -class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): - """CommitSearchResultItemPropCommitPropAuthor""" + Code Search Result Item + """ name: str = Field() - email: str = Field() - date: datetime = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: str = Field() + html_url: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + score: float = Field() + file_size: Missing[int] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + last_modified_at: Missing[datetime] = Field(default=UNSET) + line_numbers: Missing[list[str]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) -class CommitSearchResultItemPropCommitPropTree(GitHubModel): - """CommitSearchResultItemPropCommitPropTree""" +class SearchCodeGetResponse200(GitHubModel): + """SearchCodeGetResponse200""" - sha: str = Field() - url: str = Field() + total_count: int = Field() + incomplete_results: bool = Field() + items: list[CodeSearchResultItem] = Field() -model_rebuild(CommitSearchResultItemPropCommit) -model_rebuild(CommitSearchResultItemPropCommitPropAuthor) -model_rebuild(CommitSearchResultItemPropCommitPropTree) +model_rebuild(CodeSearchResultItem) +model_rebuild(SearchCodeGetResponse200) __all__ = ( - "CommitSearchResultItemPropCommit", - "CommitSearchResultItemPropCommitPropAuthor", - "CommitSearchResultItemPropCommitPropTree", + "CodeSearchResultItem", + "SearchCodeGetResponse200", ) 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 94d05ea09..8b6ae1bef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0466.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,129 +18,58 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0020 import Repository -from .group_0157 import Milestone -from .group_0158 import IssueType -from .group_0159 import ReactionRollup -from .group_0462 import SearchResultTextMatchesItems +from .group_0178 import MinimalRepository +from .group_0275 import GitUser +from .group_0464 import SearchResultTextMatchesItems +from .group_0467 import CommitSearchResultItemPropCommit -class IssueSearchResultItem(GitHubModel): - """Issue Search Result Item +class CommitSearchResultItem(GitHubModel): + """Commit Search Result Item - Issue Search Result Item + Commit Search Result Item """ url: str = Field() - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() + sha: 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" + 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" ) - 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() + score: float = Field() + node_id: str = Field() text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) - body: Missing[str] = Field(default=UNSET) - score: float = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - draft: Missing[bool] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -class IssueSearchResultItemPropLabelsItems(GitHubModel): - """IssueSearchResultItemPropLabelsItems""" +class CommitSearchResultItemPropParentsItems(GitHubModel): + """CommitSearchResultItemPropParentsItems""" - 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() + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) -class SearchIssuesGetResponse200(GitHubModel): - """SearchIssuesGetResponse200""" +class SearchCommitsGetResponse200(GitHubModel): + """SearchCommitsGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[IssueSearchResultItem] = Field() + items: list[CommitSearchResultItem] = Field() -model_rebuild(IssueSearchResultItem) -model_rebuild(IssueSearchResultItemPropLabelsItems) -model_rebuild(IssueSearchResultItemPropSubIssuesSummary) -model_rebuild(IssueSearchResultItemPropPullRequest) -model_rebuild(SearchIssuesGetResponse200) +model_rebuild(CommitSearchResultItem) +model_rebuild(CommitSearchResultItemPropParentsItems) +model_rebuild(SearchCommitsGetResponse200) __all__ = ( - "IssueSearchResultItem", - "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropPullRequest", - "IssueSearchResultItemPropSubIssuesSummary", - "SearchIssuesGetResponse200", + "CommitSearchResultItem", + "CommitSearchResultItemPropParentsItems", + "SearchCommitsGetResponse200", ) 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 368dbb33b..ec8d7abac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0467.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -17,40 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0462 import SearchResultTextMatchesItems +from .group_0275 import GitUser +from .group_0276 import Verification -class LabelSearchResultItem(GitHubModel): - """Label Search Result Item +class CommitSearchResultItemPropCommit(GitHubModel): + """CommitSearchResultItemPropCommit""" - Label Search Result Item - """ - - id: int = Field() - node_id: str = Field() + 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() - 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" - ) + email: str = Field() + date: datetime = Field() -class SearchLabelsGetResponse200(GitHubModel): - """SearchLabelsGetResponse200""" +class CommitSearchResultItemPropCommitPropTree(GitHubModel): + """CommitSearchResultItemPropCommitPropTree""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[LabelSearchResultItem] = Field() + sha: str = Field() + url: str = Field() -model_rebuild(LabelSearchResultItem) -model_rebuild(SearchLabelsGetResponse200) +model_rebuild(CommitSearchResultItemPropCommit) +model_rebuild(CommitSearchResultItemPropCommitPropAuthor) +model_rebuild(CommitSearchResultItemPropCommitPropTree) __all__ = ( - "LabelSearchResultItem", - "SearchLabelsGetResponse200", + "CommitSearchResultItemPropCommit", + "CommitSearchResultItemPropCommitPropAuthor", + "CommitSearchResultItemPropCommitPropTree", ) 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 d25b22cd4..fee3c764c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0468.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,138 +19,120 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple -from .group_0462 import SearchResultTextMatchesItems +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0158 import Milestone +from .group_0159 import IssueType +from .group_0160 import ReactionRollup +from .group_0161 import SubIssuesSummary +from .group_0464 import SearchResultTextMatchesItems -class RepoSearchResultItem(GitHubModel): - """Repo Search Result Item +class IssueSearchResultItem(GitHubModel): + """Issue Search Result Item - Repo 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() - 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() + 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[SubIssuesSummary] = 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() - 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() + 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() - 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." + 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.", ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + draft: Missing[bool] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." ) - 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" + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - 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) + 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 RepoSearchResultItemPropPermissions(GitHubModel): - """RepoSearchResultItemPropPermissions""" +class IssueSearchResultItemPropPullRequest(GitHubModel): + """IssueSearchResultItemPropPullRequest""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -class SearchRepositoriesGetResponse200(GitHubModel): - """SearchRepositoriesGetResponse200""" +class SearchIssuesGetResponse200(GitHubModel): + """SearchIssuesGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[RepoSearchResultItem] = Field() + items: list[IssueSearchResultItem] = Field() -model_rebuild(RepoSearchResultItem) -model_rebuild(RepoSearchResultItemPropPermissions) -model_rebuild(SearchRepositoriesGetResponse200) +model_rebuild(IssueSearchResultItem) +model_rebuild(IssueSearchResultItemPropLabelsItems) +model_rebuild(IssueSearchResultItemPropPullRequest) +model_rebuild(SearchIssuesGetResponse200) __all__ = ( - "RepoSearchResultItem", - "RepoSearchResultItemPropPermissions", - "SearchRepositoriesGetResponse200", + "IssueSearchResultItem", + "IssueSearchResultItemPropLabelsItems", + "IssueSearchResultItemPropPullRequest", + "SearchIssuesGetResponse200", ) 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 9b0076974..8fe0f9dfb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0469.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,93 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0462 import SearchResultTextMatchesItems +from .group_0464 import SearchResultTextMatchesItems -class TopicSearchResultItem(GitHubModel): - """Topic Search Result Item +class LabelSearchResultItem(GitHubModel): + """Label Search Result Item - Topic Search Result Item + Label Search Result Item """ + id: int = Field() + node_id: str = Field() + url: str = Field() name: str = Field() - display_name: Union[str, None] = Field() - short_description: Union[str, None] = Field() + color: str = Field() + default: bool = 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""" +class SearchLabelsGetResponse200(GitHubModel): + """SearchLabelsGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[TopicSearchResultItem] = Field() + items: list[LabelSearchResultItem] = Field() -model_rebuild(TopicSearchResultItem) -model_rebuild(TopicSearchResultItemPropRelatedItems) -model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) -model_rebuild(TopicSearchResultItemPropAliasesItems) -model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) -model_rebuild(SearchTopicsGetResponse200) +model_rebuild(LabelSearchResultItem) +model_rebuild(SearchLabelsGetResponse200) __all__ = ( - "SearchTopicsGetResponse200", - "TopicSearchResultItem", - "TopicSearchResultItemPropAliasesItems", - "TopicSearchResultItemPropAliasesItemsPropTopicRelation", - "TopicSearchResultItemPropRelatedItems", - "TopicSearchResultItemPropRelatedItemsPropTopicRelation", + "LabelSearchResultItem", + "SearchLabelsGetResponse200", ) 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 55df8be28..96de7e900 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0470.py @@ -18,66 +18,139 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0462 import SearchResultTextMatchesItems +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0464 import SearchResultTextMatchesItems -class UserSearchResultItem(GitHubModel): - """User Search Result Item +class RepoSearchResultItem(GitHubModel): + """Repo Search Result Item - User Search Result Item + Repo 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() + name: str = Field() + full_name: str = Field() + owner: Union[None, SimpleUser] = Field() + private: 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() + 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() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = 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() - 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) + 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" ) - 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) + 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 SearchUsersGetResponse200(GitHubModel): - """SearchUsersGetResponse200""" +class SearchRepositoriesGetResponse200(GitHubModel): + """SearchRepositoriesGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[UserSearchResultItem] = Field() + items: list[RepoSearchResultItem] = Field() -model_rebuild(UserSearchResultItem) -model_rebuild(SearchUsersGetResponse200) +model_rebuild(RepoSearchResultItem) +model_rebuild(RepoSearchResultItemPropPermissions) +model_rebuild(SearchRepositoriesGetResponse200) __all__ = ( - "SearchUsersGetResponse200", - "UserSearchResultItem", + "RepoSearchResultItem", + "RepoSearchResultItemPropPermissions", + "SearchRepositoriesGetResponse200", ) 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 c4b785265..ea419c79e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0471.py @@ -18,71 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0464 import SearchResultTextMatchesItems -class PrivateUser(GitHubModel): - """Private User - Private User +class TopicSearchResultItem(GitHubModel): + """Topic Search Result Item + + Topic Search Result Item """ - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - 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() + 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() - 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) + 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 PrivateUserPropPlan(GitHubModel): - """PrivateUserPropPlan""" +class TopicSearchResultItemPropRelatedItems(GitHubModel): + """TopicSearchResultItemPropRelatedItems""" - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() + 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(PrivateUser) -model_rebuild(PrivateUserPropPlan) +model_rebuild(TopicSearchResultItem) +model_rebuild(TopicSearchResultItemPropRelatedItems) +model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) +model_rebuild(TopicSearchResultItemPropAliasesItems) +model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) +model_rebuild(SearchTopicsGetResponse200) __all__ = ( - "PrivateUser", - "PrivateUserPropPlan", + "SearchTopicsGetResponse200", + "TopicSearchResultItem", + "TopicSearchResultItemPropAliasesItems", + "TopicSearchResultItemPropAliasesItemsPropTopicRelation", + "TopicSearchResultItemPropRelatedItems", + "TopicSearchResultItemPropRelatedItemsPropTopicRelation", ) 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 f6bee6e63..5988b39b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0472.py @@ -9,21 +9,75 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0464 import SearchResultTextMatchesItems -class CodespacesUserPublicKey(GitHubModel): - """CodespacesUserPublicKey +class UserSearchResultItem(GitHubModel): + """User Search Result Item - The public key used for setting user Codespaces' Secrets. + User Search Result Item """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + received_events_url: str = Field() + type: str = Field() + score: float = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + events_url: str = Field() + public_repos: Missing[int] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + bio: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + site_admin: bool = Field() + hireable: Missing[Union[bool, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + blog: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class SearchUsersGetResponse200(GitHubModel): + """SearchUsersGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[UserSearchResultItem] = Field() -model_rebuild(CodespacesUserPublicKey) +model_rebuild(UserSearchResultItem) +model_rebuild(SearchUsersGetResponse200) -__all__ = ("CodespacesUserPublicKey",) +__all__ = ( + "SearchUsersGetResponse200", + "UserSearchResultItem", +) 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 48a2ada39..c4b785265 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0473.py @@ -19,34 +19,70 @@ from githubkit.utils import UNSET -class CodespaceExportDetails(GitHubModel): - """Fetches information about an export of a codespace. +class PrivateUser(GitHubModel): + """Private User - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest + Private User """ - 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",) + 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() + 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__ = ( + "PrivateUser", + "PrivateUserPropPlan", +) 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 f65acdd81..f6bee6e63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0474.py @@ -9,164 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0187 import CodespaceMachine -from .group_0228 import FullRepository - - -class CodespaceWithFullRepository(GitHubModel): - """Codespace - - A codespace. - """ - - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespaceWithFullRepositoryPropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( - Field(default=UNSET) - ) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) -class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): - """CodespaceWithFullRepositoryPropGitStatus +class CodespacesUserPublicKey(GitHubModel): + """CodespacesUserPublicKey - Details about the codespace's git repository. + The public key used for setting user Codespaces' Secrets. """ - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", - ) - - -class 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.", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(CodespaceWithFullRepository) -model_rebuild(CodespaceWithFullRepositoryPropGitStatus) -model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) +model_rebuild(CodespacesUserPublicKey) -__all__ = ( - "CodespaceWithFullRepository", - "CodespaceWithFullRepositoryPropGitStatus", - "CodespaceWithFullRepositoryPropRuntimeConstraints", -) +__all__ = ("CodespacesUserPublicKey",) 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 1fb1f3941..48a2ada39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0475.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 -class Email(GitHubModel): - """Email +class CodespaceExportDetails(GitHubModel): + """Fetches information about an export of a codespace. - Email + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - email: str = Field() - primary: bool = Field() - verified: bool = Field() - visibility: Union[str, None] = Field() - - -model_rebuild(Email) - -__all__ = ("Email",) + 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_0476.py b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py index f58661fe1..dc024ee03 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Literal, Union from pydantic import Field @@ -18,71 +18,155 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0189 import CodespaceMachine +from .group_0230 import FullRepository -class GpgKey(GitHubModel): - """GPG Key - A unique encryption key +class CodespaceWithFullRepository(GitHubModel): + """Codespace + + A codespace. """ 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(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() - 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) - + 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. + """ -model_rebuild(GpgKey) -model_rebuild(GpgKeyPropEmailsItems) -model_rebuild(GpgKeyPropSubkeysItems) -model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) + 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__ = ( - "GpgKey", - "GpgKeyPropEmailsItems", - "GpgKeyPropSubkeysItems", - "GpgKeyPropSubkeysItemsPropEmailsItems", + "CodespaceWithFullRepository", + "CodespaceWithFullRepositoryPropGitStatus", + "CodespaceWithFullRepositoryPropRuntimeConstraints", ) 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 f75f4e54d..1fb1f3941 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0477.py @@ -9,28 +9,25 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Key(GitHubModel): - """Key +class Email(GitHubModel): + """Email - Key + Email """ - key: str = Field() - id: int = Field() - url: str = Field() - title: str = Field() - created_at: datetime = Field() + email: str = Field() + primary: bool = Field() verified: bool = Field() - read_only: bool = Field() + visibility: Union[str, None] = Field() -model_rebuild(Key) +model_rebuild(Email) -__all__ = ("Key",) +__all__ = ("Email",) 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 8a1d05ddf..f58661fe1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0478.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,43 +18,71 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0171 import MarketplaceListingPlan +class GpgKey(GitHubModel): + """GPG Key -class UserMarketplacePurchase(GitHubModel): - """User Marketplace Purchase - - User Marketplace Purchase + A unique encryption key """ - 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) + 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__ = ( - "MarketplaceAccount", - "UserMarketplacePurchase", + "GpgKey", + "GpgKeyPropEmailsItems", + "GpgKeyPropSubkeysItems", + "GpgKeyPropSubkeysItemsPropEmailsItems", ) 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 cae25bb86..e54756b2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0479.py @@ -9,21 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class SocialAccount(GitHubModel): - """Social account +class Key(GitHubModel): + """Key - Social media account + Key """ - provider: str = Field() + key: str = Field() + id: int = Field() url: str = Field() + title: str = Field() + created_at: datetime = Field() + verified: bool = Field() + read_only: bool = Field() + last_used: Missing[Union[datetime, None]] = Field(default=UNSET) -model_rebuild(SocialAccount) +model_rebuild(Key) -__all__ = ("SocialAccount",) +__all__ = ("Key",) 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 e6313b836..b695f5007 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0480.py @@ -10,24 +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_0173 import MarketplaceListingPlan -class SshSigningKey(GitHubModel): - """SSH Signing Key - A public SSH key used to sign Git commits +class UserMarketplacePurchase(GitHubModel): + """User Marketplace Purchase + + User Marketplace Purchase """ - key: str = 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() + 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() - title: str = Field() - created_at: datetime = 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(SshSigningKey) +model_rebuild(UserMarketplacePurchase) +model_rebuild(MarketplaceAccount) -__all__ = ("SshSigningKey",) +__all__ = ( + "MarketplaceAccount", + "UserMarketplacePurchase", +) 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 3c3baecb3..cae25bb86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0481.py @@ -9,25 +9,21 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0020 import Repository - -class StarredRepository(GitHubModel): - """Starred Repository +class SocialAccount(GitHubModel): + """Social account - Starred Repository + Social media account """ - starred_at: datetime = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") + provider: str = Field() + url: str = Field() -model_rebuild(StarredRepository) +model_rebuild(SocialAccount) -__all__ = ("StarredRepository",) +__all__ = ("SocialAccount",) 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 2258e2d95..e6313b836 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0482.py @@ -9,31 +9,25 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Hovercard(GitHubModel): - """Hovercard +class SshSigningKey(GitHubModel): + """SSH Signing Key - Hovercard + A public SSH key used to sign Git commits """ - contexts: list[HovercardPropContextsItems] = Field() - - -class HovercardPropContextsItems(GitHubModel): - """HovercardPropContextsItems""" - - message: str = Field() - octicon: str = Field() + key: str = Field() + id: int = Field() + title: str = Field() + created_at: datetime = Field() -model_rebuild(Hovercard) -model_rebuild(HovercardPropContextsItems) +model_rebuild(SshSigningKey) -__all__ = ( - "Hovercard", - "HovercardPropContextsItems", -) +__all__ = ("SshSigningKey",) 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 6bc9f3b7d..3c3baecb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0483.py @@ -14,21 +14,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 KeySimple(GitHubModel): - """Key Simple - Key Simple +class StarredRepository(GitHubModel): + """Starred Repository + + Starred Repository """ - id: int = Field() - key: str = Field() - created_at: Missing[datetime] = Field(default=UNSET) + starred_at: datetime = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") -model_rebuild(KeySimple) +model_rebuild(StarredRepository) -__all__ = ("KeySimple",) +__all__ = ("StarredRepository",) 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 563a88dd0..2258e2d95 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0484.py @@ -12,49 +12,28 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class BillingUsageReportUser(GitHubModel): - """BillingUsageReportUser""" - - usage_items: Missing[list[BillingUsageReportUserPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" - ) - - -class BillingUsageReportUserPropUsageItemsItems(GitHubModel): - """BillingUsageReportUserPropUsageItemsItems""" - - date: str = Field(description="Date of the usage line item.") - product: str = Field(description="Product name.") - sku: str = Field(description="SKU name.") - quantity: int = Field(description="Quantity of the usage line item.") - unit_type: str = Field( - alias="unitType", description="Unit type of the usage line item." - ) - price_per_unit: float = Field( - alias="pricePerUnit", description="Price per unit of the usage line item." - ) - gross_amount: float = Field( - alias="grossAmount", description="Gross amount of the usage line item." - ) - discount_amount: float = Field( - alias="discountAmount", description="Discount amount of the usage line item." - ) - net_amount: float = Field( - alias="netAmount", description="Net amount of the usage line item." - ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." - ) - - -model_rebuild(BillingUsageReportUser) -model_rebuild(BillingUsageReportUserPropUsageItemsItems) + + +class Hovercard(GitHubModel): + """Hovercard + + Hovercard + """ + + contexts: list[HovercardPropContextsItems] = Field() + + +class HovercardPropContextsItems(GitHubModel): + """HovercardPropContextsItems""" + + message: str = Field() + octicon: str = Field() + + +model_rebuild(Hovercard) +model_rebuild(HovercardPropContextsItems) __all__ = ( - "BillingUsageReportUser", - "BillingUsageReportUserPropUsageItemsItems", + "Hovercard", + "HovercardPropContextsItems", ) 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 83a049f94..01282a17e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0485.py @@ -19,33 +19,18 @@ from githubkit.utils import UNSET -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/enterprise- - cloud@latest//admin/overview/about-enterprise-accounts)." +class KeySimple(GitHubModel): + """Key Simple + + Key Simple """ - 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",) + id: int = Field() + key: str = Field() + created_at: Missing[datetime] = Field(default=UNSET) + last_used: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(KeySimple) + +__all__ = ("KeySimple",) 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 b18d5d9e7..563a88dd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0486.py @@ -12,23 +12,49 @@ from pydantic import Field 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/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.") - - -model_rebuild(SimpleInstallation) - -__all__ = ("SimpleInstallation",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class BillingUsageReportUser(GitHubModel): + """BillingUsageReportUser""" + + usage_items: Missing[list[BillingUsageReportUserPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" + ) + + +class BillingUsageReportUserPropUsageItemsItems(GitHubModel): + """BillingUsageReportUserPropUsageItemsItems""" + + date: str = Field(description="Date of the usage line item.") + product: str = Field(description="Product name.") + sku: str = Field(description="SKU name.") + quantity: int = Field(description="Quantity of the usage line item.") + unit_type: str = Field( + alias="unitType", description="Unit type of the usage line item." + ) + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." + ) + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." + ) + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." + ) + net_amount: float = Field( + alias="netAmount", description="Net amount of the usage line item." + ) + repository_name: Missing[str] = Field( + default=UNSET, alias="repositoryName", description="Name of the repository." + ) + + +model_rebuild(BillingUsageReportUser) +model_rebuild(BillingUsageReportUserPropUsageItemsItems) + +__all__ = ( + "BillingUsageReportUser", + "BillingUsageReportUserPropUsageItemsItems", +) 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 29be5dd8a..83a049f94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0487.py @@ -9,36 +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 -class OrganizationSimpleWebhooks(GitHubModel): - """Organization Simple +class EnterpriseWebhooks(GitHubModel): + """Enterprise - 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. + 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)." """ - login: str = Field() - id: int = Field() + 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() - 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() + 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() - description: Union[str, None] = Field() -model_rebuild(OrganizationSimpleWebhooks) +model_rebuild(EnterpriseWebhooks) -__all__ = ("OrganizationSimpleWebhooks",) +__all__ = ("EnterpriseWebhooks",) 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 e9224aa34..b18d5d9e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0488.py @@ -9,372 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple - - -class RepositoryWebhooks(GitHubModel): - """Repository - - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. - """ - - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - forks: int = Field() - permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - template_repository: Missing[ - Union[RepositoryWebhooksPropTemplateRepository, None] - ] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - starred_at: Missing[str] = Field(default=UNSET) - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether anonymous git access is enabled for this repository", - ) - - -class RepositoryWebhooksPropPermissions(GitHubModel): - """RepositoryWebhooksPropPermissions""" +from githubkit.compat import GitHubModel, model_rebuild - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) +class SimpleInstallation(GitHubModel): + """Simple Installation -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. + 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 RepositoryWebhooksPropTemplateRepository(GitHubModel): - """RepositoryWebhooksPropTemplateRepository""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( - default=UNSET - ) - private: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - language: Missing[str] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + id: int = Field(description="The ID of the installation.") + node_id: str = Field(description="The global node ID of the installation.") -model_rebuild(RepositoryWebhooks) -model_rebuild(RepositoryWebhooksPropPermissions) -model_rebuild(RepositoryWebhooksPropCustomProperties) -model_rebuild(RepositoryWebhooksPropTemplateRepository) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) +model_rebuild(SimpleInstallation) -__all__ = ( - "RepositoryWebhooks", - "RepositoryWebhooksPropCustomProperties", - "RepositoryWebhooksPropPermissions", - "RepositoryWebhooksPropTemplateRepository", - "RepositoryWebhooksPropTemplateRepositoryPropOwner", - "RepositoryWebhooksPropTemplateRepositoryPropPermissions", -) +__all__ = ("SimpleInstallation",) 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 2d428cd2e..29be5dd8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0489.py @@ -9,81 +9,36 @@ 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 WebhooksRule(GitHubModel): - """branch protection rule +class OrganizationSimpleWebhooks(GitHubModel): + """Organization Simple - 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. + 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. """ - 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() + login: str = 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() + 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(WebhooksRule) +model_rebuild(OrganizationSimpleWebhooks) -__all__ = ("WebhooksRule",) +__all__ = ("OrganizationSimpleWebhooks",) 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 ed0d2ff55..e9224aa34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0490.py @@ -14,41 +14,367 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class ExemptionResponse(GitHubModel): - """Exemption response - A response to an exemption request by a delegated bypasser. +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: Missing[int] = Field( - default=UNSET, description="The ID of the exemption response." + 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.", ) - reviewer_id: Missing[int] = Field( + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( default=UNSET, - description="The ID of the user who reviewed the exemption request.", + 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).", ) - reviewer_login: Missing[str] = Field( + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - description="The login of the user who reviewed the exemption request.", + 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.", ) - status: Missing[Literal["approved", "rejected", "dismissed"]] = Field( - default=UNSET, description="The status of the exemption response." + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - reviewer_comment: Missing[Union[str, None]] = Field( + 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 comment the reviewer provided when responding to the exemption request.", + 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).", ) - created_at: Missing[datetime] = Field( + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - description="The date and time the exemption request was created.", + 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(ExemptionResponse) +model_rebuild(RepositoryWebhooks) +model_rebuild(RepositoryWebhooksPropPermissions) +model_rebuild(RepositoryWebhooksPropCustomProperties) +model_rebuild(RepositoryWebhooksPropTemplateRepository) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) -__all__ = ("ExemptionResponse",) +__all__ = ( + "RepositoryWebhooks", + "RepositoryWebhooksPropCustomProperties", + "RepositoryWebhooksPropPermissions", + "RepositoryWebhooksPropTemplateRepository", + "RepositoryWebhooksPropTemplateRepositoryPropOwner", + "RepositoryWebhooksPropTemplateRepositoryPropPermissions", +) 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 61fd4671b..2d428cd2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0491.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,279 +18,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0490 import ExemptionResponse +class WebhooksRule(GitHubModel): + """branch protection rule -class ExemptionRequest(GitHubModel): - """Exemption Request - - A request from a user to be exempted from a set of rules. + 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. """ - id: Missing[int] = Field( - default=UNSET, description="The ID of the exemption request." - ) - number: Missing[Union[int, None]] = Field( - default=UNSET, - description="The number uniquely identifying the exemption request within it's repository.", - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository the exemption request is for.", - ) - requester_id: Missing[int] = Field( - default=UNSET, description="The ID of the user who requested the exemption." - ) - requester_login: Missing[str] = Field( - default=UNSET, description="The login of the user who requested the exemption." - ) - request_type: Missing[ - Literal[ - "push_ruleset_bypass", - "secret_scanning", - "secret_scanning_closure", - "code_scanning_alert_dismissal", - ] - ] = Field(default=UNSET, description="The type of request.") - exemption_request_data: Missing[ - Union[ - ExemptionRequestPushRulesetBypass, - ExemptionRequestSecretScanning, - DismissalRequestSecretScanning, - DismissalRequestCodeScanning, - ] - ] = Field(default=UNSET) - resource_identifier: Missing[str] = Field( - default=UNSET, - description="The unique identifier for the request type of the exemption request. For example, a commit SHA.", - ) - status: Missing[Literal["pending", "rejected", "cancelled", "completed"]] = Field( - default=UNSET, description="The status of the exemption request." - ) - requester_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment the requester provided when creating the exemption request.", - ) - metadata: Missing[ - Union[ - ExemptionRequestSecretScanningMetadata, - DismissalRequestSecretScanningMetadata, - DismissalRequestCodeScanningMetadata, - None, - ] - ] = Field(default=UNSET, description="Metadata about the exemption request.") - expires_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the exemption request will expire.", - ) - created_at: Missing[datetime] = Field( + 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="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" + 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.", ) - - -class DismissalRequestSecretScanningMetadata(GitHubModel): - """Secret scanning alert dismissal request metadata - - Metadata for a secret scanning alert dismissal request. - """ - - alert_title: Missing[str] = Field( - default=UNSET, description="The title of the secret alert" - ) - reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( - Field(default=UNSET, description="The reason for the dismissal request") - ) - - -class DismissalRequestCodeScanningMetadata(GitHubModel): - """Code scanning alert dismissal request metadata - - Metadata for a code scanning alert dismissal request. - """ - - alert_title: Missing[str] = Field( - default=UNSET, description="The title of the code scanning alert" + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() + name: str = Field() + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - reason: Missing[Literal["false positive", "won't fix", "used in tests"]] = Field( - default=UNSET, description="The reason for the dismissal request" - ) - - -class ExemptionRequestPushRulesetBypass(GitHubModel): - """Push ruleset bypass exemption request data - - Push rules that are being requested to be bypassed. - """ - - type: Missing[Literal["push_ruleset_bypass"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[ExemptionRequestPushRulesetBypassPropDataItems]] = Field( - default=UNSET, - description="The data pertaining to the push rules that are being requested to be bypassed.", - ) - - -class ExemptionRequestPushRulesetBypassPropDataItems(GitHubModel): - """ExemptionRequestPushRulesetBypassPropDataItems""" - - ruleset_id: Missing[int] = Field( + repository_id: int = Field() + require_code_owner_review: bool = Field() + require_last_push_approval: Missing[bool] = Field( default=UNSET, - description="The ID of the ruleset for the rules that were violated", - ) - ruleset_name: Missing[str] = Field( - default=UNSET, - description="The name of the ruleset for the rules that were violated", - ) - total_violations: Missing[int] = Field( - default=UNSET, description="The number of violations" - ) - rule_type: Missing[str] = Field( - default=UNSET, description="The type of rule that was violated" - ) - - -class DismissalRequestSecretScanning(GitHubModel): - """Secret scanning alert dismissal request data - - Secret scanning alerts that have dismissal requests. - """ - - type: Missing[Literal["secret_scanning_closure"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[DismissalRequestSecretScanningPropDataItems]] = Field( - default=UNSET, - description="The data related to the secret scanning alerts that have dismissal requests.", - ) - - -class DismissalRequestSecretScanningPropDataItems(GitHubModel): - """DismissalRequestSecretScanningPropDataItems""" - - reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( - Field(default=UNSET, description="The reason for the dismissal request") - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that was detected" - ) - alert_number: Missing[str] = Field( - default=UNSET, description="The number of the alert that was detected" - ) - - -class DismissalRequestCodeScanning(GitHubModel): - """Code scanning alert dismissal request data - - Code scanning alerts that have dismissal requests. - """ - - type: Missing[Literal["code_scanning_alert_dismissal"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[DismissalRequestCodeScanningPropDataItems]] = Field( - default=UNSET, - description="The data related to the code scanning alerts that have dismissal requests.", - ) - - -class DismissalRequestCodeScanningPropDataItems(GitHubModel): - """DismissalRequestCodeScanningPropDataItems""" - - alert_number: Missing[str] = Field( - default=UNSET, description="The number of the alert to be dismissed" - ) - - -class ExemptionRequestSecretScanning(GitHubModel): - """Secret scanning push protection exemption request data - - Secret scanning push protections that are being requested to be bypassed. - """ - - type: Missing[Literal["secret_scanning"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[ExemptionRequestSecretScanningPropDataItems]] = Field( - default=UNSET, - description="The data pertaining to the secret scanning push protections that are being requested to be bypassed.", - ) - - -class ExemptionRequestSecretScanningPropDataItems(GitHubModel): - """ExemptionRequestSecretScanningPropDataItems""" - - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that was detected" - ) - locations: Missing[ - list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItems] - ] = Field( - default=UNSET, description="The location data of the secret that was detected" - ) - - -class ExemptionRequestSecretScanningPropDataItemsPropLocationsItems(GitHubModel): - """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" - - commit: Missing[str] = Field( - default=UNSET, description="The commit SHA where the secret was detected" + description="Whether the most recent push must be approved by someone other than the person who pushed it", ) - branch: Missing[str] = Field( - default=UNSET, description="The branch where the secret was detected" + required_approving_review_count: int = Field() + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - path: Missing[str] = Field( - default=UNSET, description="The path of the file where the secret was detected" + 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(ExemptionRequest) -model_rebuild(ExemptionRequestSecretScanningMetadata) -model_rebuild(DismissalRequestSecretScanningMetadata) -model_rebuild(DismissalRequestCodeScanningMetadata) -model_rebuild(ExemptionRequestPushRulesetBypass) -model_rebuild(ExemptionRequestPushRulesetBypassPropDataItems) -model_rebuild(DismissalRequestSecretScanning) -model_rebuild(DismissalRequestSecretScanningPropDataItems) -model_rebuild(DismissalRequestCodeScanning) -model_rebuild(DismissalRequestCodeScanningPropDataItems) -model_rebuild(ExemptionRequestSecretScanning) -model_rebuild(ExemptionRequestSecretScanningPropDataItems) -model_rebuild(ExemptionRequestSecretScanningPropDataItemsPropLocationsItems) +model_rebuild(WebhooksRule) -__all__ = ( - "DismissalRequestCodeScanning", - "DismissalRequestCodeScanningMetadata", - "DismissalRequestCodeScanningPropDataItems", - "DismissalRequestSecretScanning", - "DismissalRequestSecretScanningMetadata", - "DismissalRequestSecretScanningPropDataItems", - "ExemptionRequest", - "ExemptionRequestPushRulesetBypass", - "ExemptionRequestPushRulesetBypassPropDataItems", - "ExemptionRequestSecretScanning", - "ExemptionRequestSecretScanningMetadata", - "ExemptionRequestSecretScanningPropDataItems", - "ExemptionRequestSecretScanningPropDataItemsPropLocationsItems", -) +__all__ = ("WebhooksRule",) 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 47860d7df..ed0d2ff55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0492.py @@ -18,58 +18,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration -from .group_0176 import MinimalRepository -from .group_0255 import PullRequestMinimal +class ExemptionResponse(GitHubModel): + """Exemption response -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + A response to an exemption request by a delegated bypasser. """ - after: Missing[Union[str, None]] = Field(default=UNSET) - app: Missing[Union[Integration, None]] = Field( + 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, - 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.", + description="The login of the user who reviewed the exemption request.", ) - 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." + status: Missing[Literal["approved", "rejected", "dismissed"]] = Field( + default=UNSET, description="The status of the exemption response." ) - 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" + 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.", ) - status: Missing[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(SimpleCheckSuite) +model_rebuild(ExemptionResponse) -__all__ = ("SimpleCheckSuite",) +__all__ = ("ExemptionResponse",) 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 f03180ec8..4519e3491 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0493.py @@ -18,77 +18,279 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration -from .group_0255 import PullRequestMinimal -from .group_0282 import DeploymentSimple -from .group_0492 import SimpleCheckSuite +from .group_0492 import ExemptionResponse -class CheckRunWithSimpleCheckSuite(GitHubModel): - """CheckRun +class ExemptionRequest(GitHubModel): + """Exemption Request - A check performed on the code of a given code change + A request from a user to be exempted from a set of rules. """ - 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: Missing[int] = Field( + default=UNSET, description="The ID of the exemption request." ) - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" + number: Missing[Union[int, None]] = Field( + default=UNSET, + description="The number uniquely identifying the exemption request within it's repository.", + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository the exemption request is for.", ) - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, + 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[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - deployment: Missing[DeploymentSimple] = Field( + "push_ruleset_bypass", + "secret_scanning", + "secret_scanning_closure", + "code_scanning_alert_dismissal", + ] + ] = Field(default=UNSET, description="The type of request.") + exemption_request_data: Missing[ + Union[ + ExemptionRequestPushRulesetBypass, + ExemptionRequestSecretScanning, + DismissalRequestSecretScanning, + DismissalRequestCodeScanning, + ] + ] = Field(default=UNSET) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The unique identifier for the request type of the exemption request. For example, a commit SHA.", + ) + status: Missing[Literal["pending", "rejected", "cancelled", "completed"]] = Field( + default=UNSET, description="The status of the exemption request." + ) + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the exemption request.", + ) + metadata: Missing[ + Union[ + ExemptionRequestSecretScanningMetadata, + DismissalRequestSecretScanningMetadata, + DismissalRequestCodeScanningMetadata, + None, + ] + ] = Field(default=UNSET, description="Metadata about the exemption request.") + expires_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request will expire.", + ) + created_at: Missing[datetime] = Field( default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", + description="The date and time the exemption request was created.", ) - 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." + responses: Missing[Union[list[ExemptionResponse], None]] = Field( + default=UNSET, description="The responses to the exemption request." ) - url: str = Field() + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the exemption request in a browser." + ) + + +class ExemptionRequestSecretScanningMetadata(GitHubModel): + """Secret Scanning Push Protection Exemption Request Metadata + + Metadata for a secret scanning push protection exemption request. + """ + + label: Missing[str] = Field( + default=UNSET, description="The label for the secret type" + ) + reason: Missing[Literal["fixed_later", "false_positive", "tests"]] = Field( + default=UNSET, description="The reason for the exemption request" + ) + +class DismissalRequestSecretScanningMetadata(GitHubModel): + """Secret scanning alert dismissal request metadata -class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): - """CheckRunWithSimpleCheckSuitePropOutput""" + Metadata for a secret scanning alert dismissal request. + """ - annotations_count: int = Field() - annotations_url: str = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - title: Union[str, None] = Field() + alert_title: Missing[str] = Field( + default=UNSET, description="The title of the secret alert" + ) + reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( + Field(default=UNSET, description="The reason for the dismissal request") + ) + + +class DismissalRequestCodeScanningMetadata(GitHubModel): + """Code scanning alert dismissal request metadata + + Metadata for a code scanning alert dismissal request. + """ + + alert_title: Missing[str] = Field( + default=UNSET, description="The title of the code scanning alert" + ) + reason: Missing[Literal["false positive", "won't fix", "used in tests"]] = Field( + default=UNSET, description="The reason for the dismissal request" + ) + + +class ExemptionRequestPushRulesetBypass(GitHubModel): + """Push ruleset bypass exemption request data + + Push rules that are being requested to be bypassed. + """ + + type: Missing[Literal["push_ruleset_bypass"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[ExemptionRequestPushRulesetBypassPropDataItems]] = Field( + default=UNSET, + description="The data pertaining to the push rules that are being requested to be bypassed.", + ) + + +class ExemptionRequestPushRulesetBypassPropDataItems(GitHubModel): + """ExemptionRequestPushRulesetBypassPropDataItems""" + + ruleset_id: Missing[int] = Field( + default=UNSET, + description="The ID of the ruleset for the rules that were violated", + ) + ruleset_name: Missing[str] = Field( + default=UNSET, + description="The name of the ruleset for the rules that were violated", + ) + total_violations: Missing[int] = Field( + default=UNSET, description="The number of violations" + ) + rule_type: Missing[str] = Field( + default=UNSET, description="The type of rule that was violated" + ) + + +class DismissalRequestSecretScanning(GitHubModel): + """Secret scanning alert dismissal request data + + Secret scanning alerts that have dismissal requests. + """ + + type: Missing[Literal["secret_scanning_closure"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[DismissalRequestSecretScanningPropDataItems]] = Field( + default=UNSET, + description="The data related to the secret scanning alerts that have dismissal requests.", + ) + + +class DismissalRequestSecretScanningPropDataItems(GitHubModel): + """DismissalRequestSecretScanningPropDataItems""" + + reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( + Field(default=UNSET, description="The reason for the dismissal request") + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that was detected" + ) + alert_number: Missing[str] = Field( + default=UNSET, description="The number of the alert that was detected" + ) + + +class DismissalRequestCodeScanning(GitHubModel): + """Code scanning alert dismissal request data + + Code scanning alerts that have dismissal requests. + """ + + type: Missing[Literal["code_scanning_alert_dismissal"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[DismissalRequestCodeScanningPropDataItems]] = Field( + default=UNSET, + description="The data related to the code scanning alerts that have dismissal requests.", + ) + + +class DismissalRequestCodeScanningPropDataItems(GitHubModel): + """DismissalRequestCodeScanningPropDataItems""" + + alert_number: Missing[str] = Field( + default=UNSET, description="The number of the alert to be dismissed" + ) + + +class ExemptionRequestSecretScanning(GitHubModel): + """Secret scanning push protection exemption request data + + Secret scanning push protections that are being requested to be bypassed. + """ + + type: Missing[Literal["secret_scanning"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[ExemptionRequestSecretScanningPropDataItems]] = Field( + default=UNSET, + description="The data pertaining to the secret scanning push protections that are being requested to be bypassed.", + ) + + +class ExemptionRequestSecretScanningPropDataItems(GitHubModel): + """ExemptionRequestSecretScanningPropDataItems""" + + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that was detected" + ) + locations: Missing[ + list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItems] + ] = Field( + default=UNSET, description="The location data of the secret that was detected" + ) + + +class ExemptionRequestSecretScanningPropDataItemsPropLocationsItems(GitHubModel): + """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" + + commit: Missing[str] = Field( + default=UNSET, description="The commit SHA where the secret was detected" + ) + branch: Missing[str] = Field( + default=UNSET, description="The branch where the secret was detected" + ) + path: Missing[str] = Field( + default=UNSET, description="The path of the file where the secret was detected" + ) -model_rebuild(CheckRunWithSimpleCheckSuite) -model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) +model_rebuild(ExemptionRequest) +model_rebuild(ExemptionRequestSecretScanningMetadata) +model_rebuild(DismissalRequestSecretScanningMetadata) +model_rebuild(DismissalRequestCodeScanningMetadata) +model_rebuild(ExemptionRequestPushRulesetBypass) +model_rebuild(ExemptionRequestPushRulesetBypassPropDataItems) +model_rebuild(DismissalRequestSecretScanning) +model_rebuild(DismissalRequestSecretScanningPropDataItems) +model_rebuild(DismissalRequestCodeScanning) +model_rebuild(DismissalRequestCodeScanningPropDataItems) +model_rebuild(ExemptionRequestSecretScanning) +model_rebuild(ExemptionRequestSecretScanningPropDataItems) +model_rebuild(ExemptionRequestSecretScanningPropDataItemsPropLocationsItems) __all__ = ( - "CheckRunWithSimpleCheckSuite", - "CheckRunWithSimpleCheckSuitePropOutput", + "DismissalRequestCodeScanning", + "DismissalRequestCodeScanningMetadata", + "DismissalRequestCodeScanningPropDataItems", + "DismissalRequestSecretScanning", + "DismissalRequestSecretScanningMetadata", + "DismissalRequestSecretScanningPropDataItems", + "ExemptionRequest", + "ExemptionRequestPushRulesetBypass", + "ExemptionRequestPushRulesetBypassPropDataItems", + "ExemptionRequestSecretScanning", + "ExemptionRequestSecretScanningMetadata", + "ExemptionRequestSecretScanningPropDataItems", + "ExemptionRequestSecretScanningPropDataItemsPropLocationsItems", ) 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 6b4e7d161..958a5b583 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0494.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,26 +18,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0178 import MinimalRepository +from .group_0257 import PullRequestMinimal -class WebhooksDeployKey(GitHubModel): - """WebhooksDeployKey - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite + + A suite of checks performed on the code of a given code change """ - 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) + after: Missing[Union[str, None]] = Field(default=UNSET) + app: Missing[Union[Integration, None]] = Field( + default=UNSET, + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." + ) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksDeployKey) +model_rebuild(SimpleCheckSuite) -__all__ = ("WebhooksDeployKey",) +__all__ = ("SimpleCheckSuite",) 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 8e1eed602..297a730c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0495.py @@ -10,27 +10,85 @@ 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_0257 import PullRequestMinimal +from .group_0284 import DeploymentSimple +from .group_0494 import SimpleCheckSuite -class WebhooksWorkflow(GitHubModel): - """Workflow""" - badge_url: str = Field() - created_at: datetime = Field() +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun + + A check performed on the code of a given code change + """ + + 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.", + ) + 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() - name: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = 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() -model_rebuild(WebhooksWorkflow) +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__ = ("WebhooksWorkflow",) +__all__ = ( + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", +) 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 a9b088555..6b4e7d161 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0496.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,71 +18,25 @@ from githubkit.utils import UNSET -class WebhooksApprover(GitHubModel): - """WebhooksApprover""" +class WebhooksDeployKey(GitHubModel): + """WebhooksDeployKey - 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 [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ - -class WebhooksReviewersItems(GitHubModel): - """WebhooksReviewersItems""" - - reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( - default=UNSET, title="User" - ) - type: Missing[Literal["User"]] = Field(default=UNSET) - - -class WebhooksReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + added_by: Missing[Union[str, None]] = Field(default=UNSET) + created_at: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() + title: str = Field() + url: str = Field() + verified: bool = Field() + enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhooksApprover) -model_rebuild(WebhooksReviewersItems) -model_rebuild(WebhooksReviewersItemsPropReviewer) +model_rebuild(WebhooksDeployKey) -__all__ = ( - "WebhooksApprover", - "WebhooksReviewersItems", - "WebhooksReviewersItemsPropReviewer", -) +__all__ = ("WebhooksDeployKey",) 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 291bcddcd..8e1eed602 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0497.py @@ -9,24 +9,28 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksWorkflowJobRun(GitHubModel): - """WebhooksWorkflowJobRun""" +class WebhooksWorkflow(GitHubModel): + """Workflow""" - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() + badge_url: str = Field() + created_at: datetime = Field() html_url: str = Field() id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhooksWorkflowJobRun) +model_rebuild(WebhooksWorkflow) -__all__ = ("WebhooksWorkflowJobRun",) +__all__ = ("WebhooksWorkflow",) 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 13da347fc..a9b088555 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0498.py @@ -18,7 +18,40 @@ from githubkit.utils import UNSET -class WebhooksUser(GitHubModel): +class WebhooksApprover(GitHubModel): + """WebhooksApprover""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewersItems(GitHubModel): + """WebhooksReviewersItems""" + + reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( + default=UNSET, title="User" + ) + type: Missing[Literal["User"]] = Field(default=UNSET) + + +class WebhooksReviewersItemsPropReviewer(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -42,9 +75,14 @@ class WebhooksUser(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksUser) +model_rebuild(WebhooksApprover) +model_rebuild(WebhooksReviewersItems) +model_rebuild(WebhooksReviewersItemsPropReviewer) -__all__ = ("WebhooksUser",) +__all__ = ( + "WebhooksApprover", + "WebhooksReviewersItems", + "WebhooksReviewersItemsPropReviewer", +) 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 ff2aa46c5..291bcddcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0499.py @@ -9,96 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksAnswer(GitHubModel): - """WebhooksAnswer""" +class WebhooksWorkflowJobRun(GitHubModel): + """WebhooksWorkflowJobRun""" - author_association: 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() + conclusion: None = Field() + created_at: str = Field() + environment: str = 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) + name: None = Field() + status: str = Field() + updated_at: str = Field() -model_rebuild(WebhooksAnswer) -model_rebuild(WebhooksAnswerPropReactions) -model_rebuild(WebhooksAnswerPropUser) +model_rebuild(WebhooksWorkflowJobRun) -__all__ = ( - "WebhooksAnswer", - "WebhooksAnswerPropReactions", - "WebhooksAnswerPropUser", -) +__all__ = ("WebhooksWorkflowJobRun",) 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 3c0d2a361..13da347fc 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,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,135 +18,7 @@ from githubkit.utils import UNSET -class Discussion(GitHubModel): - """Discussion - - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") - answer_html_url: Union[str, None] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - category: DiscussionPropCategory = Field() - comments: int = Field() - 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). - """ - - 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): +class WebhooksUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -174,18 +45,6 @@ class DiscussionPropUser(GitHubModel): 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(WebhooksUser) -__all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", - "Label", -) +__all__ = ("WebhooksUser",) 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 2e01fc5dd..ff2aa46c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0501.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,8 +19,8 @@ from githubkit.utils import UNSET -class WebhooksComment(GitHubModel): - """WebhooksComment""" +class WebhooksAnswer(GitHubModel): + """WebhooksAnswer""" author_association: Literal[ "COLLABORATOR", @@ -36,19 +37,21 @@ class WebhooksComment(GitHubModel): ) body: str = Field() child_comment_count: int = Field() - created_at: str = Field() + created_at: datetime = 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") + parent_id: None = Field() + reactions: Missing[WebhooksAnswerPropReactions] = Field( + default=UNSET, title="Reactions" + ) repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhooksCommentPropUser, None] = Field(title="User") + updated_at: datetime = Field() + user: Union[WebhooksAnswerPropUser, None] = Field(title="User") -class WebhooksCommentPropReactions(GitHubModel): +class WebhooksAnswerPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -63,7 +66,7 @@ class WebhooksCommentPropReactions(GitHubModel): url: str = Field() -class WebhooksCommentPropUser(GitHubModel): +class WebhooksAnswerPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -90,12 +93,12 @@ class WebhooksCommentPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksComment) -model_rebuild(WebhooksCommentPropReactions) -model_rebuild(WebhooksCommentPropUser) +model_rebuild(WebhooksAnswer) +model_rebuild(WebhooksAnswerPropReactions) +model_rebuild(WebhooksAnswerPropUser) __all__ = ( - "WebhooksComment", - "WebhooksCommentPropReactions", - "WebhooksCommentPropUser", + "WebhooksAnswer", + "WebhooksAnswerPropReactions", + "WebhooksAnswerPropUser", ) 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 6e6effd19..3c0d2a361 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0502.py @@ -9,27 +9,183 @@ 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 -class WebhooksLabel(GitHubModel): - """Label""" +class Discussion(GitHubModel): + """Discussion - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + A Discussion in a repository. + """ + + active_lock_reason: Union[str, None] = Field() + answer_chosen_at: Union[str, None] = Field() + answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") + answer_html_url: Union[str, None] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - default: bool = Field() - description: Union[str, None] = Field() + body: str = Field() + category: DiscussionPropCategory = Field() + comments: int = Field() + created_at: datetime = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + 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). + """ + + 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(WebhooksLabel) +model_rebuild(Discussion) +model_rebuild(Label) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) -__all__ = ("WebhooksLabel",) +__all__ = ( + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", + "Label", +) 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 ba770b6b0..2e01fc5dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0503.py @@ -9,21 +9,93 @@ 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 WebhooksRepositoriesItems(GitHubModel): - """WebhooksRepositoriesItems""" +class WebhooksComment(GitHubModel): + """WebhooksComment""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + parent_id: Union[int, None] = Field() + reactions: WebhooksCommentPropReactions = Field(title="Reactions") + repository_url: str = Field() + updated_at: str = Field() + user: Union[WebhooksCommentPropUser, None] = Field(title="User") + + +class WebhooksCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRepositoriesItems) +model_rebuild(WebhooksComment) +model_rebuild(WebhooksCommentPropReactions) +model_rebuild(WebhooksCommentPropUser) -__all__ = ("WebhooksRepositoriesItems",) +__all__ = ( + "WebhooksComment", + "WebhooksCommentPropReactions", + "WebhooksCommentPropUser", +) 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 f17279ee4..6e6effd19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0504.py @@ -9,21 +9,27 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRepositoriesAddedItems(GitHubModel): - """WebhooksRepositoriesAddedItems""" +class WebhooksLabel(GitHubModel): + """Label""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") + 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() - private: bool = Field(description="Whether the repository is private or public.") + url: str = Field(description="URL for the label") -model_rebuild(WebhooksRepositoriesAddedItems) +model_rebuild(WebhooksLabel) -__all__ = ("WebhooksRepositoriesAddedItems",) +__all__ = ("WebhooksLabel",) 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 cd727b745..ba770b6b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0505.py @@ -9,104 +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_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. - """ +class WebhooksRepositoriesItems(GitHubModel): + """WebhooksRepositoriesItems""" - author_association: 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() + 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() - 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() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksIssueComment) -model_rebuild(WebhooksIssueCommentPropReactions) -model_rebuild(WebhooksIssueCommentPropUser) +model_rebuild(WebhooksRepositoriesItems) -__all__ = ( - "WebhooksIssueComment", - "WebhooksIssueCommentPropReactions", - "WebhooksIssueCommentPropUser", -) +__all__ = ("WebhooksRepositoriesItems",) 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 9e7b45276..f17279ee4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0506.py @@ -12,29 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksChanges(GitHubModel): - """WebhooksChanges +class WebhooksRepositoriesAddedItems(GitHubModel): + """WebhooksRepositoriesAddedItems""" - The changes to the comment. - """ + 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.") - body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) +model_rebuild(WebhooksRepositoriesAddedItems) -class WebhooksChangesPropBody(GitHubModel): - """WebhooksChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -model_rebuild(WebhooksChanges) -model_rebuild(WebhooksChangesPropBody) - -__all__ = ( - "WebhooksChanges", - "WebhooksChangesPropBody", -) +__all__ = ("WebhooksRepositoriesAddedItems",) 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 3a4110e67..cd727b745 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0507.py @@ -18,23 +18,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0010 import Integration -class WebhooksIssue(GitHubModel): - """Issue +class WebhooksIssueComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) 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", @@ -48,294 +41,23 @@ 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() + body: str = Field(description="Contents of the issue comment") 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.", - ) + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", + 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.", ) - pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssuePropUser, None] = Field(title="User") - - -class WebhooksIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") + reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") -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): +class WebhooksIssueCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -350,15 +72,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 WebhooksIssueCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -387,32 +101,12 @@ class WebhooksIssuePropUser(GitHubModel): 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(WebhooksIssueComment) +model_rebuild(WebhooksIssueCommentPropReactions) +model_rebuild(WebhooksIssueCommentPropUser) __all__ = ( - "WebhooksIssue", - "WebhooksIssuePropAssignee", - "WebhooksIssuePropAssigneesItems", - "WebhooksIssuePropLabelsItems", - "WebhooksIssuePropMilestone", - "WebhooksIssuePropMilestonePropCreator", - "WebhooksIssuePropPerformedViaGithubApp", - "WebhooksIssuePropPerformedViaGithubAppPropOwner", - "WebhooksIssuePropPerformedViaGithubAppPropPermissions", - "WebhooksIssuePropPullRequest", - "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", - "WebhooksIssuePropUser", + "WebhooksIssueComment", + "WebhooksIssueCommentPropReactions", + "WebhooksIssueCommentPropUser", ) 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 c66b591f6..9e7b45276 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0508.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,63 +16,25 @@ from githubkit.utils import UNSET -class WebhooksMilestone(GitHubModel): - """Milestone +class WebhooksChanges(GitHubModel): + """WebhooksChanges - A collection of related issues and pull requests. + The changes to the comment. """ - 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 - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksMilestone) -model_rebuild(WebhooksMilestonePropCreator) + 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__ = ( - "WebhooksMilestone", - "WebhooksMilestonePropCreator", + "WebhooksChanges", + "WebhooksChangesPropBody", ) 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 bae9ea286..89bb107e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0509.py @@ -18,10 +18,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhooksIssue2(GitHubModel): +class WebhooksIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -31,10 +32,10 @@ class WebhooksIssue2(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( + assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() + assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -57,26 +58,26 @@ class WebhooksIssue2(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) + labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssue2PropMilestone, None] = Field( + 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[WebhooksIssue2PropPerformedViaGithubApp, None] + 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[WebhooksIssue2PropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssue2PropReactions = Field(title="Reactions") + pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( + sub_issues_summary: Missing[SubIssuesSummary] = Field( default=UNSET, title="Sub-issues Summary" ) state: Missing[Literal["open", "closed"]] = Field( @@ -90,10 +91,10 @@ class WebhooksIssue2(GitHubModel): ) updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + user: Union[WebhooksIssuePropUser, None] = Field(title="User") -class WebhooksIssue2PropAssignee(GitHubModel): +class WebhooksIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -115,12 +116,14 @@ class WebhooksIssue2PropAssignee(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 WebhooksIssue2PropAssigneesItems(GitHubModel): +class WebhooksIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -142,12 +145,14 @@ class WebhooksIssue2PropAssigneesItems(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 WebhooksIssue2PropLabelsItems(GitHubModel): +class WebhooksIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -161,7 +166,7 @@ class WebhooksIssue2PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhooksIssue2PropMilestone(GitHubModel): +class WebhooksIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -170,7 +175,7 @@ class WebhooksIssue2PropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") + creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -185,7 +190,7 @@ class WebhooksIssue2PropMilestone(GitHubModel): url: str = Field() -class WebhooksIssue2PropMilestonePropCreator(GitHubModel): +class WebhooksIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -207,12 +212,14 @@ class WebhooksIssue2PropMilestonePropCreator(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 WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): +class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -231,11 +238,11 @@ class actors within GitHub. 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( + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( title="User" ) - permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( - Field(default=UNSET, description="The set of permissions for the GitHub app") + 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" @@ -243,7 +250,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -270,8 +277,8 @@ class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions +class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -295,7 +302,9 @@ class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): 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 @@ -317,8 +326,8 @@ class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhooksIssue2PropPullRequest(GitHubModel): - """WebhooksIssue2PropPullRequest""" +class WebhooksIssuePropPullRequest(GitHubModel): + """WebhooksIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -327,7 +336,7 @@ class WebhooksIssue2PropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhooksIssue2PropReactions(GitHubModel): +class WebhooksIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -342,15 +351,7 @@ class WebhooksIssue2PropReactions(GitHubModel): url: str = Field() -class WebhooksIssue2PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssue2PropUser(GitHubModel): +class WebhooksIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -372,37 +373,37 @@ class WebhooksIssue2PropUser(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(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(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(WebhooksIssuePropUser) __all__ = ( - "WebhooksIssue2", - "WebhooksIssue2PropAssignee", - "WebhooksIssue2PropAssigneesItems", - "WebhooksIssue2PropLabelsItems", - "WebhooksIssue2PropMilestone", - "WebhooksIssue2PropMilestonePropCreator", - "WebhooksIssue2PropPerformedViaGithubApp", - "WebhooksIssue2PropPerformedViaGithubAppPropOwner", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", - "WebhooksIssue2PropPullRequest", - "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", - "WebhooksIssue2PropUser", + "WebhooksIssue", + "WebhooksIssuePropAssignee", + "WebhooksIssuePropAssigneesItems", + "WebhooksIssuePropLabelsItems", + "WebhooksIssuePropMilestone", + "WebhooksIssuePropMilestonePropCreator", + "WebhooksIssuePropPerformedViaGithubApp", + "WebhooksIssuePropPerformedViaGithubAppPropOwner", + "WebhooksIssuePropPerformedViaGithubAppPropPermissions", + "WebhooksIssuePropPullRequest", + "WebhooksIssuePropReactions", + "WebhooksIssuePropUser", ) 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 6db58fe17..c66b591f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0510.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,7 +19,31 @@ from githubkit.utils import UNSET -class WebhooksUserMannequin(GitHubModel): +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() + 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) @@ -47,6 +72,10 @@ class WebhooksUserMannequin(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksUserMannequin) +model_rebuild(WebhooksMilestone) +model_rebuild(WebhooksMilestonePropCreator) -__all__ = ("WebhooksUserMannequin",) +__all__ = ( + "WebhooksMilestone", + "WebhooksMilestonePropCreator", +) 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 f78d27107..0f69da9dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0511.py @@ -9,55 +9,391 @@ 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_0159 import IssueType +from .group_0161 import SubIssuesSummary -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 WebhooksIssue2(GitHubModel): + """Issue + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ -class WebhooksMarketplacePurchasePropAccount(GitHubModel): - """WebhooksMarketplacePurchasePropAccount""" + 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[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + + +class WebhooksIssue2PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropAssigneesItems(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + url: str = Field(description="URL for the label") + +class WebhooksIssue2PropMilestone(GitHubModel): + """Milestone -class WebhooksMarketplacePurchasePropPlan(GitHubModel): - """WebhooksMarketplacePurchasePropPlan""" + A collection of related issues and pull requests. + """ - bullets: list[Union[str, None]] = Field() - description: str = Field() - has_free_trial: bool = Field() + 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() - 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() + 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 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(WebhooksMarketplacePurchase) -model_rebuild(WebhooksMarketplacePurchasePropAccount) -model_rebuild(WebhooksMarketplacePurchasePropPlan) +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(WebhooksIssue2PropUser) __all__ = ( - "WebhooksMarketplacePurchase", - "WebhooksMarketplacePurchasePropAccount", - "WebhooksMarketplacePurchasePropPlan", + "WebhooksIssue2", + "WebhooksIssue2PropAssignee", + "WebhooksIssue2PropAssigneesItems", + "WebhooksIssue2PropLabelsItems", + "WebhooksIssue2PropMilestone", + "WebhooksIssue2PropMilestonePropCreator", + "WebhooksIssue2PropPerformedViaGithubApp", + "WebhooksIssue2PropPerformedViaGithubAppPropOwner", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", + "WebhooksIssue2PropPullRequest", + "WebhooksIssue2PropReactions", + "WebhooksIssue2PropUser", ) 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 94a837d69..6db58fe17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0512.py @@ -18,48 +18,35 @@ 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""" - +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() - 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__ = ( - "WebhooksPreviousMarketplacePurchase", - "WebhooksPreviousMarketplacePurchasePropAccount", - "WebhooksPreviousMarketplacePurchasePropPlan", -) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + 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",) 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 7c9805f89..f78d27107 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0513.py @@ -14,66 +14,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhooksTeam(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[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") + + +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() 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) + 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__ = ( - "WebhooksTeam", - "WebhooksTeamPropParent", + "WebhooksMarketplacePurchase", + "WebhooksMarketplacePurchasePropAccount", + "WebhooksMarketplacePurchasePropPlan", ) 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 ce75dc18b..94a837d69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0514.py @@ -9,28 +9,57 @@ 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 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() + -from .group_0256 import SimpleCommit +class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropAccount""" + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -class MergeGroup(GitHubModel): - """Merge Group - A group of pull requests that the merge queue has grouped together to be merged. - """ +class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropPlan""" - 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.") + 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(MergeGroup) +model_rebuild(WebhooksPreviousMarketplacePurchase) +model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) +model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) -__all__ = ("MergeGroup",) +__all__ = ( + "WebhooksPreviousMarketplacePurchase", + "WebhooksPreviousMarketplacePurchasePropAccount", + "WebhooksPreviousMarketplacePurchasePropPlan", +) 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 39a630595..7c9805f89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0515.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,61 +18,62 @@ from githubkit.utils import UNSET -class WebhooksMilestone3(GitHubModel): - """Milestone +class WebhooksTeam(GitHubModel): + """Team - A collection of related issues and pull requests. + Groups of organization members that gives permissions on specified repositories. """ - 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) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksMilestone3) -model_rebuild(WebhooksMilestone3PropCreator) + parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeamPropParent(GitHubModel): + """WebhooksTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhooksTeam) +model_rebuild(WebhooksTeamPropParent) __all__ = ( - "WebhooksMilestone3", - "WebhooksMilestone3PropCreator", + "WebhooksTeam", + "WebhooksTeamPropParent", ) 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 7099fbbc2..ed40e3704 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0516.py @@ -9,60 +9,28 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhooksMembership(GitHubModel): - """Membership +from .group_0258 import SimpleCommit - 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 MergeGroup(GitHubModel): + """Merge Group + A group of pull requests that the merge queue has grouped together to be merged. + """ -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) + 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(WebhooksMembership) -model_rebuild(WebhooksMembershipPropUser) +model_rebuild(MergeGroup) -__all__ = ( - "WebhooksMembership", - "WebhooksMembershipPropUser", -) +__all__ = ("MergeGroup",) 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 37f106c1b..39a630595 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0517.py @@ -9,196 +9,71 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksMilestone3(GitHubModel): + """Milestone -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. + A collection of related issues and pull requests. """ - 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.") + 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() - 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(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) + 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__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropRepositoriesItems", + "WebhooksMilestone3", + "WebhooksMilestone3PropCreator", ) 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 39eabd49e..314b845f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0518.py @@ -9,35 +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.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class WebhooksProjectCard(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() +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() + direct_membership: Missing[bool] = Field( + default=UNSET, + description="Whether the user has direct membership in the organization.", + ) + enterprise_teams_providing_indirect_membership: Missing[list[str]] = Field( + max_length=100 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the enterprise teams providing the user with indirect membership in the organization.\nA limit of 100 enterprise team slugs is returned.", + ) + state: str = Field() url: str = Field() + user: Union[WebhooksMembershipPropUser, None] = Field(title="User") -class WebhooksProjectCardPropCreator(GitHubModel): +class WebhooksMembershipPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -64,10 +68,10 @@ class WebhooksProjectCardPropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksProjectCard) -model_rebuild(WebhooksProjectCardPropCreator) +model_rebuild(WebhooksMembership) +model_rebuild(WebhooksMembershipPropUser) __all__ = ( - "WebhooksProjectCard", - "WebhooksProjectCardPropCreator", + "WebhooksMembership", + "WebhooksMembershipPropUser", ) 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 d39e38c67..37f106c1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0519.py @@ -9,67 +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 -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") +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() - 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(WebhooksProject) -model_rebuild(WebhooksProjectPropCreator) + 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(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__ = ( - "WebhooksProject", - "WebhooksProjectPropCreator", + "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_0520.py b/githubkit/versions/ghec_v2022_11_28/models/group_0520.py index be718a05d..39eabd49e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0520.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,20 +19,55 @@ from githubkit.utils import UNSET -class WebhooksProjectColumn(GitHubModel): - """Project Column""" +class WebhooksProjectCard(GitHubModel): + """Project Card""" after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = 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() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") + 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() -model_rebuild(WebhooksProjectColumn) +class WebhooksProjectCardPropCreator(GitHubModel): + """User""" -__all__ = ("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"]] = 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_0521.py b/githubkit/versions/ghec_v2022_11_28/models/group_0521.py index 46e0ef291..d39e38c67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0521.py @@ -10,37 +10,66 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksProject(GitHubModel): + """Project""" -class ProjectsV2(GitHubModel): - """Projects v2 Project - - A projects v2 project - """ - - id: float = Field() - node_id: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() - closed_at: Union[datetime, None] = Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() created_at: datetime = Field() - updated_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() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = 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(ProjectsV2) +model_rebuild(WebhooksProject) +model_rebuild(WebhooksProjectPropCreator) -__all__ = ("ProjectsV2",) +__all__ = ( + "WebhooksProject", + "WebhooksProjectPropCreator", +) 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 7daaba6aa..be718a05d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0522.py @@ -19,23 +19,20 @@ from githubkit.utils import UNSET -class WebhooksProjectChanges(GitHubModel): - """WebhooksProjectChanges""" +class WebhooksProjectColumn(GitHubModel): + """Project Column""" - archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -class WebhooksProjectChangesPropArchivedAt(GitHubModel): - """WebhooksProjectChangesPropArchivedAt""" +model_rebuild(WebhooksProjectColumn) - 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__ = ( - "WebhooksProjectChanges", - "WebhooksProjectChangesPropArchivedAt", -) +__all__ = ("WebhooksProjectColumn",) 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 02415cbc5..46e0ef291 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0523.py @@ -10,39 +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 ProjectsV2Item(GitHubModel): - """Projects v2 Item +class ProjectsV2(GitHubModel): + """Projects v2 Project - An item belonging to a project + A projects v2 project """ 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", - ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + 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() - archived_at: Union[datetime, None] = Field() + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() -model_rebuild(ProjectsV2Item) +model_rebuild(ProjectsV2) -__all__ = ("ProjectsV2Item",) +__all__ = ("ProjectsV2",) 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 da927dd7b..7daaba6aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0524.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0524.py @@ -9,8 +9,8 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -18,33 +18,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksProjectChanges(GitHubModel): + """WebhooksProjectChanges""" -class ProjectsV2StatusUpdate(GitHubModel): - """Projects v2 Status Update + archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) - 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." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - status: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET) - start_date: Missing[date] = Field(default=UNSET) - target_date: Missing[date] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the status update" - ) +class WebhooksProjectChangesPropArchivedAt(GitHubModel): + """WebhooksProjectChangesPropArchivedAt""" + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) -model_rebuild(ProjectsV2StatusUpdate) -__all__ = ("ProjectsV2StatusUpdate",) +model_rebuild(WebhooksProjectChanges) +model_rebuild(WebhooksProjectChangesPropArchivedAt) + +__all__ = ( + "WebhooksProjectChanges", + "WebhooksProjectChangesPropArchivedAt", +) 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 b3de330fa..02415cbc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0525.py @@ -19,125 +19,30 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0069 import TeamSimple -from .group_0157 import Milestone -from .group_0314 import AutoMerge -from .group_0394 import PullRequestPropLabelsItems -from .group_0395 import PullRequestPropBase, PullRequestPropHead -from .group_0396 import PullRequestPropLinks -class PullRequestWebhook(GitHubModel): - """PullRequestWebhook""" +class ProjectsV2Item(GitHubModel): + """Projects v2 Item - 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." + An item belonging to a project + """ + + 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", ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - 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.**", - ) + archived_at: Union[datetime, None] = Field() -model_rebuild(PullRequestWebhook) +model_rebuild(ProjectsV2Item) -__all__ = ("PullRequestWebhook",) +__all__ = ("ProjectsV2Item",) 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 9e409ec85..da927dd7b 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 date, datetime +from typing import Literal, Union from pydantic import Field @@ -17,47 +18,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -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).", - ) +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." ) - 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.**", + created_at: datetime = Field() + updated_at: datetime = Field() + status: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + start_date: Missing[date] = Field(default=UNSET) + target_date: Missing[date] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the status update" ) -model_rebuild(PullRequestWebhookAllof1) +model_rebuild(ProjectsV2StatusUpdate) -__all__ = ("PullRequestWebhookAllof1",) +__all__ = ("ProjectsV2StatusUpdate",) 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 3c34b7ef5..9d027996e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0527.py @@ -18,17 +18,55 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0070 import TeamSimple +from .group_0158 import Milestone +from .group_0316 import AutoMerge +from .group_0396 import PullRequestPropLabelsItems +from .group_0397 import PullRequestPropBase, PullRequestPropHead +from .group_0398 import PullRequestPropLinks -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() +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) + 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", @@ -39,1042 +77,67 @@ class WebhooksPullRequest5(GitHubModel): "NONE", "OWNER", ] = Field( - title="AuthorAssociation", + title="author_association", 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.", + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", 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( + draft: 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." + description="Indicates whether or not the pull request is a draft.", ) - patch_url: str = Field() + merged: bool = Field() + mergeable: Union[bool, None] = Field() rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - 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 - """ - + 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_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( + allow_update_branch: Missing[bool] = 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." + description="Whether to allow updating the pull request's branch.", ) - 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." + description="Whether to delete head branches when pull requests are merged.", ) - 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.", + 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\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" + 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").', ) - 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.", + 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\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:\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" + 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.**", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhooksPullRequest5) -model_rebuild(WebhooksPullRequest5PropAssignee) -model_rebuild(WebhooksPullRequest5PropAssigneesItems) -model_rebuild(WebhooksPullRequest5PropAutoMerge) -model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) -model_rebuild(WebhooksPullRequest5PropLabelsItems) -model_rebuild(WebhooksPullRequest5PropMergedBy) -model_rebuild(WebhooksPullRequest5PropMilestone) -model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) -model_rebuild(WebhooksPullRequest5PropUser) -model_rebuild(WebhooksPullRequest5PropLinks) -model_rebuild(WebhooksPullRequest5PropLinksPropComments) -model_rebuild(WebhooksPullRequest5PropLinksPropCommits) -model_rebuild(WebhooksPullRequest5PropLinksPropHtml) -model_rebuild(WebhooksPullRequest5PropLinksPropIssue) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) -model_rebuild(WebhooksPullRequest5PropLinksPropSelf) -model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) -model_rebuild(WebhooksPullRequest5PropBase) -model_rebuild(WebhooksPullRequest5PropBasePropUser) -model_rebuild(WebhooksPullRequest5PropBasePropRepo) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropHead) -model_rebuild(WebhooksPullRequest5PropHeadPropUser) -model_rebuild(WebhooksPullRequest5PropHeadPropRepo) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) +model_rebuild(PullRequestWebhook) -__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__ = ("PullRequestWebhook",) 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 ebbb97f9e..9e409ec85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0528.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,171 +18,46 @@ from githubkit.utils import UNSET -class WebhooksReviewComment(GitHubModel): - """Pull Request Review Comment +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" - 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." + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - 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." + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." + 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.", ) - 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." + 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").', ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." + 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.", ) - 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.", + 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).", + ) ) - subject_type: Missing[Literal["line", "file"]] = Field( + use_squash_pr_title_as_default: Missing[bool] = Field( default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", + 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.**", ) - 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) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ( - "WebhooksReviewComment", - "WebhooksReviewCommentPropLinks", - "WebhooksReviewCommentPropLinksPropHtml", - "WebhooksReviewCommentPropLinksPropPullRequest", - "WebhooksReviewCommentPropLinksPropSelf", - "WebhooksReviewCommentPropReactions", - "WebhooksReviewCommentPropUser", -) +__all__ = ("PullRequestWebhookAllof1",) 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 1c451c68e..3c34b7ef5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0529.py @@ -19,13 +19,16 @@ from githubkit.utils import UNSET -class WebhooksReview(GitHubModel): - """WebhooksReview +class WebhooksPullRequest5(GitHubModel): + """Pull Request""" - The review that was affected. - """ - - links: WebhooksReviewPropLinks = Field(alias="_links") + 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", @@ -39,18 +42,151 @@ class WebhooksReview(GitHubModel): 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.") + 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(description="Unique identifier of the review") + 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() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhooksReviewPropUser, None] = Field(title="User") + 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 WebhooksReviewPropUser(GitHubModel): +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) @@ -77,35 +213,868 @@ class WebhooksReviewPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksReviewPropLinks(GitHubModel): - """WebhooksReviewPropLinks""" +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 - html: WebhooksReviewPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") + 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 WebhooksReviewPropLinksPropHtml(GitHubModel): +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 WebhooksReviewPropLinksPropPullRequest(GitHubModel): +class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -model_rebuild(WebhooksReview) -model_rebuild(WebhooksReviewPropUser) -model_rebuild(WebhooksReviewPropLinks) -model_rebuild(WebhooksReviewPropLinksPropHtml) -model_rebuild(WebhooksReviewPropLinksPropPullRequest) +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__ = ( - "WebhooksReview", - "WebhooksReviewPropLinks", - "WebhooksReviewPropLinksPropHtml", - "WebhooksReviewPropLinksPropPullRequest", - "WebhooksReviewPropUser", + "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_0530.py b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py index 3dd04ee3a..ebbb97f9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py @@ -19,69 +19,90 @@ from githubkit.utils import UNSET -class WebhooksRelease(GitHubModel): - """Release +class WebhooksReviewComment(GitHubModel): + """Pull Request Review Comment - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. """ - 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." + 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.", ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksReleasePropReactions] = Field( - default=UNSET, title="Reactions" + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." ) - 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." + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." ) - 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) + 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 WebhooksReleasePropReactions(GitHubModel): +class WebhooksReviewCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -96,31 +117,7 @@ class WebhooksReleasePropReactions(GitHubModel): url: str = Field() -class WebhooksReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - digest: Union[str, None] = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" - ) - url: str = Field() - - -class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): +class WebhooksReviewCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -144,18 +141,49 @@ class WebhooksReleasePropAssetsItemsPropUploader(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 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(WebhooksRelease) -model_rebuild(WebhooksReleasePropAuthor) -model_rebuild(WebhooksReleasePropReactions) -model_rebuild(WebhooksReleasePropAssetsItems) -model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) +model_rebuild(WebhooksReviewComment) +model_rebuild(WebhooksReviewCommentPropReactions) +model_rebuild(WebhooksReviewCommentPropUser) +model_rebuild(WebhooksReviewCommentPropLinks) +model_rebuild(WebhooksReviewCommentPropLinksPropHtml) +model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) +model_rebuild(WebhooksReviewCommentPropLinksPropSelf) __all__ = ( - "WebhooksRelease", - "WebhooksReleasePropAssetsItems", - "WebhooksReleasePropAssetsItemsPropUploader", - "WebhooksReleasePropAuthor", - "WebhooksReleasePropReactions", + "WebhooksReviewComment", + "WebhooksReviewCommentPropLinks", + "WebhooksReviewCommentPropLinksPropHtml", + "WebhooksReviewCommentPropLinksPropPullRequest", + "WebhooksReviewCommentPropLinksPropSelf", + "WebhooksReviewCommentPropReactions", + "WebhooksReviewCommentPropUser", ) 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 fe65d306e..1c451c68e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0531.py @@ -19,66 +19,38 @@ from githubkit.utils import UNSET -class WebhooksRelease1(GitHubModel): - """Release +class WebhooksReview(GitHubModel): + """WebhooksReview - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. + The review that was affected. """ - assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() - assets_url: str = Field() - author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksRelease1PropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + 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.", ) - 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.") + 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() - size: int = Field() - digest: Union[str, None] = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" - ) - url: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhooksReviewPropUser, None] = Field(title="User") -class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): +class WebhooksReviewPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -102,60 +74,38 @@ class WebhooksRelease1PropAssetsItemsPropUploader(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 WebhooksRelease1PropAuthor(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 WebhooksReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() -class WebhooksRelease1PropReactions(GitHubModel): - """Reactions""" +class WebhooksReviewPropLinksPropPullRequest(GitHubModel): + """Link""" - 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() + href: str = Field() -model_rebuild(WebhooksRelease1) -model_rebuild(WebhooksRelease1PropAssetsItems) -model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) -model_rebuild(WebhooksRelease1PropAuthor) -model_rebuild(WebhooksRelease1PropReactions) +model_rebuild(WebhooksReview) +model_rebuild(WebhooksReviewPropUser) +model_rebuild(WebhooksReviewPropLinks) +model_rebuild(WebhooksReviewPropLinksPropHtml) +model_rebuild(WebhooksReviewPropLinksPropPullRequest) __all__ = ( - "WebhooksRelease1", - "WebhooksRelease1PropAssetsItems", - "WebhooksRelease1PropAssetsItemsPropUploader", - "WebhooksRelease1PropAuthor", - "WebhooksRelease1PropReactions", + "WebhooksReview", + "WebhooksReviewPropLinks", + "WebhooksReviewPropLinksPropHtml", + "WebhooksReviewPropLinksPropPullRequest", + "WebhooksReviewPropUser", ) 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 25a628f6d..e54925bbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0532.py @@ -19,34 +19,109 @@ from githubkit.utils import UNSET -class WebhooksAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class WebhooksRelease(GitHubModel): + """Release - The security alert of the vulnerable dependency. + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. """ - 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" + 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() + immutable: bool = Field(description="Whether or not the release is immutable.") + 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" + ) + 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." ) - 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() + 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() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() -class WebhooksAlertPropDismisser(GitHubModel): +class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -72,10 +147,16 @@ class WebhooksAlertPropDismisser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksAlert) -model_rebuild(WebhooksAlertPropDismisser) +model_rebuild(WebhooksRelease) +model_rebuild(WebhooksReleasePropAuthor) +model_rebuild(WebhooksReleasePropReactions) +model_rebuild(WebhooksReleasePropAssetsItems) +model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhooksAlert", - "WebhooksAlertPropDismisser", + "WebhooksRelease", + "WebhooksReleasePropAssetsItems", + "WebhooksReleasePropAssetsItemsPropUploader", + "WebhooksReleasePropAuthor", + "WebhooksReleasePropReactions", ) 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 aeab68287..078457c76 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0533.py @@ -18,93 +18,145 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksRelease1(GitHubModel): + """Release -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - resolution: Missing[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] - ] = Field(default=UNSET, description="The reason for resolving the alert.") - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", - ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - 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.", - ) + 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() + immutable: bool = Field(description="Whether or not the release is immutable.") + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksRelease1PropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class 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() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() + + +class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -model_rebuild(SecretScanningAlertWebhook) +model_rebuild(WebhooksRelease1) +model_rebuild(WebhooksRelease1PropAssetsItems) +model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) +model_rebuild(WebhooksRelease1PropAuthor) +model_rebuild(WebhooksRelease1PropReactions) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ( + "WebhooksRelease1", + "WebhooksRelease1PropAssetsItems", + "WebhooksRelease1PropAssetsItemsPropUploader", + "WebhooksRelease1PropAuthor", + "WebhooksRelease1PropReactions", +) 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 70a0fad38..25a628f6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0534.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,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +class WebhooksAlert(GitHubModel): + """Repository Vulnerability Alert Alert -class WebhooksSecurityAdvisory(GitHubModel): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The security alert of the vulnerable dependency. """ - cvss: WebhooksSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() - description: str = Field() + 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() - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() - published_at: str = Field() - references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() + id: int = Field() + node_id: str = Field() + number: int = 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) + 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) __all__ = ( - "WebhooksSecurityAdvisory", - "WebhooksSecurityAdvisoryPropCvss", - "WebhooksSecurityAdvisoryPropCwesItems", - "WebhooksSecurityAdvisoryPropIdentifiersItems", - "WebhooksSecurityAdvisoryPropReferencesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "WebhooksAlert", + "WebhooksAlertPropDismisser", ) 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 86866d0b1..aeab68287 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0535.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,129 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -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.", - ) - - -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 SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" -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() + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + resolution: Missing[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] = Field(default=UNSET, description="The reason for resolving the alert.") + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + 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.", + ) -model_rebuild(WebhooksSponsorship) -model_rebuild(WebhooksSponsorshipPropMaintainer) -model_rebuild(WebhooksSponsorshipPropSponsor) -model_rebuild(WebhooksSponsorshipPropSponsorable) -model_rebuild(WebhooksSponsorshipPropTier) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ( - "WebhooksSponsorship", - "WebhooksSponsorshipPropMaintainer", - "WebhooksSponsorshipPropSponsor", - "WebhooksSponsorshipPropSponsorable", - "WebhooksSponsorshipPropTier", -) +__all__ = ("SecretScanningAlertWebhook",) 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 d4236992a..70a0fad38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0536.py @@ -9,54 +9,108 @@ 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_0001 import CvssSeverities + -class WebhooksChanges8(GitHubModel): - """WebhooksChanges8""" +class WebhooksSecurityAdvisory(GitHubModel): + """WebhooksSecurityAdvisory - tier: WebhooksChanges8PropTier = Field() + 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 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 WebhooksSecurityAdvisoryPropCvss(GitHubModel): + """WebhooksSecurityAdvisoryPropCvss""" + score: float = Field() + vector_string: Union[str, None] = Field() -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 WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropCwesItems""" - 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() + 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() - node_id: str = Field() -model_rebuild(WebhooksChanges8) -model_rebuild(WebhooksChanges8PropTier) -model_rebuild(WebhooksChanges8PropTierPropFrom) +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__ = ( - "WebhooksChanges8", - "WebhooksChanges8PropTier", - "WebhooksChanges8PropTierPropFrom", + "WebhooksSecurityAdvisory", + "WebhooksSecurityAdvisoryPropCvss", + "WebhooksSecurityAdvisoryPropCwesItems", + "WebhooksSecurityAdvisoryPropIdentifiersItems", + "WebhooksSecurityAdvisoryPropReferencesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ) 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 b1c86817a..86866d0b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0537.py @@ -18,65 +18,128 @@ from githubkit.utils import UNSET -class WebhooksTeam1(GitHubModel): - """Team +class WebhooksSponsorship(GitHubModel): + """WebhooksSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ + 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""" + + 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) - 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(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[WebhooksTeam1PropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksTeam1PropParent(GitHubModel): - """WebhooksTeam1PropParent""" +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. + """ - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") + 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() - 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(WebhooksTeam1) -model_rebuild(WebhooksTeam1PropParent) +model_rebuild(WebhooksSponsorship) +model_rebuild(WebhooksSponsorshipPropMaintainer) +model_rebuild(WebhooksSponsorshipPropSponsor) +model_rebuild(WebhooksSponsorshipPropSponsorable) +model_rebuild(WebhooksSponsorshipPropTier) __all__ = ( - "WebhooksTeam1", - "WebhooksTeam1PropParent", + "WebhooksSponsorship", + "WebhooksSponsorshipPropMaintainer", + "WebhooksSponsorshipPropSponsor", + "WebhooksSponsorshipPropSponsorable", + "WebhooksSponsorshipPropTier", ) 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 51ea1a9cd..d4236992a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0538.py @@ -9,47 +9,54 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +class WebhooksChanges8(GitHubModel): + """WebhooksChanges8""" -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" + tier: WebhooksChanges8PropTier = Field() - 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)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", + +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(WebhookBranchProtectionConfigurationDisabled) +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__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ( + "WebhooksChanges8", + "WebhooksChanges8PropTier", + "WebhooksChanges8PropTierPropFrom", +) 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 cd6b5c428..b1c86817a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0539.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,39 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +class WebhooksTeam1(GitHubModel): + """Team -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" + Groups of organization members that gives permissions on specified repositories. + """ - 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)."', + 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", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeam1PropParent(GitHubModel): + """WebhooksTeam1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) - 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(WebhookBranchProtectionConfigurationEnabled) +model_rebuild(WebhooksTeam1) +model_rebuild(WebhooksTeam1PropParent) -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) +__all__ = ( + "WebhooksTeam1", + "WebhooksTeam1PropParent", +) 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 014e29995..26988cb32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0540.py @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0489 import WebhooksRule +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule 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", @@ -48,13 +47,9 @@ class WebhookBranchProtectionRuleCreated(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(WebhookBranchProtectionRuleCreated) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ("WebhookBranchProtectionRuleCreated",) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) 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 60948e2bf..fefa4b380 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0541.py @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0489 import WebhooksRule +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - action: Literal["deleted"] = Field() + action: Literal["enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,13 +47,9 @@ class WebhookBranchProtectionRuleDeleted(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(WebhookBranchProtectionRuleDeleted) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ("WebhookBranchProtectionRuleDeleted",) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) 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 dfcee739d..1fc7e5193 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0542.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,21 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0489 import WebhooksRule +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0491 import WebhooksRule -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", - ) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -59,167 +55,6 @@ class WebhookBranchProtectionRuleEdited(GitHubModel): 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(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(WebhookBranchProtectionRuleCreated) -__all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", -) +__all__ = ("WebhookBranchProtectionRuleCreated",) 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 1e7173535..973a74da4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0543.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0491 import ExemptionRequest +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0491 import WebhooksRule -class WebhookExemptionRequestCancelled(GitHubModel): - """Exemption request cancellation event""" +class WebhookBranchProtectionRuleDeleted(GitHubModel): + """branch protection rule deleted event""" - action: Literal["cancelled"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,17 @@ class WebhookExemptionRequestCancelled(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", + 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(WebhookExemptionRequestCancelled) +model_rebuild(WebhookBranchProtectionRuleDeleted) -__all__ = ("WebhookExemptionRequestCancelled",) +__all__ = ("WebhookBranchProtectionRuleDeleted",) 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 a440a76ce..a7fdea2da 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0544.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0491 import ExemptionRequest +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0491 import WebhooksRule -class WebhookExemptionRequestCompleted(GitHubModel): - """Exemption request completed event""" +class WebhookBranchProtectionRuleEdited(GitHubModel): + """branch protection rule edited event""" - action: Literal["completed"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( + default=UNSET, + description="If the action was `edited`, the changes to the rule.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +48,178 @@ class WebhookExemptionRequestCompleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", + 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(WebhookExemptionRequestCompleted) +class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced + ] = Field(default=UNSET) + authorized_actor_names: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames + ] = Field(default=UNSET) + authorized_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly + ] = Field(default=UNSET) + authorized_dismissal_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly + ] = Field(default=UNSET) + linear_history_requirement_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel + ] = Field(default=UNSET) + lock_branch_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel + ] = Field(default=UNSET) + lock_allows_fork_sync: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync + ] = Field(default=UNSET) + pull_request_reviews_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel + ] = Field(default=UNSET) + require_last_push_approval: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval + ] = Field(default=UNSET) + required_status_checks: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks + ] = Field(default=UNSET) + required_status_checks_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel + ] = Field(default=UNSET) + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +model_rebuild(WebhookBranchProtectionRuleEdited) +model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel +) -__all__ = ("WebhookExemptionRequestCompleted",) +__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_0545.py b/githubkit/versions/ghec_v2022_11_28/models/group_0545.py index 2dc6ff1c6..a4be3c1c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0545.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0491 import ExemptionRequest +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0493 import ExemptionRequest -class WebhookExemptionRequestCreated(GitHubModel): - """Exemption request created event""" +class WebhookExemptionRequestCancelled(GitHubModel): + """Exemption request cancellation event""" - action: Literal["created"] = Field() + action: Literal["cancelled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookExemptionRequestCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestCreated) +model_rebuild(WebhookExemptionRequestCancelled) -__all__ = ("WebhookExemptionRequestCreated",) +__all__ = ("WebhookExemptionRequestCancelled",) 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 2390e1514..75753d641 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0546.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0490 import ExemptionResponse -from .group_0491 import ExemptionRequest +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0493 import ExemptionRequest -class WebhookExemptionRequestResponseDismissed(GitHubModel): - """Exemption response dismissed event""" +class WebhookExemptionRequestCompleted(GitHubModel): + """Exemption request completed event""" - action: Literal["response_dismissed"] = Field() + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -54,13 +53,9 @@ class WebhookExemptionRequestResponseDismissed(GitHubModel): 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(WebhookExemptionRequestCompleted) -__all__ = ("WebhookExemptionRequestResponseDismissed",) +__all__ = ("WebhookExemptionRequestCompleted",) 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 bf7c1fef3..8f1c0e2ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0547.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0490 import ExemptionResponse -from .group_0491 import ExemptionRequest +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0493 import ExemptionRequest -class WebhookExemptionRequestResponseSubmitted(GitHubModel): - """Exemption response submitted event""" +class WebhookExemptionRequestCreated(GitHubModel): + """Exemption request created event""" - action: Literal["response_submitted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -54,13 +53,9 @@ class WebhookExemptionRequestResponseSubmitted(GitHubModel): 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(WebhookExemptionRequestResponseSubmitted) +model_rebuild(WebhookExemptionRequestCreated) -__all__ = ("WebhookExemptionRequestResponseSubmitted",) +__all__ = ("WebhookExemptionRequestCreated",) 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 1572ebf99..c183eeafa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0548.py @@ -18,19 +18,22 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0493 import CheckRunWithSimpleCheckSuite +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0492 import ExemptionResponse +from .group_0493 import ExemptionRequest -class WebhookCheckRunCompleted(GitHubModel): - """Check Run Completed Event""" +class WebhookExemptionRequestResponseDismissed(GitHubModel): + """Exemption response dismissed 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["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, @@ -42,13 +45,22 @@ class WebhookCheckRunCompleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) + 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(WebhookCheckRunCompleted) +model_rebuild(WebhookExemptionRequestResponseDismissed) -__all__ = ("WebhookCheckRunCompleted",) +__all__ = ("WebhookExemptionRequestResponseDismissed",) 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 15f0118a0..b80d4d394 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0549.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_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0492 import ExemptionResponse +from .group_0493 import ExemptionRequest -class WebhookCheckRunCompletedFormEncoded(GitHubModel): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookExemptionRequestResponseSubmitted(GitHubModel): + """Exemption response submitted 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["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, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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(WebhookCheckRunCompletedFormEncoded) +model_rebuild(WebhookExemptionRequestResponseSubmitted) -__all__ = ("WebhookCheckRunCompletedFormEncoded",) +__all__ = ("WebhookExemptionRequestResponseSubmitted",) 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 4d77866e6..05006034e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0550.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0493 import CheckRunWithSimpleCheckSuite +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0495 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - action: Literal["created"] = 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 WebhookCheckRunCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreated) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ("WebhookCheckRunCompleted",) 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 2a3f094c3..15f0118a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0551.py @@ -14,17 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event - The check_run.created 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.created 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(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) 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 f2334bf5d..d7c9d7083 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0552.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0493 import CheckRunWithSimpleCheckSuite +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0495 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - action: Literal["requested_action"] = Field() + action: Literal["created"] = Field() check_run: CheckRunWithSimpleCheckSuite = Field( title="CheckRun", description="A check performed on the code of a given code change", @@ -46,28 +46,9 @@ 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.") - ) 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(WebhookCheckRunCreated) -__all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", -) +__all__ = ("WebhookCheckRunCreated",) 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 ccf1a4c5f..2a3f094c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0553.py @@ -14,17 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event - The check_run.requested_action webhook encoded with URL encoding + The check_run.created webhook encoded with URL encoding """ payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) 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 04c798898..e9bbaad4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0554.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0493 import CheckRunWithSimpleCheckSuite +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0495 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" - action: Literal["rerequested"] = Field() + action: Literal["requested_action"] = Field() check_run: CheckRunWithSimpleCheckSuite = Field( title="CheckRun", description="A check performed on the code of a given code change", @@ -46,9 +46,28 @@ class WebhookCheckRunRerequested(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.") + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRerequested) +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) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ( + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", +) 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 a44f5cc13..ccf1a4c5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0555.py @@ -14,17 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event - The check_run.rerequested webhook encoded with URL encoding + The check_run.requested_action 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.requested_action JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) 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 a303a57cc..e216d2cac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0556.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,23 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0495 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested 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)."', + 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, @@ -54,308 +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/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 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(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRerequested",) 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 d9a7aa683..a44f5cc13 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0557.py @@ -9,352 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 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/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 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 WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app + The check_run.rerequested 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.rerequested 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(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) 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 6ce716e77..6ffadfd56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0558.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + 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( @@ -54,15 +54,15 @@ class WebhookCheckSuiteRerequested(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite +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: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = 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.", ) @@ -78,15 +78,17 @@ class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): "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." + 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( + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( title="SimpleCommit" ) head_sha: str = Field( @@ -96,22 +98,22 @@ class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): latest_check_runs_count: int = Field() node_id: str = Field() pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + 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"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) + 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 WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -129,15 +131,15 @@ class actors within GitHub. 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" + 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[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( Field(title="User") ) permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + 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" @@ -145,7 +147,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -172,8 +174,8 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions The set of permissions for the GitHub app """ @@ -223,14 +225,14 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubMod workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): """SimpleCommit""" - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( title="Committer", description="Metaproperties for Git author/committer information.", ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( Field( title="Committer", description="Metaproperties for Git author/committer information.", @@ -242,7 +244,7 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): tree_id: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): """Committer Metaproperties for Git author/committer information. @@ -254,9 +256,7 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubM username: Missing[str] = Field(default=UNSET) -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): """Committer Metaproperties for Git author/committer information. @@ -268,13 +268,13 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( username: Missing[str] = Field(default=UNSET) -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( Field() ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( Field() ) id: int = Field() @@ -282,19 +282,19 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubMode url: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -304,19 +304,19 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePro url: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( GitHubModel ): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -326,36 +326,36 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPro 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(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( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) 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 2a7fed978..4bc6f8cb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0559.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + 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 WebhookCodeScanningAlertAppearedInBranch(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,51 +54,99 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +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: Union[datetime, 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" + ) + 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." ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - 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() + 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 WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -131,106 +173,188 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" +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 ) - 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[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = 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 WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion +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 WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - text: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" - description: str = Field( - description="A short description of the rule used to detect the alert." + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - 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." + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" +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(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +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( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) 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 71c86bf3d..c92d19a25 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0560.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested 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." + action: Literal["rerequested"] = Field() + check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class 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,53 +54,98 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." + ) + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + head_sha: str = Field( + description="The SHA of the head commit that is being checked." ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: Union[ - 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`.", + 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" ) - 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." + 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" ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() - dismissal_approved_by: Missing[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, None - ] - ] = Field(default=UNSET, title="User") + 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 WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -133,138 +172,190 @@ class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - 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[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = 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 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 WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( GitHubModel ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + """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 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.", +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy(GitHubModel): - """User""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertClosedByUser) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +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( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy) __all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) 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 620e7db9e..7adcfa4bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0561.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -60,49 +60,80 @@ class WebhookCodeScanningAlertCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ - created_at: Union[datetime, None] = Field( + created_at: datetime = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - dismissed_at: None = Field( + dismissed_at: Union[datetime, None] = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - dismissed_by: None = Field() + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( Field( default=UNSET, description="The dismissal comment associated with the dismissal of the alert.", ) ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") fixed_at: Missing[None] = Field( default=UNSET, description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) 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] + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, + 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( + 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: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() url: str = Field() - dismissal_approved_by: Missing[None] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): +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( @@ -118,10 +149,10 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel 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 + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -131,10 +162,12 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel ) -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -143,40 +176,33 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" 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""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - 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." ) @@ -185,22 +211,26 @@ class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation +) model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ) 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 777701c68..116cf847f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0562.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -60,8 +60,8 @@ class WebhookCodeScanningAlertFixed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert The code scanning alert involved in the event. """ @@ -69,12 +69,12 @@ class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): 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( + dismissed_at: datetime = 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_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( Field( default=UNSET, @@ -89,20 +89,24 @@ class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): 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] + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, 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." + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( + description="State of a code scanning alert." ) - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() url: str = Field() + dismissal_approved_by: Missing[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, None + ] + ] = Field(default=UNSET, title="User") -class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -129,7 +133,7 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): """Alert Instance""" analysis_key: str = Field( @@ -145,10 +149,10 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): 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 + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -158,10 +162,10 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): ) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -170,16 +174,16 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." @@ -200,8 +204,8 @@ class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): tags: Missing[Union[list[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( @@ -212,22 +216,55 @@ class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy) __all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ) 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 403151cc9..b0c63dc5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0563.py @@ -19,20 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + action: Literal["created"] = Field() + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( description="The code scanning alert involved in the event." ) - commit_oid: Union[str, None] = Field( + 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( @@ -50,7 +50,7 @@ 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( + 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( @@ -60,28 +60,26 @@ class WebhookCodeScanningAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert The code scanning alert involved in the event. """ - created_at: datetime = Field( + 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: Union[str, None] = Field( + dismissed_at: 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_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: Union[str, None] = Field( + 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( @@ -89,23 +87,22 @@ class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): 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[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, 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( + 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: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) url: str = Field() + dismissal_approved_by: Missing[None] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - - -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): """Alert Instance""" analysis_key: str = Field( @@ -121,10 +118,10 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubMode 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 + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -134,10 +131,10 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubMode ) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -146,16 +143,16 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocatio start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." @@ -176,8 +173,8 @@ class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): tags: Missing[Union[list[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( @@ -188,26 +185,22 @@ class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation -) +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", ) 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 05e7f4c35..07efdf2d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0564.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -60,8 +60,8 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert The code scanning alert involved in the event. """ @@ -69,41 +69,67 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): created_at: datetime = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - dismissed_at: None = Field( + dismissed_at: Union[datetime, None] = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - dismissed_by: None = Field() + dismissed_by: Union[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: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") fixed_at: Missing[None] = Field( default=UNSET, description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None - ] + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() - state: Union[None, Literal["open", "fixed"]] = Field( + rule: 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: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( - GitHubModel -): +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( @@ -119,10 +145,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -132,12 +158,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n - """ + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -146,31 +170,40 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +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 WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +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." ) @@ -179,24 +212,22 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) +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__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", ) 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 a263444b3..5c490534c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0565.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0565.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,20 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = 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: 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, @@ -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: 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.", @@ -55,104 +60,154 @@ class WebhookCommitCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" - ) - updated_at: str = Field() + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: 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() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + + +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 WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" - 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() + 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 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() +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) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=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) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", ) 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 087589457..b1830f948 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0566.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,17 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" - description: Union[str, None] = Field( - description="The repository's current description." + 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, @@ -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,143 @@ class WebhookCreate(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCreate) +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__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) 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 6e3f1bd5c..da5fa68fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0567.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0567.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0081 import CustomProperty -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" - action: Literal["created"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +48,111 @@ class 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." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: str = Field() + html_url: str = Field() + id: int = Field(description="The ID of the commit comment.") + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the commit comment.") + path: Union[str, None] = Field( + description="The relative path of the file to which the comment applies." ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( + default=UNSET, title="Reactions" + ) + updated_at: str = Field() + url: str = Field() + user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCustomPropertyCreated) +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", +) 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 a33fa2701..83f835b43 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0568.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,16 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCreate(GitHubModel): + """create event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + description: Union[str, None] = Field( + description="The repository's current description." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,26 +40,30 @@ class WebhookCustomPropertyDeleted(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.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." ) + 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", + description="The repository on GitHub where the event occurred. Webhook 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 WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" - - property_name: str = Field(description="The name of the property that was deleted.") - - -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +model_rebuild(WebhookCreate) -__all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", -) +__all__ = ("WebhookCreate",) 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 fa679d653..00a4ca0e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0569.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0081 import CustomProperty -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks +from .group_0082 import CustomProperty +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks -class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): - """custom property promoted to business event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" - action: Literal["promote_to_enterprise"] = Field() + action: Literal["created"] = Field() definition: CustomProperty = Field( title="Organization Custom Property", description="Custom property defined on an organization", @@ -52,6 +52,6 @@ class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): ) -model_rebuild(WebhookCustomPropertyPromotedToEnterprise) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookCustomPropertyPromotedToEnterprise",) +__all__ = ("WebhookCustomPropertyCreated",) 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 ac0ed4c4b..74a10a2de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0570.py @@ -18,20 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0081 import CustomProperty -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" - action: Literal["updated"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", - ) + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,6 +48,16 @@ class WebhookCustomPropertyUpdated(GitHubModel): ) -model_rebuild(WebhookCustomPropertyUpdated) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookCustomPropertyUpdated",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) 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 b1df99d96..238b10677 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0571.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0225 import CustomPropertyValue -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0082 import CustomProperty +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): + """custom property promoted to business event""" - action: Literal["updated"] = Field() + action: Literal["promote_to_enterprise"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +42,16 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - 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." - ) -model_rebuild(WebhookCustomPropertyValuesUpdated) +model_rebuild(WebhookCustomPropertyPromotedToEnterprise) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ("WebhookCustomPropertyPromotedToEnterprise",) 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 802e92141..dd98d5ec4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0572.py @@ -18,15 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0082 import CustomProperty +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" + 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", @@ -42,22 +47,11 @@ class WebhookDelete(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDelete) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDelete",) +__all__ = ("WebhookCustomPropertyUpdated",) 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 2683f4473..58832a365 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0573.py @@ -18,40 +18,46 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0330 import DependabotAlert -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0227 import CustomPropertyValue +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + new_property_values: list[CustomPropertyValue] = Field( + description="The new custom property values for the repository." + ) + old_property_values: list[CustomPropertyValue] = Field( + description="The old custom property values for the repository." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoDismissed) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) 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 4ed397dd3..882a187e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0574.py @@ -18,18 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0330 import DependabotAlert -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["auto_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 WebhookDependabotAlertAutoReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + 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 WebhookDependabotAlertAutoReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoReopened) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ("WebhookDelete",) 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 2742af696..aae1ed9b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0575.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0330 import DependabotAlert -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0332 import DependabotAlert +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["created"] = Field() + action: Literal["auto_dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertCreated) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) 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 2b108b631..0e0b1ab36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0576.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0330 import DependabotAlert -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0332 import DependabotAlert +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["dismissed"] = Field() + action: Literal["auto_reopened"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertDismissed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertDismissed) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ("WebhookDependabotAlertAutoReopened",) 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 f5fbd79ba..05049300a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0577.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0330 import DependabotAlert -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0332 import DependabotAlert +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" - action: Literal["fixed"] = Field() + action: Literal["created"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertFixed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertFixed) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookDependabotAlertCreated",) 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 57a5393a3..a9b79cd34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0578.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0330 import DependabotAlert -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0332 import DependabotAlert +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["reintroduced"] = Field() + action: Literal["dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertReintroduced(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookDependabotAlertDismissed",) 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 462965eaf..2f9372359 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0579.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0330 import DependabotAlert -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0332 import DependabotAlert +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["reopened"] = Field() + action: Literal["fixed"] = 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(WebhookDependabotAlertFixed) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDependabotAlertFixed",) 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 d31f9e1a8..53e19d04c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0580.py @@ -18,35 +18,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0494 import WebhooksDeployKey +from .group_0332 import DependabotAlert +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced 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["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)."', ) - 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(WebhookDependabotAlertReintroduced) -__all__ = ("WebhookDeployKeyCreated",) +__all__ = ("WebhookDependabotAlertReintroduced",) 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 61575ecb5..14dec4e08 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0581.py @@ -18,35 +18,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0494 import WebhooksDeployKey +from .group_0332 import DependabotAlert +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert 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["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(WebhookDependabotAlertReopened) -__all__ = ("WebhookDeployKeyDeleted",) +__all__ = ("WebhookDependabotAlertReopened",) 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 d5fc0d66f..dc19322b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0582.py @@ -9,31 +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_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0495 import WebhooksWorkflow +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0496 import WebhooksDeployKey -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key 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", @@ -44,6 +39,9 @@ class WebhookDeploymentCreated(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", @@ -54,567 +52,8 @@ class WebhookDeploymentCreated(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 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(WebhookDeployKeyCreated) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeployKeyCreated",) 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 58cfcd533..475507b92 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0583.py @@ -18,54 +18,42 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0262 import Deployment -from .group_0393 import PullRequest -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0496 import WebhooksDeployKey -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The name of the environment that has the deployment protection rule.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - 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( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - 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.", + 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.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook 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(WebhookDeployKeyDeleted) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ("WebhookDeployKeyDeleted",) 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 ee897814e..dd0c85ad9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0584.py @@ -14,25 +14,26 @@ 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_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0496 import WebhooksApprover, WebhooksReviewersItems -from .group_0497 import WebhooksWorkflowJobRun +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0497 import WebhooksWorkflow -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" - action: Literal["approved"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) + 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", @@ -43,7 +44,8 @@ class WebhookDeploymentReviewApproved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,35 +53,194 @@ class WebhookDeploymentReviewApproved(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( + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( title="Deployment Workflow Run" ) -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" +class WebhookDeploymentCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) + 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: 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) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + 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 WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): + +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[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -103,11 +264,9 @@ class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): display_title: str = Field() event: str = Field() head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) + head_commit: Missing[None] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -117,21 +276,19 @@ class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): name: str = Field() node_id: str = Field() path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + previous_attempt_url: Missing[None] = Field(default=UNSET) pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], + list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], None, ] ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( + default=UNSET + ) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() run_number: int = Field() @@ -139,16 +296,16 @@ class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") + triggering_actor: Missing[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] + ] = Field(default=UNSET, title="User") updated_at: datetime = Field() url: str = Field() workflow_id: int = Field() workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -175,21 +332,15 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -216,8 +367,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -230,7 +381,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubMod 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) + 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) @@ -254,7 +405,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubMod node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -269,10 +420,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -292,11 +441,10 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( 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""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -309,7 +457,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): 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) + 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) @@ -332,9 +480,9 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): 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) + 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) @@ -348,10 +496,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -371,32 +517,29 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( 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): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -406,19 +549,17 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBas url: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -428,48 +569,52 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHea 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(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + 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( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", + "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_0585.py b/githubkit/versions/ghec_v2022_11_28/models/group_0585.py index 8a434da3b..f62ac1679 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0585.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0585.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,457 +18,54 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0496 import WebhooksApprover, WebhooksReviewersItems -from .group_0497 import WebhooksWorkflowJobRun +from .group_0264 import Deployment +from .group_0395 import PullRequest +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["requested"] = Field() + environment: 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 name of the environment that has the deployment protection rule.", ) - installation: Missing[SimpleInstallation] = Field( + event: 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="The event that triggered the deployment protection rule.", ) - 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.", + 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", ) - repository: RepositoryWebhooks = Field( + 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.", ) - 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() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - 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" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - 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(WebhookDeploymentProtectionRuleRequested) -__all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) 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 e286f986d..850bc6e59 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0586.py @@ -19,23 +19,25 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0498 import WebhooksApprover, WebhooksReviewersItems +from .group_0499 import WebhooksWorkflowJobRun -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["requested"] = Field() + 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)."', ) - environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -49,70 +51,36 @@ 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() + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") since: str = Field() - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = 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 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""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + 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: 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) + 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 WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( - Field(title="User") + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) cancel_url: Missing[str] = Field(default=UNSET) @@ -132,13 +100,14 @@ class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): ], ] = Field() created_at: datetime = Field() + display_title: str = Field() event: str = Field() head_branch: str = Field() head_commit: Missing[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] ] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -150,18 +119,18 @@ class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): path: str = Field() previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository ] = Field(default=UNSET) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() @@ -171,16 +140,15 @@ class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): "requested", "in_progress", "completed", "queued", "waiting", "pending" ] = Field() triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, 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): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -207,21 +175,21 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -248,8 +216,8 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -286,7 +254,7 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubMo node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -301,10 +269,10 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -327,8 +295,8 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -365,7 +333,7 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel) node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -380,10 +348,10 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -406,29 +374,29 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -438,19 +406,19 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBa url: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -460,54 +428,48 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHe 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(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems ) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase ) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead ) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", + "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_0587.py b/githubkit/versions/ghec_v2022_11_28/models/group_0587.py index f7d95aec6..3ff6a118b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0587.py @@ -14,32 +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_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0495 import WebhooksWorkflow +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0498 import WebhooksApprover, WebhooksReviewersItems +from .group_0499 import WebhooksWorkflowJobRun -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - 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)." - ) + action: Literal["rejected"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,8 +43,7 @@ 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)."', ) - 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.", ) @@ -59,414 +51,35 @@ class WebhookDeploymentStatusCreated(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.") - 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" + 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" ) - updated_at: Union[datetime, None] = Field() -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + 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: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: 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 WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -484,16 +97,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): "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_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -503,38 +116,39 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): name: str = Field() node_id: str = Field() path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - 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", "pending" - ] = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() + ) triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + 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 WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -561,17 +175,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -598,8 +216,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -612,7 +230,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode 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) + 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) @@ -636,7 +254,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -651,10 +269,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -674,10 +292,11 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( 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 WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -690,7 +309,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): 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) + 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) @@ -714,7 +333,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -729,8 +348,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -750,35 +371,32 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHu 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 WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -788,19 +406,19 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -810,76 +428,48 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems ) -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(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __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", + "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_0588.py b/githubkit/versions/ghec_v2022_11_28/models/group_0588.py index bcce8cac9..cd58a4bd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0588.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,34 +19,29 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0499 import WebhooksAnswer -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["answered"] = Field() - answer: WebhooksAnswer = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) + environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,9 +49,465 @@ class WebhookDiscussionAnswered(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(WebhookDiscussionAnswered) +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__ = ("WebhookDiscussionAnswered",) +__all__ = ( + "WebhookDeploymentReviewRequested", + "WebhookDeploymentReviewRequestedPropReviewersItems", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRequestedPropWorkflowJobRun", + "WebhookDeploymentReviewRequestedPropWorkflowRun", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0589.py b/githubkit/versions/ghec_v2022_11_28/models/group_0589.py index cfd03b6b6..c192815c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0589.py @@ -10,29 +10,35 @@ 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 -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0497 import WebhooksWorkflow -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status 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() + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,45 +60,826 @@ 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: 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 WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" +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) - category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions -class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + The set of permissions for the GitHub app + """ - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( - alias="from" + 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 WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +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() - 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[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = 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[ + 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) - 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 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""" -model_rebuild(WebhookDiscussionCategoryChanged) -model_rebuild(WebhookDiscussionCategoryChangedPropChanges) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + 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__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", + "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_0590.py b/githubkit/versions/ghec_v2022_11_28/models/group_0590.py index 7ab97e261..04de1d49a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0590.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0501 import WebhooksAnswer +from .group_0502 import Discussion -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["closed"] = Field() + action: Literal["answered"] = Field() + answer: WebhooksAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,6 @@ class WebhookDiscussionClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDiscussionAnswered) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ("WebhookDiscussionAnswered",) 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 4866e45f8..d1263c711 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0591.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,19 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion -from .group_0501 import WebhooksComment +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["created"] = Field() - comment: WebhooksComment = Field() + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -56,6 +56,43 @@ class WebhookDiscussionCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionCommentCreated) +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" -__all__ = ("WebhookDiscussionCommentCreated",) + category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + + +class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( + alias="from" + ) + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +model_rebuild(WebhookDiscussionCategoryChanged) +model_rebuild(WebhookDiscussionCategoryChangedPropChanges) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + +__all__ = ( + "WebhookDiscussionCategoryChanged", + "WebhookDiscussionCategoryChangedPropChanges", + "WebhookDiscussionCategoryChangedPropChangesPropCategory", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0592.py b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py index 8659b0663..fb2bb3dd8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion -from .group_0501 import WebhooksComment +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["deleted"] = Field() - comment: WebhooksComment = Field() + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -56,6 +54,6 @@ class WebhookDiscussionCommentDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDiscussionClosed) -__all__ = ("WebhookDiscussionCommentDeleted",) +__all__ = ("WebhookDiscussionClosed",) 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 26c037651..749eac5a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0593.py @@ -18,19 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion -from .group_0501 import WebhooksComment +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion +from .group_0503 import WebhooksComment -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() + action: Literal["created"] = Field() comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." @@ -57,24 +56,6 @@ class WebhookDiscussionCommentEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" +model_rebuild(WebhookDiscussionCommentCreated) - body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() - - -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) - -__all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", -) +__all__ = ("WebhookDiscussionCommentCreated",) 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 89141b2a9..feb6291ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0594.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion +from .group_0503 import WebhooksComment -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksComment = 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(WebhookDiscussionCommentDeleted) -__all__ = ("WebhookDiscussionCreated",) +__all__ = ("WebhookDiscussionCommentDeleted",) 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 4b3cab412..f5006ab33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0595.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion +from .group_0503 import WebhooksComment -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" - action: Literal["deleted"] = 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 WebhookDiscussionDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionDeleted) +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" -__all__ = ("WebhookDiscussionDeleted",) + 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_0596.py b/githubkit/versions/ghec_v2022_11_28/models/group_0596.py index d3c5a33a4..8b4e17515 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0596.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["created"] = 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(WebhookDiscussionCreated) - 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__ = ("WebhookDiscussionCreated",) 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 3eeafeba7..57a6b539e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0597.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion -from .group_0502 import WebhooksLabel +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - action: Literal["labeled"] = Field() + action: Literal["deleted"] = 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(WebhookDiscussionDeleted) -__all__ = ("WebhookDiscussionLabeled",) +__all__ = ("WebhookDiscussionDeleted",) 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 250597706..5cfd241ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0598.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - action: Literal["locked"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +55,33 @@ class WebhookDiscussionLocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLocked) +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" -__all__ = ("WebhookDiscussionLocked",) + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) + +__all__ = ( + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0599.py b/githubkit/versions/ghec_v2022_11_28/models/group_0599.py index a53dabfdc..7fceb00e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0599.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion +from .group_0504 import WebhooksLabel -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - action: Literal["pinned"] = Field() + action: Literal["labeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,6 +43,7 @@ class WebhookDiscussionPinned(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", @@ -54,6 +56,6 @@ class WebhookDiscussionPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionPinned) +model_rebuild(WebhookDiscussionLabeled) -__all__ = ("WebhookDiscussionPinned",) +__all__ = ("WebhookDiscussionLabeled",) 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 2c6a76546..017d05ea7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0600.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["reopened"] = Field() + action: Literal["locked"] = 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(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionReopened",) +__all__ = ("WebhookDiscussionLocked",) 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 0bfb4e548..3020958f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0601.py @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion -from .group_0602 import WebhookDiscussionTransferredPropChanges +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["pinned"] = 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(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionTransferred",) +__all__ = ("WebhookDiscussionPinned",) 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 82474066f..a40029894 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0602.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_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" - new_discussion: Discussion = Field( + action: Literal["reopened"] = 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(WebhookDiscussionReopened) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ("WebhookDiscussionReopened",) 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 940aff4de..0a2e18150 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0603.py @@ -18,20 +18,32 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0499 import WebhooksAnswer -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion +from .group_0604 import WebhookDiscussionTransferredPropChanges -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" - action: Literal["unanswered"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhooksAnswer = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -41,11 +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(WebhookDiscussionTransferred) -__all__ = ("WebhookDiscussionUnanswered",) +__all__ = ("WebhookDiscussionTransferred",) 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 7ee76e562..9ecc0d9bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0604.py @@ -9,53 +9,26 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion -from .group_0502 import WebhooksLabel +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - action: Literal["unlabeled"] = Field() - discussion: Discussion = Field( + new_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( + new_repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ("WebhookDiscussionUnlabeled",) +__all__ = ("WebhookDiscussionTransferredPropChanges",) 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 1f7b71f92..a2d48e54e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0605.py @@ -18,30 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0501 import WebhooksAnswer +from .group_0502 import Discussion -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" - action: Literal["unlocked"] = Field() + action: Literal["unanswered"] = 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)."', - ) + old_answer: WebhooksAnswer = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -51,9 +41,11 @@ class WebhookDiscussionUnlocked(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(WebhookDiscussionUnlocked) +model_rebuild(WebhookDiscussionUnanswered) -__all__ = ("WebhookDiscussionUnlocked",) +__all__ = ("WebhookDiscussionUnanswered",) 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 28e5e3c01..e7fa9c841 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0606.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0500 import Discussion +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion +from .group_0504 import WebhooksLabel -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" - action: Literal["unpinned"] = Field() + action: Literal["unlabeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,6 +43,7 @@ class WebhookDiscussionUnpinned(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", @@ -54,6 +56,6 @@ class WebhookDiscussionUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionUnlabeled) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionUnlabeled",) 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 1cd735c4b..20bd6db85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0607.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,25 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0608 import WebhookForkPropForkee - +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookFork(GitHubModel): - """fork event - A user forks a repository. - """ +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)."', ) - 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(WebhookDiscussionUnlocked) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionUnlocked",) 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 54bc4ab40..dddeaedb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0608.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,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0610 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0502 import Discussion -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned 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["unpinned"] = 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(WebhookDiscussionUnpinned) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookDiscussionUnpinned",) 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 e0c1affe8..a57e3b687 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0609.py @@ -9,187 +9,51 @@ 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_0610 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0610 import WebhookForkPropForkee -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository +class WebhookFork(GitHubModel): + """fork event - A git repository + A user forks a 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( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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_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." + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource." ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookFork) -__all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", -) +__all__ = ("WebhookFork",) 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 f8d13642f..c46a8f7ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0610.py @@ -9,23 +9,186 @@ 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_0612 import WebhookForkPropForkeeAllof0PropPermissions + + +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee + + 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." + ) + 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." + ) + 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." + ) + 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 WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = 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) -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) -__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) +__all__ = ( + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", +) 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 18554f9e3..6e9ec40da 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0611.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,108 +18,160 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0612 import WebhookForkPropForkeeAllof0PropPermissions -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) + +class WebhookForkPropForkeeAllof0(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: 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" + 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" ) - 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) + 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: 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) + 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 WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): - """WebhookForkPropForkeeAllof1PropOwner""" + +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: 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) @@ -126,16 +179,17 @@ class WebhookForkPropForkeeAllof1PropOwner(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"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) __all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", ) 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 2a852bdcc..f8d13642f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0612.py @@ -9,22 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0003 import SimpleUser +from githubkit.typing import Missing +from githubkit.utils import UNSET -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" - action: Literal["revoked"] = Field() - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) 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 2ee311eba..18554f9e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0613.py @@ -17,58 +17,125 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks - -class WebhookGollum(GitHubModel): - """gollum 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.", - ) - 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.", +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" ) - 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) + 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__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", ) 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 8bca227b3..2a852bdcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0614.py @@ -9,51 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0485 import EnterpriseWebhooks -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser -from .group_0503 import WebhooksRepositoriesItems - - -class WebhookInstallationCreated(GitHubModel): - """installation 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: 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[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + + +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" + + action: Literal["revoked"] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationCreated) +model_rebuild(WebhookGithubAppAuthorizationRevoked) -__all__ = ("WebhookInstallationCreated",) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) 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 7b1f76da2..d9b5606de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0615.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0615.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,41 +18,57 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0485 import EnterpriseWebhooks -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0503 import WebhooksRepositoriesItems +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" +class WebhookGollum(GitHubModel): + """gollum event""" - action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", + 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(WebhookInstallationDeleted) +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__ = ("WebhookInstallationDeleted",) +__all__ = ( + "WebhookGollum", + "WebhookGollumPropPagesItems", +) 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 a0f90cb1b..b84a336c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0616.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,16 +19,17 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0485 import EnterpriseWebhooks -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0503 import WebhooksRepositoriesItems +from .group_0487 import EnterpriseWebhooks +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser +from .group_0505 import WebhooksRepositoriesItems -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - action: Literal["new_permissions_accepted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +50,10 @@ class WebhookInstallationNewPermissionsAccepted(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(WebhookInstallationNewPermissionsAccepted) +model_rebuild(WebhookInstallationCreated) -__all__ = ("WebhookInstallationNewPermissionsAccepted",) +__all__ = ("WebhookInstallationCreated",) 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 548d47086..23cf91ead 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0617.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +19,16 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0485 import EnterpriseWebhooks -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser -from .group_0504 import WebhooksRepositoriesAddedItems +from .group_0487 import EnterpriseWebhooks +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0505 import WebhooksRepositoriesItems -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - action: Literal["added"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,44 +40,19 @@ class WebhookInstallationRepositoriesAdded(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.", ) - 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." + 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.", ) - 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") + requester: Missing[None] = Field(default=UNSET) 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" - ) - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - node_id: Missing[str] = Field(default=UNSET) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private or public." - ) - - -model_rebuild(WebhookInstallationRepositoriesAdded) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) +model_rebuild(WebhookInstallationDeleted) -__all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookInstallationDeleted",) 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 285642a78..e409ee22f 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, Union +from typing import Literal from pydantic import Field @@ -19,17 +19,16 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0485 import EnterpriseWebhooks -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser -from .group_0504 import WebhooksRepositoriesAddedItems +from .group_0487 import EnterpriseWebhooks +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0505 import WebhooksRepositoriesItems -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - action: Literal["removed"] = Field() + action: Literal["new_permissions_accepted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,40 +40,19 @@ class WebhookInstallationRepositoriesRemoved(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.", ) - 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." + 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.", ) - 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") + requester: Missing[None] = Field(default=UNSET) 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) +model_rebuild(WebhookInstallationNewPermissionsAccepted) -__all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookInstallationNewPermissionsAccepted",) 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 58f0e6947..08cd14bc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0619.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0619.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,16 +19,17 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0485 import EnterpriseWebhooks -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0503 import WebhooksRepositoriesItems +from .group_0487 import EnterpriseWebhooks +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser +from .group_0506 import WebhooksRepositoriesAddedItems -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" - action: Literal["suspend"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,19 +41,44 @@ class WebhookInstallationSuspend(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.", ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + 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.", ) - requester: Missing[None] = Field(default=UNSET) + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + requester: Union[WebhooksUser, None] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationSuspend) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" + ) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + node_id: Missing[str] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." + ) + + +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) -__all__ = ("WebhookInstallationSuspend",) +__all__ = ( + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", +) 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 365e937cd..0524f80f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0620.py @@ -18,118 +18,63 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0018 import Installation +from .group_0487 import EnterpriseWebhooks +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser +from .group_0506 import WebhooksRepositoriesAddedItems -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repositories_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.", ) - 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 + 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 WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str = Field(alias="from") - +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") + 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(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) __all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ) 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 286a83e7f..8d799053e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0621.py @@ -19,16 +19,16 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0485 import EnterpriseWebhooks -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0503 import WebhooksRepositoriesItems +from .group_0487 import EnterpriseWebhooks +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0505 import WebhooksRepositoriesItems -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - action: Literal["unsuspend"] = Field() + action: Literal["suspend"] = 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(WebhookInstallationSuspend) -__all__ = ("WebhookInstallationUnsuspend",) +__all__ = ("WebhookInstallationSuspend",) 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 e9f28e450..0e4fc2ac8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0622.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,47 +18,118 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0623 import WebhookIssueCommentCreatedPropComment -from .group_0624 import WebhookIssueCommentCreatedPropIssue +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" - 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.", - ) + 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: 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)."', ) - issue: WebhookIssueCommentCreatedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook 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." + ) + 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") -model_rebuild(WebhookIssueCommentCreated) +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ( + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", +) 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 a9859cc27..e645beb00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0623.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import 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_0010 import Integration +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0487 import EnterpriseWebhooks +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0505 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend 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["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)."', ) - 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(WebhookInstallationUnsuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", -) +__all__ = ("WebhookInstallationUnsuspend",) 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 8822e7cb2..d772d9cd5 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 Literal, Union +from typing import Literal from pydantic import Field @@ -18,165 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType -from .group_0626 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0631 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary -from .group_0633 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0634 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0625 import WebhookIssueCommentCreatedPropComment +from .group_0626 import WebhookIssueCommentCreatedPropIssue -class WebhookIssueCommentCreatedPropIssue(GitHubModel): - """WebhookIssueCommentCreatedPropIssue +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + 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.", ) - 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) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - 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'" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." ) - 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 + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class 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: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentCreated) -__all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentCreated",) 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 a1e0c8aee..a9859cc27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0625.py @@ -18,35 +18,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType -from .group_0626 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0628 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0630 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0631 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary +from .group_0010 import Integration -class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) 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", @@ -60,91 +41,24 @@ class WebhookIssueCommentCreatedPropIssueAllof0(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() + body: str = Field(description="Contents of the issue comment") 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.", - ) - ) + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() 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( + performed_via_github_app: Union[None, Integration, None] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( title="Reactions" ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, 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): +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -159,7 +73,7 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,21 +95,17 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropUser(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(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", ) 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 fda7ebaae..157a92b1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0626.py @@ -18,9 +18,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary +from .group_0628 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) +from .group_0634 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0635 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[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() + -class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -48,36 +125,58 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - 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") + 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 WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" - diff_url: 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) - 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) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", ) 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 3775a89ee..5a2665d55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0627.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,8 +18,148 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary +from .group_0628 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) +from .group_0630 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0632 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + 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[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,6 +188,14 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", +) 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 0d9cb6c64..fda7ebaae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0628.py @@ -15,38 +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_0627 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 WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +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") + +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) + 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) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", +) 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 9a58db044..3775a89ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0629.py @@ -18,9 +18,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -42,73 +40,13 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - 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( + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "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) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) 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 8678e1374..1c3dcc596 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0630.py @@ -10,52 +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_0629 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + A collection of related issues and pull requests. """ - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - 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(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) 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 bdfcb7cc4..9a58db044 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0631.py @@ -9,19 +9,106 @@ 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 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 WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" + The set of permissions for the GitHub app + """ - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + 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(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) 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 7371c113a..7165b3f7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0632.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,162 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0631 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -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) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + 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() - 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) + 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(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) 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 2dfd981a2..7371c113a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0633.py @@ -9,41 +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_0627 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +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) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" -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") +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() - 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 WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) +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__ = ( + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", +) 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 422e1ecca..40b18568e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0634.py @@ -10,46 +10,40 @@ 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_0629 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - 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(WebhookIssueCommentCreatedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) 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 33aaaeb64..ca7c6b715 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0635.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,48 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0505 import WebhooksIssueComment -from .group_0636 import WebhookIssueCommentDeletedPropIssue +from .group_0631 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - 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.", + 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" ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + 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" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeleted) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeleted",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) 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 39189b0a9..3d02aeee7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0636.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,165 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType -from .group_0638 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) -from .group_0643 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary -from .group_0645 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0646 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0507 import WebhooksIssueComment +from .group_0637 import WebhookIssueCommentDeletedPropIssue -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[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.", + 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.", ) - 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) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - 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'" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + issue: WebhookIssueCommentDeletedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." ) - 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 + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class 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 + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentDeleted) -__all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentDeleted",) 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 b5440dc3f..8a85b4257 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0637.py @@ -18,35 +18,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType -from .group_0638 import ( +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary +from .group_0639 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) -from .group_0640 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0642 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0643 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary +from .group_0645 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0646 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp -class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. """ 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] + 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", @@ -60,7 +56,7 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + 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() @@ -69,38 +65,25 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() 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.", - ) - ) + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() 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.", - ) + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( Field(default=UNSET) ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() 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'" + sub_issues_summary: Missing[SubIssuesSummary] = 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) @@ -110,13 +93,11 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): ) updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -144,8 +125,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -159,8 +140,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -188,14 +169,14 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", ) 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 79014e43a..ea14ee394 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0638.py @@ -18,8 +18,104 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary +from .group_0639 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) +from .group_0641 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0643 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + 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[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -48,36 +144,58 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - 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") + 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 WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" - diff_url: 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) - 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) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ) 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 132940878..79014e43a 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 @@ -18,7 +19,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,6 +48,36 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) + 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""" + + 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_0640.py b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py index ee6c24e5f..132940878 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py @@ -9,44 +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_0639 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(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[ - 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(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + 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/ghec_v2022_11_28/models/group_0641.py b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py index c6044c9aa..0b3bc5e8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py @@ -9,102 +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 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) +from .group_0640 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - 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) + 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( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) 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 0ad0dd98c..c6044c9aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0642.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,44 +17,94 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0641 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user 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 set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) 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 f0a05c54f..413d9f03f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0643.py @@ -9,19 +9,53 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0642 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(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[ + 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(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) 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 1851d200d..8bfc46b2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0645.py @@ -16,7 +16,7 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0639 import ( +from .group_0640 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) 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 e3343329a..a68aeb634 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0646.py @@ -18,7 +18,7 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0641 import ( +from .group_0642 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) 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 f54ac899c..7d1fe2b96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0647.py @@ -18,12 +18,12 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0505 import WebhooksIssueComment -from .group_0506 import WebhooksChanges +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0507 import WebhooksIssueComment +from .group_0508 import WebhooksChanges from .group_0648 import WebhookIssueCommentEditedPropIssue 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 62544de8a..736111f33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0648.py @@ -18,15 +18,15 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) -from .group_0655 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary -from .group_0657 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0658 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp +from .group_0656 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0657 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp class WebhookIssueCommentEditedPropIssue(GitHubModel): @@ -79,9 +79,9 @@ class WebhookIssueCommentEditedPropIssue(GitHubModel): ) reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) state: Literal["open", "closed"] = Field( description="State of the issue; either 'open' or 'closed'" ) 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 34a16ab3c..0e89f4cee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0649.py @@ -18,7 +18,8 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, @@ -28,7 +29,6 @@ from .group_0654 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) -from .group_0655 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): @@ -96,9 +96,9 @@ class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): title="Reactions" ) repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) 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 2d17d8ee7..7d03e33d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0655.py @@ -9,19 +9,170 @@ 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 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) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class 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 WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + 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(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) +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__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", +) 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 7d03e33d0..aeda78b47 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0656.py @@ -9,170 +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 +from .group_0651 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -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 WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") - - -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) + 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(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) 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 aeda78b47..6ba6632f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0657.py @@ -10,38 +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_0651 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0653 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - 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[ + 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(WebhookIssueCommentEditedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) 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 6ba6632f5..3a42e728e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0658.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,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0653 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser +from .group_0509 import WebhooksIssue -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" - 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)."', ) - 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() + 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(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesAssigned) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssuesAssigned",) 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 0006d2685..ed85dbc03 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, Union +from typing import Literal from pydantic import Field @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser -from .group_0507 import WebhooksIssue +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0660 import WebhookIssuesClosedPropIssue -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" - action: Literal["assigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + action: Literal["closed"] = Field(description="The action that was performed.") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,9 +39,8 @@ class WebhookIssuesAssigned(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( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + 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, @@ -57,6 +54,6 @@ class WebhookIssuesAssigned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesAssigned) +model_rebuild(WebhookIssuesClosed) -__all__ = ("WebhookIssuesAssigned",) +__all__ = ("WebhookIssuesClosed",) 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 5c1108400..719b856cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0660.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0660.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,43 +18,210 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0661 import WebhookIssuesClosedPropIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary +from .group_0666 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0668 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0669 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue - 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)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( + default=UNSET + ) + assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( + default=UNSET + ) + 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[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself." + 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 ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + 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 ) - 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(WebhookIssuesClosed) +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) -__all__ = ("WebhookIssuesClosed",) +__all__ = ( + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", +) 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 18c0b90d1..8ecdf3f7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0661.py @@ -18,29 +18,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType -from .group_0667 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) -from .group_0669 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0670 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary +from .group_0663 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0665 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +from .group_0666 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue 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 + None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -54,7 +54,7 @@ class WebhookIssuesClosedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") + body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -63,27 +63,36 @@ class WebhookIssuesClosedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( + labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( default=UNSET ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() + 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[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) + 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: WebhookIssuesClosedPropIssueMergedReactions = Field() + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) 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'" + sub_issues_summary: Missing[SubIssuesSummary] = 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) @@ -93,11 +102,11 @@ class WebhookIssuesClosedPropIssue(GitHubModel): ) updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: WebhookIssuesClosedPropIssueMergedUser = Field() + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") -class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignee""" +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -125,8 +134,8 @@ class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -154,8 +163,8 @@ class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -168,8 +177,8 @@ class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -183,8 +192,8 @@ class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -212,18 +221,18 @@ class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", ) 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 fa8869cf7..038d97dfc 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,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,183 +17,8 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType -from .group_0664 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0666 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -from .group_0667 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") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") - - -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: 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): +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -223,18 +47,6 @@ class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): 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(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) 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 038d97dfc..e7c88fe14 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0663.py @@ -9,44 +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 - - -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 + +from .group_0662 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator + + +class WebhookIssuesClosedPropIssueAllof0PropMilestone(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[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = 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() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) 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 b31f58d88..52dd00063 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0664.py @@ -9,42 +9,99 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0663 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + 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 - A collection of related issues and pull requests. + The set of permissions for the GitHub app """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") + 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 ) - 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() + 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) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) 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 52dd00063..85a8cec3f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0665.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,43 @@ 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) +from .group_0664 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The set of permissions for the 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. """ - 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[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - organization_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(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) 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 e8c5a8ccb..47fa9ebee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0666.py @@ -18,43 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0665 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(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[ - 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() - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) + +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) + + +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) 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 ada7003bc..abefecf23 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0667.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,28 +18,125 @@ from githubkit.utils import UNSET -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( + Field(default=UNSET) + ) + assignees: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) + ) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["closed", "open"] = Field() + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) +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__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", ) 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 abefecf23..5347361dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0668.py @@ -9,134 +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 +from .group_0662 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) - ) - assignees: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) - ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", -) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) + +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) 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 c9a6e9fc8..47d17b440 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0669.py @@ -10,38 +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_0663 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0664 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - 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[ + 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() -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) 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 9aadcc787..3a808df5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0670.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0670.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,37 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0665 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0671 import WebhookIssuesDeletedPropIssue -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - 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() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() + 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.") -model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesDeleted) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssuesDeleted",) 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 eeb528341..08618e61c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0671.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,392 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0672 import WebhookIssuesDeletedPropIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" +class WebhookIssuesDeletedPropIssue(GitHubModel): + """Issue - 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 [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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[ + 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" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 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(WebhookIssuesDeletedPropIssuePropUser) -__all__ = ("WebhookIssuesDeleted",) +__all__ = ( + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropUser", +) 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 9e8872db9..949aeb1a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0672.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0672.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,401 +17,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0510 import WebhooksMilestone +from .group_0673 import WebhookIssuesDemilestonedPropIssue -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() + action: Literal["demilestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET + issue: WebhookIssuesDemilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( + milestone: Missing[WebhooksMilestone] = Field( + default=UNSET, title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[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") + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository: RepositoryWebhooks = Field( + title="Repository", + 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") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -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(WebhookIssuesDemilestoned) -__all__ = ( - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", - "WebhookIssuesDeletedPropIssuePropUser", -) +__all__ = ("WebhookIssuesDemilestoned",) 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 d6d844cd3..24cfcf321 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,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,50 +18,404 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0508 import WebhooksMilestone -from .group_0674 import WebhookIssuesDemilestonedPropIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" +class WebhookIssuesDemilestonedPropIssue(GitHubModel): + """Issue - 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)."', + 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") ) - issue: WebhookIssuesDemilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + 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.", ) - milestone: Missing[WebhooksMilestone] = 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[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + 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 ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class 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 WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(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(WebhookIssuesDemilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesDemilestoned",) +__all__ = ( + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", +) 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 f89a12196..5378bb328 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0674.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,413 +17,79 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0504 import WebhooksLabel +from .group_0675 import WebhookIssuesEditedPropIssue -class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """Issue +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[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.", + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - 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'" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - 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") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: 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 + issue: WebhookIssuesEditedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - 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" + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - 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" + repository: RepositoryWebhooks = Field( + title="Repository", + 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() - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app + The changes to the issue. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "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""" + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) - 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 WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" -class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" + from_: str = Field(alias="from", description="The previous version of the body.") - 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 WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" + from_: str = Field(alias="from", description="The previous version of the title.") - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - -class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDemilestonedPropIssue) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesEdited) +model_rebuild(WebhookIssuesEditedPropChanges) +model_rebuild(WebhookIssuesEditedPropChangesPropBody) +model_rebuild(WebhookIssuesEditedPropChangesPropTitle) __all__ = ( - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssuePropAssignee", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", - "WebhookIssuesDemilestonedPropIssuePropLabelsItems", - "WebhookIssuesDemilestonedPropIssuePropMilestone", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssuePropPullRequest", - "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesDemilestonedPropIssuePropUser", + "WebhookIssuesEdited", + "WebhookIssuesEditedPropChanges", + "WebhookIssuesEditedPropChangesPropBody", + "WebhookIssuesEditedPropChangesPropTitle", ) 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 fb4a08e33..7b8f3469f 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,79 +18,399 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0502 import WebhooksLabel -from .group_0676 import WebhookIssuesEditedPropIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" +class WebhookIssuesEditedPropIssue(GitHubModel): + """Issue - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the 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" ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + Field() ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - issue: WebhookIssuesEditedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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 WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges +class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): + """Milestone - The changes to the issue. + A collection of related issues and pull requests. """ - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) + 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""" -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - from_: str = Field(alias="from", description="The previous version of the body.") +class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - from_: str = Field(alias="from", description="The previous version of the title.") + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class 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(WebhookIssuesEditedPropIssuePropUser) __all__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", + "WebhookIssuesEditedPropIssue", + "WebhookIssuesEditedPropIssuePropAssignee", + "WebhookIssuesEditedPropIssuePropAssigneesItems", + "WebhookIssuesEditedPropIssuePropLabelsItems", + "WebhookIssuesEditedPropIssuePropMilestone", + "WebhookIssuesEditedPropIssuePropMilestonePropCreator", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesEditedPropIssuePropPullRequest", + "WebhookIssuesEditedPropIssuePropReactions", + "WebhookIssuesEditedPropIssuePropUser", ) 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 33717c982..f8b177859 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0676.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0676.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,408 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0504 import WebhooksLabel +from .group_0677 import WebhookIssuesLabeledPropIssue -class WebhookIssuesEditedPropIssue(GitHubModel): - """Issue +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + action: Literal["labeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + issue: WebhookIssuesLabeledPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesEditedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesEditedPropIssue) -model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) -model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesEditedPropIssuePropReactions) -model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesEditedPropIssuePropUser) +model_rebuild(WebhookIssuesLabeled) -__all__ = ( - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", - "WebhookIssuesEditedPropIssuePropUser", -) +__all__ = ("WebhookIssuesLabeled",) 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 ff746bb76..d41e2edb0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0677.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,46 +18,401 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0502 import WebhooksLabel -from .group_0678 import WebhookIssuesLabeledPropIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" +class WebhookIssuesLabeledPropIssue(GitHubModel): + """Issue - action: Literal["labeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesLabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + 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 WebhookIssuesLabeledPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(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(WebhookIssuesLabeledPropIssuePropUser) -__all__ = ("WebhookIssuesLabeled",) +__all__ = ( + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropUser", +) 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 0d1423246..14bb8ce38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0678.py +++ b/githubkit/versions/ghec_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,410 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0679 import WebhookIssuesLockedPropIssue -class WebhookIssuesLabeledPropIssue(GitHubModel): - """Issue +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: 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( + action: Literal["locked"] = 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[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - updated_at: Union[datetime, None] = Field() - - -class 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 + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: WebhookIssuesLockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLabeledPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesLabeledPropIssue) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLabeledPropIssuePropUser) +model_rebuild(WebhookIssuesLocked) -__all__ = ( - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", - "WebhookIssuesLabeledPropIssuePropUser", -) +__all__ = ("WebhookIssuesLocked",) 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 a3706538a..4c2cb500b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0679.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,44 +18,390 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0680 import WebhookIssuesLockedPropIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" +class WebhookIssuesLockedPropIssue(GitHubModel): + """Issue - action: Literal["locked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[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.", ) - issue: WebhookIssuesLockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( + Field(default=UNSET) ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + 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="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[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" ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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[ + 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" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 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(WebhookIssuesLockedPropIssuePropUser) -__all__ = ("WebhookIssuesLocked",) +__all__ = ( + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", +) 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 9c4052878..9728f2e06 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0680.py +++ b/githubkit/versions/ghec_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,399 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0510 import WebhooksMilestone +from .group_0681 import WebhookIssuesMilestonedPropIssue -class WebhookIssuesLockedPropIssue(GitHubModel): - """Issue +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( - Field() + action: Literal["milestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( - Field(default=UNSET) + issue: WebhookIssuesMilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( + milestone: WebhooksMilestone = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[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) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") - - -class 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 + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class 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) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -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(WebhookIssuesMilestoned) -__all__ = ( - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssuePropAssignee", - "WebhookIssuesLockedPropIssuePropAssigneesItems", - "WebhookIssuesLockedPropIssuePropLabelsItems", - "WebhookIssuesLockedPropIssuePropMilestone", - "WebhookIssuesLockedPropIssuePropMilestonePropCreator", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssuePropPullRequest", - "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", - "WebhookIssuesLockedPropIssuePropUser", -) +__all__ = ("WebhookIssuesMilestoned",) 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 41d4fb7d9..3c19acbff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0681.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,49 +18,394 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0508 import WebhooksMilestone -from .group_0682 import WebhookIssuesMilestonedPropIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" +class WebhookIssuesMilestonedPropIssue(GitHubModel): + """Issue - action: Literal["milestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + Field() ) - issue: WebhookIssuesMilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - milestone: WebhooksMilestone = Field( + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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 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" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 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(WebhookIssuesMilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesMilestoned",) +__all__ = ( + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", +) 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 a514cd176..1b46667b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0682.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,403 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0683 import WebhookIssuesOpenedPropChanges +from .group_0685 import WebhookIssuesOpenedPropIssue -class WebhookIssuesMilestonedPropIssue(GitHubModel): - """Issue +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + issue: WebhookIssuesOpenedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesMilestonedPropIssue) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesOpened) -__all__ = ( - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssuePropAssignee", - "WebhookIssuesMilestonedPropIssuePropAssigneesItems", - "WebhookIssuesMilestonedPropIssuePropLabelsItems", - "WebhookIssuesMilestonedPropIssuePropMilestone", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssuePropPullRequest", - "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesMilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesOpened",) 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 cdf045f53..cd3811e4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0683.py @@ -9,54 +9,236 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0684 import WebhookIssuesOpenedPropChanges -from .group_0686 import WebhookIssuesOpenedPropIssue +from .group_0684 import WebhookIssuesOpenedPropChangesPropOldIssue -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - installation: Missing[SimpleInstallation] = Field( + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to delete head branches when pull requests are merged", ) - issue: WebhookIssuesOpenedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_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") ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + 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." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesOpened) +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) -__all__ = ("WebhookIssuesOpened",) +__all__ = ( + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", +) 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 a5a274b28..50bd405a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0684.py @@ -14,183 +14,260 @@ 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_0685 import WebhookIssuesOpenedPropChangesPropOldIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - 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 + active_lock_reason: Missing[ + Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + ] = Field(default=UNSET) + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: Missing[ + list[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] ] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + closed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] + ] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: Missing[str] = Field(default=UNSET) + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: Missing[str] = Field(default=UNSET) + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET, description="Title of the issue") + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the issue") + user: Missing[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None]] = ( + Field(default=UNSET, title="User") + ) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - deployments_url: str = Field() + default: bool = 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() + 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(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() + id: int = Field() labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - 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() + number: int = Field(description="The number of the milestone.") open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[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() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." - ) -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties +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) - 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 WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - key: str = Field() - name: str = 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() - spdx_id: str = Field() - url: Union[str, None] = 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 WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -217,28 +294,136 @@ class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" +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) - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) + 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 WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(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(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) __all__ = ( - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", ) 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 dc080ad81..bf5eb2994 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0685.py @@ -18,100 +18,89 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): +class WebhookIssuesOpenedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- cloud@latest//rest/issues/issues#get-an-issue) itself. """ - active_lock_reason: Missing[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] - ] = Field(default=UNSET) - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: Missing[ - list[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[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( - default=UNSET, title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - closed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() draft: Missing[bool] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( - Field(default=UNSET) + labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - labels_url: Missing[str] = Field(default=UNSET) + labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] - ] = Field( - default=UNSET, + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + Union[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[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + default=UNSET ) - reactions: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropReactions] = Field( - default=UNSET, title="Reactions" + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" ) - repository_url: Missing[str] = Field(default=UNSET) - sub_issues_summary: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET, description="Title of the issue") - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the issue") - user: Missing[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None]] = ( - Field(default=UNSET, title="User") - ) + title: str = Field(description="Title of the issue") type: Missing[Union[IssueType, None]] = Field( default=UNSET, title="Issue Type", description="The type of issue." ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -138,7 +127,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -165,7 +154,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -179,7 +168,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -188,9 +177,9 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -205,7 +194,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -227,12 +216,14 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(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"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -252,11 +243,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + 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" @@ -264,9 +254,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -293,11 +281,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -321,7 +306,9 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer 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 @@ -343,8 +330,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -353,7 +340,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -368,15 +355,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): +class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -403,36 +382,30 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(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(WebhookIssuesOpenedPropIssuePropUser) __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropUser", ) 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 b2d74557b..11625dce2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0686.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,403 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0511 import WebhooksIssue2 -class WebhookIssuesOpenedPropIssue(GitHubModel): - """Issue +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[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( + action: Literal["pinned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( - title="User" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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: 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() - - -class 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 + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesPinned) -__all__ = ( - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropIssuePropUser", -) +__all__ = ("WebhookIssuesPinned",) 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 00b68c491..3e6e768c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0687.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0509 import WebhooksIssue2 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0688 import WebhookIssuesReopenedPropIssue -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["pinned"] = Field() + action: Literal["reopened"] = 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: WebhookIssuesReopenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) @@ -55,6 +55,6 @@ class WebhookIssuesPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesPinned) +model_rebuild(WebhookIssuesReopened) -__all__ = ("WebhookIssuesPinned",) +__all__ = ("WebhookIssuesReopened",) 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 13267585f..4698874e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0688.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,400 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0689 import WebhookIssuesReopenedPropIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookIssuesReopenedPropIssue(GitHubModel): + """Issue - 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)."', + 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" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[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.", ) - issue: WebhookIssuesReopenedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + + +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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() + + +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 WebhookIssuesReopenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(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(WebhookIssuesReopenedPropIssuePropUser) -__all__ = ("WebhookIssuesReopened",) +__all__ = ( + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", +) 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 51820060c..3c06cf87f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0689.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0689.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,409 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0511 import WebhooksIssue2 +from .group_0690 import WebhookIssuesTransferredPropChanges -class WebhookIssuesReopenedPropIssue(GitHubModel): - """Issue +class WebhookIssuesTransferred(GitHubModel): + """issues transferred event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[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( + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = 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[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - - -class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class 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 + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - 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 + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - 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 + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(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(WebhookIssuesTransferred) -__all__ = ( - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssuePropAssignee", - "WebhookIssuesReopenedPropIssuePropAssigneesItems", - "WebhookIssuesReopenedPropIssuePropLabelsItems", - "WebhookIssuesReopenedPropIssuePropMilestone", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssuePropPullRequest", - "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", - "WebhookIssuesReopenedPropIssuePropUser", -) +__all__ = ("WebhookIssuesTransferred",) 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 be41ed3e5..aecfa4b0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0690.py @@ -9,54 +9,237 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0509 import WebhooksIssue2 -from .group_0691 import WebhookIssuesTransferredPropChanges +from .group_0691 import WebhookIssuesTransferredPropChangesPropNewIssue -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - installation: Missing[SimpleInstallation] = Field( + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to delete head branches when pull requests are merged", ) - issue: WebhooksIssue2 = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTransferred) +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) -__all__ = ("WebhookIssuesTransferred",) +__all__ = ( + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", +) 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 737486437..8e4ce109f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0691.py @@ -14,184 +14,261 @@ 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_0692 import WebhookIssuesTransferredPropChangesPropNewIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): + """Issue - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - 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." + 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.", ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = 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 + 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( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="Milestone", + description="A collection of related issues and pull requests.", ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] + ] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + 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.", ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" ) - 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_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" ) - 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." + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() + 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(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() + id: int = Field() labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() + number: int = Field(description="The number of the milestone.") open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel ): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=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 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 WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( + GitHubModel +): + """App -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - key: str = Field() - name: str = 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() - spdx_id: str = Field() - url: Union[str, None] = 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 WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,28 +295,136 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" +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() - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) +class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): + """User""" -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=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(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(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) __all__ = ( - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", ) 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 2f9375269..4751f0ddf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0692.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,422 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0159 import IssueType +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0509 import WebhooksIssue -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): - """Issue +class WebhookIssuesTyped(GitHubModel): + """issues typed event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] - ] = Field( + action: Literal["typed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - updated_at: 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - 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" + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - 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" + type: Union[IssueType, None] = Field( + title="Issue Type", description="The type of issue." ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesTyped) -__all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", -) +__all__ = ("WebhookIssuesTyped",) 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 011abe59d..19b46c5b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0693.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0158 import IssueType -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0507 import WebhooksIssue +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0509 import WebhooksIssue +from .group_0512 import WebhooksUserMannequin -class WebhookIssuesTyped(GitHubModel): - """issues typed event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["typed"] = Field() + action: Literal["unassigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,9 +47,6 @@ class WebhookIssuesTyped(GitHubModel): title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - type: Union[IssueType, None] = Field( - title="Issue Type", description="The type of issue." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +59,6 @@ class WebhookIssuesTyped(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTyped) +model_rebuild(WebhookIssuesUnassigned) -__all__ = ("WebhookIssuesTyped",) +__all__ = ("WebhookIssuesUnassigned",) 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 2641e74be..82991f40d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0694.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,21 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0507 import WebhooksIssue -from .group_0510 import WebhooksUserMannequin +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0504 import WebhooksLabel +from .group_0509 import WebhooksIssue -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,6 +44,7 @@ class WebhookIssuesUnassigned(GitHubModel): 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,6 @@ class WebhookIssuesUnassigned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnassigned) +model_rebuild(WebhookIssuesUnlabeled) -__all__ = ("WebhookIssuesUnassigned",) +__all__ = ("WebhookIssuesUnlabeled",) 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 125d82fce..12ca6d9ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0695.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0502 import WebhooksLabel -from .group_0507 import WebhooksIssue +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0696 import WebhookIssuesUnlockedPropIssue -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" - action: Literal["unlabeled"] = Field() + action: Literal["unlocked"] = 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: WebhookIssuesUnlockedPropIssue = 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,6 @@ class WebhookIssuesUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnlabeled) +model_rebuild(WebhookIssuesUnlocked) -__all__ = ("WebhookIssuesUnlabeled",) +__all__ = ("WebhookIssuesUnlocked",) 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 a9c3b1b85..d84ae8db5 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,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,392 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0697 import WebhookIssuesUnlockedPropIssue +from .group_0159 import IssueType +from .group_0161 import SubIssuesSummary -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookIssuesUnlockedPropIssue(GitHubModel): + """Issue - 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)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[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.", ) - issue: WebhookIssuesUnlockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[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.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = 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: RepositoryWebhooks = Field( - title="Repository", - 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") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") + + +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() + 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 +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(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(WebhookIssuesUnlockedPropIssuePropUser) -__all__ = ("WebhookIssuesUnlocked",) +__all__ = ( + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", +) 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 d317c4d66..45b1548f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0697.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,401 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0158 import IssueType +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0511 import WebhooksIssue2 -class WebhookIssuesUnlockedPropIssue(GitHubModel): - """Issue +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[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( + action: Literal["unpinned"] = 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[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") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") - - -class 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" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - 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" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - updated_at: Union[datetime, None] = Field() - - -class 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 -): - """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: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -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(WebhookIssuesUnpinned) -__all__ = ( - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssuePropAssignee", - "WebhookIssuesUnlockedPropIssuePropAssigneesItems", - "WebhookIssuesUnlockedPropIssuePropLabelsItems", - "WebhookIssuesUnlockedPropIssuePropMilestone", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssuePropPullRequest", - "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", - "WebhookIssuesUnlockedPropIssuePropUser", -) +__all__ = ("WebhookIssuesUnpinned",) 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 bc68d30d2..dbc72902d 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,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0509 import WebhooksIssue2 +from .group_0159 import IssueType +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0509 import WebhooksIssue -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookIssuesUntyped(GitHubModel): + """issues untyped event""" - action: Literal["unpinned"] = Field() + action: Literal["untyped"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,13 @@ class WebhookIssuesUnpinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhooksIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + type: Union[IssueType, None] = Field( + title="Issue Type", description="The type of issue." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +59,6 @@ class WebhookIssuesUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnpinned) +model_rebuild(WebhookIssuesUntyped) -__all__ = ("WebhookIssuesUnpinned",) +__all__ = ("WebhookIssuesUntyped",) 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 83f614514..606b20098 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 Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0158 import IssueType -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0507 import WebhooksIssue +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0504 import WebhooksLabel -class WebhookIssuesUntyped(GitHubModel): - """issues untyped event""" +class WebhookLabelCreated(GitHubModel): + """label created event""" - action: Literal["untyped"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,13 +39,7 @@ class WebhookIssuesUntyped(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( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - type: Union[IssueType, None] = Field( - title="Issue Type", description="The type of issue." - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,9 +49,11 @@ class WebhookIssuesUntyped(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(WebhookIssuesUntyped) +model_rebuild(WebhookLabelCreated) -__all__ = ("WebhookIssuesUntyped",) +__all__ = ("WebhookLabelCreated",) 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 8d256f186..bd6b62eb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0700.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0700.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0502 import WebhooksLabel +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0504 import WebhooksLabel -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +49,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(WebhookLabelDeleted) -__all__ = ("WebhookLabelCreated",) +__all__ = ("WebhookLabelDeleted",) 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 2accd7ed8..6c83197cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0701.py @@ -18,17 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0502 import WebhooksLabel +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0504 import WebhooksLabel -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" +class WebhookLabelEdited(GitHubModel): + """label edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,6 +56,56 @@ class WebhookLabelDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookLabelDeleted) +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) -__all__ = ("WebhookLabelDeleted",) +__all__ = ( + "WebhookLabelEdited", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", +) 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 7b4f78d3c..b77d95f9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0702.py @@ -18,21 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0502 import WebhooksLabel +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0513 import WebhooksMarketplacePurchase +from .group_0514 import WebhooksPreviousMarketplacePurchase -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", - ) + action: Literal["cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,69 +41,25 @@ 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") + 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 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(WebhookMarketplacePurchaseCancelled) -__all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", -) +__all__ = ("WebhookMarketplacePurchaseCancelled",) 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 525e0712c..29c503f40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0703.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0703.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0511 import WebhooksMarketplacePurchase -from .group_0512 import WebhooksPreviousMarketplacePurchase +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0513 import WebhooksMarketplacePurchase -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" - action: Literal["cancelled"] = Field() + action: Literal["changed"] = Field() effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -49,9 +48,9 @@ class WebhookMarketplacePurchaseCancelled(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.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -60,6 +59,58 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchaseCancelled) +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__ = ("WebhookMarketplacePurchaseCancelled",) +__all__ = ( + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", +) 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 130696533..408b47461 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0704.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0511 import WebhooksMarketplacePurchase +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0513 import WebhooksMarketplacePurchase -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - action: Literal["changed"] = Field() + action: Literal["pending_change"] = Field() effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -49,7 +49,7 @@ class WebhookMarketplacePurchaseChanged(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.", ) previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase ] = Field(default=UNSET, title="Marketplace Purchase") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, @@ -59,24 +59,26 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): """Marketplace Purchase""" - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + 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: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() unit_count: int = Field() -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( GitHubModel ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ id: int = Field() login: str = Field() @@ -85,10 +87,10 @@ class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccoun type: str = Field() -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( GitHubModel ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" bullets: list[str] = Field() description: str = Field() @@ -101,16 +103,18 @@ class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( yearly_price_in_cents: int = Field() -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan ) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ) 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 9e315c3be..b9909c049 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0705.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0511 import WebhooksMarketplacePurchase +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0514 import WebhooksPreviousMarketplacePurchase -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["pending_change"] = Field() + action: Literal["pending_change_cancelled"] = Field() effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,7 +40,7 @@ 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( + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( title="Marketplace Purchase" ) organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -48,9 +48,9 @@ class WebhookMarketplacePurchasePendingChange(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.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -59,25 +59,25 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( GitHubModel ): """Marketplace Purchase""" - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() unit_count: int = Field() -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( GitHubModel ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt """ id: int = Field() @@ -87,10 +87,10 @@ class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseProp type: str = Field() -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( GitHubModel ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" bullets: list[str] = Field() description: str = Field() @@ -103,18 +103,18 @@ class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseProp yearly_price_in_cents: int = Field() -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount ) model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan ) __all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ) 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 18b614adc..457b9c31e 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, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0512 import WebhooksPreviousMarketplacePurchase +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0513 import WebhooksMarketplacePurchase +from .group_0514 import WebhooksPreviousMarketplacePurchase -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["pending_change_cancelled"] = Field() + action: Literal["purchased"] = Field() effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,7 +41,7 @@ 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( + marketplace_purchase: WebhooksMarketplacePurchase = Field( title="Marketplace Purchase" ) organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -59,62 +60,6 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" +model_rebuild(WebhookMarketplacePurchasePurchased) - 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 -) - -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", -) +__all__ = ("WebhookMarketplacePurchasePurchased",) 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 831a21d05..68e6d379e 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 +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0511 import WebhooksMarketplacePurchase -from .group_0512 import WebhooksPreviousMarketplacePurchase +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +40,63 @@ 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" - ) + 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.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchasePurchased) +class WebhookMemberAddedPropChanges(GitHubModel): + """WebhookMemberAddedPropChanges""" + + permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( + default=UNSET, + description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", + ) + role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( + default=UNSET, description="The role assigned to the collaborator." + ) + + +class WebhookMemberAddedPropChangesPropPermission(GitHubModel): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] = Field() + + +class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str = Field() + + +model_rebuild(WebhookMemberAdded) +model_rebuild(WebhookMemberAddedPropChanges) +model_rebuild(WebhookMemberAddedPropChangesPropPermission) +model_rebuild(WebhookMemberAddedPropChangesPropRoleName) -__all__ = ("WebhookMarketplacePurchasePurchased",) +__all__ = ( + "WebhookMemberAdded", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", +) 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 199f13f2d..62a2ec41c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0708.py @@ -18,18 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookMemberEdited(GitHubModel): + """member edited event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,50 +55,44 @@ class WebhookMemberAdded(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges - 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.", + The changes to the collaborator permissions + """ + + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + default=UNSET ) -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 WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - The role assigned to the collaborator. - """ +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" - to: str = Field() + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) __all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", + "WebhookMemberEdited", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", ) 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 62734c78f..669717d86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0709.py @@ -18,20 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookMemberRemoved(GitHubModel): + """member removed event""" - action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" - ) + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,44 +52,6 @@ class WebhookMemberEdited(GitHubModel): 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(WebhookMemberRemoved) -__all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", -) +__all__ = ("WebhookMemberRemoved",) 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 a721ae813..778d7b4b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0710.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser +from .group_0515 import WebhooksTeam -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookMembershipAdded(GitHubModel): + """membership added event""" - action: Literal["removed"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,18 +40,56 @@ class WebhookMemberRemoved(GitHubModel): description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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, + 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(WebhookMemberRemoved) +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropSender) -__all__ = ("WebhookMemberRemoved",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropSender", +) 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 3c0033697..4d2d31c23 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0711.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser -from .group_0513 import WebhooksTeam +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser +from .group_0515 import WebhooksTeam -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" - action: Literal["added"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,17 +49,17 @@ class WebhookMembershipAdded(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.", ) - scope: Literal["team"] = Field( + scope: Literal["team", "organization"] = Field( description="The scope of the membership. Currently, can only be `team`." ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") team: WebhooksTeam = Field( title="Team", description="Groups of organization members that gives permissions on specified repositories.", ) -class WebhookMembershipAddedPropSender(GitHubModel): +class WebhookMembershipRemovedPropSender(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -86,10 +86,10 @@ class WebhookMembershipAddedPropSender(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropSender) +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropSender) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropSender", + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropSender", ) 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 0345c6736..d8cef2dc9 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, Union +from typing import Literal from pydantic import Field @@ -17,30 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser -from .group_0513 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0516 import MergeGroup -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - 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)."', - ) + 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)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - 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,47 +47,11 @@ class WebhookMembershipRemoved(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.", ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - 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(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropSender) +model_rebuild(WebhookMergeGroupChecksRequested) -__all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropSender", -) +__all__ = ("WebhookMergeGroupChecksRequested",) 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 c20ae7799..5fa79b81d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0713.py @@ -18,16 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0514 import MergeGroup +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0516 import MergeGroup -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - action: Literal["checks_requested"] = Field() + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = 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).", + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -52,6 +56,6 @@ class WebhookMergeGroupChecksRequested(GitHubModel): ) -model_rebuild(WebhookMergeGroupChecksRequested) +model_rebuild(WebhookMergeGroupDestroyed) -__all__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ("WebhookMergeGroupDestroyed",) 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 dd2344859..979859a7a 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 @@ -18,44 +18,73 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0514 import MergeGroup +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + action: Literal["deleted"] = 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)."', ) + hook: WebhookMetaDeletedPropHook = Field( + description="The deleted 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)."', ) - 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: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - 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." ) -model_rebuild(WebhookMergeGroupDestroyed) +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook + + The deleted 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(description="") + 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__ = ("WebhookMergeGroupDestroyed",) +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) 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 241b4db27..a8dd6d5b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0715.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,73 +18,43 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0510 import WebhooksMilestone -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["deleted"] = Field() + 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)."', ) - hook: WebhookMetaDeletedPropHook = Field( - description="The deleted webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + milestone: 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[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook - - The deleted 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(description="") - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() - - -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() - - -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) +model_rebuild(WebhookMilestoneClosed) -__all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", -) +__all__ = ("WebhookMilestoneClosed",) 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 5334050f2..706ec0345 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0716.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0508 import WebhooksMilestone +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0517 import WebhooksMilestone3 -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["closed"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +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/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( + milestone: WebhooksMilestone3 = Field( title="Milestone", description="A collection of related issues and pull requests.", ) @@ -55,6 +55,6 @@ class WebhookMilestoneClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneClosed) +model_rebuild(WebhookMilestoneCreated) -__all__ = ("WebhookMilestoneClosed",) +__all__ = ("WebhookMilestoneCreated",) 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 7a75753c2..1505b6a79 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0717.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0515 import WebhooksMilestone3 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0510 import WebhooksMilestone -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +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( + milestone: WebhooksMilestone = Field( title="Milestone", description="A collection of related issues and pull requests.", ) @@ -55,6 +55,6 @@ class WebhookMilestoneCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneCreated) +model_rebuild(WebhookMilestoneDeleted) -__all__ = ("WebhookMilestoneCreated",) +__all__ = ("WebhookMilestoneDeleted",) 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 100558cc1..320337511 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0718.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0508 import WebhooksMilestone +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0510 import WebhooksMilestone -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - action: Literal["deleted"] = 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", @@ -55,6 +58,56 @@ class WebhookMilestoneDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneDeleted) +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__ = ("WebhookMilestoneDeleted",) +__all__ = ( + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", +) 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 dc49f6c97..f37289dde 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0719.py @@ -18,20 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0508 import WebhooksMilestone +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0517 import WebhooksMilestone3 -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,7 +39,7 @@ 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( + milestone: WebhooksMilestone3 = Field( title="Milestone", description="A collection of related issues and pull requests.", ) @@ -58,56 +55,6 @@ class WebhookMilestoneEdited(GitHubModel): 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`.", - ) - - -model_rebuild(WebhookMilestoneEdited) -model_rebuild(WebhookMilestoneEditedPropChanges) -model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) -model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) -model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) +model_rebuild(WebhookMilestoneOpened) -__all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", -) +__all__ = ("WebhookMilestoneOpened",) 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 c7ad46f43..c627ff33e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0720.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0515 import WebhooksMilestone3 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" - action: Literal["opened"] = Field() + action: Literal["blocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +40,18 @@ class WebhookMilestoneOpened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + 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.") -model_rebuild(WebhookMilestoneOpened) +model_rebuild(WebhookOrgBlockBlocked) -__all__ = ("WebhookMilestoneOpened",) +__all__ = ("WebhookOrgBlockBlocked",) 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 9e6f90fc9..872307b1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0721.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" - action: Literal["blocked"] = Field() + action: Literal["unblocked"] = Field() blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookOrgBlockBlocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockBlocked) +model_rebuild(WebhookOrgBlockUnblocked) -__all__ = ("WebhookOrgBlockBlocked",) +__all__ = ("WebhookOrgBlockUnblocked",) 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 0f415cadd..d37ff1f58 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0722.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0518 import WebhooksMembership -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookOrganizationDeleted(GitHubModel): + """organization 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", @@ -40,6 +39,11 @@ class WebhookOrgBlockUnblocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + 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.", @@ -52,6 +56,6 @@ class WebhookOrgBlockUnblocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockUnblocked) +model_rebuild(WebhookOrganizationDeleted) -__all__ = ("WebhookOrgBlockUnblocked",) +__all__ = ("WebhookOrganizationDeleted",) 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 1dcda5ac8..ccbded016 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0723.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0516 import WebhooksMembership +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0518 import WebhooksMembership -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" - action: Literal["deleted"] = Field() + action: Literal["member_added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,8 +39,7 @@ 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, + membership: WebhooksMembership = Field( title="Membership", description="The membership between the user and the organization. Not present when the action is `member_invited`.", ) @@ -56,6 +55,6 @@ class WebhookOrganizationDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookOrganizationMemberAdded) -__all__ = ("WebhookOrganizationDeleted",) +__all__ = ("WebhookOrganizationMemberAdded",) 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 f48925584..ff7b5ba45 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0724.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0516 import WebhooksMembership +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" - action: Literal["member_added"] = Field() + action: Literal["member_invited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,9 +40,8 @@ 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`.", + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", @@ -53,8 +53,64 @@ class WebhookOrganizationMemberAdded(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.") + user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") -model_rebuild(WebhookOrganizationMemberAdded) +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation -__all__ = ("WebhookOrganizationMemberAdded",) + 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) + +__all__ = ( + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", +) 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 e747abdec..69dc02860 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0725.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0518 import WebhooksMembership -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" - action: Literal["member_invited"] = Field() + action: Literal["member_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,8 +39,9 @@ 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`." + 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", @@ -53,64 +53,8 @@ class WebhookOrganizationMemberInvited(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.") - user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation +model_rebuild(WebhookOrganizationMemberRemoved) - 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) - -__all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", -) +__all__ = ("WebhookOrganizationMemberRemoved",) 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 dc6f1a828..acb85330a 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,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0516 import WebhooksMembership +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0518 import WebhooksMembership -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" - action: Literal["member_removed"] = Field() + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +40,8 @@ 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( + 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`.", ) @@ -55,6 +57,26 @@ class WebhookOrganizationMemberRemoved(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberRemoved) +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__ = ("WebhookOrganizationMemberRemoved",) +__all__ = ( + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", +) 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 720bea419..2c926e7e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0727.py @@ -9,74 +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_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0516 import WebhooksMembership - -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" - 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.", + 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 WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: Missing[str] = Field(default=UNSET) - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( - default=UNSET - ) +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" - from_: Missing[str] = Field(default=UNSET, alias="from") +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) __all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropVersionInfo", ) 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 2c926e7e7..9ea8e4041 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0728.py @@ -9,52 +9,52 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookRubygemsMetadata(GitHubModel): - """Ruby Gems metadata""" - - name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) - platform: Missing[str] = Field(default=UNSET) - metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) - repo: Missing[str] = Field(default=UNSET) - dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( - default=UNSET - ) - commit_oid: Missing[str] = Field(default=UNSET) - - -class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): - """WebhookRubygemsMetadataPropVersionInfo""" - - version: Missing[str] = Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0729 import WebhookPackagePublishedPropPackage -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + 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(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) +model_rebuild(WebhookPackagePublished) -__all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropVersionInfo", -) +__all__ = ("WebhookPackagePublished",) 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 63757f6ec..1b0439c1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0729.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,76 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0730 import WebhookPackagePublishedPropPackage +from .group_0730 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - 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.", + 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" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub 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(WebhookPackagePublished) +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) -__all__ = ("WebhookPackagePublished",) +__all__ = ( + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", +) 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 5a78ccf26..9ff5c38a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0730.py @@ -13,38 +13,75 @@ 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_0731 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0727 import WebhookRubygemsMetadata -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - Information about the package. - """ - - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + 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() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" - ) - package_type: str = Field() - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersion, None + npm_metadata: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems ] = Field() - registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() - updated_at: Union[str, None] = 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 WebhookPackagePublishedPropPackagePropOwner(GitHubModel): +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -71,22 +108,465 @@ class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" +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 + """ + - about_url: str = Field() +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() - type: 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() - vendor: str = Field() -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) +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__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", + "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_0731.py b/githubkit/versions/ghec_v2022_11_28/models/group_0731.py index 251501605..41a2bc076 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0731.py @@ -9,564 +9,51 @@ 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_0728 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_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0732 import WebhookPackageUpdatedPropPackage + + +class WebhookPackageUpdated(GitHubModel): + """package updated 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.", + ) + 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(WebhookPackageUpdated) + +__all__ = ("WebhookPackageUpdated",) 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 73382acc9..59cb7c54d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0732.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0732.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,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0733 import WebhookPackageUpdatedPropPackage - - -class WebhookPackageUpdated(GitHubModel): - """package updated 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.", - ) - 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(WebhookPackageUpdated) - -__all__ = ("WebhookPackageUpdated",) +from .group_0733 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_0733.py b/githubkit/versions/ghec_v2022_11_28/models/group_0733.py index 4bac9bf9e..06e5e9953 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0733.py @@ -13,34 +13,54 @@ 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_0734 import WebhookPackageUpdatedPropPackagePropPackageVersion +from .group_0727 import WebhookRubygemsMetadata -class WebhookPackageUpdatedPropPackage(GitHubModel): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() created_at: str = Field() - description: Union[str, None] = Field() - ecosystem: 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() - namespace: str = Field() - owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") - package_type: str = Field() - package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() - registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = 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 WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -67,22 +87,99 @@ class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - about_url: str = Field() + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() name: str = Field() - type: 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() - vendor: str = Field() -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) +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) __all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ) 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 4e57c8041..d7a9758cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0734.py @@ -13,133 +13,70 @@ 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_0728 import WebhookRubygemsMetadata +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPageBuild(GitHubModel): + """page_build event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None - ] = Field(title="User") - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) + 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)."', ) - 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) - + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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 WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" +class WebhookPageBuildPropBuild(GitHubModel): + """WebhookPageBuildPropBuild -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + The [List GitHub Pages builds](https://docs.github.com/enterprise- + cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + """ - content_type: str = Field() + commit: Union[str, None] = 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() + duration: int = Field() + error: WebhookPageBuildPropBuildPropError = Field() + pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") + status: str = Field() updated_at: str = Field() + url: str = Field() -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" +class WebhookPageBuildPropBuildPropError(GitHubModel): + """WebhookPageBuildPropBuildPropError""" - 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() + message: Union[str, None] = Field() -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): +class WebhookPageBuildPropBuildPropPusher(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -166,20 +103,14 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( 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) +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", ) 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 7287bcd8e..a29ae838d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0735.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,99 +18,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0519 import PersonalAccessTokenRequest -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-github-pages-builds) itself." + 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)."', ) - 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, + 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.", - ) 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 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(WebhookPageBuild) -model_rebuild(WebhookPageBuildPropBuild) -model_rebuild(WebhookPageBuildPropBuildPropError) -model_rebuild(WebhookPageBuildPropBuildPropPusher) +model_rebuild(WebhookPersonalAccessTokenRequestApproved) -__all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", -) +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) 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 af6e4ba56..1b7eaa23d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0736.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0517 import PersonalAccessTokenRequest +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0519 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" - action: Literal["approved"] = Field() + action: Literal["cancelled"] = Field() personal_access_token_request: PersonalAccessTokenRequest = Field( title="Personal Access Token Request", description="Details of a Personal Access Token Request.", @@ -48,6 +48,6 @@ class WebhookPersonalAccessTokenRequestApproved(GitHubModel): ) -model_rebuild(WebhookPersonalAccessTokenRequestApproved) +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) 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 92182a0bb..27dfbb8db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0737.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0517 import PersonalAccessTokenRequest +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0519 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" - action: Literal["cancelled"] = Field() + action: Literal["created"] = Field() personal_access_token_request: PersonalAccessTokenRequest = Field( title="Personal Access Token Request", description="Details of a Personal Access Token Request.", @@ -42,12 +42,13 @@ class WebhookPersonalAccessTokenRequestCancelled(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.", ) 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)."', ) -model_rebuild(WebhookPersonalAccessTokenRequestCancelled) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) 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 25d004e35..45f14d081 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0738.py @@ -18,37 +18,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0517 import PersonalAccessTokenRequest +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0519 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied event""" - action: Literal["created"] = Field() + action: Literal["denied"] = Field() personal_access_token_request: PersonalAccessTokenRequest = Field( title="Personal Access Token Request", description="Details of a Personal Access Token Request.", ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - 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, + 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(WebhookPersonalAccessTokenRequestCreated) +model_rebuild(WebhookPersonalAccessTokenRequestDenied) -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) 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 34f8c43f7..5365b3ac1 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,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,36 +16,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0517 import PersonalAccessTokenRequest +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0740 import WebhookPingPropHook -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + 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: 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( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + title="Repository", + description="The repository on GitHub where the event occurred. Webhook 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)."', + 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(WebhookPersonalAccessTokenRequestDenied) +model_rebuild(WebhookPing) -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +__all__ = ("WebhookPing",) 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 388bc8e3b..9cefd99ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0740.py @@ -9,43 +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_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0741 import WebhookPingPropHook +from .group_0355 import HookResponse + +class WebhookPingPropHook(GitHubModel): + """Webhook -class WebhookPing(GitHubModel): - """WebhookPing""" + The webhook that is being pinged + """ - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="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.", ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." + 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']." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + 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) + + +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" + + content_type: 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="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - repository: Missing[RepositoryWebhooks] = Field( + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( default=UNSET, - title="Repository", - 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="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).", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -model_rebuild(WebhookPing) +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) -__all__ = ("WebhookPing",) +__all__ = ( + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", +) 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 005e8c8db..fac71cc70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0741.py @@ -9,70 +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_0353 import HookResponse -class WebhookPingPropHook(GitHubModel): - """Webhook +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded - The webhook that is being pinged + The webhooks ping payload encoded with URL encoding. """ - 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'." - ) - ping_url: Missing[str] = Field(default=UNSET) - test_url: Missing[str] = Field(default=UNSET) - type: str = Field() - updated_at: datetime = Field() - url: Missing[str] = Field(default=UNSET) - - -class WebhookPingPropHookPropConfig(GitHubModel): - """WebhookPingPropHookPropConfig""" - - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", -) +__all__ = ("WebhookPingFormEncoded",) 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 fac71cc70..ca375d0d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0742.py @@ -9,22 +9,69 @@ from __future__ import annotations +from 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_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0520 import WebhooksProjectCard -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + action: Literal["converted"] = Field() + changes: WebhookProjectCardConvertedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + 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(WebhookPingFormEncoded) +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ( + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", +) 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 d956c5009..dd95c71cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0743.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0518 import WebhooksProjectCard +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0520 import WebhooksProjectCard -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -54,24 +53,6 @@ class WebhookProjectCardConverted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" +model_rebuild(WebhookProjectCardCreated) - 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", -) +__all__ = ("WebhookProjectCardCreated",) 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 e356e4ba6..e75df6ad5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0744.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0518 import WebhooksProjectCard +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookProjectCardCreated(GitHubModel): - """project_card 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,15 +44,66 @@ class WebhookProjectCardCreated(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_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.", - ) + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectCardCreated) +class WebhookProjectCardDeletedPropProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: Union[int, None] = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) -__all__ = ("WebhookProjectCardCreated",) +__all__ = ( + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", +) 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 225aa4df6..9868c5db3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0745.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0745.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,16 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0520 import WebhooksProjectCard -class WebhookProjectCardDeleted(GitHubModel): - """project_card 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,66 +45,33 @@ class WebhookProjectCardDeleted(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_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + project_card: WebhooksProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectCardDeletedPropProjectCard(GitHubModel): - """Project Card""" +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" - 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) + note: WebhookProjectCardEditedPropChangesPropNote = Field() + + +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) __all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", ) 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 960287c18..8fa56b74f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0746.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,18 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0518 import WebhooksProjectCard +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() + action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,7 +45,7 @@ class WebhookProjectCardEdited(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_card: WebhooksProjectCard = Field(title="Project Card") + project_card: WebhookProjectCardMovedPropProjectCard = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -54,24 +54,75 @@ class WebhookProjectCardEdited(GitHubModel): 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") +class WebhookProjectCardMovedPropChanges(GitHubModel): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() + + +class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int = Field(alias="from") + + +class WebhookProjectCardMovedPropProjectCard(GitHubModel): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] = Field() + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[Union[str, None], None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) __all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", ) 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 a21f47947..698d7933a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0747.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0747.py @@ -18,74 +18,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks - - -class WebhookProjectCardMoved(GitHubModel): - """project_card moved event""" - - action: Literal["moved"] = Field() - changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_card: WebhookProjectCardMovedPropProjectCard = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" - -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int = Field(alias="from") - - -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] = Field() + 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[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( + Field(title="User") + ) id: int = Field(description="The project card's ID") node_id: str = Field() - note: Union[Union[str, None], None] = Field() + note: Union[str, None] = Field() project_url: str = Field() updated_at: datetime = Field() url: str = Field() -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -113,16 +68,10 @@ class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): 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(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) __all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ) 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 698d7933a..0afeec58f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0748.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,41 +18,37 @@ from githubkit.utils import UNSET -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" - 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() + 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 WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): - """User""" +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: 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) @@ -61,17 +56,14 @@ class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(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(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ) 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 0afeec58f..a735fe60d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0749.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,53 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] = Field() - archived: Missing[bool] = Field(default=UNSET) - column_id: Missing[int] = Field(default=UNSET) - column_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - creator: Missing[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] - ] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - note: Missing[Union[str, None]] = Field(default=UNSET) - project_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", -) +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0521 import WebhooksProject + + +class WebhookProjectClosed(GitHubModel): + """project closed 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)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook 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(WebhookProjectClosed) + +__all__ = ("WebhookProjectClosed",) 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 6766a8ca0..f7c0ca897 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0750.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0519 import WebhooksProject +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0522 import WebhooksProjectColumn -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" - action: Literal["closed"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +44,17 @@ 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_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(WebhookProjectClosed) +model_rebuild(WebhookProjectColumnCreated) -__all__ = ("WebhookProjectClosed",) +__all__ = ("WebhookProjectColumnCreated",) 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 cd2cc1dac..115ed3381 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0751.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0751.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0520 import WebhooksProjectColumn +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0522 import WebhooksProjectColumn -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,16 +45,12 @@ class WebhookProjectColumnCreated(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_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.", - ) + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookProjectColumnCreated) +model_rebuild(WebhookProjectColumnDeleted) -__all__ = ("WebhookProjectColumnCreated",) +__all__ = ("WebhookProjectColumnDeleted",) 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 a726f6627..473a23d01 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0752.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0520 import WebhooksProjectColumn +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0522 import WebhooksProjectColumn -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,12 +46,34 @@ class WebhookProjectColumnDeleted(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_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[Union[None, RepositoryWebhooks]] = 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." ) -model_rebuild(WebhookProjectColumnDeleted) +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__ = ("WebhookProjectColumnDeleted",) +__all__ = ( + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", +) 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 1e0af522a..7f63ac390 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0753.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0520 import WebhooksProjectColumn +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0522 import WebhooksProjectColumn -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" - action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() + action: Literal["moved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,29 +50,9 @@ class WebhookProjectColumnEdited(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 WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" - - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str = Field(alias="from") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) +model_rebuild(WebhookProjectColumnMoved) -__all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", -) +__all__ = ("WebhookProjectColumnMoved",) 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 7a32f896f..ccadd0218 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0520 import WebhooksProjectColumn +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0521 import WebhooksProject -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" +class WebhookProjectCreated(GitHubModel): + """project created event""" - action: Literal["moved"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,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: WebhooksProject = Field(title="Project") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -53,6 +53,6 @@ class WebhookProjectColumnMoved(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectColumnMoved) +model_rebuild(WebhookProjectCreated) -__all__ = ("WebhookProjectColumnMoved",) +__all__ = ("WebhookProjectCreated",) 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 14def4d1a..8b5d97975 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0755.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0519 import WebhooksProject +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0521 import WebhooksProject -class WebhookProjectCreated(GitHubModel): - """project created event""" +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,14 +45,12 @@ class WebhookProjectCreated(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[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - 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(WebhookProjectCreated) +model_rebuild(WebhookProjectDeleted) -__all__ = ("WebhookProjectCreated",) +__all__ = ("WebhookProjectDeleted",) 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 c48ac18bd..1029f2069 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0756.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0756.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0519 import WebhooksProject +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0521 import WebhooksProject -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" +class WebhookProjectEdited(GitHubModel): + """project edited event""" - action: Literal["deleted"] = 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", @@ -45,12 +49,52 @@ 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) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookProjectDeleted) +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) -__all__ = ("WebhookProjectDeleted",) +__all__ = ( + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", +) 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 9d2c82fb2..c4e4566a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0757.py @@ -18,21 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0519 import WebhooksProject +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0521 import WebhooksProject -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["reopened"] = 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(WebhookProjectReopened) -__all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", -) +__all__ = ("WebhookProjectReopened",) 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 5433c5f8c..cbb80554d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0758.py @@ -18,41 +18,30 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0519 import WebhooksProject +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0523 import ProjectsV2 -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" - 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)."', - ) + action: Literal["closed"] = 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.", ) - 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.", + 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(WebhookProjectReopened) +model_rebuild(WebhookProjectsV2ProjectClosed) -__all__ = ("WebhookProjectReopened",) +__all__ = ("WebhookProjectsV2ProjectClosed",) 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 ba28cb24f..05b884c60 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0759.py @@ -18,15 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0521 import ProjectsV2 +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0523 import ProjectsV2 -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated - action: Literal["closed"] = Field() + A project was created + """ + + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,6 +45,6 @@ class WebhookProjectsV2ProjectClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectClosed) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ("WebhookProjectsV2ProjectCreated",) 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 76337d355..20a6baf93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0760.py @@ -18,18 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0521 import ProjectsV2 +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0523 import ProjectsV2 -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" - A project was created - """ - - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -45,6 +42,6 @@ class WebhookProjectsV2ProjectCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectCreated) +model_rebuild(WebhookProjectsV2ProjectDeleted) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ("WebhookProjectsV2ProjectDeleted",) 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 d7a67d3ff..afc96d300 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0761.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,15 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0521 import ProjectsV2 +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0523 import ProjectsV2 -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,6 +43,63 @@ class WebhookProjectsV2ProjectDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectDeleted) +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" -__all__ = ("WebhookProjectsV2ProjectDeleted",) + 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_0762.py b/githubkit/versions/ghec_v2022_11_28/models/group_0762.py index d90d2b59f..89f89ecd8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0762.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0521 import ProjectsV2 +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0524 import WebhooksProjectChanges +from .group_0525 import ProjectsV2Item -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + action: Literal["archived"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -37,69 +38,12 @@ class WebhookProjectsV2ProjectEdited(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.") -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" +model_rebuild(WebhookProjectsV2ItemArchived) - 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", -) +__all__ = ("WebhookProjectsV2ItemArchived",) 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 4f3da4594..65296ce68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0763.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0522 import WebhooksProjectChanges -from .group_0523 import ProjectsV2Item +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0525 import ProjectsV2Item -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["archived"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,6 +43,27 @@ class WebhookProjectsV2ItemArchived(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemArchived) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" -__all__ = ("WebhookProjectsV2ItemArchived",) + 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_0764.py b/githubkit/versions/ghec_v2022_11_28/models/group_0764.py index 20b4ba4ea..23f19d96d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0764.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0523 import ProjectsV2Item +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0525 import ProjectsV2Item -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created Event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,27 +42,6 @@ class WebhookProjectsV2ItemConverted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" +model_rebuild(WebhookProjectsV2ItemCreated) - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) - -__all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", -) +__all__ = ("WebhookProjectsV2ItemCreated",) 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 098559036..eed197429 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0765.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0523 import ProjectsV2Item +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0525 import ProjectsV2Item -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted Event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,6 +42,6 @@ class WebhookProjectsV2ItemCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookProjectsV2ItemDeleted",) 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 26a72e3db..66a5c94a7 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,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,15 +18,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0523 import ProjectsV2Item +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0525 import ProjectsV2Item -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field( + default=UNSET, + description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,6 +51,78 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemDeleted) +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__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ( + "ProjectsV2IterationSetting", + "ProjectsV2SingleSelectOption", + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", +) 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 913072981..dc03981bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0767.py @@ -18,24 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0523 import ProjectsV2Item +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0525 import ProjectsV2Item -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered 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["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -51,78 +43,29 @@ class WebhookProjectsV2ItemEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() - +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" -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] + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId ] = 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""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( + GitHubModel +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" 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(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) __all__ = ( - "ProjectsV2IterationSetting", - "ProjectsV2SingleSelectOption", - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ) 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 487bd66c1..efe44369a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0768.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0523 import ProjectsV2Item +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0524 import WebhooksProjectChanges +from .group_0525 import ProjectsV2Item -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored Event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["restored"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,29 +44,6 @@ class WebhookProjectsV2ItemReordered(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" +model_rebuild(WebhookProjectsV2ItemRestored) - 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__ = ("WebhookProjectsV2ItemRestored",) 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 877844478..e9d39acd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0769.py @@ -18,17 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0522 import WebhooksProjectChanges -from .group_0523 import ProjectsV2Item +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0523 import ProjectsV2 -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened Event""" - action: Literal["restored"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -38,12 +36,12 @@ 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) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ("WebhookProjectsV2ItemRestored",) +__all__ = ("WebhookProjectsV2ProjectReopened",) 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 462b9de48..a0a947d63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0770.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0521 import ProjectsV2 +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0526 import ProjectsV2StatusUpdate -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2StatusUpdateCreated(GitHubModel): + """Projects v2 Status Update Created Event""" - action: Literal["reopened"] = Field() + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,12 +36,13 @@ 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_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(WebhookProjectsV2ProjectReopened) +model_rebuild(WebhookProjectsV2StatusUpdateCreated) -__all__ = ("WebhookProjectsV2ProjectReopened",) +__all__ = ("WebhookProjectsV2StatusUpdateCreated",) 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 e344b179c..dee9e6e1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0771.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0524 import ProjectsV2StatusUpdate +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0526 import ProjectsV2StatusUpdate -class WebhookProjectsV2StatusUpdateCreated(GitHubModel): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): + """Projects v2 Status Update Deleted Event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,6 +43,6 @@ class WebhookProjectsV2StatusUpdateCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateCreated) +model_rebuild(WebhookProjectsV2StatusUpdateDeleted) -__all__ = ("WebhookProjectsV2StatusUpdateCreated",) +__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) 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 f816e7013..f01c688ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0772.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from pydantic import Field @@ -18,15 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0524 import ProjectsV2StatusUpdate +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0526 import ProjectsV2StatusUpdate -class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2StatusUpdateEdited(GitHubModel): + """Projects v2 Status Update Edited Event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( + default=UNSET + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,6 +47,67 @@ class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateDeleted) +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__ = ("WebhookProjectsV2StatusUpdateDeleted",) +__all__ = ( + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", +) 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 6245357bf..2d60e7ade 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0773.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import date -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,95 +16,37 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0524 import ProjectsV2StatusUpdate +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookProjectsV2StatusUpdateEdited(GitHubModel): - """Projects v2 Status Update Edited Event""" +class WebhookPublic(GitHubModel): + """public event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( - default=UNSET + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: 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_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook 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 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(WebhookPublic) -__all__ = ( - "WebhookProjectsV2StatusUpdateEdited", - "WebhookProjectsV2StatusUpdateEditedPropChanges", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", -) +__all__ = ("WebhookPublic",) 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 a23a35a32..9c010d2ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0774.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,15 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0500 import WebhooksUser -class WebhookPublic(GitHubModel): - """public event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" + action: Literal["assigned"] = Field() + assignee: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -35,11 +41,15 @@ class WebhookPublic(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: 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.", @@ -47,6 +57,1121 @@ class WebhookPublic(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPublic) +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 +) -__all__ = ("WebhookPublic",) +__all__ = ( + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAssignedPropPullRequestPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0775.py b/githubkit/versions/ghec_v2022_11_28/models/group_0775.py index 26df2155e..198a0696b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0775.py @@ -19,18 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0498 import WebhooksUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhooksUser, None] = Field(title="User") + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,15 +39,16 @@ class WebhookPullRequestAssigned(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: WebhookPullRequestAssignedPropPullRequest = 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.", @@ -57,19 +56,23 @@ class WebhookPullRequestAssigned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAssignedPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestAssignedPropPullRequestPropLinks = 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[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -84,13 +87,13 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): 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.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +107,13 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,13 +125,13 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, 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( @@ -136,13 +141,13 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +159,12 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,14 +186,12 @@ class WebhookPullRequestAssignedPropPullRequestPropAssignee(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 WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,14 +213,11 @@ class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(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 WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -230,14 +230,17 @@ class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -264,7 +267,7 @@ class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -278,7 +281,7 @@ class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -305,7 +308,7 @@ class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -315,7 +318,7 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -331,7 +334,9 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -353,14 +358,12 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(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 WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -391,7 +394,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -420,98 +423,108 @@ class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -538,7 +551,7 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -600,14 +613,14 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(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() @@ -621,7 +634,8 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, 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( @@ -642,10 +656,11 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -693,7 +708,9 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -703,7 +720,9 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -730,10 +749,12 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -742,21 +763,48 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): +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 @@ -839,7 +887,8 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, 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( @@ -860,10 +909,11 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -911,7 +961,9 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -921,7 +973,9 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -948,10 +1002,12 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -960,34 +1016,7 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( 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( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1004,7 +1033,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1017,11 +1046,11 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1039,7 +1068,9 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1056,7 +1087,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1070,10 +1101,12 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1090,88 +1123,108 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent 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(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( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ) -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 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0776.py b/githubkit/versions/ghec_v2022_11_28/models/group_0776.py index bd65eb84e..7425f4b03 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0776.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["auto_merge_disabled"] = Field() + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,10 +45,10 @@ class WebhookPullRequestAutoMergeDisabled(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: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( title="Pull Request" ) - reason: str = Field() + 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.", @@ -56,10 +56,10 @@ class WebhookPullRequestAutoMergeDisabled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ @@ -67,12 +67,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): ] = Field() additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -88,12 +86,12 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -107,11 +105,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( Field() ) locked: bool = Field() @@ -125,10 +123,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -141,13 +139,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -159,12 +157,12 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -191,7 +189,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -217,7 +215,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -230,7 +228,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubMode description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -238,7 +236,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubMode ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -267,7 +265,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabled user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -281,7 +279,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubMo url: str = Field(description="URL for the label") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -308,7 +306,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -318,7 +316,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubMode closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -334,7 +332,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubMode url: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -358,12 +356,14 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator site_admin: Missing[bool] = Field(default=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 WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -394,7 +394,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -423,36 +423,36 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( Field(title="Link") ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -460,7 +460,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -468,19 +468,19 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -488,7 +488,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComme href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -496,13 +496,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComme href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -510,21 +510,21 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -551,7 +551,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -613,14 +613,14 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubM 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() @@ -634,7 +634,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubM language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -656,11 +656,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubM open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -708,7 +707,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubM ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -720,7 +719,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLice url: Union[str, None] = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -749,12 +748,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwne user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -763,21 +760,21 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPerm triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -804,7 +801,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -887,7 +884,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubM language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -909,11 +906,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubM open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -961,7 +957,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubM ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -973,7 +969,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLice url: Union[str, None] = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1002,12 +998,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwne user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1016,7 +1010,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPerm triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1033,7 +1027,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1046,11 +1040,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt url: str = Field(description="URL for the team") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1068,7 +1062,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt url: str = Field(description="URL for the team") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1087,7 +1081,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1101,11 +1095,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -1123,108 +1117,106 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsP 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(WebhookPullRequestAutoMergeEnabled) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0777.py b/githubkit/versions/ghec_v2022_11_28/models/group_0777.py index 6fdec966e..b25906ade 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0777.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0527 import PullRequestWebhook -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["auto_merge_enabled"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +39,13 @@ class WebhookPullRequestAutoMergeEnabled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) + 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.", @@ -56,1167 +53,6 @@ class WebhookPullRequestAutoMergeEnabled(GitHubModel): 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(WebhookPullRequestClosed) -__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__ = ("WebhookPullRequestClosed",) 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 4c77df21b..b6752c39a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0778.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0525 import PullRequestWebhook +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0527 import PullRequestWebhook -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["closed"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookPullRequestClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestClosed) +model_rebuild(WebhookPullRequestConvertedToDraft) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ("WebhookPullRequestConvertedToDraft",) 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 7a0cfe436..8e398927d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0779.py @@ -18,26 +18,26 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0525 import PullRequestWebhook +from .group_0158 import Milestone +from .group_0487 import EnterpriseWebhooks +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0529 import WebhooksPullRequest5 -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["converted_to_draft"] = 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 WebhookPullRequestConvertedToDraft(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(WebhookPullRequestConvertedToDraft) +model_rebuild(WebhookPullRequestDemilestoned) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ("WebhookPullRequestDemilestoned",) 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 0c97451b3..b607f81cd 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,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,43 +19,1167 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0157 import Milestone -from .group_0485 import EnterpriseWebhooks -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0527 import WebhooksPullRequest5 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["demilestoned"] = Field() + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") + pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + title="Pull Request" + ) + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestDemilestoned) +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__ = ("WebhookPullRequestDemilestoned",) +__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_0781.py b/githubkit/versions/ghec_v2022_11_28/models/group_0781.py index 91dbcd4a6..2b0481c29 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0781.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0527 import PullRequestWebhook -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["dequeued"] = 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", @@ -39,1147 +42,84 @@ 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() + 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( - 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() + 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: 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") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub 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 WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository + The changes to the comment if the action was `edited`. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - 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) + base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) + body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" +class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) - 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 WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" -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." + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", ) - 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""" +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() -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 WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + from_: str = Field(alias="from") -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 WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team + from_: str = Field(alias="from") - 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(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) __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", + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", ) 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 095ae6444..d1e750497 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,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,20 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0525 import PullRequestWebhook +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestEditedPropChanges = Field( - description="The changes to the comment if the action was `edited`." - ) + action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,84 +39,1133 @@ class WebhookPullRequestEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: 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.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges +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) + - The changes to the comment if the action was `edited`. +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository """ - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + 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 WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", + 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 WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", +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 WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" +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") - from_: str = Field(alias="from") +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 WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - from_: str = Field(alias="from") +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) + 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__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", + "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_0783.py b/githubkit/versions/ghec_v2022_11_28/models/group_0783.py index a6c78d7fa..8cdf73228 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0783.py @@ -19,16 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0504 import WebhooksLabel -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled event""" - action: Literal["enqueued"] = Field() + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +40,14 @@ class WebhookPullRequestEnqueued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() + 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: WebhookPullRequestEnqueuedPropPullRequest = Field( - title="Pull Request" - ) + 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.", @@ -55,19 +55,19 @@ class WebhookPullRequestEnqueued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( - Field(title="User") + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" ) assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,13 +82,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) ) - base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -102,11 +102,11 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -118,9 +118,9 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -134,13 +134,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -152,12 +152,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( + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -179,12 +179,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(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 WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -206,11 +208,13 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(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 WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -223,14 +227,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -257,7 +261,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -271,7 +275,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -293,12 +297,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(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 WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -308,7 +314,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -324,7 +330,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -353,7 +359,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -377,12 +383,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 WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -411,98 +419,98 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" ) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -529,7 +537,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -612,7 +620,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, 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( @@ -633,10 +641,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -684,7 +692,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -694,7 +702,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -721,10 +729,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -733,48 +741,21 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, 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): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -857,7 +838,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, 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( @@ -878,10 +859,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -929,7 +910,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -939,7 +920,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -966,10 +947,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -978,7 +959,34 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( +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 @@ -987,35 +995,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, + 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 WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] = Field(description="Description of the team") @@ -1033,7 +1038,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1050,7 +1055,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1064,10 +1069,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1084,88 +1089,82 @@ 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( - 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(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( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __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", + "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_0784.py b/githubkit/versions/ghec_v2022_11_28/models/group_0784.py index a6d0e57de..930fe8c3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0784.py @@ -19,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0502 import WebhooksLabel +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["labeled"] = Field() + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +39,13 @@ class WebhookPullRequestLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") + pull_request: 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.", @@ -55,19 +53,19 @@ class WebhookPullRequestLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): +class WebhookPullRequestLockedPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( title="User" ) assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,13 +80,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -102,11 +100,11 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestLockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -118,9 +116,9 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -134,13 +132,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -152,12 +150,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( + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -179,14 +177,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 WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -214,7 +210,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -227,14 +223,14 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -261,7 +257,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -275,7 +271,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -304,7 +300,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +310,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +326,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,14 +348,12 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubMod site_admin: Missing[bool] = Field(default=UNSET) 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 WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -390,7 +384,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -419,98 +413,96 @@ class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( title="Link" ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( title="User" ) -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -537,7 +529,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -620,7 +612,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, 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( @@ -641,10 +633,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -692,7 +684,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -702,7 +694,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -729,10 +721,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -741,21 +733,21 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( title="User" ) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -838,7 +830,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, 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( @@ -859,10 +851,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -910,7 +902,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -920,7 +912,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -947,10 +939,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -959,7 +951,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -986,7 +978,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1003,7 +995,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1016,11 +1008,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -1038,7 +1030,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1055,7 +1047,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1069,10 +1061,10 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1089,82 +1081,82 @@ 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(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( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __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", + "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_0785.py b/githubkit/versions/ghec_v2022_11_28/models/group_0785.py index 6fa9dd7cf..384d106c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0785.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,25 +18,26 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0158 import Milestone +from .group_0487 import EnterpriseWebhooks +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0529 import WebhooksPullRequest5 -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - action: Literal["locked"] = 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( @@ -45,1118 +45,16 @@ class WebhookPullRequestLocked(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPullRequestLockedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestLocked) -model_rebuild(WebhookPullRequestLockedPropPullRequest) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookPullRequestMilestoned) -__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__ = ("WebhookPullRequestMilestoned",) 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 7cd29e016..8de0e0a10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0786.py @@ -18,26 +18,26 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0157 import Milestone -from .group_0485 import EnterpriseWebhooks -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0527 import WebhooksPullRequest5 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0527 import PullRequestWebhook -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" - action: Literal["milestoned"] = Field() + 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)."', ) - 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(WebhookPullRequestOpened) -__all__ = ("WebhookPullRequestMilestoned",) +__all__ = ("WebhookPullRequestOpened",) 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 ac3d4b7cb..17c812f12 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0787.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0525 import PullRequestWebhook +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0527 import PullRequestWebhook -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["opened"] = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookPullRequestOpened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestOpened) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ("WebhookPullRequestReadyForReview",) 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 120d14764..8e744d8e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0788.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0525 import PullRequestWebhook +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0527 import PullRequestWebhook -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" - action: Literal["ready_for_review"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookPullRequestReadyForReview(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReadyForReview) +model_rebuild(WebhookPullRequestReopened) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ("WebhookPullRequestReopened",) 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 ed5d4c8cb..fc2ede1d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0789.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0525 import PullRequestWebhook +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - action: Literal["reopened"] = 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,13 +43,12 @@ class WebhookPullRequestReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: 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.", @@ -53,6 +56,1333 @@ class WebhookPullRequestReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReopened) +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""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, + 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[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] + ] = Field( + default=UNSET, + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = 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: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + 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.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + ] = 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[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + ] = 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( + 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: Missing[bool] = Field( + default=UNSET, 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + ] = 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + 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( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + 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") + + +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( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestReopened",) +__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", +) 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 6832b909d..446cbf9b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0790.py @@ -19,17 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0530 import WebhooksReviewComment -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = 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.", ) @@ -48,7 +49,7 @@ class WebhookPullRequestReviewCommentCreated(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: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() + 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.", @@ -56,186 +57,21 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): - """Pull Request Review Comment +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - 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""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -253,13 +89,13 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] ] = Field( default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -267,18 +103,18 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -288,13 +124,13 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -303,12 +139,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -330,14 +166,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( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -361,13 +195,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -380,7 +212,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -388,7 +220,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -417,7 +249,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -431,7 +263,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -441,7 +273,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -458,7 +290,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -482,14 +314,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -513,14 +343,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -549,36 +377,36 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -586,7 +414,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -594,7 +422,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -602,7 +430,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -610,7 +438,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -618,7 +446,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -626,7 +454,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -634,7 +462,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -642,21 +470,21 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -685,7 +513,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -770,7 +598,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -792,11 +620,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -844,7 +672,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -856,7 +684,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -885,10 +713,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss ions """ @@ -899,21 +727,21 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -982,8 +810,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,7 +826,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -1020,11 +848,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1072,7 +900,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1084,7 +912,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1113,10 +941,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss ions """ @@ -1127,7 +955,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -1156,7 +984,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1165,31 +993,34 @@ 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, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems Oneof1PropParent """ @@ -1208,7 +1039,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1227,7 +1058,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1241,10 +1072,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp Parent """ @@ -1263,126 +1094,112 @@ 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(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0791.py b/githubkit/versions/ghec_v2022_11_28/models/group_0791.py index 618c2d788..a96989e2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0791.py @@ -19,17 +19,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0528 import WebhooksReviewComment +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0508 import WebhooksChanges +from .group_0530 import WebhooksReviewComment -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["deleted"] = 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.", @@ -49,7 +51,7 @@ class WebhookPullRequestReviewCommentDeleted(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: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() + 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.", @@ -57,22 +59,21 @@ class WebhookPullRequestReviewCommentDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None ] ] = Field() author_association: Literal[ @@ -89,13 +90,13 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] ] = Field( default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -103,18 +104,18 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -124,13 +125,13 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -139,12 +140,12 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -171,7 +172,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -197,9 +198,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -212,7 +214,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -220,7 +222,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -249,7 +251,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -263,7 +265,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -273,7 +275,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -290,7 +292,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -314,12 +316,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 WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -348,7 +352,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -373,40 +377,40 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -414,7 +418,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -422,7 +426,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -430,7 +434,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -438,7 +442,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -446,7 +450,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -454,7 +458,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -462,7 +466,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -470,23 +474,21 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -513,9 +515,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -598,7 +598,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -620,11 +620,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -672,7 +672,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -684,7 +684,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -713,11 +713,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool = Field() @@ -727,23 +727,21 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -826,7 +824,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -848,11 +846,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -900,7 +898,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -912,7 +910,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -941,11 +939,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool = Field() @@ -955,9 +953,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -984,7 +980,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1003,7 +999,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1017,11 +1013,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1039,7 +1035,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1058,7 +1054,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1072,11 +1068,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1094,112 +1090,108 @@ 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(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0792.py b/githubkit/versions/ghec_v2022_11_28/models/group_0792.py index f52051cca..1bf7a9e27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0792.py @@ -19,23 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0506 import WebhooksChanges -from .group_0528 import WebhooksReviewComment +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed 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["dismissed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,30 +44,118 @@ class WebhookPullRequestReviewCommentEdited(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: WebhookPullRequestReviewCommentEditedPropPullRequest = 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: WebhookPullRequestReviewDismissedPropReview = Field( + description="The review that was affected." + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +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""" - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( + 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[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,33 +170,32 @@ class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] + auto_merge: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None ] = Field( - default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() + 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: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -125,13 +205,13 @@ class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -140,12 +220,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -167,14 +247,14 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubMod site_admin: Missing[bool] = Field(default=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 WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -196,12 +276,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 WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -214,15 +295,14 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubMo description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -251,7 +331,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -265,7 +345,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHub url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -275,8 +355,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -292,7 +371,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo url: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -316,14 +395,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 WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,12 +424,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 WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -377,40 +456,40 @@ 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 WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -418,31 +497,25 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -450,7 +523,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -458,15 +531,13 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -474,21 +545,21 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -515,7 +586,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -598,7 +669,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -620,11 +691,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -672,7 +742,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -684,7 +754,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -713,12 +783,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -727,21 +795,21 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -824,7 +892,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -846,11 +914,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -898,7 +965,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -910,7 +977,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -939,12 +1006,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -953,7 +1018,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -980,7 +1045,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -989,35 +1054,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, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1035,7 +1097,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1054,7 +1116,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1068,11 +1130,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] = Field(description="Description of the team") @@ -1090,108 +1152,110 @@ 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(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( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0793.py b/githubkit/versions/ghec_v2022_11_28/models/group_0793.py index f0d288ab7..158a25de8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0793.py @@ -19,16 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0531 import WebhooksReview -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["dismissed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,118 +46,48 @@ class WebhookPullRequestReviewDismissed(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: WebhookPullRequestReviewDismissedPropPullRequest = 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.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) + review: WebhooksReview = 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. - """ +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" - 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( + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: list[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -171,12 +103,12 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -184,18 +116,16 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -205,13 +135,13 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -220,12 +150,12 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -254,7 +184,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -282,7 +212,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -295,14 +225,14 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -331,7 +261,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -345,7 +275,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -355,7 +285,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -371,7 +301,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -395,12 +325,14 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( site_admin: Missing[bool] = Field(default=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 WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -431,7 +363,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -460,62 +392,60 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( + title="Link" ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( Field(title="Link") ) -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -523,7 +453,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -531,35 +461,33 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -586,7 +514,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -653,9 +581,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -669,18 +594,9 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -691,10 +607,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -703,18 +619,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -729,20 +633,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -754,7 +650,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -783,10 +679,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -795,21 +691,21 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -876,9 +772,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -892,18 +785,9 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -914,10 +798,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -926,18 +810,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -952,20 +824,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -977,7 +841,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1006,10 +870,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1018,7 +882,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1045,7 +909,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1062,7 +926,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1075,11 +939,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1097,9 +961,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1116,7 +978,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1130,12 +992,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1152,110 +1012,94 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPro 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(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( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) +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( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0794.py b/githubkit/versions/ghec_v2022_11_28/models/group_0794.py index 57d731540..06562c5eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0794.py @@ -19,18 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0529 import WebhooksReview +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,53 +39,70 @@ 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: 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.", ) - review: WebhooksReview = Field(description="The review that was affected.") + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(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"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -103,59 +118,88 @@ class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = 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: WebhookPullRequestReviewEditedPropPullRequestPropHead = 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[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = 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() - 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[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, 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[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems + 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[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -177,14 +221,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(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 WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -206,13 +250,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(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", "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 WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -225,14 +270,15 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -261,7 +307,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -275,7 +323,38 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(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. @@ -285,7 +364,8 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -301,7 +381,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -325,14 +405,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( site_admin: Missing[bool] = Field(default=UNSET) 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 WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -356,14 +434,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn site_admin: Missing[bool] = Field(default=UNSET) 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 WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -385,67 +461,73 @@ class WebhookPullRequestReviewEditedPropPullRequestPropUser(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 WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( + title="Link" ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( + title="Link" ) -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -453,7 +535,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -461,33 +543,40 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -514,7 +603,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -581,6 +672,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel) 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() @@ -594,9 +688,18 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel) language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, 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( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -607,10 +710,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel) open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -619,6 +723,18 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(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.", + ) + 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() @@ -633,12 +749,20 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(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() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -650,7 +774,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -679,10 +803,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -691,21 +817,53 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissio triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): +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 @@ -772,6 +930,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel) 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() @@ -785,9 +946,18 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel) language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, 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.\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() @@ -798,10 +968,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel) open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -810,6 +981,18 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(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() @@ -824,12 +1007,20 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(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() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -841,7 +1032,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -870,10 +1061,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -882,34 +1075,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissio 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( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -926,7 +1092,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -939,11 +1105,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str = Field(description="URL for the team") -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -961,41 +1127,42 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str = Field(description="URL for the team") -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(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[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, + 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 WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1012,94 +1179,136 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropPa 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(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( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner ) -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 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0795.py b/githubkit/versions/ghec_v2022_11_28/models/group_0795.py index 67d9b561f..bd1725c17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0795.py @@ -19,14 +19,14 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -45,50 +45,72 @@ 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( + 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_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="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 WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): - """User""" +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: 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 WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): +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: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ @@ -96,11 +118,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): ] = Field() additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -118,12 +140,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -137,12 +159,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( @@ -156,12 +178,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): merged_at: Union[datetime, None] = Field() merged_by: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, None, ] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -174,13 +196,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -193,11 +215,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): updated_at: datetime = Field() url: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( GitHubModel ): """User""" @@ -226,7 +248,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -255,7 +277,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesIt user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( GitHubModel ): """PullRequestAutoMerge @@ -270,7 +292,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -278,7 +300,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -307,7 +329,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( GitHubModel ): """Label""" @@ -323,7 +345,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( GitHubModel ): """User""" @@ -352,7 +374,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( GitHubModel ): """Milestone @@ -364,7 +386,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -381,7 +403,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( url: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -410,7 +432,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -439,7 +461,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -466,36 +488,36 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -503,7 +525,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -511,7 +533,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -519,7 +541,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -527,7 +549,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIs href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -535,7 +557,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -543,7 +565,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -551,7 +573,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -559,22 +581,22 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, None, ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -603,7 +625,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -688,7 +710,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -710,11 +732,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -727,12 +749,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] = Field( default=UNSET, - description="The default value for a squash merge commit message.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( Field( default=UNSET, - description="The default value for a squash merge commit title.", + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", ) ) ssh_url: str = Field() @@ -762,7 +784,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -774,7 +796,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -803,10 +825,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP ermissions """ @@ -817,22 +839,22 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, None, ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -861,7 +883,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -946,7 +968,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -968,11 +990,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1020,7 +1042,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1032,7 +1054,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1061,10 +1083,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP ermissions """ @@ -1075,7 +1097,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1092,7 +1114,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1105,10 +1127,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer sItemsOneof1PropParent """ @@ -1127,7 +1149,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1144,7 +1166,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1157,10 +1179,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte msPropParent """ @@ -1179,136 +1201,138 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0796.py b/githubkit/versions/ghec_v2022_11_28/models/group_0796.py index bb646b2c8..c70a23bec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0796.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["review_request_removed"] = Field() + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,72 +45,52 @@ 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( + 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_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(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" - ) - 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" + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + 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() - 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) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ @@ -118,11 +98,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): ] = Field() additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -140,12 +120,12 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -159,12 +139,12 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( @@ -177,13 +157,10 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -196,13 +173,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -215,13 +192,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): updated_at: datetime = Field() url: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -243,12 +218,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -272,14 +249,14 @@ 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -292,7 +269,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -300,7 +277,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -329,7 +306,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( GitHubModel ): """Label""" @@ -345,9 +322,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -374,9 +349,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -386,7 +359,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -403,7 +376,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( url: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -427,12 +400,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -461,7 +436,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,41 +458,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -525,7 +502,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -533,7 +510,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -541,7 +518,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -549,7 +526,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -557,7 +534,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -565,7 +542,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -573,7 +550,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -581,22 +558,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -625,7 +601,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -710,7 +686,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -732,11 +708,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -784,7 +760,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -796,7 +772,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -825,11 +801,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions """ admin: bool = Field() @@ -839,22 +815,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -883,7 +858,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -968,7 +943,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -990,11 +965,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1042,7 +1017,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1054,7 +1029,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1083,11 +1058,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions """ admin: bool = Field() @@ -1097,7 +1072,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1114,7 +1089,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1127,11 +1102,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1149,7 +1124,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1158,32 +1133,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, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1201,138 +1179,118 @@ 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(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0797.py b/githubkit/versions/ghec_v2022_11_28/models/group_0797.py index 412a2c6d3..30c2c049d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0797.py @@ -19,14 +19,14 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -45,52 +45,70 @@ class WebhookPullRequestReviewRequestedOneof0(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: WebhookPullRequestReviewRequestedOneof0PropPullRequest = 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_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): - """User""" +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = 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", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +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 WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ @@ -98,11 +116,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): ] = Field() additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -120,12 +138,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -139,12 +157,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( @@ -157,10 +175,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -173,13 +191,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -192,11 +210,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): updated_at: datetime = Field() url: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -225,7 +243,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -256,7 +274,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -269,7 +287,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -277,7 +295,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -306,7 +324,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( GitHubModel ): """Label""" @@ -322,7 +340,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -349,7 +367,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -359,7 +377,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -376,7 +394,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -407,7 +425,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -436,7 +454,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -465,36 +483,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -502,7 +520,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -510,7 +528,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -518,7 +536,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -526,7 +544,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -534,7 +552,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -542,7 +560,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -550,7 +568,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -558,21 +576,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -601,7 +619,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -686,7 +704,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -708,11 +726,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -760,7 +778,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -772,7 +790,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -801,10 +819,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis sions """ @@ -815,21 +833,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -858,7 +876,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -943,7 +961,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -965,11 +983,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1017,7 +1035,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1029,7 +1047,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1058,10 +1076,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis sions """ @@ -1072,7 +1090,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1081,31 +1099,34 @@ 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, + 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem sOneof1PropParent """ @@ -1124,7 +1145,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1143,7 +1164,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1157,10 +1178,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro pParent """ @@ -1179,118 +1200,120 @@ 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(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0798.py b/githubkit/versions/ghec_v2022_11_28/models/group_0798.py index d2e2ac0f4..bb2f6d4ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0798.py @@ -19,16 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0531 import WebhooksReview -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - action: Literal["review_requested"] = Field() + action: Literal["submitted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,90 +40,36 @@ 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: 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.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + review: WebhooksReview = Field(description="The review that was affected.") 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 WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: 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: 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -138,83 +85,61 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", + labels: list[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[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -243,9 +168,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -271,10 +194,9 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( default=UNSET ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -287,15 +209,14 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -324,9 +245,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -340,34 +259,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 WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -377,8 +269,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -394,7 +285,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -425,7 +316,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -449,12 +340,14 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,36 +376,36 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -520,31 +413,25 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -552,7 +439,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -560,15 +447,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -576,23 +461,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -619,9 +502,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -704,7 +585,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -726,11 +607,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -778,7 +658,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -790,7 +670,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -819,12 +699,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -833,52 +711,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, 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 WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -961,7 +808,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -983,11 +830,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1035,7 +881,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1047,7 +893,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1076,12 +922,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1090,7 +934,34 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +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 @@ -1099,35 +970,32 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1145,7 +1013,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1164,7 +1032,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1178,11 +1046,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] = Field(description="Description of the team") @@ -1200,120 +1068,100 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof1) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0799.py b/githubkit/versions/ghec_v2022_11_28/models/group_0799.py index 75907d1d9..b899bfec1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0799.py @@ -19,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0529 import WebhooksReview +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" - action: Literal["submitted"] = Field() + action: Literal["resolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,31 +44,36 @@ 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: 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.", ) - review: WebhooksReview = Field(description="The review that was affected.") - 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 WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +89,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -98,18 +102,18 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -119,13 +123,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -134,12 +138,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -161,14 +165,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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -190,13 +194,11 @@ 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) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -209,14 +211,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -245,7 +248,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -259,7 +262,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -269,7 +272,8 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -285,7 +289,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -309,14 +313,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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,7 +349,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,36 +378,36 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -413,25 +415,31 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -439,7 +447,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -447,13 +455,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -461,21 +471,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -502,7 +514,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -585,18 +599,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -607,10 +613,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -619,18 +626,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -645,10 +640,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -658,7 +649,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -670,7 +661,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -699,10 +690,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -711,21 +704,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" label: Union[str, None] = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -808,18 +803,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -830,10 +817,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -842,18 +830,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -868,10 +844,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -881,7 +853,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -893,7 +865,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -922,10 +894,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -934,7 +908,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -961,7 +937,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -978,7 +954,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -991,11 +967,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1013,7 +989,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1032,7 +1008,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1046,11 +1022,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1068,100 +1044,324 @@ 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) +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( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf ) __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", + "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_0800.py b/githubkit/versions/ghec_v2022_11_28/models/group_0800.py index a814089dc..5988e5c0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0800.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" - action: Literal["resolved"] = Field() + action: Literal["unresolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ 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: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( @@ -54,24 +54,24 @@ class WebhookPullRequestReviewThreadResolved(GitHubModel): sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -89,12 +89,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -102,18 +102,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -123,13 +123,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -138,12 +138,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -170,7 +170,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -198,7 +198,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -207,11 +207,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM 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." - ) + commit_title: str = Field(description="Title for the merge commit message.") enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -219,7 +217,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -248,7 +246,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -262,7 +262,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -272,7 +272,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +289,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -318,7 +318,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -342,14 +342,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -371,43 +369,41 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel) site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -415,7 +411,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -423,7 +419,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -431,7 +427,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -439,7 +435,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -447,7 +443,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -455,7 +451,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -463,7 +459,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -471,21 +467,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -514,7 +510,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -599,7 +595,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -613,11 +609,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -649,7 +645,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -661,7 +657,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -690,11 +686,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions """ admin: bool = Field() @@ -704,21 +700,50 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( +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 @@ -803,7 +828,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -817,11 +842,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -853,7 +878,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -865,7 +890,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -894,11 +919,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions """ admin: bool = Field() @@ -908,36 +933,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -946,32 +942,35 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer """ 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[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, 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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -989,7 +988,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1008,7 +1007,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1022,11 +1021,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1044,16 +1043,16 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" +class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems ] = Field() node_id: str = Field() -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): """Pull Request Review Comment The [comment](https://docs.github.com/enterprise- @@ -1061,7 +1060,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubMo itself. """ - links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( + links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( alias="_links" ) author_association: Literal[ @@ -1097,7 +1096,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubMo original_commit_id: str = Field( description="The SHA of the original commit to which the comment applies." ) - original_line: Union[int, None] = Field( + 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( @@ -1118,7 +1117,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubMo pull_request_url: str = Field( description="URL for the pull request that the review comment belongs to." ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( title="Reactions" ) side: Literal["LEFT", "RIGHT"] = Field( @@ -1138,11 +1137,12 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubMo updated_at: datetime = Field() url: str = Field(description="URL for the pull request review comment") user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( GitHubModel ): """Reactions""" @@ -1159,7 +1159,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReact url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( GitHubModel ): """User""" @@ -1183,30 +1183,28 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( site_admin: Missing[bool] = Field(default=UNSET) 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 WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( title="Link" ) - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( alias="self", title="Link" ) -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( GitHubModel ): """Link""" @@ -1214,7 +1212,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( GitHubModel ): """Link""" @@ -1222,7 +1220,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( GitHubModel ): """Link""" @@ -1230,138 +1228,142 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str = Field() -model_rebuild(WebhookPullRequestReviewThreadResolved) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +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( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf ) __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", + "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_0801.py b/githubkit/versions/ghec_v2022_11_28/models/group_0801.py index 9914600ff..8b5b89532 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0801.py @@ -19,16 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" - action: Literal["unresolved"] = Field() + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,41 +41,35 @@ class WebhookPullRequestReviewThreadUnresolved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( - title="Simple Pull Request" + pull_request: 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: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: list[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,61 +85,81 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestSynchronizePropPullRequestPropBase = 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: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems - ] = 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() - 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[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + WebhookPullRequestSynchronizePropPullRequestPropMilestone, 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, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems ] = 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 - ] = Field(title="User") + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -165,14 +181,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 WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -194,11 +210,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 WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -207,17 +225,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, + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,9 +265,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -262,7 +279,34 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): +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. @@ -272,8 +316,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -289,9 +332,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -313,12 +354,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 WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -342,12 +385,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 WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -369,73 +414,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 WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -443,7 +482,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -451,39 +490,33 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -510,9 +543,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -595,10 +626,17 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, - None, + 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() @@ -609,11 +647,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -622,6 +659,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -636,6 +685,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 +698,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -657,7 +710,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -686,12 +739,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -700,23 +751,21 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -743,9 +792,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -828,10 +875,15 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, - None, + 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() @@ -842,11 +894,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -855,6 +906,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 +932,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 +945,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -890,7 +957,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -919,12 +986,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -933,7 +998,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -942,35 +1007,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, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, 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 WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent """ description: Union[str, None] = Field(description="Description of the team") @@ -988,9 +1050,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1007,7 +1067,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1021,12 +1081,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1043,327 +1101,92 @@ 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(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( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions + 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( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0802.py b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py index ecce8f59f..88277e688 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py @@ -19,18 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0512 import WebhooksUserMannequin -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,29 +49,31 @@ 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: 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 WebhookPullRequestSynchronizePropPullRequest(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +89,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +108,11 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,13 +124,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[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() number: int = Field( @@ -136,13 +140,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +158,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,7 +192,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -216,7 +220,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +233,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -265,7 +269,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -279,7 +283,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -301,12 +305,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(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 WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -316,7 +322,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -332,7 +338,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -361,7 +367,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -392,7 +398,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -421,60 +427,60 @@ class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -482,7 +488,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -490,33 +496,33 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -543,7 +549,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -626,7 +632,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + 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( @@ -647,10 +653,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -698,7 +704,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -710,9 +716,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -739,10 +743,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -751,48 +755,21 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -875,14 +852,16 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + 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." + 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 +873,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -945,7 +924,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -957,9 +936,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -986,10 +963,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -998,7 +975,34 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( +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 @@ -1015,7 +1019,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1028,11 +1032,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1050,7 +1054,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1067,7 +1071,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1081,10 +1085,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1101,92 +1105,92 @@ 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(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( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 ) -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(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( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0803.py b/githubkit/versions/ghec_v2022_11_28/models/group_0803.py index 98d51c1c8..a64be65ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0803.py @@ -19,20 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0510 import WebhooksUserMannequin +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0504 import WebhooksLabel -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,37 +40,36 @@ class WebhookPullRequestUnassigned(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: WebhookPullRequestUnassignedPropPullRequest = Field( + 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: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -88,13 +84,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): 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.", + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -108,11 +104,11 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -124,9 +120,9 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -140,13 +136,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -158,12 +154,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( + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -192,7 +188,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -220,7 +216,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,16 +229,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -269,7 +263,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -283,7 +277,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -305,14 +299,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 WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -322,7 +314,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -338,7 +330,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -367,7 +359,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -398,7 +390,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -427,68 +419,66 @@ class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -496,33 +486,33 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -549,7 +539,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -632,7 +622,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + 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( @@ -653,10 +643,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -704,7 +694,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -716,7 +706,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -743,10 +733,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -755,21 +745,21 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -852,16 +842,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + 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.\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.", + 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 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).", + default=UNSET, description="The default value for a merge commit message title." ) merges_url: str = Field() milestones_url: str = Field() @@ -873,10 +861,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -924,7 +912,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -936,7 +924,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -963,10 +951,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -975,7 +963,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1002,7 +990,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1019,7 +1007,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1032,11 +1020,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1054,7 +1042,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1071,7 +1059,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1085,10 +1073,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1105,92 +1093,88 @@ 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( - 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(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( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) +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( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0804.py b/githubkit/versions/ghec_v2022_11_28/models/group_0804.py index b94b90fff..7fe7afdc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0804.py @@ -19,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0502 import WebhooksLabel +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" - action: Literal["unlabeled"] = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +39,13 @@ 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: WebhookPullRequestUnlockedPropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( @@ -57,19 +55,19 @@ class WebhookPullRequestUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -84,13 +82,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +102,11 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,9 +118,9 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -136,13 +134,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +152,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( + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,14 +179,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(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 WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,13 +206,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(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 WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -225,18 +219,16 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): 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." - ) + commit_title: str = Field(description="Title for the merge commit message.") enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -263,7 +255,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -277,7 +269,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -304,7 +296,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +306,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +322,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,14 +344,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(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 WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -383,14 +373,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 WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -412,107 +400,103 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUser(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 WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -539,7 +523,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -622,7 +606,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + 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( @@ -643,10 +627,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -694,9 +678,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -706,7 +688,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -733,10 +715,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -745,21 +727,21 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -842,14 +824,16 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + 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." + 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 +845,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -912,9 +896,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -924,7 +906,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -951,10 +933,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -963,7 +945,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -990,7 +972,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -999,32 +981,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, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, 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 WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] = Field(description="Description of the team") @@ -1042,7 +1027,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1059,7 +1044,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1073,10 +1058,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1093,88 +1078,88 @@ 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(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( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 ) -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(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( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0805.py b/githubkit/versions/ghec_v2022_11_28/models/group_0805.py index 5459e99fc..4323a3b48 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0805.py @@ -14,734 +14,190 @@ 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_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" +class WebhookPush(GitHubModel): + """push 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/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() - issue_url: str = Field() - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: str = Field(description="Title for the merge commit message.") - enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." ) - 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" + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." + 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." ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + 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." ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + 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)."', ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." + forced: bool = Field(description="Whether this push was a force push of the `ref`.") + head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - 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( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + pusher: WebhookPushPropPusher = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - 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." + ref: str = Field( + description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - 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.", + + +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, description="An array of files added in the commit." ) - 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).", + author: WebhookPushPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - 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.", + committer: WebhookPushPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - 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).", - ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." ) - 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.", + 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." ) - 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", + 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 WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = 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 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 WebhookPushPropHeadCommitPropCommitter(GitHubModel): + """Committer + Metaproperties for Git author/committer information. + """ -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + 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) - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = 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 WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") +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.", ) - sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") + 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 WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + +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 @@ -778,6 +234,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(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, @@ -823,18 +283,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): 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).", + 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() @@ -844,12 +296,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): 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) + 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() @@ -857,18 +307,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -883,10 +321,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -896,7 +330,16 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(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): """License""" key: str = Field() @@ -906,7 +349,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPushPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,10 +376,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -945,221 +386,32 @@ 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( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent -) +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__ = ( - "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", + "WebhookPush", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", ) 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 d766a6d71..6034d0c0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0806.py @@ -9,46 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0807 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookPush(GitHubModel): - """push event""" +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" - 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["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)."', ) - 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,359 +44,15 @@ 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.", - ) - ref: str = Field( - description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." - ) - repository: WebhookPushPropRepository = Field( - title="Repository", description="A git repository" - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookPushPropHeadCommit(GitHubModel): - """Commit""" - - added: Missing[list[str]] = Field( - default=UNSET, description="An array of files added in the commit." - ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookPushPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." - ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, description="An array of files modified by the commit." - ) - removed: Missing[list[str]] = Field( - default=UNSET, description="An array of files removed in the commit." - ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") - - -class WebhookPushPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropPusher(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" - - added: Missing[list[str]] = Field( - default=UNSET, - description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", - ) - author: WebhookPushPropCommitsItemsPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookPushPropCommitsItemsPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." - ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, - description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", - ) - removed: Missing[list[str]] = Field( + registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - 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) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -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) +model_rebuild(WebhookRegistryPackagePublished) -__all__ = ( - "WebhookPush", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", -) +__all__ = ("WebhookRegistryPackagePublished",) 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 e8a94379b..6f3678608 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0807.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,42 +17,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0808 import WebhookRegistryPackagePublishedPropRegistryPackage - - -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRegistryPackagePublished) - -__all__ = ("WebhookRegistryPackagePublished",) +from .group_0808 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackage""" + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + ] = Field() + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + vendor: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackage", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0808.py b/githubkit/versions/ghec_v2022_11_28/models/group_0808.py index b9e85bd44..643f72d19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0808.py @@ -13,38 +13,80 @@ 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_0809 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0727 import WebhookRubygemsMetadata -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + 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() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + 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() - updated_at: Union[str, None] = 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 WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" avatar_url: str = Field() events_url: str = Field() @@ -67,22 +109,508 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +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 + """ - about_url: Missing[str] = Field(default=UNSET) 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) - vendor: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) +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__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "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_0809.py b/githubkit/versions/ghec_v2022_11_28/models/group_0809.py index fd30cf7a7..6e12faad5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0809.py @@ -9,608 +9,50 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0728 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, - ] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[list[str]] = Field(default=UNSET) - contributors: Missing[list[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ - - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ - - id: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, - None, - ] - ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Missing[str] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) - -__all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0810 import WebhookRegistryPackageUpdatedPropRegistryPackage + + +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" + + 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.", + ) + 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: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRegistryPackageUpdated) + +__all__ = ("WebhookRegistryPackageUpdated",) 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 2eeabb44a..1d3955733 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0810.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,42 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0811 import WebhookRegistryPackageUpdatedPropRegistryPackage - - -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" - - 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.", - ) - 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: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRegistryPackageUpdated) - -__all__ = ("WebhookRegistryPackageUpdated",) +from .group_0811 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_0811.py b/githubkit/versions/ghec_v2022_11_28/models/group_0811.py index 0907e00de..9f67c02b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0811.py @@ -13,36 +13,59 @@ 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_0812 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0727 import WebhookRubygemsMetadata -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() + body: str = Field() + body_html: str = Field() created_at: str = Field() - description: None = Field() - ecosystem: 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() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + 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 WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" avatar_url: str = Field() events_url: str = Field() @@ -65,16 +88,116 @@ class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +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(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ) 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 1c7dcff15..94f6d428e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0812.py @@ -9,195 +9,52 @@ 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_0728 import WebhookRubygemsMetadata - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - md5: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - sha1: Missing[Union[str, None]] = Field(default=UNSET) - sha256: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0532 import WebhooksRelease + + +class WebhookReleaseCreated(GitHubModel): + """release created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookReleaseCreated) + +__all__ = ("WebhookReleaseCreated",) 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 af8ab7502..fd0fa3b97 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0813.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0530 import WebhooksRelease +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0532 import WebhooksRelease -class WebhookReleaseCreated(GitHubModel): - """release created event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,6 +55,6 @@ class WebhookReleaseCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseCreated) +model_rebuild(WebhookReleaseDeleted) -__all__ = ("WebhookReleaseCreated",) +__all__ = ("WebhookReleaseDeleted",) 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 71cecdbdc..62c7ac68d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0814.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0530 import WebhooksRelease +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0532 import WebhooksRelease -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" +class WebhookReleaseEdited(GitHubModel): + """release edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookReleaseEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,9 +53,69 @@ class WebhookReleaseDeleted(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 WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + tag_name: Missing[WebhookReleaseEditedPropChangesPropTagName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropTagName(GitHubModel): + """WebhookReleaseEditedPropChangesPropTagName""" + + from_: str = Field( + alias="from", + description="The previous version of the tag_name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) -model_rebuild(WebhookReleaseDeleted) +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropTagName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -__all__ = ("WebhookReleaseDeleted",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropMakeLatest", + "WebhookReleaseEditedPropChangesPropName", + "WebhookReleaseEditedPropChangesPropTagName", +) 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 fdea2ed36..157881068 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0815.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0530 import WebhooksRelease +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookReleaseEdited(GitHubModel): - """release edited event""" +class WebhookReleasePrereleased(GitHubModel): + """release prereleased event""" - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() + action: Literal["prereleased"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,7 +44,7 @@ class WebhookReleaseEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( + release: WebhookReleasePrereleasedPropRelease = Field( title="Release", description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", ) @@ -58,64 +57,150 @@ class WebhookReleaseEdited(GitHubModel): ) -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" - - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - tag_name: Missing[WebhookReleaseEditedPropChangesPropTagName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET - ) +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ -class WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( + Field() ) - - -class WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", + assets_url: str = Field() + author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( + title="User" ) - - -class WebhookReleaseEditedPropChangesPropTagName(GitHubModel): - """WebhookReleaseEditedPropChangesPropTagName""" - - from_: str = Field( - alias="from", - description="The previous version of the tag_name if the action was `edited`.", + 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() + immutable: bool = Field(description="Whether or not the release is immutable.") + 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." ) - - -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" ) - - -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropTagName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookReleasePrereleasedPropRelease) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) +model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) __all__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropMakeLatest", - "WebhookReleaseEditedPropChangesPropName", - "WebhookReleaseEditedPropChangesPropTagName", + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", ) 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 6c57a9d37..b5f40bce1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0816.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0533 import WebhooksRelease1 -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: Literal["prereleased"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ 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( + release: WebhooksRelease1 = Field( title="Release", description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", ) @@ -57,149 +57,6 @@ class WebhookReleasePrereleased(GitHubModel): ) -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """Release +model_rebuild(WebhookReleasePublished) - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( - Field() - ) - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - digest: Union[str, None] = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -model_rebuild(WebhookReleasePrereleased) -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) -model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) - -__all__ = ( - "WebhookReleasePrereleased", - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleasePropAssetsItems", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleasePropAuthor", - "WebhookReleasePrereleasedPropReleasePropReactions", -) +__all__ = ("WebhookReleasePublished",) 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 1e0c14a4b..c304c9585 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0817.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0531 import WebhooksRelease1 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0532 import WebhooksRelease -class WebhookReleasePublished(GitHubModel): - """release published event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" - action: Literal["published"] = Field() + action: Literal["released"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ 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( + release: WebhooksRelease = Field( title="Release", description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", ) @@ -57,6 +57,6 @@ class WebhookReleasePublished(GitHubModel): ) -model_rebuild(WebhookReleasePublished) +model_rebuild(WebhookReleaseReleased) -__all__ = ("WebhookReleasePublished",) +__all__ = ("WebhookReleaseReleased",) 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 baad76d2c..4e43707be 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0818.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0530 import WebhooksRelease +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0533 import WebhooksRelease1 -class WebhookReleaseReleased(GitHubModel): - """release released event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" - action: Literal["released"] = Field() + action: Literal["unpublished"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ class WebhookReleaseReleased(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( + release: WebhooksRelease1 = Field( title="Release", description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", ) @@ -57,6 +57,6 @@ class WebhookReleaseReleased(GitHubModel): ) -model_rebuild(WebhookReleaseReleased) +model_rebuild(WebhookReleaseUnpublished) -__all__ = ("WebhookReleaseReleased",) +__all__ = ("WebhookReleaseUnpublished",) 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 65c048294..079d03c40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0819.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0531 import WebhooksRelease1 +from .group_0234 import RepositoryAdvisory +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" - action: Literal["unpublished"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +44,18 @@ 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( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookReleaseUnpublished) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ("WebhookReleaseUnpublished",) +__all__ = ("WebhookRepositoryAdvisoryPublished",) 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 cb99b1ed3..1edaad21e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0820.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0232 import RepositoryAdvisory -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0234 import RepositoryAdvisory +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" - action: Literal["published"] = Field() + action: Literal["reported"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookRepositoryAdvisoryPublished(GitHubModel): ) -model_rebuild(WebhookRepositoryAdvisoryPublished) +model_rebuild(WebhookRepositoryAdvisoryReported) -__all__ = ("WebhookRepositoryAdvisoryPublished",) +__all__ = ("WebhookRepositoryAdvisoryReported",) 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 7d792ef1f..9f61b2807 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0821.py @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0232 import RepositoryAdvisory -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" - action: Literal["reported"] = Field() + action: Literal["archived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,14 +47,9 @@ class WebhookRepositoryAdvisoryReported(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.", ) - 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(WebhookRepositoryArchived) -__all__ = ("WebhookRepositoryAdvisoryReported",) +__all__ = ("WebhookRepositoryArchived",) 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 5a4246019..fca0c4aff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0822.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" - action: Literal["archived"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryArchived(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryArchived) +model_rebuild(WebhookRepositoryCreated) -__all__ = ("WebhookRepositoryArchived",) +__all__ = ("WebhookRepositoryCreated",) 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 1ed5ca4cb..597bcadda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0823.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryCreated) +model_rebuild(WebhookRepositoryDeleted) -__all__ = ("WebhookRepositoryCreated",) +__all__ = ("WebhookRepositoryDeleted",) 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 37b162cfb..288f492c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0824.py @@ -9,32 +9,39 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryDeleted(GitHubModel): - """repository 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)."', ) @@ -50,6 +57,18 @@ class WebhookRepositoryDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryDeleted) +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__ = ("WebhookRepositoryDeleted",) +__all__ = ( + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", +) 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 c2c8bbee0..6b2d8231f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0825.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" +class WebhookRepositoryEdited(GitHubModel): + """repository edited 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["edited"] = Field() + changes: WebhookRepositoryEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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)."', ) @@ -57,18 +51,57 @@ class WebhookRepositoryDispatchSample(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload +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""" - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ + from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryDispatchSample) -model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) +model_rebuild(WebhookRepositoryEdited) +model_rebuild(WebhookRepositoryEditedPropChanges) +model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) +model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) +model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) +model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) __all__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", + "WebhookRepositoryEdited", + "WebhookRepositoryEditedPropChanges", + "WebhookRepositoryEditedPropChangesPropDefaultBranch", + "WebhookRepositoryEditedPropChangesPropDescription", + "WebhookRepositoryEditedPropChangesPropHomepage", + "WebhookRepositoryEditedPropChangesPropTopics", ) 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 9eebae7e6..3148e8bd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0826.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" +class WebhookRepositoryImport(GitHubModel): + """repository_import event""" - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,59 +47,9 @@ class WebhookRepositoryEdited(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + status: Literal["success", "cancelled", "failure"] = Field() -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" +model_rebuild(WebhookRepositoryImport) - 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__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("WebhookRepositoryImport",) 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 a97a1a4ba..18a3b4c40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0827.py @@ -18,15 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" + action: Literal["privatized"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,9 +48,8 @@ class WebhookRepositoryImport(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryImport) +model_rebuild(WebhookRepositoryPrivatized) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("WebhookRepositoryPrivatized",) 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 1a1f3d6ff..9d163c588 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0828.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" - action: Literal["privatized"] = Field() + action: Literal["publicized"] = 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(WebhookRepositoryPublicized) -__all__ = ("WebhookRepositoryPrivatized",) +__all__ = ("WebhookRepositoryPublicized",) 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 82dd89429..def90bb5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0829.py @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" - action: Literal["publicized"] = Field() + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +51,32 @@ class WebhookRepositoryPublicized(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryPublicized) +class WebhookRepositoryRenamedPropChanges(GitHubModel): + """WebhookRepositoryRenamedPropChanges""" -__all__ = ("WebhookRepositoryPublicized",) + 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", +) 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 e8ad98e1b..802e0ea6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0830.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0140 import RepositoryRuleset +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,39 +44,18 @@ class WebhookRepositoryRenamed(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.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRenamedPropChanges(GitHubModel): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookRepositoryRenamed) -model_rebuild(WebhookRepositoryRenamedPropChanges) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) +model_rebuild(WebhookRepositoryRulesetCreated) -__all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", -) +__all__ = ("WebhookRepositoryRulesetCreated",) 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 9762b4ca9..0c0a0c6a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0831.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0139 import RepositoryRuleset -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0140 import RepositoryRuleset +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookRepositoryRulesetCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetCreated) +model_rebuild(WebhookRepositoryRulesetDeleted) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ("WebhookRepositoryRulesetDeleted",) 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 566072493..0a4584639 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0832.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0139 import RepositoryRuleset -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0140 import RepositoryRuleset +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0833 import WebhookRepositoryRulesetEditedPropChanges -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,9 +54,10 @@ class WebhookRepositoryRulesetDeleted(GitHubModel): 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(WebhookRepositoryRulesetDeleted) +model_rebuild(WebhookRepositoryRulesetEdited) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ("WebhookRepositoryRulesetEdited",) 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 1132194de..fc4a5b726 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0833.py @@ -9,55 +9,51 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0139 import RepositoryRuleset -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0834 import WebhookRepositoryRulesetEditedPropChanges +from .group_0834 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from .group_0836 import WebhookRepositoryRulesetEditedPropChangesPropRules -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["edited"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = 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.", + enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( + 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.", + conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( + Field(default=UNSET) ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetEdited) +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__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", + "WebhookRepositoryRulesetEditedPropChangesPropName", +) 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 78532b735..d1227d212 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0834.py @@ -15,45 +15,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0835 import WebhookRepositoryRulesetEditedPropChangesPropConditions -from .group_0837 import WebhookRepositoryRulesetEditedPropChangesPropRules - - -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" - - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET - ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) - ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( - Field(default=UNSET) - ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( - default=UNSET - ) - - -class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: Missing[str] = Field(default=UNSET, alias="from") +from .group_0089 import RepositoryRulesetConditions +from .group_0835 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - from_: Missing[str] = Field(default=UNSET, alias="from") + added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", - "WebhookRepositoryRulesetEditedPropChangesPropName", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) 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 16df7d562..28e7a8153 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0835.py @@ -15,22 +15,107 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0088 import RepositoryRulesetConditions -from .group_0836 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) +from .group_0089 import RepositoryRulesetConditions + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + + condition: Missing[RepositoryRulesetConditions] = Field( + default=UNSET, + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", + ) + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) -class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] +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") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) +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__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", +) 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 e9f0ea2d2..061670e0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0836.py @@ -9,113 +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_0088 import RepositoryRulesetConditions - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - - condition: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", - ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - +from .group_0099 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0100 import RepositoryRuleUpdate +from .group_0102 import RepositoryRuleRequiredLinearHistory +from .group_0103 import RepositoryRuleRequiredDeployments +from .group_0106 import RepositoryRulePullRequest +from .group_0108 import RepositoryRuleRequiredStatusChecks +from .group_0110 import RepositoryRuleCommitMessagePattern +from .group_0112 import RepositoryRuleCommitAuthorEmailPattern +from .group_0114 import RepositoryRuleCommitterEmailPattern +from .group_0116 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleTagNamePattern +from .group_0120 import RepositoryRuleFilePathRestriction +from .group_0122 import RepositoryRuleMaxFilePathLength +from .group_0124 import RepositoryRuleFileExtensionRestriction +from .group_0126 import RepositoryRuleMaxFileSize +from .group_0129 import RepositoryRuleWorkflows +from .group_0131 import RepositoryRuleCodeScanning +from .group_0138 import RepositoryRuleMergeQueue +from .group_0837 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + deleted: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] ] = 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") - +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) -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__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) 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 fffc92e8d..6505a70d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0837.py @@ -17,96 +17,128 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0098 import ( +from .group_0099 import ( RepositoryRuleCreation, RepositoryRuleDeletion, RepositoryRuleNonFastForward, RepositoryRuleRequiredSignatures, ) -from .group_0099 import RepositoryRuleUpdate -from .group_0101 import RepositoryRuleRequiredLinearHistory -from .group_0102 import RepositoryRuleMergeQueue -from .group_0104 import RepositoryRuleRequiredDeployments -from .group_0107 import RepositoryRulePullRequest -from .group_0109 import RepositoryRuleRequiredStatusChecks -from .group_0111 import RepositoryRuleCommitMessagePattern -from .group_0113 import RepositoryRuleCommitAuthorEmailPattern -from .group_0115 import RepositoryRuleCommitterEmailPattern -from .group_0117 import RepositoryRuleBranchNamePattern -from .group_0119 import RepositoryRuleTagNamePattern -from .group_0121 import RepositoryRuleFilePathRestriction -from .group_0123 import RepositoryRuleMaxFilePathLength -from .group_0125 import RepositoryRuleFileExtensionRestriction -from .group_0127 import RepositoryRuleMaxFileSize -from .group_0130 import RepositoryRuleWorkflows -from .group_0132 import RepositoryRuleCodeScanning -from .group_0838 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) +from .group_0100 import RepositoryRuleUpdate +from .group_0102 import RepositoryRuleRequiredLinearHistory +from .group_0103 import RepositoryRuleRequiredDeployments +from .group_0106 import RepositoryRulePullRequest +from .group_0108 import RepositoryRuleRequiredStatusChecks +from .group_0110 import RepositoryRuleCommitMessagePattern +from .group_0112 import RepositoryRuleCommitAuthorEmailPattern +from .group_0114 import RepositoryRuleCommitterEmailPattern +from .group_0116 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleTagNamePattern +from .group_0120 import RepositoryRuleFilePathRestriction +from .group_0122 import RepositoryRuleMaxFilePathLength +from .group_0124 import RepositoryRuleFileExtensionRestriction +from .group_0126 import RepositoryRuleMaxFileSize +from .group_0129 import RepositoryRuleWorkflows +from .group_0131 import RepositoryRuleCodeScanning +from .group_0138 import RepositoryRuleMergeQueue + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] + rule: Missing[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, ] + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges ] = Field(default=UNSET) - deleted: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration ] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] + 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 + """ -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) + from_: Missing[str] = Field(default=UNSET, alias="from") -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) + +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_0838.py b/githubkit/versions/ghec_v2022_11_28/models/group_0838.py index 48eadf6a8..256bfa8bb 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,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,128 +17,124 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0098 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0099 import RepositoryRuleUpdate -from .group_0101 import RepositoryRuleRequiredLinearHistory -from .group_0102 import RepositoryRuleMergeQueue -from .group_0104 import RepositoryRuleRequiredDeployments -from .group_0107 import RepositoryRulePullRequest -from .group_0109 import RepositoryRuleRequiredStatusChecks -from .group_0111 import RepositoryRuleCommitMessagePattern -from .group_0113 import RepositoryRuleCommitAuthorEmailPattern -from .group_0115 import RepositoryRuleCommitterEmailPattern -from .group_0117 import RepositoryRuleBranchNamePattern -from .group_0119 import RepositoryRuleTagNamePattern -from .group_0121 import RepositoryRuleFilePathRestriction -from .group_0123 import RepositoryRuleMaxFilePathLength -from .group_0125 import RepositoryRuleFileExtensionRestriction -from .group_0127 import RepositoryRuleMaxFileSize -from .group_0130 import RepositoryRuleWorkflows -from .group_0132 import RepositoryRuleCodeScanning - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ + 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)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - from_: Missing[str] = Field(default=UNSET, alias="from") +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() - from_: Missing[str] = Field(default=UNSET, alias="from") +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" + ) - from_: Missing[str] = Field(default=UNSET, alias="from") +class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) + 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__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ) 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 172922d09..3cdfc8b6b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0839.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() + action: Literal["unarchived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,90 +50,6 @@ class WebhookRepositoryTransferred(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" +model_rebuild(WebhookRepositoryUnarchived) - 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__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", -) +__all__ = ("WebhookRepositoryUnarchived",) 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 6a1599d78..e47cae4f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0840.py @@ -18,16 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0534 import WebhooksAlert -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" - action: Literal["unarchived"] = 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", @@ -50,6 +55,6 @@ class WebhookRepositoryUnarchived(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryUnarchived) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) -__all__ = ("WebhookRepositoryUnarchived",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) 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 05d3e0c82..ba6920c46 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 Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0532 import WebhooksAlert +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - action: Literal["create"] = Field() - alert: WebhooksAlert = Field( + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( title="Repository Vulnerability Alert Alert", description="The security alert of the vulnerable dependency.", ) @@ -55,6 +55,67 @@ class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) + 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(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", +) 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 318cae517..dbc4ba335 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0842.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0534 import WebhooksAlert -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + action: Literal["reopen"] = Field() + alert: WebhooksAlert = Field( title="Repository Vulnerability Alert Alert", description="The security alert of the vulnerable dependency.", ) @@ -55,67 +55,6 @@ class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """Repository Vulnerability Alert Alert +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) - 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(WebhookRepositoryVulnerabilityAlertDismiss) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismiss", - "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", -) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) 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 c36d475cf..cae4bd3ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0843.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0532 import WebhooksAlert +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["reopen"] = Field() - alert: WebhooksAlert = Field( + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( title="Repository Vulnerability Alert Alert", description="The security alert of the vulnerable dependency.", ) @@ -55,6 +55,65 @@ class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert -__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) + 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(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", +) 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 17b04a70e..ae561888e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0844.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,20 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0535 import SecretScanningAlertWebhook -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,68 +49,11 @@ class WebhookRepositoryVulnerabilityAlertResolve(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 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) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ( - "WebhookRepositoryVulnerabilityAlertResolve", - "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", -) +__all__ = ("WebhookSecretScanningAlertCreated",) 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 678f46c73..5edeaa2ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0845.py @@ -18,28 +18,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0533 import SecretScanningAlertWebhook +from .group_0430 import SecretScanningLocation +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0535 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" +class WebhookSecretScanningAlertLocationCreated(GitHubModel): + """Secret Scanning Alert Location 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)."', ) + location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,11 +45,9 @@ class WebhookSecretScanningAlertCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertCreated) +model_rebuild(WebhookSecretScanningAlertLocationCreated) -__all__ = ("WebhookSecretScanningAlertCreated",) +__all__ = ("WebhookSecretScanningAlertLocationCreated",) 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 ec8ccd81f..875448bf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0846.py @@ -9,45 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0428 import SecretScanningLocation -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0533 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertLocationCreated(GitHubModel): +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): """Secret Scanning Alert Location Created Event""" - 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: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertLocationCreated) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookSecretScanningAlertLocationCreated",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) 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 875448bf5..733e0e334 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,51 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created 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." +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0535 import SecretScanningAlertWebhook + + +class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): + """secret_scanning_alert publicly leaked event""" + + action: Literal["publicly_leaked"] = 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(WebhookSecretScanningAlertLocationCreatedFormEncoded) +model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) 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 31f691251..befa27ec3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0848.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0533 import SecretScanningAlertWebhook +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0535 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): - """secret_scanning_alert publicly leaked event""" +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" - action: Literal["publicly_leaked"] = Field() + action: Literal["reopened"] = Field() alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,6 +54,6 @@ class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): ) -model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) +__all__ = ("WebhookSecretScanningAlertReopened",) 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 e141a8687..0c6737f7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0849.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0533 import SecretScanningAlertWebhook +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0535 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - action: Literal["reopened"] = Field() + action: Literal["resolved"] = Field() alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,6 +54,6 @@ class WebhookSecretScanningAlertReopened(GitHubModel): ) -model_rebuild(WebhookSecretScanningAlertReopened) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ("WebhookSecretScanningAlertReopened",) +__all__ = ("WebhookSecretScanningAlertResolved",) 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 b02017f6f..4fc49d993 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0850.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0533 import SecretScanningAlertWebhook +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0535 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" - action: Literal["resolved"] = Field() + action: Literal["validated"] = Field() alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,6 +54,6 @@ class WebhookSecretScanningAlertResolved(GitHubModel): ) -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(WebhookSecretScanningAlertValidated) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ("WebhookSecretScanningAlertValidated",) 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 b2069e19c..b1f647720 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0851.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,47 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0533 import SecretScanningAlertWebhook +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" +class WebhookSecretScanningScanCompleted(GitHubModel): + """secret_scanning_scan completed event""" - action: Literal["validated"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["completed"] = Field() + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( + Field(description="What type of scan was completed") + ) + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( + description="What type of content was scanned" + ) + started_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + completed_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + secret_types: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", + ) + custom_pattern_name: Missing[Union[str, None]] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", + ) + custom_pattern_scope: Missing[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,15 +75,11 @@ class WebhookSecretScanningAlertValidated(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(WebhookSecretScanningAlertValidated) +model_rebuild(WebhookSecretScanningScanCompleted) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ("WebhookSecretScanningScanCompleted",) 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 99f495566..2d00b4900 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0852.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,47 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0536 import WebhooksSecurityAdvisory -class WebhookSecretScanningScanCompleted(GitHubModel): - """secret_scanning_scan completed event""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published 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["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -75,11 +44,19 @@ 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: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + 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(WebhookSecretScanningScanCompleted) +model_rebuild(WebhookSecurityAdvisoryPublished) -__all__ = ("WebhookSecretScanningScanCompleted",) +__all__ = ("WebhookSecurityAdvisoryPublished",) 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 b41dd0e53..01b20a31a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0853.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0534 import WebhooksSecurityAdvisory +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0536 import WebhooksSecurityAdvisory -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - action: Literal["published"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -57,6 +57,6 @@ class WebhookSecurityAdvisoryPublished(GitHubModel): ) -model_rebuild(WebhookSecurityAdvisoryPublished) +model_rebuild(WebhookSecurityAdvisoryUpdated) -__all__ = ("WebhookSecurityAdvisoryPublished",) +__all__ = ("WebhookSecurityAdvisoryUpdated",) 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 23eb4ba73..beb216904 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0854.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0534 import WebhooksSecurityAdvisory +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0855 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" - action: Literal["updated"] = Field() + action: Literal["withdrawn"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,7 +49,7 @@ class WebhookSecurityAdvisoryUpdated(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.", ) - security_advisory: WebhooksSecurityAdvisory = Field( + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( description="The details of the security advisory, including summary, description, and severity." ) sender: Missing[SimpleUser] = Field( @@ -57,6 +57,6 @@ class WebhookSecurityAdvisoryUpdated(GitHubModel): ) -model_rebuild(WebhookSecurityAdvisoryUpdated) +model_rebuild(WebhookSecurityAdvisoryWithdrawn) -__all__ = ("WebhookSecurityAdvisoryUpdated",) +__all__ = ("WebhookSecurityAdvisoryWithdrawn",) 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 7f8077f56..a20e03470 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0855.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,46 +17,127 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0856 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +from .group_0001 import CvssSeverities -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["withdrawn"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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: 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." + 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() ) + 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(WebhookSecurityAdvisoryWithdrawn) +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__ = ("WebhookSecurityAdvisoryWithdrawn",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) 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 a20e03470..51d0a1010 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0856.py @@ -9,135 +9,47 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities - +from .group_0003 import SimpleUser +from .group_0230 import FullRepository +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0857 import WebhookSecurityAndAnalysisPropChanges -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - The details of the security advisory, including summary, description, and - severity. - """ +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( - Field() + changes: WebhookSecurityAndAnalysisPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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: FullRepository = Field( + title="Full Repository", description="Full 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(WebhookSecurityAndAnalysis) -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("WebhookSecurityAndAnalysis",) 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 314a97b10..38844e325 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0857.py @@ -15,41 +15,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0228 import FullRepository -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0858 import WebhookSecurityAndAnalysisPropChanges - - -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" - - changes: WebhookSecurityAndAnalysisPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." +from .group_0858 import WebhookSecurityAndAnalysisPropChangesPropFrom + + +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" + + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) -model_rebuild(WebhookSecurityAndAnalysis) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ("WebhookSecurityAndAnalysis",) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) 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 95bbd4285..dfa8f7c90 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0858.py @@ -9,23 +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_0859 import WebhookSecurityAndAnalysisPropChangesPropFrom +from .group_0177 import SecurityAndAnalysis -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET ) -model_rebuild(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) 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 91689001b..4fce0a0c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0859.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,17 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0175 import SecurityAndAnalysis +from .group_0003 import SimpleUser +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0537 import WebhooksSponsorship -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + 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.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(WebhookSponsorshipCancelled) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("WebhookSponsorshipCancelled",) 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 c01fddcdf..2cbb626ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0860.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0535 import WebhooksSponsorship +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0537 import WebhooksSponsorship -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship created event""" - action: Literal["cancelled"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookSponsorshipCancelled(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSponsorshipCreated) -__all__ = ("WebhookSponsorshipCancelled",) +__all__ = ("WebhookSponsorshipCreated",) 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 1480dfae1..03a545aed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0861.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0535 import WebhooksSponsorship +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0537 import WebhooksSponsorship -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" - action: Literal["created"] = Field() + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +54,29 @@ class WebhookSponsorshipCreated(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipCreated) +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" -__all__ = ("WebhookSponsorshipCreated",) + 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_0862.py b/githubkit/versions/ghec_v2022_11_28/models/group_0862.py index 198124b62..e8aae2437 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0862.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0535 import WebhooksSponsorship +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0537 import WebhooksSponsorship -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() + 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", @@ -54,29 +57,6 @@ class WebhookSponsorshipEdited(GitHubModel): sponsorship: WebhooksSponsorship = Field() -class WebhookSponsorshipEditedPropChanges(GitHubModel): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( - default=UNSET - ) - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str = Field( - alias="from", - description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", - ) - - -model_rebuild(WebhookSponsorshipEdited) -model_rebuild(WebhookSponsorshipEditedPropChanges) -model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) +model_rebuild(WebhookSponsorshipPendingCancellation) -__all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", -) +__all__ = ("WebhookSponsorshipPendingCancellation",) 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 25e924582..acefc7ab4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0863.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0535 import WebhooksSponsorship +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0537 import WebhooksSponsorship +from .group_0538 import WebhooksChanges8 -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" - action: Literal["pending_cancellation"] = Field() + 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.", @@ -57,6 +59,6 @@ class WebhookSponsorshipPendingCancellation(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSponsorshipPendingTierChange) -__all__ = ("WebhookSponsorshipPendingCancellation",) +__all__ = ("WebhookSponsorshipPendingTierChange",) 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 0b8690712..580c35071 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0864.py @@ -18,23 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0535 import WebhooksSponsorship -from .group_0536 import WebhooksChanges8 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0537 import WebhooksSponsorship +from .group_0538 import WebhooksChanges8 -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" - action: Literal["pending_tier_change"] = Field() + action: Literal["tier_changed"] = 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", @@ -59,6 +55,6 @@ class WebhookSponsorshipPendingTierChange(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingTierChange) +model_rebuild(WebhookSponsorshipTierChanged) -__all__ = ("WebhookSponsorshipPendingTierChange",) +__all__ = ("WebhookSponsorshipTierChanged",) 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 a33bb4790..938c2d3ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0865.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0535 import WebhooksSponsorship -from .group_0536 import WebhooksChanges8 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" +class WebhookStarCreated(GitHubModel): + """star created event""" - action: Literal["tier_changed"] = Field() - changes: WebhooksChanges8 = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,15 +43,16 @@ class WebhookSponsorshipTierChanged(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: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + 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(WebhookSponsorshipTierChanged) +model_rebuild(WebhookStarCreated) -__all__ = ("WebhookSponsorshipTierChanged",) +__all__ = ("WebhookStarCreated",) 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 92f632e06..699936c15 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0866.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookStarCreated(GitHubModel): - """star created event""" +class WebhookStarDeleted(GitHubModel): + """star deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,11 +48,11 @@ class WebhookStarCreated(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.") - starred_at: Union[str, None] = Field( + 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(WebhookStarCreated) +model_rebuild(WebhookStarDeleted) -__all__ = ("WebhookStarCreated",) +__all__ = ("WebhookStarDeleted",) 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 50c2be838..0c79b2cac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0867.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,26 +19,37 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookStarDeleted(GitHubModel): - """star deleted event""" +class WebhookStatus(GitHubModel): + """status event""" - action: Literal["deleted"] = Field() + 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." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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", @@ -48,11 +60,192 @@ class WebhookStarDeleted(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.") - 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." + 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(WebhookStarDeleted) +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__ = ("WebhookStarDeleted",) +__all__ = ( + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", +) 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 76c535220..70880c2d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0868.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,234 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookStatus(GitHubModel): - """status event""" + Metaproperties for Git author/committer information. + """ - 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." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook 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() + 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 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(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(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) 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 70880c2d6..edd98c4e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0869.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,18 +16,14 @@ from githubkit.utils import UNSET -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - 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) + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) 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 edd98c4e3..696b079fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0870.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,14 +19,18 @@ from githubkit.utils import UNSET -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: 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) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) 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 696b079fe..74f78d3d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0871.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,18 +16,14 @@ from githubkit.utils import UNSET -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ +class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - 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) + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) 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 74f78d3d5..9fe27f53f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0872.py @@ -9,21 +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 +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0162 import Issue +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks + -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" +class WebhookSubIssuesParentIssueAdded(GitHubModel): + """parent issue added event""" - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + 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: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` 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." + ) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) +model_rebuild(WebhookSubIssuesParentIssueAdded) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +__all__ = ("WebhookSubIssuesParentIssueAdded",) 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 0b0f6ef03..4e25d2ae5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0873.py @@ -19,16 +19,16 @@ from .group_0003 import SimpleUser from .group_0020 import Repository -from .group_0160 import Issue -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0162 import Issue +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookSubIssuesParentIssueAdded(GitHubModel): - """parent issue added event""" +class WebhookSubIssuesParentIssueRemoved(GitHubModel): + """parent issue removed event""" - action: Literal["parent_issue_added"] = Field() + action: Literal["parent_issue_removed"] = Field() parent_issue_id: float = Field(description="The ID of the parent issue.") parent_issue: Issue = Field( title="Issue", @@ -62,6 +62,6 @@ class WebhookSubIssuesParentIssueAdded(GitHubModel): ) -model_rebuild(WebhookSubIssuesParentIssueAdded) +model_rebuild(WebhookSubIssuesParentIssueRemoved) -__all__ = ("WebhookSubIssuesParentIssueAdded",) +__all__ = ("WebhookSubIssuesParentIssueRemoved",) 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 aaa6e4f58..46fc8610d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0874.py @@ -19,26 +19,26 @@ from .group_0003 import SimpleUser from .group_0020 import Repository -from .group_0160 import Issue -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0162 import Issue +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookSubIssuesParentIssueRemoved(GitHubModel): - """parent issue removed event""" +class WebhookSubIssuesSubIssueAdded(GitHubModel): + """sub-issue added event""" - action: Literal["parent_issue_removed"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( + 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.", ) - parent_issue_repo: Repository = Field( + sub_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( + 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.", ) @@ -62,6 +62,6 @@ class WebhookSubIssuesParentIssueRemoved(GitHubModel): ) -model_rebuild(WebhookSubIssuesParentIssueRemoved) +model_rebuild(WebhookSubIssuesSubIssueAdded) -__all__ = ("WebhookSubIssuesParentIssueRemoved",) +__all__ = ("WebhookSubIssuesSubIssueAdded",) 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 dbef21ac7..94ec4328a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0875.py @@ -19,16 +19,16 @@ from .group_0003 import SimpleUser from .group_0020 import Repository -from .group_0160 import Issue -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0162 import Issue +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookSubIssuesSubIssueAdded(GitHubModel): - """sub-issue added event""" +class WebhookSubIssuesSubIssueRemoved(GitHubModel): + """sub-issue removed event""" - action: Literal["sub_issue_added"] = Field() + action: Literal["sub_issue_removed"] = Field() sub_issue_id: float = Field(description="The ID of the sub-issue.") sub_issue: Issue = Field( title="Issue", @@ -62,6 +62,6 @@ class WebhookSubIssuesSubIssueAdded(GitHubModel): ) -model_rebuild(WebhookSubIssuesSubIssueAdded) +model_rebuild(WebhookSubIssuesSubIssueRemoved) -__all__ = ("WebhookSubIssuesSubIssueAdded",) +__all__ = ("WebhookSubIssuesSubIssueRemoved",) 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 e1c76f46a..2ae3133c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0876.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,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0160 import Issue -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0539 import WebhooksTeam1 -class WebhookSubIssuesSubIssueRemoved(GitHubModel): - """sub-issue removed event""" +class WebhookTeamAdd(GitHubModel): + """team_add event""" - 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.", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s 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 +41,17 @@ class WebhookSubIssuesSubIssueRemoved(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.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -model_rebuild(WebhookSubIssuesSubIssueRemoved) +model_rebuild(WebhookTeamAdd) -__all__ = ("WebhookSubIssuesSubIssueRemoved",) +__all__ = ("WebhookTeamAdd",) 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 5ec24bb2c..0293c0ab8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0877.py @@ -9,23 +9,26 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0537 import WebhooksTeam1 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0539 import WebhooksTeam1 -class WebhookTeamAdd(GitHubModel): - """team_add event""" +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" + action: Literal["added_to_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -36,22 +39,220 @@ class WebhookTeamAdd(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." ) - 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) +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) -__all__ = ("WebhookTeamAdd",) +__all__ = ( + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", +) 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 1e48501aa..64719ffa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0878.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0537 import WebhooksTeam1 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0539 import WebhooksTeam1 -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" +class WebhookTeamCreated(GitHubModel): + """team created event""" - action: Literal["added_to_repository"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,19 +43,17 @@ class WebhookTeamAddedToRepository(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[WebhookTeamAddedToRepositoryPropRepository] = Field( + repository: Missing[WebhookTeamCreatedPropRepository] = Field( default=UNSET, title="Repository", description="A git repository" ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + 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 WebhookTeamAddedToRepositoryPropRepository(GitHubModel): +class WebhookTeamCreatedPropRepository(GitHubModel): """Repository A git repository @@ -92,11 +90,11 @@ class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): 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.", + 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( @@ -140,8 +138,8 @@ class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" ) master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() @@ -153,11 +151,9 @@ class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): 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) + 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) @@ -185,8 +181,8 @@ class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): watchers_count: int = Field() -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties +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 @@ -194,7 +190,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHub """ -class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): """License""" key: str = Field() @@ -204,7 +200,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -231,8 +227,8 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -241,18 +237,18 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): 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(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) __all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", ) 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 fc9eef27a..9e21fa3e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0879.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0537 import WebhooksTeam1 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0539 import WebhooksTeam1 -class WebhookTeamCreated(GitHubModel): - """team created event""" +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,17 +43,19 @@ class WebhookTeamCreated(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[WebhookTeamCreatedPropRepository] = Field( + repository: Missing[WebhookTeamDeletedPropRepository] = Field( default=UNSET, title="Repository", description="A git repository" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 WebhookTeamCreatedPropRepository(GitHubModel): +class WebhookTeamDeletedPropRepository(GitHubModel): """Repository A git repository @@ -90,7 +92,7 @@ class WebhookTeamCreatedPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + 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.", @@ -138,7 +140,7 @@ class WebhookTeamCreatedPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( alias="license", title="License" ) master_branch: Missing[str] = Field(default=UNSET) @@ -151,8 +153,8 @@ class WebhookTeamCreatedPropRepository(GitHubModel): 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( + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( default=UNSET ) private: bool = Field(description="Whether the repository is private or public.") @@ -181,8 +183,8 @@ class WebhookTeamCreatedPropRepository(GitHubModel): watchers_count: int = Field() -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties +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 @@ -190,7 +192,7 @@ class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): """ -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): """License""" key: str = Field() @@ -200,7 +202,7 @@ class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -227,8 +229,8 @@ class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -237,18 +239,18 @@ class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): 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(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) __all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", ) 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 b7f218d15..12c35f7f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0880.py @@ -19,16 +19,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0537 import WebhooksTeam1 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0539 import WebhooksTeam1 -class WebhookTeamDeleted(GitHubModel): - """team deleted event""" +class WebhookTeamEdited(GitHubModel): + """team edited event""" - action: Literal["deleted"] = 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", @@ -43,19 +46,17 @@ class WebhookTeamDeleted(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[WebhookTeamDeletedPropRepository] = Field( + repository: Missing[WebhookTeamEditedPropRepository] = Field( default=UNSET, title="Repository", description="A git repository" ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + 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 WebhookTeamDeletedPropRepository(GitHubModel): +class WebhookTeamEditedPropRepository(GitHubModel): """Repository A git repository @@ -92,7 +93,7 @@ class WebhookTeamDeletedPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + 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.", @@ -140,7 +141,7 @@ class WebhookTeamDeletedPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( alias="license", title="License" ) master_branch: Missing[str] = Field(default=UNSET) @@ -153,8 +154,8 @@ class WebhookTeamDeletedPropRepository(GitHubModel): 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( + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( default=UNSET ) private: bool = Field(description="Whether the repository is private or public.") @@ -183,8 +184,8 @@ class WebhookTeamDeletedPropRepository(GitHubModel): watchers_count: int = Field() -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties +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 @@ -192,7 +193,7 @@ class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): """ -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): """License""" key: str = Field() @@ -202,7 +203,7 @@ class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -229,8 +230,8 @@ class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -239,18 +240,120 @@ class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +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(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__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", + "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_0881.py b/githubkit/versions/ghec_v2022_11_28/models/group_0881.py index 68fa4b209..9d0f06f74 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0881.py @@ -19,19 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0537 import WebhooksTeam1 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0539 import WebhooksTeam1 -class WebhookTeamEdited(GitHubModel): - """team edited event""" +class WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." - ) + action: Literal["removed_from_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,7 +43,7 @@ class WebhookTeamEdited(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[WebhookTeamEditedPropRepository] = Field( + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") @@ -56,7 +53,7 @@ class WebhookTeamEdited(GitHubModel): ) -class WebhookTeamEditedPropRepository(GitHubModel): +class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): """Repository A git repository @@ -93,11 +90,11 @@ class WebhookTeamEditedPropRepository(GitHubModel): 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.", - ) + 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( @@ -141,8 +138,8 @@ class WebhookTeamEditedPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") ) master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() @@ -154,10 +151,12 @@ class WebhookTeamEditedPropRepository(GitHubModel): 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 + 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() @@ -184,8 +183,10 @@ class WebhookTeamEditedPropRepository(GitHubModel): watchers_count: int = Field() -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties +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 @@ -193,7 +194,7 @@ class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): """ -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): """License""" key: str = Field() @@ -203,7 +204,7 @@ class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -230,8 +231,8 @@ class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -240,120 +241,18 @@ class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): 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(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(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ) 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 3dd9b0161..9289fde7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0882.py @@ -9,26 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0537 import WebhooksTeam1 +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" +class WebhookWatchStarted(GitHubModel): + """watch started event""" - action: Literal["removed_from_repository"] = Field() + action: Literal["started"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,220 +38,18 @@ class WebhookTeamRemovedFromRepository(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - 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(WebhookWatchStarted) -__all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookWatchStarted",) 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 deb0c3cd2..4339af86c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0883.py @@ -9,30 +9,30 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookWatchStarted(GitHubModel): - """watch started event""" +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch 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)."', ) + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,13 +43,23 @@ 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.", ) + 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() -model_rebuild(WebhookWatchStarted) +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" -__all__ = ("WebhookWatchStarted",) + +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) + +__all__ = ( + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", +) 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 f56fc2bce..ecaad53eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0884.py @@ -9,30 +9,31 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0264 import Deployment +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,23 +44,90 @@ 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() + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: str = Field() + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "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 WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" -class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" + 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() -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) 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 365a662e8..d743e6974 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0885.py @@ -14,62 +14,28 @@ 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_0262 import Deployment -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowJobCompleted(GitHubModel): - """workflow_job completed event""" - - action: Literal["completed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJob""" + 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: str = Field() - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", + 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() @@ -83,34 +49,32 @@ class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): run_attempt: int = Field() run_id: int = Field() run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = 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[Union[str, None], None] = Field( + 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[Union[int, None], None] = 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`." ) - runner_name: Union[Union[str, None], None] = 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`." ) 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." + 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() ) - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" completed_at: Union[str, None] = Field() conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( @@ -122,12 +86,10 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) 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 d743e6974..13bbf03d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0886.py @@ -14,82 +14,64 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -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. - """ - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +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: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[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`." + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - 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`." + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[Union[str, None]]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." ) - 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`." + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." - ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( - Field() - ) - url: str = Field() + steps: Missing[ + list[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(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"] = Field() +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ) 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 13bbf03d1..9e8a28b79 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0887.py @@ -17,61 +17,111 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0264 import Deployment +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -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." + +class WebhookWorkflowJobInProgress(GitHubModel): + """workflow_job 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_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() + ) + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[Union[str, None]]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." + 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`." ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." + 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`." ) - steps: Missing[ - list[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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 WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" + + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ) 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 1e2274097..adebeded4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0888.py @@ -14,55 +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_0003 import SimpleUser -from .group_0262 import Deployment -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job 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_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" + 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[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + 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.") @@ -77,51 +40,47 @@ class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): run_attempt: int = Field() run_id: int = Field() run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = 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[Union[str, None], None] = Field( + 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[Union[int, None], None] = 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`." ) - runner_name: Union[Union[str, None], None] = 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`." ) started_at: str = Field() status: Literal["queued", "in_progress", "completed"] = Field( description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." - ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + 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() ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( Field() ) name: str = Field() number: int = Field() - started_at: Union[Union[str, None], None] = Field() + started_at: Union[str, None] = Field() status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ) 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 adebeded4..b4d62dfca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0889.py @@ -14,73 +14,61 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - 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[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() - 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`." + 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." ) - 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_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." ) - 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`." + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - 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] = ( + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( Field() ) - url: str = Field() + url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): """Workflow Step""" completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + conclusion: Union[str, None] = Field() name: str = Field() number: int = Field() started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ) 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 b4d62dfca..3f2487f7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0890.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,58 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0264 import Deployment +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 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 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)."', ) - 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.", + ) + 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", ) - url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" +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["in_progress", "completed", "pending", "queued"] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ) 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 f3e3c3ef6..47cc94069 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0891.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0262 import Deployment -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0264 import Deployment +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" - action: Literal["queued"] = Field() + action: Literal["waiting"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,7 +50,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: WebhookWorkflowJobWaitingPropWorkflowJob = Field() deployment: Missing[Deployment] = Field( default=UNSET, title="Deployment", @@ -58,8 +58,8 @@ class WebhookWorkflowJobQueued(GitHubModel): ) -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" check_run_url: str = Field() completed_at: Union[str, None] = Field() @@ -79,14 +79,14 @@ class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): 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() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() url: str = Field() -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): """Workflow Step""" completed_at: Union[str, None] = Field() @@ -96,15 +96,17 @@ 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["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() + ) -model_rebuild(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) __all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ) 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 30054f2d8..f6dc99815 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0892.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0262 import Deployment -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0497 import WebhooksWorkflow -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" - action: Literal["waiting"] = Field() + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,63 +50,456 @@ 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() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" ) -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" - 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.") + 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() - labels: list[str] = Field() - name: str = 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_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() + 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 WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" +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) - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + +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() ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + 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() -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) + +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(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__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", + "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_0893.py b/githubkit/versions/ghec_v2022_11_28/models/group_0893.py index eaa26ff94..fbfdc09da 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0893.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0495 import WebhooksWorkflow +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0497 import WebhooksWorkflow -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" - action: Literal["completed"] = Field() + action: Literal["in_progress"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,15 +51,15 @@ class WebhookWorkflowRunCompleted(GitHubModel): ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( title="Workflow Run" ) -class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): """Workflow Run""" - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: str = Field() @@ -78,16 +78,15 @@ class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): "stale", "success", "timed_out", - "startup_failure", ], ] = Field() created_at: datetime = Field() event: str = Field() head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( title="SimpleCommit" ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( Field(title="Repository Lite") ) head_sha: str = Field() @@ -100,40 +99,36 @@ class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): path: str = Field() previous_attempt_url: Union[str, None] = Field() pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] ] = Field() referenced_workflows: Missing[ Union[ list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + 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", "waiting" - ] = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, 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): +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -157,20 +152,19 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(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 WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -194,21 +188,18 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(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 WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): """SimpleCommit""" - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( title="Committer", description="Metaproperties for Git author/committer information.", ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( - 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() @@ -216,7 +207,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): tree_id: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): """Committer Metaproperties for Git author/committer information. @@ -228,7 +219,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubM username: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( GitHubModel ): """Committer @@ -242,7 +233,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( username: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): """Repository Lite""" archive_url: str = Field() @@ -276,11 +267,11 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): languages_url: str = Field() merges_url: str = Field() milestones_url: str = Field() - name: str = Field(description="The name of the repository.") + name: Union[str, None] = Field(description="The name of the repository.") node_id: str = Field() notifications_url: str = Field() owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None ] = Field(title="User") private: bool = Field(description="Whether the repository is private or public.") pulls_url: str = Field() @@ -295,7 +286,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): """User""" @@ -321,10 +312,9 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( subscriptions_url: Missing[str] = Field(default=UNSET) 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): +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): """Repository Lite""" archive_url: str = Field() @@ -362,7 +352,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): node_id: str = Field() notifications_url: str = Field() owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None ] = Field(title="User") private: bool = Field(description="Whether the repository is private or public.") pulls_url: str = Field() @@ -377,7 +367,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -401,16 +391,15 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubMo subscriptions_url: Missing[str] = Field(default=UNSET) 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""" +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( Field() ) - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( Field() ) id: int = Field() @@ -418,19 +407,19 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubMode url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -440,19 +429,19 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePro url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -462,44 +451,44 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPro 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(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( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "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_0894.py b/githubkit/versions/ghec_v2022_11_28/models/group_0894.py index 0237ace88..db30d0fe6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0894.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0495 import WebhooksWorkflow +from .group_0487 import EnterpriseWebhooks +from .group_0488 import SimpleInstallation +from .group_0489 import OrganizationSimpleWebhooks +from .group_0490 import RepositoryWebhooks +from .group_0497 import WebhooksWorkflow -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" - action: Literal["in_progress"] = Field() + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,15 +51,15 @@ class WebhookWorkflowRunInProgress(GitHubModel): ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( title="Workflow Run" ) -class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): """Workflow Run""" - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: str = Field() @@ -70,23 +70,24 @@ class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): conclusion: Union[ None, Literal[ - "action_required", - "cancelled", + "success", "failure", "neutral", - "skipped", - "stale", - "success", + "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: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( title="SimpleCommit" ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( Field(title="Repository Lite") ) head_sha: str = Field() @@ -99,36 +100,37 @@ class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): path: str = Field() previous_attempt_url: Union[str, None] = Field() pull_requests: list[ - Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + 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"] = ( - Field() - ) + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + 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 WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -152,19 +154,20 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(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 WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,18 +191,21 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(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 WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): """SimpleCommit""" - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( title="Committer", description="Metaproperties for Git author/committer information.", ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = 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() @@ -207,7 +213,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): tree_id: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): """Committer Metaproperties for Git author/committer information. @@ -219,7 +225,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHub username: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( GitHubModel ): """Committer @@ -233,7 +239,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( username: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): """Repository Lite""" archive_url: str = Field() @@ -267,11 +273,11 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel) languages_url: str = Field() merges_url: str = Field() milestones_url: str = Field() - name: Union[str, None] = Field(description="The name of the repository.") + name: str = Field(description="The name of the repository.") node_id: str = Field() notifications_url: str = Field() owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None ] = Field(title="User") private: bool = Field(description="Whether the repository is private or public.") pulls_url: str = Field() @@ -286,7 +292,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel) url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): """User""" @@ -312,9 +318,10 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): """Repository Lite""" archive_url: str = Field() @@ -352,7 +359,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): node_id: str = Field() notifications_url: str = Field() owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None ] = Field(title="User") private: bool = Field(description="Whether the repository is private or public.") pulls_url: str = Field() @@ -367,7 +374,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -391,15 +398,16 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubM subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( Field() ) - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( Field() ) id: int = Field() @@ -407,19 +415,19 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubMod url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -429,19 +437,19 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePr url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -451,44 +459,44 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPr 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(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( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "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_0895.py b/githubkit/versions/ghec_v2022_11_28/models/group_0895.py index 0948b8ee1..3657b60e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0895.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,484 +19,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0485 import EnterpriseWebhooks -from .group_0486 import SimpleInstallation -from .group_0487 import OrganizationSimpleWebhooks -from .group_0488 import RepositoryWebhooks -from .group_0495 import WebhooksWorkflow +from .group_0008 import Enterprise +from .group_0009 import IntegrationPropPermissions -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - 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.", + 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: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() + client_id: str = Field() + owner: Union[SimpleUser, Enterprise] = Field() + name: str = Field(description="The name of the GitHub app") 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() + external_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() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + events: list[str] = Field( + description="The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation." ) - 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" + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.", ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = 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(AppManifestsCodeConversionsPostResponse201) -__all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) 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 3657b60e5..d16ddbf37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0896.py @@ -9,51 +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 githubkit.compat import ExtraGitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0008 import Enterprise -from .group_0009 import IntegrationPropPermissions +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" -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" - ) - node_id: str = Field() client_id: str = Field() - owner: Union[SimpleUser, Enterprise] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() - html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" - ) - events: list[str] = Field( - description="The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation." - ) - installations_count: Missing[int] = Field( - default=UNSET, - description="The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.", - ) client_secret: str = Field() webhook_secret: Union[str, None] = Field() pem: str = Field() -model_rebuild(AppManifestsCodeConversionsPostResponse201) +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("AppManifestsCodeConversionsPostResponse201",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) 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 d16ddbf37..079d8ad9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0897.py @@ -13,18 +13,28 @@ 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 AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: 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/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) +model_rebuild(AppHookConfigPatchBody) -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) +__all__ = ("AppHookConfigPatchBody",) 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 079d8ad9e..406984575 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0898.py @@ -9,32 +9,13 @@ 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 AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" - 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) +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" -model_rebuild(AppHookConfigPatchBody) +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) 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 406984575..90930f652 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0899.py @@ -9,13 +9,33 @@ 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_0017 import AppPermissions + +class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): + """AppInstallationsInstallationIdAccessTokensPostBody""" -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + 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(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) 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 90930f652..33e9e3dcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0900.py @@ -12,30 +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_0017 import AppPermissions +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" - - 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.", + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(ApplicationsClientIdGrantDeleteBody) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) 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 33e9e3dcc..13773092a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0901.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(ApplicationsClientIdGrantDeleteBody) +model_rebuild(ApplicationsClientIdTokenPostBody) -__all__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ("ApplicationsClientIdTokenPostBody",) 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 13773092a..585475cf4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0902.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(ApplicationsClientIdTokenPostBody) +model_rebuild(ApplicationsClientIdTokenDeleteBody) -__all__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) 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 585475cf4..a2c5766c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0903.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ("ApplicationsClientIdTokenPatchBody",) 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 a2c5766c1..86bfc32e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0904.py @@ -12,16 +12,41 @@ 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 ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" + +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + 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(ApplicationsClientIdTokenPatchBody) +model_rebuild(ApplicationsClientIdTokenScopedPostBody) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) 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 86bfc32e8..b92fcfb34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0905.py @@ -11,42 +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_0017 import AppPermissions +class CredentialsRevokePostBody(GitHubModel): + """CredentialsRevokePostBody""" -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.", + credentials: list[str] = Field( + max_length=1000 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="A list of credentials to be revoked, up to 1000 per request.", ) -model_rebuild(ApplicationsClientIdTokenScopedPostBody) +model_rebuild(CredentialsRevokePostBody) -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) +__all__ = ("CredentialsRevokePostBody",) 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 b92fcfb34..152fcb757 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0906.py @@ -9,21 +9,13 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -class CredentialsRevokePostBody(GitHubModel): - """CredentialsRevokePostBody""" - credentials: list[str] = Field( - max_length=1000 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="A list of credentials to be revoked, up to 1000 per request.", - ) +model_rebuild(EmojisGetResponse200) - -model_rebuild(CredentialsRevokePostBody) - -__all__ = ("CredentialsRevokePostBody",) +__all__ = ("EmojisGetResponse200",) 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 152fcb757..5e18b232e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0907.py @@ -9,13 +9,20 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +from .group_0031 import ActionsHostedRunner -model_rebuild(EmojisGetResponse200) +class EnterprisesEnterpriseActionsHostedRunnersGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" -__all__ = ("EmojisGetResponse200",) + total_count: int = Field() + runners: list[ActionsHostedRunner] = Field() + + +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",) 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 5e18b232e..b53e297d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0908.py @@ -9,20 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class EnterprisesEnterpriseActionsHostedRunnersPostBody(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersPostBody""" + + name: str = Field( + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage = Field( + description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." + ) + size: str = Field( + description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" + ) + runner_group_id: int = Field( + description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) -from .group_0031 import ActionsHostedRunner +class EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage -class EnterprisesEnterpriseActionsHostedRunnersGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ - total_count: int = Field() - runners: list[ActionsHostedRunner] = Field() + id: Missing[str] = Field( + default=UNSET, description="The unique identifier of the runner image." + ) + source: Missing[Literal["github", "partner", "custom"]] = Field( + default=UNSET, description="The source of the runner image." + ) -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersGetResponse200) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBody) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage) -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",) +__all__ = ( + "EnterprisesEnterpriseActionsHostedRunnersPostBody", + "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage", +) 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 b53e297d4..05553deae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0909.py @@ -9,59 +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 EnterprisesEnterpriseActionsHostedRunnersPostBody(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersPostBody""" - - name: str = Field( - description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." - ) - image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage = Field( - description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." - ) - size: str = Field( - description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" - ) - runner_group_id: int = Field( - description="The existing runner group to add this runner to." - ) - maximum_runners: Missing[int] = Field( - default=UNSET, - description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", - ) - enable_static_ip: Missing[bool] = Field( - default=UNSET, - description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", - ) +from .group_0032 import ActionsHostedRunnerImage -class EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ +class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" - 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." - ) + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBody) -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200) -__all__ = ( - "EnterprisesEnterpriseActionsHostedRunnersPostBody", - "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage", -) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200",) 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 05553deae..419602af1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0910.py @@ -16,15 +16,13 @@ from .group_0032 import ActionsHostedRunnerImage -class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" total_count: int = Field() images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200",) 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 419602af1..50ac5a63e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0911.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import ActionsHostedRunnerImage +from .group_0030 import ActionsHostedRunnerMachineSpec -class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" total_count: int = Field() - images: list[ActionsHostedRunnerImage] = Field() + machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200",) 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 50ac5a63e..9f79be98b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0912.py @@ -13,16 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0030 import ActionsHostedRunnerMachineSpec - -class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" total_count: int = Field() - machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() + platforms: list[str] = Field() -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200",) 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 9f79be98b..96996b89a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0913.py @@ -12,15 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" - total_count: int = Field() - platforms: list[str] = Field() + 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`", + ) -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody) -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody",) 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 96996b89a..2f0e6146f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0914.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,18 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" +class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsPutBody""" - 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.", + enabled_organizations: Literal["all", "none", "selected"] = Field( + description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." ) - enable_static_ip: Missing[bool] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody) +model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) 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 2f0e6146f..06a7c0feb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0915.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0036 import OrganizationSimple -class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsPutBody""" +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" - enabled_organizations: Literal["all", "none", "selected"] = Field( - description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + total_count: float = Field() + organizations: list[OrganizationSimple] = Field() -model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) 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 06a7c0feb..1025d71f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0916.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0036 import OrganizationSimple +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + selected_organization_ids: list[int] = Field( + description="List of organization IDs to enable for GitHub Actions." + ) - total_count: float = Field() - organizations: list[OrganizationSimple] = Field() +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) -model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) 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 1025d71f1..e550b1314 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0917.py @@ -12,16 +12,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" - selected_organization_ids: list[int] = Field( - description="List of organization IDs to enable for GitHub Actions." + total_count: float = Field() + runner_groups: list[RunnerGroupsEnterprise] = Field() + + +class RunnerGroupsEnterprise(GitHubModel): + """RunnerGroupsEnterprise""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_organizations_url: Missing[str] = Field(default=UNSET) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) -model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsEnterprise) -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", + "RunnerGroupsEnterprise", +) 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 e550b1314..5e59c6951 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0918.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,24 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" - - total_count: float = Field() - runner_groups: list[RunnerGroupsEnterprise] = Field() - - -class RunnerGroupsEnterprise(GitHubModel): - """RunnerGroupsEnterprise""" +class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" - 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( + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all"]] = Field( default=UNSET, - description="The identifier of a hosted compute network configuration.", + description="Visibility of a runner group. You can select all organizations or select individual organization.", ) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( + selected_organization_ids: Missing[list[int]] = Field( default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + 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, @@ -50,12 +45,12 @@ class RunnerGroupsEnterprise(GitHubModel): 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(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsEnterprise) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", - "RunnerGroupsEnterprise", -) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) 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 5e59c6951..628671205 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0919.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,20 +18,13 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" - name: str = Field(description="Name of the runner group.") + 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 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." + description="Visibility of a runner group. You can select all organizations or select individual organizations.", ) allows_public_repositories: Missing[bool] = Field( default=UNSET, @@ -45,12 +38,12 @@ class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): 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( + network_configuration_id: Missing[Union[str, None]] = Field( default=UNSET, description="The identifier of a hosted compute network configuration.", ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody",) 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 628671205..76aa728f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0920.py @@ -9,41 +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 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",) + +from .group_0036 import OrganizationSimple + + +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + + total_count: float = Field() + organizations: list[OrganizationSimple] = Field() + + +model_rebuild( + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 +) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", +) 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 76aa728f2..34f034b51 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0921.py @@ -13,22 +13,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0036 import OrganizationSimple - -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( GitHubModel ): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" - total_count: float = Field() - organizations: list[OrganizationSimple] = Field() + selected_organization_ids: list[int] = Field( + description="List of organization IDs that can access the runner group." + ) -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 -) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", -) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) 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 34f034b51..4751b0e30 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0922.py @@ -13,17 +13,22 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0041 import Runner -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( + +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( GitHubModel ): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - selected_organization_ids: list[int] = Field( - description="List of organization IDs that can access the runner group." - ) + total_count: float = Field() + runners: list[Runner] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) +model_rebuild( + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 +) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", +) 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 4751b0e30..c5005fa9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0923.py @@ -13,22 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0041 import Runner +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + runners: list[int] = Field( + description="List of runner IDs to add to the runner group." + ) - total_count: float = Field() - runners: list[Runner] = Field() +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 -) - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", -) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) 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 c5005fa9d..42ed3cde9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0924.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 +from .group_0041 import Runner -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] = Field( - description="List of runner IDs to add to the runner group." - ) +class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" + total_count: Missing[float] = Field(default=UNSET) + runners: Missing[list[Runner]] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) 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 42ed3cde9..734cf9ee8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0925.py @@ -11,20 +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_0041 import Runner +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" -class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" + 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: Missing[float] = Field(default=UNSET) - runners: Missing[list[Runner]] = Field(default=UNSET) +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) -model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) 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 734cf9ee8..38753538e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0926.py @@ -11,29 +11,22 @@ 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_0041 import Runner -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.", +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." ) -model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) 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 38753538e..c41f2ae70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0927.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0041 import Runner +from .group_0040 import RunnerLabel -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" - ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." - ) + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) 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 c41f2ae70..154a08888 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0928.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_0040 import RunnerLabel +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) - total_count: int = Field() - labels: list[RunnerLabel] = Field() +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) 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 154a08888..222d888ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0929.py @@ -14,15 +14,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" 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.", + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) 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 222d888ed..28ab5bcf9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0930.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_0040 import RunnerLabel -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 EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) + +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) 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 28ab5bcf9..1078a9238 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0931.py @@ -9,20 +9,29 @@ from __future__ import annotations -from pydantic import Field +from typing import Literal -from githubkit.compat import GitHubModel, model_rebuild +from pydantic import Field -from .group_0040 import RunnerLabel +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" +class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody(GitHubModel): + """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody""" - total_count: int = Field() - labels: list[RunnerLabel] = Field() + client_id: str = Field(description="The Client ID of the GitHub App to install.") + repository_selection: Literal["all", "selected", "none"] = Field( + description="The repository selection for the GitHub App. Must be one of:\n* `all` - the installation can access all repositories in the organization.\n* `selected` - the installation can access only the listed repositories.\n* `none` - no repository permissions are requested. Only use when the app does not request repository permissions." + ) + repositories: Missing[list[str]] = Field( + max_length=50 if PYDANTIC_V2 else None, + default=UNSET, + description="The names of the repositories to which the installation will be granted access. This is the simple name of the repository, not the full name (e.g., `hello-world` not `octocat/hello-world`). This is only required when `repository_selection` is `selected`.", + ) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) +model_rebuild(EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) +__all__ = ("EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody",) 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 1078a9238..bff983c66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0932.py @@ -18,20 +18,27 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody(GitHubModel): - """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody""" - - client_id: str = Field(description="The Client ID of the GitHub App to install.") - repository_selection: Literal["all", "selected", "none"] = Field( - description="The repository selection for the GitHub App. Must be one of:\n* `all` - the installation can access all repositories in the organization.\n* `selected` - the installation can access only the listed repositories.\n* `none` - no repository permissions are requested. Only use when the app does not request repository permissions." +class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBody( + GitHubModel +): + """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositories + PatchBody + """ + + repository_selection: Literal["all", "selected"] = Field( + description="One of either 'all' or 'selected'" ) repositories: Missing[list[str]] = Field( max_length=50 if PYDANTIC_V2 else None, default=UNSET, - description="The names of the repositories to which the installation will be granted access. This is the simple name of the repository, not the full name (e.g., `hello-world` not `octocat/hello-world`). This is only required when `repository_selection` is `selected`.", + description="The repository names to add to the installation. Only required when repository_selection is 'selected'", ) -model_rebuild(EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody) +model_rebuild( + EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBody +) -__all__ = ("EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody",) +__all__ = ( + "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBody", +) 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 bff983c66..078760186 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0933.py @@ -9,36 +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.typing import Missing -from githubkit.utils import UNSET -class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBody( +class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBody( GitHubModel ): """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositories - PatchBody + AddPatchBody """ - repository_selection: Literal["all", "selected"] = Field( - description="One of either 'all' or 'selected'" - ) - repositories: Missing[list[str]] = Field( + repositories: list[str] = Field( max_length=50 if PYDANTIC_V2 else None, - default=UNSET, - description="The repository names to add to the installation. Only required when repository_selection is 'selected'", + description="The repository names to add to the installation.", ) model_rebuild( - EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBody + EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBody ) __all__ = ( - "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBody", + "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBody", ) 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 078760186..534db10e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0934.py @@ -14,23 +14,23 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBody( +class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBody( GitHubModel ): """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositories - AddPatchBody + RemovePatchBody """ repositories: list[str] = Field( max_length=50 if PYDANTIC_V2 else None, - description="The repository names to add to the installation.", + description="The repository names to remove from the installation.", ) model_rebuild( - EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBody + EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBody ) __all__ = ( - "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBody", + "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBody", ) 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 534db10e6..320c9df1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0935.py @@ -9,28 +9,50 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from typing import Literal, Union +from pydantic import Field -class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBody( - GitHubModel -): - """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositories - RemovePatchBody - """ +from githubkit.compat import GitHubModel, model_rebuild - repositories: list[str] = Field( - max_length=50 if PYDANTIC_V2 else None, - description="The repository names to remove from the installation.", +from .group_0052 import ( + AmazonS3AccessKeysConfig, + AzureBlobConfig, + AzureHubConfig, + DatadogConfig, + HecConfig, +) +from .group_0053 import AmazonS3OidcConfig, SplunkConfig +from .group_0054 import GoogleCloudConfig + + +class EnterprisesEnterpriseAuditLogStreamsPostBody(GitHubModel): + """EnterprisesEnterpriseAuditLogStreamsPostBody""" + + enabled: bool = Field(description="This setting pauses or resumes a stream.") + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", + ] = Field( + description="The audit log streaming provider. The name is case sensitive." ) + vendor_specific: Union[ + AzureBlobConfig, + AzureHubConfig, + AmazonS3OidcConfig, + AmazonS3AccessKeysConfig, + SplunkConfig, + HecConfig, + GoogleCloudConfig, + DatadogConfig, + ] = Field() -model_rebuild( - EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBody -) +model_rebuild(EnterprisesEnterpriseAuditLogStreamsPostBody) -__all__ = ( - "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBody", -) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBody",) 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 320c9df1a..9255f352e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0936.py @@ -26,8 +26,8 @@ from .group_0054 import GoogleCloudConfig -class EnterprisesEnterpriseAuditLogStreamsPostBody(GitHubModel): - """EnterprisesEnterpriseAuditLogStreamsPostBody""" +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody(GitHubModel): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" enabled: bool = Field(description="This setting pauses or resumes a stream.") stream_type: Literal[ @@ -53,6 +53,6 @@ class EnterprisesEnterpriseAuditLogStreamsPostBody(GitHubModel): ] = Field() -model_rebuild(EnterprisesEnterpriseAuditLogStreamsPostBody) +model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody) -__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBody",) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",) 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 9255f352e..7d7c33f16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0937.py @@ -9,50 +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 + + +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422(GitHubModel): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" + + errors: Missing[list[str]] = Field(default=UNSET) + + +model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422) -from .group_0052 import ( - AmazonS3AccessKeysConfig, - AzureBlobConfig, - AzureHubConfig, - DatadogConfig, - HecConfig, -) -from .group_0053 import AmazonS3OidcConfig, SplunkConfig -from .group_0054 import GoogleCloudConfig - - -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody(GitHubModel): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" - - enabled: bool = Field(description="This setting pauses or resumes a stream.") - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] = Field( - description="The audit log streaming provider. The name is case sensitive." - ) - vendor_specific: Union[ - AzureBlobConfig, - AzureHubConfig, - AmazonS3OidcConfig, - AmazonS3AccessKeysConfig, - SplunkConfig, - HecConfig, - GoogleCloudConfig, - DatadogConfig, - ] = Field() - - -model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody) - -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",) 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 7d7c33f16..44749ade7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0938.py @@ -16,12 +16,14 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422(GitHubModel): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" - errors: Missing[list[str]] = Field(default=UNSET) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422) +model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",) +__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) 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 44749ade7..df8684b69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0939.py @@ -9,21 +9,149 @@ 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_0064 import CodeScanningOptions +from .group_0065 import CodeScanningDefaultSetupOptions + + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the enterprise." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.\n\n> [!WARNING]\n> `code_security` and `secret_protection` are deprecated values for this field. Prefer the individual `code_security` and `secret_protection` fields to set the status of these features.\n", + ) + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Code Security features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_options: Missing[Union[CodeScanningOptions, None]] = Field( + default=UNSET, + description="Security Configuration feature options for code scanning", + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Secret Protection features.", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" + Feature options for Automatic dependency submission + """ - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) -model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", +) 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 a017f847a..e0e8592a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0940.py @@ -17,23 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0064 import CodeScanningDefaultSetupOptions +from .group_0065 import CodeScanningDefaultSetupOptions -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - name: str = Field( - description="The name of the code security configuration. Must be unique within the enterprise." + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique across the enterprise.", ) - description: str = Field( - max_length=255, description="A description of the code security configuration" + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", ) advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = Field( default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.\n\n> [!WARNING]\n> `code_security` and `secret_protection` are deprecated values for this field. Prefer the individual `code_security` and `secret_protection` fields to set the status of these features.\n", + ) + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Code Security features.", ) dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( default=UNSET, description="The enablement status of Dependency Graph" @@ -45,7 +54,7 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): description="The enablement status of Automatic dependency submission", ) dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions ] = Field( default=UNSET, description="Feature options for Automatic dependency submission" ) @@ -75,6 +84,10 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): default=UNSET, description="The enablement status of code scanning delegated alert dismissal", ) + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Secret Protection features.", + ) secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( default=UNSET, description="The enablement status of secret scanning" ) @@ -94,7 +107,7 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): Literal["enabled", "disabled", "not_set"] ] = Field( default=UNSET, - description="The enablement status of secret scanning non provider patterns", + description="The enablement status of secret scanning non-provider patterns", ) secret_scanning_generic_secrets: Missing[ Literal["enabled", "disabled", "not_set"] @@ -118,11 +131,11 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): ) -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions Feature options for Automatic dependency submission """ @@ -133,12 +146,12 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraph ) -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions ) __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ) 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 74b26072e..e3ab1c255 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0941.py @@ -9,141 +9,27 @@ 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_0064 import CodeScanningDefaultSetupOptions - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique across the enterprise.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + scope: Literal["all", "all_without_configurations"] = Field( + description="The type of repositories to attach the configuration to." ) -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody ) __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ) 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 e3ab1c255..d990f81b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0942.py @@ -14,22 +14,27 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - scope: Literal["all", "all_without_configurations"] = Field( - description="The type of repositories to attach the configuration to." + 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( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody ) __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ) 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 d990f81b8..f8540497c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0943.py @@ -17,24 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0063 import CodeSecurityConfiguration -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ 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.", + 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( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 ) __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ) 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 f8540497c..70b92e1f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0944.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,31 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0063 import CodeSecurityConfiguration +class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ - - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( + 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="Specifies which types of repository this security configuration is applied to by default.", + 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)."', ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + 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( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 -) +model_rebuild(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", -) +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) 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 70b92e1f5..dbf024561 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0945.py @@ -9,50 +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_0072 import CopilotSeatDetails -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( +class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200(GitHubModel): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" + + total_seats: Missing[int] = Field( default=UNSET, - description="Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", + 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(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) +model_rebuild(EnterprisesEnterpriseCopilotBillingSeatsGetResponse200) -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",) 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 8c74090ec..007c71800 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0946.py @@ -15,19 +15,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0071 import CopilotSeatDetails +from .group_0072 import CopilotSeatDetails -class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200(GitHubModel): - """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" +class EnterprisesEnterpriseMembersUsernameCopilotGetResponse200(GitHubModel): + """EnterprisesEnterpriseMembersUsernameCopilotGetResponse200""" 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.", + description="The total number of Copilot seats the enterprise is being billed for. Users with access through enterprise, enterprise teams or multiple organizations are only counted once.", ) seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseCopilotBillingSeatsGetResponse200) +model_rebuild(EnterprisesEnterpriseMembersUsernameCopilotGetResponse200) -__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",) +__all__ = ("EnterprisesEnterpriseMembersUsernameCopilotGetResponse200",) 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 b044c5406..5d2cd760b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0947.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_0071 import CopilotSeatDetails +from .group_0080 import NetworkConfiguration -class EnterprisesEnterpriseMembersUsernameCopilotGetResponse200(GitHubModel): - """EnterprisesEnterpriseMembersUsernameCopilotGetResponse200""" +class EnterprisesEnterpriseNetworkConfigurationsGetResponse200(GitHubModel): + """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" - total_seats: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot seats the enterprise is being billed for. Users with access through enterprise, enterprise teams or multiple organizations are only counted once.", - ) - seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) + total_count: int = Field() + network_configurations: list[NetworkConfiguration] = Field() -model_rebuild(EnterprisesEnterpriseMembersUsernameCopilotGetResponse200) +model_rebuild(EnterprisesEnterpriseNetworkConfigurationsGetResponse200) -__all__ = ("EnterprisesEnterpriseMembersUsernameCopilotGetResponse200",) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",) 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 9f1a13efe..5ea5ada2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0948.py @@ -9,20 +9,32 @@ from __future__ import annotations -from pydantic import Field +from typing import Literal -from githubkit.compat import GitHubModel, model_rebuild +from pydantic import Field -from .group_0079 import NetworkConfiguration +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseNetworkConfigurationsGetResponse200(GitHubModel): - """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" +class EnterprisesEnterpriseNetworkConfigurationsPostBody(GitHubModel): + """EnterprisesEnterpriseNetworkConfigurationsPostBody""" - total_count: int = Field() - network_configurations: list[NetworkConfiguration] = 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="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(EnterprisesEnterpriseNetworkConfigurationsGetResponse200) +model_rebuild(EnterprisesEnterpriseNetworkConfigurationsPostBody) -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBody",) 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 5ea5ada2b..86c037245 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0949.py @@ -18,23 +18,26 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseNetworkConfigurationsPostBody(GitHubModel): - """EnterprisesEnterpriseNetworkConfigurationsPostBody""" +class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody( + GitHubModel +): + """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" - 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 `_`." + 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: list[str] = Field( + network_settings_ids: Missing[list[str]] = Field( max_length=1 if PYDANTIC_V2 else None, - min_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(EnterprisesEnterpriseNetworkConfigurationsPostBody) +model_rebuild(EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody) -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBody",) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody",) 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 86c037245..044b2e8e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0950.py @@ -9,35 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0082 import CustomProperty -class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody( - GitHubModel -): - """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" - 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.", +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(EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody) +model_rebuild(EnterprisesEnterprisePropertiesSchemaPatchBody) -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody",) +__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBody",) 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 cea982182..5beaa3784 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0951.py @@ -9,23 +9,97 @@ 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_0081 import CustomProperty +from .group_0084 import RepositoryRulesetBypassActor +from .group_0095 import EnterpriseRulesetConditionsOneof0 +from .group_0096 import EnterpriseRulesetConditionsOneof1 +from .group_0097 import EnterpriseRulesetConditionsOneof2 +from .group_0098 import EnterpriseRulesetConditionsOneof3 +from .group_0099 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0100 import RepositoryRuleUpdate +from .group_0102 import RepositoryRuleRequiredLinearHistory +from .group_0103 import RepositoryRuleRequiredDeployments +from .group_0106 import RepositoryRulePullRequest +from .group_0108 import RepositoryRuleRequiredStatusChecks +from .group_0110 import RepositoryRuleCommitMessagePattern +from .group_0112 import RepositoryRuleCommitAuthorEmailPattern +from .group_0114 import RepositoryRuleCommitterEmailPattern +from .group_0116 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleTagNamePattern +from .group_0120 import RepositoryRuleFilePathRestriction +from .group_0122 import RepositoryRuleMaxFilePathLength +from .group_0124 import RepositoryRuleFileExtensionRestriction +from .group_0126 import RepositoryRuleMaxFileSize +from .group_0129 import RepositoryRuleWorkflows +from .group_0131 import RepositoryRuleCodeScanning -class EnterprisesEnterprisePropertiesSchemaPatchBody(GitHubModel): - """EnterprisesEnterprisePropertiesSchemaPatchBody""" +class EnterprisesEnterpriseRulesetsPostBody(GitHubModel): + """EnterprisesEnterpriseRulesetsPostBody""" - 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 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.", ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(EnterprisesEnterprisePropertiesSchemaPatchBody) +model_rebuild(EnterprisesEnterpriseRulesetsPostBody) -__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBody",) +__all__ = ("EnterprisesEnterpriseRulesetsPostBody",) 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 ba43bb76e..a13331c3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0952.py @@ -17,45 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0083 import RepositoryRulesetBypassActor -from .group_0094 import EnterpriseRulesetConditionsOneof0 -from .group_0095 import EnterpriseRulesetConditionsOneof1 -from .group_0096 import EnterpriseRulesetConditionsOneof2 -from .group_0097 import EnterpriseRulesetConditionsOneof3 -from .group_0098 import ( +from .group_0084 import RepositoryRulesetBypassActor +from .group_0095 import EnterpriseRulesetConditionsOneof0 +from .group_0096 import EnterpriseRulesetConditionsOneof1 +from .group_0097 import EnterpriseRulesetConditionsOneof2 +from .group_0098 import EnterpriseRulesetConditionsOneof3 +from .group_0099 import ( RepositoryRuleCreation, RepositoryRuleDeletion, RepositoryRuleNonFastForward, RepositoryRuleRequiredSignatures, ) -from .group_0099 import RepositoryRuleUpdate -from .group_0101 import RepositoryRuleRequiredLinearHistory -from .group_0102 import RepositoryRuleMergeQueue -from .group_0104 import RepositoryRuleRequiredDeployments -from .group_0107 import RepositoryRulePullRequest -from .group_0109 import RepositoryRuleRequiredStatusChecks -from .group_0111 import RepositoryRuleCommitMessagePattern -from .group_0113 import RepositoryRuleCommitAuthorEmailPattern -from .group_0115 import RepositoryRuleCommitterEmailPattern -from .group_0117 import RepositoryRuleBranchNamePattern -from .group_0119 import RepositoryRuleTagNamePattern -from .group_0121 import RepositoryRuleFilePathRestriction -from .group_0123 import RepositoryRuleMaxFilePathLength -from .group_0125 import RepositoryRuleFileExtensionRestriction -from .group_0127 import RepositoryRuleMaxFileSize -from .group_0130 import RepositoryRuleWorkflows -from .group_0132 import RepositoryRuleCodeScanning +from .group_0100 import RepositoryRuleUpdate +from .group_0102 import RepositoryRuleRequiredLinearHistory +from .group_0103 import RepositoryRuleRequiredDeployments +from .group_0106 import RepositoryRulePullRequest +from .group_0108 import RepositoryRuleRequiredStatusChecks +from .group_0110 import RepositoryRuleCommitMessagePattern +from .group_0112 import RepositoryRuleCommitAuthorEmailPattern +from .group_0114 import RepositoryRuleCommitterEmailPattern +from .group_0116 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleTagNamePattern +from .group_0120 import RepositoryRuleFilePathRestriction +from .group_0122 import RepositoryRuleMaxFilePathLength +from .group_0124 import RepositoryRuleFileExtensionRestriction +from .group_0126 import RepositoryRuleMaxFileSize +from .group_0129 import RepositoryRuleWorkflows +from .group_0131 import RepositoryRuleCodeScanning -class EnterprisesEnterpriseRulesetsPostBody(GitHubModel): - """EnterprisesEnterpriseRulesetsPostBody""" +class EnterprisesEnterpriseRulesetsRulesetIdPutBody(GitHubModel): + """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" - name: str = Field(description="The name of the ruleset.") + 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: 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." + 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, @@ -80,7 +80,6 @@ class EnterprisesEnterpriseRulesetsPostBody(GitHubModel): RepositoryRuleUpdate, RepositoryRuleDeletion, RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, RepositoryRuleRequiredDeployments, RepositoryRuleRequiredSignatures, RepositoryRulePullRequest, @@ -102,6 +101,6 @@ class EnterprisesEnterpriseRulesetsPostBody(GitHubModel): ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(EnterprisesEnterpriseRulesetsPostBody) +model_rebuild(EnterprisesEnterpriseRulesetsRulesetIdPutBody) -__all__ = ("EnterprisesEnterpriseRulesetsPostBody",) +__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",) 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 2dcf61473..95e1db233 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0953.py @@ -9,100 +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_0083 import RepositoryRulesetBypassActor -from .group_0094 import EnterpriseRulesetConditionsOneof0 -from .group_0095 import EnterpriseRulesetConditionsOneof1 -from .group_0096 import EnterpriseRulesetConditionsOneof2 -from .group_0097 import EnterpriseRulesetConditionsOneof3 -from .group_0098 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0099 import RepositoryRuleUpdate -from .group_0101 import RepositoryRuleRequiredLinearHistory -from .group_0102 import RepositoryRuleMergeQueue -from .group_0104 import RepositoryRuleRequiredDeployments -from .group_0107 import RepositoryRulePullRequest -from .group_0109 import RepositoryRuleRequiredStatusChecks -from .group_0111 import RepositoryRuleCommitMessagePattern -from .group_0113 import RepositoryRuleCommitAuthorEmailPattern -from .group_0115 import RepositoryRuleCommitterEmailPattern -from .group_0117 import RepositoryRuleBranchNamePattern -from .group_0119 import RepositoryRuleTagNamePattern -from .group_0121 import RepositoryRuleFilePathRestriction -from .group_0123 import RepositoryRuleMaxFilePathLength -from .group_0125 import RepositoryRuleFileExtensionRestriction -from .group_0127 import RepositoryRuleMaxFileSize -from .group_0130 import RepositoryRuleWorkflows -from .group_0132 import RepositoryRuleCodeScanning -class EnterprisesEnterpriseRulesetsRulesetIdPutBody(GitHubModel): - """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersPostBody(GitHubModel): + """EnterprisesEnterpriseSettingsBillingCostCentersPostBody""" - 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.", + name: str = Field( + description="The name of the cost center (max length 255 characters)" ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(EnterprisesEnterpriseRulesetsRulesetIdPutBody) +model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersPostBody) -__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",) +__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersPostBody",) 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 95e1db233..2c83266a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0954.py @@ -12,16 +12,43 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseSettingsBillingCostCentersPostBody(GitHubModel): - """EnterprisesEnterpriseSettingsBillingCostCentersPostBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200(GitHubModel): + """EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200""" - name: str = Field( - description="The name of the cost center (max length 255 characters)" + id: Missing[str] = Field( + default=UNSET, description="Unique identifier for the cost center" ) + name: Missing[str] = Field(default=UNSET, description="Name of the cost center") + resources: Missing[ + list[ + EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems + ] + ] = Field( + default=UNSET, description="List of resources assigned to this cost center" + ) + + +class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems""" + + type: Missing[str] = Field( + default=UNSET, description="Type of resource (User, Org, or Repo)" + ) + name: Missing[str] = Field(default=UNSET, description="Name/login of the resource") -model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersPostBody) +model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems +) -__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersPostBody",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200", + "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems", +) 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 2c83266a3..37c63d2b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0955.py @@ -12,43 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200(GitHubModel): - """EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200""" - - id: Missing[str] = Field( - default=UNSET, description="Unique identifier for the cost center" - ) - name: Missing[str] = Field(default=UNSET, description="Name of the cost center") - resources: Missing[ - list[ - EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems - ] - ] = Field( - default=UNSET, description="List of resources assigned to this cost center" - ) - - -class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems""" - - type: Missing[str] = Field( - default=UNSET, description="Type of resource (User, Org, or Repo)" - ) - name: Missing[str] = Field(default=UNSET, description="Name/login of the resource") - - -model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems -) - -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200", - "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems", -) + + +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody(GitHubModel): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody""" + + name: str = Field(description="The new name for the cost center") + + +model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody) + +__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody",) 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 37c63d2b6..9f0b13e34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0956.py @@ -12,14 +12,31 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody(GitHubModel): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody""" - - name: str = Field(description="The new name for the cost center") - - -model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody) - -__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" + + users: Missing[list[str]] = Field( + default=UNSET, + description="The usernames of the users to add to the cost center.", + ) + organizations: Missing[list[str]] = Field( + default=UNSET, description="The organizations to add to the cost center." + ) + repositories: Missing[list[str]] = Field( + default=UNSET, description="The repositories to add to the cost center." + ) + + +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody +) + +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", +) 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 9f0b13e34..74ff17176 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0957.py @@ -16,27 +16,20 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody( +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200( GitHubModel ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 + 00 + """ - users: Missing[list[str]] = Field( - default=UNSET, - description="The usernames of the users to add to the cost center.", - ) - organizations: Missing[list[str]] = Field( - default=UNSET, description="The organizations to add to the cost center." - ) - repositories: Missing[list[str]] = Field( - default=UNSET, description="The repositories to add to the cost center." - ) + message: Missing[str] = Field(default=UNSET) model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 ) __all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", ) 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 74ff17176..474d70903 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0958.py @@ -16,20 +16,27 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200( +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody( GitHubModel ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 - 00 - """ + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" - message: Missing[str] = Field(default=UNSET) + users: Missing[list[str]] = Field( + default=UNSET, + description="The usernames of the users to remove from the cost center.", + ) + organizations: Missing[list[str]] = Field( + default=UNSET, description="The organizations to remove from the cost center." + ) + repositories: Missing[list[str]] = Field( + default=UNSET, description="The repositories to remove from the cost center." + ) model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody ) __all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", ) 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 474d70903..064f62dd7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0959.py @@ -16,27 +16,20 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody( +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200( GitHubModel ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons + e200 + """ - users: Missing[list[str]] = Field( - default=UNSET, - description="The usernames of the users to remove from the cost center.", - ) - organizations: Missing[list[str]] = Field( - default=UNSET, description="The organizations to remove from the cost center." - ) - repositories: Missing[list[str]] = Field( - default=UNSET, description="The repositories to remove from the cost center." - ) + message: Missing[str] = Field(default=UNSET) model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 ) __all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", ) 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 064f62dd7..199114879 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0960.py @@ -9,27 +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 EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons - e200 - """ +class GistsPostBody(GitHubModel): + """GistsPostBody""" - message: Missing[str] = Field(default=UNSET) + 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) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 -) +class GistsPostBodyPropFiles(ExtraGitHubModel): + """GistsPostBodyPropFiles + + Names and content for the files that make up the gist + + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ + + +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) __all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", + "GistsPostBody", + "GistsPostBodyPropFiles", ) 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 199114879..3d4986472 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0961.py @@ -9,41 +9,35 @@ from __future__ import annotations -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 -class GistsPostBody(GitHubModel): - """GistsPostBody""" +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" - 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) + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" - Names and content for the files that make up the gist + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} - """ - -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) __all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", ) 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 3d4986472..4c7da0217 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0962.py @@ -9,35 +9,46 @@ 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 GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" + + 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`.", + ) + - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +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`. -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" + 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`. - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) __all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", ) 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 4c7da0217..4da522baf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0963.py @@ -11,44 +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 GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" - 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`.", - ) + body: str = Field(max_length=65535, description="The comment text.") -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles +model_rebuild(GistsGistIdCommentsPostBody) - 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__ = ( - "GistsGistIdPatchBody", - "GistsGistIdPatchBodyPropFiles", -) +__all__ = ("GistsGistIdCommentsPostBody",) 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 4da522baf..6b63828a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0964.py @@ -14,12 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(GistsGistIdCommentsPostBody) +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) -__all__ = ("GistsGistIdCommentsPostBody",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) 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 6b63828a9..c642ead3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0965.py @@ -9,17 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" - - body: str = Field(max_length=65535, description="The comment text.") +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild(GistsGistIdStarGetResponse404) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ("GistsGistIdStarGetResponse404",) 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 c642ead3b..31a724d8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0966.py @@ -9,13 +9,23 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0020 import Repository + +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" + total_count: int = Field() + repositories: list[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) -model_rebuild(GistsGistIdStarGetResponse404) +model_rebuild(InstallationRepositoriesGetResponse200) -__all__ = ("GistsGistIdStarGetResponse404",) +__all__ = ("InstallationRepositoriesGetResponse200",) 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 31a724d8d..d2f8fe721 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0967.py @@ -9,23 +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_0020 import Repository - -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" - total_count: int = Field() - repositories: list[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) + 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(InstallationRepositoriesGetResponse200) +model_rebuild(MarkdownPostBody) -__all__ = ("InstallationRepositoriesGetResponse200",) +__all__ = ("MarkdownPostBody",) 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 d2f8fe721..a88d20422 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0968.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,19 +18,18 @@ from githubkit.utils import UNSET -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" - 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( + last_read_at: Missing[datetime] = Field( default=UNSET, - description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", + description="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(MarkdownPostBody) +model_rebuild(NotificationsPutBody) -__all__ = ("MarkdownPostBody",) +__all__ = ("NotificationsPutBody",) 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 a88d20422..671e9e3a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0969.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,18 +16,12 @@ from githubkit.utils import UNSET -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" - 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." - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(NotificationsPutBody) +model_rebuild(NotificationsPutResponse202) -__all__ = ("NotificationsPutBody",) +__all__ = ("NotificationsPutResponse202",) 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 671e9e3a2..0d1f3d378 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0970.py @@ -16,12 +16,14 @@ from githubkit.utils import UNSET -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - message: Missing[str] = Field(default=UNSET) + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." + ) -model_rebuild(NotificationsPutResponse202) +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) -__all__ = ("NotificationsPutResponse202",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) 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 0d1f3d378..f59064daf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0971.py @@ -15,15 +15,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0181 import OrganizationCustomRepositoryRole -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." +class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, description="The number of custom roles in this organization" ) + custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) 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 412d48958..03057a804 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0972.py @@ -15,18 +15,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0179 import OrganizationCustomRepositoryRole +class OrganizationsOrgDependabotRepositoryAccessPatchBody(GitHubModel): + """OrganizationsOrgDependabotRepositoryAccessPatchBody -class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" + Examples: + {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} + """ - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" + repository_ids_to_add: Missing[list[int]] = Field( + default=UNSET, description="List of repository IDs to add." + ) + repository_ids_to_remove: Missing[list[int]] = Field( + default=UNSET, description="List of repository IDs to remove." ) - custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) +model_rebuild(OrganizationsOrgDependabotRepositoryAccessPatchBody) -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBody",) 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 03057a804..8e801b382 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0973.py @@ -9,28 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class OrganizationsOrgDependabotRepositoryAccessPatchBody(GitHubModel): - """OrganizationsOrgDependabotRepositoryAccessPatchBody - Examples: - {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} - """ +class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody(GitHubModel): + """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" - repository_ids_to_add: Missing[list[int]] = Field( - default=UNSET, description="List of repository IDs to add." - ) - repository_ids_to_remove: Missing[list[int]] = Field( - default=UNSET, description="List of repository IDs to remove." + default_level: Literal["public", "internal"] = Field( + description="The default repository access level for Dependabot updates." ) -model_rebuild(OrganizationsOrgDependabotRepositoryAccessPatchBody) +model_rebuild(OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody) -__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBody",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody",) 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 8e801b382..b8e82fcda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0974.py @@ -14,16 +14,131 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody(GitHubModel): - """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" - default_level: Literal["public", "internal"] = Field( - description="The default repository access level for Dependabot updates." + billing_email: Missing[str] = Field( + default=UNSET, + description="Billing email address. This address is not publicized.", + ) + company: Missing[str] = Field(default=UNSET, description="The company name.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address." + ) + twitter_username: Missing[str] = Field( + default=UNSET, description="The Twitter username of the company." + ) + location: Missing[str] = Field(default=UNSET, description="The location.") + name: Missing[str] = Field( + default=UNSET, description="The shorthand name of the company." + ) + description: Missing[str] = Field( + default=UNSET, + description="The description of the company. The maximum size is 160 characters.", + ) + has_organization_projects: Missing[bool] = Field( + default=UNSET, + description="Whether an organization can use organization projects.", + ) + has_repository_projects: Missing[bool] = Field( + default=UNSET, + description="Whether repositories that belong to the organization can use repository projects.", + ) + default_repository_permission: Missing[ + Literal["read", "write", "admin", "none"] + ] = Field( + default=UNSET, + description="Default permission level members have for organization repositories.", + ) + members_can_create_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", + ) + members_can_create_internal_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_private_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_public_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_allowed_repository_creation_type: Missing[ + Literal["all", "private", "none"] + ] = Field( + default=UNSET, + description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", + ) + members_can_create_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_public_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_private_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_fork_private_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can fork private organization repositories.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", + ) + blog: Missing[str] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[str] = Field( + default=UNSET, + description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", + ) + secret_scanning_validity_checks_enabled: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", + ) + deploy_keys_enabled_for_repositories: Missing[bool] = Field( + default=UNSET, + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", ) -model_rebuild(OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody",) +__all__ = ("OrgsOrgPatchBody",) 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 b8e82fcda..83117a7e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0975.py @@ -9,136 +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 OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - billing_email: Missing[str] = Field( - default=UNSET, - description="Billing email address. This address is not publicized.", - ) - company: Missing[str] = Field(default=UNSET, description="The company name.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address." - ) - twitter_username: Missing[str] = Field( - default=UNSET, description="The Twitter username of the company." - ) - location: Missing[str] = Field(default=UNSET, description="The location.") - name: Missing[str] = Field( - default=UNSET, description="The shorthand name of the company." - ) - description: Missing[str] = Field( - default=UNSET, - description="The description of the company. The maximum size is 160 characters.", - ) - has_organization_projects: Missing[bool] = Field( - default=UNSET, - description="Whether an organization can use organization projects.", - ) - has_repository_projects: Missing[bool] = Field( - default=UNSET, - description="Whether repositories that belong to the organization can use repository projects.", - ) - default_repository_permission: Missing[ - Literal["read", "write", "admin", "none"] - ] = Field( - default=UNSET, - description="Default permission level members have for organization repositories.", - ) - members_can_create_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", - ) - members_can_create_internal_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_private_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_public_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_allowed_repository_creation_type: Missing[ - Literal["all", "private", "none"] - ] = Field( - default=UNSET, - description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", - ) - members_can_create_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_public_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_private_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_fork_private_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can fork private organization repositories.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", - ) - blog: Missing[str] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[str] = Field( - default=UNSET, - description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", + 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." ) - 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.", + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." ) - 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.", + active_caches_count: int = Field( + description="The number of active caches in the repository." ) -model_rebuild(OrgsOrgPatchBody) +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) -__all__ = ("OrgsOrgPatchBody",) +__all__ = ( + "ActionsCacheUsageByRepository", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", +) 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 83117a7e2..0a765645b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0976.py @@ -13,35 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0031 import ActionsHostedRunner -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int = Field() - repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() - - -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository +class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersGetResponse200""" - 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() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) -__all__ = ( - "ActionsCacheUsageByRepository", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", -) +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) 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 0a765645b..1517fb1db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0977.py @@ -9,20 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgActionsHostedRunnersPostBody(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBody""" + + name: str = Field( + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( + description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." + ) + size: str = Field( + description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" + ) + runner_group_id: int = Field( + description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) -from .group_0031 import ActionsHostedRunner +class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBodyPropImage -class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersGetResponse200""" + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ - total_count: int = Field() - runners: list[ActionsHostedRunner] = Field() + id: Missing[str] = Field( + default=UNSET, description="The unique identifier of the runner image." + ) + source: Missing[Literal["github", "partner", "custom"]] = Field( + default=UNSET, description="The source of the runner image." + ) -model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersPostBody) +model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) -__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", +) 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 1517fb1db..0a433f7b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0978.py @@ -9,59 +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 OrgsOrgActionsHostedRunnersPostBody(GitHubModel): - """OrgsOrgActionsHostedRunnersPostBody""" - - name: str = Field( - description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." - ) - image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( - description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." - ) - size: str = Field( - description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" - ) - runner_group_id: int = Field( - description="The existing runner group to add this runner to." - ) - maximum_runners: Missing[int] = Field( - default=UNSET, - description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", - ) - enable_static_ip: Missing[bool] = Field( - default=UNSET, - description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", - ) +from .group_0032 import ActionsHostedRunnerImage -class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): - """OrgsOrgActionsHostedRunnersPostBodyPropImage - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" - 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." - ) + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(OrgsOrgActionsHostedRunnersPostBody) -model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) +model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) -__all__ = ( - "OrgsOrgActionsHostedRunnersPostBody", - "OrgsOrgActionsHostedRunnersPostBodyPropImage", -) +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) 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 0a433f7b2..77ba74660 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0979.py @@ -16,13 +16,13 @@ from .group_0032 import ActionsHostedRunnerImage -class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" total_count: int = Field() images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) -__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) 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 77ba74660..6934fa162 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0980.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import ActionsHostedRunnerImage +from .group_0030 import ActionsHostedRunnerMachineSpec -class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" total_count: int = Field() - images: list[ActionsHostedRunnerImage] = Field() + machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() -model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) -__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) 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 6934fa162..1a2bc561d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0981.py @@ -13,16 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0030 import ActionsHostedRunnerMachineSpec - -class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" total_count: int = Field() - machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() + platforms: list[str] = Field() -model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) -__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) 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 1a2bc561d..281f91f96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0982.py @@ -12,15 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" - total_count: int = Field() - platforms: list[str] = Field() + 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`", + ) -model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) -__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) 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 281f91f96..5069b6316 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0983.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,18 @@ from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): - """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" - 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.", + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." ) - enable_static_ip: Missing[bool] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) +model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) +__all__ = ("OrgsOrgActionsPermissionsPutBody",) 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 5069b6316..422588e8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0984.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0020 import Repository -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + total_count: float = Field() + repositories: list[Repository] = Field() -model_rebuild(OrgsOrgActionsPermissionsPutBody) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) 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 422588e8f..a77afe01a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0985.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0020 import Repository +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + selected_repository_ids: list[int] = Field( + description="List of repository IDs to enable for GitHub Actions." + ) - total_count: float = Field() - repositories: list[Repository] = Field() +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) 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 a77afe01a..269bdfc1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0986.py @@ -12,16 +12,55 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsGetResponse200""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs to enable for GitHub Actions." + total_count: float = Field() + runner_groups: list[RunnerGroupsOrg] = Field() + + +class RunnerGroupsOrg(GitHubModel): + """RunnerGroupsOrg""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", + ) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + inherited: bool = Field() + inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsOrg) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200", + "RunnerGroupsOrg", +) 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 269bdfc1b..87ecde816 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0987.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,36 +18,24 @@ from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsGetResponse200""" - - total_count: float = Field() - runner_groups: list[RunnerGroupsOrg] = Field() - +class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsPostBody""" -class RunnerGroupsOrg(GitHubModel): - """RunnerGroupsOrg""" - - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_repositories_url: Missing[str] = Field( + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( default=UNSET, - description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", + description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", ) - runners_url: str = Field() - hosted_runners_url: Missing[str] = Field(default=UNSET) - network_configuration_id: Missing[str] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The identifier of a hosted compute network configuration.", + description="List of repository IDs that can access the runner group.", ) - inherited: bool = Field() - inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( + 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="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + description="Whether the runner group can be used by `public` repositories.", ) restricted_to_workflows: Missing[bool] = Field( default=UNSET, @@ -55,12 +45,12 @@ class RunnerGroupsOrg(GitHubModel): 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(OrgsOrgActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsOrg) +model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200", - "RunnerGroupsOrg", -) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) 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 87ecde816..adc28b4f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0988.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,20 +18,13 @@ from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsPostBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" name: str = Field(description="Name of the runner group.") visibility: Missing[Literal["selected", "all", "private"]] = Field( default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or 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." + 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, @@ -45,12 +38,12 @@ class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): 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( + network_configuration_id: Missing[Union[str, None]] = Field( default=UNSET, description="The identifier of a hosted compute network configuration.", ) -model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) -__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) 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 adc28b4f8..13bdeac01 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0989.py @@ -9,41 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - network_configuration_id: Missing[Union[str, None]] = Field( - default=UNSET, - description="The identifier of a hosted compute network configuration.", - ) - - -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) + +from .group_0031 import ActionsHostedRunner + + +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + + total_count: float = Field() + runners: list[ActionsHostedRunner] = Field() + + +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) 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 13bdeac01..80f295379 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0990.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0031 import ActionsHostedRunner +from .group_0178 import MinimalRepository -class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" total_count: float = Field() - runners: list[ActionsHostedRunner] = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) 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 64e770278..9316f516b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0991.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0176 import MinimalRepository +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + selected_repository_ids: list[int] = Field( + description="List of repository IDs that can access the runner group." + ) - total_count: float = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) 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 9316f516b..2f0ef345f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0992.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0041 import Runner -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs that can access the runner group." - ) +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) 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 2f0ef345f..fdc59a741 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0993.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0041 import Runner +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + runners: list[int] = Field( + description="List of runner IDs to add to the runner group." + ) - total_count: float = Field() - runners: list[Runner] = Field() +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) 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 fdc59a741..0248cc0dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0994.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0041 import Runner -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] = Field( - description="List of runner IDs to add to the runner group." - ) +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" + total_count: int = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +model_rebuild(OrgsOrgActionsRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) 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 0248cc0dc..f7baba749 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0995.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_0041 import Runner +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" + 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() - runners: list[Runner] = Field() +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -model_rebuild(OrgsOrgActionsRunnersGetResponse200) - -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) 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 f7baba749..ad2f375a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0996.py @@ -12,28 +12,17 @@ from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - 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.", + 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(OrgsOrgActionsRunnersGenerateJitconfigPostBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) 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 ad2f375a8..f5caa1c57 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0997.py @@ -14,15 +14,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" 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.", + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) 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 f5caa1c57..80c1e6af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0998.py @@ -9,21 +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 OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" + Secrets for GitHub Actions for an organization. + """ - 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.", + 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(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ( + "OrganizationActionsSecret", + "OrgsOrgActionsSecretsGetResponse200", +) 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 80c1e6af7..7cafea718 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0999.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,32 +18,23 @@ from githubkit.utils import UNSET -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" - 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() + 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="Visibility of a secret" + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ( - "OrganizationActionsSecret", - "OrgsOrgActionsSecretsGetResponse200", -) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) 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 7cafea718..b8d54a32f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1000.py @@ -9,32 +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_0178 import MinimalRepository -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" - 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.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) 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 8e3c9ce98..6c85f7a46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1001.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0176 import MinimalRepository +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + 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." + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) 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 6c85f7a46..77241a9f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1002.py @@ -9,19 +9,47 @@ 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 OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [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." + 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(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +__all__ = ( + "OrganizationActionsVariable", + "OrgsOrgActionsVariablesGetResponse200", +) 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 77241a9f2..42955f682 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1003.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,37 +18,20 @@ 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 - - Organization variable for GitHub Actions. - """ +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" 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" + 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`.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ( - "OrganizationActionsVariable", - "OrgsOrgActionsVariablesGetResponse200", -) +__all__ = ("OrgsOrgActionsVariablesPostBody",) 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 42955f682..f229885c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1004.py @@ -18,13 +18,14 @@ from githubkit.utils import UNSET -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." + name: 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, @@ -32,6 +33,6 @@ class OrgsOrgActionsVariablesPostBody(GitHubModel): ) -model_rebuild(OrgsOrgActionsVariablesPostBody) +model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) 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 f229885c2..df5357760 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1005.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_0178 import MinimalRepository -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - 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() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) 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 8e86c1790..4c5d80233 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1006.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0176 import MinimalRepository +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + 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(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) 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 4c5d80233..c7f4b426e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py @@ -11,17 +11,25 @@ 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 OrgsOrgAttestationsBulkListPostBody(GitHubModel): + """OrgsOrgAttestationsBulkListPostBody""" - selected_repository_ids: list[int] = Field( - description="The IDs of the repositories that can access the organization variable." + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests to fetch attestations for.", + ) + predicate_type: Missing[str] = Field( + default=UNSET, + description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", ) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) +model_rebuild(OrgsOrgAttestationsBulkListPostBody) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +__all__ = ("OrgsOrgAttestationsBulkListPostBody",) 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 c7f4b426e..33ac34ff1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1008.py @@ -11,25 +11,57 @@ 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 OrgsOrgAttestationsBulkListPostBody(GitHubModel): - """OrgsOrgAttestationsBulkListPostBody""" +class OrgsOrgAttestationsBulkListPostResponse200(GitHubModel): + """OrgsOrgAttestationsBulkListPostResponse200""" - subject_digests: list[str] = Field( - max_length=1024 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="List of subject digests to fetch attestations for.", + attestations_subject_digests: Missing[ + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") + page_info: Missing[OrgsOrgAttestationsBulkListPostResponse200PropPageInfo] = Field( + default=UNSET, description="Information about the current page." ) - predicate_type: Missing[str] = Field( - default=UNSET, - description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", + + +class OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( + ExtraGitHubModel +): + """OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + + Mapping of subject digest to bundles. + """ + + +class OrgsOrgAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): + """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a next page." + ) + has_previous: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a previous page." + ) + next_: Missing[str] = Field( + default=UNSET, alias="next", description="The cursor to the next page." + ) + previous: Missing[str] = Field( + default=UNSET, description="The cursor to the previous page." ) -model_rebuild(OrgsOrgAttestationsBulkListPostBody) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropPageInfo) -__all__ = ("OrgsOrgAttestationsBulkListPostBody",) +__all__ = ( + "OrgsOrgAttestationsBulkListPostResponse200", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", +) 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 33ac34ff1..81f76cfb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1009.py @@ -11,57 +11,19 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgAttestationsBulkListPostResponse200(GitHubModel): - """OrgsOrgAttestationsBulkListPostResponse200""" +class OrgsOrgAttestationsDeleteRequestPostBodyOneof0(GitHubModel): + """OrgsOrgAttestationsDeleteRequestPostBodyOneof0""" - attestations_subject_digests: Missing[ - OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests - ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") - page_info: Missing[OrgsOrgAttestationsBulkListPostResponse200PropPageInfo] = Field( - default=UNSET, description="Information about the current page." + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests associated with the artifact attestations to delete.", ) -class OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( - ExtraGitHubModel -): - """OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests +model_rebuild(OrgsOrgAttestationsDeleteRequestPostBodyOneof0) - Mapping of subject digest to bundles. - """ - - -class OrgsOrgAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): - """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo - - Information about the current page. - """ - - has_next: Missing[bool] = Field( - default=UNSET, description="Indicates whether there is a next page." - ) - has_previous: Missing[bool] = Field( - default=UNSET, description="Indicates whether there is a previous page." - ) - next_: Missing[str] = Field( - default=UNSET, alias="next", description="The cursor to the next page." - ) - previous: Missing[str] = Field( - default=UNSET, description="The cursor to the previous page." - ) - - -model_rebuild(OrgsOrgAttestationsBulkListPostResponse200) -model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests) -model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropPageInfo) - -__all__ = ( - "OrgsOrgAttestationsBulkListPostResponse200", - "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", - "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", -) +__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0",) 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 81f76cfb9..8e5ca4211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1010.py @@ -14,16 +14,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgAttestationsDeleteRequestPostBodyOneof0(GitHubModel): - """OrgsOrgAttestationsDeleteRequestPostBodyOneof0""" +class OrgsOrgAttestationsDeleteRequestPostBodyOneof1(GitHubModel): + """OrgsOrgAttestationsDeleteRequestPostBodyOneof1""" - subject_digests: list[str] = Field( + attestation_ids: list[int] = Field( max_length=1024 if PYDANTIC_V2 else None, min_length=1 if PYDANTIC_V2 else None, - description="List of subject digests associated with the artifact attestations to delete.", + description="List of unique IDs associated with the artifact attestations to delete.", ) -model_rebuild(OrgsOrgAttestationsDeleteRequestPostBodyOneof0) +model_rebuild(OrgsOrgAttestationsDeleteRequestPostBodyOneof1) -__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0",) +__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1",) 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 8e5ca4211..6f5195042 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1011.py @@ -11,19 +11,84 @@ 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 OrgsOrgAttestationsDeleteRequestPostBodyOneof1(GitHubModel): - """OrgsOrgAttestationsDeleteRequestPostBodyOneof1""" +class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - attestation_ids: list[int] = Field( - max_length=1024 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="List of unique IDs associated with the artifact attestations to delete.", + 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(OrgsOrgAttestationsDeleteRequestPostBodyOneof1) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1",) +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) 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 6f5195042..9d7a74b47 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1012.py @@ -9,86 +9,66 @@ 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 PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" +class OrgsOrgCampaignsPostBody(GitHubModel): + """OrgsOrgCampaignsPostBody""" - attestations: Missing[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) + name: str = Field( + min_length=1, max_length=50, description="The name of the campaign" + ) + description: str = Field( + min_length=1, max_length=255, description="A description for the campaign" + ) + managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", + ) + team_managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the teams to set as the campaign managers.", + ) + ends_at: datetime = Field( + description="The end date and time of the campaign. The date must be in the future." + ) + contact_link: Missing[Union[str, None]] = Field( + default=UNSET, description="The contact link of the campaign. Must be a URI." + ) + code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems] = ( + Field( + min_length=1 if PYDANTIC_V2 else None, + description="The code scanning alerts to include in this campaign", + ) + ) + generate_issues: Missing[bool] = Field( + default=UNSET, + description="If true, will automatically generate issues for the campaign. The default is false.", + ) -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" +class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems(GitHubModel): + """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - 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: int = Field(description="The repository id") + alert_numbers: list[int] = Field( + min_length=1 if PYDANTIC_V2 else None, description="The alert numbers" ) - 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(OrgsOrgCampaignsPostBody) +model_rebuild(OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems) __all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "OrgsOrgCampaignsPostBody", + "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", ) 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 9d7a74b47..8be946ada 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1013.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,14 +19,20 @@ from githubkit.utils import UNSET -class OrgsOrgCampaignsPostBody(GitHubModel): - """OrgsOrgCampaignsPostBody""" +class OrgsOrgCampaignsCampaignNumberPatchBody(GitHubModel): + """OrgsOrgCampaignsCampaignNumberPatchBody""" - name: str = Field( - min_length=1, max_length=50, description="The name of the campaign" + name: Missing[str] = Field( + min_length=1, + max_length=50, + default=UNSET, + description="The name of the campaign", ) - description: str = Field( - min_length=1, max_length=255, description="A description for the campaign" + description: Missing[str] = Field( + min_length=1, + max_length=255, + default=UNSET, + description="A description for the campaign", ) managers: Missing[list[str]] = Field( max_length=10 if PYDANTIC_V2 else None, @@ -38,37 +44,20 @@ class OrgsOrgCampaignsPostBody(GitHubModel): default=UNSET, description="The slugs of the teams to set as the campaign managers.", ) - ends_at: datetime = Field( - description="The end date and time of the campaign. The date must be in the future." + ends_at: Missing[datetime] = Field( + default=UNSET, + description="The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) contact_link: Missing[Union[str, None]] = Field( default=UNSET, description="The contact link of the campaign. Must be a URI." ) - code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems] = ( - Field( - min_length=1 if PYDANTIC_V2 else None, - description="The code scanning alerts to include in this campaign", - ) - ) - generate_issues: Missing[bool] = Field( + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="If true, will automatically generate issues for the campaign. The default is false.", - ) - - -class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems(GitHubModel): - """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - - repository_id: int = Field(description="The repository id") - alert_numbers: list[int] = Field( - min_length=1 if PYDANTIC_V2 else None, description="The alert numbers" + title="Campaign state", + description="Indicates whether a campaign is open or closed", ) -model_rebuild(OrgsOrgCampaignsPostBody) -model_rebuild(OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems) +model_rebuild(OrgsOrgCampaignsCampaignNumberPatchBody) -__all__ = ( - "OrgsOrgCampaignsPostBody", - "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", -) +__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBody",) 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 8be946ada..e2dfc76e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1014.py @@ -9,55 +9,203 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0064 import CodeScanningOptions +from .group_0065 import CodeScanningDefaultSetupOptions -class OrgsOrgCampaignsCampaignNumberPatchBody(GitHubModel): - """OrgsOrgCampaignsCampaignNumberPatchBody""" - name: Missing[str] = Field( - min_length=1, - max_length=50, +class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the organization." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.\n\n> [!WARNING]\n> `code_security` and `secret_protection` are deprecated values for this field. Prefer the individual `code_security` and `secret_protection` fields to set the status of these features.\n", + ) + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Code Security features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_options: Missing[Union[CodeScanningOptions, None]] = Field( + default=UNSET, + description="Security Configuration feature options for code scanning", + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Secret Protection features.", + ) + 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 name of the campaign", + description="The enablement status of secret scanning push protection", ) - description: Missing[str] = Field( - min_length=1, - max_length=255, + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="A description for the campaign", + description="The enablement status of secret scanning delegated bypass", ) - managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions + ] = Field( default=UNSET, - description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", + description="Feature options for secret scanning delegated bypass", ) - team_managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="The slugs of the teams to set as the campaign managers.", + description="The enablement status of secret scanning validity checks", ) - ends_at: Missing[datetime] = Field( + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + description="The enablement status of secret scanning non provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" ) - contact_link: Missing[Union[str, None]] = Field( - default=UNSET, description="The contact link of the campaign. Must be a URI." + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", ) - state: Missing[Literal["open", "closed"]] = Field( + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - title="Campaign state", - description="Indicates whether a campaign is open or closed", + 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(OrgsOrgCampaignsCampaignNumberPatchBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) 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 03c8499a9..87e1caff8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1015.py @@ -9,190 +9,24 @@ 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_0064 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", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - 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( + selected_repository_ids: Missing[list[int]] = Field( + max_length=1000 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + description="An array of repository IDs to detach from configurations. Up to 1000 IDs can be provided.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBody", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) 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 87e1caff8..5c2b5ed53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1016.py @@ -9,24 +9,201 @@ 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_0065 import CodeScanningDefaultSetupOptions + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.\n\n> [!WARNING]\n> `code_security` and `secret_protection` are deprecated values for this field. Prefer the individual `code_security` and `secret_protection` fields to set the status of these features.\n", + ) + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Code Security features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Secret Protection features.", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" + Feature options for Automatic dependency submission + """ - selected_repository_ids: Missing[list[int]] = Field( - max_length=1000 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, + labeled_runners: Missing[bool] = Field( default=UNSET, - description="An array of repository IDs to detach from configurations. Up to 1000 IDs can be provided.", + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) 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 8c86ed2d0..3e150ccc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1017.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,185 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0064 import CodeScanningDefaultSetupOptions +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique within the organization.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" + 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`" ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + 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(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) 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 3e150ccc7..b47755cb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1018.py @@ -18,20 +18,17 @@ from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] ] = 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`.", + description="Specify which types of repository this security configuration should be applied to by default.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) 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 b47755cb5..983ca0d16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1019.py @@ -17,18 +17,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0063 import CodeSecurityConfiguration -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" 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.", + 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(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) 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 983ca0d16..519ca4af0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1020.py @@ -9,33 +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_0063 import CodeSecurityConfiguration +from .group_0190 import Codespace -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" - 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" - ) + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) +model_rebuild(OrgsOrgCodespacesGetResponse200) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) +__all__ = ("OrgsOrgCodespacesGetResponse200",) 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 8936578ba..ed7cad665 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,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 .group_0188 import Codespace +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" - total_count: int = Field() - codespaces: list[Codespace] = 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(OrgsOrgCodespacesGetResponse200) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) 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 ed7cad665..7ae93c749 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1022.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 -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - 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( + selected_usernames: list[str] = Field( max_length=100 if PYDANTIC_V2 else None, - default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + description="The usernames of the organization members whose codespaces be billed to the organization.", ) -model_rebuild(OrgsOrgCodespacesAccessPutBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) 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 7ae93c749..0c752f566 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1023.py @@ -14,15 +14,15 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +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 be billed to the organization.", + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) 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 0c752f566..58a07d080 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1024.py @@ -9,20 +9,49 @@ 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 OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[CodespacesOrgSecret] = Field() -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class CodespacesOrgSecret(GitHubModel): + """Codespaces Secret - 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.", + 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(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +__all__ = ( + "CodespacesOrgSecret", + "OrgsOrgCodespacesSecretsGetResponse200", +) 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 58a07d080..e71b0039e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1025.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,39 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - 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." + 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.", ) - updated_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." ) visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" + 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_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 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(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -__all__ = ( - "CodespacesOrgSecret", - "OrgsOrgCodespacesSecretsGetResponse200", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) 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 e71b0039e..7b477a001 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1026.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_0178 import MinimalRepository -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) 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 b21cc5a99..f2bac9ddd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1027.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0176 import MinimalRepository +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + 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." + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) 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 f2bac9ddd..b2bf438d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1028.py @@ -12,16 +12,22 @@ 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 CopilotSeatDetails -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." +class 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(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) 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 6c3f5ed23..f9277a829 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1029.py @@ -11,23 +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 -from .group_0071 import CopilotSeatDetails +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: Missing[int] = Field( - default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", + 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.", ) - seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) 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 f9277a829..225617267 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1030.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 OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - 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.", - ) + The total number of seats created for members of the specified team(s). + """ + seats_created: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) 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 225617267..8f14a6e14 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1031.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 -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - The total number of seats created for members of the specified team(s). - """ + 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.", + ) - seats_created: int = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) 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 8f14a6e14..137e9507f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1032.py @@ -11,18 +11,19 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - 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.", - ) + The total number of seats set to "pending cancellation" for members of the + specified team(s). + """ + seats_cancelled: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) 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 137e9507f..6a10dd79f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1033.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + 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.", + ) - seats_cancelled: int = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) 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 6a10dd79f..83f481941 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1034.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 OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - 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.", - ) + The total number of seats created for the specified user(s). + """ + seats_created: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) 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 83f481941..270057c2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1035.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 -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - The total number of seats created for the specified user(s). - """ + 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.", + ) - seats_created: int = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) 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 270057c2e..ac7addbd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1036.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 OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - 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.", - ) + The total number of seats set to "pending cancellation" for the specified users. + """ + seats_cancelled: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) 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 ac7addbd5..606dcc1d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1037.py @@ -12,17 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0181 import OrganizationCustomRepositoryRole -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seats set to "pending cancellation" for the specified users. - """ +class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): + """OrgsOrgCustomRepositoryRolesGetResponse200""" - seats_cancelled: int = Field() + total_count: Missing[int] = Field( + default=UNSET, description="The number of custom roles in this organization" + ) + custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) 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 3f8ceb0a5..a96d49f72 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1038.py @@ -9,24 +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 -from .group_0179 import OrganizationCustomRepositoryRole +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[OrganizationDependabotSecret] = Field() + + +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization -class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): - """OrgsOrgCustomRepositoryRolesGetResponse200""" + Secrets for GitHub Dependabot for an organization. + """ - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this 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" ) - custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) +__all__ = ( + "OrganizationDependabotSecret", + "OrgsOrgDependabotSecretsGetResponse200", +) 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 a96d49f72..83753c512 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1039.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,32 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - total_count: int = Field() - secrets: list[OrganizationDependabotSecret] = Field() - - -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization - - Secrets for GitHub Dependabot for an organization. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + 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="Visibility of a secret" + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[str]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ( - "OrganizationDependabotSecret", - "OrgsOrgDependabotSecretsGetResponse200", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) 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 83753c512..7931032c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1040.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_0178 import MinimalRepository -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[list[str]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) 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 2a4b92304..1d8e42f73 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1041.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0176 import MinimalRepository +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + 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." + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) 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 1d8e42f73..f32e08d2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1042.py @@ -9,19 +9,56 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." + ) + events: Missing[list[str]] = Field( + default=UNSET, + description='Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) - 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 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(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +__all__ = ( + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", +) 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 f32e08d2a..ddab845d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1043.py @@ -18,25 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." + config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", ) events: Missing[list[str]] = Field( default=UNSET, - description='Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', + 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 OrgsOrgHooksPostBodyPropConfig(GitHubModel): - """OrgsOrgHooksPostBodyPropConfig +class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): + """OrgsOrgHooksHookIdPatchBodyPropConfig Key/value pairs to provide settings for this webhook. """ @@ -51,14 +52,12 @@ class OrgsOrgHooksPostBodyPropConfig(GitHubModel): description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", ) insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - username: Missing[str] = Field(default=UNSET) - password: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) __all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", ) 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 ddab845d4..737eb45c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1044.py @@ -18,31 +18,12 @@ from githubkit.utils import UNSET -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - 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`.", @@ -54,10 +35,6 @@ class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) 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 737eb45c6..cd6df6a66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1045.py @@ -9,32 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0018 import Installation -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + total_count: int = Field() + installations: list[Installation] = Field() -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(OrgsOrgInstallationsGetResponse200) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ("OrgsOrgInstallationsGetResponse200",) 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 cd6df6a66..17fac965f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1046.py @@ -9,20 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from .group_0018 import Installation - - -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" - total_count: int = Field() - installations: list[Installation] = Field() +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -model_rebuild(OrgsOrgInstallationsGetResponse200) +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) 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 17fac965f..163abb03c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1047.py @@ -9,13 +9,38 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild - - -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +from typing import Literal +from pydantic import Field -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) - -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +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",) 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 163abb03c..1a24c1810 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1048.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 - - -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",) + +from .group_0190 import Codespace + + +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + + total_count: int = Field() + codespaces: list[Codespace] = Field() + + +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) 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 8dd76c0d5..7da7af9d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1049.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_0188 import Codespace +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + 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(OrgsOrgMembersUsernameCodespacesGetResponse200) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) 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 7da7af9d3..68c6b8f27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1050.py @@ -18,15 +18,46 @@ from githubkit.utils import UNSET -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" - role: Missing[Literal["admin", "member"]] = Field( + repositories: list[str] = Field( + description="A list of arrays indicating which repositories should be migrated." + ) + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, + description="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="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="Exclude related items from being returned in the response in order to improve performance of the request.", ) -model_rebuild(OrgsOrgMembershipsUsernamePutBody) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgMigrationsPostBody",) 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 68c6b8f27..93499063e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1051.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,46 +16,16 @@ from githubkit.utils import UNSET -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - 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( + async_: Missing[bool] = Field( default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", + 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(OrgsOrgMigrationsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgMigrationsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) 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 93499063e..dc2469b07 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1052.py @@ -9,23 +9,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 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 OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) 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 dc2469b07..523846f85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1053.py @@ -9,13 +9,20 @@ 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 OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) 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 523846f85..8f8247056 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1054.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 OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +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(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) 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 8f8247056..af6277ed1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1055.py @@ -13,29 +13,23 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - 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." + 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 requests. Max 1024 characters.", + description="Reason for approving or denying the request. Max 1024 characters.", ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) 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 af6277ed1..2677c34ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1056.py @@ -9,27 +9,26 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", + 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(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) 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 2677c34ff..53f6146e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1057.py @@ -13,22 +13,17 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" action: Literal["revoke"] = Field( description="Action to apply to the fine-grained personal access token." ) - pat_ids: list[int] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The IDs of the fine-grained personal access tokens.", - ) -model_rebuild(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) 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 53f6146e3..83d9bbabf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1058.py @@ -9,21 +9,62 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesGetResponse200""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + total_count: int = Field() + configurations: list[OrgPrivateRegistryConfiguration] = Field() + + +class OrgPrivateRegistryConfiguration(GitHubModel): + """Organization private registry + + Private registry configuration for an organization + """ + + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] = 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(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) +model_rebuild(OrgPrivateRegistryConfiguration) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ( + "OrgPrivateRegistryConfiguration", + "OrgsOrgPrivateRegistriesGetResponse200", +) 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 83cd2fd4c..857f77e40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1059.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,38 +18,45 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesGetResponse200""" - - total_count: int = Field() - configurations: list[OrgPrivateRegistryConfiguration] = Field() - - -class OrgPrivateRegistryConfiguration(GitHubModel): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( - description="The registry type." - ) +class OrgsOrgPrivateRegistriesPostBody(GitHubModel): + """OrgsOrgPrivateRegistriesPostBody""" + + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] = Field(description="The registry type.") + url: str = Field(description="The URL of the private registry.") username: Missing[Union[str, None]] = Field( default=UNSET, - description="The username to use when authenticating with the private registry.", + 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." + 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`.", ) - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) -model_rebuild(OrgPrivateRegistryConfiguration) +model_rebuild(OrgsOrgPrivateRegistriesPostBody) -__all__ = ( - "OrgPrivateRegistryConfiguration", - "OrgsOrgPrivateRegistriesGetResponse200", -) +__all__ = ("OrgsOrgPrivateRegistriesPostBody",) 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 c95d6c0a4..a51c170a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1060.py @@ -9,40 +9,18 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgPrivateRegistriesPostBody(GitHubModel): - """OrgsOrgPrivateRegistriesPostBody""" - - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( - description="The registry type." - ) - url: str = Field(description="The URL of the private registry.") - 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 OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" + + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + + +model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) + +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) 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 a51c170a5..097420c7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1061.py @@ -9,18 +9,62 @@ 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 OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" +class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + registry_type: Missing[ + Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] + ] = Field(default=UNSET, description="The registry type.") + url: Missing[str] = Field( + default=UNSET, description="The URL of the private registry." + ) + 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(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) +model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) 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 5fb140dfb..ed09aabdb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1062.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,37 +16,15 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - registry_type: Missing[ - Literal["maven_repository", "nuget_feed", "goproxy_server"] - ] = Field(default=UNSET, description="The registry type.") - url: Missing[str] = Field( - default=UNSET, description="The URL of the private registry." - ) - 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`.", + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) +__all__ = ("OrgsOrgProjectsPostBody",) 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 ed09aabdb..00e947779 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1063.py @@ -11,20 +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_0082 import CustomProperty -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 OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" + + properties: list[CustomProperty] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The array of custom properties to create or update.", ) -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) 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 55e72acff..cba456851 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1064.py @@ -13,19 +13,22 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0081 import CustomProperty +from .group_0227 import CustomPropertyValue -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" - properties: list[CustomProperty] = Field( - max_length=100 if PYDANTIC_V2 else None, + repository_names: list[str] = Field( + max_length=30 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 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(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) 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 e2a8803b6..8a3c986d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1065.py @@ -9,26 +9,128 @@ 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_0225 import CustomPropertyValue +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" - 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.", + 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".', ) - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( + default=UNSET, + description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): + """OrgsOrgReposPostBodyPropCustomProperties + + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgReposPostBody) +model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ( + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", +) 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 8a3c986d9..f8700e111 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1066.py @@ -9,128 +9,95 @@ 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 OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" - - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Pass `true` to create an initial commit with empty README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', - ) - license_template: Missing[str] = Field( - default=UNSET, - description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-cloud@latest//articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +from .group_0084 import RepositoryRulesetBypassActor +from .group_0099 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0100 import RepositoryRuleUpdate +from .group_0102 import RepositoryRuleRequiredLinearHistory +from .group_0103 import RepositoryRuleRequiredDeployments +from .group_0106 import RepositoryRulePullRequest +from .group_0108 import RepositoryRuleRequiredStatusChecks +from .group_0110 import RepositoryRuleCommitMessagePattern +from .group_0112 import RepositoryRuleCommitAuthorEmailPattern +from .group_0114 import RepositoryRuleCommitterEmailPattern +from .group_0116 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleTagNamePattern +from .group_0120 import RepositoryRuleFilePathRestriction +from .group_0122 import RepositoryRuleMaxFilePathLength +from .group_0124 import RepositoryRuleFileExtensionRestriction +from .group_0126 import RepositoryRuleMaxFileSize +from .group_0129 import RepositoryRuleWorkflows +from .group_0131 import RepositoryRuleCodeScanning +from .group_0135 import OrgRulesetConditionsOneof0 +from .group_0136 import OrgRulesetConditionsOneof1 +from .group_0137 import OrgRulesetConditionsOneof2 + + +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] ] = Field( default=UNSET, - 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) - -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) + 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, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(OrgsOrgRulesetsPostBody) + +__all__ = ("OrgsOrgRulesetsPostBody",) 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 22a16b3b9..711a7f3dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1067.py @@ -17,44 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0083 import RepositoryRulesetBypassActor -from .group_0098 import ( +from .group_0084 import RepositoryRulesetBypassActor +from .group_0099 import ( RepositoryRuleCreation, RepositoryRuleDeletion, RepositoryRuleNonFastForward, RepositoryRuleRequiredSignatures, ) -from .group_0099 import RepositoryRuleUpdate -from .group_0101 import RepositoryRuleRequiredLinearHistory -from .group_0102 import RepositoryRuleMergeQueue -from .group_0104 import RepositoryRuleRequiredDeployments -from .group_0107 import RepositoryRulePullRequest -from .group_0109 import RepositoryRuleRequiredStatusChecks -from .group_0111 import RepositoryRuleCommitMessagePattern -from .group_0113 import RepositoryRuleCommitAuthorEmailPattern -from .group_0115 import RepositoryRuleCommitterEmailPattern -from .group_0117 import RepositoryRuleBranchNamePattern -from .group_0119 import RepositoryRuleTagNamePattern -from .group_0121 import RepositoryRuleFilePathRestriction -from .group_0123 import RepositoryRuleMaxFilePathLength -from .group_0125 import RepositoryRuleFileExtensionRestriction -from .group_0127 import RepositoryRuleMaxFileSize -from .group_0130 import RepositoryRuleWorkflows -from .group_0132 import RepositoryRuleCodeScanning -from .group_0136 import OrgRulesetConditionsOneof0 -from .group_0137 import OrgRulesetConditionsOneof1 -from .group_0138 import OrgRulesetConditionsOneof2 +from .group_0100 import RepositoryRuleUpdate +from .group_0102 import RepositoryRuleRequiredLinearHistory +from .group_0103 import RepositoryRuleRequiredDeployments +from .group_0106 import RepositoryRulePullRequest +from .group_0108 import RepositoryRuleRequiredStatusChecks +from .group_0110 import RepositoryRuleCommitMessagePattern +from .group_0112 import RepositoryRuleCommitAuthorEmailPattern +from .group_0114 import RepositoryRuleCommitterEmailPattern +from .group_0116 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleTagNamePattern +from .group_0120 import RepositoryRuleFilePathRestriction +from .group_0122 import RepositoryRuleMaxFilePathLength +from .group_0124 import RepositoryRuleFileExtensionRestriction +from .group_0126 import RepositoryRuleMaxFileSize +from .group_0129 import RepositoryRuleWorkflows +from .group_0131 import RepositoryRuleCodeScanning +from .group_0135 import OrgRulesetConditionsOneof0 +from .group_0136 import OrgRulesetConditionsOneof1 +from .group_0137 import OrgRulesetConditionsOneof2 -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" - name: str = Field(description="The name of the ruleset.") + 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: 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." + 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, @@ -78,7 +78,6 @@ class OrgsOrgRulesetsPostBody(GitHubModel): RepositoryRuleUpdate, RepositoryRuleDeletion, RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, RepositoryRuleRequiredDeployments, RepositoryRuleRequiredSignatures, RepositoryRulePullRequest, @@ -100,6 +99,6 @@ class OrgsOrgRulesetsPostBody(GitHubModel): ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) 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 ca84d0965..5417c5027 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1068.py @@ -9,98 +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_0083 import RepositoryRulesetBypassActor -from .group_0098 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0099 import RepositoryRuleUpdate -from .group_0101 import RepositoryRuleRequiredLinearHistory -from .group_0102 import RepositoryRuleMergeQueue -from .group_0104 import RepositoryRuleRequiredDeployments -from .group_0107 import RepositoryRulePullRequest -from .group_0109 import RepositoryRuleRequiredStatusChecks -from .group_0111 import RepositoryRuleCommitMessagePattern -from .group_0113 import RepositoryRuleCommitAuthorEmailPattern -from .group_0115 import RepositoryRuleCommitterEmailPattern -from .group_0117 import RepositoryRuleBranchNamePattern -from .group_0119 import RepositoryRuleTagNamePattern -from .group_0121 import RepositoryRuleFilePathRestriction -from .group_0123 import RepositoryRuleMaxFilePathLength -from .group_0125 import RepositoryRuleFileExtensionRestriction -from .group_0127 import RepositoryRuleMaxFileSize -from .group_0130 import RepositoryRuleWorkflows -from .group_0132 import RepositoryRuleCodeScanning -from .group_0136 import OrgRulesetConditionsOneof0 -from .group_0137 import OrgRulesetConditionsOneof1 -from .group_0138 import OrgRulesetConditionsOneof2 +from .group_0080 import NetworkConfiguration -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" +class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" - 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, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + total_count: int = Field() + network_configurations: list[NetworkConfiguration] = Field() -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsGetResponse200) -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",) 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 dde76d845..b6be61b0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1069.py @@ -9,20 +9,32 @@ from __future__ import annotations -from pydantic import Field +from typing import Literal -from githubkit.compat import GitHubModel, model_rebuild +from pydantic import Field -from .group_0079 import NetworkConfiguration +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" +class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" - total_count: int = Field() - network_configurations: list[NetworkConfiguration] = 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="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(OrgsOrgSettingsNetworkConfigurationsGetResponse200) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsPostBody) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) 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 b6be61b0d..d68e0ab2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1070.py @@ -18,23 +18,24 @@ from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsPostBody""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - 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 '_'." + 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: list[str] = Field( + network_settings_ids: Missing[list[str]] = Field( max_length=1 if PYDANTIC_V2 else None, - min_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(OrgsOrgSettingsNetworkConfigurationsPostBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) 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 d68e0ab2a..ea9293710 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1071.py @@ -13,29 +13,45 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" - name: Missing[str] = Field( + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + maintainers: Missing[list[str]] = Field( + default=UNSET, + description="List GitHub usernames for organization members who will become team maintainers.", + ) + repo_names: Missing[list[str]] = Field( default=UNSET, - description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', ) - compute_service: Missing[Literal["none", "actions"]] = Field( + privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - description="The hosted compute service to use for the network configuration.", + 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`", ) - network_settings_ids: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + 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(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) +__all__ = ("OrgsOrgTeamsPostBody",) 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 ea9293710..ef46562c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1072.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,40 +18,32 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" - name: str = Field(description="The name of the team.") + name: Missing[str] = Field(default=UNSET, description="The name of the team.") description: Missing[str] = Field( default=UNSET, description="The description of the team." ) - maintainers: Missing[list[str]] = Field( - default=UNSET, - description="List GitHub usernames for organization members who will become team maintainers.", - ) - repo_names: Missing[list[str]] = Field( - default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', - ) privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + 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. 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 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"]] = Field( + 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[int] = Field( + parent_team_id: Missing[Union[int, None]] = Field( default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) 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 ef46562c8..5aca60c84 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1073.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,17 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - 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( + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( default=UNSET, - description="The 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="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(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) 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 5aca60c84..155ed9640 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1074.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -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 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." ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) 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 155ed9640..d8f084a3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1075.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 OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - 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." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) 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 d8f084a3e..f9ed8041d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1076.py @@ -14,12 +14,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" body: str = Field(description="The discussion comment's body text.") -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody +) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", +) 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 f9ed8041d..6459343b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1077.py @@ -9,23 +9,31 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( GitHubModel ): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - body: str = Field(description="The discussion comment's body text.") + 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( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody ) __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ) 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 6459343b4..1c2173ab7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1078.py @@ -16,24 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" 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." + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) 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 1c2173ab7..c48fb6c94 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,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - 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." - ) + group_id: int = Field(description="External Group Id") -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) 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 c48fb6c94..d4ebf1d16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1080.py @@ -9,17 +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 OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - group_id: int = Field(description="External Group Id") + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." + ) -model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) 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 d4ebf1d16..db4c59000 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1081.py @@ -18,14 +18,15 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + 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(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) 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 db4c59000..b947a7fa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1082.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 OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - 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(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) 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 b947a7fa2..4127c4263 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1083.py @@ -16,13 +16,15 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + 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(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) 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 4127c4263..412383f61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1084.py @@ -16,15 +16,29 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - permission: Missing[str] = Field( + groups: Missing[ + list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] + ] = 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="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(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) + group_id: str = Field(description="ID of the IdP group.") + group_name: str = Field(description="Name of the IdP group.") + group_description: str = Field(description="Description of the IdP group.") + + +model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems) + +__all__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py b/githubkit/versions/ghec_v2022_11_28/models/group_1085.py index 412383f61..adc736feb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1085.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,15 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - groups: Missing[ - list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] - ] = Field( + query_suite: Missing[Literal["default", "extended"]] = Field( default=UNSET, - description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", + description="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.", ) -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(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) 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 adc736feb..8e4aacd13 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1086.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,14 @@ from githubkit.utils import UNSET -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) 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 8e4aacd13..f56c2018f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1087.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,14 +18,17 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + 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(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) 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 f56c2018f..525269481 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1088.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,17 +16,19 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" + 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.", ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + column_id: Missing[int] = Field( + default=UNSET, + description="The unique identifier of the column the card should be moved to", ) -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) 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 525269481..7d3245c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1089.py @@ -9,26 +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 ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" - position: str = Field( - pattern="^(?:top|bottom|after:\\d+)$", - description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", - ) - column_id: Missing[int] = Field( - default=UNSET, - description="The unique identifier of the column the card should be moved to", - ) +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) 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 7d3245c63..4a6010387 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1090.py @@ -9,13 +9,36 @@ 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 ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + ] = Field(default=UNSET) + +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" + 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(ProjectsColumnsCardsCardIdMovesPostResponse201) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) 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 4a6010387..396dbfe80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1091.py @@ -16,29 +16,28 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +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[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] ] = Field(default=UNSET) -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" 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) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) __all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ) 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 396dbfe80..e6f9395a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1092.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 -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - 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) + name: str = Field(description="Name of the project column") -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +model_rebuild(ProjectsColumnsColumnIdPatchBody) - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) 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 e6f9395a8..17db0e859 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1093.py @@ -9,17 +9,19 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - name: str = Field(description="Name of the project column") + note: Union[str, None] = Field(description="The project card's note") -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) 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 17db0e859..78dbfee00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1094.py @@ -9,19 +9,22 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - note: Union[str, None] = Field(description="The project card's note") + content_id: int = Field( + description="The unique identifier of the content associated with the card" + ) + content_type: str = Field( + description="The piece of content associated with the card" + ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) 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 78dbfee00..cd4d5b3d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1095.py @@ -12,19 +12,32 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" - 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" - ) + 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(ProjectsColumnsColumnIdCardsPostBodyOneof1) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) + 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_1096.py b/githubkit/versions/ghec_v2022_11_28/models/group_1096.py index cd4d5b3d2..003392298 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1096.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1096.py @@ -12,32 +12,17 @@ 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 ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" - 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) + 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 ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) 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 003392298..6009bdb4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1097.py @@ -9,20 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -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 ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) 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 6009bdb4e..a0ef8d52d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1098.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 ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(ProjectsProjectIdDeleteResponse403) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) 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 a0ef8d52d..e99c686c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1099.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,26 @@ from githubkit.utils import UNSET -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET, description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + state: Missing[str] = Field( + default=UNSET, description="State of the project; either 'open' or 'closed'" + ) + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone.", + ) -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(ProjectsProjectIdPatchBody) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("ProjectsProjectIdPatchBody",) 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 e99c686c3..8448c850e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1100.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,26 +16,14 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" - name: Missing[str] = Field(default=UNSET, description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - state: Missing[str] = Field( - default=UNSET, description="State of the project; either 'open' or 'closed'" - ) - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project", - ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(ProjectsProjectIdPatchResponse403) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("ProjectsProjectIdPatchResponse403",) 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 8448c850e..4745249cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1101.py +++ b/githubkit/versions/ghec_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,14 +18,14 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) -model_rebuild(ProjectsProjectIdPatchResponse403) +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -__all__ = ("ProjectsProjectIdPatchResponse403",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) 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 4745249cd..e33e0910d 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,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." - ) + name: str = Field(description="Name of the project column") -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) 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 e33e0910d..82852ecb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1103.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 ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - name: str = Field(description="Name of the project column") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("ReposOwnerRepoDeleteResponse403",) 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 82852ecb9..322d6ac2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1104.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1104.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,308 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +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.\nFor more information, see "[About GitHub Advanced\nSecurity](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.', + ) + code_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + ] = Field( + default=UNSET, + description="Use the `status` property to enable or disable GitHub Code Security for this repository.", + ) + secret_scanning: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', + ) + secret_scanning_push_protection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_ai_detection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', + ) + secret_scanning_non_provider_patterns: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + secret_scanning_validity_checks: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + ] = Field( + default=UNSET, + description="Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.", + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. + For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + + For standalone Code Scanning or Secret Protection products, this parameter + cannot be used. + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + + Use the `status` property to enable or disable GitHub Code Security for this + repository. + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- + security/secret-scanning/using-advanced-secret-scanning-and-push-protection- + features/generic-secret-detection/responsible-ai-generic-secrets)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + + Use the `status` property to enable or disable secret scanning automatic + validity checks on supported partner tokens for this repository. + """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks +) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", +) 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 8305abbcb..84f75fe1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1105.py @@ -9,313 +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 ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - archived: Missing[bool] = Field( - default=UNSET, - description="Whether to archive this repository. `false` will unarchive a previously archived repository.", - ) - allow_forking: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow private forks, or `false` to prevent private forks.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/enterprise- - cloud@latest//organizations/managing-peoples-access-to-your-organization-with- - roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', - ) - code_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - ] = Field( - default=UNSET, - description="Use the `status` property to enable or disable GitHub Code Security for this repository.", - ) - secret_scanning: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', - ) - secret_scanning_push_protection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - secret_scanning_ai_detection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', - ) - secret_scanning_non_provider_patterns: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret_scanning_validity_checks: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - ] = Field( - default=UNSET, - description="Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - - Use the `status` property to enable or disable GitHub Code Security for this - repository. - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- - security/secret-scanning/using-advanced-secret-scanning-and-push-protection- - features/generic-secret-detection/responsible-ai-generic-secrets)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) +from .group_0249 import Artifact -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) + total_count: int = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks -) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", -) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) 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 6f0d83d42..eabc5484e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1106.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_0247 import Artifact +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) - total_count: int = Field() - artifacts: list[Artifact] = Field() +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) 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 eabc5484e..4ca168cda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1107.py @@ -16,14 +16,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + Actions OIDC subject customization for a repository + """ + + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[list[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", ) -model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) 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 4ca168cda..f90213438 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1108.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_0253 import ActionsSecret -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" - 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.", - ) + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) 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 f51a079bf..b5de6ecb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1109.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1109.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0251 import ActionsSecret +from .group_0254 import ActionsVariable -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" total_count: int = Field() - secrets: list[ActionsSecret] = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) 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 c3d9fbe2d..b882d15a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1110.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_0252 import ActionsVariable +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" - total_count: int = Field() - variables: list[ActionsVariable] = 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.", + ) -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) 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 b882d15a4..748b3db37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1111.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0041 import Runner -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + total_count: int = Field() + runners: list[Runner] = Field() -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) 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 748b3db37..4b74e8b7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1112.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_0041 import Runner +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + 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() - runners: list[Runner] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) 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 4b74e8b7f..07ff84efb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1113.py @@ -12,28 +12,17 @@ from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - 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.", + 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(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) 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 07ff84efb..5c0dd84b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1114.py @@ -14,15 +14,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" 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.", + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) 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 5c0dd84b7..d31e926a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1115.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_0259 import WorkflowRun -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int = Field() + workflow_runs: list[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) 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 a9bcb07fc..e1124471b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1116.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0257 import WorkflowRun +from .group_0249 import Artifact -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) 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 007c859a0..f1ccb5a66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1117.py @@ -13,16 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0247 import Artifact +from .group_0251 import Job -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( + GitHubModel +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" total_count: int = Field() - artifacts: list[Artifact] = Field() + jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) 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 e061cf7bc..2357f7e1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1118.py @@ -13,18 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0249 import Job +from .group_0251 import Job -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" total_count: int = Field() jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) 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 d6b00002c..daa1a984d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1119.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1119.py @@ -9,20 +9,25 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0249 import Job - -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - total_count: int = Field() - jobs: list[Job] = Field() + environment_ids: list[int] = Field( + description="The list of environment ids to approve or reject" + ) + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." + ) + comment: str = Field(description="A comment to accompany the deployment review") -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) 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 daa1a984d..f45127160 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1120.py @@ -9,25 +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 ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - 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." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) - comment: str = Field(description="A comment to accompany the deployment review") -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) 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 f45127160..f97011ea2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1121.py @@ -16,14 +16,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" enable_debug_logging: Missing[bool] = Field( default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) 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 f97011ea2..ab13dd773 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1122.py @@ -12,18 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0253 import ActionsSecret -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) 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 0e9ffe1f5..58d527265 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1123.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1123.py @@ -13,16 +13,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0251 import ActionsSecret +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" + 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.") - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) 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 58d527265..89bd7e28e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1124.py @@ -13,17 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0254 import ActionsVariable -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - 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.") +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) 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 aecfe30bd..bf9209ee5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1125.py @@ -13,16 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0252 import ActionsVariable +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") - total_count: int = Field() - variables: list[ActionsVariable] = Field() +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) 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 bf9209ee5..2a4d3aeda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1126.py @@ -12,15 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + 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(ReposOwnerRepoActionsVariablesPostBody) +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) 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 2a4d3aeda..3c3259aed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1127.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,13 +19,38 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" + + total_count: int = Field() + workflows: list[Workflow] = Field() + + +class Workflow(GitHubModel): + """Workflow + + A GitHub Actions workflow + """ - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + 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(ReposOwnerRepoActionsVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", +) 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 3c3259aed..437f66baa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1128.py @@ -9,48 +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.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - total_count: int = Field() - workflows: list[Workflow] = Field() + 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 Workflow(GitHubModel): - """Workflow +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - A GitHub Actions workflow + Input keys and values configured in the workflow file. The maximum number of + properties is 10. Any default properties configured in the workflow file will be + used when `inputs` are omitted. """ - 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) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) __all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ) 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 437f66baa..edf1bf7c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1129.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_0259 import WorkflowRun -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 ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int = Field() + workflow_runs: list[WorkflowRun] = 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(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) 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 224000713..1559b8643 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1130.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_0257 import WorkflowRun +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + 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() - workflow_runs: list[WorkflowRun] = Field() +class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundle -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) + 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__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) + 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_1131.py b/githubkit/versions/ghec_v2022_11_28/models/group_1131.py index 1559b8643..e78d24aec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1131.py @@ -11,55 +11,17 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoAttestationsPostBody(GitHubModel): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" - 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." - ) + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") -class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundle +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" - - -model_rebuild(ReposOwnerRepoAttestationsPostBody) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) - -__all__ = ( - "ReposOwnerRepoAttestationsPostBody", - "ReposOwnerRepoAttestationsPostBodyPropBundle", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) 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 e78d24aec..a764a785c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1132.py @@ -11,17 +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 ReposOwnerRepoAttestationsPostResponse201(GitHubModel): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") + attestations: Missing[ + list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoAttestationsPostResponse201) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" -__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) + 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/ghec_v2022_11_28/models/group_1133.py b/githubkit/versions/ghec_v2022_11_28/models/group_1133.py index a764a785c..e795956c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1133.py @@ -11,89 +11,26 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - attestations: Missing[ - list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( + 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="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="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.", ) - 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 -) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) 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 e795956c5..3416b1207 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,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,21 +18,218 @@ from githubkit.utils import UNSET -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" +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. + """ - 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." + 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.", ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." + 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.", ) - is_alphanumeric: Missing[bool] = Field( + require_last_push_approval: 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.", + 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(ReposOwnerRepoAutolinksPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", +) 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 3416b1207..37470089c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1135.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,107 +16,13 @@ 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( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( 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. - """ + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + 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.", @@ -129,29 +33,29 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview ) 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.", + 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="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + 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`.", + 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 + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ] = Field( default=UNSET, description="Allow specific users, teams, or apps to bypass pull request requirements.", ) -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team @@ -170,11 +74,11 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview ) -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances Allow specific users, teams, or apps to bypass pull request requirements. """ @@ -193,43 +97,16 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview ) -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: list[str] = Field(description="The list of user `login`s with push access") - teams: list[str] = Field(description="The list of team `slug`s with push access") - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with push access" - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions ) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", ) 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 37470089c..199aa5468 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1136.py @@ -16,97 +16,46 @@ from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - 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.", + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." ) - require_last_push_approval: Missing[bool] = Field( + contexts: Missing[list[str]] = Field( default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", + 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.", ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ] ] = Field( default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", + description="The list of status checks to require in order to merge into this branch.", ) -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( 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. + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - 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( + context: str = Field(description="The name of the required check") + app_id: Missing[int] = 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.", + 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(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ) 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 199aa5468..c92d11192 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1137.py @@ -12,50 +12,24 @@ 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( + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + + Examples: + {'contexts': ['contexts']} """ - 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.", - ) + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ) 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 c92d11192..736a856c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1138.py @@ -14,10 +14,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: {'contexts': ['contexts']} @@ -27,9 +27,9 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyO model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ) 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 736a856c2..6e14562a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1139.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1139.py @@ -14,10 +14,11 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: {'contexts': ['contexts']} @@ -27,9 +28,9 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBody model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ) 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 6e14562a0..705f549eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1140.py @@ -14,23 +14,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody Examples: - {'contexts': ['contexts']} + {'apps': ['my-app']} """ - contexts: list[str] = Field(description="The name of the status checks") + 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( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) 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 705f549eb..60a283330 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1141.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody Examples: {'apps': ['my-app']} @@ -26,6 +26,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel) ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) 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 60a283330..ce2d7c174 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1142.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody Examples: {'apps': ['my-app']} @@ -26,6 +26,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) 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 ce2d7c174..84ad571cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1143.py @@ -14,18 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 Examples: - {'apps': ['my-app']} + {'teams': ['justice-league']} """ - 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." - ) + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) 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 84ad571cb..958afae89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1144.py @@ -14,16 +14,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 Examples: - {'teams': ['justice-league']} + {'teams': ['my-team']} """ teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) 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 958afae89..19a5a7072 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1145.py @@ -14,10 +14,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 Examples: {'teams': ['my-team']} @@ -26,6 +26,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) 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 19a5a7072..bf770df8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1146.py @@ -14,18 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody Examples: - {'teams': ['my-team']} + {'users': ['mona']} """ - teams: list[str] = Field(description="The slug values for teams") + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) 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 bf770df8d..047d05a26 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1147.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody Examples: {'users': ['mona']} @@ -24,6 +24,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) 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 047d05a26..181ab0f55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1148.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody Examples: {'users': ['mona']} @@ -24,6 +24,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubMode users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) 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 181ab0f55..5fcd45c02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1149.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1149.py @@ -14,16 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - Examples: - {'users': ['mona']} - """ + new_name: str = Field(description="The new name of the branch.") - users: list[str] = Field(description="The username for users") +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) 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 5fcd45c02..4cd6ff585 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1150.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1150.py @@ -9,17 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody( + GitHubModel +): + """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody""" - new_name: str = Field(description="The new name of the branch.") + status: Literal["approve", "reject"] = Field( + description="The review action to perform on the bypass request." + ) + message: str = Field( + description="A message to include with the review. Has a maximum character length of 2048." + ) -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) +model_rebuild(ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +__all__ = ("ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody",) 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 4cd6ff585..3ead2dfbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1151.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1151.py @@ -9,26 +9,27 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody( +class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200( GitHubModel ): - """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody""" + """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200""" - status: Literal["approve", "reject"] = Field( - description="The review action to perform on the bypass request." - ) - message: str = Field( - description="A message to include with the review. Has a maximum character length of 2048." + bypass_review_id: Missing[int] = Field( + default=UNSET, description="ID of the bypass review." ) -model_rebuild(ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody) +model_rebuild( + ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200 +) -__all__ = ("ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody",) +__all__ = ( + "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200", +) 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 3ead2dfbf..599652b03 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1152.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1152.py @@ -9,27 +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 ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200( - GitHubModel -): - """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200""" +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. + """ - bypass_review_id: Missing[int] = Field( - default=UNSET, description="ID of the bypass review." + 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.", + ) ) -model_rebuild( - ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200 -) +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.", + ) + + +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) __all__ = ( - "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", ) 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 599652b03..08be372cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1153.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1153.py @@ -9,117 +9,67 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1152 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) -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 ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" - 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.", + name: str = Field( + description='The name of the check. For example, "code-coverage".' ) - annotations: Missing[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50 if PYDANTIC_V2 else None, + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = 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/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`." + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + 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." ) - end_column: Missing[int] = Field( + completed_at: Missing[datetime] = Field( default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + description="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`.", ) - title: Missing[str] = Field( + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + 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.", ) - raw_details: Missing[str] = Field( + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", + 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)."', ) -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", - ) - - -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) - -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) 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 bcfbb589c..119ba3d5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1154.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1154.py @@ -18,14 +18,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1153 import ( +from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ReposOwnerRepoCheckRunsPostBodyPropOutput, ) -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" name: str = Field( description='The name of the check. For example, "code-coverage".' @@ -38,22 +38,27 @@ class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): external_id: Missing[str] = Field( default=UNSET, description="A reference for the run on the integrator's system." ) - status: Literal["completed"] = Field() + 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: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + conclusion: Missing[ + 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." + 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, @@ -70,6 +75,6 @@ class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) 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 8c3af6950..642ef6696 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1155.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1155.py @@ -9,72 +9,114 @@ 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 PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1153 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ - name: str = Field( - description='The name of the check. For example, "code-coverage".' + title: 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." ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( + annotations: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50 if PYDANTIC_V2 else None, 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." + 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)\".", ) - status: Missing[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] - ] = Field(default=UNSET) - started_at: Missing[datetime] = Field( + images: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = 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="Adds images to the output displayed in the GitHub pull request UI.", ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", ) - completed_at: Missing[datetime] = Field( + end_column: Missing[int] = Field( default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + title: Missing[str] = Field( default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + description="The title that represents the annotation. The maximum size is 255 characters.", ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, + raw_details: Missing[str] = Field( default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description="Details about this annotation. The maximum size is 64 KB.", ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) + 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) + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", +) 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 642ef6696..955f42479 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1156.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1156.py @@ -9,114 +9,69 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1155 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) -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 ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" - 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, + name: Missing[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/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)\".", + description='The name of the check. For example, "code-coverage".', ) - images: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( + details_url: Missing[str] = Field( default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( - GitHubModel -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." + description="The URL of the integrator's site that has the full details of the check.", ) - 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.", + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - end_column: Missing[int] = Field( + started_at: Missing[datetime] = 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." + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + 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." ) - title: Missing[str] = Field( + completed_at: Missing[datetime] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - raw_details: Missing[str] = Field( + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + actions: Missing[ + list[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(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) 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 847c4bd36..6a1861f02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1157.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1157.py @@ -18,14 +18,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1156 import ( +from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" name: Missing[str] = Field( default=UNSET, @@ -42,18 +42,21 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): default=UNSET, description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + conclusion: Missing[ + 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." + 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, @@ -72,6 +75,6 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) 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 ec7d65d9a..2a8e7cd54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1158.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1158.py @@ -9,72 +9,17 @@ 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_1156 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - 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)."', - ) + head_sha: str = Field(description="The sha of the head commit.") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) 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 2a8e7cd54..c56809f38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1159.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1159.py @@ -12,14 +12,37 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - head_sha: str = Field(description="The sha of the head commit.") + 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.", + ) -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) + app_id: int = Field(description="The `id` of the GitHub App.") + setting: bool = Field( + default=True, + description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + ) + + +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", +) 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 c56809f38..07cb195a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1160.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1160.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_0285 import CheckRun -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 ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int = Field() + check_runs: list[CheckRun] = 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(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) - -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) 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 395b9d416..15a8f3fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1161.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1161.py @@ -9,20 +9,39 @@ from __future__ import annotations +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0283 import CheckRun - - -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" - - total_count: int = Field() - check_runs: list[CheckRun] = Field() - - -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) - -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" + + state: Literal["open", "dismissed"] = Field( + description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." + ) + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = Field( + default=UNSET, + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + create_request: Missing[bool] = Field( + default=UNSET, + description="If `true`, attempt to create an alert dismissal request.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) + +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1162.py b/githubkit/versions/ghec_v2022_11_28/models/group_1162.py index 15a8f3fb1..3d05d5b64 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1162.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1162.py @@ -9,39 +9,39 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - 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`." + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" ) - 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.", + 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." ) - 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.", - ) + 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.", ) - create_request: Missing[bool] = Field( + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="If `true`, attempt to create an alert dismissal request.", + 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(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) 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 3d05d5b64..b178bf51d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1163.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1163.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" @@ -27,12 +27,12 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel) 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." + 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( + repository_lists: 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( @@ -42,6 +42,6 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel) ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) 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 b178bf51d..eaeb5dbf9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1164.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1164.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" @@ -31,17 +31,17 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel) default=UNSET, description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - repository_lists: list[str] = Field( + 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( + repository_owners: 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) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) 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 eaeb5dbf9..75eecf30a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1165.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1165.py @@ -9,39 +9,50 @@ from __future__ import annotations -from typing import Literal +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 ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + 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.", ) - repositories: Missing[list[str]] = Field( + 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="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 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.", ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + started_at: Missing[datetime] = Field( default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - repository_owners: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + 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(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) 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 75eecf30a..de417ce1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1166.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1166.py @@ -9,50 +9,20 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): - """ReposOwnerRepoCodeScanningSarifsPostBody""" - - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", - ) - ref: str = Field( - pattern="^refs/(heads|tags|pull)/.*$", - description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", - ) - sarif: str = Field( - description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secure-coding/sarif-support-for-code-scanning)."' - ) - checkout_uri: Missing[str] = Field( - default=UNSET, - description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - tool_name: Missing[str] = Field( - default=UNSET, - description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', - ) - validate_: Missing[bool] = Field( - default=UNSET, - alias="validate", - description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", - ) - - -model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) - -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) + +from .group_0190 import Codespace + + +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" + + total_count: int = Field() + codespaces: list[Codespace] = Field() + + +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) 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 cf88318aa..9d9c2bbbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1167.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1167.py @@ -9,20 +9,61 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0188 import Codespace +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) 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 9d9c2bbbd..262d6c72c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1168.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1168.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,52 +16,29 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" + + total_count: int = Field() + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - 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).", - ) + path: str = Field() + name: Missing[str] = Field(default=UNSET) + display_name: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoCodespacesPostBody) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", +) 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 262d6c72c..f18ec96c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1169.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1169.py @@ -12,33 +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_0189 import CodespaceMachine -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int = Field() - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( - GitHubModel -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) 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 af22c10d0..14c58fd19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1170.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1170.py @@ -9,20 +9,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 ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" -from .group_0187 import CodespaceMachine + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET + ) -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - total_count: int = Field() - machines: list[CodespaceMachine] = Field() + location: str = Field() + devcontainer_path: Union[str, None] = Field() -model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ( + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", +) 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 14c58fd19..ea29eb2ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1171.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1171.py @@ -9,39 +9,35 @@ 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_0003 import SimpleUser +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" + total_count: int = Field() + secrets: list[RepoCodespacesSecret] = Field() - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET - ) +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + Set repository secrets for GitHub Codespaces. + """ - location: str = Field() - devcontainer_path: Union[str, None] = Field() + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) __all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", + "RepoCodespacesSecret", + "ReposOwnerRepoCodespacesSecretsGetResponse200", ) 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 ea29eb2ed..9ae26cc4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1172.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1172.py @@ -9,35 +9,26 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ( - "RepoCodespacesSecret", - "ReposOwnerRepoCodespacesSecretsGetResponse200", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) 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 9ae26cc4d..637f9ed63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1173.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1173.py @@ -16,19 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + permission: Missing[str] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/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." + 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(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) 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 637f9ed63..75effd211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1174.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1174.py @@ -12,19 +12,14 @@ 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 ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - 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.", - ) + body: str = Field(description="The contents of the comment") -model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) 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 75effd211..a64b1dfaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1175.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1175.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - body: str = Field(description="The contents of the comment") + 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(ReposOwnerRepoCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) 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 a64b1dfaa..757d9d282 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1176.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1176.py @@ -9,23 +9,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 ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the commit comment." + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." + ) + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." + ) + line: Missing[int] = Field( + default=UNSET, + description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", ) -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) 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 757d9d282..8dbfe2128 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1177.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1177.py @@ -12,26 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0285 import CheckRun -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - body: str = Field(description="The contents of the comment.") - path: Missing[str] = Field( - default=UNSET, description="Relative path of the file to comment on." - ) - position: Missing[int] = Field( - default=UNSET, description="Line index in the diff to comment on." - ) - line: Missing[int] = Field( - default=UNSET, - description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", - ) +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int = Field() + check_runs: list[CheckRun] = Field() -model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) 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 9046d6e88..06ebae173 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1178.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1178.py @@ -12,17 +12,70 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0283 import CheckRun +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + message: str = Field(description="The commit message.") + content: str = Field(description="The new file content, using Base64 encoding.") + sha: Missing[str] = Field( + default=UNSET, + description="**Required if you are updating a file**. The blob SHA of the file being replaced.", + ) + branch: Missing[str] = Field( + default=UNSET, + description="The branch name. Default: the repository’s default branch.", + ) + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( + default=UNSET, + description="The person that committed the file. Default: the authenticated user.", + ) + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( + default=UNSET, + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + ) - total_count: int = Field() - check_runs: list[CheckRun] = Field() +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) + The person that committed the file. Default: the authenticated user. + """ -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +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/ghec_v2022_11_28/models/group_1179.py b/githubkit/versions/ghec_v2022_11_28/models/group_1179.py index 06ebae173..b246a17c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1179.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1179.py @@ -16,66 +16,59 @@ from githubkit.utils import UNSET -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" 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.", - ) + 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.", + 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.", + committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( + default=UNSET, description="object containing information about the committer." ) - author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( - default=UNSET, - description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( + default=UNSET, description="object containing information about the author." ) -class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropCommitter +class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - The person that committed the file. Default: the authenticated user. + object containing information about the 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." + name: Missing[str] = Field( + default=UNSET, 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. You'll receive a `422` status code if `email` is omitted." + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", ) - date: Missing[str] = Field(default=UNSET) -class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropAuthor +class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. + object containing information about the author. """ - 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." + name: Missing[str] = Field( + default=UNSET, 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. You'll receive a `422` status code if `email` is omitted." + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", ) - date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) __all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", ) 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 b246a17c2..98b4b8e85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1180.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1180.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,59 +18,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" - - message: str = Field(description="The commit message.") - sha: str = Field(description="The blob SHA of the file being deleted.") - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch", - ) - committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( - default=UNSET, description="object containing information about the committer." - ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - - object containing information about the committer. - """ +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" + state: Literal["dismissed", "open"] = Field( + description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." ) - email: Missing[str] = Field( + dismissed_reason: Missing[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] = 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" + description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", ) - email: Missing[str] = Field( + dismissed_comment: Missing[str] = Field( + max_length=280, default=UNSET, - description="The email of the author (or committer) of the commit", + description="An optional comment associated with dismissing the alert.", ) -model_rebuild(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) 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 98b4b8e85..22c7a2b35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1181.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1181.py @@ -9,36 +9,35 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." - ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] = Field( - default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", - ) - dismissed_comment: Missing[str] = Field( - max_length=280, - default=UNSET, - description="An optional comment associated with dismissing the alert.", - ) - - -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) - -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) + + +class 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", +) 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 22c7a2b35..795166023 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1182.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1182.py @@ -9,35 +9,26 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[DependabotSecret] = Field() - - -class DependabotSecret(GitHubModel): - """Dependabot Secret - - Set secrets for Dependabot. - """ +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/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(ReposOwnerRepoDependabotSecretsGetResponse200) -model_rebuild(DependabotSecret) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ( - "DependabotSecret", - "ReposOwnerRepoDependabotSecretsGetResponse200", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) 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 795166023..d8abaeb32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1183.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1183.py @@ -12,23 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - 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.", + 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.' ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." ) -model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) 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 d8abaeb32..93e1d173a 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,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 ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" - 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.' + 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) ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." + 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(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) 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 93e1d173a..87a3629c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1185.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1185.py @@ -9,61 +9,19 @@ 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 ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" - - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." - ) - task: Missing[str] = Field( - default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", - ) - auto_merge: Missing[bool] = Field( - default=UNSET, - description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", - ) - required_contexts: Missing[list[str]] = Field( - default=UNSET, - description="The [status](https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", - ) - payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( - Field(default=UNSET) - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the deployment." - ) - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", - ) - +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + message: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) 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 87a3629c8..fbbf01aa8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1186.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1186.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,12 +18,40 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" - - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) - -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +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_1187.py b/githubkit/versions/ghec_v2022_11_28/models/group_1187.py index fbbf01aa8..961ac2526 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1187.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1187.py @@ -14,44 +14,19 @@ 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""" +class ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody""" - 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." + status: Literal["approve", "deny"] = Field( + description="The review action to perform on the bypass request." ) - 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`", + message: str = Field( + description="A message to include with the review. Has a maximum character length of 2048." ) -model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) +model_rebuild(ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) +__all__ = ("ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody",) 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 961ac2526..287c5f54c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1188.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1188.py @@ -16,17 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody""" +class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody""" status: Literal["approve", "deny"] = Field( - description="The review action to perform on the bypass request." + description="The review action to perform on the dismissal request." ) message: str = Field( description="A message to include with the review. Has a maximum character length of 2048." ) -model_rebuild(ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody",) 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 287c5f54c..a17cd6785 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1189.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1189.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 ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody""" +class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200( + GitHubModel +): + """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200""" - status: Literal["approve", "deny"] = Field( - description="The review action to perform on the dismissal request." - ) - message: str = Field( - description="A message to include with the review. Has a maximum character length of 2048." + dismissal_review_id: Missing[int] = Field( + default=UNSET, description="ID of the dismissal review." ) -model_rebuild(ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200) -__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200",) 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 a17cd6785..7a5ec1511 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1190.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1190.py @@ -11,21 +11,38 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200( - GitHubModel -): - """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - dismissal_review_id: Missing[int] = Field( - default=UNSET, description="ID of the dismissal review." + 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.", + ) + + +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(ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200) +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) -__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200",) +__all__ = ( + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", +) 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 7a5ec1511..a3780a43f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1191.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1191.py @@ -9,40 +9,61 @@ 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_0341 import DeploymentBranchPolicySettings + -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", + 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.", ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + reviewers: Missing[ + Union[ + list[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] + ] = Field( default=UNSET, - description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", + description="The 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 ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - 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. - """ + 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(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) __all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ) 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 21f61a06e..e8d56e3db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1192.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1192.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,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0339 import DeploymentBranchPolicySettings +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" -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`.", - ) + total_count: int = Field( + description="The number of deployment branch policies for the environment." ) + branch_policies: list[DeploymentBranchPolicy] = Field() -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." + ) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( default=UNSET, - description="The id of the user or team who can review the deployment", + 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(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", + "DeploymentBranchPolicy", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", ) 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 e8d56e3db..b5d03989b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1193.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1193.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,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( GitHubModel ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - - total_count: int = Field( - description="The number of deployment branch policies for the environment." - ) - branch_policies: list[DeploymentBranchPolicy] = Field() - + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" -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( + integration_id: Missing[int] = Field( default=UNSET, - description="The name pattern that branches or tags must match in order to deploy to the environment.", - ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag." + description="The ID of the custom app that will be enabled on the environment.", ) model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody ) -model_rebuild(DeploymentBranchPolicy) __all__ = ( - "DeploymentBranchPolicy", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ) 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 b5d03989b..d4f8e5732 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1194.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1194.py @@ -15,22 +15,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0347 import CustomDeploymentRuleApp -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( GitHubModel ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - integration_id: Missing[int] = Field( + total_count: Missing[int] = Field( default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + 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( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 ) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ) 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 aaa7dffcc..2e58c9329 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1195.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1195.py @@ -12,32 +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_0345 import CustomDeploymentRuleApp +from .group_0253 import ActionsSecret -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" - 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) + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) 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 c9ec503bd..60d9411b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1196.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1196.py @@ -13,16 +13,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0251 import ActionsSecret +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-public-key) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) 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 60d9411b7..95771e41b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1197.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1197.py @@ -13,17 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0254 import ActionsVariable -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - 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 ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) 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 5cf2bfa60..376060834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1198.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1198.py @@ -13,16 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0252 import ActionsVariable +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") - total_count: int = Field() - variables: list[ActionsVariable] = Field() +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) 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 376060834..6a0d6de99 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1199.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1199.py @@ -12,15 +12,17 @@ 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 ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + 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(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) 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 6a0d6de99..abc9b3749 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1200.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1200.py @@ -16,13 +16,23 @@ from githubkit.utils import UNSET -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",) +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" + + organization: Missing[str] = Field( + default=UNSET, + description="Optional parameter to specify the organization name if forking into an organization.", + ) + name: Missing[str] = Field( + default=UNSET, + description="When forking from an existing repository, a new name for the fork.", + ) + default_branch_only: Missing[bool] = Field( + default=UNSET, + description="When forking from an existing repository, fork with only the default branch.", + ) + + +model_rebuild(ReposOwnerRepoForksPostBody) + +__all__ = ("ReposOwnerRepoForksPostBody",) 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 abc9b3749..f4b8ca964 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1201.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1201.py @@ -16,23 +16,16 @@ from githubkit.utils import UNSET -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - organization: Missing[str] = Field( + content: str = Field(description="The new blob's content.") + encoding: 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.", + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoForksPostBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("ReposOwnerRepoForksPostBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) 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 f4b8ca964..111a9d4a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1202.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1202.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,16 +18,74 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +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 - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( + 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='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + 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(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) 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 111a9d4a5..e02988ad3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1203.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1203.py @@ -9,83 +9,20 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class 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 ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - 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`.", + 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(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) 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 e02988ad3..dc680ffcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1204.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1204.py @@ -12,17 +12,20 @@ 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 ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - 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 to set this reference to") + force: Missing[bool] = Field( + default=UNSET, + description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) 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 dc680ffcd..2366c3d87 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1205.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1205.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,16 +19,43 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +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. + """ - sha: str = Field(description="The SHA1 value to set this reference to") - force: Missing[bool] = Field( + 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="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="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(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ( + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", +) 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 2366c3d87..1d6bd8e59 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,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,43 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" - tag: str = Field( - description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." ) - 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( + base_tree: Missing[str] = Field( default=UNSET, - description="An object with information about the individual creating the tag.", + 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 ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - 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( + 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="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="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(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) __all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ) 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 1d6bd8e59..0a8c270bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1207.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1207.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,45 +18,51 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + name: Missing[str] = Field( + default=UNSET, + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", ) - base_tree: Missing[str] = Field( + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = 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="Key/value pairs to provide settings for this webhook.", ) - - -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." + 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.", ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + active: Missing[bool] = 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="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." + + +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - sha: Missing[Union[str, None]] = Field( + content_type: 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="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - content: Missing[str] = Field( + secret: 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.", + 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(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) __all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", ) 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 0a8c270bb..aead6592d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1208.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1208.py @@ -9,60 +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_0011 import WebhookConfig -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( +class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: Missing[WebhookConfig] = Field( default=UNSET, - description="Key/value pairs to provide settings for this webhook.", + 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.", + 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.", ) - active: Missing[bool] = Field( + add_events: Missing[list[str]] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + description="Determines a list of events to be added to the list of events that the Hook triggers for.", ) - - -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( + remove_events: Missing[list[str]] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", ) - secret: Missing[str] = Field( + active: Missing[bool] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) -__all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", -) +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) 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 aead6592d..150aaa1f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1209.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1209.py @@ -9,41 +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_0011 import WebhookConfig - -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - 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.", + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - remove_events: Missing[list[str]] = Field( + content_type: Missing[str] = Field( default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - active: Missing[bool] = Field( + secret: Missing[str] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) 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 150aaa1f2..4e11d0489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1210.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1210.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,23 +18,28 @@ from githubkit.utils import UNSET -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + 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`.", ) - content_type: Missing[str] = Field( + vcs_password: Missing[str] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="If authentication is required, the password to provide to `vcs_url`.", ) - secret: Missing[str] = Field( + tfvc_project: Missing[str] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + description="For a tfvc import, the name of the project that is being imported.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ("ReposOwnerRepoImportPutBody",) 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 4e11d0489..73c9a3a1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1211.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1211.py @@ -18,21 +18,20 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - 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`.", + description="The username to provide to the originating repository.", ) vcs_password: Missing[str] = Field( default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", + 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, @@ -40,6 +39,6 @@ class ReposOwnerRepoImportPutBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoImportPutBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) 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 73c9a3a1e..bac05d75f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1212.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1212.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,27 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - 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.", - ) + 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(ReposOwnerRepoImportPatchBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoImportPatchBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) 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 bac05d75f..7727d20f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1213.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1213.py @@ -9,20 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") + 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(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) 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 7727d20f6..759975570 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1214.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1214.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Literal - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" - - use_lfs: Literal["opt_in", "opt_out"] = Field( - description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." - ) +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoImportLfsPatchBody) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) 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 759975570..3569862c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1215.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1215.py @@ -9,13 +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 ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" + 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(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) 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 3569862c6..6c961bc46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1216.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1216.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,17 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" - 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`.", - ) + title: Union[str, int] = Field(description="The title of the issue.") + body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + ) + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + ) + type: Missing[Union[str, None]] = Field( + default=UNSET, + description="The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._", + ) + + +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) +model_rebuild(ReposOwnerRepoIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) 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 6c961bc46..2e91230e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1217.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1217.py @@ -9,54 +9,17 @@ 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 ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" - - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", - ) - assignees: Missing[list[str]] = Field( - default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", - ) - type: Missing[Union[str, None]] = Field( - default=UNSET, - description="The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._", - ) - - -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesPostBody) -model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) - -__all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", -) + + +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_1218.py b/githubkit/versions/ghec_v2022_11_28/models/group_1218.py index 2e91230e7..e13da8a38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1218.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1218.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - body: str = Field(description="The contents of the comment.") + 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(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) 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 e13da8a38..51a855132 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1219.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1219.py @@ -9,23 +9,67 @@ 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 ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + title: Missing[Union[str, int, None]] = Field( + default=UNSET, description="The title of the issue." + ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="The contents of the issue." + ) + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Username to assign to this issue. **This field is closing down.**", + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="The open or closed state of the issue." + ) + state_reason: Missing[ + Union[None, Literal["completed", "not_planned", "duplicate", "reopened"]] + ] = Field( + default=UNSET, + description="The reason for the state change. Ignored unless `state` is changed.", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment." + default=UNSET, + description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", ) + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", + ) + type: Missing[Union[str, None]] = Field( + default=UNSET, + description="The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.", + ) + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) 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 0b68f57a6..5b60a1932 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1220.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1220.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,58 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - title: Missing[Union[str, int, None]] = Field( - default=UNSET, description="The title of the issue." - ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="The contents of the issue." - ) - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Username to assign to this issue. **This field is closing down.**", - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="The open or closed state of the issue." - ) - state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] = Field( - default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", - ) assignees: Missing[list[str]] = Field( default=UNSET, - description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", - ) - type: Missing[Union[str, None]] = Field( - default=UNSET, - description="The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.", + 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._", ) -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) 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 5b60a1932..1c74a1195 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1221.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1221.py @@ -16,15 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" assignees: Missing[list[str]] = Field( default=UNSET, - description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", + description="Usernames 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(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) 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 1c74a1195..49a6d6da0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1222.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1222.py @@ -12,19 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - assignees: Missing[list[str]] = Field( - default=UNSET, - description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) 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 49a6d6da0..761aba5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1223.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1223.py @@ -11,15 +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 ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - body: str = Field(description="The contents of the comment.") + 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)."', + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) 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 761aba5f8..ed2c2a834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1224.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1224.py @@ -16,16 +16,24 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - 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)."', - ) + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) 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 ed2c2a834..d59513ace 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1225.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1225.py @@ -11,29 +11,15 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) 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 d59513ace..ebaf1ae29 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1226.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1226.py @@ -11,15 +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 ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: str = Field() + 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(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) 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 ebaf1ae29..f67daaa62 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1227.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1227.py @@ -16,16 +16,24 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - 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)."', - ) + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) 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 f67daaa62..dfb903bb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1228.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1228.py @@ -11,29 +11,15 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) 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 dfb903bb9..485b30e7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1229.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1229.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 ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - name: str = Field() + 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(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) 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 485b30e7e..42295dd52 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1230.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1230.py @@ -14,21 +14,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - 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: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue." ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) 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 42295dd52..f813db6bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1231.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1231.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 ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - 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." - ) + sub_issue_id: int = Field(description="The id of the sub-issue to remove") -model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) 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 f813db6bf..7e9d65950 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1232.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1232.py @@ -12,14 +12,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - sub_issue_id: int = Field(description="The id of the sub-issue to remove") + sub_issue_id: int = Field( + description="The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue" + ) + replace_parent: Missing[bool] = Field( + default=UNSET, + description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1233.py b/githubkit/versions/ghec_v2022_11_28/models/group_1233.py index 7e9d65950..f3aab1e81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1233.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1233.py @@ -16,18 +16,20 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" - sub_issue_id: int = Field( - description="The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue" + sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") + after_id: Missing[int] = Field( + default=UNSET, + description="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", ) - replace_parent: Missing[bool] = Field( + before_id: Missing[int] = Field( default=UNSET, - description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", + description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1234.py b/githubkit/versions/ghec_v2022_11_28/models/group_1234.py index f3aab1e81..c1416622e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1234.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1234.py @@ -16,20 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") - after_id: Missing[int] = 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 id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", - ) - before_id: Missing[int] = Field( - default=UNSET, - description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", + description='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(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) +__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1235.py b/githubkit/versions/ghec_v2022_11_28/models/group_1235.py index c1416622e..27dc128b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1235.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1235.py @@ -16,17 +16,22 @@ from githubkit.utils import UNSET -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - 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( + 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='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="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoKeysPostBody) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoKeysPostBody",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1236.py b/githubkit/versions/ghec_v2022_11_28/models/group_1236.py index 27dc128b3..810ac1cad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1236.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1236.py @@ -16,11 +16,12 @@ from githubkit.utils import UNSET -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - 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)."' + 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, @@ -32,6 +33,6 @@ class ReposOwnerRepoLabelsPostBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1237.py b/githubkit/versions/ghec_v2022_11_28/models/group_1237.py index 810ac1cad..7be32859a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1237.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1237.py @@ -12,27 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - 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.", + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1238.py b/githubkit/versions/ghec_v2022_11_28/models/group_1238.py index 7be32859a..8d864c09c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1238.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1238.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 -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - branch: str = Field( - description="The name of the branch which should be updated to match upstream." + 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(ReposOwnerRepoMergeUpstreamPostBody) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) +__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1239.py b/githubkit/versions/ghec_v2022_11_28/models/group_1239.py index 8d864c09c..4c86e4385 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1239.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1239.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,21 +19,23 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" - base: str = Field( - description="The name of the base branch that the head will be merged into." + 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`.", ) - head: str = Field( - description="The head to merge. This can be a branch name or a commit SHA1." + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - commit_message: Missing[str] = Field( + due_on: Missing[datetime] = Field( default=UNSET, - description="Commit message to use for the merge commit. If omitted, a default message will be used.", + 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(ReposOwnerRepoMergesPostBody) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1240.py b/githubkit/versions/ghec_v2022_11_28/models/group_1240.py index 4c86e4385..c674f9121 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1240.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1240.py @@ -19,10 +19,12 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - title: str = Field(description="The title of the milestone.") + 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`.", @@ -36,6 +38,6 @@ class ReposOwnerRepoMilestonesPostBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoMilestonesPostBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1241.py b/githubkit/versions/ghec_v2022_11_28/models/group_1241.py index c674f9121..7a766cc33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1241.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1241.py @@ -10,7 +10,6 @@ from __future__ import annotations from datetime import datetime -from typing import Literal from pydantic import Field @@ -19,25 +18,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" - 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( + last_read_at: 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`.", + 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(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1242.py b/githubkit/versions/ghec_v2022_11_28/models/group_1242.py index 7a766cc33..41ae3801e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1242.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1242.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoNotificationsPutBody) +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1243.py b/githubkit/versions/ghec_v2022_11_28/models/group_1243.py index 41ae3801e..aaa502a31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1243.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1243.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 githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + Update the source for the repository. Must include the branch name and path. + """ - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + branch: str = Field( + description="The repository branch used to publish your site's source files." + ) + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." + ) -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1244.py b/githubkit/versions/ghec_v2022_11_28/models/group_1244.py index aaa502a31..39496f1bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1244.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1244.py @@ -9,27 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - Update the source for the repository. Must include the branch name and path. - """ +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" - branch: str = Field( - description="The repository branch used to publish your site's source files." + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', ) - path: Literal["/", "/docs"] = Field( - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Literal["legacy", "workflow"] = Field( + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", ) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1245.py b/githubkit/versions/ghec_v2022_11_28/models/group_1245.py index c7658c920..b2dae478f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1245.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1245.py @@ -17,11 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" cname: Missing[Union[str, None]] = Field( default=UNSET, @@ -31,21 +31,20 @@ class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): 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." + 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) + 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(ReposOwnerRepoPagesPutBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1246.py b/githubkit/versions/ghec_v2022_11_28/models/group_1246.py index 7b7d8d0c5..bba00f593 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1246.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1246.py @@ -17,15 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."' ) https_enforced: Missing[bool] = Field( default=UNSET, @@ -35,16 +34,18 @@ class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): default=UNSET, description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) public: Missing[bool] = Field( default=UNSET, description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1247.py b/githubkit/versions/ghec_v2022_11_28/models/group_1247.py index 590f7e909..f8ce2c9f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1247.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1247.py @@ -17,14 +17,15 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."' + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', ) https_enforced: Missing[bool] = Field( default=UNSET, @@ -40,12 +41,11 @@ class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ] ] = Field(default=UNSET) - public: Missing[bool] = Field( - default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + public: bool = Field( + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1248.py b/githubkit/versions/ghec_v2022_11_28/models/group_1248.py index 06ec0a28b..7a6eed035 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1248.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1248.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" cname: Missing[Union[str, None]] = Field( default=UNSET, description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", + https_enforced: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." ) build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, @@ -41,11 +40,12 @@ class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ] ] = Field(default=UNSET) - public: bool = Field( - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1249.py b/githubkit/versions/ghec_v2022_11_28/models/group_1249.py index 1eff2bc53..693572351 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1249.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1249.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,35 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" + The source branch and directory used to publish your Pages site. + """ - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: 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.", + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( + path: Missing[Literal["/", "/docs"]] = 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="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1250.py b/githubkit/versions/ghec_v2022_11_28/models/group_1250.py index 693572351..b5de87405 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1250.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1250.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1249 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Missing[Literal["/", "/docs"]] = Field( + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + ) + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." ) -model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1251.py b/githubkit/versions/ghec_v2022_11_28/models/group_1251.py index 135305909..61c687775 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1251.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1251.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1250 import ReposOwnerRepoPagesPostBodyPropSource +from .group_1249 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" - 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"`.', + build_type: Literal["legacy", "workflow"] = Field( + 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." + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + default=UNSET, + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1252.py b/githubkit/versions/ghec_v2022_11_28/models/group_1252.py index 8ac206a53..d9c520300 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1252.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1252.py @@ -9,29 +9,40 @@ from __future__ import annotations -from 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_1250 import ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" + The object used to create GitHub Pages deployment + """ - build_type: Literal["legacy", "workflow"] = Field( - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' + 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.", ) - source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + environment: Missing[str] = Field( default=UNSET, - description="The source branch and directory used to publish your Pages site.", + 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(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1253.py b/githubkit/versions/ghec_v2022_11_28/models/group_1253.py index d9c520300..c70eda7b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1253.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1253.py @@ -12,37 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - 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." + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1254.py b/githubkit/versions/ghec_v2022_11_28/models/group_1254.py index c70eda7b0..a5aa6012f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1254.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1254.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 ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1255.py b/githubkit/versions/ghec_v2022_11_28/models/group_1255.py index a5aa6012f..fd6b4ac7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1255.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1255.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_0227 import CustomPropertyValue -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." +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(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1256.py b/githubkit/versions/ghec_v2022_11_28/models/group_1256.py index a0c07fb23..fc07eac19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1256.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1256.py @@ -12,18 +12,44 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0225 import CustomPropertyValue +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" - - properties: list[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." + 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(ReposOwnerRepoPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoPullsPostBody) -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1257.py b/githubkit/versions/ghec_v2022_11_28/models/group_1257.py index fc07eac19..b48ea50a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1257.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1257.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 ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" + + body: str = Field(description="The text of the reply to the review comment.") + + +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) + +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1258.py b/githubkit/versions/ghec_v2022_11_28/models/group_1258.py index b48ea50a0..7206cc70c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1258.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1258.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - body: str = Field(description="The text of the reply to the review comment.") + 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(ReposOwnerRepoPullsCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1259.py b/githubkit/versions/ghec_v2022_11_28/models/group_1259.py index 7206cc70c..b3df1fc05 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1259.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1259.py @@ -14,18 +14,33 @@ 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 ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - 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." + 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(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1260.py b/githubkit/versions/ghec_v2022_11_28/models/group_1260.py index b3df1fc05..3bd074c1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1260.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1260.py @@ -18,29 +18,48 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the pull request." + 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", ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - state: Missing[Literal["open", "closed"]] = Field( + devcontainer_path: Missing[str] = Field( default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", + description="Path to devcontainer.json config to use for this codespace", ) - base: Missing[str] = Field( + multi_repo_permissions_opt_out: Missing[bool] = Field( default=UNSET, - description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", + description="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" ) - maintainer_can_modify: Missing[bool] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + description="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(ReposOwnerRepoPullsPullNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1261.py b/githubkit/versions/ghec_v2022_11_28/models/group_1261.py index 3bd074c1a..9c11e4401 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1261.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1261.py @@ -18,48 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - 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.", + 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`." ) - 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.", + path: str = Field( + description="The relative path to the file that necessitates a comment." ) - client_ip: Missing[str] = Field( + position: Missing[int] = Field( default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" + description='**This 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.', ) - devcontainer_path: Missing[str] = Field( + side: Missing[Literal["LEFT", "RIGHT"]] = Field( default=UNSET, - description="Path to devcontainer.json config to use for this codespace", + 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.', ) - multi_repo_permissions_opt_out: Missing[bool] = Field( + line: Missing[int] = Field( default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", + 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.", ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( + start_line: Missing[int] = Field( default=UNSET, - description="Time in minutes before codespace stops from inactivity", + 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.', ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + 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.', ) - retention_period_minutes: Missing[int] = Field( + in_reply_to: 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).", + 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(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1262.py b/githubkit/versions/ghec_v2022_11_28/models/group_1262.py index 9c11e4401..19ce96346 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1262.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1262.py @@ -9,54 +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 ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" body: str = Field(description="The text of the review comment.") - commit_id: str = Field( - description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." - ) - path: str = Field( - description="The relative path to the file that necessitates a comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/enterprise-cloud@latest//articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', - ) - line: Missing[int] = Field( - default=UNSET, - description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", - ) - start_line: Missing[int] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', - ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', - ) - in_reply_to: Missing[int] = Field( - default=UNSET, - description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) + + +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1263.py b/githubkit/versions/ghec_v2022_11_28/models/group_1263.py index 19ce96346..ea6df3d24 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1263.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1263.py @@ -9,17 +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 -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - body: str = Field(description="The text of the review comment.") + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." + ) + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." + ) + sha: Missing[str] = Field( + default=UNSET, + description="SHA that pull request head must match to allow merge.", + ) + merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( + default=UNSET, description="The merge method to use." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1264.py b/githubkit/versions/ghec_v2022_11_28/models/group_1264.py index ea6df3d24..d66d3bdba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1264.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1264.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,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - commit_title: Missing[str] = Field( - default=UNSET, description="Title for the automatic commit message." - ) - commit_message: Missing[str] = Field( - default=UNSET, description="Extra detail to append to automatic commit message." - ) - sha: Missing[str] = Field( - default=UNSET, - description="SHA that pull request head must match to allow merge.", - ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1265.py b/githubkit/versions/ghec_v2022_11_28/models/group_1265.py index d66d3bdba..bd6450076 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1265.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1265.py @@ -16,13 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1266.py b/githubkit/versions/ghec_v2022_11_28/models/group_1266.py index bd6450076..902cd85dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1266.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1266.py @@ -16,13 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + 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(ReposOwnerRepoPullsPullNumberMergePutResponse409) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1267.py b/githubkit/versions/ghec_v2022_11_28/models/group_1267.py index 902cd85dd..a68a64ae9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1267.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1267.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be requested." + reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." + team_reviewers: list[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1268.py b/githubkit/versions/ghec_v2022_11_28/models/group_1268.py index a68a64ae9..80abd70e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1268.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1268.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." + reviewers: list[str] = Field( + description="An array of user `login`s that will be removed." ) - team_reviewers: list[str] = Field( - description="An array of team `slug`s that will be requested." + team_reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1269.py b/githubkit/versions/ghec_v2022_11_28/models/group_1269.py index 80abd70e6..3da9be3cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1269.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1269.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +18,50 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" + + commit_id: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", + ) + body: Missing[str] = Field( + default=UNSET, + description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", + ) + event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( + default=UNSET, + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", + ) + comments: Missing[ + list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] + ] = Field( + default=UNSET, + description="Use the following table to specify the location, destination, and contents of the draft review comment.", + ) + + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be removed." + path: str = Field( + description="The relative path to the file that necessitates a review comment." ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." + 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(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1270.py b/githubkit/versions/ghec_v2022_11_28/models/group_1270.py index 3da9be3cf..60600e7a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1270.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1270.py @@ -9,59 +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 ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - - commit_id: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", - ) - body: Missing[str] = Field( - default=UNSET, - description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", - ) - event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( - default=UNSET, - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", - ) - comments: Missing[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] - ] = Field( - default=UNSET, - description="Use the following table to specify the location, destination, and contents of the draft review comment.", - ) -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - 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) + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1271.py b/githubkit/versions/ghec_v2022_11_28/models/group_1271.py index 60600e7a7..0c8535339 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1271.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1271.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 ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - body: str = Field(description="The body text of the pull request review.") + message: str = Field( + description="The message for the pull request review dismissal" + ) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1272.py b/githubkit/versions/ghec_v2022_11_28/models/group_1272.py index 0c8535339..6298e6dda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1272.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1272.py @@ -18,15 +18,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - message: str = Field( - description="The message for the pull request review dismissal" + 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." ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1273.py b/githubkit/versions/ghec_v2022_11_28/models/group_1273.py index 6298e6dda..2cd70e70e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1273.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1273.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,17 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - 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." + expected_head_sha: Missing[str] = Field( + default=UNSET, + description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1274.py b/githubkit/versions/ghec_v2022_11_28/models/group_1274.py index 2cd70e70e..0846546b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1274.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1274.py @@ -16,15 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - expected_head_sha: Missing[str] = Field( - default=UNSET, - description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1275.py b/githubkit/versions/ghec_v2022_11_28/models/group_1275.py index 0846546b8..e8299b1e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1275.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1275.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,40 @@ 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",) +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" + + tag_name: str = Field(description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` to create a draft (unpublished) release, `false` to create a published one.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + ) + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + ) + generate_release_notes: Missing[bool] = Field( + default=UNSET, + description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", + ) + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + default=UNSET, + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + ) + + +model_rebuild(ReposOwnerRepoReleasesPostBody) + +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1276.py b/githubkit/versions/ghec_v2022_11_28/models/group_1276.py index e8299b1e6..1c74bbef7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1276.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1276.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,40 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesPostBody(GitHubModel): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - tag_name: str = Field(description="The name of the tag.") - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the release.") - body: Missing[str] = Field( - default=UNSET, description="Text describing the contents of the tag." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` to create a draft (unpublished) release, `false` to create a published one.", - ) - prerelease: Missing[bool] = Field( - default=UNSET, - description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", - ) - discussion_category_name: Missing[str] = Field( - default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', - ) - generate_release_notes: Missing[bool] = Field( - default=UNSET, - description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", - ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + description="An alternate short description of the asset. Used in place of the filename.", ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesPostBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesPostBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1277.py b/githubkit/versions/ghec_v2022_11_28/models/group_1277.py index 1c74bbef7..05de52925 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1277.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1277.py @@ -16,17 +16,26 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( + 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="An alternate short description of the asset. Used in place of the filename.", + 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.", ) - state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1278.py b/githubkit/versions/ghec_v2022_11_28/models/group_1278.py index 05de52925..14a71f3c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1278.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1278.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,36 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - tag_name: str = Field( - description="The tag name for the release. This can be an existing tag or a new one." - ) + 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 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="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.", ) - previous_tag_name: Missing[str] = Field( + make_latest: Missing[Literal["true", "false", "legacy"]] = 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="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.", ) - configuration_file_path: Missing[str] = Field( + discussion_category_name: Missing[str] = Field( default=UNSET, - description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", + description='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(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1279.py b/githubkit/versions/ghec_v2022_11_28/models/group_1279.py index 14a71f3c8..2e3235af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1279.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1279.py @@ -14,40 +14,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - 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)."', + 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(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1280.py b/githubkit/versions/ghec_v2022_11_28/models/group_1280.py index 2e3235af7..94a753609 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1280.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1280.py @@ -9,21 +9,89 @@ 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_0084 import RepositoryRulesetBypassActor +from .group_0089 import RepositoryRulesetConditions +from .group_0099 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0100 import RepositoryRuleUpdate +from .group_0102 import RepositoryRuleRequiredLinearHistory +from .group_0103 import RepositoryRuleRequiredDeployments +from .group_0106 import RepositoryRulePullRequest +from .group_0108 import RepositoryRuleRequiredStatusChecks +from .group_0110 import RepositoryRuleCommitMessagePattern +from .group_0112 import RepositoryRuleCommitAuthorEmailPattern +from .group_0114 import RepositoryRuleCommitterEmailPattern +from .group_0116 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleTagNamePattern +from .group_0120 import RepositoryRuleFilePathRestriction +from .group_0122 import RepositoryRuleMaxFilePathLength +from .group_0124 import RepositoryRuleFileExtensionRestriction +from .group_0126 import RepositoryRuleMaxFileSize +from .group_0129 import RepositoryRuleWorkflows +from .group_0131 import RepositoryRuleCodeScanning +from .group_0138 import RepositoryRuleMergeQueue -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 ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[RepositoryRulesetConditions] = Field( + default=UNSET, + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoRulesetsPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1281.py b/githubkit/versions/ghec_v2022_11_28/models/group_1281.py index 669a5ace8..2da2451a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1281.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1281.py @@ -17,42 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0083 import RepositoryRulesetBypassActor -from .group_0088 import RepositoryRulesetConditions -from .group_0098 import ( +from .group_0084 import RepositoryRulesetBypassActor +from .group_0089 import RepositoryRulesetConditions +from .group_0099 import ( RepositoryRuleCreation, RepositoryRuleDeletion, RepositoryRuleNonFastForward, RepositoryRuleRequiredSignatures, ) -from .group_0099 import RepositoryRuleUpdate -from .group_0101 import RepositoryRuleRequiredLinearHistory -from .group_0102 import RepositoryRuleMergeQueue -from .group_0104 import RepositoryRuleRequiredDeployments -from .group_0107 import RepositoryRulePullRequest -from .group_0109 import RepositoryRuleRequiredStatusChecks -from .group_0111 import RepositoryRuleCommitMessagePattern -from .group_0113 import RepositoryRuleCommitAuthorEmailPattern -from .group_0115 import RepositoryRuleCommitterEmailPattern -from .group_0117 import RepositoryRuleBranchNamePattern -from .group_0119 import RepositoryRuleTagNamePattern -from .group_0121 import RepositoryRuleFilePathRestriction -from .group_0123 import RepositoryRuleMaxFilePathLength -from .group_0125 import RepositoryRuleFileExtensionRestriction -from .group_0127 import RepositoryRuleMaxFileSize -from .group_0130 import RepositoryRuleWorkflows -from .group_0132 import RepositoryRuleCodeScanning +from .group_0100 import RepositoryRuleUpdate +from .group_0102 import RepositoryRuleRequiredLinearHistory +from .group_0103 import RepositoryRuleRequiredDeployments +from .group_0106 import RepositoryRulePullRequest +from .group_0108 import RepositoryRuleRequiredStatusChecks +from .group_0110 import RepositoryRuleCommitMessagePattern +from .group_0112 import RepositoryRuleCommitAuthorEmailPattern +from .group_0114 import RepositoryRuleCommitterEmailPattern +from .group_0116 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleTagNamePattern +from .group_0120 import RepositoryRuleFilePathRestriction +from .group_0122 import RepositoryRuleMaxFilePathLength +from .group_0124 import RepositoryRuleFileExtensionRestriction +from .group_0126 import RepositoryRuleMaxFileSize +from .group_0129 import RepositoryRuleWorkflows +from .group_0131 import RepositoryRuleCodeScanning +from .group_0138 import RepositoryRuleMergeQueue -class ReposOwnerRepoRulesetsPostBody(GitHubModel): - """ReposOwnerRepoRulesetsPostBody""" +class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" - name: str = Field(description="The name of the ruleset.") + 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: 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." + 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, @@ -92,6 +93,6 @@ class ReposOwnerRepoRulesetsPostBody(GitHubModel): ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1282.py b/githubkit/versions/ghec_v2022_11_28/models/group_1282.py index 36533a217..d03e15fb0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1282.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1282.py @@ -17,82 +17,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0083 import RepositoryRulesetBypassActor -from .group_0088 import RepositoryRulesetConditions -from .group_0098 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0099 import RepositoryRuleUpdate -from .group_0101 import RepositoryRuleRequiredLinearHistory -from .group_0102 import RepositoryRuleMergeQueue -from .group_0104 import RepositoryRuleRequiredDeployments -from .group_0107 import RepositoryRulePullRequest -from .group_0109 import RepositoryRuleRequiredStatusChecks -from .group_0111 import RepositoryRuleCommitMessagePattern -from .group_0113 import RepositoryRuleCommitAuthorEmailPattern -from .group_0115 import RepositoryRuleCommitterEmailPattern -from .group_0117 import RepositoryRuleBranchNamePattern -from .group_0119 import RepositoryRuleTagNamePattern -from .group_0121 import RepositoryRuleFilePathRestriction -from .group_0123 import RepositoryRuleMaxFilePathLength -from .group_0125 import RepositoryRuleFileExtensionRestriction -from .group_0127 import RepositoryRuleMaxFileSize -from .group_0130 import RepositoryRuleWorkflows -from .group_0132 import RepositoryRuleCodeScanning +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", + 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`." ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - conditions: Missing[RepositoryRulesetConditions] = Field( + resolution_comment: Missing[Union[str, None]] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + description="An optional comment when closing or reopening an alert. Cannot be updated or deleted.", ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1283.py b/githubkit/versions/ghec_v2022_11_28/models/group_1283.py index d03e15fb0..decc899b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1283.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1283.py @@ -9,33 +9,24 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - 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`." + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( + description="The reason for bypassing push protection." ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when closing or reopening an alert. Cannot be updated or deleted.", + placeholder_id: str = Field( + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." ) -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1284.py b/githubkit/versions/ghec_v2022_11_28/models/group_1284.py index decc899b3..e513640d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1284.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1284.py @@ -9,24 +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 -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( - description="The reason for bypassing push protection." + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." ) - placeholder_id: str = Field( - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." + 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(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1285.py b/githubkit/versions/ghec_v2022_11_28/models/group_1285.py index e513640d6..892aedcd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1285.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1285.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,19 @@ from githubkit.utils import UNSET -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." - ) - target_url: Missing[Union[str, None]] = Field( + subscribed: 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: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." + description="Determines if notifications should be received from this repository.", ) - context: Missing[str] = Field( + ignored: Missing[bool] = Field( default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + description="Determines if all notifications should be blocked from this repository.", ) -model_rebuild(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1286.py b/githubkit/versions/ghec_v2022_11_28/models/group_1286.py index 892aedcd1..59aae89ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1286.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1286.py @@ -12,23 +12,16 @@ 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 ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - 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.", + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." ) -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1287.py b/githubkit/versions/ghec_v2022_11_28/models/group_1287.py index 59aae89ec..0e1dc53ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1287.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1287.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." + 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(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoTopicsPutBody) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1288.py b/githubkit/versions/ghec_v2022_11_28/models/group_1288.py index 0e1dc53ec..df5879cb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1288.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1288.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 -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - 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." + 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(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1289.py b/githubkit/versions/ghec_v2022_11_28/models/group_1289.py index df5879cb9..91764e3b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1289.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1289.py @@ -16,21 +16,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - new_owner: str = Field( - description="The username or organization name the repository will be transferred to." + 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." ) - new_name: Missing[str] = Field( - default=UNSET, description="The new name to be given to the 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`.", ) - team_ids: Missing[list[int]] = Field( + private: Missing[bool] = 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="Either `true` to create a new private repository or `false` to create a new public one.", ) -model_rebuild(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1290.py b/githubkit/versions/ghec_v2022_11_28/models/group_1290.py index 91764e3b1..0909fe5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1290.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1290.py @@ -11,32 +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 ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBody""" - 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." + user_name: str = Field( + alias="userName", + description="Configured by the admin. Could be an email, login, or username", ) - include_all_branches: Missing[bool] = Field( + display_name: Missing[str] = 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`.", + alias="displayName", + description="The name of the user, suitable for display to end-users", ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() + emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( + min_length=1 if PYDANTIC_V2 else None, description="user emails" ) + schemas: Missing[list[str]] = Field(default=UNSET) + external_id: Missing[str] = Field(default=UNSET, alias="externalId") + groups: Missing[list[str]] = Field(default=UNSET) + active: Missing[bool] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str = Field(alias="givenName") + family_name: str = Field(alias="familyName") + formatted: Missing[str] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" + + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) -model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(ScimV2OrganizationsOrgUsersPostBody) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ( + "ScimV2OrganizationsOrgUsersPostBody", + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", + "ScimV2OrganizationsOrgUsersPostBodyPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1291.py b/githubkit/versions/ghec_v2022_11_28/models/group_1291.py index 0909fe5f8..9cfdbc55c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1291.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1291.py @@ -16,30 +16,30 @@ from githubkit.utils import UNSET -class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - user_name: str = Field( - alias="userName", - description="Configured by the admin. Could be an email, login, or username", - ) + 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", ) - 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) + 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 ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBodyPropName +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName Examples: {'givenName': 'Jane', 'familyName': 'User'} @@ -50,20 +50,20 @@ class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): formatted: Missing[str] = Field(default=UNSET) -class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + type: Missing[str] = Field(default=UNSET) value: str = Field() primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) -model_rebuild(ScimV2OrganizationsOrgUsersPostBody) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) __all__ = ( - "ScimV2OrganizationsOrgUsersPostBody", - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", - "ScimV2OrganizationsOrgUsersPostBodyPropName", + "ScimV2OrganizationsOrgUsersScimUserIdPutBody", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1292.py b/githubkit/versions/ghec_v2022_11_28/models/group_1292.py index 9cfdbc55c..d9bccefa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1292.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1292.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild @@ -16,54 +18,70 @@ from githubkit.utils import UNSET -class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" 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", - ) - 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" + operations: list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems + ] = Field( + min_length=1 if PYDANTIC_V2 else None, + alias="Operations", + description="Set of operations to be performed", ) -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName +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) - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - given_name: str = Field(alias="givenName") - family_name: str = Field(alias="familyName") - formatted: Missing[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 ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - type: Missing[str] = Field(default=UNSET) - value: str = Field() +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( + GitHubModel +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items + """ + + value: Missing[str] = Field(default=UNSET) primary: Missing[bool] = Field(default=UNSET) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 +) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items +) __all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBody", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1293.py b/githubkit/versions/ghec_v2022_11_28/models/group_1293.py index d9bccefa5..b47b92a02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1293.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1293.py @@ -13,75 +13,37 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" - schemas: Missing[list[str]] = Field(default=UNSET) - operations: list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems + 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( - min_length=1 if PYDANTIC_V2 else None, - alias="Operations", - description="Set of operations to be performed", + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" - - op: Literal["add", "remove", "replace"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, - list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items - ], - str, - ] - ] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" - - active: Missing[Union[bool, None]] = Field(default=UNSET) - user_name: Missing[Union[str, None]] = Field(default=UNSET, alias="userName") - external_id: Missing[Union[str, None]] = Field(default=UNSET, alias="externalId") - given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") - family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 - Items - """ - - value: Missing[str] = Field(default=UNSET) - primary: Missing[bool] = Field(default=UNSET) - - -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 -) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items -) +model_rebuild(TeamsTeamIdPatchBody) -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", -) +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1294.py b/githubkit/versions/ghec_v2022_11_28/models/group_1294.py index b47b92a02..89bdf737f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1294.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1294.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,17 @@ from githubkit.utils import UNSET -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" - 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( + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( default=UNSET, - description="The 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="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(TeamsTeamIdPatchBody) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ("TeamsTeamIdPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1295.py b/githubkit/versions/ghec_v2022_11_28/models/group_1295.py index 89bdf737f..01b62eeb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1295.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1295.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 TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" + + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." + ) + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) -model_rebuild(TeamsTeamIdDiscussionsPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1296.py b/githubkit/versions/ghec_v2022_11_28/models/group_1296.py index 01b62eeb5..2333d1363 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1296.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1296.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 TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - 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." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1297.py b/githubkit/versions/ghec_v2022_11_28/models/group_1297.py index 2333d1363..a44a260ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1297.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1297.py @@ -14,12 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" body: str = Field(description="The discussion comment's body text.") -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1298.py b/githubkit/versions/ghec_v2022_11_28/models/group_1298.py index a44a260ff..fae48df36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1298.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1298.py @@ -9,17 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - body: str = Field(description="The discussion comment's body text.") + 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(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1299.py b/githubkit/versions/ghec_v2022_11_28/models/group_1299.py index fae48df36..a1d80ad44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1299.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1299.py @@ -16,22 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" 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." + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1300.py b/githubkit/versions/ghec_v2022_11_28/models/group_1300.py index a1d80ad44..db25cce3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1300.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1300.py @@ -14,18 +14,18 @@ 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 TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - 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." + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1301.py b/githubkit/versions/ghec_v2022_11_28/models/group_1301.py index db25cce3b..ffbe5471a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1301.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1301.py @@ -18,14 +18,15 @@ from githubkit.utils import UNSET -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + 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(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1302.py b/githubkit/versions/ghec_v2022_11_28/models/group_1302.py index ffbe5471a..4a3155ea1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1302.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1302.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 TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - 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(TeamsTeamIdProjectsProjectIdPutBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1303.py b/githubkit/versions/ghec_v2022_11_28/models/group_1303.py index 4a3155ea1..726eb0c42 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1303.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1303.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,15 @@ from githubkit.utils import UNSET -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + 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(TeamsTeamIdProjectsProjectIdPutResponse403) +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1304.py b/githubkit/versions/ghec_v2022_11_28/models/group_1304.py index 726eb0c42..1c4758631 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1304.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1304.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,30 @@ from githubkit.utils import UNSET -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - 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.", + 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(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBody) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ( + "TeamsTeamIdTeamSyncGroupMappingsPatchBody", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1305.py b/githubkit/versions/ghec_v2022_11_28/models/group_1305.py index 1c4758631..7a471250b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1305.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1305.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,30 +18,33 @@ from githubkit.utils import UNSET -class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" +class UserPatchBody(GitHubModel): + """UserPatchBody""" - 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 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." ) - synced_at: Missing[str] = Field(default=UNSET) - - -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str = Field(description="ID of the IdP group.") - group_name: str = Field(description="Name of the IdP group.") - group_description: str = Field(description="Description of the IdP group.") - id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBody) -model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems) +model_rebuild(UserPatchBody) -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBody", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) +__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1306.py b/githubkit/versions/ghec_v2022_11_28/models/group_1306.py index 7a471250b..8dcd19d23 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1306.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1306.py @@ -9,42 +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 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",) + +from .group_0190 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_1307.py b/githubkit/versions/ghec_v2022_11_28/models/group_1307.py index fa8b5e0bb..d698dac84 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1307.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1307.py @@ -9,20 +9,62 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0188 import Codespace +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + 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(UserCodespacesGetResponse200) +model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("UserCodespacesGetResponse200",) +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1308.py b/githubkit/versions/ghec_v2022_11_28/models/group_1308.py index d698dac84..66fe98e84 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1308.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1308.py @@ -18,13 +18,11 @@ from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" - 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", + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" ) location: Missing[str] = Field( default=UNSET, @@ -34,10 +32,6 @@ class UserCodespacesPostBodyOneof0(GitHubModel): default=UNSET, description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is 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" ) @@ -45,10 +39,6 @@ class UserCodespacesPostBodyOneof0(GitHubModel): default=UNSET, description="Path to devcontainer.json config to use for this codespace", ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) working_directory: Missing[str] = Field( default=UNSET, description="Working directory for this codespace" ) @@ -56,15 +46,22 @@ class UserCodespacesPostBodyOneof0(GitHubModel): default=UNSET, description="Time in minutes before codespace stops from inactivity", ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) -model_rebuild(UserCodespacesPostBodyOneof0) +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__ = ("UserCodespacesPostBodyOneof0",) +__all__ = ( + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1309.py b/githubkit/versions/ghec_v2022_11_28/models/group_1309.py index 66fe98e84..860690ae3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1309.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1309.py @@ -9,59 +9,46 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" - 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", - ) + total_count: int = Field() + secrets: list[CodespacesSecret] = Field() -class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): - """UserCodespacesPostBodyOneof1PropPullRequest +class CodespacesSecret(GitHubModel): + """Codespaces Secret - Pull request number for this codespace + Secrets for a GitHub Codespace. """ - pull_request_number: int = Field(description="Pull request number") - repository_id: int = Field(description="Repository id for this codespace") + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: str = Field( + description="The API URL at which the list of repositories this secret is visible to can be retrieved" + ) -model_rebuild(UserCodespacesPostBodyOneof1) -model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) __all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", + "CodespacesSecret", + "UserCodespacesSecretsGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1310.py b/githubkit/versions/ghec_v2022_11_28/models/group_1310.py index 860690ae3..6e0327543 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1310.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1310.py @@ -9,46 +9,30 @@ 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 UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" - 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" + 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.", ) - selected_repositories_url: str = Field( - description="The API URL at which the list of repositories this secret is visible to can be retrieved" + 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(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -__all__ = ( - "CodespacesSecret", - "UserCodespacesSecretsGetResponse200", -) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1311.py b/githubkit/versions/ghec_v2022_11_28/models/group_1311.py index 6e0327543..d9e8a981a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1311.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1311.py @@ -9,30 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0178 import MinimalRepository -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - selected_repository_ids: Missing[list[Union[int, str]]] = Field( - default=UNSET, - description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(UserCodespacesSecretsSecretNamePutBody) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1312.py b/githubkit/versions/ghec_v2022_11_28/models/group_1312.py index caef7be13..8e24407b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1312.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1312.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0176 import MinimalRepository +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + 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." + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1313.py b/githubkit/versions/ghec_v2022_11_28/models/group_1313.py index 8e24407b0..279933b1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1313.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1313.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 -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" - 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." + 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(UserCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(UserCodespacesCodespaceNamePatchBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1314.py b/githubkit/versions/ghec_v2022_11_28/models/group_1314.py index 279933b1d..8644cbc9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1314.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1314.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_0189 import CodespaceMachine -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.", - ) +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -model_rebuild(UserCodespacesCodespaceNamePatchBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1315.py b/githubkit/versions/ghec_v2022_11_28/models/group_1315.py index fd214d971..874e87674 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1315.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1315.py @@ -12,17 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0187 import CodespaceMachine +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." + ) - total_count: int = Field() - machines: list[CodespaceMachine] = Field() +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1316.py b/githubkit/versions/ghec_v2022_11_28/models/group_1316.py index 874e87674..04c6a0578 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1316.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1316.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 UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" - 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." + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." ) -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) +model_rebuild(UserEmailVisibilityPatchBody) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1317.py b/githubkit/versions/ghec_v2022_11_28/models/group_1317.py index 04c6a0578..323704de5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1317.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1317.py @@ -9,21 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." + 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(UserEmailVisibilityPatchBody) +model_rebuild(UserEmailsPostBodyOneof0) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1318.py b/githubkit/versions/ghec_v2022_11_28/models/group_1318.py index 323704de5..361a2d243 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1318.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1318.py @@ -14,8 +14,13 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 +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']} @@ -23,10 +28,10 @@ class UserEmailsPostBodyOneof0(GitHubModel): 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.", + description="Email addresses associated with the GitHub user account.", ) -model_rebuild(UserEmailsPostBodyOneof0) +model_rebuild(UserEmailsDeleteBodyOneof0) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1319.py b/githubkit/versions/ghec_v2022_11_28/models/group_1319.py index 361a2d243..2f1994e20 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1319.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1319.py @@ -11,27 +11,20 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" - 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.", + 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(UserEmailsDeleteBodyOneof0) +model_rebuild(UserGpgKeysPostBody) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1320.py b/githubkit/versions/ghec_v2022_11_28/models/group_1320.py index 2f1994e20..436810cf8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1320.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1320.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_0018 import Installation -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.") +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" + total_count: int = Field() + installations: list[Installation] = Field() -model_rebuild(UserGpgKeysPostBody) -__all__ = ("UserGpgKeysPostBody",) +model_rebuild(UserInstallationsGetResponse200) + +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1321.py b/githubkit/versions/ghec_v2022_11_28/models/group_1321.py index 436810cf8..867314a9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1321.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1321.py @@ -12,17 +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_0018 import Installation +from .group_0020 import Repository -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" total_count: int = Field() - installations: list[Installation] = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: list[Repository] = Field() -model_rebuild(UserInstallationsGetResponse200) +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1322.py b/githubkit/versions/ghec_v2022_11_28/models/group_1322.py index 867314a9d..09cbf54e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1322.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1322.py @@ -9,23 +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_0020 import Repository - -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" - total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: list[Repository] = Field() +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1323.py b/githubkit/versions/ghec_v2022_11_28/models/group_1323.py index 09cbf54e3..b55f576db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1323.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1323.py @@ -9,13 +9,25 @@ 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""" -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" + 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(UserInteractionLimitsGetResponse200Anyof1) +model_rebuild(UserKeysPostBody) -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1324.py b/githubkit/versions/ghec_v2022_11_28/models/group_1324.py index b55f576db..9b771b5c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1324.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1324.py @@ -9,25 +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 UserKeysPostBody(GitHubModel): - """UserKeysPostBody""" +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" - 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.", + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' ) -model_rebuild(UserKeysPostBody) +model_rebuild(UserMembershipsOrgsOrgPatchBody) -__all__ = ("UserKeysPostBody",) +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1325.py b/githubkit/versions/ghec_v2022_11_28/models/group_1325.py index 9b771b5c3..f7179f26c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1325.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1325.py @@ -14,16 +14,46 @@ 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 UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' + 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(UserMembershipsOrgsOrgPatchBody) +model_rebuild(UserMigrationsPostBody) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1326.py b/githubkit/versions/ghec_v2022_11_28/models/group_1326.py index f7179f26c..4a4feed8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1326.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1326.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,42 +18,15 @@ from githubkit.utils import UNSET -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, description="Do not include attachments in the migration" - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[list[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude attributes from the API response to improve performance", - ) - repositories: list[str] = Field() -model_rebuild(UserMigrationsPostBody) +model_rebuild(UserProjectsPostBody) -__all__ = ("UserMigrationsPostBody",) +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1327.py b/githubkit/versions/ghec_v2022_11_28/models/group_1327.py index 4a4feed8c..422fe894e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1327.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1327.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,15 +18,93 @@ from githubkit.utils import UNSET -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" - name: str = Field(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 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(UserProjectsPostBody) +model_rebuild(UserReposPostBody) -__all__ = ("UserProjectsPostBody",) +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1328.py b/githubkit/versions/ghec_v2022_11_28/models/group_1328.py index 422fe894e..4608b8021 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1328.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1328.py @@ -9,102 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - has_issues: Missing[bool] = Field( - default=UNSET, description="Whether issues are enabled." - ) - has_projects: Missing[bool] = Field( - default=UNSET, description="Whether projects are enabled." - ) - has_wiki: Missing[bool] = Field( - default=UNSET, description="Whether the wiki is enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Whether the repository is initialized with a minimal README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description="The desired language or platform to apply to the .gitignore.", - ) - license_template: Missing[str] = Field( - default=UNSET, - description="The license keyword of the open source license for this repository.", - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", + Examples: + {'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(UserReposPostBody) +model_rebuild(UserSocialAccountsPostBody) -__all__ = ("UserReposPostBody",) +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1329.py b/githubkit/versions/ghec_v2022_11_28/models/group_1329.py index 4608b8021..6c8803a2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1329.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1329.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody Examples: {'account_urls': ['https://www.linkedin.com/company/github/', @@ -23,10 +23,10 @@ class UserSocialAccountsPostBody(GitHubModel): """ account_urls: list[str] = Field( - description="Full URLs for the social media profiles to add." + description="Full URLs for the social media profiles to delete." ) -model_rebuild(UserSocialAccountsPostBody) +model_rebuild(UserSocialAccountsDeleteBody) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1330.py b/githubkit/versions/ghec_v2022_11_28/models/group_1330.py index 6c8803a2d..35fe31558 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1330.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1330.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 UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" - 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." + 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(UserSocialAccountsDeleteBody) +model_rebuild(UserSshSigningKeysPostBody) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1331.py b/githubkit/versions/ghec_v2022_11_28/models/group_1331.py index 35fe31558..314d6ebd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1331.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1331.py @@ -11,23 +11,25 @@ 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 UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" +class UsersUsernameAttestationsBulkListPostBody(GitHubModel): + """UsersUsernameAttestationsBulkListPostBody""" - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests to fetch attestations for.", ) - 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)."', + predicate_type: Missing[str] = Field( + default=UNSET, + description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", ) -model_rebuild(UserSshSigningKeysPostBody) +model_rebuild(UsersUsernameAttestationsBulkListPostBody) -__all__ = ("UserSshSigningKeysPostBody",) +__all__ = ("UsersUsernameAttestationsBulkListPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1332.py b/githubkit/versions/ghec_v2022_11_28/models/group_1332.py index 314d6ebd3..cb60a1e7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1332.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1332.py @@ -11,25 +11,59 @@ 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 UsersUsernameAttestationsBulkListPostBody(GitHubModel): - """UsersUsernameAttestationsBulkListPostBody""" +class UsersUsernameAttestationsBulkListPostResponse200(GitHubModel): + """UsersUsernameAttestationsBulkListPostResponse200""" - subject_digests: list[str] = Field( - max_length=1024 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="List of subject digests to fetch attestations for.", + attestations_subject_digests: Missing[ + UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") + page_info: Missing[UsersUsernameAttestationsBulkListPostResponse200PropPageInfo] = ( + Field(default=UNSET, description="Information about the current page.") ) - predicate_type: Missing[str] = Field( - default=UNSET, - description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", + + +class UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( + ExtraGitHubModel +): + """UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + + Mapping of subject digest to bundles. + """ + + +class UsersUsernameAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): + """UsersUsernameAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a next page." + ) + has_previous: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a previous page." + ) + next_: Missing[str] = Field( + default=UNSET, alias="next", description="The cursor to the next page." + ) + previous: Missing[str] = Field( + default=UNSET, description="The cursor to the previous page." ) -model_rebuild(UsersUsernameAttestationsBulkListPostBody) +model_rebuild(UsersUsernameAttestationsBulkListPostResponse200) +model_rebuild( + UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests +) +model_rebuild(UsersUsernameAttestationsBulkListPostResponse200PropPageInfo) -__all__ = ("UsersUsernameAttestationsBulkListPostBody",) +__all__ = ( + "UsersUsernameAttestationsBulkListPostResponse200", + "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "UsersUsernameAttestationsBulkListPostResponse200PropPageInfo", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1333.py b/githubkit/versions/ghec_v2022_11_28/models/group_1333.py index cb60a1e7e..b2dd1e918 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1333.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1333.py @@ -11,59 +11,19 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class UsersUsernameAttestationsBulkListPostResponse200(GitHubModel): - """UsersUsernameAttestationsBulkListPostResponse200""" +class UsersUsernameAttestationsDeleteRequestPostBodyOneof0(GitHubModel): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" - attestations_subject_digests: Missing[ - UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests - ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") - page_info: Missing[UsersUsernameAttestationsBulkListPostResponse200PropPageInfo] = ( - Field(default=UNSET, description="Information about the current page.") + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests associated with the artifact attestations to delete.", ) -class UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( - ExtraGitHubModel -): - """UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests +model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof0) - Mapping of subject digest to bundles. - """ - - -class UsersUsernameAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): - """UsersUsernameAttestationsBulkListPostResponse200PropPageInfo - - Information about the current page. - """ - - has_next: Missing[bool] = Field( - default=UNSET, description="Indicates whether there is a next page." - ) - has_previous: Missing[bool] = Field( - default=UNSET, description="Indicates whether there is a previous page." - ) - next_: Missing[str] = Field( - default=UNSET, alias="next", description="The cursor to the next page." - ) - previous: Missing[str] = Field( - default=UNSET, description="The cursor to the previous page." - ) - - -model_rebuild(UsersUsernameAttestationsBulkListPostResponse200) -model_rebuild( - UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests -) -model_rebuild(UsersUsernameAttestationsBulkListPostResponse200PropPageInfo) - -__all__ = ( - "UsersUsernameAttestationsBulkListPostResponse200", - "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", - "UsersUsernameAttestationsBulkListPostResponse200PropPageInfo", -) +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1334.py b/githubkit/versions/ghec_v2022_11_28/models/group_1334.py index b2dd1e918..e440ff714 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1334.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1334.py @@ -14,16 +14,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class UsersUsernameAttestationsDeleteRequestPostBodyOneof0(GitHubModel): - """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" +class UsersUsernameAttestationsDeleteRequestPostBodyOneof1(GitHubModel): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" - subject_digests: list[str] = Field( + attestation_ids: list[int] = Field( max_length=1024 if PYDANTIC_V2 else None, min_length=1 if PYDANTIC_V2 else None, - description="List of subject digests associated with the artifact attestations to delete.", + description="List of unique IDs associated with the artifact attestations to delete.", ) -model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof0) +model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof1) -__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",) +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1335.py b/githubkit/versions/ghec_v2022_11_28/models/group_1335.py index e440ff714..851e1541a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1335.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1335.py @@ -11,19 +11,87 @@ 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 UsersUsernameAttestationsDeleteRequestPostBodyOneof1(GitHubModel): - """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" +class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" - attestation_ids: list[int] = Field( - max_length=1024 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="List of unique IDs associated with the artifact attestations to delete.", + attestations: Missing[ + list[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dlePropVerificationMaterial + """ + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dlePropDsseEnvelope + """ -model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof1) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",) +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1336.py b/githubkit/versions/ghec_v2022_11_28/models/group_1336.py deleted file mode 100644 index 851e1541a..000000000 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1336.py +++ /dev/null @@ -1,97 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - - attestations: Missing[ - list[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( - default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", - ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dlePropVerificationMaterial - """ - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dlePropDsseEnvelope - """ - - -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) diff --git a/githubkit/versions/ghec_v2022_11_28/rest/__init__.py b/githubkit/versions/ghec_v2022_11_28/rest/__init__.py index 29d0bb5ed..4ac90bf86 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/__init__.py @@ -45,7 +45,7 @@ from .orgs import OrgsClient from .packages import PackagesClient from .private_registries import PrivateRegistriesClient - from .projects import ProjectsClient + from .projects_classic import ProjectsClassicClient from .pulls import PullsClient from .rate_limit import RateLimitClient from .reactions import ReactionsClient @@ -265,10 +265,10 @@ def private_registries(self) -> "PrivateRegistriesClient": return PrivateRegistriesClient(self._github) @cached_property - def projects(self) -> "ProjectsClient": - from .projects import ProjectsClient + def projects_classic(self) -> "ProjectsClassicClient": + from .projects_classic import ProjectsClassicClient - return ProjectsClient(self._github) + return ProjectsClassicClient(self._github) @cached_property def hosted_compute(self) -> "HostedComputeClient": diff --git a/githubkit/versions/ghec_v2022_11_28/rest/code_security.py b/githubkit/versions/ghec_v2022_11_28/rest/code_security.py index 1d6072faa..c6f37e993 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/code_security.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/code_security.py @@ -39,6 +39,7 @@ from ..types import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, CodeScanningDefaultSetupOptionsType, + CodeScanningOptionsType, CodeSecurityConfigurationForRepositoryType, CodeSecurityConfigurationRepositoriesType, CodeSecurityConfigurationType, @@ -197,6 +198,7 @@ def create_configuration_for_enterprise( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -208,6 +210,7 @@ def create_configuration_for_enterprise( dependabot_security_updates: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + code_scanning_options: Missing[Union[CodeScanningOptionsType, None]] = UNSET, code_scanning_default_setup: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, @@ -217,6 +220,7 @@ def create_configuration_for_enterprise( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -321,6 +325,7 @@ async def async_create_configuration_for_enterprise( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -332,6 +337,7 @@ async def async_create_configuration_for_enterprise( dependabot_security_updates: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + code_scanning_options: Missing[Union[CodeScanningOptionsType, None]] = UNSET, code_scanning_default_setup: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, @@ -341,6 +347,7 @@ async def async_create_configuration_for_enterprise( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -691,6 +698,7 @@ def update_enterprise_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -711,6 +719,7 @@ def update_enterprise_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -821,6 +830,7 @@ async def async_update_enterprise_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -841,6 +851,7 @@ async def async_update_enterprise_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1435,7 +1446,7 @@ def get_configurations_for_org( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-code-security-configurations-for-an-organization """ @@ -1485,7 +1496,7 @@ async def async_get_configurations_for_org( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-code-security-configurations-for-an-organization """ @@ -1539,6 +1550,7 @@ def create_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1550,6 +1562,7 @@ def create_configuration( dependabot_security_updates: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + code_scanning_options: Missing[Union[CodeScanningOptionsType, None]] = UNSET, code_scanning_default_setup: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, @@ -1559,6 +1572,7 @@ def create_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1659,6 +1673,7 @@ async def async_create_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1670,6 +1685,7 @@ async def async_create_configuration( dependabot_security_updates: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + code_scanning_options: Missing[Union[CodeScanningOptionsType, None]] = UNSET, code_scanning_default_setup: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, @@ -1679,6 +1695,7 @@ async def async_create_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1774,7 +1791,7 @@ def get_default_configurations( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-default-code-security-configurations """ @@ -1815,7 +1832,7 @@ async def async_get_default_configurations( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-default-code-security-configurations """ @@ -2181,6 +2198,7 @@ def update_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -2201,6 +2219,7 @@ def update_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -2308,6 +2327,7 @@ async def async_update_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -2328,6 +2348,7 @@ async def async_update_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -2813,7 +2834,7 @@ def get_repositories_for_configuration( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-repositories-associated-with-a-code-security-configuration """ @@ -2869,7 +2890,7 @@ async def async_get_repositories_for_configuration( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-repositories-associated-with-a-code-security-configuration """ diff --git a/githubkit/versions/ghec_v2022_11_28/rest/issues.py b/githubkit/versions/ghec_v2022_11_28/rest/issues.py index c58300a04..3549b5e92 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/issues.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/issues.py @@ -1634,7 +1634,7 @@ def update( assignee: Missing[Union[str, None]] = UNSET, state: Missing[Literal["open", "closed"]] = UNSET, state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] + Union[None, Literal["completed", "not_planned", "duplicate", "reopened"]] ] = UNSET, milestone: Missing[Union[str, int, None]] = UNSET, labels: Missing[ @@ -1740,7 +1740,7 @@ async def async_update( assignee: Missing[Union[str, None]] = UNSET, state: Missing[Literal["open", "closed"]] = UNSET, state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] + Union[None, Literal["completed", "not_planned", "duplicate", "reopened"]] ] = UNSET, milestone: Missing[Union[str, int, None]] = UNSET, labels: Missing[ @@ -3902,11 +3902,11 @@ def list_sub_issues( You can use the REST API to list the sub-issues on an issue. - This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass any specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`. - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. See also: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#list-sub-issues @@ -3953,11 +3953,11 @@ async def async_list_sub_issues( You can use the REST API to list the sub-issues on an issue. - This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass any specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`. - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. See also: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#list-sub-issues diff --git a/githubkit/versions/ghec_v2022_11_28/rest/private_registries.py b/githubkit/versions/ghec_v2022_11_28/rest/private_registries.py index 7db48d714..a0f81aab5 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/private_registries.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/private_registries.py @@ -177,7 +177,23 @@ def create_org_private_registry( data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, stream: bool = False, - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"], + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ], url: str, username: Missing[Union[str, None]] = UNSET, encrypted_value: str, @@ -267,7 +283,23 @@ async def async_create_org_private_registry( data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, stream: bool = False, - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"], + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ], url: str, username: Missing[Union[str, None]] = UNSET, encrypted_value: str, @@ -583,7 +615,23 @@ def update_org_private_registry( headers: Optional[Mapping[str, str]] = None, stream: bool = False, registry_type: Missing[ - Literal["maven_repository", "nuget_feed", "goproxy_server"] + Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] ] = UNSET, url: Missing[str] = UNSET, username: Missing[Union[str, None]] = UNSET, @@ -669,7 +717,23 @@ async def async_update_org_private_registry( headers: Optional[Mapping[str, str]] = None, stream: bool = False, registry_type: Missing[ - Literal["maven_repository", "nuget_feed", "goproxy_server"] + Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] ] = UNSET, url: Missing[str] = UNSET, username: Missing[Union[str, None]] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/projects.py b/githubkit/versions/ghec_v2022_11_28/rest/projects_classic.py similarity index 94% rename from githubkit/versions/ghec_v2022_11_28/rest/projects.py rename to githubkit/versions/ghec_v2022_11_28/rest/projects_classic.py index 540471c5a..69f871540 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/projects.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/projects_classic.py @@ -59,7 +59,7 @@ ) -class ProjectsClient: +class ProjectsClassicClient: _REST_API_VERSION = "2022-11-28" def __init__(self, github: GitHubCore): @@ -84,7 +84,7 @@ def list_for_org( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-org + """DEPRECATED projects-classic/list-for-org GET /orgs/{org}/projects @@ -92,7 +92,7 @@ def list_for_org( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#list-organization-projects + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#list-organization-projects """ from ..models import Project, ValidationErrorSimple @@ -129,7 +129,7 @@ async def async_list_for_org( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-org + """DEPRECATED projects-classic/list-for-org GET /orgs/{org}/projects @@ -137,7 +137,7 @@ async def async_list_for_org( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#list-organization-projects + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#list-organization-projects """ from ..models import Project, ValidationErrorSimple @@ -195,7 +195,7 @@ def create_for_org( data: Missing[OrgsOrgProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-org + """DEPRECATED projects-classic/create-for-org POST /orgs/{org}/projects @@ -203,7 +203,7 @@ def create_for_org( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#create-an-organization-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#create-an-organization-project """ from ..models import ( @@ -273,7 +273,7 @@ async def async_create_for_org( data: Missing[OrgsOrgProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-org + """DEPRECATED projects-classic/create-for-org POST /orgs/{org}/projects @@ -281,7 +281,7 @@ async def async_create_for_org( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#create-an-organization-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#create-an-organization-project """ from ..models import ( @@ -327,7 +327,7 @@ def get_card( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/get-card + """DEPRECATED projects-classic/get-card GET /projects/columns/cards/{card_id} @@ -335,7 +335,7 @@ def get_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#get-a-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#get-a-project-card """ from ..models import BasicError, ProjectCard @@ -364,7 +364,7 @@ async def async_get_card( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/get-card + """DEPRECATED projects-classic/get-card GET /projects/columns/cards/{card_id} @@ -372,7 +372,7 @@ async def async_get_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#get-a-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#get-a-project-card """ from ..models import BasicError, ProjectCard @@ -401,7 +401,7 @@ def delete_card( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete-card + """DEPRECATED projects-classic/delete-card DELETE /projects/columns/cards/{card_id} @@ -409,7 +409,7 @@ def delete_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#delete-a-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#delete-a-project-card """ from ..models import BasicError, ProjectsColumnsCardsCardIdDeleteResponse403 @@ -437,7 +437,7 @@ async def async_delete_card( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete-card + """DEPRECATED projects-classic/delete-card DELETE /projects/columns/cards/{card_id} @@ -445,7 +445,7 @@ async def async_delete_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#delete-a-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#delete-a-project-card """ from ..models import BasicError, ProjectsColumnsCardsCardIdDeleteResponse403 @@ -497,7 +497,7 @@ def update_card( data: Missing[ProjectsColumnsCardsCardIdPatchBodyType] = UNSET, **kwargs, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/update-card + """DEPRECATED projects-classic/update-card PATCH /projects/columns/cards/{card_id} @@ -505,7 +505,7 @@ def update_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#update-an-existing-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#update-an-existing-project-card """ from ..models import ( @@ -574,7 +574,7 @@ async def async_update_card( data: Missing[ProjectsColumnsCardsCardIdPatchBodyType] = UNSET, **kwargs, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/update-card + """DEPRECATED projects-classic/update-card PATCH /projects/columns/cards/{card_id} @@ -582,7 +582,7 @@ async def async_update_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#update-an-existing-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#update-an-existing-project-card """ from ..models import ( @@ -660,7 +660,7 @@ def move_card( ProjectsColumnsCardsCardIdMovesPostResponse201, ProjectsColumnsCardsCardIdMovesPostResponse201Type, ]: - """DEPRECATED projects/move-card + """DEPRECATED projects-classic/move-card POST /projects/columns/cards/{card_id}/moves @@ -668,7 +668,7 @@ def move_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#move-a-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#move-a-project-card """ from ..models import ( @@ -748,7 +748,7 @@ async def async_move_card( ProjectsColumnsCardsCardIdMovesPostResponse201, ProjectsColumnsCardsCardIdMovesPostResponse201Type, ]: - """DEPRECATED projects/move-card + """DEPRECATED projects-classic/move-card POST /projects/columns/cards/{card_id}/moves @@ -756,7 +756,7 @@ async def async_move_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#move-a-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#move-a-project-card """ from ..models import ( @@ -803,7 +803,7 @@ def get_column( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/get-column + """DEPRECATED projects-classic/get-column GET /projects/columns/{column_id} @@ -811,7 +811,7 @@ def get_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#get-a-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#get-a-project-column """ from ..models import BasicError, ProjectColumn @@ -840,7 +840,7 @@ async def async_get_column( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/get-column + """DEPRECATED projects-classic/get-column GET /projects/columns/{column_id} @@ -848,7 +848,7 @@ async def async_get_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#get-a-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#get-a-project-column """ from ..models import BasicError, ProjectColumn @@ -877,7 +877,7 @@ def delete_column( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete-column + """DEPRECATED projects-classic/delete-column DELETE /projects/columns/{column_id} @@ -885,7 +885,7 @@ def delete_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#delete-a-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#delete-a-project-column """ from ..models import BasicError @@ -912,7 +912,7 @@ async def async_delete_column( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete-column + """DEPRECATED projects-classic/delete-column DELETE /projects/columns/{column_id} @@ -920,7 +920,7 @@ async def async_delete_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#delete-a-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#delete-a-project-column """ from ..models import BasicError @@ -970,7 +970,7 @@ def update_column( data: Missing[ProjectsColumnsColumnIdPatchBodyType] = UNSET, **kwargs, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/update-column + """DEPRECATED projects-classic/update-column PATCH /projects/columns/{column_id} @@ -978,7 +978,7 @@ def update_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#update-an-existing-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#update-an-existing-project-column """ from ..models import BasicError, ProjectColumn, ProjectsColumnsColumnIdPatchBody @@ -1039,7 +1039,7 @@ async def async_update_column( data: Missing[ProjectsColumnsColumnIdPatchBodyType] = UNSET, **kwargs, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/update-column + """DEPRECATED projects-classic/update-column PATCH /projects/columns/{column_id} @@ -1047,7 +1047,7 @@ async def async_update_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#update-an-existing-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#update-an-existing-project-column """ from ..models import BasicError, ProjectColumn, ProjectsColumnsColumnIdPatchBody @@ -1088,7 +1088,7 @@ def list_cards( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[ProjectCard], list[ProjectCardType]]: - """DEPRECATED projects/list-cards + """DEPRECATED projects-classic/list-cards GET /projects/columns/{column_id}/cards @@ -1096,7 +1096,7 @@ def list_cards( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#list-project-cards + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#list-project-cards """ from ..models import BasicError, ProjectCard @@ -1134,7 +1134,7 @@ async def async_list_cards( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[ProjectCard], list[ProjectCardType]]: - """DEPRECATED projects/list-cards + """DEPRECATED projects-classic/list-cards GET /projects/columns/{column_id}/cards @@ -1142,7 +1142,7 @@ async def async_list_cards( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#list-project-cards + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#list-project-cards """ from ..models import BasicError, ProjectCard @@ -1220,7 +1220,7 @@ def create_card( ] = UNSET, **kwargs, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/create-card + """DEPRECATED projects-classic/create-card POST /projects/columns/{column_id}/cards @@ -1228,7 +1228,7 @@ def create_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#create-a-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#create-a-project-card """ from typing import Union @@ -1327,7 +1327,7 @@ async def async_create_card( ] = UNSET, **kwargs, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/create-card + """DEPRECATED projects-classic/create-card POST /projects/columns/{column_id}/cards @@ -1335,7 +1335,7 @@ async def async_create_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/cards#create-a-project-card + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/cards#create-a-project-card """ from typing import Union @@ -1423,7 +1423,7 @@ def move_column( ProjectsColumnsColumnIdMovesPostResponse201, ProjectsColumnsColumnIdMovesPostResponse201Type, ]: - """DEPRECATED projects/move-column + """DEPRECATED projects-classic/move-column POST /projects/columns/{column_id}/moves @@ -1431,7 +1431,7 @@ def move_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#move-a-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#move-a-project-column """ from ..models import ( @@ -1507,7 +1507,7 @@ async def async_move_column( ProjectsColumnsColumnIdMovesPostResponse201, ProjectsColumnsColumnIdMovesPostResponse201Type, ]: - """DEPRECATED projects/move-column + """DEPRECATED projects-classic/move-column POST /projects/columns/{column_id}/moves @@ -1515,7 +1515,7 @@ async def async_move_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#move-a-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#move-a-project-column """ from ..models import ( @@ -1559,7 +1559,7 @@ def get( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/get + """DEPRECATED projects-classic/get GET /projects/{project_id} @@ -1567,7 +1567,7 @@ def get( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#get-a-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#get-a-project """ from ..models import BasicError, Project @@ -1595,7 +1595,7 @@ async def async_get( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/get + """DEPRECATED projects-classic/get GET /projects/{project_id} @@ -1603,7 +1603,7 @@ async def async_get( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#get-a-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#get-a-project """ from ..models import BasicError, Project @@ -1631,7 +1631,7 @@ def delete( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete + """DEPRECATED projects-classic/delete DELETE /projects/{project_id} @@ -1639,7 +1639,7 @@ def delete( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#delete-a-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#delete-a-project """ from ..models import BasicError, ProjectsProjectIdDeleteResponse403 @@ -1668,7 +1668,7 @@ async def async_delete( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete + """DEPRECATED projects-classic/delete DELETE /projects/{project_id} @@ -1676,7 +1676,7 @@ async def async_delete( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#delete-a-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#delete-a-project """ from ..models import BasicError, ProjectsProjectIdDeleteResponse403 @@ -1734,7 +1734,7 @@ def update( data: Missing[ProjectsProjectIdPatchBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/update + """DEPRECATED projects-classic/update PATCH /projects/{project_id} @@ -1742,7 +1742,7 @@ def update( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#update-a-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#update-a-project """ from ..models import ( @@ -1817,7 +1817,7 @@ async def async_update( data: Missing[ProjectsProjectIdPatchBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/update + """DEPRECATED projects-classic/update PATCH /projects/{project_id} @@ -1825,7 +1825,7 @@ async def async_update( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#update-a-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#update-a-project """ from ..models import ( @@ -1874,7 +1874,7 @@ def list_collaborators( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[SimpleUser], list[SimpleUserType]]: - """DEPRECATED projects/list-collaborators + """DEPRECATED projects-classic/list-collaborators GET /projects/{project_id}/collaborators @@ -1882,7 +1882,7 @@ def list_collaborators( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/collaborators#list-project-collaborators + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/collaborators#list-project-collaborators """ from ..models import BasicError, SimpleUser, ValidationError @@ -1922,7 +1922,7 @@ async def async_list_collaborators( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[SimpleUser], list[SimpleUserType]]: - """DEPRECATED projects/list-collaborators + """DEPRECATED projects-classic/list-collaborators GET /projects/{project_id}/collaborators @@ -1930,7 +1930,7 @@ async def async_list_collaborators( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/collaborators#list-project-collaborators + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/collaborators#list-project-collaborators """ from ..models import BasicError, SimpleUser, ValidationError @@ -1997,7 +1997,7 @@ def add_collaborator( ] = UNSET, **kwargs, ) -> Response: - """DEPRECATED projects/add-collaborator + """DEPRECATED projects-classic/add-collaborator PUT /projects/{project_id}/collaborators/{username} @@ -2005,7 +2005,7 @@ def add_collaborator( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/collaborators#add-project-collaborator + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/collaborators#add-project-collaborator """ from typing import Union @@ -2082,7 +2082,7 @@ async def async_add_collaborator( ] = UNSET, **kwargs, ) -> Response: - """DEPRECATED projects/add-collaborator + """DEPRECATED projects-classic/add-collaborator PUT /projects/{project_id}/collaborators/{username} @@ -2090,7 +2090,7 @@ async def async_add_collaborator( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/collaborators#add-project-collaborator + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/collaborators#add-project-collaborator """ from typing import Union @@ -2138,7 +2138,7 @@ def remove_collaborator( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/remove-collaborator + """DEPRECATED projects-classic/remove-collaborator DELETE /projects/{project_id}/collaborators/{username} @@ -2146,7 +2146,7 @@ def remove_collaborator( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/collaborators#remove-user-as-a-collaborator + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/collaborators#remove-user-as-a-collaborator """ from ..models import BasicError, ValidationError @@ -2176,7 +2176,7 @@ async def async_remove_collaborator( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/remove-collaborator + """DEPRECATED projects-classic/remove-collaborator DELETE /projects/{project_id}/collaborators/{username} @@ -2184,7 +2184,7 @@ async def async_remove_collaborator( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/collaborators#remove-user-as-a-collaborator + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/collaborators#remove-user-as-a-collaborator """ from ..models import BasicError, ValidationError @@ -2214,7 +2214,7 @@ def get_permission_for_user( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectCollaboratorPermission, ProjectCollaboratorPermissionType]: - """DEPRECATED projects/get-permission-for-user + """DEPRECATED projects-classic/get-permission-for-user GET /projects/{project_id}/collaborators/{username}/permission @@ -2222,7 +2222,7 @@ def get_permission_for_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/collaborators#get-project-permission-for-a-user + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/collaborators#get-project-permission-for-a-user """ from ..models import BasicError, ProjectCollaboratorPermission, ValidationError @@ -2253,7 +2253,7 @@ async def async_get_permission_for_user( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectCollaboratorPermission, ProjectCollaboratorPermissionType]: - """DEPRECATED projects/get-permission-for-user + """DEPRECATED projects-classic/get-permission-for-user GET /projects/{project_id}/collaborators/{username}/permission @@ -2261,7 +2261,7 @@ async def async_get_permission_for_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/collaborators#get-project-permission-for-a-user + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/collaborators#get-project-permission-for-a-user """ from ..models import BasicError, ProjectCollaboratorPermission, ValidationError @@ -2293,7 +2293,7 @@ def list_columns( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[ProjectColumn], list[ProjectColumnType]]: - """DEPRECATED projects/list-columns + """DEPRECATED projects-classic/list-columns GET /projects/{project_id}/columns @@ -2301,7 +2301,7 @@ def list_columns( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#list-project-columns + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#list-project-columns """ from ..models import BasicError, ProjectColumn @@ -2337,7 +2337,7 @@ async def async_list_columns( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[ProjectColumn], list[ProjectColumnType]]: - """DEPRECATED projects/list-columns + """DEPRECATED projects-classic/list-columns GET /projects/{project_id}/columns @@ -2345,7 +2345,7 @@ async def async_list_columns( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#list-project-columns + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#list-project-columns """ from ..models import BasicError, ProjectColumn @@ -2402,7 +2402,7 @@ def create_column( data: Missing[ProjectsProjectIdColumnsPostBodyType] = UNSET, **kwargs, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/create-column + """DEPRECATED projects-classic/create-column POST /projects/{project_id}/columns @@ -2410,7 +2410,7 @@ def create_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#create-a-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#create-a-project-column """ from ..models import ( @@ -2477,7 +2477,7 @@ async def async_create_column( data: Missing[ProjectsProjectIdColumnsPostBodyType] = UNSET, **kwargs, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/create-column + """DEPRECATED projects-classic/create-column POST /projects/{project_id}/columns @@ -2485,7 +2485,7 @@ async def async_create_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/columns#create-a-project-column + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/columns#create-a-project-column """ from ..models import ( @@ -2533,7 +2533,7 @@ def list_for_repo( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-repo + """DEPRECATED projects-classic/list-for-repo GET /repos/{owner}/{repo}/projects @@ -2541,7 +2541,7 @@ def list_for_repo( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#list-repository-projects + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#list-repository-projects """ from ..models import BasicError, Project, ValidationErrorSimple @@ -2583,7 +2583,7 @@ async def async_list_for_repo( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-repo + """DEPRECATED projects-classic/list-for-repo GET /repos/{owner}/{repo}/projects @@ -2591,7 +2591,7 @@ async def async_list_for_repo( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#list-repository-projects + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#list-repository-projects """ from ..models import BasicError, Project, ValidationErrorSimple @@ -2656,7 +2656,7 @@ def create_for_repo( data: Missing[ReposOwnerRepoProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-repo + """DEPRECATED projects-classic/create-for-repo POST /repos/{owner}/{repo}/projects @@ -2664,7 +2664,7 @@ def create_for_repo( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#create-a-repository-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#create-a-repository-project """ from ..models import ( @@ -2737,7 +2737,7 @@ async def async_create_for_repo( data: Missing[ReposOwnerRepoProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-repo + """DEPRECATED projects-classic/create-for-repo POST /repos/{owner}/{repo}/projects @@ -2745,7 +2745,7 @@ async def async_create_for_repo( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#create-a-repository-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#create-a-repository-project """ from ..models import ( @@ -2812,7 +2812,7 @@ def create_for_authenticated_user( data: Missing[UserProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-authenticated-user + """DEPRECATED projects-classic/create-for-authenticated-user POST /user/projects @@ -2820,7 +2820,7 @@ def create_for_authenticated_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#create-a-user-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#create-a-user-project """ from ..models import ( @@ -2885,7 +2885,7 @@ async def async_create_for_authenticated_user( data: Missing[UserProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-authenticated-user + """DEPRECATED projects-classic/create-for-authenticated-user POST /user/projects @@ -2893,7 +2893,7 @@ async def async_create_for_authenticated_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#create-a-user-project + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#create-a-user-project """ from ..models import ( @@ -2940,7 +2940,7 @@ def list_for_user( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-user + """DEPRECATED projects-classic/list-for-user GET /users/{username}/projects @@ -2948,7 +2948,7 @@ def list_for_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#list-user-projects + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#list-user-projects """ from ..models import Project, ValidationError @@ -2985,7 +2985,7 @@ async def async_list_for_user( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-user + """DEPRECATED projects-classic/list-for-user GET /users/{username}/projects @@ -2993,7 +2993,7 @@ async def async_list_for_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/enterprise-cloud@latest//rest/projects/projects#list-user-projects + See also: https://docs.github.com/enterprise-cloud@latest//rest/projects-classic/projects#list-user-projects """ from ..models import Project, ValidationError diff --git a/githubkit/versions/ghec_v2022_11_28/rest/repos.py b/githubkit/versions/ghec_v2022_11_28/rest/repos.py index 4250969f1..14e32c99e 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/repos.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/repos.py @@ -405,7 +405,6 @@ def create_enterprise_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -514,7 +513,6 @@ async def async_create_enterprise_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -701,7 +699,6 @@ def update_enterprise_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -815,7 +812,6 @@ async def async_update_enterprise_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -1388,7 +1384,6 @@ def create_org_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -1492,7 +1487,6 @@ async def async_create_org_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -1852,7 +1846,6 @@ def update_org_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -1963,7 +1956,6 @@ async def async_update_org_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, diff --git a/githubkit/versions/ghec_v2022_11_28/types/__init__.py b/githubkit/versions/ghec_v2022_11_28/types/__init__.py index 3981aef07..ff16e727d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/types/__init__.py @@ -262,3126 +262,3112 @@ from .group_0063 import ( CodeSecurityConfigurationType as CodeSecurityConfigurationType, ) - from .group_0064 import ( + from .group_0064 import CodeScanningOptionsType as CodeScanningOptionsType + from .group_0065 import ( CodeScanningDefaultSetupOptionsType as CodeScanningDefaultSetupOptionsType, ) - from .group_0065 import ( + from .group_0066 import ( CodeSecurityDefaultConfigurationsItemsType as CodeSecurityDefaultConfigurationsItemsType, ) - from .group_0066 import ( + from .group_0067 import ( CodeSecurityConfigurationRepositoriesType as CodeSecurityConfigurationRepositoriesType, ) - from .group_0067 import ( + from .group_0068 import ( EnterpriseSecurityAnalysisSettingsType as EnterpriseSecurityAnalysisSettingsType, ) - from .group_0068 import ( + from .group_0069 import ( GetConsumedLicensesPropUsersItemsType as GetConsumedLicensesPropUsersItemsType, ) - from .group_0068 import GetConsumedLicensesType as GetConsumedLicensesType - from .group_0069 import TeamSimpleType as TeamSimpleType - from .group_0070 import TeamPropPermissionsType as TeamPropPermissionsType - from .group_0070 import TeamType as TeamType - from .group_0071 import CopilotSeatDetailsType as CopilotSeatDetailsType - from .group_0071 import EnterpriseTeamType as EnterpriseTeamType - from .group_0072 import ( + from .group_0069 import GetConsumedLicensesType as GetConsumedLicensesType + from .group_0070 import TeamSimpleType as TeamSimpleType + from .group_0071 import TeamPropPermissionsType as TeamPropPermissionsType + from .group_0071 import TeamType as TeamType + from .group_0072 import CopilotSeatDetailsType as CopilotSeatDetailsType + from .group_0072 import EnterpriseTeamType as EnterpriseTeamType + from .group_0073 import ( CopilotDotcomChatPropModelsItemsType as CopilotDotcomChatPropModelsItemsType, ) - from .group_0072 import CopilotDotcomChatType as CopilotDotcomChatType - from .group_0072 import ( + from .group_0073 import CopilotDotcomChatType as CopilotDotcomChatType + from .group_0073 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType, ) - from .group_0072 import ( + from .group_0073 import ( CopilotDotcomPullRequestsPropRepositoriesItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsType, ) - from .group_0072 import ( + from .group_0073 import ( CopilotDotcomPullRequestsType as CopilotDotcomPullRequestsType, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeChatPropEditorsItemsPropModelsItemsType as CopilotIdeChatPropEditorsItemsPropModelsItemsType, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeChatPropEditorsItemsType as CopilotIdeChatPropEditorsItemsType, ) - from .group_0072 import CopilotIdeChatType as CopilotIdeChatType - from .group_0072 import ( + from .group_0073 import CopilotIdeChatType as CopilotIdeChatType + from .group_0073 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeCodeCompletionsPropEditorsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsType, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeCodeCompletionsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropLanguagesItemsType, ) - from .group_0072 import ( + from .group_0073 import ( CopilotIdeCodeCompletionsType as CopilotIdeCodeCompletionsType, ) - from .group_0072 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType - from .group_0073 import DependabotAlertPackageType as DependabotAlertPackageType - from .group_0074 import ( + from .group_0073 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType + from .group_0074 import DependabotAlertPackageType as DependabotAlertPackageType + from .group_0075 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, ) - from .group_0074 import ( + from .group_0075 import ( DependabotAlertSecurityVulnerabilityType as DependabotAlertSecurityVulnerabilityType, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisoryPropCvssType as DependabotAlertSecurityAdvisoryPropCvssType, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisoryPropCwesItemsType as DependabotAlertSecurityAdvisoryPropCwesItemsType, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItemsType as DependabotAlertSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisoryPropReferencesItemsType as DependabotAlertSecurityAdvisoryPropReferencesItemsType, ) - from .group_0075 import ( + from .group_0076 import ( DependabotAlertSecurityAdvisoryType as DependabotAlertSecurityAdvisoryType, ) - from .group_0076 import ( + from .group_0077 import ( DependabotAlertWithRepositoryType as DependabotAlertWithRepositoryType, ) - from .group_0077 import ( + from .group_0078 import ( DependabotAlertWithRepositoryPropDependencyType as DependabotAlertWithRepositoryPropDependencyType, ) - from .group_0078 import ( + from .group_0079 import ( GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType as GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType, ) - from .group_0078 import ( + from .group_0079 import ( GetLicenseSyncStatusPropServerInstancesItemsType as GetLicenseSyncStatusPropServerInstancesItemsType, ) - from .group_0078 import GetLicenseSyncStatusType as GetLicenseSyncStatusType - from .group_0079 import NetworkConfigurationType as NetworkConfigurationType - from .group_0080 import NetworkSettingsType as NetworkSettingsType - from .group_0081 import CustomPropertyType as CustomPropertyType - from .group_0082 import CustomPropertySetPayloadType as CustomPropertySetPayloadType - from .group_0083 import ( + from .group_0079 import GetLicenseSyncStatusType as GetLicenseSyncStatusType + from .group_0080 import NetworkConfigurationType as NetworkConfigurationType + from .group_0081 import NetworkSettingsType as NetworkSettingsType + from .group_0082 import CustomPropertyType as CustomPropertyType + from .group_0083 import CustomPropertySetPayloadType as CustomPropertySetPayloadType + from .group_0084 import ( RepositoryRulesetBypassActorType as RepositoryRulesetBypassActorType, ) - from .group_0084 import ( + from .group_0085 import ( EnterpriseRulesetConditionsOrganizationNameTargetType as EnterpriseRulesetConditionsOrganizationNameTargetType, ) - from .group_0085 import ( + from .group_0086 import ( EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType as EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, ) - from .group_0086 import ( + from .group_0087 import ( RepositoryRulesetConditionsRepositoryNameTargetType as RepositoryRulesetConditionsRepositoryNameTargetType, ) - from .group_0087 import ( + from .group_0088 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) - from .group_0088 import ( + from .group_0089 import ( RepositoryRulesetConditionsType as RepositoryRulesetConditionsType, ) - from .group_0089 import ( + from .group_0090 import ( RepositoryRulesetConditionsPropRefNameType as RepositoryRulesetConditionsPropRefNameType, ) - from .group_0090 import ( + from .group_0091 import ( RepositoryRulesetConditionsRepositoryPropertyTargetType as RepositoryRulesetConditionsRepositoryPropertyTargetType, ) - from .group_0091 import ( + from .group_0092 import ( RepositoryRulesetConditionsRepositoryPropertySpecType as RepositoryRulesetConditionsRepositoryPropertySpecType, ) - from .group_0091 import ( + from .group_0092 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) - from .group_0092 import ( + from .group_0093 import ( EnterpriseRulesetConditionsOrganizationIdTargetType as EnterpriseRulesetConditionsOrganizationIdTargetType, ) - from .group_0093 import ( + from .group_0094 import ( EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType as EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, ) - from .group_0094 import ( + from .group_0095 import ( EnterpriseRulesetConditionsOneof0Type as EnterpriseRulesetConditionsOneof0Type, ) - from .group_0095 import ( + from .group_0096 import ( EnterpriseRulesetConditionsOneof1Type as EnterpriseRulesetConditionsOneof1Type, ) - from .group_0096 import ( + from .group_0097 import ( EnterpriseRulesetConditionsOneof2Type as EnterpriseRulesetConditionsOneof2Type, ) - from .group_0097 import ( + from .group_0098 import ( EnterpriseRulesetConditionsOneof3Type as EnterpriseRulesetConditionsOneof3Type, ) - from .group_0098 import RepositoryRuleCreationType as RepositoryRuleCreationType - from .group_0098 import RepositoryRuleDeletionType as RepositoryRuleDeletionType - from .group_0098 import ( + from .group_0099 import RepositoryRuleCreationType as RepositoryRuleCreationType + from .group_0099 import RepositoryRuleDeletionType as RepositoryRuleDeletionType + from .group_0099 import ( RepositoryRuleNonFastForwardType as RepositoryRuleNonFastForwardType, ) - from .group_0098 import ( + from .group_0099 import ( RepositoryRuleRequiredSignaturesType as RepositoryRuleRequiredSignaturesType, ) - from .group_0099 import RepositoryRuleUpdateType as RepositoryRuleUpdateType - from .group_0100 import ( + from .group_0100 import RepositoryRuleUpdateType as RepositoryRuleUpdateType + from .group_0101 import ( RepositoryRuleUpdatePropParametersType as RepositoryRuleUpdatePropParametersType, ) - from .group_0101 import ( + from .group_0102 import ( RepositoryRuleRequiredLinearHistoryType as RepositoryRuleRequiredLinearHistoryType, ) - from .group_0102 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType from .group_0103 import ( - RepositoryRuleMergeQueuePropParametersType as RepositoryRuleMergeQueuePropParametersType, - ) - from .group_0104 import ( RepositoryRuleRequiredDeploymentsType as RepositoryRuleRequiredDeploymentsType, ) - from .group_0105 import ( + from .group_0104 import ( RepositoryRuleRequiredDeploymentsPropParametersType as RepositoryRuleRequiredDeploymentsPropParametersType, ) - from .group_0106 import ( + from .group_0105 import ( RepositoryRuleParamsRequiredReviewerConfigurationType as RepositoryRuleParamsRequiredReviewerConfigurationType, ) - from .group_0106 import ( + from .group_0105 import ( RepositoryRuleParamsReviewerType as RepositoryRuleParamsReviewerType, ) - from .group_0107 import ( + from .group_0106 import ( RepositoryRulePullRequestType as RepositoryRulePullRequestType, ) - from .group_0108 import ( + from .group_0107 import ( RepositoryRulePullRequestPropParametersType as RepositoryRulePullRequestPropParametersType, ) - from .group_0109 import ( + from .group_0108 import ( RepositoryRuleRequiredStatusChecksType as RepositoryRuleRequiredStatusChecksType, ) - from .group_0110 import ( + from .group_0109 import ( RepositoryRuleParamsStatusCheckConfigurationType as RepositoryRuleParamsStatusCheckConfigurationType, ) - from .group_0110 import ( + from .group_0109 import ( RepositoryRuleRequiredStatusChecksPropParametersType as RepositoryRuleRequiredStatusChecksPropParametersType, ) - from .group_0111 import ( + from .group_0110 import ( RepositoryRuleCommitMessagePatternType as RepositoryRuleCommitMessagePatternType, ) - from .group_0112 import ( + from .group_0111 import ( RepositoryRuleCommitMessagePatternPropParametersType as RepositoryRuleCommitMessagePatternPropParametersType, ) - from .group_0113 import ( + from .group_0112 import ( RepositoryRuleCommitAuthorEmailPatternType as RepositoryRuleCommitAuthorEmailPatternType, ) - from .group_0114 import ( + from .group_0113 import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from .group_0115 import ( + from .group_0114 import ( RepositoryRuleCommitterEmailPatternType as RepositoryRuleCommitterEmailPatternType, ) - from .group_0116 import ( + from .group_0115 import ( RepositoryRuleCommitterEmailPatternPropParametersType as RepositoryRuleCommitterEmailPatternPropParametersType, ) - from .group_0117 import ( + from .group_0116 import ( RepositoryRuleBranchNamePatternType as RepositoryRuleBranchNamePatternType, ) - from .group_0118 import ( + from .group_0117 import ( RepositoryRuleBranchNamePatternPropParametersType as RepositoryRuleBranchNamePatternPropParametersType, ) - from .group_0119 import ( + from .group_0118 import ( RepositoryRuleTagNamePatternType as RepositoryRuleTagNamePatternType, ) - from .group_0120 import ( + from .group_0119 import ( RepositoryRuleTagNamePatternPropParametersType as RepositoryRuleTagNamePatternPropParametersType, ) - from .group_0121 import ( + from .group_0120 import ( RepositoryRuleFilePathRestrictionType as RepositoryRuleFilePathRestrictionType, ) - from .group_0122 import ( + from .group_0121 import ( RepositoryRuleFilePathRestrictionPropParametersType as RepositoryRuleFilePathRestrictionPropParametersType, ) - from .group_0123 import ( + from .group_0122 import ( RepositoryRuleMaxFilePathLengthType as RepositoryRuleMaxFilePathLengthType, ) - from .group_0124 import ( + from .group_0123 import ( RepositoryRuleMaxFilePathLengthPropParametersType as RepositoryRuleMaxFilePathLengthPropParametersType, ) - from .group_0125 import ( + from .group_0124 import ( RepositoryRuleFileExtensionRestrictionType as RepositoryRuleFileExtensionRestrictionType, ) - from .group_0126 import ( + from .group_0125 import ( RepositoryRuleFileExtensionRestrictionPropParametersType as RepositoryRuleFileExtensionRestrictionPropParametersType, ) - from .group_0127 import ( + from .group_0126 import ( RepositoryRuleMaxFileSizeType as RepositoryRuleMaxFileSizeType, ) - from .group_0128 import ( + from .group_0127 import ( RepositoryRuleMaxFileSizePropParametersType as RepositoryRuleMaxFileSizePropParametersType, ) - from .group_0129 import ( + from .group_0128 import ( RepositoryRuleParamsRestrictedCommitsType as RepositoryRuleParamsRestrictedCommitsType, ) - from .group_0130 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType - from .group_0131 import ( + from .group_0129 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType + from .group_0130 import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) - from .group_0131 import ( + from .group_0130 import ( RepositoryRuleWorkflowsPropParametersType as RepositoryRuleWorkflowsPropParametersType, ) - from .group_0132 import ( + from .group_0131 import ( RepositoryRuleCodeScanningType as RepositoryRuleCodeScanningType, ) - from .group_0133 import ( + from .group_0132 import ( RepositoryRuleCodeScanningPropParametersType as RepositoryRuleCodeScanningPropParametersType, ) - from .group_0133 import ( + from .group_0132 import ( RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, ) - from .group_0134 import ( + from .group_0133 import ( RepositoryRulesetConditionsRepositoryIdTargetType as RepositoryRulesetConditionsRepositoryIdTargetType, ) - from .group_0135 import ( + from .group_0134 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) - from .group_0136 import ( + from .group_0135 import ( OrgRulesetConditionsOneof0Type as OrgRulesetConditionsOneof0Type, ) - from .group_0137 import ( + from .group_0136 import ( OrgRulesetConditionsOneof1Type as OrgRulesetConditionsOneof1Type, ) - from .group_0138 import ( + from .group_0137 import ( OrgRulesetConditionsOneof2Type as OrgRulesetConditionsOneof2Type, ) + from .group_0138 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType from .group_0139 import ( + RepositoryRuleMergeQueuePropParametersType as RepositoryRuleMergeQueuePropParametersType, + ) + from .group_0140 import ( RepositoryRulesetPropLinksPropHtmlType as RepositoryRulesetPropLinksPropHtmlType, ) - from .group_0139 import ( + from .group_0140 import ( RepositoryRulesetPropLinksPropSelfType as RepositoryRulesetPropLinksPropSelfType, ) - from .group_0139 import ( + from .group_0140 import ( RepositoryRulesetPropLinksType as RepositoryRulesetPropLinksType, ) - from .group_0139 import RepositoryRulesetType as RepositoryRulesetType - from .group_0140 import RulesetVersionType as RulesetVersionType - from .group_0141 import RulesetVersionPropActorType as RulesetVersionPropActorType - from .group_0142 import RulesetVersionWithStateType as RulesetVersionWithStateType - from .group_0143 import ( + from .group_0140 import RepositoryRulesetType as RepositoryRulesetType + from .group_0141 import RulesetVersionType as RulesetVersionType + from .group_0142 import RulesetVersionPropActorType as RulesetVersionPropActorType + from .group_0143 import RulesetVersionWithStateType as RulesetVersionWithStateType + from .group_0144 import ( RulesetVersionWithStateAllof1Type as RulesetVersionWithStateAllof1Type, ) - from .group_0144 import ( + from .group_0145 import ( RulesetVersionWithStateAllof1PropStateType as RulesetVersionWithStateAllof1PropStateType, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationCommitType as SecretScanningLocationCommitType, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, ) - from .group_0145 import ( + from .group_0146 import ( SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, ) - from .group_0146 import ( + from .group_0147 import ( SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, ) - from .group_0146 import ( + from .group_0147 import ( SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, ) - from .group_0146 import ( + from .group_0147 import ( SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, ) - from .group_0146 import ( + from .group_0147 import ( SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, ) - from .group_0147 import ( + from .group_0148 import ( SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) - from .group_0147 import ( + from .group_0148 import ( SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, ) - from .group_0148 import ( + from .group_0149 import ( OrganizationSecretScanningAlertType as OrganizationSecretScanningAlertType, ) - from .group_0149 import ( + from .group_0150 import ( ActionsBillingUsagePropMinutesUsedBreakdownType as ActionsBillingUsagePropMinutesUsedBreakdownType, ) - from .group_0149 import ActionsBillingUsageType as ActionsBillingUsageType - from .group_0150 import ( + from .group_0150 import ActionsBillingUsageType as ActionsBillingUsageType + from .group_0151 import ( AdvancedSecurityActiveCommittersRepositoryType as AdvancedSecurityActiveCommittersRepositoryType, ) - from .group_0150 import ( + from .group_0151 import ( AdvancedSecurityActiveCommittersType as AdvancedSecurityActiveCommittersType, ) - from .group_0150 import ( + from .group_0151 import ( AdvancedSecurityActiveCommittersUserType as AdvancedSecurityActiveCommittersUserType, ) - from .group_0151 import ( + from .group_0152 import ( GetAllCostCentersPropCostCentersItemsPropResourcesItemsType as GetAllCostCentersPropCostCentersItemsPropResourcesItemsType, ) - from .group_0151 import ( + from .group_0152 import ( GetAllCostCentersPropCostCentersItemsType as GetAllCostCentersPropCostCentersItemsType, ) - from .group_0151 import GetAllCostCentersType as GetAllCostCentersType - from .group_0152 import ( + from .group_0152 import GetAllCostCentersType as GetAllCostCentersType + from .group_0153 import ( GetCostCenterPropResourcesItemsType as GetCostCenterPropResourcesItemsType, ) - from .group_0152 import GetCostCenterType as GetCostCenterType - from .group_0153 import DeleteCostCenterType as DeleteCostCenterType - from .group_0154 import PackagesBillingUsageType as PackagesBillingUsageType - from .group_0155 import CombinedBillingUsageType as CombinedBillingUsageType - from .group_0156 import ( + from .group_0153 import GetCostCenterType as GetCostCenterType + from .group_0154 import DeleteCostCenterType as DeleteCostCenterType + from .group_0155 import PackagesBillingUsageType as PackagesBillingUsageType + from .group_0156 import CombinedBillingUsageType as CombinedBillingUsageType + from .group_0157 import ( BillingUsageReportPropUsageItemsItemsType as BillingUsageReportPropUsageItemsItemsType, ) - from .group_0156 import BillingUsageReportType as BillingUsageReportType - from .group_0157 import MilestoneType as MilestoneType - from .group_0158 import IssueTypeType as IssueTypeType - from .group_0159 import ReactionRollupType as ReactionRollupType - from .group_0160 import ( + from .group_0157 import BillingUsageReportType as BillingUsageReportType + from .group_0158 import MilestoneType as MilestoneType + from .group_0159 import IssueTypeType as IssueTypeType + from .group_0160 import ReactionRollupType as ReactionRollupType + from .group_0161 import SubIssuesSummaryType as SubIssuesSummaryType + from .group_0162 import ( IssuePropLabelsItemsOneof1Type as IssuePropLabelsItemsOneof1Type, ) - from .group_0160 import IssuePropPullRequestType as IssuePropPullRequestType - from .group_0160 import IssueType as IssueType - from .group_0160 import SubIssuesSummaryType as SubIssuesSummaryType - from .group_0161 import IssueCommentType as IssueCommentType - from .group_0162 import ActorType as ActorType - from .group_0162 import ( + from .group_0162 import IssuePropPullRequestType as IssuePropPullRequestType + from .group_0162 import IssueType as IssueType + from .group_0163 import IssueCommentType as IssueCommentType + from .group_0164 import ActorType as ActorType + from .group_0164 import ( EventPropPayloadPropPagesItemsType as EventPropPayloadPropPagesItemsType, ) - from .group_0162 import EventPropPayloadType as EventPropPayloadType - from .group_0162 import EventPropRepoType as EventPropRepoType - from .group_0162 import EventType as EventType - from .group_0163 import FeedPropLinksType as FeedPropLinksType - from .group_0163 import FeedType as FeedType - from .group_0163 import LinkWithTypeType as LinkWithTypeType - from .group_0164 import BaseGistPropFilesType as BaseGistPropFilesType - from .group_0164 import BaseGistType as BaseGistType - from .group_0165 import ( + from .group_0164 import EventPropPayloadType as EventPropPayloadType + from .group_0164 import EventPropRepoType as EventPropRepoType + from .group_0164 import EventType as EventType + from .group_0165 import FeedPropLinksType as FeedPropLinksType + from .group_0165 import FeedType as FeedType + from .group_0165 import LinkWithTypeType as LinkWithTypeType + from .group_0166 import BaseGistPropFilesType as BaseGistPropFilesType + from .group_0166 import BaseGistType as BaseGistType + from .group_0167 import ( GistHistoryPropChangeStatusType as GistHistoryPropChangeStatusType, ) - from .group_0165 import GistHistoryType as GistHistoryType - from .group_0165 import ( + from .group_0167 import GistHistoryType as GistHistoryType + from .group_0167 import ( GistSimplePropForkOfPropFilesType as GistSimplePropForkOfPropFilesType, ) - from .group_0165 import GistSimplePropForkOfType as GistSimplePropForkOfType - from .group_0166 import GistSimplePropFilesType as GistSimplePropFilesType - from .group_0166 import GistSimplePropForksItemsType as GistSimplePropForksItemsType - from .group_0166 import GistSimpleType as GistSimpleType - from .group_0166 import PublicUserPropPlanType as PublicUserPropPlanType - from .group_0166 import PublicUserType as PublicUserType - from .group_0167 import GistCommentType as GistCommentType - from .group_0168 import ( + from .group_0167 import GistSimplePropForkOfType as GistSimplePropForkOfType + from .group_0168 import GistSimplePropFilesType as GistSimplePropFilesType + from .group_0168 import GistSimplePropForksItemsType as GistSimplePropForksItemsType + from .group_0168 import GistSimpleType as GistSimpleType + from .group_0168 import PublicUserPropPlanType as PublicUserPropPlanType + from .group_0168 import PublicUserType as PublicUserType + from .group_0169 import GistCommentType as GistCommentType + from .group_0170 import ( GistCommitPropChangeStatusType as GistCommitPropChangeStatusType, ) - from .group_0168 import GistCommitType as GistCommitType - from .group_0169 import GitignoreTemplateType as GitignoreTemplateType - from .group_0170 import LicenseType as LicenseType - from .group_0171 import MarketplaceListingPlanType as MarketplaceListingPlanType - from .group_0172 import MarketplacePurchaseType as MarketplacePurchaseType - from .group_0173 import ( + from .group_0170 import GistCommitType as GistCommitType + from .group_0171 import GitignoreTemplateType as GitignoreTemplateType + from .group_0172 import LicenseType as LicenseType + from .group_0173 import MarketplaceListingPlanType as MarketplaceListingPlanType + from .group_0174 import MarketplacePurchaseType as MarketplacePurchaseType + from .group_0175 import ( MarketplacePurchasePropMarketplacePendingChangeType as MarketplacePurchasePropMarketplacePendingChangeType, ) - from .group_0173 import ( + from .group_0175 import ( MarketplacePurchasePropMarketplacePurchaseType as MarketplacePurchasePropMarketplacePurchaseType, ) - from .group_0174 import ( + from .group_0176 import ( ApiOverviewPropDomainsPropActionsInboundType as ApiOverviewPropDomainsPropActionsInboundType, ) - from .group_0174 import ( + from .group_0176 import ( ApiOverviewPropDomainsPropArtifactAttestationsType as ApiOverviewPropDomainsPropArtifactAttestationsType, ) - from .group_0174 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType - from .group_0174 import ( + from .group_0176 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType + from .group_0176 import ( ApiOverviewPropSshKeyFingerprintsType as ApiOverviewPropSshKeyFingerprintsType, ) - from .group_0174 import ApiOverviewType as ApiOverviewType - from .group_0175 import ( + from .group_0176 import ApiOverviewType as ApiOverviewType + from .group_0177 import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropCodeSecurityType as SecurityAndAnalysisPropCodeSecurityType, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropDependabotSecurityUpdatesType as SecurityAndAnalysisPropDependabotSecurityUpdatesType, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanningAiDetectionType as SecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatternsType as SecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanningPushProtectionType as SecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanningType as SecurityAndAnalysisPropSecretScanningType, ) - from .group_0175 import ( + from .group_0177 import ( SecurityAndAnalysisPropSecretScanningValidityChecksType as SecurityAndAnalysisPropSecretScanningValidityChecksType, ) - from .group_0175 import SecurityAndAnalysisType as SecurityAndAnalysisType - from .group_0176 import CodeOfConductType as CodeOfConductType - from .group_0176 import ( + from .group_0177 import SecurityAndAnalysisType as SecurityAndAnalysisType + from .group_0178 import CodeOfConductType as CodeOfConductType + from .group_0178 import ( MinimalRepositoryPropCustomPropertiesType as MinimalRepositoryPropCustomPropertiesType, ) - from .group_0176 import ( + from .group_0178 import ( MinimalRepositoryPropLicenseType as MinimalRepositoryPropLicenseType, ) - from .group_0176 import ( + from .group_0178 import ( MinimalRepositoryPropPermissionsType as MinimalRepositoryPropPermissionsType, ) - from .group_0176 import MinimalRepositoryType as MinimalRepositoryType - from .group_0177 import ThreadPropSubjectType as ThreadPropSubjectType - from .group_0177 import ThreadType as ThreadType - from .group_0178 import ThreadSubscriptionType as ThreadSubscriptionType - from .group_0179 import ( + from .group_0178 import MinimalRepositoryType as MinimalRepositoryType + from .group_0179 import ThreadPropSubjectType as ThreadPropSubjectType + from .group_0179 import ThreadType as ThreadType + from .group_0180 import ThreadSubscriptionType as ThreadSubscriptionType + from .group_0181 import ( OrganizationCustomRepositoryRoleType as OrganizationCustomRepositoryRoleType, ) - from .group_0180 import ( + from .group_0182 import ( DependabotRepositoryAccessDetailsType as DependabotRepositoryAccessDetailsType, ) - from .group_0181 import OrganizationFullPropPlanType as OrganizationFullPropPlanType - from .group_0181 import OrganizationFullType as OrganizationFullType - from .group_0182 import OidcCustomSubType as OidcCustomSubType - from .group_0183 import ( + from .group_0183 import OrganizationFullPropPlanType as OrganizationFullPropPlanType + from .group_0183 import OrganizationFullType as OrganizationFullType + from .group_0184 import OidcCustomSubType as OidcCustomSubType + from .group_0185 import ( ActionsOrganizationPermissionsType as ActionsOrganizationPermissionsType, ) - from .group_0184 import ActionsPublicKeyType as ActionsPublicKeyType - from .group_0185 import ( + from .group_0186 import ActionsPublicKeyType as ActionsPublicKeyType + from .group_0187 import ( SecretScanningBypassRequestPropDataItemsType as SecretScanningBypassRequestPropDataItemsType, ) - from .group_0185 import ( + from .group_0187 import ( SecretScanningBypassRequestPropOrganizationType as SecretScanningBypassRequestPropOrganizationType, ) - from .group_0185 import ( + from .group_0187 import ( SecretScanningBypassRequestPropRepositoryType as SecretScanningBypassRequestPropRepositoryType, ) - from .group_0185 import ( + from .group_0187 import ( SecretScanningBypassRequestPropRequesterType as SecretScanningBypassRequestPropRequesterType, ) - from .group_0185 import ( + from .group_0187 import ( SecretScanningBypassRequestType as SecretScanningBypassRequestType, ) - from .group_0186 import ( + from .group_0188 import ( CampaignSummaryPropAlertStatsType as CampaignSummaryPropAlertStatsType, ) - from .group_0186 import CampaignSummaryType as CampaignSummaryType - from .group_0187 import CodespaceMachineType as CodespaceMachineType - from .group_0188 import CodespacePropGitStatusType as CodespacePropGitStatusType - from .group_0188 import ( + from .group_0188 import CampaignSummaryType as CampaignSummaryType + from .group_0189 import CodespaceMachineType as CodespaceMachineType + from .group_0190 import CodespacePropGitStatusType as CodespacePropGitStatusType + from .group_0190 import ( CodespacePropRuntimeConstraintsType as CodespacePropRuntimeConstraintsType, ) - from .group_0188 import CodespaceType as CodespaceType - from .group_0189 import CodespacesPublicKeyType as CodespacesPublicKeyType - from .group_0190 import ( + from .group_0190 import CodespaceType as CodespaceType + from .group_0191 import CodespacesPublicKeyType as CodespacesPublicKeyType + from .group_0192 import ( CopilotOrganizationDetailsType as CopilotOrganizationDetailsType, ) - from .group_0190 import ( + from .group_0192 import ( CopilotOrganizationSeatBreakdownType as CopilotOrganizationSeatBreakdownType, ) - from .group_0191 import CredentialAuthorizationType as CredentialAuthorizationType - from .group_0192 import ( + from .group_0193 import CredentialAuthorizationType as CredentialAuthorizationType + from .group_0194 import ( OrganizationCustomRepositoryRoleCreateSchemaType as OrganizationCustomRepositoryRoleCreateSchemaType, ) - from .group_0193 import ( + from .group_0195 import ( OrganizationCustomRepositoryRoleUpdateSchemaType as OrganizationCustomRepositoryRoleUpdateSchemaType, ) - from .group_0194 import DependabotPublicKeyType as DependabotPublicKeyType - from .group_0195 import ( + from .group_0196 import DependabotPublicKeyType as DependabotPublicKeyType + from .group_0197 import ( CodeScanningAlertDismissalRequestPropDataItemsType as CodeScanningAlertDismissalRequestPropDataItemsType, ) - from .group_0195 import ( + from .group_0197 import ( CodeScanningAlertDismissalRequestPropOrganizationType as CodeScanningAlertDismissalRequestPropOrganizationType, ) - from .group_0195 import ( + from .group_0197 import ( CodeScanningAlertDismissalRequestPropRepositoryType as CodeScanningAlertDismissalRequestPropRepositoryType, ) - from .group_0195 import ( + from .group_0197 import ( CodeScanningAlertDismissalRequestPropRequesterType as CodeScanningAlertDismissalRequestPropRequesterType, ) - from .group_0195 import ( + from .group_0197 import ( CodeScanningAlertDismissalRequestType as CodeScanningAlertDismissalRequestType, ) - from .group_0195 import ( + from .group_0197 import ( DismissalRequestResponsePropReviewerType as DismissalRequestResponsePropReviewerType, ) - from .group_0195 import DismissalRequestResponseType as DismissalRequestResponseType - from .group_0196 import ( + from .group_0197 import DismissalRequestResponseType as DismissalRequestResponseType + from .group_0198 import ( SecretScanningDismissalRequestPropDataItemsType as SecretScanningDismissalRequestPropDataItemsType, ) - from .group_0196 import ( + from .group_0198 import ( SecretScanningDismissalRequestPropOrganizationType as SecretScanningDismissalRequestPropOrganizationType, ) - from .group_0196 import ( + from .group_0198 import ( SecretScanningDismissalRequestPropRepositoryType as SecretScanningDismissalRequestPropRepositoryType, ) - from .group_0196 import ( + from .group_0198 import ( SecretScanningDismissalRequestPropRequesterType as SecretScanningDismissalRequestPropRequesterType, ) - from .group_0196 import ( + from .group_0198 import ( SecretScanningDismissalRequestType as SecretScanningDismissalRequestType, ) - from .group_0197 import PackageType as PackageType - from .group_0198 import ( + from .group_0199 import PackageType as PackageType + from .group_0200 import ( ExternalGroupPropMembersItemsType as ExternalGroupPropMembersItemsType, ) - from .group_0198 import ( + from .group_0200 import ( ExternalGroupPropTeamsItemsType as ExternalGroupPropTeamsItemsType, ) - from .group_0198 import ExternalGroupType as ExternalGroupType - from .group_0199 import ( + from .group_0200 import ExternalGroupType as ExternalGroupType + from .group_0201 import ( ExternalGroupsPropGroupsItemsType as ExternalGroupsPropGroupsItemsType, ) - from .group_0199 import ExternalGroupsType as ExternalGroupsType - from .group_0200 import OrganizationInvitationType as OrganizationInvitationType - from .group_0201 import ( + from .group_0201 import ExternalGroupsType as ExternalGroupsType + from .group_0202 import OrganizationInvitationType as OrganizationInvitationType + from .group_0203 import ( RepositoryFineGrainedPermissionType as RepositoryFineGrainedPermissionType, ) - from .group_0202 import OrgHookPropConfigType as OrgHookPropConfigType - from .group_0202 import OrgHookType as OrgHookType - from .group_0203 import ( + from .group_0204 import OrgHookPropConfigType as OrgHookPropConfigType + from .group_0204 import OrgHookType as OrgHookType + from .group_0205 import ( ApiInsightsRouteStatsItemsType as ApiInsightsRouteStatsItemsType, ) - from .group_0204 import ( + from .group_0206 import ( ApiInsightsSubjectStatsItemsType as ApiInsightsSubjectStatsItemsType, ) - from .group_0205 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType - from .group_0206 import ( + from .group_0207 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType + from .group_0208 import ( ApiInsightsTimeStatsItemsType as ApiInsightsTimeStatsItemsType, ) - from .group_0207 import ( + from .group_0209 import ( ApiInsightsUserStatsItemsType as ApiInsightsUserStatsItemsType, ) - from .group_0208 import InteractionLimitResponseType as InteractionLimitResponseType - from .group_0209 import InteractionLimitType as InteractionLimitType - from .group_0210 import ( + from .group_0210 import InteractionLimitResponseType as InteractionLimitResponseType + from .group_0211 import InteractionLimitType as InteractionLimitType + from .group_0212 import ( OrganizationCreateIssueTypeType as OrganizationCreateIssueTypeType, ) - from .group_0211 import ( + from .group_0213 import ( OrganizationUpdateIssueTypeType as OrganizationUpdateIssueTypeType, ) - from .group_0212 import ( + from .group_0214 import ( OrgMembershipPropPermissionsType as OrgMembershipPropPermissionsType, ) - from .group_0212 import OrgMembershipType as OrgMembershipType - from .group_0213 import MigrationType as MigrationType - from .group_0214 import ( + from .group_0214 import OrgMembershipType as OrgMembershipType + from .group_0215 import MigrationType as MigrationType + from .group_0216 import ( OrganizationFineGrainedPermissionType as OrganizationFineGrainedPermissionType, ) - from .group_0215 import OrganizationRoleType as OrganizationRoleType - from .group_0215 import ( + from .group_0217 import OrganizationRoleType as OrganizationRoleType + from .group_0217 import ( OrgsOrgOrganizationRolesGetResponse200Type as OrgsOrgOrganizationRolesGetResponse200Type, ) - from .group_0216 import ( + from .group_0218 import ( OrganizationCustomOrganizationRoleCreateSchemaType as OrganizationCustomOrganizationRoleCreateSchemaType, ) - from .group_0217 import ( + from .group_0219 import ( OrganizationCustomOrganizationRoleUpdateSchemaType as OrganizationCustomOrganizationRoleUpdateSchemaType, ) - from .group_0218 import ( + from .group_0220 import ( TeamRoleAssignmentPropPermissionsType as TeamRoleAssignmentPropPermissionsType, ) - from .group_0218 import TeamRoleAssignmentType as TeamRoleAssignmentType - from .group_0219 import UserRoleAssignmentType as UserRoleAssignmentType - from .group_0220 import ( + from .group_0220 import TeamRoleAssignmentType as TeamRoleAssignmentType + from .group_0221 import UserRoleAssignmentType as UserRoleAssignmentType + from .group_0222 import ( PackageVersionPropMetadataPropContainerType as PackageVersionPropMetadataPropContainerType, ) - from .group_0220 import ( + from .group_0222 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) - from .group_0220 import ( + from .group_0222 import ( PackageVersionPropMetadataType as PackageVersionPropMetadataType, ) - from .group_0220 import PackageVersionType as PackageVersionType - from .group_0221 import ( + from .group_0222 import PackageVersionType as PackageVersionType + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType, ) - from .group_0221 import ( + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType, ) - from .group_0221 import ( + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0221 import ( + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsType as OrganizationProgrammaticAccessGrantRequestPropPermissionsType, ) - from .group_0221 import ( + from .group_0223 import ( OrganizationProgrammaticAccessGrantRequestType as OrganizationProgrammaticAccessGrantRequestType, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrantPropPermissionsType as OrganizationProgrammaticAccessGrantPropPermissionsType, ) - from .group_0222 import ( + from .group_0224 import ( OrganizationProgrammaticAccessGrantType as OrganizationProgrammaticAccessGrantType, ) - from .group_0223 import ( + from .group_0225 import ( OrgPrivateRegistryConfigurationWithSelectedRepositoriesType as OrgPrivateRegistryConfigurationWithSelectedRepositoriesType, ) - from .group_0224 import ProjectType as ProjectType - from .group_0225 import CustomPropertyValueType as CustomPropertyValueType - from .group_0226 import ( + from .group_0226 import ProjectType as ProjectType + from .group_0227 import CustomPropertyValueType as CustomPropertyValueType + from .group_0228 import ( OrgRepoCustomPropertyValuesType as OrgRepoCustomPropertyValuesType, ) - from .group_0227 import CodeOfConductSimpleType as CodeOfConductSimpleType - from .group_0228 import ( + from .group_0229 import CodeOfConductSimpleType as CodeOfConductSimpleType + from .group_0230 import ( FullRepositoryPropCustomPropertiesType as FullRepositoryPropCustomPropertiesType, ) - from .group_0228 import ( + from .group_0230 import ( FullRepositoryPropPermissionsType as FullRepositoryPropPermissionsType, ) - from .group_0228 import FullRepositoryType as FullRepositoryType - from .group_0229 import RuleSuitesItemsType as RuleSuitesItemsType - from .group_0230 import ( + from .group_0230 import FullRepositoryType as FullRepositoryType + from .group_0231 import RuleSuitesItemsType as RuleSuitesItemsType + from .group_0232 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSourceType as RuleSuitePropRuleEvaluationsItemsPropRuleSourceType, ) - from .group_0230 import ( + from .group_0232 import ( RuleSuitePropRuleEvaluationsItemsType as RuleSuitePropRuleEvaluationsItemsType, ) - from .group_0230 import RuleSuiteType as RuleSuiteType - from .group_0231 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType - from .group_0232 import ( + from .group_0232 import RuleSuiteType as RuleSuiteType + from .group_0233 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType + from .group_0234 import ( RepositoryAdvisoryPropCreditsItemsType as RepositoryAdvisoryPropCreditsItemsType, ) - from .group_0232 import ( + from .group_0234 import ( RepositoryAdvisoryPropCvssType as RepositoryAdvisoryPropCvssType, ) - from .group_0232 import ( + from .group_0234 import ( RepositoryAdvisoryPropCwesItemsType as RepositoryAdvisoryPropCwesItemsType, ) - from .group_0232 import ( + from .group_0234 import ( RepositoryAdvisoryPropIdentifiersItemsType as RepositoryAdvisoryPropIdentifiersItemsType, ) - from .group_0232 import ( + from .group_0234 import ( RepositoryAdvisoryPropSubmissionType as RepositoryAdvisoryPropSubmissionType, ) - from .group_0232 import RepositoryAdvisoryType as RepositoryAdvisoryType - from .group_0232 import ( + from .group_0234 import RepositoryAdvisoryType as RepositoryAdvisoryType + from .group_0234 import ( RepositoryAdvisoryVulnerabilityPropPackageType as RepositoryAdvisoryVulnerabilityPropPackageType, ) - from .group_0232 import ( + from .group_0234 import ( RepositoryAdvisoryVulnerabilityType as RepositoryAdvisoryVulnerabilityType, ) - from .group_0233 import ( + from .group_0235 import ( GroupMappingPropGroupsItemsType as GroupMappingPropGroupsItemsType, ) - from .group_0233 import GroupMappingType as GroupMappingType - from .group_0234 import TeamFullType as TeamFullType - from .group_0234 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType - from .group_0234 import TeamOrganizationType as TeamOrganizationType - from .group_0235 import TeamDiscussionType as TeamDiscussionType - from .group_0236 import TeamDiscussionCommentType as TeamDiscussionCommentType - from .group_0237 import ReactionType as ReactionType - from .group_0238 import TeamMembershipType as TeamMembershipType - from .group_0239 import ( + from .group_0235 import GroupMappingType as GroupMappingType + from .group_0236 import TeamFullType as TeamFullType + from .group_0236 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType + from .group_0236 import TeamOrganizationType as TeamOrganizationType + from .group_0237 import TeamDiscussionType as TeamDiscussionType + from .group_0238 import TeamDiscussionCommentType as TeamDiscussionCommentType + from .group_0239 import ReactionType as ReactionType + from .group_0240 import TeamMembershipType as TeamMembershipType + from .group_0241 import ( TeamProjectPropPermissionsType as TeamProjectPropPermissionsType, ) - from .group_0239 import TeamProjectType as TeamProjectType - from .group_0240 import ( + from .group_0241 import TeamProjectType as TeamProjectType + from .group_0242 import ( TeamRepositoryPropPermissionsType as TeamRepositoryPropPermissionsType, ) - from .group_0240 import TeamRepositoryType as TeamRepositoryType - from .group_0241 import ProjectCardType as ProjectCardType - from .group_0242 import ProjectColumnType as ProjectColumnType - from .group_0243 import ( + from .group_0242 import TeamRepositoryType as TeamRepositoryType + from .group_0243 import ProjectCardType as ProjectCardType + from .group_0244 import ProjectColumnType as ProjectColumnType + from .group_0245 import ( ProjectCollaboratorPermissionType as ProjectCollaboratorPermissionType, ) - from .group_0244 import RateLimitType as RateLimitType - from .group_0245 import RateLimitOverviewType as RateLimitOverviewType - from .group_0246 import ( + from .group_0246 import RateLimitType as RateLimitType + from .group_0247 import RateLimitOverviewType as RateLimitOverviewType + from .group_0248 import ( RateLimitOverviewPropResourcesType as RateLimitOverviewPropResourcesType, ) - from .group_0247 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType - from .group_0247 import ArtifactType as ArtifactType - from .group_0248 import ( + from .group_0249 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType + from .group_0249 import ArtifactType as ArtifactType + from .group_0250 import ( ActionsCacheListPropActionsCachesItemsType as ActionsCacheListPropActionsCachesItemsType, ) - from .group_0248 import ActionsCacheListType as ActionsCacheListType - from .group_0249 import JobPropStepsItemsType as JobPropStepsItemsType - from .group_0249 import JobType as JobType - from .group_0250 import OidcCustomSubRepoType as OidcCustomSubRepoType - from .group_0251 import ActionsSecretType as ActionsSecretType - from .group_0252 import ActionsVariableType as ActionsVariableType - from .group_0253 import ( + from .group_0250 import ActionsCacheListType as ActionsCacheListType + from .group_0251 import JobPropStepsItemsType as JobPropStepsItemsType + from .group_0251 import JobType as JobType + from .group_0252 import OidcCustomSubRepoType as OidcCustomSubRepoType + from .group_0253 import ActionsSecretType as ActionsSecretType + from .group_0254 import ActionsVariableType as ActionsVariableType + from .group_0255 import ( ActionsRepositoryPermissionsType as ActionsRepositoryPermissionsType, ) - from .group_0254 import ( + from .group_0256 import ( ActionsWorkflowAccessToRepositoryType as ActionsWorkflowAccessToRepositoryType, ) - from .group_0255 import ( + from .group_0257 import ( PullRequestMinimalPropBasePropRepoType as PullRequestMinimalPropBasePropRepoType, ) - from .group_0255 import ( + from .group_0257 import ( PullRequestMinimalPropBaseType as PullRequestMinimalPropBaseType, ) - from .group_0255 import ( + from .group_0257 import ( PullRequestMinimalPropHeadPropRepoType as PullRequestMinimalPropHeadPropRepoType, ) - from .group_0255 import ( + from .group_0257 import ( PullRequestMinimalPropHeadType as PullRequestMinimalPropHeadType, ) - from .group_0255 import PullRequestMinimalType as PullRequestMinimalType - from .group_0256 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType - from .group_0256 import ( + from .group_0257 import PullRequestMinimalType as PullRequestMinimalType + from .group_0258 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType + from .group_0258 import ( SimpleCommitPropCommitterType as SimpleCommitPropCommitterType, ) - from .group_0256 import SimpleCommitType as SimpleCommitType - from .group_0257 import ReferencedWorkflowType as ReferencedWorkflowType - from .group_0257 import WorkflowRunType as WorkflowRunType - from .group_0258 import ( + from .group_0258 import SimpleCommitType as SimpleCommitType + from .group_0259 import ReferencedWorkflowType as ReferencedWorkflowType + from .group_0259 import WorkflowRunType as WorkflowRunType + from .group_0260 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) - from .group_0258 import EnvironmentApprovalsType as EnvironmentApprovalsType - from .group_0259 import ( + from .group_0260 import EnvironmentApprovalsType as EnvironmentApprovalsType + from .group_0261 import ( ReviewCustomGatesCommentRequiredType as ReviewCustomGatesCommentRequiredType, ) - from .group_0260 import ( + from .group_0262 import ( ReviewCustomGatesStateRequiredType as ReviewCustomGatesStateRequiredType, ) - from .group_0261 import ( + from .group_0263 import ( PendingDeploymentPropEnvironmentType as PendingDeploymentPropEnvironmentType, ) - from .group_0261 import ( + from .group_0263 import ( PendingDeploymentPropReviewersItemsType as PendingDeploymentPropReviewersItemsType, ) - from .group_0261 import PendingDeploymentType as PendingDeploymentType - from .group_0262 import ( + from .group_0263 import PendingDeploymentType as PendingDeploymentType + from .group_0264 import ( DeploymentPropPayloadOneof0Type as DeploymentPropPayloadOneof0Type, ) - from .group_0262 import DeploymentType as DeploymentType - from .group_0263 import ( + from .group_0264 import DeploymentType as DeploymentType + from .group_0265 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropMacosType as WorkflowRunUsagePropBillablePropMacosType, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropUbuntuType as WorkflowRunUsagePropBillablePropUbuntuType, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillablePropWindowsType as WorkflowRunUsagePropBillablePropWindowsType, ) - from .group_0263 import ( + from .group_0265 import ( WorkflowRunUsagePropBillableType as WorkflowRunUsagePropBillableType, ) - from .group_0263 import WorkflowRunUsageType as WorkflowRunUsageType - from .group_0264 import ( + from .group_0265 import WorkflowRunUsageType as WorkflowRunUsageType + from .group_0266 import ( WorkflowUsagePropBillablePropMacosType as WorkflowUsagePropBillablePropMacosType, ) - from .group_0264 import ( + from .group_0266 import ( WorkflowUsagePropBillablePropUbuntuType as WorkflowUsagePropBillablePropUbuntuType, ) - from .group_0264 import ( + from .group_0266 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) - from .group_0264 import ( + from .group_0266 import ( WorkflowUsagePropBillableType as WorkflowUsagePropBillableType, ) - from .group_0264 import WorkflowUsageType as WorkflowUsageType - from .group_0265 import ActivityType as ActivityType - from .group_0266 import AutolinkType as AutolinkType - from .group_0267 import ( + from .group_0266 import WorkflowUsageType as WorkflowUsageType + from .group_0267 import ActivityType as ActivityType + from .group_0268 import AutolinkType as AutolinkType + from .group_0269 import ( CheckAutomatedSecurityFixesType as CheckAutomatedSecurityFixesType, ) - from .group_0268 import ( + from .group_0270 import ( ProtectedBranchPullRequestReviewType as ProtectedBranchPullRequestReviewType, ) - from .group_0269 import ( + from .group_0271 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0269 import ( + from .group_0271 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0270 import ( + from .group_0272 import ( BranchRestrictionPolicyPropAppsItemsPropOwnerType as BranchRestrictionPolicyPropAppsItemsPropOwnerType, ) - from .group_0270 import ( + from .group_0272 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0270 import ( + from .group_0272 import ( BranchRestrictionPolicyPropAppsItemsType as BranchRestrictionPolicyPropAppsItemsType, ) - from .group_0270 import ( + from .group_0272 import ( BranchRestrictionPolicyPropTeamsItemsType as BranchRestrictionPolicyPropTeamsItemsType, ) - from .group_0270 import ( + from .group_0272 import ( BranchRestrictionPolicyPropUsersItemsType as BranchRestrictionPolicyPropUsersItemsType, ) - from .group_0270 import BranchRestrictionPolicyType as BranchRestrictionPolicyType - from .group_0271 import ( + from .group_0272 import BranchRestrictionPolicyType as BranchRestrictionPolicyType + from .group_0273 import ( BranchProtectionPropAllowDeletionsType as BranchProtectionPropAllowDeletionsType, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropAllowForcePushesType as BranchProtectionPropAllowForcePushesType, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropAllowForkSyncingType as BranchProtectionPropAllowForkSyncingType, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropBlockCreationsType as BranchProtectionPropBlockCreationsType, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropLockBranchType as BranchProtectionPropLockBranchType, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropRequiredLinearHistoryType as BranchProtectionPropRequiredLinearHistoryType, ) - from .group_0271 import ( + from .group_0273 import ( BranchProtectionPropRequiredSignaturesType as BranchProtectionPropRequiredSignaturesType, ) - from .group_0271 import BranchProtectionType as BranchProtectionType - from .group_0271 import ( + from .group_0273 import BranchProtectionType as BranchProtectionType + from .group_0273 import ( ProtectedBranchAdminEnforcedType as ProtectedBranchAdminEnforcedType, ) - from .group_0271 import ( + from .group_0273 import ( ProtectedBranchRequiredStatusCheckPropChecksItemsType as ProtectedBranchRequiredStatusCheckPropChecksItemsType, ) - from .group_0271 import ( + from .group_0273 import ( ProtectedBranchRequiredStatusCheckType as ProtectedBranchRequiredStatusCheckType, ) - from .group_0272 import ShortBranchPropCommitType as ShortBranchPropCommitType - from .group_0272 import ShortBranchType as ShortBranchType - from .group_0273 import GitUserType as GitUserType - from .group_0274 import VerificationType as VerificationType - from .group_0275 import DiffEntryType as DiffEntryType - from .group_0276 import CommitPropParentsItemsType as CommitPropParentsItemsType - from .group_0276 import CommitPropStatsType as CommitPropStatsType - from .group_0276 import CommitType as CommitType - from .group_0276 import EmptyObjectType as EmptyObjectType - from .group_0277 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType - from .group_0277 import CommitPropCommitType as CommitPropCommitType - from .group_0278 import ( + from .group_0274 import ShortBranchPropCommitType as ShortBranchPropCommitType + from .group_0274 import ShortBranchType as ShortBranchType + from .group_0275 import GitUserType as GitUserType + from .group_0276 import VerificationType as VerificationType + from .group_0277 import DiffEntryType as DiffEntryType + from .group_0278 import CommitPropParentsItemsType as CommitPropParentsItemsType + from .group_0278 import CommitPropStatsType as CommitPropStatsType + from .group_0278 import CommitType as CommitType + from .group_0278 import EmptyObjectType as EmptyObjectType + from .group_0279 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType + from .group_0279 import CommitPropCommitType as CommitPropCommitType + from .group_0280 import ( BranchWithProtectionPropLinksType as BranchWithProtectionPropLinksType, ) - from .group_0278 import BranchWithProtectionType as BranchWithProtectionType - from .group_0279 import ( + from .group_0280 import BranchWithProtectionType as BranchWithProtectionType + from .group_0281 import ( ProtectedBranchPropAllowDeletionsType as ProtectedBranchPropAllowDeletionsType, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropAllowForcePushesType as ProtectedBranchPropAllowForcePushesType, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropAllowForkSyncingType as ProtectedBranchPropAllowForkSyncingType, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropBlockCreationsType as ProtectedBranchPropBlockCreationsType, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropEnforceAdminsType as ProtectedBranchPropEnforceAdminsType, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropLockBranchType as ProtectedBranchPropLockBranchType, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropRequiredConversationResolutionType as ProtectedBranchPropRequiredConversationResolutionType, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropRequiredLinearHistoryType as ProtectedBranchPropRequiredLinearHistoryType, ) - from .group_0279 import ( + from .group_0281 import ( ProtectedBranchPropRequiredSignaturesType as ProtectedBranchPropRequiredSignaturesType, ) - from .group_0279 import ProtectedBranchType as ProtectedBranchType - from .group_0279 import ( + from .group_0281 import ProtectedBranchType as ProtectedBranchType + from .group_0281 import ( StatusCheckPolicyPropChecksItemsType as StatusCheckPolicyPropChecksItemsType, ) - from .group_0279 import StatusCheckPolicyType as StatusCheckPolicyType - from .group_0280 import ( + from .group_0281 import StatusCheckPolicyType as StatusCheckPolicyType + from .group_0282 import ( ProtectedBranchPropRequiredPullRequestReviewsType as ProtectedBranchPropRequiredPullRequestReviewsType, ) - from .group_0281 import ( + from .group_0283 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0281 import ( + from .group_0283 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0282 import DeploymentSimpleType as DeploymentSimpleType - from .group_0283 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType - from .group_0283 import CheckRunPropOutputType as CheckRunPropOutputType - from .group_0283 import CheckRunType as CheckRunType - from .group_0284 import CheckAnnotationType as CheckAnnotationType - from .group_0285 import CheckSuiteType as CheckSuiteType - from .group_0285 import ( + from .group_0284 import DeploymentSimpleType as DeploymentSimpleType + from .group_0285 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType + from .group_0285 import CheckRunPropOutputType as CheckRunPropOutputType + from .group_0285 import CheckRunType as CheckRunType + from .group_0286 import CheckAnnotationType as CheckAnnotationType + from .group_0287 import CheckSuiteType as CheckSuiteType + from .group_0287 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type, ) - from .group_0286 import ( + from .group_0288 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0286 import ( + from .group_0288 import ( CheckSuitePreferencePropPreferencesType as CheckSuitePreferencePropPreferencesType, ) - from .group_0286 import CheckSuitePreferenceType as CheckSuitePreferenceType - from .group_0287 import CodeScanningAlertItemsType as CodeScanningAlertItemsType - from .group_0288 import CodeScanningAlertRuleType as CodeScanningAlertRuleType - from .group_0288 import CodeScanningAlertType as CodeScanningAlertType - from .group_0289 import CodeScanningAutofixType as CodeScanningAutofixType - from .group_0290 import ( + from .group_0288 import CheckSuitePreferenceType as CheckSuitePreferenceType + from .group_0289 import CodeScanningAlertItemsType as CodeScanningAlertItemsType + from .group_0290 import CodeScanningAlertRuleType as CodeScanningAlertRuleType + from .group_0290 import CodeScanningAlertType as CodeScanningAlertType + from .group_0291 import CodeScanningAutofixType as CodeScanningAutofixType + from .group_0292 import ( CodeScanningAutofixCommitsType as CodeScanningAutofixCommitsType, ) - from .group_0291 import ( + from .group_0293 import ( CodeScanningAutofixCommitsResponseType as CodeScanningAutofixCommitsResponseType, ) - from .group_0292 import CodeScanningAnalysisType as CodeScanningAnalysisType - from .group_0293 import ( + from .group_0294 import CodeScanningAnalysisType as CodeScanningAnalysisType + from .group_0295 import ( CodeScanningAnalysisDeletionType as CodeScanningAnalysisDeletionType, ) - from .group_0294 import ( + from .group_0296 import ( CodeScanningCodeqlDatabaseType as CodeScanningCodeqlDatabaseType, ) - from .group_0295 import ( + from .group_0297 import ( CodeScanningVariantAnalysisRepositoryType as CodeScanningVariantAnalysisRepositoryType, ) - from .group_0296 import ( + from .group_0298 import ( CodeScanningVariantAnalysisSkippedRepoGroupType as CodeScanningVariantAnalysisSkippedRepoGroupType, ) - from .group_0297 import ( + from .group_0299 import ( CodeScanningVariantAnalysisType as CodeScanningVariantAnalysisType, ) - from .group_0298 import ( + from .group_0300 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItemsType as CodeScanningVariantAnalysisPropScannedRepositoriesItemsType, ) - from .group_0299 import ( + from .group_0301 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType, ) - from .group_0299 import ( + from .group_0301 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesType as CodeScanningVariantAnalysisPropSkippedRepositoriesType, ) - from .group_0300 import ( + from .group_0302 import ( CodeScanningVariantAnalysisRepoTaskType as CodeScanningVariantAnalysisRepoTaskType, ) - from .group_0301 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType - from .group_0302 import ( + from .group_0303 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType + from .group_0304 import ( CodeScanningDefaultSetupUpdateType as CodeScanningDefaultSetupUpdateType, ) - from .group_0303 import ( + from .group_0305 import ( CodeScanningDefaultSetupUpdateResponseType as CodeScanningDefaultSetupUpdateResponseType, ) - from .group_0304 import ( + from .group_0306 import ( CodeScanningSarifsReceiptType as CodeScanningSarifsReceiptType, ) - from .group_0305 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType - from .group_0306 import ( + from .group_0307 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType + from .group_0308 import ( CodeSecurityConfigurationForRepositoryType as CodeSecurityConfigurationForRepositoryType, ) - from .group_0307 import ( + from .group_0309 import ( CodeownersErrorsPropErrorsItemsType as CodeownersErrorsPropErrorsItemsType, ) - from .group_0307 import CodeownersErrorsType as CodeownersErrorsType - from .group_0308 import ( + from .group_0309 import CodeownersErrorsType as CodeownersErrorsType + from .group_0310 import ( CodespacesPermissionsCheckForDevcontainerType as CodespacesPermissionsCheckForDevcontainerType, ) - from .group_0309 import RepositoryInvitationType as RepositoryInvitationType - from .group_0310 import ( + from .group_0311 import RepositoryInvitationType as RepositoryInvitationType + from .group_0312 import ( CollaboratorPropPermissionsType as CollaboratorPropPermissionsType, ) - from .group_0310 import CollaboratorType as CollaboratorType - from .group_0310 import ( + from .group_0312 import CollaboratorType as CollaboratorType + from .group_0312 import ( RepositoryCollaboratorPermissionType as RepositoryCollaboratorPermissionType, ) - from .group_0311 import CommitCommentType as CommitCommentType - from .group_0311 import ( + from .group_0313 import CommitCommentType as CommitCommentType + from .group_0313 import ( TimelineCommitCommentedEventType as TimelineCommitCommentedEventType, ) - from .group_0312 import BranchShortPropCommitType as BranchShortPropCommitType - from .group_0312 import BranchShortType as BranchShortType - from .group_0313 import LinkType as LinkType - from .group_0314 import AutoMergeType as AutoMergeType - from .group_0315 import ( + from .group_0314 import BranchShortPropCommitType as BranchShortPropCommitType + from .group_0314 import BranchShortType as BranchShortType + from .group_0315 import LinkType as LinkType + from .group_0316 import AutoMergeType as AutoMergeType + from .group_0317 import ( PullRequestSimplePropLabelsItemsType as PullRequestSimplePropLabelsItemsType, ) - from .group_0315 import PullRequestSimpleType as PullRequestSimpleType - from .group_0316 import ( + from .group_0317 import PullRequestSimpleType as PullRequestSimpleType + from .group_0318 import ( PullRequestSimplePropBaseType as PullRequestSimplePropBaseType, ) - from .group_0316 import ( + from .group_0318 import ( PullRequestSimplePropHeadType as PullRequestSimplePropHeadType, ) - from .group_0317 import ( + from .group_0319 import ( PullRequestSimplePropLinksType as PullRequestSimplePropLinksType, ) - from .group_0318 import CombinedCommitStatusType as CombinedCommitStatusType - from .group_0318 import SimpleCommitStatusType as SimpleCommitStatusType - from .group_0319 import StatusType as StatusType - from .group_0320 import CommunityHealthFileType as CommunityHealthFileType - from .group_0320 import ( + from .group_0320 import CombinedCommitStatusType as CombinedCommitStatusType + from .group_0320 import SimpleCommitStatusType as SimpleCommitStatusType + from .group_0321 import StatusType as StatusType + from .group_0322 import CommunityHealthFileType as CommunityHealthFileType + from .group_0322 import ( CommunityProfilePropFilesType as CommunityProfilePropFilesType, ) - from .group_0320 import CommunityProfileType as CommunityProfileType - from .group_0321 import CommitComparisonType as CommitComparisonType - from .group_0322 import ( + from .group_0322 import CommunityProfileType as CommunityProfileType + from .group_0323 import CommitComparisonType as CommitComparisonType + from .group_0324 import ( ContentTreePropEntriesItemsPropLinksType as ContentTreePropEntriesItemsPropLinksType, ) - from .group_0322 import ( + from .group_0324 import ( ContentTreePropEntriesItemsType as ContentTreePropEntriesItemsType, ) - from .group_0322 import ContentTreePropLinksType as ContentTreePropLinksType - from .group_0322 import ContentTreeType as ContentTreeType - from .group_0323 import ( + from .group_0324 import ContentTreePropLinksType as ContentTreePropLinksType + from .group_0324 import ContentTreeType as ContentTreeType + from .group_0325 import ( ContentDirectoryItemsPropLinksType as ContentDirectoryItemsPropLinksType, ) - from .group_0323 import ContentDirectoryItemsType as ContentDirectoryItemsType - from .group_0324 import ContentFilePropLinksType as ContentFilePropLinksType - from .group_0324 import ContentFileType as ContentFileType - from .group_0325 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType - from .group_0325 import ContentSymlinkType as ContentSymlinkType - from .group_0326 import ( + from .group_0325 import ContentDirectoryItemsType as ContentDirectoryItemsType + from .group_0326 import ContentFilePropLinksType as ContentFilePropLinksType + from .group_0326 import ContentFileType as ContentFileType + from .group_0327 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType + from .group_0327 import ContentSymlinkType as ContentSymlinkType + from .group_0328 import ( ContentSubmodulePropLinksType as ContentSubmodulePropLinksType, ) - from .group_0326 import ContentSubmoduleType as ContentSubmoduleType - from .group_0327 import ( + from .group_0328 import ContentSubmoduleType as ContentSubmoduleType + from .group_0329 import ( FileCommitPropCommitPropAuthorType as FileCommitPropCommitPropAuthorType, ) - from .group_0327 import ( + from .group_0329 import ( FileCommitPropCommitPropCommitterType as FileCommitPropCommitPropCommitterType, ) - from .group_0327 import ( + from .group_0329 import ( FileCommitPropCommitPropParentsItemsType as FileCommitPropCommitPropParentsItemsType, ) - from .group_0327 import ( + from .group_0329 import ( FileCommitPropCommitPropTreeType as FileCommitPropCommitPropTreeType, ) - from .group_0327 import ( + from .group_0329 import ( FileCommitPropCommitPropVerificationType as FileCommitPropCommitPropVerificationType, ) - from .group_0327 import FileCommitPropCommitType as FileCommitPropCommitType - from .group_0327 import ( + from .group_0329 import FileCommitPropCommitType as FileCommitPropCommitType + from .group_0329 import ( FileCommitPropContentPropLinksType as FileCommitPropContentPropLinksType, ) - from .group_0327 import FileCommitPropContentType as FileCommitPropContentType - from .group_0327 import FileCommitType as FileCommitType - from .group_0328 import ( + from .group_0329 import FileCommitPropContentType as FileCommitPropContentType + from .group_0329 import FileCommitType as FileCommitType + from .group_0330 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType, ) - from .group_0328 import ( + from .group_0330 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningType, ) - from .group_0328 import ( + from .group_0330 import ( RepositoryRuleViolationErrorPropMetadataType as RepositoryRuleViolationErrorPropMetadataType, ) - from .group_0328 import ( + from .group_0330 import ( RepositoryRuleViolationErrorType as RepositoryRuleViolationErrorType, ) - from .group_0329 import ContributorType as ContributorType - from .group_0330 import DependabotAlertType as DependabotAlertType - from .group_0331 import ( + from .group_0331 import ContributorType as ContributorType + from .group_0332 import DependabotAlertType as DependabotAlertType + from .group_0333 import ( DependabotAlertPropDependencyType as DependabotAlertPropDependencyType, ) - from .group_0332 import ( + from .group_0334 import ( DependencyGraphDiffItemsPropVulnerabilitiesItemsType as DependencyGraphDiffItemsPropVulnerabilitiesItemsType, ) - from .group_0332 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType - from .group_0333 import ( + from .group_0334 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType + from .group_0335 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfoType as DependencyGraphSpdxSbomPropSbomPropCreationInfoType, ) - from .group_0333 import ( + from .group_0335 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0333 import ( + from .group_0335 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsType, ) - from .group_0333 import ( + from .group_0335 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType as DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType, ) - from .group_0333 import ( + from .group_0335 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0333 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType - from .group_0334 import MetadataType as MetadataType - from .group_0335 import DependencyType as DependencyType - from .group_0336 import ManifestPropFileType as ManifestPropFileType - from .group_0336 import ManifestPropResolvedType as ManifestPropResolvedType - from .group_0336 import ManifestType as ManifestType - from .group_0337 import SnapshotPropDetectorType as SnapshotPropDetectorType - from .group_0337 import SnapshotPropJobType as SnapshotPropJobType - from .group_0337 import SnapshotPropManifestsType as SnapshotPropManifestsType - from .group_0337 import SnapshotType as SnapshotType - from .group_0338 import DeploymentStatusType as DeploymentStatusType - from .group_0339 import ( + from .group_0335 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType + from .group_0336 import MetadataType as MetadataType + from .group_0337 import DependencyType as DependencyType + from .group_0338 import ManifestPropFileType as ManifestPropFileType + from .group_0338 import ManifestPropResolvedType as ManifestPropResolvedType + from .group_0338 import ManifestType as ManifestType + from .group_0339 import SnapshotPropDetectorType as SnapshotPropDetectorType + from .group_0339 import SnapshotPropJobType as SnapshotPropJobType + from .group_0339 import SnapshotPropManifestsType as SnapshotPropManifestsType + from .group_0339 import SnapshotType as SnapshotType + from .group_0340 import DeploymentStatusType as DeploymentStatusType + from .group_0341 import ( DeploymentBranchPolicySettingsType as DeploymentBranchPolicySettingsType, ) - from .group_0340 import ( + from .group_0342 import ( EnvironmentPropProtectionRulesItemsAnyof0Type as EnvironmentPropProtectionRulesItemsAnyof0Type, ) - from .group_0340 import ( + from .group_0342 import ( EnvironmentPropProtectionRulesItemsAnyof2Type as EnvironmentPropProtectionRulesItemsAnyof2Type, ) - from .group_0340 import EnvironmentType as EnvironmentType - from .group_0340 import ( + from .group_0342 import EnvironmentType as EnvironmentType + from .group_0342 import ( ReposOwnerRepoEnvironmentsGetResponse200Type as ReposOwnerRepoEnvironmentsGetResponse200Type, ) - from .group_0341 import ( + from .group_0343 import ( EnvironmentPropProtectionRulesItemsAnyof1Type as EnvironmentPropProtectionRulesItemsAnyof1Type, ) - from .group_0342 import ( + from .group_0344 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType, ) - from .group_0343 import ( + from .group_0345 import ( DeploymentBranchPolicyNamePatternWithTypeType as DeploymentBranchPolicyNamePatternWithTypeType, ) - from .group_0344 import ( + from .group_0346 import ( DeploymentBranchPolicyNamePatternType as DeploymentBranchPolicyNamePatternType, ) - from .group_0345 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType - from .group_0346 import DeploymentProtectionRuleType as DeploymentProtectionRuleType - from .group_0346 import ( + from .group_0347 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType + from .group_0348 import DeploymentProtectionRuleType as DeploymentProtectionRuleType + from .group_0348 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0347 import ShortBlobType as ShortBlobType - from .group_0348 import BlobType as BlobType - from .group_0349 import GitCommitPropAuthorType as GitCommitPropAuthorType - from .group_0349 import GitCommitPropCommitterType as GitCommitPropCommitterType - from .group_0349 import ( + from .group_0349 import ShortBlobType as ShortBlobType + from .group_0350 import BlobType as BlobType + from .group_0351 import GitCommitPropAuthorType as GitCommitPropAuthorType + from .group_0351 import GitCommitPropCommitterType as GitCommitPropCommitterType + from .group_0351 import ( GitCommitPropParentsItemsType as GitCommitPropParentsItemsType, ) - from .group_0349 import GitCommitPropTreeType as GitCommitPropTreeType - from .group_0349 import ( + from .group_0351 import GitCommitPropTreeType as GitCommitPropTreeType + from .group_0351 import ( GitCommitPropVerificationType as GitCommitPropVerificationType, ) - from .group_0349 import GitCommitType as GitCommitType - from .group_0350 import GitRefPropObjectType as GitRefPropObjectType - from .group_0350 import GitRefType as GitRefType - from .group_0351 import GitTagPropObjectType as GitTagPropObjectType - from .group_0351 import GitTagPropTaggerType as GitTagPropTaggerType - from .group_0351 import GitTagType as GitTagType - from .group_0352 import GitTreePropTreeItemsType as GitTreePropTreeItemsType - from .group_0352 import GitTreeType as GitTreeType - from .group_0353 import HookResponseType as HookResponseType - from .group_0354 import HookType as HookType - from .group_0355 import ( + from .group_0351 import GitCommitType as GitCommitType + from .group_0352 import GitRefPropObjectType as GitRefPropObjectType + from .group_0352 import GitRefType as GitRefType + from .group_0353 import GitTagPropObjectType as GitTagPropObjectType + from .group_0353 import GitTagPropTaggerType as GitTagPropTaggerType + from .group_0353 import GitTagType as GitTagType + from .group_0354 import GitTreePropTreeItemsType as GitTreePropTreeItemsType + from .group_0354 import GitTreeType as GitTreeType + from .group_0355 import HookResponseType as HookResponseType + from .group_0356 import HookType as HookType + from .group_0357 import ( ImportPropProjectChoicesItemsType as ImportPropProjectChoicesItemsType, ) - from .group_0355 import ImportType as ImportType - from .group_0356 import PorterAuthorType as PorterAuthorType - from .group_0357 import PorterLargeFileType as PorterLargeFileType - from .group_0358 import ( + from .group_0357 import ImportType as ImportType + from .group_0358 import PorterAuthorType as PorterAuthorType + from .group_0359 import PorterLargeFileType as PorterLargeFileType + from .group_0360 import ( IssueEventDismissedReviewType as IssueEventDismissedReviewType, ) - from .group_0358 import IssueEventLabelType as IssueEventLabelType - from .group_0358 import IssueEventMilestoneType as IssueEventMilestoneType - from .group_0358 import IssueEventProjectCardType as IssueEventProjectCardType - from .group_0358 import IssueEventRenameType as IssueEventRenameType - from .group_0358 import IssueEventType as IssueEventType - from .group_0359 import ( + from .group_0360 import IssueEventLabelType as IssueEventLabelType + from .group_0360 import IssueEventMilestoneType as IssueEventMilestoneType + from .group_0360 import IssueEventProjectCardType as IssueEventProjectCardType + from .group_0360 import IssueEventRenameType as IssueEventRenameType + from .group_0360 import IssueEventType as IssueEventType + from .group_0361 import ( LabeledIssueEventPropLabelType as LabeledIssueEventPropLabelType, ) - from .group_0359 import LabeledIssueEventType as LabeledIssueEventType - from .group_0360 import ( + from .group_0361 import LabeledIssueEventType as LabeledIssueEventType + from .group_0362 import ( UnlabeledIssueEventPropLabelType as UnlabeledIssueEventPropLabelType, ) - from .group_0360 import UnlabeledIssueEventType as UnlabeledIssueEventType - from .group_0361 import AssignedIssueEventType as AssignedIssueEventType - from .group_0362 import UnassignedIssueEventType as UnassignedIssueEventType - from .group_0363 import ( + from .group_0362 import UnlabeledIssueEventType as UnlabeledIssueEventType + from .group_0363 import AssignedIssueEventType as AssignedIssueEventType + from .group_0364 import UnassignedIssueEventType as UnassignedIssueEventType + from .group_0365 import ( MilestonedIssueEventPropMilestoneType as MilestonedIssueEventPropMilestoneType, ) - from .group_0363 import MilestonedIssueEventType as MilestonedIssueEventType - from .group_0364 import ( + from .group_0365 import MilestonedIssueEventType as MilestonedIssueEventType + from .group_0366 import ( DemilestonedIssueEventPropMilestoneType as DemilestonedIssueEventPropMilestoneType, ) - from .group_0364 import DemilestonedIssueEventType as DemilestonedIssueEventType - from .group_0365 import ( + from .group_0366 import DemilestonedIssueEventType as DemilestonedIssueEventType + from .group_0367 import ( RenamedIssueEventPropRenameType as RenamedIssueEventPropRenameType, ) - from .group_0365 import RenamedIssueEventType as RenamedIssueEventType - from .group_0366 import ( + from .group_0367 import RenamedIssueEventType as RenamedIssueEventType + from .group_0368 import ( ReviewRequestedIssueEventType as ReviewRequestedIssueEventType, ) - from .group_0367 import ( + from .group_0369 import ( ReviewRequestRemovedIssueEventType as ReviewRequestRemovedIssueEventType, ) - from .group_0368 import ( + from .group_0370 import ( ReviewDismissedIssueEventPropDismissedReviewType as ReviewDismissedIssueEventPropDismissedReviewType, ) - from .group_0368 import ( + from .group_0370 import ( ReviewDismissedIssueEventType as ReviewDismissedIssueEventType, ) - from .group_0369 import LockedIssueEventType as LockedIssueEventType - from .group_0370 import ( + from .group_0371 import LockedIssueEventType as LockedIssueEventType + from .group_0372 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0370 import AddedToProjectIssueEventType as AddedToProjectIssueEventType - from .group_0371 import ( + from .group_0372 import AddedToProjectIssueEventType as AddedToProjectIssueEventType + from .group_0373 import ( MovedColumnInProjectIssueEventPropProjectCardType as MovedColumnInProjectIssueEventPropProjectCardType, ) - from .group_0371 import ( + from .group_0373 import ( MovedColumnInProjectIssueEventType as MovedColumnInProjectIssueEventType, ) - from .group_0372 import ( + from .group_0374 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0372 import ( + from .group_0374 import ( RemovedFromProjectIssueEventType as RemovedFromProjectIssueEventType, ) - from .group_0373 import ( + from .group_0375 import ( ConvertedNoteToIssueIssueEventPropProjectCardType as ConvertedNoteToIssueIssueEventPropProjectCardType, ) - from .group_0373 import ( + from .group_0375 import ( ConvertedNoteToIssueIssueEventType as ConvertedNoteToIssueIssueEventType, ) - from .group_0374 import TimelineCommentEventType as TimelineCommentEventType - from .group_0375 import ( + from .group_0376 import TimelineCommentEventType as TimelineCommentEventType + from .group_0377 import ( TimelineCrossReferencedEventType as TimelineCrossReferencedEventType, ) - from .group_0376 import ( + from .group_0378 import ( TimelineCrossReferencedEventPropSourceType as TimelineCrossReferencedEventPropSourceType, ) - from .group_0377 import ( + from .group_0379 import ( TimelineCommittedEventPropAuthorType as TimelineCommittedEventPropAuthorType, ) - from .group_0377 import ( + from .group_0379 import ( TimelineCommittedEventPropCommitterType as TimelineCommittedEventPropCommitterType, ) - from .group_0377 import ( + from .group_0379 import ( TimelineCommittedEventPropParentsItemsType as TimelineCommittedEventPropParentsItemsType, ) - from .group_0377 import ( + from .group_0379 import ( TimelineCommittedEventPropTreeType as TimelineCommittedEventPropTreeType, ) - from .group_0377 import ( + from .group_0379 import ( TimelineCommittedEventPropVerificationType as TimelineCommittedEventPropVerificationType, ) - from .group_0377 import TimelineCommittedEventType as TimelineCommittedEventType - from .group_0378 import ( + from .group_0379 import TimelineCommittedEventType as TimelineCommittedEventType + from .group_0380 import ( TimelineReviewedEventPropLinksPropHtmlType as TimelineReviewedEventPropLinksPropHtmlType, ) - from .group_0378 import ( + from .group_0380 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0378 import ( + from .group_0380 import ( TimelineReviewedEventPropLinksType as TimelineReviewedEventPropLinksType, ) - from .group_0378 import TimelineReviewedEventType as TimelineReviewedEventType - from .group_0379 import ( + from .group_0380 import TimelineReviewedEventType as TimelineReviewedEventType + from .group_0381 import ( PullRequestReviewCommentPropLinksPropHtmlType as PullRequestReviewCommentPropLinksPropHtmlType, ) - from .group_0379 import ( + from .group_0381 import ( PullRequestReviewCommentPropLinksPropPullRequestType as PullRequestReviewCommentPropLinksPropPullRequestType, ) - from .group_0379 import ( + from .group_0381 import ( PullRequestReviewCommentPropLinksPropSelfType as PullRequestReviewCommentPropLinksPropSelfType, ) - from .group_0379 import ( + from .group_0381 import ( PullRequestReviewCommentPropLinksType as PullRequestReviewCommentPropLinksType, ) - from .group_0379 import PullRequestReviewCommentType as PullRequestReviewCommentType - from .group_0379 import ( + from .group_0381 import PullRequestReviewCommentType as PullRequestReviewCommentType + from .group_0381 import ( TimelineLineCommentedEventType as TimelineLineCommentedEventType, ) - from .group_0380 import ( + from .group_0382 import ( TimelineAssignedIssueEventType as TimelineAssignedIssueEventType, ) - from .group_0381 import ( + from .group_0383 import ( TimelineUnassignedIssueEventType as TimelineUnassignedIssueEventType, ) - from .group_0382 import StateChangeIssueEventType as StateChangeIssueEventType - from .group_0383 import DeployKeyType as DeployKeyType - from .group_0384 import LanguageType as LanguageType - from .group_0385 import LicenseContentPropLinksType as LicenseContentPropLinksType - from .group_0385 import LicenseContentType as LicenseContentType - from .group_0386 import MergedUpstreamType as MergedUpstreamType - from .group_0387 import PagesHttpsCertificateType as PagesHttpsCertificateType - from .group_0387 import PagesSourceHashType as PagesSourceHashType - from .group_0387 import PageType as PageType - from .group_0388 import PageBuildPropErrorType as PageBuildPropErrorType - from .group_0388 import PageBuildType as PageBuildType - from .group_0389 import PageBuildStatusType as PageBuildStatusType - from .group_0390 import PageDeploymentType as PageDeploymentType - from .group_0391 import PagesDeploymentStatusType as PagesDeploymentStatusType - from .group_0392 import ( + from .group_0384 import StateChangeIssueEventType as StateChangeIssueEventType + from .group_0385 import DeployKeyType as DeployKeyType + from .group_0386 import LanguageType as LanguageType + from .group_0387 import LicenseContentPropLinksType as LicenseContentPropLinksType + from .group_0387 import LicenseContentType as LicenseContentType + from .group_0388 import MergedUpstreamType as MergedUpstreamType + from .group_0389 import PagesHttpsCertificateType as PagesHttpsCertificateType + from .group_0389 import PagesSourceHashType as PagesSourceHashType + from .group_0389 import PageType as PageType + from .group_0390 import PageBuildPropErrorType as PageBuildPropErrorType + from .group_0390 import PageBuildType as PageBuildType + from .group_0391 import PageBuildStatusType as PageBuildStatusType + from .group_0392 import PageDeploymentType as PageDeploymentType + from .group_0393 import PagesDeploymentStatusType as PagesDeploymentStatusType + from .group_0394 import ( PagesHealthCheckPropAltDomainType as PagesHealthCheckPropAltDomainType, ) - from .group_0392 import ( + from .group_0394 import ( PagesHealthCheckPropDomainType as PagesHealthCheckPropDomainType, ) - from .group_0392 import PagesHealthCheckType as PagesHealthCheckType - from .group_0393 import PullRequestType as PullRequestType - from .group_0394 import ( + from .group_0394 import PagesHealthCheckType as PagesHealthCheckType + from .group_0395 import PullRequestType as PullRequestType + from .group_0396 import ( PullRequestPropLabelsItemsType as PullRequestPropLabelsItemsType, ) - from .group_0395 import PullRequestPropBaseType as PullRequestPropBaseType - from .group_0395 import PullRequestPropHeadType as PullRequestPropHeadType - from .group_0396 import PullRequestPropLinksType as PullRequestPropLinksType - from .group_0397 import PullRequestMergeResultType as PullRequestMergeResultType - from .group_0398 import PullRequestReviewRequestType as PullRequestReviewRequestType - from .group_0399 import ( + from .group_0397 import PullRequestPropBaseType as PullRequestPropBaseType + from .group_0397 import PullRequestPropHeadType as PullRequestPropHeadType + from .group_0398 import PullRequestPropLinksType as PullRequestPropLinksType + from .group_0399 import PullRequestMergeResultType as PullRequestMergeResultType + from .group_0400 import PullRequestReviewRequestType as PullRequestReviewRequestType + from .group_0401 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0399 import ( + from .group_0401 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0399 import ( + from .group_0401 import ( PullRequestReviewPropLinksType as PullRequestReviewPropLinksType, ) - from .group_0399 import PullRequestReviewType as PullRequestReviewType - from .group_0400 import ReviewCommentType as ReviewCommentType - from .group_0401 import ReviewCommentPropLinksType as ReviewCommentPropLinksType - from .group_0402 import ReleaseAssetType as ReleaseAssetType - from .group_0403 import ReleaseType as ReleaseType - from .group_0404 import ReleaseNotesContentType as ReleaseNotesContentType - from .group_0405 import ( + from .group_0401 import PullRequestReviewType as PullRequestReviewType + from .group_0402 import ReviewCommentType as ReviewCommentType + from .group_0403 import ReviewCommentPropLinksType as ReviewCommentPropLinksType + from .group_0404 import ReleaseAssetType as ReleaseAssetType + from .group_0405 import ReleaseType as ReleaseType + from .group_0406 import ReleaseNotesContentType as ReleaseNotesContentType + from .group_0407 import ( RepositoryRuleRulesetInfoType as RepositoryRuleRulesetInfoType, ) - from .group_0406 import ( + from .group_0408 import ( RepositoryRuleDetailedOneof0Type as RepositoryRuleDetailedOneof0Type, ) - from .group_0407 import ( + from .group_0409 import ( RepositoryRuleDetailedOneof1Type as RepositoryRuleDetailedOneof1Type, ) - from .group_0408 import ( + from .group_0410 import ( RepositoryRuleDetailedOneof2Type as RepositoryRuleDetailedOneof2Type, ) - from .group_0409 import ( + from .group_0411 import ( RepositoryRuleDetailedOneof3Type as RepositoryRuleDetailedOneof3Type, ) - from .group_0410 import ( + from .group_0412 import ( RepositoryRuleDetailedOneof4Type as RepositoryRuleDetailedOneof4Type, ) - from .group_0411 import ( + from .group_0413 import ( RepositoryRuleDetailedOneof5Type as RepositoryRuleDetailedOneof5Type, ) - from .group_0412 import ( + from .group_0414 import ( RepositoryRuleDetailedOneof6Type as RepositoryRuleDetailedOneof6Type, ) - from .group_0413 import ( + from .group_0415 import ( RepositoryRuleDetailedOneof7Type as RepositoryRuleDetailedOneof7Type, ) - from .group_0414 import ( + from .group_0416 import ( RepositoryRuleDetailedOneof8Type as RepositoryRuleDetailedOneof8Type, ) - from .group_0415 import ( + from .group_0417 import ( RepositoryRuleDetailedOneof9Type as RepositoryRuleDetailedOneof9Type, ) - from .group_0416 import ( + from .group_0418 import ( RepositoryRuleDetailedOneof10Type as RepositoryRuleDetailedOneof10Type, ) - from .group_0417 import ( + from .group_0419 import ( RepositoryRuleDetailedOneof11Type as RepositoryRuleDetailedOneof11Type, ) - from .group_0418 import ( + from .group_0420 import ( RepositoryRuleDetailedOneof12Type as RepositoryRuleDetailedOneof12Type, ) - from .group_0419 import ( + from .group_0421 import ( RepositoryRuleDetailedOneof13Type as RepositoryRuleDetailedOneof13Type, ) - from .group_0420 import ( + from .group_0422 import ( RepositoryRuleDetailedOneof14Type as RepositoryRuleDetailedOneof14Type, ) - from .group_0421 import ( + from .group_0423 import ( RepositoryRuleDetailedOneof15Type as RepositoryRuleDetailedOneof15Type, ) - from .group_0422 import ( + from .group_0424 import ( RepositoryRuleDetailedOneof16Type as RepositoryRuleDetailedOneof16Type, ) - from .group_0423 import ( + from .group_0425 import ( RepositoryRuleDetailedOneof17Type as RepositoryRuleDetailedOneof17Type, ) - from .group_0424 import ( + from .group_0426 import ( RepositoryRuleDetailedOneof18Type as RepositoryRuleDetailedOneof18Type, ) - from .group_0425 import ( + from .group_0427 import ( RepositoryRuleDetailedOneof19Type as RepositoryRuleDetailedOneof19Type, ) - from .group_0426 import ( + from .group_0428 import ( RepositoryRuleDetailedOneof20Type as RepositoryRuleDetailedOneof20Type, ) - from .group_0427 import SecretScanningAlertType as SecretScanningAlertType - from .group_0428 import SecretScanningLocationType as SecretScanningLocationType - from .group_0429 import ( + from .group_0429 import SecretScanningAlertType as SecretScanningAlertType + from .group_0430 import SecretScanningLocationType as SecretScanningLocationType + from .group_0431 import ( SecretScanningPushProtectionBypassType as SecretScanningPushProtectionBypassType, ) - from .group_0430 import ( + from .group_0432 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType, ) - from .group_0430 import ( + from .group_0432 import ( SecretScanningScanHistoryType as SecretScanningScanHistoryType, ) - from .group_0430 import SecretScanningScanType as SecretScanningScanType - from .group_0431 import ( + from .group_0432 import SecretScanningScanType as SecretScanningScanType + from .group_0433 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type, ) - from .group_0432 import ( + from .group_0434 import ( RepositoryAdvisoryCreatePropCreditsItemsType as RepositoryAdvisoryCreatePropCreditsItemsType, ) - from .group_0432 import ( + from .group_0434 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0432 import ( + from .group_0434 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsType, ) - from .group_0432 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType - from .group_0433 import ( + from .group_0434 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType + from .group_0435 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0433 import ( + from .group_0435 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0433 import ( + from .group_0435 import ( PrivateVulnerabilityReportCreateType as PrivateVulnerabilityReportCreateType, ) - from .group_0434 import ( + from .group_0436 import ( RepositoryAdvisoryUpdatePropCreditsItemsType as RepositoryAdvisoryUpdatePropCreditsItemsType, ) - from .group_0434 import ( + from .group_0436 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0434 import ( + from .group_0436 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0434 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType - from .group_0435 import StargazerType as StargazerType - from .group_0436 import CommitActivityType as CommitActivityType - from .group_0437 import ( + from .group_0436 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType + from .group_0437 import StargazerType as StargazerType + from .group_0438 import CommitActivityType as CommitActivityType + from .group_0439 import ( ContributorActivityPropWeeksItemsType as ContributorActivityPropWeeksItemsType, ) - from .group_0437 import ContributorActivityType as ContributorActivityType - from .group_0438 import ParticipationStatsType as ParticipationStatsType - from .group_0439 import RepositorySubscriptionType as RepositorySubscriptionType - from .group_0440 import TagPropCommitType as TagPropCommitType - from .group_0440 import TagType as TagType - from .group_0441 import TagProtectionType as TagProtectionType - from .group_0442 import TopicType as TopicType - from .group_0443 import TrafficType as TrafficType - from .group_0444 import CloneTrafficType as CloneTrafficType - from .group_0445 import ContentTrafficType as ContentTrafficType - from .group_0446 import ReferrerTrafficType as ReferrerTrafficType - from .group_0447 import ViewTrafficType as ViewTrafficType - from .group_0448 import ( + from .group_0439 import ContributorActivityType as ContributorActivityType + from .group_0440 import ParticipationStatsType as ParticipationStatsType + from .group_0441 import RepositorySubscriptionType as RepositorySubscriptionType + from .group_0442 import TagPropCommitType as TagPropCommitType + from .group_0442 import TagType as TagType + from .group_0443 import TagProtectionType as TagProtectionType + from .group_0444 import TopicType as TopicType + from .group_0445 import TrafficType as TrafficType + from .group_0446 import CloneTrafficType as CloneTrafficType + from .group_0447 import ContentTrafficType as ContentTrafficType + from .group_0448 import ReferrerTrafficType as ReferrerTrafficType + from .group_0449 import ViewTrafficType as ViewTrafficType + from .group_0450 import ( GroupResponsePropMembersItemsType as GroupResponsePropMembersItemsType, ) - from .group_0448 import GroupResponseType as GroupResponseType - from .group_0449 import MetaType as MetaType - from .group_0450 import ScimEnterpriseGroupListType as ScimEnterpriseGroupListType - from .group_0450 import ( + from .group_0450 import GroupResponseType as GroupResponseType + from .group_0451 import MetaType as MetaType + from .group_0452 import ScimEnterpriseGroupListType as ScimEnterpriseGroupListType + from .group_0452 import ( ScimEnterpriseGroupResponseMergedMembersType as ScimEnterpriseGroupResponseMergedMembersType, ) - from .group_0450 import ( + from .group_0452 import ( ScimEnterpriseGroupResponseType as ScimEnterpriseGroupResponseType, ) - from .group_0451 import ( + from .group_0453 import ( ScimEnterpriseGroupResponseAllof1PropMembersItemsType as ScimEnterpriseGroupResponseAllof1PropMembersItemsType, ) - from .group_0451 import ( + from .group_0453 import ( ScimEnterpriseGroupResponseAllof1Type as ScimEnterpriseGroupResponseAllof1Type, ) - from .group_0452 import GroupPropMembersItemsType as GroupPropMembersItemsType - from .group_0452 import GroupType as GroupType - from .group_0453 import ( + from .group_0454 import GroupPropMembersItemsType as GroupPropMembersItemsType + from .group_0454 import GroupType as GroupType + from .group_0455 import ( PatchSchemaPropOperationsItemsType as PatchSchemaPropOperationsItemsType, ) - from .group_0453 import PatchSchemaType as PatchSchemaType - from .group_0454 import UserEmailsResponseItemsType as UserEmailsResponseItemsType - from .group_0454 import UserNameResponseType as UserNameResponseType - from .group_0455 import UserRoleItemsType as UserRoleItemsType - from .group_0456 import UserResponseType as UserResponseType - from .group_0457 import ScimEnterpriseUserListType as ScimEnterpriseUserListType - from .group_0457 import ( + from .group_0455 import PatchSchemaType as PatchSchemaType + from .group_0456 import UserEmailsResponseItemsType as UserEmailsResponseItemsType + from .group_0456 import UserNameResponseType as UserNameResponseType + from .group_0457 import UserRoleItemsType as UserRoleItemsType + from .group_0458 import UserResponseType as UserResponseType + from .group_0459 import ScimEnterpriseUserListType as ScimEnterpriseUserListType + from .group_0459 import ( ScimEnterpriseUserResponseType as ScimEnterpriseUserResponseType, ) - from .group_0458 import ( + from .group_0460 import ( ScimEnterpriseUserResponseAllof1Type as ScimEnterpriseUserResponseAllof1Type, ) - from .group_0459 import ( + from .group_0461 import ( ScimEnterpriseUserResponseAllof1PropGroupsItemsType as ScimEnterpriseUserResponseAllof1PropGroupsItemsType, ) - from .group_0460 import UserEmailsItemsType as UserEmailsItemsType - from .group_0460 import UserNameType as UserNameType - from .group_0460 import UserType as UserType - from .group_0461 import ScimUserListType as ScimUserListType - from .group_0461 import ScimUserPropEmailsItemsType as ScimUserPropEmailsItemsType - from .group_0461 import ScimUserPropGroupsItemsType as ScimUserPropGroupsItemsType - from .group_0461 import ScimUserPropMetaType as ScimUserPropMetaType - from .group_0461 import ScimUserPropNameType as ScimUserPropNameType - from .group_0461 import ( + from .group_0462 import UserEmailsItemsType as UserEmailsItemsType + from .group_0462 import UserNameType as UserNameType + from .group_0462 import UserType as UserType + from .group_0463 import ScimUserListType as ScimUserListType + from .group_0463 import ScimUserPropEmailsItemsType as ScimUserPropEmailsItemsType + from .group_0463 import ScimUserPropGroupsItemsType as ScimUserPropGroupsItemsType + from .group_0463 import ScimUserPropMetaType as ScimUserPropMetaType + from .group_0463 import ScimUserPropNameType as ScimUserPropNameType + from .group_0463 import ( ScimUserPropOperationsItemsPropValueOneof1Type as ScimUserPropOperationsItemsPropValueOneof1Type, ) - from .group_0461 import ( + from .group_0463 import ( ScimUserPropOperationsItemsType as ScimUserPropOperationsItemsType, ) - from .group_0461 import ScimUserPropRolesItemsType as ScimUserPropRolesItemsType - from .group_0461 import ScimUserType as ScimUserType - from .group_0462 import ( + from .group_0463 import ScimUserPropRolesItemsType as ScimUserPropRolesItemsType + from .group_0463 import ScimUserType as ScimUserType + from .group_0464 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0462 import ( + from .group_0464 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0463 import CodeSearchResultItemType as CodeSearchResultItemType - from .group_0463 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0464 import ( + from .group_0465 import CodeSearchResultItemType as CodeSearchResultItemType + from .group_0465 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type + from .group_0466 import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) - from .group_0464 import CommitSearchResultItemType as CommitSearchResultItemType - from .group_0464 import ( + from .group_0466 import CommitSearchResultItemType as CommitSearchResultItemType + from .group_0466 import ( SearchCommitsGetResponse200Type as SearchCommitsGetResponse200Type, ) - from .group_0465 import ( + from .group_0467 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0465 import ( + from .group_0467 import ( CommitSearchResultItemPropCommitPropTreeType as CommitSearchResultItemPropCommitPropTreeType, ) - from .group_0465 import ( + from .group_0467 import ( CommitSearchResultItemPropCommitType as CommitSearchResultItemPropCommitType, ) - from .group_0466 import ( + from .group_0468 import ( IssueSearchResultItemPropLabelsItemsType as IssueSearchResultItemPropLabelsItemsType, ) - from .group_0466 import ( + from .group_0468 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0466 import ( - IssueSearchResultItemPropSubIssuesSummaryType as IssueSearchResultItemPropSubIssuesSummaryType, - ) - from .group_0466 import IssueSearchResultItemType as IssueSearchResultItemType - from .group_0466 import ( + from .group_0468 import IssueSearchResultItemType as IssueSearchResultItemType + from .group_0468 import ( SearchIssuesGetResponse200Type as SearchIssuesGetResponse200Type, ) - from .group_0467 import LabelSearchResultItemType as LabelSearchResultItemType - from .group_0467 import ( + from .group_0469 import LabelSearchResultItemType as LabelSearchResultItemType + from .group_0469 import ( SearchLabelsGetResponse200Type as SearchLabelsGetResponse200Type, ) - from .group_0468 import ( + from .group_0470 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0468 import RepoSearchResultItemType as RepoSearchResultItemType - from .group_0468 import ( + from .group_0470 import RepoSearchResultItemType as RepoSearchResultItemType + from .group_0470 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0469 import ( + from .group_0471 import ( SearchTopicsGetResponse200Type as SearchTopicsGetResponse200Type, ) - from .group_0469 import ( + from .group_0471 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelationType as TopicSearchResultItemPropAliasesItemsPropTopicRelationType, ) - from .group_0469 import ( + from .group_0471 import ( TopicSearchResultItemPropAliasesItemsType as TopicSearchResultItemPropAliasesItemsType, ) - from .group_0469 import ( + from .group_0471 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0469 import ( + from .group_0471 import ( TopicSearchResultItemPropRelatedItemsType as TopicSearchResultItemPropRelatedItemsType, ) - from .group_0469 import TopicSearchResultItemType as TopicSearchResultItemType - from .group_0470 import ( + from .group_0471 import TopicSearchResultItemType as TopicSearchResultItemType + from .group_0472 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0470 import UserSearchResultItemType as UserSearchResultItemType - from .group_0471 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0471 import PrivateUserType as PrivateUserType - from .group_0472 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType - from .group_0473 import CodespaceExportDetailsType as CodespaceExportDetailsType - from .group_0474 import ( + from .group_0472 import UserSearchResultItemType as UserSearchResultItemType + from .group_0473 import PrivateUserPropPlanType as PrivateUserPropPlanType + from .group_0473 import PrivateUserType as PrivateUserType + from .group_0474 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType + from .group_0475 import CodespaceExportDetailsType as CodespaceExportDetailsType + from .group_0476 import ( CodespaceWithFullRepositoryPropGitStatusType as CodespaceWithFullRepositoryPropGitStatusType, ) - from .group_0474 import ( + from .group_0476 import ( CodespaceWithFullRepositoryPropRuntimeConstraintsType as CodespaceWithFullRepositoryPropRuntimeConstraintsType, ) - from .group_0474 import ( + from .group_0476 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0475 import EmailType as EmailType - from .group_0476 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0476 import ( + from .group_0477 import EmailType as EmailType + from .group_0478 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType + from .group_0478 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0476 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0476 import GpgKeyType as GpgKeyType - from .group_0477 import KeyType as KeyType - from .group_0478 import MarketplaceAccountType as MarketplaceAccountType - from .group_0478 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0479 import SocialAccountType as SocialAccountType - from .group_0480 import SshSigningKeyType as SshSigningKeyType - from .group_0481 import StarredRepositoryType as StarredRepositoryType - from .group_0482 import ( + from .group_0478 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType + from .group_0478 import GpgKeyType as GpgKeyType + from .group_0479 import KeyType as KeyType + from .group_0480 import MarketplaceAccountType as MarketplaceAccountType + from .group_0480 import UserMarketplacePurchaseType as UserMarketplacePurchaseType + from .group_0481 import SocialAccountType as SocialAccountType + from .group_0482 import SshSigningKeyType as SshSigningKeyType + from .group_0483 import StarredRepositoryType as StarredRepositoryType + from .group_0484 import ( HovercardPropContextsItemsType as HovercardPropContextsItemsType, ) - from .group_0482 import HovercardType as HovercardType - from .group_0483 import KeySimpleType as KeySimpleType - from .group_0484 import ( + from .group_0484 import HovercardType as HovercardType + from .group_0485 import KeySimpleType as KeySimpleType + from .group_0486 import ( BillingUsageReportUserPropUsageItemsItemsType as BillingUsageReportUserPropUsageItemsItemsType, ) - from .group_0484 import BillingUsageReportUserType as BillingUsageReportUserType - from .group_0485 import EnterpriseWebhooksType as EnterpriseWebhooksType - from .group_0486 import SimpleInstallationType as SimpleInstallationType - from .group_0487 import ( + from .group_0486 import BillingUsageReportUserType as BillingUsageReportUserType + from .group_0487 import EnterpriseWebhooksType as EnterpriseWebhooksType + from .group_0488 import SimpleInstallationType as SimpleInstallationType + from .group_0489 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0488 import ( + from .group_0490 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0488 import ( + from .group_0490 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0488 import ( + from .group_0490 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0488 import ( + from .group_0490 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0488 import ( + from .group_0490 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0488 import RepositoryWebhooksType as RepositoryWebhooksType - from .group_0489 import WebhooksRuleType as WebhooksRuleType - from .group_0490 import ExemptionResponseType as ExemptionResponseType - from .group_0491 import ( + from .group_0490 import RepositoryWebhooksType as RepositoryWebhooksType + from .group_0491 import WebhooksRuleType as WebhooksRuleType + from .group_0492 import ExemptionResponseType as ExemptionResponseType + from .group_0493 import ( DismissalRequestCodeScanningMetadataType as DismissalRequestCodeScanningMetadataType, ) - from .group_0491 import ( + from .group_0493 import ( DismissalRequestCodeScanningPropDataItemsType as DismissalRequestCodeScanningPropDataItemsType, ) - from .group_0491 import ( + from .group_0493 import ( DismissalRequestCodeScanningType as DismissalRequestCodeScanningType, ) - from .group_0491 import ( + from .group_0493 import ( DismissalRequestSecretScanningMetadataType as DismissalRequestSecretScanningMetadataType, ) - from .group_0491 import ( + from .group_0493 import ( DismissalRequestSecretScanningPropDataItemsType as DismissalRequestSecretScanningPropDataItemsType, ) - from .group_0491 import ( + from .group_0493 import ( DismissalRequestSecretScanningType as DismissalRequestSecretScanningType, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestPushRulesetBypassPropDataItemsType as ExemptionRequestPushRulesetBypassPropDataItemsType, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestPushRulesetBypassType as ExemptionRequestPushRulesetBypassType, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestSecretScanningMetadataType as ExemptionRequestSecretScanningMetadataType, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType as ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestSecretScanningPropDataItemsType as ExemptionRequestSecretScanningPropDataItemsType, ) - from .group_0491 import ( + from .group_0493 import ( ExemptionRequestSecretScanningType as ExemptionRequestSecretScanningType, ) - from .group_0491 import ExemptionRequestType as ExemptionRequestType - from .group_0492 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0493 import ( + from .group_0493 import ExemptionRequestType as ExemptionRequestType + from .group_0494 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0495 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0493 import ( + from .group_0495 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0494 import WebhooksDeployKeyType as WebhooksDeployKeyType - from .group_0495 import WebhooksWorkflowType as WebhooksWorkflowType - from .group_0496 import WebhooksApproverType as WebhooksApproverType - from .group_0496 import ( + from .group_0496 import WebhooksDeployKeyType as WebhooksDeployKeyType + from .group_0497 import WebhooksWorkflowType as WebhooksWorkflowType + from .group_0498 import WebhooksApproverType as WebhooksApproverType + from .group_0498 import ( WebhooksReviewersItemsPropReviewerType as WebhooksReviewersItemsPropReviewerType, ) - from .group_0496 import WebhooksReviewersItemsType as WebhooksReviewersItemsType - from .group_0497 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType - from .group_0498 import WebhooksUserType as WebhooksUserType - from .group_0499 import ( + from .group_0498 import WebhooksReviewersItemsType as WebhooksReviewersItemsType + from .group_0499 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType + from .group_0500 import WebhooksUserType as WebhooksUserType + from .group_0501 import ( WebhooksAnswerPropReactionsType as WebhooksAnswerPropReactionsType, ) - from .group_0499 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType - from .group_0499 import WebhooksAnswerType as WebhooksAnswerType - from .group_0500 import ( + from .group_0501 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType + from .group_0501 import WebhooksAnswerType as WebhooksAnswerType + from .group_0502 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0500 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0500 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0500 import DiscussionPropUserType as DiscussionPropUserType - from .group_0500 import DiscussionType as DiscussionType - from .group_0500 import LabelType as LabelType - from .group_0501 import ( + from .group_0502 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0502 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0502 import DiscussionPropUserType as DiscussionPropUserType + from .group_0502 import DiscussionType as DiscussionType + from .group_0502 import LabelType as LabelType + from .group_0503 import ( WebhooksCommentPropReactionsType as WebhooksCommentPropReactionsType, ) - from .group_0501 import WebhooksCommentPropUserType as WebhooksCommentPropUserType - from .group_0501 import WebhooksCommentType as WebhooksCommentType - from .group_0502 import WebhooksLabelType as WebhooksLabelType - from .group_0503 import ( + from .group_0503 import WebhooksCommentPropUserType as WebhooksCommentPropUserType + from .group_0503 import WebhooksCommentType as WebhooksCommentType + from .group_0504 import WebhooksLabelType as WebhooksLabelType + from .group_0505 import ( WebhooksRepositoriesItemsType as WebhooksRepositoriesItemsType, ) - from .group_0504 import ( + from .group_0506 import ( WebhooksRepositoriesAddedItemsType as WebhooksRepositoriesAddedItemsType, ) - from .group_0505 import ( + from .group_0507 import ( WebhooksIssueCommentPropReactionsType as WebhooksIssueCommentPropReactionsType, ) - from .group_0505 import ( + from .group_0507 import ( WebhooksIssueCommentPropUserType as WebhooksIssueCommentPropUserType, ) - from .group_0505 import WebhooksIssueCommentType as WebhooksIssueCommentType - from .group_0506 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType - from .group_0506 import WebhooksChangesType as WebhooksChangesType - from .group_0507 import ( + from .group_0507 import WebhooksIssueCommentType as WebhooksIssueCommentType + from .group_0508 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType + from .group_0508 import WebhooksChangesType as WebhooksChangesType + from .group_0509 import ( WebhooksIssuePropAssigneesItemsType as WebhooksIssuePropAssigneesItemsType, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropAssigneeType as WebhooksIssuePropAssigneeType, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropLabelsItemsType as WebhooksIssuePropLabelsItemsType, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropMilestonePropCreatorType as WebhooksIssuePropMilestonePropCreatorType, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropMilestoneType as WebhooksIssuePropMilestoneType, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropPerformedViaGithubAppPropOwnerType as WebhooksIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissionsType as WebhooksIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropPerformedViaGithubAppType as WebhooksIssuePropPerformedViaGithubAppType, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropPullRequestType as WebhooksIssuePropPullRequestType, ) - from .group_0507 import ( + from .group_0509 import ( WebhooksIssuePropReactionsType as WebhooksIssuePropReactionsType, ) - from .group_0507 import ( - WebhooksIssuePropSubIssuesSummaryType as WebhooksIssuePropSubIssuesSummaryType, - ) - from .group_0507 import WebhooksIssuePropUserType as WebhooksIssuePropUserType - from .group_0507 import WebhooksIssueType as WebhooksIssueType - from .group_0508 import ( + from .group_0509 import WebhooksIssuePropUserType as WebhooksIssuePropUserType + from .group_0509 import WebhooksIssueType as WebhooksIssueType + from .group_0510 import ( WebhooksMilestonePropCreatorType as WebhooksMilestonePropCreatorType, ) - from .group_0508 import WebhooksMilestoneType as WebhooksMilestoneType - from .group_0509 import ( + from .group_0510 import WebhooksMilestoneType as WebhooksMilestoneType + from .group_0511 import ( WebhooksIssue2PropAssigneesItemsType as WebhooksIssue2PropAssigneesItemsType, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropAssigneeType as WebhooksIssue2PropAssigneeType, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropLabelsItemsType as WebhooksIssue2PropLabelsItemsType, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropMilestonePropCreatorType as WebhooksIssue2PropMilestonePropCreatorType, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropMilestoneType as WebhooksIssue2PropMilestoneType, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwnerType as WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType as WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropPerformedViaGithubAppType as WebhooksIssue2PropPerformedViaGithubAppType, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropPullRequestType as WebhooksIssue2PropPullRequestType, ) - from .group_0509 import ( + from .group_0511 import ( WebhooksIssue2PropReactionsType as WebhooksIssue2PropReactionsType, ) - from .group_0509 import ( - WebhooksIssue2PropSubIssuesSummaryType as WebhooksIssue2PropSubIssuesSummaryType, - ) - from .group_0509 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType - from .group_0509 import WebhooksIssue2Type as WebhooksIssue2Type - from .group_0510 import WebhooksUserMannequinType as WebhooksUserMannequinType - from .group_0511 import ( + from .group_0511 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType + from .group_0511 import WebhooksIssue2Type as WebhooksIssue2Type + from .group_0512 import WebhooksUserMannequinType as WebhooksUserMannequinType + from .group_0513 import ( WebhooksMarketplacePurchasePropAccountType as WebhooksMarketplacePurchasePropAccountType, ) - from .group_0511 import ( + from .group_0513 import ( WebhooksMarketplacePurchasePropPlanType as WebhooksMarketplacePurchasePropPlanType, ) - from .group_0511 import ( + from .group_0513 import ( WebhooksMarketplacePurchaseType as WebhooksMarketplacePurchaseType, ) - from .group_0512 import ( + from .group_0514 import ( WebhooksPreviousMarketplacePurchasePropAccountType as WebhooksPreviousMarketplacePurchasePropAccountType, ) - from .group_0512 import ( + from .group_0514 import ( WebhooksPreviousMarketplacePurchasePropPlanType as WebhooksPreviousMarketplacePurchasePropPlanType, ) - from .group_0512 import ( + from .group_0514 import ( WebhooksPreviousMarketplacePurchaseType as WebhooksPreviousMarketplacePurchaseType, ) - from .group_0513 import WebhooksTeamPropParentType as WebhooksTeamPropParentType - from .group_0513 import WebhooksTeamType as WebhooksTeamType - from .group_0514 import MergeGroupType as MergeGroupType - from .group_0515 import ( + from .group_0515 import WebhooksTeamPropParentType as WebhooksTeamPropParentType + from .group_0515 import WebhooksTeamType as WebhooksTeamType + from .group_0516 import MergeGroupType as MergeGroupType + from .group_0517 import ( WebhooksMilestone3PropCreatorType as WebhooksMilestone3PropCreatorType, ) - from .group_0515 import WebhooksMilestone3Type as WebhooksMilestone3Type - from .group_0516 import ( + from .group_0517 import WebhooksMilestone3Type as WebhooksMilestone3Type + from .group_0518 import ( WebhooksMembershipPropUserType as WebhooksMembershipPropUserType, ) - from .group_0516 import WebhooksMembershipType as WebhooksMembershipType - from .group_0517 import ( + from .group_0518 import WebhooksMembershipType as WebhooksMembershipType + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0517 import ( + from .group_0519 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0518 import ( + from .group_0520 import ( WebhooksProjectCardPropCreatorType as WebhooksProjectCardPropCreatorType, ) - from .group_0518 import WebhooksProjectCardType as WebhooksProjectCardType - from .group_0519 import ( + from .group_0520 import WebhooksProjectCardType as WebhooksProjectCardType + from .group_0521 import ( WebhooksProjectPropCreatorType as WebhooksProjectPropCreatorType, ) - from .group_0519 import WebhooksProjectType as WebhooksProjectType - from .group_0520 import WebhooksProjectColumnType as WebhooksProjectColumnType - from .group_0521 import ProjectsV2Type as ProjectsV2Type - from .group_0522 import ( + from .group_0521 import WebhooksProjectType as WebhooksProjectType + from .group_0522 import WebhooksProjectColumnType as WebhooksProjectColumnType + from .group_0523 import ProjectsV2Type as ProjectsV2Type + from .group_0524 import ( WebhooksProjectChangesPropArchivedAtType as WebhooksProjectChangesPropArchivedAtType, ) - from .group_0522 import WebhooksProjectChangesType as WebhooksProjectChangesType - from .group_0523 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0524 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType - from .group_0525 import PullRequestWebhookType as PullRequestWebhookType - from .group_0526 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type - from .group_0527 import ( + from .group_0524 import WebhooksProjectChangesType as WebhooksProjectChangesType + from .group_0525 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0526 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType + from .group_0527 import PullRequestWebhookType as PullRequestWebhookType + from .group_0528 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0529 import ( WebhooksPullRequest5PropAssigneesItemsType as WebhooksPullRequest5PropAssigneesItemsType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropAssigneeType as WebhooksPullRequest5PropAssigneeType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropAutoMergePropEnabledByType as WebhooksPullRequest5PropAutoMergePropEnabledByType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropAutoMergeType as WebhooksPullRequest5PropAutoMergeType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBasePropRepoPropLicenseType as WebhooksPullRequest5PropBasePropRepoPropLicenseType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBasePropRepoPropOwnerType as WebhooksPullRequest5PropBasePropRepoPropOwnerType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBasePropRepoPropPermissionsType as WebhooksPullRequest5PropBasePropRepoPropPermissionsType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBasePropRepoType as WebhooksPullRequest5PropBasePropRepoType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBasePropUserType as WebhooksPullRequest5PropBasePropUserType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropBaseType as WebhooksPullRequest5PropBaseType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadPropRepoPropLicenseType as WebhooksPullRequest5PropHeadPropRepoPropLicenseType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadPropRepoPropOwnerType as WebhooksPullRequest5PropHeadPropRepoPropOwnerType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissionsType as WebhooksPullRequest5PropHeadPropRepoPropPermissionsType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadPropRepoType as WebhooksPullRequest5PropHeadPropRepoType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadPropUserType as WebhooksPullRequest5PropHeadPropUserType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropHeadType as WebhooksPullRequest5PropHeadType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLabelsItemsType as WebhooksPullRequest5PropLabelsItemsType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropCommentsType as WebhooksPullRequest5PropLinksPropCommentsType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropCommitsType as WebhooksPullRequest5PropLinksPropCommitsType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropHtmlType as WebhooksPullRequest5PropLinksPropHtmlType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropIssueType as WebhooksPullRequest5PropLinksPropIssueType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropReviewCommentsType as WebhooksPullRequest5PropLinksPropReviewCommentsType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropReviewCommentType as WebhooksPullRequest5PropLinksPropReviewCommentType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropSelfType as WebhooksPullRequest5PropLinksPropSelfType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksPropStatusesType as WebhooksPullRequest5PropLinksPropStatusesType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropLinksType as WebhooksPullRequest5PropLinksType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropMergedByType as WebhooksPullRequest5PropMergedByType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropMilestonePropCreatorType as WebhooksPullRequest5PropMilestonePropCreatorType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropMilestoneType as WebhooksPullRequest5PropMilestoneType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParentType as WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropRequestedTeamsItemsType as WebhooksPullRequest5PropRequestedTeamsItemsType, ) - from .group_0527 import ( + from .group_0529 import ( WebhooksPullRequest5PropUserType as WebhooksPullRequest5PropUserType, ) - from .group_0527 import WebhooksPullRequest5Type as WebhooksPullRequest5Type - from .group_0528 import ( + from .group_0529 import WebhooksPullRequest5Type as WebhooksPullRequest5Type + from .group_0530 import ( WebhooksReviewCommentPropLinksPropHtmlType as WebhooksReviewCommentPropLinksPropHtmlType, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropLinksPropPullRequestType as WebhooksReviewCommentPropLinksPropPullRequestType, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropLinksPropSelfType as WebhooksReviewCommentPropLinksPropSelfType, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropLinksType as WebhooksReviewCommentPropLinksType, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropReactionsType as WebhooksReviewCommentPropReactionsType, ) - from .group_0528 import ( + from .group_0530 import ( WebhooksReviewCommentPropUserType as WebhooksReviewCommentPropUserType, ) - from .group_0528 import WebhooksReviewCommentType as WebhooksReviewCommentType - from .group_0529 import ( + from .group_0530 import WebhooksReviewCommentType as WebhooksReviewCommentType + from .group_0531 import ( WebhooksReviewPropLinksPropHtmlType as WebhooksReviewPropLinksPropHtmlType, ) - from .group_0529 import ( + from .group_0531 import ( WebhooksReviewPropLinksPropPullRequestType as WebhooksReviewPropLinksPropPullRequestType, ) - from .group_0529 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType - from .group_0529 import WebhooksReviewPropUserType as WebhooksReviewPropUserType - from .group_0529 import WebhooksReviewType as WebhooksReviewType - from .group_0530 import ( + from .group_0531 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType + from .group_0531 import WebhooksReviewPropUserType as WebhooksReviewPropUserType + from .group_0531 import WebhooksReviewType as WebhooksReviewType + from .group_0532 import ( WebhooksReleasePropAssetsItemsPropUploaderType as WebhooksReleasePropAssetsItemsPropUploaderType, ) - from .group_0530 import ( + from .group_0532 import ( WebhooksReleasePropAssetsItemsType as WebhooksReleasePropAssetsItemsType, ) - from .group_0530 import ( + from .group_0532 import ( WebhooksReleasePropAuthorType as WebhooksReleasePropAuthorType, ) - from .group_0530 import ( + from .group_0532 import ( WebhooksReleasePropReactionsType as WebhooksReleasePropReactionsType, ) - from .group_0530 import WebhooksReleaseType as WebhooksReleaseType - from .group_0531 import ( + from .group_0532 import WebhooksReleaseType as WebhooksReleaseType + from .group_0533 import ( WebhooksRelease1PropAssetsItemsPropUploaderType as WebhooksRelease1PropAssetsItemsPropUploaderType, ) - from .group_0531 import ( + from .group_0533 import ( WebhooksRelease1PropAssetsItemsType as WebhooksRelease1PropAssetsItemsType, ) - from .group_0531 import ( + from .group_0533 import ( WebhooksRelease1PropAuthorType as WebhooksRelease1PropAuthorType, ) - from .group_0531 import ( + from .group_0533 import ( WebhooksRelease1PropReactionsType as WebhooksRelease1PropReactionsType, ) - from .group_0531 import WebhooksRelease1Type as WebhooksRelease1Type - from .group_0532 import ( + from .group_0533 import WebhooksRelease1Type as WebhooksRelease1Type + from .group_0534 import ( WebhooksAlertPropDismisserType as WebhooksAlertPropDismisserType, ) - from .group_0532 import WebhooksAlertType as WebhooksAlertType - from .group_0533 import ( + from .group_0534 import WebhooksAlertType as WebhooksAlertType + from .group_0535 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropCvssType as WebhooksSecurityAdvisoryPropCvssType, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropCwesItemsType as WebhooksSecurityAdvisoryPropCwesItemsType, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropIdentifiersItemsType as WebhooksSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropReferencesItemsType as WebhooksSecurityAdvisoryPropReferencesItemsType, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0534 import ( + from .group_0536 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0534 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType - from .group_0535 import ( + from .group_0536 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType + from .group_0537 import ( WebhooksSponsorshipPropMaintainerType as WebhooksSponsorshipPropMaintainerType, ) - from .group_0535 import ( + from .group_0537 import ( WebhooksSponsorshipPropSponsorableType as WebhooksSponsorshipPropSponsorableType, ) - from .group_0535 import ( + from .group_0537 import ( WebhooksSponsorshipPropSponsorType as WebhooksSponsorshipPropSponsorType, ) - from .group_0535 import ( + from .group_0537 import ( WebhooksSponsorshipPropTierType as WebhooksSponsorshipPropTierType, ) - from .group_0535 import WebhooksSponsorshipType as WebhooksSponsorshipType - from .group_0536 import ( + from .group_0537 import WebhooksSponsorshipType as WebhooksSponsorshipType + from .group_0538 import ( WebhooksChanges8PropTierPropFromType as WebhooksChanges8PropTierPropFromType, ) - from .group_0536 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType - from .group_0536 import WebhooksChanges8Type as WebhooksChanges8Type - from .group_0537 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType - from .group_0537 import WebhooksTeam1Type as WebhooksTeam1Type - from .group_0538 import ( + from .group_0538 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType + from .group_0538 import WebhooksChanges8Type as WebhooksChanges8Type + from .group_0539 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType + from .group_0539 import WebhooksTeam1Type as WebhooksTeam1Type + from .group_0540 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0539 import ( + from .group_0541 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0540 import ( + from .group_0542 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0541 import ( + from .group_0543 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0542 import ( + from .group_0544 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0543 import ( + from .group_0545 import ( WebhookExemptionRequestCancelledType as WebhookExemptionRequestCancelledType, ) - from .group_0544 import ( + from .group_0546 import ( WebhookExemptionRequestCompletedType as WebhookExemptionRequestCompletedType, ) - from .group_0545 import ( + from .group_0547 import ( WebhookExemptionRequestCreatedType as WebhookExemptionRequestCreatedType, ) - from .group_0546 import ( + from .group_0548 import ( WebhookExemptionRequestResponseDismissedType as WebhookExemptionRequestResponseDismissedType, ) - from .group_0547 import ( + from .group_0549 import ( WebhookExemptionRequestResponseSubmittedType as WebhookExemptionRequestResponseSubmittedType, ) - from .group_0548 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0549 import ( + from .group_0550 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0551 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0550 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0551 import ( + from .group_0552 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0553 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0552 import ( + from .group_0554 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0552 import ( + from .group_0554 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0553 import ( + from .group_0555 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0554 import ( + from .group_0556 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0555 import ( + from .group_0557 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0559 import ( + from .group_0561 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0561 import ( + from .group_0563 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0562 import ( + from .group_0564 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0563 import ( + from .group_0565 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0564 import ( + from .group_0566 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0565 import ( + from .group_0567 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0565 import ( + from .group_0567 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0565 import ( + from .group_0567 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0565 import ( + from .group_0567 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0566 import WebhookCreateType as WebhookCreateType - from .group_0567 import ( + from .group_0568 import WebhookCreateType as WebhookCreateType + from .group_0569 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0568 import ( + from .group_0570 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0568 import ( + from .group_0570 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0569 import ( + from .group_0571 import ( WebhookCustomPropertyPromotedToEnterpriseType as WebhookCustomPropertyPromotedToEnterpriseType, ) - from .group_0570 import ( + from .group_0572 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0571 import ( + from .group_0573 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0572 import WebhookDeleteType as WebhookDeleteType - from .group_0573 import ( + from .group_0574 import WebhookDeleteType as WebhookDeleteType + from .group_0575 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0574 import ( + from .group_0576 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0575 import ( + from .group_0577 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0576 import ( + from .group_0578 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0577 import ( + from .group_0579 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0578 import ( + from .group_0580 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0579 import ( + from .group_0581 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0580 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0581 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0582 import ( + from .group_0582 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0583 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0582 import ( + from .group_0584 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0582 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0583 import ( + from .group_0584 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0585 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0584 import ( + from .group_0586 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0585 import ( + from .group_0587 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0586 import ( + from .group_0588 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0587 import ( + from .group_0589 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0588 import ( + from .group_0590 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0589 import ( + from .group_0591 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0589 import ( + from .group_0591 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0589 import ( + from .group_0591 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0589 import ( + from .group_0591 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0590 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0591 import ( + from .group_0592 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0593 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0592 import ( + from .group_0594 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0593 import ( + from .group_0595 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0593 import ( + from .group_0595 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0593 import ( + from .group_0595 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0594 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0595 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0596 import ( + from .group_0596 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0597 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0598 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0596 import ( + from .group_0598 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0596 import ( + from .group_0598 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0596 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0597 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0598 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0599 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0600 import ( + from .group_0598 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0599 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0600 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0601 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0602 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0601 import ( + from .group_0603 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0602 import ( + from .group_0604 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0603 import ( + from .group_0605 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0604 import ( + from .group_0606 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0605 import ( + from .group_0607 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0606 import ( + from .group_0608 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0607 import WebhookForkType as WebhookForkType - from .group_0608 import ( + from .group_0609 import WebhookForkType as WebhookForkType + from .group_0610 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0608 import ( + from .group_0610 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0608 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0609 import ( + from .group_0610 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0611 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0609 import ( + from .group_0611 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0609 import ( + from .group_0611 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0610 import ( + from .group_0612 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0611 import ( + from .group_0613 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0611 import ( + from .group_0613 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0611 import ( + from .group_0613 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0612 import ( + from .group_0614 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0613 import ( + from .group_0615 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0613 import WebhookGollumType as WebhookGollumType - from .group_0614 import ( + from .group_0615 import WebhookGollumType as WebhookGollumType + from .group_0616 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0615 import ( + from .group_0617 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0616 import ( + from .group_0618 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0617 import ( + from .group_0619 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0617 import ( + from .group_0619 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0618 import ( + from .group_0620 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0618 import ( + from .group_0620 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0619 import ( + from .group_0621 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0620 import ( + from .group_0622 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0620 import ( + from .group_0622 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0620 import ( + from .group_0622 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0620 import ( + from .group_0622 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0620 import ( + from .group_0622 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0621 import ( + from .group_0623 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0622 import ( + from .group_0624 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0623 import ( + from .group_0625 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0623 import ( + from .group_0625 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0623 import ( + from .group_0625 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0624 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0624 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0624 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0624 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0625 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0625 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0625 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0625 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0626 import ( + from .group_0628 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0626 import ( + from .group_0628 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0626 import ( + from .group_0628 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0627 import ( + from .group_0629 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0628 import ( + from .group_0630 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0629 import ( + from .group_0631 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0629 import ( + from .group_0631 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0630 import ( + from .group_0632 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0631 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, - ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0632 import ( + from .group_0633 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0633 import ( + from .group_0634 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0634 import ( + from .group_0635 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0635 import ( + from .group_0636 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0636 import ( + from .group_0637 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0636 import ( + from .group_0637 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0636 import ( + from .group_0637 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0636 import ( + from .group_0637 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0637 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0637 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0637 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0637 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0638 import ( + from .group_0639 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0638 import ( + from .group_0639 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0638 import ( + from .group_0639 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0639 import ( + from .group_0640 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0640 import ( + from .group_0641 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0641 import ( + from .group_0642 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0641 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) from .group_0642 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) from .group_0643 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) from .group_0644 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, @@ -3465,6206 +3451,6167 @@ WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) from .group_0655 import ( - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType, - ) - from .group_0656 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0656 import ( + from .group_0655 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0657 import ( + from .group_0656 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0658 import ( + from .group_0657 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0659 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0660 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0661 import ( + from .group_0658 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0659 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0661 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0661 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) - from .group_0661 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0661 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0661 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0662 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0663 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0664 import ( + from .group_0663 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0665 import ( + from .group_0664 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0665 import ( + from .group_0664 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0666 import ( + from .group_0665 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0667 import ( + from .group_0666 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) from .group_0667 import ( - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, - ) - from .group_0668 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0668 import ( + from .group_0667 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) - from .group_0669 import ( + from .group_0668 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0670 import ( + from .group_0669 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0671 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0672 import ( + from .group_0670 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0672 import ( - WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType as WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType, - ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0672 import ( + from .group_0671 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0673 import ( + from .group_0672 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0674 import ( - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType, - ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) - from .group_0674 import ( + from .group_0673 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0675 import ( + from .group_0674 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0675 import ( + from .group_0674 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0675 import ( + from .group_0674 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0675 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0676 import ( + from .group_0674 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0675 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0676 import ( - WebhookIssuesEditedPropIssuePropSubIssuesSummaryType as WebhookIssuesEditedPropIssuePropSubIssuesSummaryType, - ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0677 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0678 import ( + from .group_0676 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0678 import ( - WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType as WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType, - ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0679 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0680 import ( + from .group_0678 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0679 import ( WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, ) - from .group_0680 import ( - WebhookIssuesLockedPropIssuePropSubIssuesSummaryType as WebhookIssuesLockedPropIssuePropSubIssuesSummaryType, - ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0681 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0682 import ( + from .group_0680 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0682 import ( - WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType, - ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) - from .group_0682 import ( + from .group_0681 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0683 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0684 import ( + from .group_0682 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0684 import ( + from .group_0683 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0685 import ( - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType, - ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0686 import ( - WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType, - ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0687 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0688 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0689 import ( + from .group_0686 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0687 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, ) - from .group_0689 import ( - WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType as WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType, - ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0690 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0691 import ( + from .group_0689 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0691 import ( + from .group_0690 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0692 import ( - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType, - ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0693 import WebhookIssuesTypedType as WebhookIssuesTypedType - from .group_0694 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0695 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0696 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0697 import ( + from .group_0692 import WebhookIssuesTypedType as WebhookIssuesTypedType + from .group_0693 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0694 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0695 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, ) - from .group_0697 import ( - WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType as WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType, - ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0698 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0699 import WebhookIssuesUntypedType as WebhookIssuesUntypedType - from .group_0700 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0701 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0702 import ( + from .group_0697 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0698 import WebhookIssuesUntypedType as WebhookIssuesUntypedType + from .group_0699 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0700 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0701 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0702 import ( + from .group_0701 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0702 import ( + from .group_0701 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0702 import ( + from .group_0701 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0702 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0703 import ( + from .group_0701 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0702 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0704 import ( + from .group_0703 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0704 import ( + from .group_0703 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0704 import ( + from .group_0703 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0704 import ( + from .group_0703 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0706 import ( + from .group_0705 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, ) - from .group_0706 import ( + from .group_0705 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0706 import ( + from .group_0705 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0706 import ( + from .group_0705 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0708 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0709 import ( + from .group_0707 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0708 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0709 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0710 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0711 import ( + from .group_0708 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0709 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0710 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0711 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0712 import ( + from .group_0710 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0711 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0712 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0713 import ( + from .group_0711 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0712 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0714 import ( + from .group_0713 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0715 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0716 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0717 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0718 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0719 import ( + from .group_0714 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0715 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0716 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0717 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0718 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0719 import ( + from .group_0718 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0719 import ( + from .group_0718 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0719 import ( + from .group_0718 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0719 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0720 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0721 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0722 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0723 import ( + from .group_0718 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0719 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0720 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0721 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0722 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0728 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0729 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0730 import ( + from .group_0727 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0728 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0729 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0732 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0733 import ( + from .group_0731 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0732 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0735 import WebhookPageBuildType as WebhookPageBuildType - from .group_0736 import ( + from .group_0734 import WebhookPageBuildType as WebhookPageBuildType + from .group_0735 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0739 import ( + from .group_0738 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0740 import WebhookPingType as WebhookPingType - from .group_0741 import ( + from .group_0739 import WebhookPingType as WebhookPingType + from .group_0740 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0741 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0742 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0743 import ( + from .group_0740 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0741 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0742 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0743 import ( + from .group_0742 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0743 import ( + from .group_0742 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0744 import ( + from .group_0743 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0745 import ( + from .group_0744 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0745 import ( + from .group_0744 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0745 import ( + from .group_0744 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0746 import ( + from .group_0745 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0746 import ( + from .group_0745 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0746 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0747 import ( + from .group_0745 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0746 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0747 import ( + from .group_0746 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0747 import ( + from .group_0746 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0747 import ( + from .group_0746 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0747 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0748 import ( + from .group_0746 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0747 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0748 import ( + from .group_0747 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0749 import ( + from .group_0748 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0749 import ( + from .group_0748 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0750 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0751 import ( + from .group_0749 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0750 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0752 import ( + from .group_0751 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0753 import ( + from .group_0752 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0753 import ( + from .group_0752 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0753 import ( + from .group_0752 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) - from .group_0754 import ( + from .group_0753 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0755 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0756 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0757 import ( + from .group_0754 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0755 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0756 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0757 import ( + from .group_0756 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0757 import ( + from .group_0756 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0757 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0758 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0759 import ( + from .group_0756 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0757 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0758 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0760 import ( + from .group_0759 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0761 import ( + from .group_0760 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0762 import ( + from .group_0761 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0763 import ( + from .group_0762 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0764 import ( + from .group_0763 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0764 import ( + from .group_0763 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0764 import ( + from .group_0763 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0765 import ( + from .group_0764 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0766 import ( + from .group_0765 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0767 import ( + from .group_0766 import ( ProjectsV2IterationSettingType as ProjectsV2IterationSettingType, ) - from .group_0767 import ( + from .group_0766 import ( ProjectsV2SingleSelectOptionType as ProjectsV2SingleSelectOptionType, ) - from .group_0767 import ( + from .group_0766 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0767 import ( + from .group_0766 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0767 import ( + from .group_0766 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0767 import ( + from .group_0766 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0767 import ( + from .group_0766 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0769 import ( + from .group_0768 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0770 import ( + from .group_0769 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0771 import ( + from .group_0770 import ( WebhookProjectsV2StatusUpdateCreatedType as WebhookProjectsV2StatusUpdateCreatedType, ) - from .group_0772 import ( + from .group_0771 import ( WebhookProjectsV2StatusUpdateDeletedType as WebhookProjectsV2StatusUpdateDeletedType, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType as WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedPropChangesType as WebhookProjectsV2StatusUpdateEditedPropChangesType, ) - from .group_0773 import ( + from .group_0772 import ( WebhookProjectsV2StatusUpdateEditedType as WebhookProjectsV2StatusUpdateEditedType, ) - from .group_0774 import WebhookPublicType as WebhookPublicType - from .group_0775 import ( + from .group_0773 import WebhookPublicType as WebhookPublicType + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0778 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0779 import ( + from .group_0777 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0778 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0780 import ( + from .group_0779 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0782 import ( + from .group_0781 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0782 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0783 import ( + from .group_0781 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0785 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0786 import ( + from .group_0784 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0785 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0787 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0788 import ( + from .group_0786 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0787 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0789 import ( + from .group_0788 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0795 import ( + from .group_0794 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0798 import ( + from .group_0797 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0799 import ( + from .group_0798 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0801 import ( + from .group_0800 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0802 import ( + from .group_0801 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0803 import ( + from .group_0802 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0804 import ( + from .group_0803 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0805 import ( + from .group_0804 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0806 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0806 import ( + from .group_0805 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0805 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0806 import WebhookPushType as WebhookPushType - from .group_0807 import ( + from .group_0805 import WebhookPushType as WebhookPushType + from .group_0806 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0808 import ( + from .group_0807 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0808 import ( + from .group_0807 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0808 import ( + from .group_0807 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0809 import ( + from .group_0808 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0810 import ( + from .group_0809 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0811 import ( + from .group_0810 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0811 import ( + from .group_0810 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0811 import ( + from .group_0810 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0813 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0814 import WebhookReleaseDeletedType as WebhookReleaseDeletedType - from .group_0815 import ( + from .group_0812 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0813 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0814 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0815 import ( + from .group_0814 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0815 import ( + from .group_0814 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0815 import ( + from .group_0814 import ( WebhookReleaseEditedPropChangesPropTagNameType as WebhookReleaseEditedPropChangesPropTagNameType, ) - from .group_0815 import ( + from .group_0814 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0815 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0816 import ( + from .group_0814 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0815 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0816 import ( + from .group_0815 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, ) - from .group_0816 import ( + from .group_0815 import ( WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0816 import ( + from .group_0815 import ( WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, ) - from .group_0816 import ( + from .group_0815 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0816 import ( + from .group_0815 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0817 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0818 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0819 import ( + from .group_0816 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0817 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0818 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0820 import ( + from .group_0819 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0821 import ( + from .group_0820 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0822 import ( + from .group_0821 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0823 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0824 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0825 import ( + from .group_0822 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0823 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0824 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0826 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0827 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0828 import ( + from .group_0825 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0826 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0827 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0829 import ( + from .group_0828 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0830 import ( + from .group_0829 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0830 import ( + from .group_0829 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0830 import ( + from .group_0829 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0830 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0831 import ( + from .group_0829 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0830 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0832 import ( + from .group_0831 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0833 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0834 import ( + from .group_0833 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0834 import ( + from .group_0833 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0834 import ( + from .group_0833 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0835 import ( + from .group_0834 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0836 import ( + from .group_0835 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0837 import ( + from .group_0836 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0838 import ( + from .group_0837 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0839 import ( + from .group_0838 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0840 import ( + from .group_0839 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0841 import ( + from .group_0840 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0842 import ( + from .group_0841 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, ) - from .group_0842 import ( + from .group_0841 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0842 import ( + from .group_0841 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0843 import ( + from .group_0842 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0844 import ( + from .group_0843 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, ) - from .group_0844 import ( + from .group_0843 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0844 import ( + from .group_0843 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0845 import ( + from .group_0844 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0846 import ( + from .group_0845 import ( WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0847 import ( + from .group_0846 import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0848 import ( + from .group_0847 import ( WebhookSecretScanningAlertPubliclyLeakedType as WebhookSecretScanningAlertPubliclyLeakedType, ) - from .group_0849 import ( + from .group_0848 import ( WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0850 import ( + from .group_0849 import ( WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0851 import ( + from .group_0850 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0852 import ( + from .group_0851 import ( WebhookSecretScanningScanCompletedType as WebhookSecretScanningScanCompletedType, ) - from .group_0853 import ( + from .group_0852 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0854 import ( + from .group_0853 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0855 import ( + from .group_0854 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0856 import ( + from .group_0855 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0857 import ( + from .group_0856 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0858 import ( + from .group_0857 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0859 import ( + from .group_0858 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0860 import ( + from .group_0859 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0861 import ( + from .group_0860 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0862 import ( + from .group_0861 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0862 import ( + from .group_0861 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0862 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0863 import ( + from .group_0861 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0862 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0864 import ( + from .group_0863 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0865 import ( + from .group_0864 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0866 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0867 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0868 import ( + from .group_0865 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0866 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0867 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0868 import ( + from .group_0867 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0868 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0868 import WebhookStatusType as WebhookStatusType - from .group_0869 import ( + from .group_0867 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0867 import WebhookStatusType as WebhookStatusType + from .group_0868 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0870 import ( + from .group_0869 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0871 import ( + from .group_0870 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0872 import ( + from .group_0871 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0873 import ( + from .group_0872 import ( WebhookSubIssuesParentIssueAddedType as WebhookSubIssuesParentIssueAddedType, ) - from .group_0874 import ( + from .group_0873 import ( WebhookSubIssuesParentIssueRemovedType as WebhookSubIssuesParentIssueRemovedType, ) - from .group_0875 import ( + from .group_0874 import ( WebhookSubIssuesSubIssueAddedType as WebhookSubIssuesSubIssueAddedType, ) - from .group_0876 import ( + from .group_0875 import ( WebhookSubIssuesSubIssueRemovedType as WebhookSubIssuesSubIssueRemovedType, ) - from .group_0877 import WebhookTeamAddType as WebhookTeamAddType - from .group_0878 import ( + from .group_0876 import WebhookTeamAddType as WebhookTeamAddType + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0878 import ( + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0878 import ( + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0878 import ( + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0878 import ( + from .group_0877 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0878 import ( + from .group_0877 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0879 import ( + from .group_0878 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0879 import ( + from .group_0878 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0879 import ( + from .group_0878 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0879 import ( + from .group_0878 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0879 import ( + from .group_0878 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0879 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0880 import ( + from .group_0878 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0879 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0880 import ( + from .group_0879 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0880 import ( + from .group_0879 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0880 import ( + from .group_0879 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0880 import ( + from .group_0879 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0880 import WebhookTeamDeletedType as WebhookTeamDeletedType - from .group_0881 import ( + from .group_0879 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0880 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0881 import ( + from .group_0880 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0881 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_0882 import ( + from .group_0880 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0882 import ( + from .group_0881 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0883 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0884 import ( + from .group_0882 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0883 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0884 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0885 import ( + from .group_0883 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0884 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0885 import ( + from .group_0884 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0885 import ( + from .group_0884 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0886 import ( + from .group_0885 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0886 import ( + from .group_0885 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0887 import ( + from .group_0886 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0887 import ( + from .group_0886 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0888 import ( + from .group_0887 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0888 import ( + from .group_0887 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0888 import ( + from .group_0887 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0889 import ( + from .group_0888 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0889 import ( + from .group_0888 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0890 import ( + from .group_0889 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0890 import ( + from .group_0889 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0891 import ( + from .group_0890 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0891 import ( + from .group_0890 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0891 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_0892 import ( + from .group_0890 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_0891 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0892 import ( + from .group_0891 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0892 import ( + from .group_0891 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0893 import ( + from .group_0892 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0894 import ( + from .group_0893 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0895 import ( + from .group_0894 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0896 import ( + from .group_0895 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0897 import ( + from .group_0896 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0898 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0899 import ( + from .group_0897 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0898 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0900 import ( + from .group_0899 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0901 import ( + from .group_0900 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0902 import ( + from .group_0901 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0903 import ( + from .group_0902 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0904 import ( + from .group_0903 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0905 import ( + from .group_0904 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0906 import ( + from .group_0905 import ( CredentialsRevokePostBodyType as CredentialsRevokePostBodyType, ) - from .group_0907 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0908 import ( + from .group_0906 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0907 import ( EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type, ) - from .group_0909 import ( + from .group_0908 import ( EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType as EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType, ) - from .group_0909 import ( + from .group_0908 import ( EnterprisesEnterpriseActionsHostedRunnersPostBodyType as EnterprisesEnterpriseActionsHostedRunnersPostBodyType, ) - from .group_0910 import ( + from .group_0909 import ( EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type, ) - from .group_0911 import ( + from .group_0910 import ( EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type, ) - from .group_0912 import ( + from .group_0911 import ( EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type, ) - from .group_0913 import ( + from .group_0912 import ( EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type, ) - from .group_0914 import ( + from .group_0913 import ( EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType as EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType, ) - from .group_0915 import ( + from .group_0914 import ( EnterprisesEnterpriseActionsPermissionsPutBodyType as EnterprisesEnterpriseActionsPermissionsPutBodyType, ) - from .group_0916 import ( + from .group_0915 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type, ) - from .group_0917 import ( + from .group_0916 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType, ) - from .group_0918 import ( + from .group_0917 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type, ) - from .group_0918 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType - from .group_0919 import ( + from .group_0917 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType + from .group_0918 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBodyType as EnterprisesEnterpriseActionsRunnerGroupsPostBodyType, ) - from .group_0920 import ( + from .group_0919 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0921 import ( + from .group_0920 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type, ) - from .group_0922 import ( + from .group_0921 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType, ) - from .group_0923 import ( + from .group_0922 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0924 import ( + from .group_0923 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0925 import ( + from .group_0924 import ( EnterprisesEnterpriseActionsRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnersGetResponse200Type, ) - from .group_0926 import ( + from .group_0925 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0927 import ( + from .group_0926 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_0928 import ( + from .group_0927 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0929 import ( + from .group_0928 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0930 import ( + from .group_0929 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0931 import ( + from .group_0930 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0932 import ( + from .group_0931 import ( EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBodyType as EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBodyType, ) - from .group_0933 import ( + from .group_0932 import ( EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBodyType as EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBodyType, ) - from .group_0934 import ( + from .group_0933 import ( EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBodyType as EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBodyType, ) - from .group_0935 import ( + from .group_0934 import ( EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBodyType as EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBodyType, ) - from .group_0936 import ( + from .group_0935 import ( EnterprisesEnterpriseAuditLogStreamsPostBodyType as EnterprisesEnterpriseAuditLogStreamsPostBodyType, ) - from .group_0937 import ( + from .group_0936 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType as EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType, ) - from .group_0938 import ( + from .group_0937 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type as EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type, ) - from .group_0939 import ( + from .group_0938 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type as EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type, ) - from .group_0940 import ( + from .group_0939 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0940 import ( + from .group_0939 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType, ) - from .group_0941 import ( + from .group_0940 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0941 import ( + from .group_0940 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0942 import ( + from .group_0941 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0943 import ( + from .group_0942 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0944 import ( + from .group_0943 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0945 import ( + from .group_0944 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType, ) - from .group_0946 import ( + from .group_0945 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type, ) - from .group_0947 import ( + from .group_0946 import ( EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type as EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type, ) - from .group_0948 import ( + from .group_0947 import ( EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type as EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type, ) - from .group_0949 import ( + from .group_0948 import ( EnterprisesEnterpriseNetworkConfigurationsPostBodyType as EnterprisesEnterpriseNetworkConfigurationsPostBodyType, ) - from .group_0950 import ( + from .group_0949 import ( EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType as EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType, ) - from .group_0951 import ( + from .group_0950 import ( EnterprisesEnterprisePropertiesSchemaPatchBodyType as EnterprisesEnterprisePropertiesSchemaPatchBodyType, ) - from .group_0952 import ( + from .group_0951 import ( EnterprisesEnterpriseRulesetsPostBodyType as EnterprisesEnterpriseRulesetsPostBodyType, ) - from .group_0953 import ( + from .group_0952 import ( EnterprisesEnterpriseRulesetsRulesetIdPutBodyType as EnterprisesEnterpriseRulesetsRulesetIdPutBodyType, ) - from .group_0954 import ( + from .group_0953 import ( EnterprisesEnterpriseSettingsBillingCostCentersPostBodyType as EnterprisesEnterpriseSettingsBillingCostCentersPostBodyType, ) - from .group_0955 import ( + from .group_0954 import ( EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItemsType as EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItemsType, ) - from .group_0955 import ( + from .group_0954 import ( EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200Type, ) - from .group_0956 import ( + from .group_0955 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBodyType, ) - from .group_0957 import ( + from .group_0956 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType, ) - from .group_0958 import ( + from .group_0957 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type, ) - from .group_0959 import ( + from .group_0958 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType, ) - from .group_0960 import ( + from .group_0959 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type, ) - from .group_0961 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_0961 import GistsPostBodyType as GistsPostBodyType - from .group_0962 import ( + from .group_0960 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_0960 import GistsPostBodyType as GistsPostBodyType + from .group_0961 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0962 import ( + from .group_0961 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0963 import ( + from .group_0962 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0963 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0964 import ( + from .group_0962 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0963 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0965 import ( + from .group_0964 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0966 import ( + from .group_0965 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0967 import ( + from .group_0966 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0968 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0969 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0970 import ( + from .group_0967 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0968 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0969 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0971 import ( + from .group_0970 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0972 import ( + from .group_0971 import ( OrganizationsOrganizationIdCustomRolesGetResponse200Type as OrganizationsOrganizationIdCustomRolesGetResponse200Type, ) - from .group_0973 import ( + from .group_0972 import ( OrganizationsOrgDependabotRepositoryAccessPatchBodyType as OrganizationsOrgDependabotRepositoryAccessPatchBodyType, ) - from .group_0974 import ( + from .group_0973 import ( OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, ) - from .group_0975 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_0976 import ( + from .group_0974 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_0975 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0976 import ( + from .group_0975 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0977 import ( + from .group_0976 import ( OrgsOrgActionsHostedRunnersGetResponse200Type as OrgsOrgActionsHostedRunnersGetResponse200Type, ) - from .group_0978 import ( + from .group_0977 import ( OrgsOrgActionsHostedRunnersPostBodyPropImageType as OrgsOrgActionsHostedRunnersPostBodyPropImageType, ) - from .group_0978 import ( + from .group_0977 import ( OrgsOrgActionsHostedRunnersPostBodyType as OrgsOrgActionsHostedRunnersPostBodyType, ) - from .group_0979 import ( + from .group_0978 import ( OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, ) - from .group_0980 import ( + from .group_0979 import ( OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, ) - from .group_0981 import ( + from .group_0980 import ( OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, ) - from .group_0982 import ( + from .group_0981 import ( OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type as OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, ) - from .group_0983 import ( + from .group_0982 import ( OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, ) - from .group_0984 import ( + from .group_0983 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0985 import ( + from .group_0984 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0986 import ( + from .group_0985 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0987 import ( + from .group_0986 import ( OrgsOrgActionsRunnerGroupsGetResponse200Type as OrgsOrgActionsRunnerGroupsGetResponse200Type, ) - from .group_0987 import RunnerGroupsOrgType as RunnerGroupsOrgType - from .group_0988 import ( + from .group_0986 import RunnerGroupsOrgType as RunnerGroupsOrgType + from .group_0987 import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) - from .group_0989 import ( + from .group_0988 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0990 import ( + from .group_0989 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, ) - from .group_0991 import ( + from .group_0990 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, ) - from .group_0992 import ( + from .group_0991 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, ) - from .group_0993 import ( + from .group_0992 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0994 import ( + from .group_0993 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0995 import ( + from .group_0994 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0996 import ( + from .group_0995 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0997 import ( + from .group_0996 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0998 import ( + from .group_0997 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0999 import ( + from .group_0998 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0999 import ( + from .group_0998 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_1000 import ( + from .group_0999 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_1001 import ( + from .group_1000 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1002 import ( + from .group_1001 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1003 import ( + from .group_1002 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_1003 import ( + from .group_1002 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_1004 import ( + from .group_1003 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_1005 import ( + from .group_1004 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_1006 import ( + from .group_1005 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_1007 import ( + from .group_1006 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_1008 import ( + from .group_1007 import ( OrgsOrgAttestationsBulkListPostBodyType as OrgsOrgAttestationsBulkListPostBodyType, ) - from .group_1009 import ( + from .group_1008 import ( OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType, ) - from .group_1009 import ( + from .group_1008 import ( OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType as OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType, ) - from .group_1009 import ( + from .group_1008 import ( OrgsOrgAttestationsBulkListPostResponse200Type as OrgsOrgAttestationsBulkListPostResponse200Type, ) - from .group_1010 import ( + from .group_1009 import ( OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type as OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type, ) - from .group_1011 import ( + from .group_1010 import ( OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type as OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1012 import ( + from .group_1011 import ( OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, ) - from .group_1013 import ( + from .group_1012 import ( OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType as OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType, ) - from .group_1013 import OrgsOrgCampaignsPostBodyType as OrgsOrgCampaignsPostBodyType - from .group_1014 import ( + from .group_1012 import OrgsOrgCampaignsPostBodyType as OrgsOrgCampaignsPostBodyType + from .group_1013 import ( OrgsOrgCampaignsCampaignNumberPatchBodyType as OrgsOrgCampaignsCampaignNumberPatchBodyType, ) - from .group_1015 import ( + from .group_1014 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_1015 import ( + from .group_1014 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_1015 import ( + from .group_1014 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_1015 import ( + from .group_1014 import ( OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, ) - from .group_1016 import ( + from .group_1015 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType as OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, ) - from .group_1017 import ( + from .group_1016 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_1017 import ( + from .group_1016 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_1017 import ( + from .group_1016 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_1017 import ( + from .group_1016 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_1018 import ( + from .group_1017 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_1019 import ( + from .group_1018 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_1020 import ( + from .group_1019 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_1021 import ( + from .group_1020 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_1022 import ( + from .group_1021 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_1023 import ( + from .group_1022 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_1024 import ( + from .group_1023 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_1025 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_1025 import ( + from .group_1024 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_1024 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_1026 import ( + from .group_1025 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_1027 import ( + from .group_1026 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1028 import ( + from .group_1027 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1029 import ( + from .group_1028 import ( OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, ) - from .group_1030 import ( + from .group_1029 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_1031 import ( + from .group_1030 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_1032 import ( + from .group_1031 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_1033 import ( + from .group_1032 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_1034 import ( + from .group_1033 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_1035 import ( + from .group_1034 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_1036 import ( + from .group_1035 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_1037 import ( + from .group_1036 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_1038 import ( + from .group_1037 import ( OrgsOrgCustomRepositoryRolesGetResponse200Type as OrgsOrgCustomRepositoryRolesGetResponse200Type, ) - from .group_1039 import ( + from .group_1038 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_1039 import ( + from .group_1038 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_1040 import ( + from .group_1039 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_1041 import ( + from .group_1040 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1042 import ( + from .group_1041 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1043 import ( + from .group_1042 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_1043 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_1044 import ( + from .group_1042 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_1043 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_1044 import ( + from .group_1043 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_1045 import ( + from .group_1044 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_1046 import ( + from .group_1045 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_1047 import ( + from .group_1046 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1048 import ( + from .group_1047 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_1049 import ( + from .group_1048 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_1050 import ( + from .group_1049 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_1051 import ( + from .group_1050 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) - from .group_1052 import ( + from .group_1051 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_1053 import ( + from .group_1052 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_1054 import ( + from .group_1053 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_1055 import ( + from .group_1054 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_1056 import ( + from .group_1055 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_1057 import ( + from .group_1056 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_1058 import ( + from .group_1057 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_1059 import ( + from .group_1058 import ( OrgPrivateRegistryConfigurationType as OrgPrivateRegistryConfigurationType, ) - from .group_1059 import ( + from .group_1058 import ( OrgsOrgPrivateRegistriesGetResponse200Type as OrgsOrgPrivateRegistriesGetResponse200Type, ) - from .group_1060 import ( + from .group_1059 import ( OrgsOrgPrivateRegistriesPostBodyType as OrgsOrgPrivateRegistriesPostBodyType, ) - from .group_1061 import ( + from .group_1060 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type as OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type, ) - from .group_1062 import ( + from .group_1061 import ( OrgsOrgPrivateRegistriesSecretNamePatchBodyType as OrgsOrgPrivateRegistriesSecretNamePatchBodyType, ) - from .group_1063 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_1064 import ( + from .group_1062 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_1063 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_1065 import ( + from .group_1064 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_1066 import ( + from .group_1065 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_1066 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_1067 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_1068 import ( + from .group_1065 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_1066 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_1067 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_1069 import ( + from .group_1068 import ( OrgsOrgSettingsNetworkConfigurationsGetResponse200Type as OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, ) - from .group_1070 import ( + from .group_1069 import ( OrgsOrgSettingsNetworkConfigurationsPostBodyType as OrgsOrgSettingsNetworkConfigurationsPostBodyType, ) - from .group_1071 import ( + from .group_1070 import ( OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, ) - from .group_1072 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_1073 import ( + from .group_1071 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_1072 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_1074 import ( + from .group_1073 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_1075 import ( + from .group_1074 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_1076 import ( + from .group_1075 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1077 import ( + from .group_1076 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1078 import ( + from .group_1077 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1079 import ( + from .group_1078 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_1080 import ( + from .group_1079 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType as OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType, ) - from .group_1081 import ( + from .group_1080 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_1082 import ( + from .group_1081 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_1083 import ( + from .group_1082 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_1084 import ( + from .group_1083 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_1085 import ( + from .group_1084 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_1085 import ( + from .group_1084 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType, ) - from .group_1086 import ( + from .group_1085 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_1087 import ( + from .group_1086 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_1088 import ( + from .group_1087 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_1089 import ( + from .group_1088 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_1090 import ( + from .group_1089 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_1091 import ( + from .group_1090 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_1091 import ( + from .group_1090 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_1092 import ( + from .group_1091 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_1092 import ( + from .group_1091 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_1093 import ( + from .group_1092 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_1094 import ( + from .group_1093 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_1095 import ( + from .group_1094 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_1096 import ( + from .group_1095 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_1096 import ( + from .group_1095 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_1097 import ( + from .group_1096 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_1098 import ( + from .group_1097 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_1099 import ( + from .group_1098 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_1100 import ( + from .group_1099 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_1101 import ( + from .group_1100 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_1102 import ( + from .group_1101 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_1103 import ( + from .group_1102 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_1104 import ( + from .group_1103 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_1105 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType - from .group_1106 import ( + from .group_1104 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_1105 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_1107 import ( + from .group_1106 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_1108 import ( + from .group_1107 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_1109 import ( + from .group_1108 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_1110 import ( + from .group_1109 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_1111 import ( + from .group_1110 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_1112 import ( + from .group_1111 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_1113 import ( + from .group_1112 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_1114 import ( + from .group_1113 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_1115 import ( + from .group_1114 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_1116 import ( + from .group_1115 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_1117 import ( + from .group_1116 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_1118 import ( + from .group_1117 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_1119 import ( + from .group_1118 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_1120 import ( + from .group_1119 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_1121 import ( + from .group_1120 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_1122 import ( + from .group_1121 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_1123 import ( + from .group_1122 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_1124 import ( + from .group_1123 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_1125 import ( + from .group_1124 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_1126 import ( + from .group_1125 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_1127 import ( + from .group_1126 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_1128 import ( + from .group_1127 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_1128 import WorkflowType as WorkflowType - from .group_1129 import ( + from .group_1127 import WorkflowType as WorkflowType + from .group_1128 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_1129 import ( + from .group_1128 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_1130 import ( + from .group_1129 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, ) - from .group_1132 import ( + from .group_1131 import ( ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, ) - from .group_1134 import ( + from .group_1133 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_1136 import ( + from .group_1135 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_1136 import ( + from .group_1135 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_1136 import ( + from .group_1135 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_1137 import ( + from .group_1136 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_1137 import ( + from .group_1136 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_1138 import ( + from .group_1137 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_1139 import ( + from .group_1138 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_1140 import ( + from .group_1139 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_1141 import ( + from .group_1140 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType, ) - from .group_1142 import ( + from .group_1141 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType, ) - from .group_1143 import ( + from .group_1142 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType, ) - from .group_1144 import ( + from .group_1143 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_1145 import ( + from .group_1144 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_1146 import ( + from .group_1145 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_1147 import ( + from .group_1146 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType, ) - from .group_1148 import ( + from .group_1147 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType, ) - from .group_1149 import ( + from .group_1148 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType, ) - from .group_1150 import ( + from .group_1149 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_1151 import ( + from .group_1150 import ( ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType as ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType, ) - from .group_1152 import ( + from .group_1151 import ( ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type as ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_1154 import ( + from .group_1153 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_1155 import ( + from .group_1154 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_1157 import ( + from .group_1156 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_1158 import ( + from .group_1157 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_1159 import ( + from .group_1158 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_1160 import ( + from .group_1159 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_1160 import ( + from .group_1159 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_1161 import ( + from .group_1160 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) - from .group_1162 import ( + from .group_1161 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_1163 import ( + from .group_1162 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_1164 import ( + from .group_1163 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_1165 import ( + from .group_1164 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_1166 import ( + from .group_1165 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_1167 import ( + from .group_1166 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1168 import ( + from .group_1167 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_1169 import ( + from .group_1168 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_1169 import ( + from .group_1168 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_1170 import ( + from .group_1169 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_1171 import ( + from .group_1170 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_1171 import ( + from .group_1170 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1172 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1172 import ( + from .group_1171 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1171 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_1173 import ( + from .group_1172 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_1174 import ( + from .group_1173 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_1175 import ( + from .group_1174 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_1176 import ( + from .group_1175 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_1177 import ( + from .group_1176 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_1178 import ( + from .group_1177 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_1179 import ( + from .group_1178 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_1179 import ( + from .group_1178 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_1179 import ( + from .group_1178 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_1180 import ( + from .group_1179 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_1180 import ( + from .group_1179 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_1180 import ( + from .group_1179 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1181 import ( + from .group_1180 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_1182 import DependabotSecretType as DependabotSecretType - from .group_1182 import ( + from .group_1181 import DependabotSecretType as DependabotSecretType + from .group_1181 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_1183 import ( + from .group_1182 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_1184 import ( + from .group_1183 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_1185 import ( + from .group_1184 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_1185 import ( + from .group_1184 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1186 import ( + from .group_1185 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1187 import ( + from .group_1186 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1188 import ( + from .group_1187 import ( ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBodyType as ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBodyType, ) - from .group_1189 import ( + from .group_1188 import ( ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType as ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType, ) - from .group_1190 import ( + from .group_1189 import ( ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type as ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type, ) - from .group_1191 import ( + from .group_1190 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1191 import ( + from .group_1190 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1192 import ( + from .group_1191 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1192 import ( + from .group_1191 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1193 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1193 import ( + from .group_1192 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1192 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_1194 import ( + from .group_1193 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_1195 import ( + from .group_1194 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_1196 import ( + from .group_1195 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) - from .group_1197 import ( + from .group_1196 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1198 import ( + from .group_1197 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) - from .group_1199 import ( + from .group_1198 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1200 import ( + from .group_1199 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_1201 import ( + from .group_1200 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1202 import ( + from .group_1201 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1203 import ( + from .group_1202 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1203 import ( + from .group_1202 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1203 import ( + from .group_1202 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1204 import ( + from .group_1203 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1205 import ( + from .group_1204 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1206 import ( + from .group_1205 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1206 import ( + from .group_1205 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1207 import ( + from .group_1206 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1207 import ( + from .group_1206 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1208 import ( + from .group_1207 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1208 import ( + from .group_1207 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1209 import ( + from .group_1208 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1210 import ( + from .group_1209 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1211 import ( + from .group_1210 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1212 import ( + from .group_1211 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) - from .group_1213 import ( + from .group_1212 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1214 import ( + from .group_1213 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1215 import ( + from .group_1214 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1216 import ( + from .group_1215 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1217 import ( + from .group_1216 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1217 import ( + from .group_1216 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1218 import ( + from .group_1217 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1219 import ( + from .group_1218 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1220 import ( + from .group_1219 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1220 import ( + from .group_1219 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1221 import ( + from .group_1220 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1222 import ( + from .group_1221 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1223 import ( + from .group_1222 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1224 import ( + from .group_1223 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1225 import ( + from .group_1224 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_1225 import ( + from .group_1224 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1226 import ( + from .group_1225 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1227 import ( + from .group_1226 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1228 import ( + from .group_1227 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) - from .group_1228 import ( + from .group_1227 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1229 import ( + from .group_1228 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_1230 import ( + from .group_1229 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1231 import ( + from .group_1230 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1232 import ( + from .group_1231 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType, ) - from .group_1233 import ( + from .group_1232 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType, ) - from .group_1234 import ( + from .group_1233 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType, ) - from .group_1235 import ( + from .group_1234 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1236 import ( + from .group_1235 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1237 import ( + from .group_1236 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1238 import ( + from .group_1237 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1239 import ( + from .group_1238 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1240 import ( + from .group_1239 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1241 import ( + from .group_1240 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1242 import ( + from .group_1241 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) - from .group_1243 import ( + from .group_1242 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1244 import ( + from .group_1243 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1245 import ( + from .group_1244 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1246 import ( + from .group_1245 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1247 import ( + from .group_1246 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1248 import ( + from .group_1247 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1249 import ( + from .group_1248 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1250 import ( + from .group_1249 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1251 import ( + from .group_1250 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1252 import ( + from .group_1251 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1253 import ( + from .group_1252 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1254 import ( + from .group_1253 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1255 import ( + from .group_1254 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1256 import ( + from .group_1255 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_1257 import ( + from .group_1256 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1258 import ( + from .group_1257 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1259 import ( + from .group_1258 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) - from .group_1260 import ( + from .group_1259 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1261 import ( + from .group_1260 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1262 import ( + from .group_1261 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_1263 import ( + from .group_1262 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1264 import ( + from .group_1263 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1265 import ( + from .group_1264 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1266 import ( + from .group_1265 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1267 import ( + from .group_1266 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1268 import ( + from .group_1267 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1269 import ( + from .group_1268 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1270 import ( + from .group_1269 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1270 import ( + from .group_1269 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1271 import ( + from .group_1270 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) - from .group_1272 import ( + from .group_1271 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_1273 import ( + from .group_1272 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) - from .group_1274 import ( + from .group_1273 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1275 import ( + from .group_1274 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1276 import ( + from .group_1275 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1277 import ( + from .group_1276 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_1278 import ( + from .group_1277 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1279 import ( + from .group_1278 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) - from .group_1280 import ( + from .group_1279 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_1281 import ( + from .group_1280 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1282 import ( + from .group_1281 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1283 import ( + from .group_1282 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1284 import ( + from .group_1283 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType, ) - from .group_1285 import ( + from .group_1284 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1286 import ( + from .group_1285 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) - from .group_1287 import ( + from .group_1286 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1288 import ( + from .group_1287 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) - from .group_1289 import ( + from .group_1288 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1290 import ( + from .group_1289 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_1291 import ( + from .group_1290 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType, ) - from .group_1291 import ( + from .group_1290 import ( ScimV2OrganizationsOrgUsersPostBodyPropNameType as ScimV2OrganizationsOrgUsersPostBodyPropNameType, ) - from .group_1291 import ( + from .group_1290 import ( ScimV2OrganizationsOrgUsersPostBodyType as ScimV2OrganizationsOrgUsersPostBodyType, ) - from .group_1292 import ( + from .group_1291 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType, ) - from .group_1292 import ( + from .group_1291 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType, ) - from .group_1292 import ( + from .group_1291 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyType, ) - from .group_1293 import ( + from .group_1292 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, ) - from .group_1293 import ( + from .group_1292 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType, ) - from .group_1293 import ( + from .group_1292 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType, ) - from .group_1293 import ( + from .group_1292 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType, ) - from .group_1294 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1295 import ( + from .group_1293 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1294 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) - from .group_1296 import ( + from .group_1295 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) - from .group_1297 import ( + from .group_1296 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1298 import ( + from .group_1297 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1299 import ( + from .group_1298 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1300 import ( + from .group_1299 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_1301 import ( + from .group_1300 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) - from .group_1302 import ( + from .group_1301 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1303 import ( + from .group_1302 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1304 import ( + from .group_1303 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) - from .group_1305 import ( + from .group_1304 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_1305 import ( + from .group_1304 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyType, ) - from .group_1306 import UserPatchBodyType as UserPatchBodyType - from .group_1307 import ( + from .group_1305 import UserPatchBodyType as UserPatchBodyType + from .group_1306 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1308 import ( + from .group_1307 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1309 import ( + from .group_1308 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) - from .group_1309 import ( + from .group_1308 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1310 import CodespacesSecretType as CodespacesSecretType - from .group_1310 import ( + from .group_1309 import CodespacesSecretType as CodespacesSecretType + from .group_1309 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) - from .group_1311 import ( + from .group_1310 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) - from .group_1312 import ( + from .group_1311 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1313 import ( + from .group_1312 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1314 import ( + from .group_1313 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) - from .group_1315 import ( + from .group_1314 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) - from .group_1316 import ( + from .group_1315 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) - from .group_1317 import ( + from .group_1316 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1318 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type - from .group_1319 import ( + from .group_1317 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_1318 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1320 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType - from .group_1321 import ( + from .group_1319 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_1320 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1322 import ( + from .group_1321 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_1323 import ( + from .group_1322 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1324 import UserKeysPostBodyType as UserKeysPostBodyType - from .group_1325 import ( + from .group_1323 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_1324 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) - from .group_1326 import UserMigrationsPostBodyType as UserMigrationsPostBodyType - from .group_1327 import UserProjectsPostBodyType as UserProjectsPostBodyType - from .group_1328 import UserReposPostBodyType as UserReposPostBodyType - from .group_1329 import ( + from .group_1325 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_1326 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_1327 import UserReposPostBodyType as UserReposPostBodyType + from .group_1328 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1330 import ( + from .group_1329 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) - from .group_1331 import ( + from .group_1330 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) - from .group_1332 import ( + from .group_1331 import ( UsersUsernameAttestationsBulkListPostBodyType as UsersUsernameAttestationsBulkListPostBodyType, ) - from .group_1333 import ( + from .group_1332 import ( UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType as UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType, ) - from .group_1333 import ( + from .group_1332 import ( UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType as UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType, ) - from .group_1333 import ( + from .group_1332 import ( UsersUsernameAttestationsBulkListPostResponse200Type as UsersUsernameAttestationsBulkListPostResponse200Type, ) - from .group_1334 import ( + from .group_1333 import ( UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, ) - from .group_1335 import ( + from .group_1334 import ( UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1336 import ( + from .group_1335 import ( UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) else: @@ -9835,24 +9782,25 @@ "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0064": ("CodeScanningDefaultSetupOptionsType",), - ".group_0065": ("CodeSecurityDefaultConfigurationsItemsType",), - ".group_0066": ("CodeSecurityConfigurationRepositoriesType",), - ".group_0067": ("EnterpriseSecurityAnalysisSettingsType",), - ".group_0068": ( + ".group_0064": ("CodeScanningOptionsType",), + ".group_0065": ("CodeScanningDefaultSetupOptionsType",), + ".group_0066": ("CodeSecurityDefaultConfigurationsItemsType",), + ".group_0067": ("CodeSecurityConfigurationRepositoriesType",), + ".group_0068": ("EnterpriseSecurityAnalysisSettingsType",), + ".group_0069": ( "GetConsumedLicensesType", "GetConsumedLicensesPropUsersItemsType", ), - ".group_0069": ("TeamSimpleType",), - ".group_0070": ( + ".group_0070": ("TeamSimpleType",), + ".group_0071": ( "TeamType", "TeamPropPermissionsType", ), - ".group_0071": ( + ".group_0072": ( "CopilotSeatDetailsType", "EnterpriseTeamType", ), - ".group_0072": ( + ".group_0073": ( "CopilotUsageMetricsDayType", "CopilotDotcomChatType", "CopilotDotcomChatPropModelsItemsType", @@ -9868,125 +9816,125 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", ), - ".group_0073": ("DependabotAlertPackageType",), - ".group_0074": ( + ".group_0074": ("DependabotAlertPackageType",), + ".group_0075": ( "DependabotAlertSecurityVulnerabilityType", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", ), - ".group_0075": ( + ".group_0076": ( "DependabotAlertSecurityAdvisoryType", "DependabotAlertSecurityAdvisoryPropCvssType", "DependabotAlertSecurityAdvisoryPropCwesItemsType", "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", "DependabotAlertSecurityAdvisoryPropReferencesItemsType", ), - ".group_0076": ("DependabotAlertWithRepositoryType",), - ".group_0077": ("DependabotAlertWithRepositoryPropDependencyType",), - ".group_0078": ( + ".group_0077": ("DependabotAlertWithRepositoryType",), + ".group_0078": ("DependabotAlertWithRepositoryPropDependencyType",), + ".group_0079": ( "GetLicenseSyncStatusType", "GetLicenseSyncStatusPropServerInstancesItemsType", "GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType", ), - ".group_0079": ("NetworkConfigurationType",), - ".group_0080": ("NetworkSettingsType",), - ".group_0081": ("CustomPropertyType",), - ".group_0082": ("CustomPropertySetPayloadType",), - ".group_0083": ("RepositoryRulesetBypassActorType",), - ".group_0084": ("EnterpriseRulesetConditionsOrganizationNameTargetType",), - ".group_0085": ( + ".group_0080": ("NetworkConfigurationType",), + ".group_0081": ("NetworkSettingsType",), + ".group_0082": ("CustomPropertyType",), + ".group_0083": ("CustomPropertySetPayloadType",), + ".group_0084": ("RepositoryRulesetBypassActorType",), + ".group_0085": ("EnterpriseRulesetConditionsOrganizationNameTargetType",), + ".group_0086": ( "EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType", ), - ".group_0086": ("RepositoryRulesetConditionsRepositoryNameTargetType",), - ".group_0087": ( + ".group_0087": ("RepositoryRulesetConditionsRepositoryNameTargetType",), + ".group_0088": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType", ), - ".group_0088": ("RepositoryRulesetConditionsType",), - ".group_0089": ("RepositoryRulesetConditionsPropRefNameType",), - ".group_0090": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), - ".group_0091": ( + ".group_0089": ("RepositoryRulesetConditionsType",), + ".group_0090": ("RepositoryRulesetConditionsPropRefNameType",), + ".group_0091": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), + ".group_0092": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", "RepositoryRulesetConditionsRepositoryPropertySpecType", ), - ".group_0092": ("EnterpriseRulesetConditionsOrganizationIdTargetType",), - ".group_0093": ( + ".group_0093": ("EnterpriseRulesetConditionsOrganizationIdTargetType",), + ".group_0094": ( "EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType", ), - ".group_0094": ("EnterpriseRulesetConditionsOneof0Type",), - ".group_0095": ("EnterpriseRulesetConditionsOneof1Type",), - ".group_0096": ("EnterpriseRulesetConditionsOneof2Type",), - ".group_0097": ("EnterpriseRulesetConditionsOneof3Type",), - ".group_0098": ( + ".group_0095": ("EnterpriseRulesetConditionsOneof0Type",), + ".group_0096": ("EnterpriseRulesetConditionsOneof1Type",), + ".group_0097": ("EnterpriseRulesetConditionsOneof2Type",), + ".group_0098": ("EnterpriseRulesetConditionsOneof3Type",), + ".group_0099": ( "RepositoryRuleCreationType", "RepositoryRuleDeletionType", "RepositoryRuleRequiredSignaturesType", "RepositoryRuleNonFastForwardType", ), - ".group_0099": ("RepositoryRuleUpdateType",), - ".group_0100": ("RepositoryRuleUpdatePropParametersType",), - ".group_0101": ("RepositoryRuleRequiredLinearHistoryType",), - ".group_0102": ("RepositoryRuleMergeQueueType",), - ".group_0103": ("RepositoryRuleMergeQueuePropParametersType",), - ".group_0104": ("RepositoryRuleRequiredDeploymentsType",), - ".group_0105": ("RepositoryRuleRequiredDeploymentsPropParametersType",), - ".group_0106": ( + ".group_0100": ("RepositoryRuleUpdateType",), + ".group_0101": ("RepositoryRuleUpdatePropParametersType",), + ".group_0102": ("RepositoryRuleRequiredLinearHistoryType",), + ".group_0103": ("RepositoryRuleRequiredDeploymentsType",), + ".group_0104": ("RepositoryRuleRequiredDeploymentsPropParametersType",), + ".group_0105": ( "RepositoryRuleParamsRequiredReviewerConfigurationType", "RepositoryRuleParamsReviewerType", ), - ".group_0107": ("RepositoryRulePullRequestType",), - ".group_0108": ("RepositoryRulePullRequestPropParametersType",), - ".group_0109": ("RepositoryRuleRequiredStatusChecksType",), - ".group_0110": ( + ".group_0106": ("RepositoryRulePullRequestType",), + ".group_0107": ("RepositoryRulePullRequestPropParametersType",), + ".group_0108": ("RepositoryRuleRequiredStatusChecksType",), + ".group_0109": ( "RepositoryRuleRequiredStatusChecksPropParametersType", "RepositoryRuleParamsStatusCheckConfigurationType", ), - ".group_0111": ("RepositoryRuleCommitMessagePatternType",), - ".group_0112": ("RepositoryRuleCommitMessagePatternPropParametersType",), - ".group_0113": ("RepositoryRuleCommitAuthorEmailPatternType",), - ".group_0114": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), - ".group_0115": ("RepositoryRuleCommitterEmailPatternType",), - ".group_0116": ("RepositoryRuleCommitterEmailPatternPropParametersType",), - ".group_0117": ("RepositoryRuleBranchNamePatternType",), - ".group_0118": ("RepositoryRuleBranchNamePatternPropParametersType",), - ".group_0119": ("RepositoryRuleTagNamePatternType",), - ".group_0120": ("RepositoryRuleTagNamePatternPropParametersType",), - ".group_0121": ("RepositoryRuleFilePathRestrictionType",), - ".group_0122": ("RepositoryRuleFilePathRestrictionPropParametersType",), - ".group_0123": ("RepositoryRuleMaxFilePathLengthType",), - ".group_0124": ("RepositoryRuleMaxFilePathLengthPropParametersType",), - ".group_0125": ("RepositoryRuleFileExtensionRestrictionType",), - ".group_0126": ("RepositoryRuleFileExtensionRestrictionPropParametersType",), - ".group_0127": ("RepositoryRuleMaxFileSizeType",), - ".group_0128": ("RepositoryRuleMaxFileSizePropParametersType",), - ".group_0129": ("RepositoryRuleParamsRestrictedCommitsType",), - ".group_0130": ("RepositoryRuleWorkflowsType",), - ".group_0131": ( + ".group_0110": ("RepositoryRuleCommitMessagePatternType",), + ".group_0111": ("RepositoryRuleCommitMessagePatternPropParametersType",), + ".group_0112": ("RepositoryRuleCommitAuthorEmailPatternType",), + ".group_0113": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), + ".group_0114": ("RepositoryRuleCommitterEmailPatternType",), + ".group_0115": ("RepositoryRuleCommitterEmailPatternPropParametersType",), + ".group_0116": ("RepositoryRuleBranchNamePatternType",), + ".group_0117": ("RepositoryRuleBranchNamePatternPropParametersType",), + ".group_0118": ("RepositoryRuleTagNamePatternType",), + ".group_0119": ("RepositoryRuleTagNamePatternPropParametersType",), + ".group_0120": ("RepositoryRuleFilePathRestrictionType",), + ".group_0121": ("RepositoryRuleFilePathRestrictionPropParametersType",), + ".group_0122": ("RepositoryRuleMaxFilePathLengthType",), + ".group_0123": ("RepositoryRuleMaxFilePathLengthPropParametersType",), + ".group_0124": ("RepositoryRuleFileExtensionRestrictionType",), + ".group_0125": ("RepositoryRuleFileExtensionRestrictionPropParametersType",), + ".group_0126": ("RepositoryRuleMaxFileSizeType",), + ".group_0127": ("RepositoryRuleMaxFileSizePropParametersType",), + ".group_0128": ("RepositoryRuleParamsRestrictedCommitsType",), + ".group_0129": ("RepositoryRuleWorkflowsType",), + ".group_0130": ( "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", ), - ".group_0132": ("RepositoryRuleCodeScanningType",), - ".group_0133": ( + ".group_0131": ("RepositoryRuleCodeScanningType",), + ".group_0132": ( "RepositoryRuleCodeScanningPropParametersType", "RepositoryRuleParamsCodeScanningToolType", ), - ".group_0134": ("RepositoryRulesetConditionsRepositoryIdTargetType",), - ".group_0135": ( + ".group_0133": ("RepositoryRulesetConditionsRepositoryIdTargetType",), + ".group_0134": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType", ), - ".group_0136": ("OrgRulesetConditionsOneof0Type",), - ".group_0137": ("OrgRulesetConditionsOneof1Type",), - ".group_0138": ("OrgRulesetConditionsOneof2Type",), - ".group_0139": ( + ".group_0135": ("OrgRulesetConditionsOneof0Type",), + ".group_0136": ("OrgRulesetConditionsOneof1Type",), + ".group_0137": ("OrgRulesetConditionsOneof2Type",), + ".group_0138": ("RepositoryRuleMergeQueueType",), + ".group_0139": ("RepositoryRuleMergeQueuePropParametersType",), + ".group_0140": ( "RepositoryRulesetType", "RepositoryRulesetPropLinksType", "RepositoryRulesetPropLinksPropSelfType", "RepositoryRulesetPropLinksPropHtmlType", ), - ".group_0140": ("RulesetVersionType",), - ".group_0141": ("RulesetVersionPropActorType",), - ".group_0142": ("RulesetVersionWithStateType",), - ".group_0143": ("RulesetVersionWithStateAllof1Type",), - ".group_0144": ("RulesetVersionWithStateAllof1PropStateType",), - ".group_0145": ( + ".group_0141": ("RulesetVersionType",), + ".group_0142": ("RulesetVersionPropActorType",), + ".group_0143": ("RulesetVersionWithStateType",), + ".group_0144": ("RulesetVersionWithStateAllof1Type",), + ".group_0145": ("RulesetVersionWithStateAllof1PropStateType",), + ".group_0146": ( "SecretScanningLocationCommitType", "SecretScanningLocationWikiCommitType", "SecretScanningLocationIssueBodyType", @@ -9995,102 +9943,102 @@ "SecretScanningLocationPullRequestBodyType", "SecretScanningLocationPullRequestReviewType", ), - ".group_0146": ( + ".group_0147": ( "SecretScanningLocationIssueTitleType", "SecretScanningLocationIssueCommentType", "SecretScanningLocationPullRequestTitleType", "SecretScanningLocationPullRequestReviewCommentType", ), - ".group_0147": ( + ".group_0148": ( "SecretScanningLocationDiscussionBodyType", "SecretScanningLocationPullRequestCommentType", ), - ".group_0148": ("OrganizationSecretScanningAlertType",), - ".group_0149": ( + ".group_0149": ("OrganizationSecretScanningAlertType",), + ".group_0150": ( "ActionsBillingUsageType", "ActionsBillingUsagePropMinutesUsedBreakdownType", ), - ".group_0150": ( + ".group_0151": ( "AdvancedSecurityActiveCommittersType", "AdvancedSecurityActiveCommittersRepositoryType", "AdvancedSecurityActiveCommittersUserType", ), - ".group_0151": ( + ".group_0152": ( "GetAllCostCentersType", "GetAllCostCentersPropCostCentersItemsType", "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", ), - ".group_0152": ( + ".group_0153": ( "GetCostCenterType", "GetCostCenterPropResourcesItemsType", ), - ".group_0153": ("DeleteCostCenterType",), - ".group_0154": ("PackagesBillingUsageType",), - ".group_0155": ("CombinedBillingUsageType",), - ".group_0156": ( + ".group_0154": ("DeleteCostCenterType",), + ".group_0155": ("PackagesBillingUsageType",), + ".group_0156": ("CombinedBillingUsageType",), + ".group_0157": ( "BillingUsageReportType", "BillingUsageReportPropUsageItemsItemsType", ), - ".group_0157": ("MilestoneType",), - ".group_0158": ("IssueTypeType",), - ".group_0159": ("ReactionRollupType",), - ".group_0160": ( + ".group_0158": ("MilestoneType",), + ".group_0159": ("IssueTypeType",), + ".group_0160": ("ReactionRollupType",), + ".group_0161": ("SubIssuesSummaryType",), + ".group_0162": ( "IssueType", - "SubIssuesSummaryType", "IssuePropLabelsItemsOneof1Type", "IssuePropPullRequestType", ), - ".group_0161": ("IssueCommentType",), - ".group_0162": ( + ".group_0163": ("IssueCommentType",), + ".group_0164": ( "EventPropPayloadType", "EventPropPayloadPropPagesItemsType", "EventType", "ActorType", "EventPropRepoType", ), - ".group_0163": ( + ".group_0165": ( "FeedType", "FeedPropLinksType", "LinkWithTypeType", ), - ".group_0164": ( + ".group_0166": ( "BaseGistType", "BaseGistPropFilesType", ), - ".group_0165": ( + ".group_0167": ( "GistHistoryType", "GistHistoryPropChangeStatusType", "GistSimplePropForkOfType", "GistSimplePropForkOfPropFilesType", ), - ".group_0166": ( + ".group_0168": ( "GistSimpleType", "GistSimplePropFilesType", "GistSimplePropForksItemsType", "PublicUserType", "PublicUserPropPlanType", ), - ".group_0167": ("GistCommentType",), - ".group_0168": ( + ".group_0169": ("GistCommentType",), + ".group_0170": ( "GistCommitType", "GistCommitPropChangeStatusType", ), - ".group_0169": ("GitignoreTemplateType",), - ".group_0170": ("LicenseType",), - ".group_0171": ("MarketplaceListingPlanType",), - ".group_0172": ("MarketplacePurchaseType",), - ".group_0173": ( + ".group_0171": ("GitignoreTemplateType",), + ".group_0172": ("LicenseType",), + ".group_0173": ("MarketplaceListingPlanType",), + ".group_0174": ("MarketplacePurchaseType",), + ".group_0175": ( "MarketplacePurchasePropMarketplacePendingChangeType", "MarketplacePurchasePropMarketplacePurchaseType", ), - ".group_0174": ( + ".group_0176": ( "ApiOverviewType", "ApiOverviewPropSshKeyFingerprintsType", "ApiOverviewPropDomainsType", "ApiOverviewPropDomainsPropActionsInboundType", "ApiOverviewPropDomainsPropArtifactAttestationsType", ), - ".group_0175": ( + ".group_0177": ( "SecurityAndAnalysisType", "SecurityAndAnalysisPropAdvancedSecurityType", "SecurityAndAnalysisPropCodeSecurityType", @@ -10101,54 +10049,54 @@ "SecurityAndAnalysisPropSecretScanningAiDetectionType", "SecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_0176": ( + ".group_0178": ( "MinimalRepositoryType", "CodeOfConductType", "MinimalRepositoryPropPermissionsType", "MinimalRepositoryPropLicenseType", "MinimalRepositoryPropCustomPropertiesType", ), - ".group_0177": ( + ".group_0179": ( "ThreadType", "ThreadPropSubjectType", ), - ".group_0178": ("ThreadSubscriptionType",), - ".group_0179": ("OrganizationCustomRepositoryRoleType",), - ".group_0180": ("DependabotRepositoryAccessDetailsType",), - ".group_0181": ( + ".group_0180": ("ThreadSubscriptionType",), + ".group_0181": ("OrganizationCustomRepositoryRoleType",), + ".group_0182": ("DependabotRepositoryAccessDetailsType",), + ".group_0183": ( "OrganizationFullType", "OrganizationFullPropPlanType", ), - ".group_0182": ("OidcCustomSubType",), - ".group_0183": ("ActionsOrganizationPermissionsType",), - ".group_0184": ("ActionsPublicKeyType",), - ".group_0185": ( + ".group_0184": ("OidcCustomSubType",), + ".group_0185": ("ActionsOrganizationPermissionsType",), + ".group_0186": ("ActionsPublicKeyType",), + ".group_0187": ( "SecretScanningBypassRequestType", "SecretScanningBypassRequestPropRepositoryType", "SecretScanningBypassRequestPropOrganizationType", "SecretScanningBypassRequestPropRequesterType", "SecretScanningBypassRequestPropDataItemsType", ), - ".group_0186": ( + ".group_0188": ( "CampaignSummaryType", "CampaignSummaryPropAlertStatsType", ), - ".group_0187": ("CodespaceMachineType",), - ".group_0188": ( + ".group_0189": ("CodespaceMachineType",), + ".group_0190": ( "CodespaceType", "CodespacePropGitStatusType", "CodespacePropRuntimeConstraintsType", ), - ".group_0189": ("CodespacesPublicKeyType",), - ".group_0190": ( + ".group_0191": ("CodespacesPublicKeyType",), + ".group_0192": ( "CopilotOrganizationDetailsType", "CopilotOrganizationSeatBreakdownType", ), - ".group_0191": ("CredentialAuthorizationType",), - ".group_0192": ("OrganizationCustomRepositoryRoleCreateSchemaType",), - ".group_0193": ("OrganizationCustomRepositoryRoleUpdateSchemaType",), - ".group_0194": ("DependabotPublicKeyType",), - ".group_0195": ( + ".group_0193": ("CredentialAuthorizationType",), + ".group_0194": ("OrganizationCustomRepositoryRoleCreateSchemaType",), + ".group_0195": ("OrganizationCustomRepositoryRoleUpdateSchemaType",), + ".group_0196": ("DependabotPublicKeyType",), + ".group_0197": ( "CodeScanningAlertDismissalRequestType", "CodeScanningAlertDismissalRequestPropRepositoryType", "CodeScanningAlertDismissalRequestPropOrganizationType", @@ -10157,93 +10105,93 @@ "DismissalRequestResponseType", "DismissalRequestResponsePropReviewerType", ), - ".group_0196": ( + ".group_0198": ( "SecretScanningDismissalRequestType", "SecretScanningDismissalRequestPropRepositoryType", "SecretScanningDismissalRequestPropOrganizationType", "SecretScanningDismissalRequestPropRequesterType", "SecretScanningDismissalRequestPropDataItemsType", ), - ".group_0197": ("PackageType",), - ".group_0198": ( + ".group_0199": ("PackageType",), + ".group_0200": ( "ExternalGroupType", "ExternalGroupPropTeamsItemsType", "ExternalGroupPropMembersItemsType", ), - ".group_0199": ( + ".group_0201": ( "ExternalGroupsType", "ExternalGroupsPropGroupsItemsType", ), - ".group_0200": ("OrganizationInvitationType",), - ".group_0201": ("RepositoryFineGrainedPermissionType",), - ".group_0202": ( + ".group_0202": ("OrganizationInvitationType",), + ".group_0203": ("RepositoryFineGrainedPermissionType",), + ".group_0204": ( "OrgHookType", "OrgHookPropConfigType", ), - ".group_0203": ("ApiInsightsRouteStatsItemsType",), - ".group_0204": ("ApiInsightsSubjectStatsItemsType",), - ".group_0205": ("ApiInsightsSummaryStatsType",), - ".group_0206": ("ApiInsightsTimeStatsItemsType",), - ".group_0207": ("ApiInsightsUserStatsItemsType",), - ".group_0208": ("InteractionLimitResponseType",), - ".group_0209": ("InteractionLimitType",), - ".group_0210": ("OrganizationCreateIssueTypeType",), - ".group_0211": ("OrganizationUpdateIssueTypeType",), - ".group_0212": ( + ".group_0205": ("ApiInsightsRouteStatsItemsType",), + ".group_0206": ("ApiInsightsSubjectStatsItemsType",), + ".group_0207": ("ApiInsightsSummaryStatsType",), + ".group_0208": ("ApiInsightsTimeStatsItemsType",), + ".group_0209": ("ApiInsightsUserStatsItemsType",), + ".group_0210": ("InteractionLimitResponseType",), + ".group_0211": ("InteractionLimitType",), + ".group_0212": ("OrganizationCreateIssueTypeType",), + ".group_0213": ("OrganizationUpdateIssueTypeType",), + ".group_0214": ( "OrgMembershipType", "OrgMembershipPropPermissionsType", ), - ".group_0213": ("MigrationType",), - ".group_0214": ("OrganizationFineGrainedPermissionType",), - ".group_0215": ( + ".group_0215": ("MigrationType",), + ".group_0216": ("OrganizationFineGrainedPermissionType",), + ".group_0217": ( "OrganizationRoleType", "OrgsOrgOrganizationRolesGetResponse200Type", ), - ".group_0216": ("OrganizationCustomOrganizationRoleCreateSchemaType",), - ".group_0217": ("OrganizationCustomOrganizationRoleUpdateSchemaType",), - ".group_0218": ( + ".group_0218": ("OrganizationCustomOrganizationRoleCreateSchemaType",), + ".group_0219": ("OrganizationCustomOrganizationRoleUpdateSchemaType",), + ".group_0220": ( "TeamRoleAssignmentType", "TeamRoleAssignmentPropPermissionsType", ), - ".group_0219": ("UserRoleAssignmentType",), - ".group_0220": ( + ".group_0221": ("UserRoleAssignmentType",), + ".group_0222": ( "PackageVersionType", "PackageVersionPropMetadataType", "PackageVersionPropMetadataPropContainerType", "PackageVersionPropMetadataPropDockerType", ), - ".group_0221": ( + ".group_0223": ( "OrganizationProgrammaticAccessGrantRequestType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", ), - ".group_0222": ( + ".group_0224": ( "OrganizationProgrammaticAccessGrantType", "OrganizationProgrammaticAccessGrantPropPermissionsType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", ), - ".group_0223": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), - ".group_0224": ("ProjectType",), - ".group_0225": ("CustomPropertyValueType",), - ".group_0226": ("OrgRepoCustomPropertyValuesType",), - ".group_0227": ("CodeOfConductSimpleType",), - ".group_0228": ( + ".group_0225": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), + ".group_0226": ("ProjectType",), + ".group_0227": ("CustomPropertyValueType",), + ".group_0228": ("OrgRepoCustomPropertyValuesType",), + ".group_0229": ("CodeOfConductSimpleType",), + ".group_0230": ( "FullRepositoryType", "FullRepositoryPropPermissionsType", "FullRepositoryPropCustomPropertiesType", ), - ".group_0229": ("RuleSuitesItemsType",), - ".group_0230": ( + ".group_0231": ("RuleSuitesItemsType",), + ".group_0232": ( "RuleSuiteType", "RuleSuitePropRuleEvaluationsItemsType", "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", ), - ".group_0231": ("RepositoryAdvisoryCreditType",), - ".group_0232": ( + ".group_0233": ("RepositoryAdvisoryCreditType",), + ".group_0234": ( "RepositoryAdvisoryType", "RepositoryAdvisoryPropIdentifiersItemsType", "RepositoryAdvisoryPropSubmissionType", @@ -10253,82 +10201,82 @@ "RepositoryAdvisoryVulnerabilityType", "RepositoryAdvisoryVulnerabilityPropPackageType", ), - ".group_0233": ( + ".group_0235": ( "GroupMappingType", "GroupMappingPropGroupsItemsType", ), - ".group_0234": ( + ".group_0236": ( "TeamFullType", "TeamOrganizationType", "TeamOrganizationPropPlanType", ), - ".group_0235": ("TeamDiscussionType",), - ".group_0236": ("TeamDiscussionCommentType",), - ".group_0237": ("ReactionType",), - ".group_0238": ("TeamMembershipType",), - ".group_0239": ( + ".group_0237": ("TeamDiscussionType",), + ".group_0238": ("TeamDiscussionCommentType",), + ".group_0239": ("ReactionType",), + ".group_0240": ("TeamMembershipType",), + ".group_0241": ( "TeamProjectType", "TeamProjectPropPermissionsType", ), - ".group_0240": ( + ".group_0242": ( "TeamRepositoryType", "TeamRepositoryPropPermissionsType", ), - ".group_0241": ("ProjectCardType",), - ".group_0242": ("ProjectColumnType",), - ".group_0243": ("ProjectCollaboratorPermissionType",), - ".group_0244": ("RateLimitType",), - ".group_0245": ("RateLimitOverviewType",), - ".group_0246": ("RateLimitOverviewPropResourcesType",), - ".group_0247": ( + ".group_0243": ("ProjectCardType",), + ".group_0244": ("ProjectColumnType",), + ".group_0245": ("ProjectCollaboratorPermissionType",), + ".group_0246": ("RateLimitType",), + ".group_0247": ("RateLimitOverviewType",), + ".group_0248": ("RateLimitOverviewPropResourcesType",), + ".group_0249": ( "ArtifactType", "ArtifactPropWorkflowRunType", ), - ".group_0248": ( + ".group_0250": ( "ActionsCacheListType", "ActionsCacheListPropActionsCachesItemsType", ), - ".group_0249": ( + ".group_0251": ( "JobType", "JobPropStepsItemsType", ), - ".group_0250": ("OidcCustomSubRepoType",), - ".group_0251": ("ActionsSecretType",), - ".group_0252": ("ActionsVariableType",), - ".group_0253": ("ActionsRepositoryPermissionsType",), - ".group_0254": ("ActionsWorkflowAccessToRepositoryType",), - ".group_0255": ( + ".group_0252": ("OidcCustomSubRepoType",), + ".group_0253": ("ActionsSecretType",), + ".group_0254": ("ActionsVariableType",), + ".group_0255": ("ActionsRepositoryPermissionsType",), + ".group_0256": ("ActionsWorkflowAccessToRepositoryType",), + ".group_0257": ( "PullRequestMinimalType", "PullRequestMinimalPropHeadType", "PullRequestMinimalPropHeadPropRepoType", "PullRequestMinimalPropBaseType", "PullRequestMinimalPropBasePropRepoType", ), - ".group_0256": ( + ".group_0258": ( "SimpleCommitType", "SimpleCommitPropAuthorType", "SimpleCommitPropCommitterType", ), - ".group_0257": ( + ".group_0259": ( "WorkflowRunType", "ReferencedWorkflowType", ), - ".group_0258": ( + ".group_0260": ( "EnvironmentApprovalsType", "EnvironmentApprovalsPropEnvironmentsItemsType", ), - ".group_0259": ("ReviewCustomGatesCommentRequiredType",), - ".group_0260": ("ReviewCustomGatesStateRequiredType",), - ".group_0261": ( + ".group_0261": ("ReviewCustomGatesCommentRequiredType",), + ".group_0262": ("ReviewCustomGatesStateRequiredType",), + ".group_0263": ( "PendingDeploymentPropReviewersItemsType", "PendingDeploymentType", "PendingDeploymentPropEnvironmentType", ), - ".group_0262": ( + ".group_0264": ( "DeploymentType", "DeploymentPropPayloadOneof0Type", ), - ".group_0263": ( + ".group_0265": ( "WorkflowRunUsageType", "WorkflowRunUsagePropBillableType", "WorkflowRunUsagePropBillablePropUbuntuType", @@ -10338,22 +10286,22 @@ "WorkflowRunUsagePropBillablePropWindowsType", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", ), - ".group_0264": ( + ".group_0266": ( "WorkflowUsageType", "WorkflowUsagePropBillableType", "WorkflowUsagePropBillablePropUbuntuType", "WorkflowUsagePropBillablePropMacosType", "WorkflowUsagePropBillablePropWindowsType", ), - ".group_0265": ("ActivityType",), - ".group_0266": ("AutolinkType",), - ".group_0267": ("CheckAutomatedSecurityFixesType",), - ".group_0268": ("ProtectedBranchPullRequestReviewType",), - ".group_0269": ( + ".group_0267": ("ActivityType",), + ".group_0268": ("AutolinkType",), + ".group_0269": ("CheckAutomatedSecurityFixesType",), + ".group_0270": ("ProtectedBranchPullRequestReviewType",), + ".group_0271": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", ), - ".group_0270": ( + ".group_0272": ( "BranchRestrictionPolicyType", "BranchRestrictionPolicyPropUsersItemsType", "BranchRestrictionPolicyPropTeamsItemsType", @@ -10361,7 +10309,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwnerType", "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", ), - ".group_0271": ( + ".group_0273": ( "BranchProtectionType", "ProtectedBranchAdminEnforcedType", "BranchProtectionPropRequiredLinearHistoryType", @@ -10375,28 +10323,28 @@ "ProtectedBranchRequiredStatusCheckType", "ProtectedBranchRequiredStatusCheckPropChecksItemsType", ), - ".group_0272": ( + ".group_0274": ( "ShortBranchType", "ShortBranchPropCommitType", ), - ".group_0273": ("GitUserType",), - ".group_0274": ("VerificationType",), - ".group_0275": ("DiffEntryType",), - ".group_0276": ( + ".group_0275": ("GitUserType",), + ".group_0276": ("VerificationType",), + ".group_0277": ("DiffEntryType",), + ".group_0278": ( "CommitType", "EmptyObjectType", "CommitPropParentsItemsType", "CommitPropStatsType", ), - ".group_0277": ( + ".group_0279": ( "CommitPropCommitType", "CommitPropCommitPropTreeType", ), - ".group_0278": ( + ".group_0280": ( "BranchWithProtectionType", "BranchWithProtectionPropLinksType", ), - ".group_0279": ( + ".group_0281": ( "ProtectedBranchType", "ProtectedBranchPropRequiredSignaturesType", "ProtectedBranchPropEnforceAdminsType", @@ -10410,117 +10358,117 @@ "StatusCheckPolicyType", "StatusCheckPolicyPropChecksItemsType", ), - ".group_0280": ("ProtectedBranchPropRequiredPullRequestReviewsType",), - ".group_0281": ( + ".group_0282": ("ProtectedBranchPropRequiredPullRequestReviewsType",), + ".group_0283": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ), - ".group_0282": ("DeploymentSimpleType",), - ".group_0283": ( + ".group_0284": ("DeploymentSimpleType",), + ".group_0285": ( "CheckRunType", "CheckRunPropOutputType", "CheckRunPropCheckSuiteType", ), - ".group_0284": ("CheckAnnotationType",), - ".group_0285": ( + ".group_0286": ("CheckAnnotationType",), + ".group_0287": ( "CheckSuiteType", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", ), - ".group_0286": ( + ".group_0288": ( "CheckSuitePreferenceType", "CheckSuitePreferencePropPreferencesType", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", ), - ".group_0287": ("CodeScanningAlertItemsType",), - ".group_0288": ( + ".group_0289": ("CodeScanningAlertItemsType",), + ".group_0290": ( "CodeScanningAlertType", "CodeScanningAlertRuleType", ), - ".group_0289": ("CodeScanningAutofixType",), - ".group_0290": ("CodeScanningAutofixCommitsType",), - ".group_0291": ("CodeScanningAutofixCommitsResponseType",), - ".group_0292": ("CodeScanningAnalysisType",), - ".group_0293": ("CodeScanningAnalysisDeletionType",), - ".group_0294": ("CodeScanningCodeqlDatabaseType",), - ".group_0295": ("CodeScanningVariantAnalysisRepositoryType",), - ".group_0296": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), - ".group_0297": ("CodeScanningVariantAnalysisType",), - ".group_0298": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), - ".group_0299": ( + ".group_0291": ("CodeScanningAutofixType",), + ".group_0292": ("CodeScanningAutofixCommitsType",), + ".group_0293": ("CodeScanningAutofixCommitsResponseType",), + ".group_0294": ("CodeScanningAnalysisType",), + ".group_0295": ("CodeScanningAnalysisDeletionType",), + ".group_0296": ("CodeScanningCodeqlDatabaseType",), + ".group_0297": ("CodeScanningVariantAnalysisRepositoryType",), + ".group_0298": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), + ".group_0299": ("CodeScanningVariantAnalysisType",), + ".group_0300": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), + ".group_0301": ( "CodeScanningVariantAnalysisPropSkippedRepositoriesType", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", ), - ".group_0300": ("CodeScanningVariantAnalysisRepoTaskType",), - ".group_0301": ("CodeScanningDefaultSetupType",), - ".group_0302": ("CodeScanningDefaultSetupUpdateType",), - ".group_0303": ("CodeScanningDefaultSetupUpdateResponseType",), - ".group_0304": ("CodeScanningSarifsReceiptType",), - ".group_0305": ("CodeScanningSarifsStatusType",), - ".group_0306": ("CodeSecurityConfigurationForRepositoryType",), - ".group_0307": ( + ".group_0302": ("CodeScanningVariantAnalysisRepoTaskType",), + ".group_0303": ("CodeScanningDefaultSetupType",), + ".group_0304": ("CodeScanningDefaultSetupUpdateType",), + ".group_0305": ("CodeScanningDefaultSetupUpdateResponseType",), + ".group_0306": ("CodeScanningSarifsReceiptType",), + ".group_0307": ("CodeScanningSarifsStatusType",), + ".group_0308": ("CodeSecurityConfigurationForRepositoryType",), + ".group_0309": ( "CodeownersErrorsType", "CodeownersErrorsPropErrorsItemsType", ), - ".group_0308": ("CodespacesPermissionsCheckForDevcontainerType",), - ".group_0309": ("RepositoryInvitationType",), - ".group_0310": ( + ".group_0310": ("CodespacesPermissionsCheckForDevcontainerType",), + ".group_0311": ("RepositoryInvitationType",), + ".group_0312": ( "RepositoryCollaboratorPermissionType", "CollaboratorType", "CollaboratorPropPermissionsType", ), - ".group_0311": ( + ".group_0313": ( "CommitCommentType", "TimelineCommitCommentedEventType", ), - ".group_0312": ( + ".group_0314": ( "BranchShortType", "BranchShortPropCommitType", ), - ".group_0313": ("LinkType",), - ".group_0314": ("AutoMergeType",), - ".group_0315": ( + ".group_0315": ("LinkType",), + ".group_0316": ("AutoMergeType",), + ".group_0317": ( "PullRequestSimpleType", "PullRequestSimplePropLabelsItemsType", ), - ".group_0316": ( + ".group_0318": ( "PullRequestSimplePropHeadType", "PullRequestSimplePropBaseType", ), - ".group_0317": ("PullRequestSimplePropLinksType",), - ".group_0318": ( + ".group_0319": ("PullRequestSimplePropLinksType",), + ".group_0320": ( "CombinedCommitStatusType", "SimpleCommitStatusType", ), - ".group_0319": ("StatusType",), - ".group_0320": ( + ".group_0321": ("StatusType",), + ".group_0322": ( "CommunityProfilePropFilesType", "CommunityHealthFileType", "CommunityProfileType", ), - ".group_0321": ("CommitComparisonType",), - ".group_0322": ( + ".group_0323": ("CommitComparisonType",), + ".group_0324": ( "ContentTreeType", "ContentTreePropLinksType", "ContentTreePropEntriesItemsType", "ContentTreePropEntriesItemsPropLinksType", ), - ".group_0323": ( + ".group_0325": ( "ContentDirectoryItemsType", "ContentDirectoryItemsPropLinksType", ), - ".group_0324": ( + ".group_0326": ( "ContentFileType", "ContentFilePropLinksType", ), - ".group_0325": ( + ".group_0327": ( "ContentSymlinkType", "ContentSymlinkPropLinksType", ), - ".group_0326": ( + ".group_0328": ( "ContentSubmoduleType", "ContentSubmodulePropLinksType", ), - ".group_0327": ( + ".group_0329": ( "FileCommitType", "FileCommitPropContentType", "FileCommitPropContentPropLinksType", @@ -10531,20 +10479,20 @@ "FileCommitPropCommitPropParentsItemsType", "FileCommitPropCommitPropVerificationType", ), - ".group_0328": ( + ".group_0330": ( "RepositoryRuleViolationErrorType", "RepositoryRuleViolationErrorPropMetadataType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", ), - ".group_0329": ("ContributorType",), - ".group_0330": ("DependabotAlertType",), - ".group_0331": ("DependabotAlertPropDependencyType",), - ".group_0332": ( + ".group_0331": ("ContributorType",), + ".group_0332": ("DependabotAlertType",), + ".group_0333": ("DependabotAlertPropDependencyType",), + ".group_0334": ( "DependencyGraphDiffItemsType", "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ), - ".group_0333": ( + ".group_0335": ( "DependencyGraphSpdxSbomType", "DependencyGraphSpdxSbomPropSbomType", "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", @@ -10552,41 +10500,41 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", ), - ".group_0334": ("MetadataType",), - ".group_0335": ("DependencyType",), - ".group_0336": ( + ".group_0336": ("MetadataType",), + ".group_0337": ("DependencyType",), + ".group_0338": ( "ManifestType", "ManifestPropFileType", "ManifestPropResolvedType", ), - ".group_0337": ( + ".group_0339": ( "SnapshotType", "SnapshotPropJobType", "SnapshotPropDetectorType", "SnapshotPropManifestsType", ), - ".group_0338": ("DeploymentStatusType",), - ".group_0339": ("DeploymentBranchPolicySettingsType",), - ".group_0340": ( + ".group_0340": ("DeploymentStatusType",), + ".group_0341": ("DeploymentBranchPolicySettingsType",), + ".group_0342": ( "EnvironmentType", "EnvironmentPropProtectionRulesItemsAnyof0Type", "EnvironmentPropProtectionRulesItemsAnyof2Type", "ReposOwnerRepoEnvironmentsGetResponse200Type", ), - ".group_0341": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), - ".group_0342": ( + ".group_0343": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), + ".group_0344": ( "EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType", ), - ".group_0343": ("DeploymentBranchPolicyNamePatternWithTypeType",), - ".group_0344": ("DeploymentBranchPolicyNamePatternType",), - ".group_0345": ("CustomDeploymentRuleAppType",), - ".group_0346": ( + ".group_0345": ("DeploymentBranchPolicyNamePatternWithTypeType",), + ".group_0346": ("DeploymentBranchPolicyNamePatternType",), + ".group_0347": ("CustomDeploymentRuleAppType",), + ".group_0348": ( "DeploymentProtectionRuleType", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ), - ".group_0347": ("ShortBlobType",), - ".group_0348": ("BlobType",), - ".group_0349": ( + ".group_0349": ("ShortBlobType",), + ".group_0350": ("BlobType",), + ".group_0351": ( "GitCommitType", "GitCommitPropAuthorType", "GitCommitPropCommitterType", @@ -10594,28 +10542,28 @@ "GitCommitPropParentsItemsType", "GitCommitPropVerificationType", ), - ".group_0350": ( + ".group_0352": ( "GitRefType", "GitRefPropObjectType", ), - ".group_0351": ( + ".group_0353": ( "GitTagType", "GitTagPropTaggerType", "GitTagPropObjectType", ), - ".group_0352": ( + ".group_0354": ( "GitTreeType", "GitTreePropTreeItemsType", ), - ".group_0353": ("HookResponseType",), - ".group_0354": ("HookType",), - ".group_0355": ( + ".group_0355": ("HookResponseType",), + ".group_0356": ("HookType",), + ".group_0357": ( "ImportType", "ImportPropProjectChoicesItemsType", ), - ".group_0356": ("PorterAuthorType",), - ".group_0357": ("PorterLargeFileType",), - ".group_0358": ( + ".group_0358": ("PorterAuthorType",), + ".group_0359": ("PorterLargeFileType",), + ".group_0360": ( "IssueEventType", "IssueEventLabelType", "IssueEventDismissedReviewType", @@ -10623,55 +10571,55 @@ "IssueEventProjectCardType", "IssueEventRenameType", ), - ".group_0359": ( + ".group_0361": ( "LabeledIssueEventType", "LabeledIssueEventPropLabelType", ), - ".group_0360": ( + ".group_0362": ( "UnlabeledIssueEventType", "UnlabeledIssueEventPropLabelType", ), - ".group_0361": ("AssignedIssueEventType",), - ".group_0362": ("UnassignedIssueEventType",), - ".group_0363": ( + ".group_0363": ("AssignedIssueEventType",), + ".group_0364": ("UnassignedIssueEventType",), + ".group_0365": ( "MilestonedIssueEventType", "MilestonedIssueEventPropMilestoneType", ), - ".group_0364": ( + ".group_0366": ( "DemilestonedIssueEventType", "DemilestonedIssueEventPropMilestoneType", ), - ".group_0365": ( + ".group_0367": ( "RenamedIssueEventType", "RenamedIssueEventPropRenameType", ), - ".group_0366": ("ReviewRequestedIssueEventType",), - ".group_0367": ("ReviewRequestRemovedIssueEventType",), - ".group_0368": ( + ".group_0368": ("ReviewRequestedIssueEventType",), + ".group_0369": ("ReviewRequestRemovedIssueEventType",), + ".group_0370": ( "ReviewDismissedIssueEventType", "ReviewDismissedIssueEventPropDismissedReviewType", ), - ".group_0369": ("LockedIssueEventType",), - ".group_0370": ( + ".group_0371": ("LockedIssueEventType",), + ".group_0372": ( "AddedToProjectIssueEventType", "AddedToProjectIssueEventPropProjectCardType", ), - ".group_0371": ( + ".group_0373": ( "MovedColumnInProjectIssueEventType", "MovedColumnInProjectIssueEventPropProjectCardType", ), - ".group_0372": ( + ".group_0374": ( "RemovedFromProjectIssueEventType", "RemovedFromProjectIssueEventPropProjectCardType", ), - ".group_0373": ( + ".group_0375": ( "ConvertedNoteToIssueIssueEventType", "ConvertedNoteToIssueIssueEventPropProjectCardType", ), - ".group_0374": ("TimelineCommentEventType",), - ".group_0375": ("TimelineCrossReferencedEventType",), - ".group_0376": ("TimelineCrossReferencedEventPropSourceType",), - ".group_0377": ( + ".group_0376": ("TimelineCommentEventType",), + ".group_0377": ("TimelineCrossReferencedEventType",), + ".group_0378": ("TimelineCrossReferencedEventPropSourceType",), + ".group_0379": ( "TimelineCommittedEventType", "TimelineCommittedEventPropAuthorType", "TimelineCommittedEventPropCommitterType", @@ -10679,13 +10627,13 @@ "TimelineCommittedEventPropParentsItemsType", "TimelineCommittedEventPropVerificationType", ), - ".group_0378": ( + ".group_0380": ( "TimelineReviewedEventType", "TimelineReviewedEventPropLinksType", "TimelineReviewedEventPropLinksPropHtmlType", "TimelineReviewedEventPropLinksPropPullRequestType", ), - ".group_0379": ( + ".group_0381": ( "PullRequestReviewCommentType", "PullRequestReviewCommentPropLinksType", "PullRequestReviewCommentPropLinksPropSelfType", @@ -10693,162 +10641,162 @@ "PullRequestReviewCommentPropLinksPropPullRequestType", "TimelineLineCommentedEventType", ), - ".group_0380": ("TimelineAssignedIssueEventType",), - ".group_0381": ("TimelineUnassignedIssueEventType",), - ".group_0382": ("StateChangeIssueEventType",), - ".group_0383": ("DeployKeyType",), - ".group_0384": ("LanguageType",), - ".group_0385": ( + ".group_0382": ("TimelineAssignedIssueEventType",), + ".group_0383": ("TimelineUnassignedIssueEventType",), + ".group_0384": ("StateChangeIssueEventType",), + ".group_0385": ("DeployKeyType",), + ".group_0386": ("LanguageType",), + ".group_0387": ( "LicenseContentType", "LicenseContentPropLinksType", ), - ".group_0386": ("MergedUpstreamType",), - ".group_0387": ( + ".group_0388": ("MergedUpstreamType",), + ".group_0389": ( "PageType", "PagesSourceHashType", "PagesHttpsCertificateType", ), - ".group_0388": ( + ".group_0390": ( "PageBuildType", "PageBuildPropErrorType", ), - ".group_0389": ("PageBuildStatusType",), - ".group_0390": ("PageDeploymentType",), - ".group_0391": ("PagesDeploymentStatusType",), - ".group_0392": ( + ".group_0391": ("PageBuildStatusType",), + ".group_0392": ("PageDeploymentType",), + ".group_0393": ("PagesDeploymentStatusType",), + ".group_0394": ( "PagesHealthCheckType", "PagesHealthCheckPropDomainType", "PagesHealthCheckPropAltDomainType", ), - ".group_0393": ("PullRequestType",), - ".group_0394": ("PullRequestPropLabelsItemsType",), - ".group_0395": ( + ".group_0395": ("PullRequestType",), + ".group_0396": ("PullRequestPropLabelsItemsType",), + ".group_0397": ( "PullRequestPropHeadType", "PullRequestPropBaseType", ), - ".group_0396": ("PullRequestPropLinksType",), - ".group_0397": ("PullRequestMergeResultType",), - ".group_0398": ("PullRequestReviewRequestType",), - ".group_0399": ( + ".group_0398": ("PullRequestPropLinksType",), + ".group_0399": ("PullRequestMergeResultType",), + ".group_0400": ("PullRequestReviewRequestType",), + ".group_0401": ( "PullRequestReviewType", "PullRequestReviewPropLinksType", "PullRequestReviewPropLinksPropHtmlType", "PullRequestReviewPropLinksPropPullRequestType", ), - ".group_0400": ("ReviewCommentType",), - ".group_0401": ("ReviewCommentPropLinksType",), - ".group_0402": ("ReleaseAssetType",), - ".group_0403": ("ReleaseType",), - ".group_0404": ("ReleaseNotesContentType",), - ".group_0405": ("RepositoryRuleRulesetInfoType",), - ".group_0406": ("RepositoryRuleDetailedOneof0Type",), - ".group_0407": ("RepositoryRuleDetailedOneof1Type",), - ".group_0408": ("RepositoryRuleDetailedOneof2Type",), - ".group_0409": ("RepositoryRuleDetailedOneof3Type",), - ".group_0410": ("RepositoryRuleDetailedOneof4Type",), - ".group_0411": ("RepositoryRuleDetailedOneof5Type",), - ".group_0412": ("RepositoryRuleDetailedOneof6Type",), - ".group_0413": ("RepositoryRuleDetailedOneof7Type",), - ".group_0414": ("RepositoryRuleDetailedOneof8Type",), - ".group_0415": ("RepositoryRuleDetailedOneof9Type",), - ".group_0416": ("RepositoryRuleDetailedOneof10Type",), - ".group_0417": ("RepositoryRuleDetailedOneof11Type",), - ".group_0418": ("RepositoryRuleDetailedOneof12Type",), - ".group_0419": ("RepositoryRuleDetailedOneof13Type",), - ".group_0420": ("RepositoryRuleDetailedOneof14Type",), - ".group_0421": ("RepositoryRuleDetailedOneof15Type",), - ".group_0422": ("RepositoryRuleDetailedOneof16Type",), - ".group_0423": ("RepositoryRuleDetailedOneof17Type",), - ".group_0424": ("RepositoryRuleDetailedOneof18Type",), - ".group_0425": ("RepositoryRuleDetailedOneof19Type",), - ".group_0426": ("RepositoryRuleDetailedOneof20Type",), - ".group_0427": ("SecretScanningAlertType",), - ".group_0428": ("SecretScanningLocationType",), - ".group_0429": ("SecretScanningPushProtectionBypassType",), - ".group_0430": ( + ".group_0402": ("ReviewCommentType",), + ".group_0403": ("ReviewCommentPropLinksType",), + ".group_0404": ("ReleaseAssetType",), + ".group_0405": ("ReleaseType",), + ".group_0406": ("ReleaseNotesContentType",), + ".group_0407": ("RepositoryRuleRulesetInfoType",), + ".group_0408": ("RepositoryRuleDetailedOneof0Type",), + ".group_0409": ("RepositoryRuleDetailedOneof1Type",), + ".group_0410": ("RepositoryRuleDetailedOneof2Type",), + ".group_0411": ("RepositoryRuleDetailedOneof3Type",), + ".group_0412": ("RepositoryRuleDetailedOneof4Type",), + ".group_0413": ("RepositoryRuleDetailedOneof5Type",), + ".group_0414": ("RepositoryRuleDetailedOneof6Type",), + ".group_0415": ("RepositoryRuleDetailedOneof7Type",), + ".group_0416": ("RepositoryRuleDetailedOneof8Type",), + ".group_0417": ("RepositoryRuleDetailedOneof9Type",), + ".group_0418": ("RepositoryRuleDetailedOneof10Type",), + ".group_0419": ("RepositoryRuleDetailedOneof11Type",), + ".group_0420": ("RepositoryRuleDetailedOneof12Type",), + ".group_0421": ("RepositoryRuleDetailedOneof13Type",), + ".group_0422": ("RepositoryRuleDetailedOneof14Type",), + ".group_0423": ("RepositoryRuleDetailedOneof15Type",), + ".group_0424": ("RepositoryRuleDetailedOneof16Type",), + ".group_0425": ("RepositoryRuleDetailedOneof17Type",), + ".group_0426": ("RepositoryRuleDetailedOneof18Type",), + ".group_0427": ("RepositoryRuleDetailedOneof19Type",), + ".group_0428": ("RepositoryRuleDetailedOneof20Type",), + ".group_0429": ("SecretScanningAlertType",), + ".group_0430": ("SecretScanningLocationType",), + ".group_0431": ("SecretScanningPushProtectionBypassType",), + ".group_0432": ( "SecretScanningScanHistoryType", "SecretScanningScanType", "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", ), - ".group_0431": ( + ".group_0433": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type", ), - ".group_0432": ( + ".group_0434": ( "RepositoryAdvisoryCreateType", "RepositoryAdvisoryCreatePropCreditsItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0433": ( + ".group_0435": ( "PrivateVulnerabilityReportCreateType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0434": ( + ".group_0436": ( "RepositoryAdvisoryUpdateType", "RepositoryAdvisoryUpdatePropCreditsItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0435": ("StargazerType",), - ".group_0436": ("CommitActivityType",), - ".group_0437": ( + ".group_0437": ("StargazerType",), + ".group_0438": ("CommitActivityType",), + ".group_0439": ( "ContributorActivityType", "ContributorActivityPropWeeksItemsType", ), - ".group_0438": ("ParticipationStatsType",), - ".group_0439": ("RepositorySubscriptionType",), - ".group_0440": ( + ".group_0440": ("ParticipationStatsType",), + ".group_0441": ("RepositorySubscriptionType",), + ".group_0442": ( "TagType", "TagPropCommitType", ), - ".group_0441": ("TagProtectionType",), - ".group_0442": ("TopicType",), - ".group_0443": ("TrafficType",), - ".group_0444": ("CloneTrafficType",), - ".group_0445": ("ContentTrafficType",), - ".group_0446": ("ReferrerTrafficType",), - ".group_0447": ("ViewTrafficType",), - ".group_0448": ( + ".group_0443": ("TagProtectionType",), + ".group_0444": ("TopicType",), + ".group_0445": ("TrafficType",), + ".group_0446": ("CloneTrafficType",), + ".group_0447": ("ContentTrafficType",), + ".group_0448": ("ReferrerTrafficType",), + ".group_0449": ("ViewTrafficType",), + ".group_0450": ( "GroupResponseType", "GroupResponsePropMembersItemsType", ), - ".group_0449": ("MetaType",), - ".group_0450": ( + ".group_0451": ("MetaType",), + ".group_0452": ( "ScimEnterpriseGroupResponseType", "ScimEnterpriseGroupResponseMergedMembersType", "ScimEnterpriseGroupListType", ), - ".group_0451": ( + ".group_0453": ( "ScimEnterpriseGroupResponseAllof1Type", "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", ), - ".group_0452": ( + ".group_0454": ( "GroupType", "GroupPropMembersItemsType", ), - ".group_0453": ( + ".group_0455": ( "PatchSchemaType", "PatchSchemaPropOperationsItemsType", ), - ".group_0454": ( + ".group_0456": ( "UserNameResponseType", "UserEmailsResponseItemsType", ), - ".group_0455": ("UserRoleItemsType",), - ".group_0456": ("UserResponseType",), - ".group_0457": ( + ".group_0457": ("UserRoleItemsType",), + ".group_0458": ("UserResponseType",), + ".group_0459": ( "ScimEnterpriseUserResponseType", "ScimEnterpriseUserListType", ), - ".group_0458": ("ScimEnterpriseUserResponseAllof1Type",), - ".group_0459": ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",), - ".group_0460": ( + ".group_0460": ("ScimEnterpriseUserResponseAllof1Type",), + ".group_0461": ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",), + ".group_0462": ( "UserType", "UserNameType", "UserEmailsItemsType", ), - ".group_0461": ( + ".group_0463": ( "ScimUserListType", "ScimUserType", "ScimUserPropNameType", @@ -10859,41 +10807,40 @@ "ScimUserPropOperationsItemsType", "ScimUserPropOperationsItemsPropValueOneof1Type", ), - ".group_0462": ( + ".group_0464": ( "SearchResultTextMatchesItemsType", "SearchResultTextMatchesItemsPropMatchesItemsType", ), - ".group_0463": ( + ".group_0465": ( "CodeSearchResultItemType", "SearchCodeGetResponse200Type", ), - ".group_0464": ( + ".group_0466": ( "CommitSearchResultItemType", "CommitSearchResultItemPropParentsItemsType", "SearchCommitsGetResponse200Type", ), - ".group_0465": ( + ".group_0467": ( "CommitSearchResultItemPropCommitType", "CommitSearchResultItemPropCommitPropAuthorType", "CommitSearchResultItemPropCommitPropTreeType", ), - ".group_0466": ( + ".group_0468": ( "IssueSearchResultItemType", "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropSubIssuesSummaryType", "IssueSearchResultItemPropPullRequestType", "SearchIssuesGetResponse200Type", ), - ".group_0467": ( + ".group_0469": ( "LabelSearchResultItemType", "SearchLabelsGetResponse200Type", ), - ".group_0468": ( + ".group_0470": ( "RepoSearchResultItemType", "RepoSearchResultItemPropPermissionsType", "SearchRepositoriesGetResponse200Type", ), - ".group_0469": ( + ".group_0471": ( "TopicSearchResultItemType", "TopicSearchResultItemPropRelatedItemsType", "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", @@ -10901,49 +10848,49 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", "SearchTopicsGetResponse200Type", ), - ".group_0470": ( + ".group_0472": ( "UserSearchResultItemType", "SearchUsersGetResponse200Type", ), - ".group_0471": ( + ".group_0473": ( "PrivateUserType", "PrivateUserPropPlanType", ), - ".group_0472": ("CodespacesUserPublicKeyType",), - ".group_0473": ("CodespaceExportDetailsType",), - ".group_0474": ( + ".group_0474": ("CodespacesUserPublicKeyType",), + ".group_0475": ("CodespaceExportDetailsType",), + ".group_0476": ( "CodespaceWithFullRepositoryType", "CodespaceWithFullRepositoryPropGitStatusType", "CodespaceWithFullRepositoryPropRuntimeConstraintsType", ), - ".group_0475": ("EmailType",), - ".group_0476": ( + ".group_0477": ("EmailType",), + ".group_0478": ( "GpgKeyType", "GpgKeyPropEmailsItemsType", "GpgKeyPropSubkeysItemsType", "GpgKeyPropSubkeysItemsPropEmailsItemsType", ), - ".group_0477": ("KeyType",), - ".group_0478": ( + ".group_0479": ("KeyType",), + ".group_0480": ( "UserMarketplacePurchaseType", "MarketplaceAccountType", ), - ".group_0479": ("SocialAccountType",), - ".group_0480": ("SshSigningKeyType",), - ".group_0481": ("StarredRepositoryType",), - ".group_0482": ( + ".group_0481": ("SocialAccountType",), + ".group_0482": ("SshSigningKeyType",), + ".group_0483": ("StarredRepositoryType",), + ".group_0484": ( "HovercardType", "HovercardPropContextsItemsType", ), - ".group_0483": ("KeySimpleType",), - ".group_0484": ( + ".group_0485": ("KeySimpleType",), + ".group_0486": ( "BillingUsageReportUserType", "BillingUsageReportUserPropUsageItemsItemsType", ), - ".group_0485": ("EnterpriseWebhooksType",), - ".group_0486": ("SimpleInstallationType",), - ".group_0487": ("OrganizationSimpleWebhooksType",), - ".group_0488": ( + ".group_0487": ("EnterpriseWebhooksType",), + ".group_0488": ("SimpleInstallationType",), + ".group_0489": ("OrganizationSimpleWebhooksType",), + ".group_0490": ( "RepositoryWebhooksType", "RepositoryWebhooksPropPermissionsType", "RepositoryWebhooksPropCustomPropertiesType", @@ -10951,9 +10898,9 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), - ".group_0489": ("WebhooksRuleType",), - ".group_0490": ("ExemptionResponseType",), - ".group_0491": ( + ".group_0491": ("WebhooksRuleType",), + ".group_0492": ("ExemptionResponseType",), + ".group_0493": ( "ExemptionRequestType", "ExemptionRequestSecretScanningMetadataType", "DismissalRequestSecretScanningMetadataType", @@ -10968,26 +10915,26 @@ "ExemptionRequestSecretScanningPropDataItemsType", "ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType", ), - ".group_0492": ("SimpleCheckSuiteType",), - ".group_0493": ( + ".group_0494": ("SimpleCheckSuiteType",), + ".group_0495": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0494": ("WebhooksDeployKeyType",), - ".group_0495": ("WebhooksWorkflowType",), - ".group_0496": ( + ".group_0496": ("WebhooksDeployKeyType",), + ".group_0497": ("WebhooksWorkflowType",), + ".group_0498": ( "WebhooksApproverType", "WebhooksReviewersItemsType", "WebhooksReviewersItemsPropReviewerType", ), - ".group_0497": ("WebhooksWorkflowJobRunType",), - ".group_0498": ("WebhooksUserType",), - ".group_0499": ( + ".group_0499": ("WebhooksWorkflowJobRunType",), + ".group_0500": ("WebhooksUserType",), + ".group_0501": ( "WebhooksAnswerType", "WebhooksAnswerPropReactionsType", "WebhooksAnswerPropUserType", ), - ".group_0500": ( + ".group_0502": ( "DiscussionType", "LabelType", "DiscussionPropAnswerChosenByType", @@ -10995,24 +10942,24 @@ "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0501": ( + ".group_0503": ( "WebhooksCommentType", "WebhooksCommentPropReactionsType", "WebhooksCommentPropUserType", ), - ".group_0502": ("WebhooksLabelType",), - ".group_0503": ("WebhooksRepositoriesItemsType",), - ".group_0504": ("WebhooksRepositoriesAddedItemsType",), - ".group_0505": ( + ".group_0504": ("WebhooksLabelType",), + ".group_0505": ("WebhooksRepositoriesItemsType",), + ".group_0506": ("WebhooksRepositoriesAddedItemsType",), + ".group_0507": ( "WebhooksIssueCommentType", "WebhooksIssueCommentPropReactionsType", "WebhooksIssueCommentPropUserType", ), - ".group_0506": ( + ".group_0508": ( "WebhooksChangesType", "WebhooksChangesPropBodyType", ), - ".group_0507": ( + ".group_0509": ( "WebhooksIssueType", "WebhooksIssuePropAssigneeType", "WebhooksIssuePropAssigneesItemsType", @@ -11024,14 +10971,13 @@ "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", "WebhooksIssuePropPullRequestType", "WebhooksIssuePropReactionsType", - "WebhooksIssuePropSubIssuesSummaryType", "WebhooksIssuePropUserType", ), - ".group_0508": ( + ".group_0510": ( "WebhooksMilestoneType", "WebhooksMilestonePropCreatorType", ), - ".group_0509": ( + ".group_0511": ( "WebhooksIssue2Type", "WebhooksIssue2PropAssigneeType", "WebhooksIssue2PropAssigneesItemsType", @@ -11043,34 +10989,33 @@ "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", "WebhooksIssue2PropPullRequestType", "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropSubIssuesSummaryType", "WebhooksIssue2PropUserType", ), - ".group_0510": ("WebhooksUserMannequinType",), - ".group_0511": ( + ".group_0512": ("WebhooksUserMannequinType",), + ".group_0513": ( "WebhooksMarketplacePurchaseType", "WebhooksMarketplacePurchasePropAccountType", "WebhooksMarketplacePurchasePropPlanType", ), - ".group_0512": ( + ".group_0514": ( "WebhooksPreviousMarketplacePurchaseType", "WebhooksPreviousMarketplacePurchasePropAccountType", "WebhooksPreviousMarketplacePurchasePropPlanType", ), - ".group_0513": ( + ".group_0515": ( "WebhooksTeamType", "WebhooksTeamPropParentType", ), - ".group_0514": ("MergeGroupType",), - ".group_0515": ( + ".group_0516": ("MergeGroupType",), + ".group_0517": ( "WebhooksMilestone3Type", "WebhooksMilestone3PropCreatorType", ), - ".group_0516": ( + ".group_0518": ( "WebhooksMembershipType", "WebhooksMembershipPropUserType", ), - ".group_0517": ( + ".group_0519": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -11086,25 +11031,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0518": ( + ".group_0520": ( "WebhooksProjectCardType", "WebhooksProjectCardPropCreatorType", ), - ".group_0519": ( + ".group_0521": ( "WebhooksProjectType", "WebhooksProjectPropCreatorType", ), - ".group_0520": ("WebhooksProjectColumnType",), - ".group_0521": ("ProjectsV2Type",), - ".group_0522": ( + ".group_0522": ("WebhooksProjectColumnType",), + ".group_0523": ("ProjectsV2Type",), + ".group_0524": ( "WebhooksProjectChangesType", "WebhooksProjectChangesPropArchivedAtType", ), - ".group_0523": ("ProjectsV2ItemType",), - ".group_0524": ("ProjectsV2StatusUpdateType",), - ".group_0525": ("PullRequestWebhookType",), - ".group_0526": ("PullRequestWebhookAllof1Type",), - ".group_0527": ( + ".group_0525": ("ProjectsV2ItemType",), + ".group_0526": ("ProjectsV2StatusUpdateType",), + ".group_0527": ("PullRequestWebhookType",), + ".group_0528": ("PullRequestWebhookAllof1Type",), + ".group_0529": ( "WebhooksPullRequest5Type", "WebhooksPullRequest5PropAssigneeType", "WebhooksPullRequest5PropAssigneesItemsType", @@ -11142,7 +11087,7 @@ "WebhooksPullRequest5PropRequestedTeamsItemsType", "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", ), - ".group_0528": ( + ".group_0530": ( "WebhooksReviewCommentType", "WebhooksReviewCommentPropReactionsType", "WebhooksReviewCommentPropUserType", @@ -11151,33 +11096,33 @@ "WebhooksReviewCommentPropLinksPropPullRequestType", "WebhooksReviewCommentPropLinksPropSelfType", ), - ".group_0529": ( + ".group_0531": ( "WebhooksReviewType", "WebhooksReviewPropUserType", "WebhooksReviewPropLinksType", "WebhooksReviewPropLinksPropHtmlType", "WebhooksReviewPropLinksPropPullRequestType", ), - ".group_0530": ( + ".group_0532": ( "WebhooksReleaseType", "WebhooksReleasePropAuthorType", "WebhooksReleasePropReactionsType", "WebhooksReleasePropAssetsItemsType", "WebhooksReleasePropAssetsItemsPropUploaderType", ), - ".group_0531": ( + ".group_0533": ( "WebhooksRelease1Type", "WebhooksRelease1PropAssetsItemsType", "WebhooksRelease1PropAssetsItemsPropUploaderType", "WebhooksRelease1PropAuthorType", "WebhooksRelease1PropReactionsType", ), - ".group_0532": ( + ".group_0534": ( "WebhooksAlertType", "WebhooksAlertPropDismisserType", ), - ".group_0533": ("SecretScanningAlertWebhookType",), - ".group_0534": ( + ".group_0535": ("SecretScanningAlertWebhookType",), + ".group_0536": ( "WebhooksSecurityAdvisoryType", "WebhooksSecurityAdvisoryPropCvssType", "WebhooksSecurityAdvisoryPropCwesItemsType", @@ -11187,27 +11132,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0535": ( + ".group_0537": ( "WebhooksSponsorshipType", "WebhooksSponsorshipPropMaintainerType", "WebhooksSponsorshipPropSponsorType", "WebhooksSponsorshipPropSponsorableType", "WebhooksSponsorshipPropTierType", ), - ".group_0536": ( + ".group_0538": ( "WebhooksChanges8Type", "WebhooksChanges8PropTierType", "WebhooksChanges8PropTierPropFromType", ), - ".group_0537": ( + ".group_0539": ( "WebhooksTeam1Type", "WebhooksTeam1PropParentType", ), - ".group_0538": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0539": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0540": ("WebhookBranchProtectionRuleCreatedType",), - ".group_0541": ("WebhookBranchProtectionRuleDeletedType",), - ".group_0542": ( + ".group_0540": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0541": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0542": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0543": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0544": ( "WebhookBranchProtectionRuleEditedType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", @@ -11222,23 +11167,23 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0543": ("WebhookExemptionRequestCancelledType",), - ".group_0544": ("WebhookExemptionRequestCompletedType",), - ".group_0545": ("WebhookExemptionRequestCreatedType",), - ".group_0546": ("WebhookExemptionRequestResponseDismissedType",), - ".group_0547": ("WebhookExemptionRequestResponseSubmittedType",), - ".group_0548": ("WebhookCheckRunCompletedType",), - ".group_0549": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0550": ("WebhookCheckRunCreatedType",), - ".group_0551": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0552": ( + ".group_0545": ("WebhookExemptionRequestCancelledType",), + ".group_0546": ("WebhookExemptionRequestCompletedType",), + ".group_0547": ("WebhookExemptionRequestCreatedType",), + ".group_0548": ("WebhookExemptionRequestResponseDismissedType",), + ".group_0549": ("WebhookExemptionRequestResponseSubmittedType",), + ".group_0550": ("WebhookCheckRunCompletedType",), + ".group_0551": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0552": ("WebhookCheckRunCreatedType",), + ".group_0553": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0554": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0553": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0554": ("WebhookCheckRunRerequestedType",), - ".group_0555": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0556": ( + ".group_0555": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0556": ("WebhookCheckRunRerequestedType",), + ".group_0557": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0558": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -11253,7 +11198,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0557": ( + ".group_0559": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -11268,7 +11213,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0558": ( + ".group_0560": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -11283,7 +11228,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0559": ( + ".group_0561": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -11293,7 +11238,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0560": ( + ".group_0562": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -11304,7 +11249,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", ), - ".group_0561": ( + ".group_0563": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -11313,7 +11258,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0562": ( + ".group_0564": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -11323,7 +11268,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0563": ( + ".group_0565": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -11333,7 +11278,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0564": ( + ".group_0566": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -11342,32 +11287,32 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0565": ( + ".group_0567": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0566": ("WebhookCreateType",), - ".group_0567": ("WebhookCustomPropertyCreatedType",), - ".group_0568": ( + ".group_0568": ("WebhookCreateType",), + ".group_0569": ("WebhookCustomPropertyCreatedType",), + ".group_0570": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0569": ("WebhookCustomPropertyPromotedToEnterpriseType",), - ".group_0570": ("WebhookCustomPropertyUpdatedType",), - ".group_0571": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0572": ("WebhookDeleteType",), - ".group_0573": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0574": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0575": ("WebhookDependabotAlertCreatedType",), - ".group_0576": ("WebhookDependabotAlertDismissedType",), - ".group_0577": ("WebhookDependabotAlertFixedType",), - ".group_0578": ("WebhookDependabotAlertReintroducedType",), - ".group_0579": ("WebhookDependabotAlertReopenedType",), - ".group_0580": ("WebhookDeployKeyCreatedType",), - ".group_0581": ("WebhookDeployKeyDeletedType",), - ".group_0582": ( + ".group_0571": ("WebhookCustomPropertyPromotedToEnterpriseType",), + ".group_0572": ("WebhookCustomPropertyUpdatedType",), + ".group_0573": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0574": ("WebhookDeleteType",), + ".group_0575": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0576": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0577": ("WebhookDependabotAlertCreatedType",), + ".group_0578": ("WebhookDependabotAlertDismissedType",), + ".group_0579": ("WebhookDependabotAlertFixedType",), + ".group_0580": ("WebhookDependabotAlertReintroducedType",), + ".group_0581": ("WebhookDependabotAlertReopenedType",), + ".group_0582": ("WebhookDeployKeyCreatedType",), + ".group_0583": ("WebhookDeployKeyDeletedType",), + ".group_0584": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropDeploymentType", "WebhookDeploymentCreatedPropDeploymentPropCreatorType", @@ -11389,8 +11334,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0583": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0584": ( + ".group_0585": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0586": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewApprovedPropWorkflowRunType", @@ -11408,7 +11353,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0585": ( + ".group_0587": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewRejectedPropWorkflowRunType", @@ -11426,7 +11371,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0586": ( + ".group_0588": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", "WebhookDeploymentReviewRequestedPropReviewersItemsType", @@ -11446,7 +11391,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0587": ( + ".group_0589": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropDeploymentType", @@ -11474,119 +11419,116 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0588": ("WebhookDiscussionAnsweredType",), - ".group_0589": ( + ".group_0590": ("WebhookDiscussionAnsweredType",), + ".group_0591": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0590": ("WebhookDiscussionClosedType",), - ".group_0591": ("WebhookDiscussionCommentCreatedType",), - ".group_0592": ("WebhookDiscussionCommentDeletedType",), - ".group_0593": ( + ".group_0592": ("WebhookDiscussionClosedType",), + ".group_0593": ("WebhookDiscussionCommentCreatedType",), + ".group_0594": ("WebhookDiscussionCommentDeletedType",), + ".group_0595": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", ), - ".group_0594": ("WebhookDiscussionCreatedType",), - ".group_0595": ("WebhookDiscussionDeletedType",), - ".group_0596": ( + ".group_0596": ("WebhookDiscussionCreatedType",), + ".group_0597": ("WebhookDiscussionDeletedType",), + ".group_0598": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0597": ("WebhookDiscussionLabeledType",), - ".group_0598": ("WebhookDiscussionLockedType",), - ".group_0599": ("WebhookDiscussionPinnedType",), - ".group_0600": ("WebhookDiscussionReopenedType",), - ".group_0601": ("WebhookDiscussionTransferredType",), - ".group_0602": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0603": ("WebhookDiscussionUnansweredType",), - ".group_0604": ("WebhookDiscussionUnlabeledType",), - ".group_0605": ("WebhookDiscussionUnlockedType",), - ".group_0606": ("WebhookDiscussionUnpinnedType",), - ".group_0607": ("WebhookForkType",), - ".group_0608": ( + ".group_0599": ("WebhookDiscussionLabeledType",), + ".group_0600": ("WebhookDiscussionLockedType",), + ".group_0601": ("WebhookDiscussionPinnedType",), + ".group_0602": ("WebhookDiscussionReopenedType",), + ".group_0603": ("WebhookDiscussionTransferredType",), + ".group_0604": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0605": ("WebhookDiscussionUnansweredType",), + ".group_0606": ("WebhookDiscussionUnlabeledType",), + ".group_0607": ("WebhookDiscussionUnlockedType",), + ".group_0608": ("WebhookDiscussionUnpinnedType",), + ".group_0609": ("WebhookForkType",), + ".group_0610": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0609": ( + ".group_0611": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0610": ("WebhookForkPropForkeeAllof0PropPermissionsType",), - ".group_0611": ( + ".group_0612": ("WebhookForkPropForkeeAllof0PropPermissionsType",), + ".group_0613": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0612": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0613": ( + ".group_0614": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0615": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0614": ("WebhookInstallationCreatedType",), - ".group_0615": ("WebhookInstallationDeletedType",), - ".group_0616": ("WebhookInstallationNewPermissionsAcceptedType",), - ".group_0617": ( + ".group_0616": ("WebhookInstallationCreatedType",), + ".group_0617": ("WebhookInstallationDeletedType",), + ".group_0618": ("WebhookInstallationNewPermissionsAcceptedType",), + ".group_0619": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", ), - ".group_0618": ( + ".group_0620": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ), - ".group_0619": ("WebhookInstallationSuspendType",), - ".group_0620": ( + ".group_0621": ("WebhookInstallationSuspendType",), + ".group_0622": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0621": ("WebhookInstallationUnsuspendType",), - ".group_0622": ("WebhookIssueCommentCreatedType",), - ".group_0623": ( + ".group_0623": ("WebhookInstallationUnsuspendType",), + ".group_0624": ("WebhookIssueCommentCreatedType",), + ".group_0625": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0624": ( + ".group_0626": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0625": ( + ".group_0627": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0626": ( + ".group_0628": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0627": ( + ".group_0629": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0628": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0629": ( + ".group_0630": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0631": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0630": ( + ".group_0632": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0631": ( - "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType", - ), - ".group_0632": ( + ".group_0633": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -11596,41 +11538,38 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0633": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0634": ( + ".group_0634": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0635": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0635": ("WebhookIssueCommentDeletedType",), - ".group_0636": ( + ".group_0636": ("WebhookIssueCommentDeletedType",), + ".group_0637": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0637": ( + ".group_0638": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0638": ( + ".group_0639": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0639": ( + ".group_0640": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0640": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0641": ( + ".group_0641": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0642": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0642": ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", - ), ".group_0643": ( - "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), ".group_0644": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", @@ -11676,9 +11615,6 @@ "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), ".group_0655": ( - "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType", - ), - ".group_0656": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -11688,13 +11624,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0657": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0658": ( + ".group_0656": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0657": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0659": ("WebhookIssuesAssignedType",), - ".group_0660": ("WebhookIssuesClosedType",), - ".group_0661": ( + ".group_0658": ("WebhookIssuesAssignedType",), + ".group_0659": ("WebhookIssuesClosedType",), + ".group_0660": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -11702,7 +11638,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0662": ( + ".group_0661": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -11710,22 +11646,19 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0663": ( + ".group_0662": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0664": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0665": ( + ".group_0663": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0664": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0666": ( + ".group_0665": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), + ".group_0666": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), ".group_0667": ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", - ), - ".group_0668": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -11735,10 +11668,10 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0669": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0670": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0671": ("WebhookIssuesDeletedType",), - ".group_0672": ( + ".group_0668": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0669": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0670": ("WebhookIssuesDeletedType",), + ".group_0671": ( "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", @@ -11750,11 +11683,10 @@ "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesDeletedPropIssuePropPullRequestType", "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0673": ("WebhookIssuesDemilestonedType",), - ".group_0674": ( + ".group_0672": ("WebhookIssuesDemilestonedType",), + ".group_0673": ( "WebhookIssuesDemilestonedPropIssueType", "WebhookIssuesDemilestonedPropIssuePropAssigneeType", "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", @@ -11766,16 +11698,15 @@ "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesDemilestonedPropIssuePropPullRequestType", "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDemilestonedPropIssuePropUserType", ), - ".group_0675": ( + ".group_0674": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropChangesType", "WebhookIssuesEditedPropChangesPropBodyType", "WebhookIssuesEditedPropChangesPropTitleType", ), - ".group_0676": ( + ".group_0675": ( "WebhookIssuesEditedPropIssueType", "WebhookIssuesEditedPropIssuePropAssigneeType", "WebhookIssuesEditedPropIssuePropAssigneesItemsType", @@ -11787,11 +11718,10 @@ "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesEditedPropIssuePropPullRequestType", "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0677": ("WebhookIssuesLabeledType",), - ".group_0678": ( + ".group_0676": ("WebhookIssuesLabeledType",), + ".group_0677": ( "WebhookIssuesLabeledPropIssueType", "WebhookIssuesLabeledPropIssuePropAssigneeType", "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", @@ -11803,11 +11733,10 @@ "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesLabeledPropIssuePropPullRequestType", "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0679": ("WebhookIssuesLockedType",), - ".group_0680": ( + ".group_0678": ("WebhookIssuesLockedType",), + ".group_0679": ( "WebhookIssuesLockedPropIssueType", "WebhookIssuesLockedPropIssuePropAssigneeType", "WebhookIssuesLockedPropIssuePropAssigneesItemsType", @@ -11819,11 +11748,10 @@ "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesLockedPropIssuePropPullRequestType", "WebhookIssuesLockedPropIssuePropReactionsType", - "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0681": ("WebhookIssuesMilestonedType",), - ".group_0682": ( + ".group_0680": ("WebhookIssuesMilestonedType",), + ".group_0681": ( "WebhookIssuesMilestonedPropIssueType", "WebhookIssuesMilestonedPropIssuePropAssigneeType", "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", @@ -11835,11 +11763,10 @@ "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesMilestonedPropIssuePropPullRequestType", "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesMilestonedPropIssuePropUserType", ), - ".group_0683": ("WebhookIssuesOpenedType",), - ".group_0684": ( + ".group_0682": ("WebhookIssuesOpenedType",), + ".group_0683": ( "WebhookIssuesOpenedPropChangesType", "WebhookIssuesOpenedPropChangesPropOldRepositoryType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", @@ -11847,7 +11774,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0685": ( + ".group_0684": ( "WebhookIssuesOpenedPropChangesPropOldIssueType", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", @@ -11859,10 +11786,9 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", ), - ".group_0686": ( + ".group_0685": ( "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", @@ -11874,12 +11800,11 @@ "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesOpenedPropIssuePropPullRequestType", "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropIssuePropUserType", ), - ".group_0687": ("WebhookIssuesPinnedType",), - ".group_0688": ("WebhookIssuesReopenedType",), - ".group_0689": ( + ".group_0686": ("WebhookIssuesPinnedType",), + ".group_0687": ("WebhookIssuesReopenedType",), + ".group_0688": ( "WebhookIssuesReopenedPropIssueType", "WebhookIssuesReopenedPropIssuePropAssigneeType", "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", @@ -11891,11 +11816,10 @@ "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesReopenedPropIssuePropPullRequestType", "WebhookIssuesReopenedPropIssuePropReactionsType", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0690": ("WebhookIssuesTransferredType",), - ".group_0691": ( + ".group_0689": ("WebhookIssuesTransferredType",), + ".group_0690": ( "WebhookIssuesTransferredPropChangesType", "WebhookIssuesTransferredPropChangesPropNewRepositoryType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", @@ -11903,7 +11827,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0692": ( + ".group_0691": ( "WebhookIssuesTransferredPropChangesPropNewIssueType", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", @@ -11915,14 +11839,13 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", ), - ".group_0693": ("WebhookIssuesTypedType",), - ".group_0694": ("WebhookIssuesUnassignedType",), - ".group_0695": ("WebhookIssuesUnlabeledType",), - ".group_0696": ("WebhookIssuesUnlockedType",), - ".group_0697": ( + ".group_0692": ("WebhookIssuesTypedType",), + ".group_0693": ("WebhookIssuesUnassignedType",), + ".group_0694": ("WebhookIssuesUnlabeledType",), + ".group_0695": ("WebhookIssuesUnlockedType",), + ".group_0696": ( "WebhookIssuesUnlockedPropIssueType", "WebhookIssuesUnlockedPropIssuePropAssigneeType", "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", @@ -11934,107 +11857,106 @@ "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesUnlockedPropIssuePropPullRequestType", "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0698": ("WebhookIssuesUnpinnedType",), - ".group_0699": ("WebhookIssuesUntypedType",), - ".group_0700": ("WebhookLabelCreatedType",), - ".group_0701": ("WebhookLabelDeletedType",), - ".group_0702": ( + ".group_0697": ("WebhookIssuesUnpinnedType",), + ".group_0698": ("WebhookIssuesUntypedType",), + ".group_0699": ("WebhookLabelCreatedType",), + ".group_0700": ("WebhookLabelDeletedType",), + ".group_0701": ( "WebhookLabelEditedType", "WebhookLabelEditedPropChangesType", "WebhookLabelEditedPropChangesPropColorType", "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0703": ("WebhookMarketplacePurchaseCancelledType",), - ".group_0704": ( + ".group_0702": ("WebhookMarketplacePurchaseCancelledType",), + ".group_0703": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0705": ( + ".group_0704": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0706": ( + ".group_0705": ( "WebhookMarketplacePurchasePendingChangeCancelledType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ), - ".group_0707": ("WebhookMarketplacePurchasePurchasedType",), - ".group_0708": ( + ".group_0706": ("WebhookMarketplacePurchasePurchasedType",), + ".group_0707": ( "WebhookMemberAddedType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0709": ( + ".group_0708": ( "WebhookMemberEditedType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0710": ("WebhookMemberRemovedType",), - ".group_0711": ( + ".group_0709": ("WebhookMemberRemovedType",), + ".group_0710": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropSenderType", ), - ".group_0712": ( + ".group_0711": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropSenderType", ), - ".group_0713": ("WebhookMergeGroupChecksRequestedType",), - ".group_0714": ("WebhookMergeGroupDestroyedType",), - ".group_0715": ( + ".group_0712": ("WebhookMergeGroupChecksRequestedType",), + ".group_0713": ("WebhookMergeGroupDestroyedType",), + ".group_0714": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0716": ("WebhookMilestoneClosedType",), - ".group_0717": ("WebhookMilestoneCreatedType",), - ".group_0718": ("WebhookMilestoneDeletedType",), - ".group_0719": ( + ".group_0715": ("WebhookMilestoneClosedType",), + ".group_0716": ("WebhookMilestoneCreatedType",), + ".group_0717": ("WebhookMilestoneDeletedType",), + ".group_0718": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", "WebhookMilestoneEditedPropChangesPropDueOnType", "WebhookMilestoneEditedPropChangesPropTitleType", ), - ".group_0720": ("WebhookMilestoneOpenedType",), - ".group_0721": ("WebhookOrgBlockBlockedType",), - ".group_0722": ("WebhookOrgBlockUnblockedType",), - ".group_0723": ("WebhookOrganizationDeletedType",), - ".group_0724": ("WebhookOrganizationMemberAddedType",), - ".group_0725": ( + ".group_0719": ("WebhookMilestoneOpenedType",), + ".group_0720": ("WebhookOrgBlockBlockedType",), + ".group_0721": ("WebhookOrgBlockUnblockedType",), + ".group_0722": ("WebhookOrganizationDeletedType",), + ".group_0723": ("WebhookOrganizationMemberAddedType",), + ".group_0724": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0726": ("WebhookOrganizationMemberRemovedType",), - ".group_0727": ( + ".group_0725": ("WebhookOrganizationMemberRemovedType",), + ".group_0726": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", ), - ".group_0728": ( + ".group_0727": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0729": ("WebhookPackagePublishedType",), - ".group_0730": ( + ".group_0728": ("WebhookPackagePublishedType",), + ".group_0729": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0731": ( + ".group_0730": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -12066,13 +11988,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0732": ("WebhookPackageUpdatedType",), - ".group_0733": ( + ".group_0731": ("WebhookPackageUpdatedType",), + ".group_0732": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0734": ( + ".group_0733": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -12081,75 +12003,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0735": ( + ".group_0734": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0736": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0737": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0738": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0739": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0740": ("WebhookPingType",), - ".group_0741": ( + ".group_0735": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0736": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0737": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0738": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0739": ("WebhookPingType",), + ".group_0740": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0742": ("WebhookPingFormEncodedType",), - ".group_0743": ( + ".group_0741": ("WebhookPingFormEncodedType",), + ".group_0742": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", ), - ".group_0744": ("WebhookProjectCardCreatedType",), - ".group_0745": ( + ".group_0743": ("WebhookProjectCardCreatedType",), + ".group_0744": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0746": ( + ".group_0745": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", ), - ".group_0747": ( + ".group_0746": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0748": ( + ".group_0747": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0749": ( + ".group_0748": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0750": ("WebhookProjectClosedType",), - ".group_0751": ("WebhookProjectColumnCreatedType",), - ".group_0752": ("WebhookProjectColumnDeletedType",), - ".group_0753": ( + ".group_0749": ("WebhookProjectClosedType",), + ".group_0750": ("WebhookProjectColumnCreatedType",), + ".group_0751": ("WebhookProjectColumnDeletedType",), + ".group_0752": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0754": ("WebhookProjectColumnMovedType",), - ".group_0755": ("WebhookProjectCreatedType",), - ".group_0756": ("WebhookProjectDeletedType",), - ".group_0757": ( + ".group_0753": ("WebhookProjectColumnMovedType",), + ".group_0754": ("WebhookProjectCreatedType",), + ".group_0755": ("WebhookProjectDeletedType",), + ".group_0756": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", "WebhookProjectEditedPropChangesPropNameType", ), - ".group_0758": ("WebhookProjectReopenedType",), - ".group_0759": ("WebhookProjectsV2ProjectClosedType",), - ".group_0760": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0761": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0762": ( + ".group_0757": ("WebhookProjectReopenedType",), + ".group_0758": ("WebhookProjectsV2ProjectClosedType",), + ".group_0759": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0760": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0761": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -12157,15 +12079,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0763": ("WebhookProjectsV2ItemArchivedType",), - ".group_0764": ( + ".group_0762": ("WebhookProjectsV2ItemArchivedType",), + ".group_0763": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0765": ("WebhookProjectsV2ItemCreatedType",), - ".group_0766": ("WebhookProjectsV2ItemDeletedType",), - ".group_0767": ( + ".group_0764": ("WebhookProjectsV2ItemCreatedType",), + ".group_0765": ("WebhookProjectsV2ItemDeletedType",), + ".group_0766": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", @@ -12174,16 +12096,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0768": ( + ".group_0767": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0769": ("WebhookProjectsV2ItemRestoredType",), - ".group_0770": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0771": ("WebhookProjectsV2StatusUpdateCreatedType",), - ".group_0772": ("WebhookProjectsV2StatusUpdateDeletedType",), - ".group_0773": ( + ".group_0768": ("WebhookProjectsV2ItemRestoredType",), + ".group_0769": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0770": ("WebhookProjectsV2StatusUpdateCreatedType",), + ".group_0771": ("WebhookProjectsV2StatusUpdateDeletedType",), + ".group_0772": ( "WebhookProjectsV2StatusUpdateEditedType", "WebhookProjectsV2StatusUpdateEditedPropChangesType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", @@ -12191,8 +12113,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", ), - ".group_0774": ("WebhookPublicType",), - ".group_0775": ( + ".group_0773": ("WebhookPublicType",), + ".group_0774": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropPullRequestType", "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", @@ -12231,7 +12153,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0776": ( + ".group_0775": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -12270,7 +12192,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0777": ( + ".group_0776": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -12309,10 +12231,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0778": ("WebhookPullRequestClosedType",), - ".group_0779": ("WebhookPullRequestConvertedToDraftType",), - ".group_0780": ("WebhookPullRequestDemilestonedType",), - ".group_0781": ( + ".group_0777": ("WebhookPullRequestClosedType",), + ".group_0778": ("WebhookPullRequestConvertedToDraftType",), + ".group_0779": ("WebhookPullRequestDemilestonedType",), + ".group_0780": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -12351,7 +12273,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0782": ( + ".group_0781": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -12360,7 +12282,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0783": ( + ".group_0782": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -12399,7 +12321,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0784": ( + ".group_0783": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropPullRequestType", "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", @@ -12438,7 +12360,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0785": ( + ".group_0784": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -12477,11 +12399,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0786": ("WebhookPullRequestMilestonedType",), - ".group_0787": ("WebhookPullRequestOpenedType",), - ".group_0788": ("WebhookPullRequestReadyForReviewType",), - ".group_0789": ("WebhookPullRequestReopenedType",), - ".group_0790": ( + ".group_0785": ("WebhookPullRequestMilestonedType",), + ".group_0786": ("WebhookPullRequestOpenedType",), + ".group_0787": ("WebhookPullRequestReadyForReviewType",), + ".group_0788": ("WebhookPullRequestReopenedType",), + ".group_0789": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -12526,7 +12448,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0791": ( + ".group_0790": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropPullRequestType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", @@ -12564,7 +12486,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0792": ( + ".group_0791": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropPullRequestType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", @@ -12602,7 +12524,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0793": ( + ".group_0792": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -12645,7 +12567,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0794": ( + ".group_0793": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -12685,7 +12607,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0795": ( + ".group_0794": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -12725,7 +12647,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0796": ( + ".group_0795": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -12766,7 +12688,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0797": ( + ".group_0796": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -12806,7 +12728,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0798": ( + ".group_0797": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -12847,7 +12769,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0799": ( + ".group_0798": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropPullRequestType", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", @@ -12885,7 +12807,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0800": ( + ".group_0799": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -12931,7 +12853,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0801": ( + ".group_0800": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -12977,7 +12899,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0802": ( + ".group_0801": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -13016,7 +12938,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0803": ( + ".group_0802": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropPullRequestType", "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", @@ -13055,7 +12977,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0804": ( + ".group_0803": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropPullRequestType", "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", @@ -13094,7 +13016,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0805": ( + ".group_0804": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -13133,7 +13055,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0806": ( + ".group_0805": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -13148,13 +13070,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0807": ("WebhookRegistryPackagePublishedType",), - ".group_0808": ( + ".group_0806": ("WebhookRegistryPackagePublishedType",), + ".group_0807": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0809": ( + ".group_0808": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -13185,13 +13107,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0810": ("WebhookRegistryPackageUpdatedType",), - ".group_0811": ( + ".group_0809": ("WebhookRegistryPackageUpdatedType",), + ".group_0810": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0812": ( + ".group_0811": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -13200,9 +13122,9 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0813": ("WebhookReleaseCreatedType",), - ".group_0814": ("WebhookReleaseDeletedType",), - ".group_0815": ( + ".group_0812": ("WebhookReleaseCreatedType",), + ".group_0813": ("WebhookReleaseDeletedType",), + ".group_0814": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", @@ -13210,7 +13132,7 @@ "WebhookReleaseEditedPropChangesPropTagNameType", "WebhookReleaseEditedPropChangesPropMakeLatestType", ), - ".group_0816": ( + ".group_0815": ( "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", @@ -13218,19 +13140,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthorType", "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0817": ("WebhookReleasePublishedType",), - ".group_0818": ("WebhookReleaseReleasedType",), - ".group_0819": ("WebhookReleaseUnpublishedType",), - ".group_0820": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0821": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0822": ("WebhookRepositoryArchivedType",), - ".group_0823": ("WebhookRepositoryCreatedType",), - ".group_0824": ("WebhookRepositoryDeletedType",), - ".group_0825": ( + ".group_0816": ("WebhookReleasePublishedType",), + ".group_0817": ("WebhookReleaseReleasedType",), + ".group_0818": ("WebhookReleaseUnpublishedType",), + ".group_0819": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0820": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0821": ("WebhookRepositoryArchivedType",), + ".group_0822": ("WebhookRepositoryCreatedType",), + ".group_0823": ("WebhookRepositoryDeletedType",), + ".group_0824": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0826": ( + ".group_0825": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -13238,25 +13160,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0827": ("WebhookRepositoryImportType",), - ".group_0828": ("WebhookRepositoryPrivatizedType",), - ".group_0829": ("WebhookRepositoryPublicizedType",), - ".group_0830": ( + ".group_0826": ("WebhookRepositoryImportType",), + ".group_0827": ("WebhookRepositoryPrivatizedType",), + ".group_0828": ("WebhookRepositoryPublicizedType",), + ".group_0829": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0831": ("WebhookRepositoryRulesetCreatedType",), - ".group_0832": ("WebhookRepositoryRulesetDeletedType",), - ".group_0833": ("WebhookRepositoryRulesetEditedType",), - ".group_0834": ( + ".group_0830": ("WebhookRepositoryRulesetCreatedType",), + ".group_0831": ("WebhookRepositoryRulesetDeletedType",), + ".group_0832": ("WebhookRepositoryRulesetEditedType",), + ".group_0833": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0835": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0836": ( + ".group_0834": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0835": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -13264,15 +13186,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0837": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0838": ( + ".group_0836": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0837": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0839": ( + ".group_0838": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -13280,31 +13202,31 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0840": ("WebhookRepositoryUnarchivedType",), - ".group_0841": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0842": ( + ".group_0839": ("WebhookRepositoryUnarchivedType",), + ".group_0840": ("WebhookRepositoryVulnerabilityAlertCreateType",), + ".group_0841": ( "WebhookRepositoryVulnerabilityAlertDismissType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0843": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0844": ( + ".group_0842": ("WebhookRepositoryVulnerabilityAlertReopenType",), + ".group_0843": ( "WebhookRepositoryVulnerabilityAlertResolveType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0845": ("WebhookSecretScanningAlertCreatedType",), - ".group_0846": ("WebhookSecretScanningAlertLocationCreatedType",), - ".group_0847": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0848": ("WebhookSecretScanningAlertPubliclyLeakedType",), - ".group_0849": ("WebhookSecretScanningAlertReopenedType",), - ".group_0850": ("WebhookSecretScanningAlertResolvedType",), - ".group_0851": ("WebhookSecretScanningAlertValidatedType",), - ".group_0852": ("WebhookSecretScanningScanCompletedType",), - ".group_0853": ("WebhookSecurityAdvisoryPublishedType",), - ".group_0854": ("WebhookSecurityAdvisoryUpdatedType",), - ".group_0855": ("WebhookSecurityAdvisoryWithdrawnType",), - ".group_0856": ( + ".group_0844": ("WebhookSecretScanningAlertCreatedType",), + ".group_0845": ("WebhookSecretScanningAlertLocationCreatedType",), + ".group_0846": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0847": ("WebhookSecretScanningAlertPubliclyLeakedType",), + ".group_0848": ("WebhookSecretScanningAlertReopenedType",), + ".group_0849": ("WebhookSecretScanningAlertResolvedType",), + ".group_0850": ("WebhookSecretScanningAlertValidatedType",), + ".group_0851": ("WebhookSecretScanningScanCompletedType",), + ".group_0852": ("WebhookSecurityAdvisoryPublishedType",), + ".group_0853": ("WebhookSecurityAdvisoryUpdatedType",), + ".group_0854": ("WebhookSecurityAdvisoryWithdrawnType",), + ".group_0855": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", @@ -13314,22 +13236,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0857": ("WebhookSecurityAndAnalysisType",), - ".group_0858": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0859": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0860": ("WebhookSponsorshipCancelledType",), - ".group_0861": ("WebhookSponsorshipCreatedType",), - ".group_0862": ( + ".group_0856": ("WebhookSecurityAndAnalysisType",), + ".group_0857": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0858": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0859": ("WebhookSponsorshipCancelledType",), + ".group_0860": ("WebhookSponsorshipCreatedType",), + ".group_0861": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", ), - ".group_0863": ("WebhookSponsorshipPendingCancellationType",), - ".group_0864": ("WebhookSponsorshipPendingTierChangeType",), - ".group_0865": ("WebhookSponsorshipTierChangedType",), - ".group_0866": ("WebhookStarCreatedType",), - ".group_0867": ("WebhookStarDeletedType",), - ".group_0868": ( + ".group_0862": ("WebhookSponsorshipPendingCancellationType",), + ".group_0863": ("WebhookSponsorshipPendingTierChangeType",), + ".group_0864": ("WebhookSponsorshipTierChangedType",), + ".group_0865": ("WebhookStarCreatedType",), + ".group_0866": ("WebhookStarDeletedType",), + ".group_0867": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -13343,16 +13265,16 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0869": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0870": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0871": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0872": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0873": ("WebhookSubIssuesParentIssueAddedType",), - ".group_0874": ("WebhookSubIssuesParentIssueRemovedType",), - ".group_0875": ("WebhookSubIssuesSubIssueAddedType",), - ".group_0876": ("WebhookSubIssuesSubIssueRemovedType",), - ".group_0877": ("WebhookTeamAddType",), - ".group_0878": ( + ".group_0868": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0869": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0870": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0871": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0872": ("WebhookSubIssuesParentIssueAddedType",), + ".group_0873": ("WebhookSubIssuesParentIssueRemovedType",), + ".group_0874": ("WebhookSubIssuesSubIssueAddedType",), + ".group_0875": ("WebhookSubIssuesSubIssueRemovedType",), + ".group_0876": ("WebhookTeamAddType",), + ".group_0877": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -13360,7 +13282,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ), - ".group_0879": ( + ".group_0878": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -13368,7 +13290,7 @@ "WebhookTeamCreatedPropRepositoryPropOwnerType", "WebhookTeamCreatedPropRepositoryPropPermissionsType", ), - ".group_0880": ( + ".group_0879": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -13376,7 +13298,7 @@ "WebhookTeamDeletedPropRepositoryPropOwnerType", "WebhookTeamDeletedPropRepositoryPropPermissionsType", ), - ".group_0881": ( + ".group_0880": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -13392,7 +13314,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0882": ( + ".group_0881": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -13400,48 +13322,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ), - ".group_0883": ("WebhookWatchStartedType",), - ".group_0884": ( + ".group_0882": ("WebhookWatchStartedType",), + ".group_0883": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0885": ( + ".group_0884": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0886": ( + ".group_0885": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0887": ( + ".group_0886": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0888": ( + ".group_0887": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0889": ( + ".group_0888": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0890": ( + ".group_0889": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0891": ( + ".group_0890": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0892": ( + ".group_0891": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0893": ( + ".group_0892": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowRunType", "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", @@ -13460,7 +13382,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0894": ( + ".group_0893": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowRunType", "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", @@ -13479,7 +13401,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0895": ( + ".group_0894": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowRunType", "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", @@ -13498,412 +13420,412 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0896": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0897": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0898": ("AppHookConfigPatchBodyType",), - ".group_0899": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0900": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0901": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0902": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0903": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0904": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0905": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0906": ("CredentialsRevokePostBodyType",), - ".group_0907": ("EmojisGetResponse200Type",), - ".group_0908": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",), - ".group_0909": ( + ".group_0895": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0896": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0897": ("AppHookConfigPatchBodyType",), + ".group_0898": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0899": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0900": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0901": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0902": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0903": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0904": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0905": ("CredentialsRevokePostBodyType",), + ".group_0906": ("EmojisGetResponse200Type",), + ".group_0907": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",), + ".group_0908": ( "EnterprisesEnterpriseActionsHostedRunnersPostBodyType", "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType", ), - ".group_0910": ( + ".group_0909": ( "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type", ), - ".group_0911": ( + ".group_0910": ( "EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type", ), - ".group_0912": ( + ".group_0911": ( "EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type", ), - ".group_0913": ( + ".group_0912": ( "EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type", ), - ".group_0914": ( + ".group_0913": ( "EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType", ), - ".group_0915": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), - ".group_0916": ( + ".group_0914": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), + ".group_0915": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type", ), - ".group_0917": ( + ".group_0916": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType", ), - ".group_0918": ( + ".group_0917": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", "RunnerGroupsEnterpriseType", ), - ".group_0919": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), - ".group_0920": ( + ".group_0918": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), + ".group_0919": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType", ), - ".group_0921": ( + ".group_0920": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", ), - ".group_0922": ( + ".group_0921": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", ), - ".group_0923": ( + ".group_0922": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0924": ( + ".group_0923": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType", ), - ".group_0925": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), - ".group_0926": ( + ".group_0924": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), + ".group_0925": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType", ), - ".group_0927": ( + ".group_0926": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type", ), - ".group_0928": ( + ".group_0927": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type", ), - ".group_0929": ( + ".group_0928": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType", ), - ".group_0930": ( + ".group_0929": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType", ), - ".group_0931": ( + ".group_0930": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type", ), - ".group_0932": ( + ".group_0931": ( "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBodyType", ), - ".group_0933": ( + ".group_0932": ( "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBodyType", ), - ".group_0934": ( + ".group_0933": ( "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBodyType", ), - ".group_0935": ( + ".group_0934": ( "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBodyType", ), - ".group_0936": ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",), - ".group_0937": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",), - ".group_0938": ( + ".group_0935": ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",), + ".group_0936": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",), + ".group_0937": ( "EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type", ), - ".group_0939": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), - ".group_0940": ( + ".group_0938": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), + ".group_0939": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0941": ( + ".group_0940": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0942": ( + ".group_0941": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0943": ( + ".group_0942": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0944": ( + ".group_0943": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0945": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), - ".group_0946": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",), - ".group_0947": ( + ".group_0944": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), + ".group_0945": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",), + ".group_0946": ( "EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type", ), - ".group_0948": ( + ".group_0947": ( "EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type", ), - ".group_0949": ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",), - ".group_0950": ( + ".group_0948": ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",), + ".group_0949": ( "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType", ), - ".group_0951": ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",), - ".group_0952": ("EnterprisesEnterpriseRulesetsPostBodyType",), - ".group_0953": ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",), - ".group_0954": ("EnterprisesEnterpriseSettingsBillingCostCentersPostBodyType",), - ".group_0955": ( + ".group_0950": ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",), + ".group_0951": ("EnterprisesEnterpriseRulesetsPostBodyType",), + ".group_0952": ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",), + ".group_0953": ("EnterprisesEnterpriseSettingsBillingCostCentersPostBodyType",), + ".group_0954": ( "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200Type", "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItemsType", ), - ".group_0956": ( + ".group_0955": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBodyType", ), - ".group_0957": ( + ".group_0956": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", ), - ".group_0958": ( + ".group_0957": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", ), - ".group_0959": ( + ".group_0958": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", ), - ".group_0960": ( + ".group_0959": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", ), - ".group_0961": ( + ".group_0960": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0962": ( + ".group_0961": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0963": ( + ".group_0962": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0964": ("GistsGistIdCommentsPostBodyType",), - ".group_0965": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0966": ("GistsGistIdStarGetResponse404Type",), - ".group_0967": ("InstallationRepositoriesGetResponse200Type",), - ".group_0968": ("MarkdownPostBodyType",), - ".group_0969": ("NotificationsPutBodyType",), - ".group_0970": ("NotificationsPutResponse202Type",), - ".group_0971": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0972": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), - ".group_0973": ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",), - ".group_0974": ( + ".group_0963": ("GistsGistIdCommentsPostBodyType",), + ".group_0964": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0965": ("GistsGistIdStarGetResponse404Type",), + ".group_0966": ("InstallationRepositoriesGetResponse200Type",), + ".group_0967": ("MarkdownPostBodyType",), + ".group_0968": ("NotificationsPutBodyType",), + ".group_0969": ("NotificationsPutResponse202Type",), + ".group_0970": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0971": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), + ".group_0972": ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",), + ".group_0973": ( "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType", ), - ".group_0975": ("OrgsOrgPatchBodyType",), - ".group_0976": ( + ".group_0974": ("OrgsOrgPatchBodyType",), + ".group_0975": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0977": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), - ".group_0978": ( + ".group_0976": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), + ".group_0977": ( "OrgsOrgActionsHostedRunnersPostBodyType", "OrgsOrgActionsHostedRunnersPostBodyPropImageType", ), - ".group_0979": ( + ".group_0978": ( "OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type", ), - ".group_0980": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), - ".group_0981": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), - ".group_0982": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), - ".group_0983": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), - ".group_0984": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0985": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0986": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0987": ( + ".group_0979": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), + ".group_0980": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), + ".group_0981": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), + ".group_0982": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), + ".group_0983": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0984": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0985": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0986": ( "OrgsOrgActionsRunnerGroupsGetResponse200Type", "RunnerGroupsOrgType", ), - ".group_0988": ("OrgsOrgActionsRunnerGroupsPostBodyType",), - ".group_0989": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), - ".group_0990": ( + ".group_0987": ("OrgsOrgActionsRunnerGroupsPostBodyType",), + ".group_0988": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), + ".group_0989": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type", ), - ".group_0991": ( + ".group_0990": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type", ), - ".group_0992": ( + ".group_0991": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType", ), - ".group_0993": ( + ".group_0992": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0994": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), - ".group_0995": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0996": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0997": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0998": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0999": ( + ".group_0993": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), + ".group_0994": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0995": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0996": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0997": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0998": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_1000": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_1001": ( + ".group_0999": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_1000": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1002": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_1003": ( + ".group_1001": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_1002": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_1004": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_1005": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_1006": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_1007": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_1008": ("OrgsOrgAttestationsBulkListPostBodyType",), - ".group_1009": ( + ".group_1003": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_1004": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_1005": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_1006": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_1007": ("OrgsOrgAttestationsBulkListPostBodyType",), + ".group_1008": ( "OrgsOrgAttestationsBulkListPostResponse200Type", "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", ), - ".group_1010": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type",), - ".group_1011": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type",), - ".group_1012": ( + ".group_1009": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type",), + ".group_1010": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type",), + ".group_1011": ( "OrgsOrgAttestationsSubjectDigestGetResponse200Type", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_1013": ( + ".group_1012": ( "OrgsOrgCampaignsPostBodyType", "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", ), - ".group_1014": ("OrgsOrgCampaignsCampaignNumberPatchBodyType",), - ".group_1015": ( + ".group_1013": ("OrgsOrgCampaignsCampaignNumberPatchBodyType",), + ".group_1014": ( "OrgsOrgCodeSecurityConfigurationsPostBodyType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_1016": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), - ".group_1017": ( + ".group_1015": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), + ".group_1016": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_1018": ( + ".group_1017": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_1019": ( + ".group_1018": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_1020": ( + ".group_1019": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_1021": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_1022": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_1023": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_1024": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_1025": ( + ".group_1020": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_1021": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_1022": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_1023": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_1024": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_1026": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_1027": ( + ".group_1025": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_1026": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1028": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1029": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), - ".group_1030": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_1031": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_1032": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_1033": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_1034": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_1035": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_1036": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_1037": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_1038": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), - ".group_1039": ( + ".group_1027": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1028": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), + ".group_1029": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_1030": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_1031": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_1032": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_1033": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_1034": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_1035": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_1036": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_1037": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), + ".group_1038": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_1040": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_1041": ( + ".group_1039": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_1040": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1042": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_1043": ( + ".group_1041": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_1042": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_1044": ( + ".group_1043": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_1045": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_1046": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_1047": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_1048": ("OrgsOrgInvitationsPostBodyType",), - ".group_1049": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_1050": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_1051": ("OrgsOrgMigrationsPostBodyType",), - ".group_1052": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_1053": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_1054": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_1055": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_1056": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_1057": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_1058": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_1059": ( + ".group_1044": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_1045": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_1046": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_1047": ("OrgsOrgInvitationsPostBodyType",), + ".group_1048": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_1049": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_1050": ("OrgsOrgMigrationsPostBodyType",), + ".group_1051": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_1052": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_1053": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_1054": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_1055": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_1056": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_1057": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_1058": ( "OrgsOrgPrivateRegistriesGetResponse200Type", "OrgPrivateRegistryConfigurationType", ), - ".group_1060": ("OrgsOrgPrivateRegistriesPostBodyType",), - ".group_1061": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), - ".group_1062": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), - ".group_1063": ("OrgsOrgProjectsPostBodyType",), - ".group_1064": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_1065": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_1066": ( + ".group_1059": ("OrgsOrgPrivateRegistriesPostBodyType",), + ".group_1060": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), + ".group_1061": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), + ".group_1062": ("OrgsOrgProjectsPostBodyType",), + ".group_1063": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_1064": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_1065": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_1067": ("OrgsOrgRulesetsPostBodyType",), - ".group_1068": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_1069": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",), - ".group_1070": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), - ".group_1071": ( + ".group_1066": ("OrgsOrgRulesetsPostBodyType",), + ".group_1067": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_1068": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",), + ".group_1069": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), + ".group_1070": ( "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType", ), - ".group_1072": ("OrgsOrgTeamsPostBodyType",), - ".group_1073": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_1074": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_1075": ( + ".group_1071": ("OrgsOrgTeamsPostBodyType",), + ".group_1072": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_1073": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_1074": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_1076": ( + ".group_1075": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_1077": ( + ".group_1076": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1078": ( + ".group_1077": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1079": ( + ".group_1078": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_1080": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), - ".group_1081": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_1082": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_1083": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_1084": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_1085": ( + ".group_1079": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), + ".group_1080": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_1081": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_1082": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_1083": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_1084": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_1086": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_1087": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_1088": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_1089": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_1090": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_1091": ( + ".group_1085": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_1086": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_1087": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_1088": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_1089": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_1090": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_1092": ( + ".group_1091": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_1093": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_1094": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_1095": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_1096": ( + ".group_1092": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_1093": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_1094": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_1095": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_1097": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_1098": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_1099": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_1100": ("ProjectsProjectIdPatchBodyType",), - ".group_1101": ("ProjectsProjectIdPatchResponse403Type",), - ".group_1102": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_1103": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_1104": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_1105": ( + ".group_1096": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_1097": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_1098": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_1099": ("ProjectsProjectIdPatchBodyType",), + ".group_1100": ("ProjectsProjectIdPatchResponse403Type",), + ".group_1101": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_1102": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_1103": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_1104": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", @@ -13914,61 +13836,61 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_1106": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_1107": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_1108": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_1109": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_1110": ( + ".group_1105": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_1106": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_1107": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_1108": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_1109": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_1111": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_1112": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_1113": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_1114": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_1115": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_1116": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_1117": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_1118": ( + ".group_1110": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_1111": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_1112": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_1113": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_1114": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_1115": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_1116": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_1117": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_1119": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_1120": ( + ".group_1118": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_1119": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_1121": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_1122": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_1123": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_1124": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_1125": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_1126": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_1127": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_1128": ( + ".group_1120": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_1121": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_1122": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_1123": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_1124": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_1125": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_1126": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_1127": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_1129": ( + ".group_1128": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_1130": ( + ".group_1129": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_1131": ( + ".group_1130": ( "ReposOwnerRepoAttestationsPostBodyType", "ReposOwnerRepoAttestationsPostBodyPropBundleType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", ), - ".group_1132": ("ReposOwnerRepoAttestationsPostResponse201Type",), - ".group_1133": ( + ".group_1131": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_1132": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_1134": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_1135": ( + ".group_1133": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_1134": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -13977,397 +13899,397 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_1136": ( + ".group_1135": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_1137": ( + ".group_1136": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_1138": ( + ".group_1137": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_1139": ( + ".group_1138": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_1140": ( + ".group_1139": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_1141": ( + ".group_1140": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType", ), - ".group_1142": ( + ".group_1141": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType", ), - ".group_1143": ( + ".group_1142": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType", ), - ".group_1144": ( + ".group_1143": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_1145": ( + ".group_1144": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_1146": ( + ".group_1145": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_1147": ( + ".group_1146": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType", ), - ".group_1148": ( + ".group_1147": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType", ), - ".group_1149": ( + ".group_1148": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType", ), - ".group_1150": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_1151": ( + ".group_1149": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_1150": ( "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType", ), - ".group_1152": ( + ".group_1151": ( "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type", ), - ".group_1153": ( + ".group_1152": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_1154": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_1155": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_1156": ( + ".group_1153": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_1154": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_1155": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_1157": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_1158": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_1159": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_1160": ( + ".group_1156": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_1157": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_1158": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_1159": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_1161": ( + ".group_1160": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_1162": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_1163": ( + ".group_1161": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_1162": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_1164": ( + ".group_1163": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_1165": ( + ".group_1164": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_1166": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_1167": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_1168": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_1169": ( + ".group_1165": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_1166": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_1167": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_1168": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_1170": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_1171": ( + ".group_1169": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_1170": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_1172": ( + ".group_1171": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_1173": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_1174": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_1175": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_1176": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_1177": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_1178": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_1179": ( + ".group_1172": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_1173": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_1174": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_1175": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_1176": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_1177": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_1178": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_1180": ( + ".group_1179": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_1181": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_1182": ( + ".group_1180": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_1181": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_1183": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_1184": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_1185": ( + ".group_1182": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_1183": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_1184": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1186": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1187": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1188": ( + ".group_1185": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_1186": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_1187": ( "ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBodyType", ), - ".group_1189": ( + ".group_1188": ( "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType", ), - ".group_1190": ( + ".group_1189": ( "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type", ), - ".group_1191": ( + ".group_1190": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1192": ( + ".group_1191": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1193": ( + ".group_1192": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1194": ( + ".group_1193": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1195": ( + ".group_1194": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1196": ( + ".group_1195": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1197": ( + ".group_1196": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1198": ( + ".group_1197": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1199": ( + ".group_1198": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1200": ( + ".group_1199": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1201": ("ReposOwnerRepoForksPostBodyType",), - ".group_1202": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1203": ( + ".group_1200": ("ReposOwnerRepoForksPostBodyType",), + ".group_1201": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_1202": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1204": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1205": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1206": ( + ".group_1203": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_1204": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_1205": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1207": ( + ".group_1206": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1208": ( + ".group_1207": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1209": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1210": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1211": ("ReposOwnerRepoImportPutBodyType",), - ".group_1212": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1213": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1214": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1215": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1216": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1217": ( + ".group_1208": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_1209": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_1210": ("ReposOwnerRepoImportPutBodyType",), + ".group_1211": ("ReposOwnerRepoImportPatchBodyType",), + ".group_1212": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_1213": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_1214": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_1215": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_1216": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1218": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1219": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1220": ( + ".group_1217": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_1218": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_1219": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1221": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1222": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1223": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1224": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1225": ( + ".group_1220": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_1221": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_1222": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_1223": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_1224": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1226": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1227": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1228": ( + ".group_1225": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_1226": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_1227": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1229": ( + ".group_1228": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1230": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1231": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1232": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), - ".group_1233": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), - ".group_1234": ( + ".group_1229": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1230": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1231": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), + ".group_1232": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), + ".group_1233": ( "ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType", ), - ".group_1235": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1236": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1237": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1238": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1239": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1240": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1241": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1242": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1243": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1244": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1245": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1246": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1247": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1248": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1249": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1250": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1251": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1252": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1253": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1254": ( + ".group_1234": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1235": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1236": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1237": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1238": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1239": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1240": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1241": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1242": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1243": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1244": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1245": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1246": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1247": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1248": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1249": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1250": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1251": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1252": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1253": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1255": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1256": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1257": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1258": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1259": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1260": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1261": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1262": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1263": ( + ".group_1254": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1255": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1256": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1257": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1258": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1259": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1260": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1261": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1262": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1264": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1265": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1266": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1267": ( + ".group_1263": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1264": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1265": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1266": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1268": ( + ".group_1267": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1269": ( + ".group_1268": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1270": ( + ".group_1269": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1271": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1272": ( + ".group_1270": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1271": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1273": ( + ".group_1272": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1274": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1275": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1276": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1277": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1278": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1279": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1280": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1281": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1282": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1283": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1284": ( + ".group_1273": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1274": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1275": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1276": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1277": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1278": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1279": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1280": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1281": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1282": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1283": ( "ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType", ), - ".group_1285": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1286": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1287": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1288": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1289": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1290": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1291": ( + ".group_1284": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1285": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1286": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1287": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1288": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1289": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1290": ( "ScimV2OrganizationsOrgUsersPostBodyType", "ScimV2OrganizationsOrgUsersPostBodyPropNameType", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", ), - ".group_1292": ( + ".group_1291": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", ), - ".group_1293": ( + ".group_1292": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", ), - ".group_1294": ("TeamsTeamIdPatchBodyType",), - ".group_1295": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1296": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1297": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1298": ( + ".group_1293": ("TeamsTeamIdPatchBodyType",), + ".group_1294": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1295": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1296": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1297": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1299": ( + ".group_1298": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1300": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1301": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1302": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1303": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1304": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1305": ( + ".group_1299": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1300": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1301": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1302": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1303": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1304": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_1306": ("UserPatchBodyType",), - ".group_1307": ("UserCodespacesGetResponse200Type",), - ".group_1308": ("UserCodespacesPostBodyOneof0Type",), - ".group_1309": ( + ".group_1305": ("UserPatchBodyType",), + ".group_1306": ("UserCodespacesGetResponse200Type",), + ".group_1307": ("UserCodespacesPostBodyOneof0Type",), + ".group_1308": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1310": ( + ".group_1309": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1311": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1312": ( + ".group_1310": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1311": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1313": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1314": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1315": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1316": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1317": ("UserEmailVisibilityPatchBodyType",), - ".group_1318": ("UserEmailsPostBodyOneof0Type",), - ".group_1319": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1320": ("UserGpgKeysPostBodyType",), - ".group_1321": ("UserInstallationsGetResponse200Type",), - ".group_1322": ( + ".group_1312": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1313": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1314": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1315": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1316": ("UserEmailVisibilityPatchBodyType",), + ".group_1317": ("UserEmailsPostBodyOneof0Type",), + ".group_1318": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1319": ("UserGpgKeysPostBodyType",), + ".group_1320": ("UserInstallationsGetResponse200Type",), + ".group_1321": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1323": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1324": ("UserKeysPostBodyType",), - ".group_1325": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1326": ("UserMigrationsPostBodyType",), - ".group_1327": ("UserProjectsPostBodyType",), - ".group_1328": ("UserReposPostBodyType",), - ".group_1329": ("UserSocialAccountsPostBodyType",), - ".group_1330": ("UserSocialAccountsDeleteBodyType",), - ".group_1331": ("UserSshSigningKeysPostBodyType",), - ".group_1332": ("UsersUsernameAttestationsBulkListPostBodyType",), - ".group_1333": ( + ".group_1322": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1323": ("UserKeysPostBodyType",), + ".group_1324": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1325": ("UserMigrationsPostBodyType",), + ".group_1326": ("UserProjectsPostBodyType",), + ".group_1327": ("UserReposPostBodyType",), + ".group_1328": ("UserSocialAccountsPostBodyType",), + ".group_1329": ("UserSocialAccountsDeleteBodyType",), + ".group_1330": ("UserSshSigningKeysPostBodyType",), + ".group_1331": ("UsersUsernameAttestationsBulkListPostBodyType",), + ".group_1332": ( "UsersUsernameAttestationsBulkListPostResponse200Type", "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", "UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType", ), - ".group_1334": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",), - ".group_1335": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",), - ".group_1336": ( + ".group_1333": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",), + ".group_1334": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",), + ".group_1335": ( "UsersUsernameAttestationsSubjectDigestGetResponse200Type", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", 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 a06da336c..036d4d245 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0063.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0063.py @@ -95,6 +95,8 @@ class CodeSecurityConfigurationPropCodeScanningOptionsType(TypedDict): Feature options for code scanning """ + allow_advanced: NotRequired[Union[bool, None]] + class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType(TypedDict): """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions 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 73c7a68ac..be5ad4363 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0064.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0064.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class CodeScanningDefaultSetupOptionsType(TypedDict): - """CodeScanningDefaultSetupOptions +class CodeScanningOptionsType(TypedDict): + """CodeScanningOptions - Feature options for code scanning default setup + Security Configuration feature options for code scanning """ - runner_type: NotRequired[Literal["standard", "labeled", "not_set"]] - runner_label: NotRequired[Union[str, None]] + allow_advanced: NotRequired[Union[bool, None]] -__all__ = ("CodeScanningDefaultSetupOptionsType",) +__all__ = ("CodeScanningOptionsType",) 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 bd999f252..73c7a68ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0065.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0065.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_0063 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/ghec_v2022_11_28/types/group_0066.py b/githubkit/versions/ghec_v2022_11_28/types/group_0066.py index bd065b3cf..bd999f252 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0066.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0066.py @@ -12,28 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0061 import SimpleRepositoryType +from .group_0063 import CodeSecurityConfigurationType -class CodeSecurityConfigurationRepositoriesType(TypedDict): - """CodeSecurityConfigurationRepositories +class CodeSecurityDefaultConfigurationsItemsType(TypedDict): + """CodeSecurityDefaultConfigurationsItems""" - Repositories associated with a code security configuration and attachment status - """ + default_for_new_repos: NotRequired[Literal["public", "private_and_internal", "all"]] + configuration: NotRequired[CodeSecurityConfigurationType] - status: NotRequired[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] - repository: NotRequired[SimpleRepositoryType] - -__all__ = ("CodeSecurityConfigurationRepositoriesType",) +__all__ = ("CodeSecurityDefaultConfigurationsItemsType",) 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 e74a5649f..bd065b3cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0067.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0067.py @@ -9,23 +9,31 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0061 import SimpleRepositoryType -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 +class CodeSecurityConfigurationRepositoriesType(TypedDict): + """CodeSecurityConfigurationRepositories + + Repositories associated with a code security configuration and attachment status + """ + + status: NotRequired[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] ] - secret_scanning_validity_checks_enabled: NotRequired[bool] + repository: NotRequired[SimpleRepositoryType] -__all__ = ("EnterpriseSecurityAnalysisSettingsType",) +__all__ = ("CodeSecurityConfigurationRepositoriesType",) 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 8192fa267..e74a5649f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0068.py @@ -13,41 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class GetConsumedLicensesType(TypedDict): - """Enterprise Consumed Licenses - - A breakdown of the licenses consumed by an enterprise. - """ - - 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__ = ( - "GetConsumedLicensesPropUsersItemsType", - "GetConsumedLicensesType", -) +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 + ] + secret_scanning_validity_checks_enabled: NotRequired[bool] + + +__all__ = ("EnterpriseSecurityAnalysisSettingsType",) 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 9755ad7ef..8192fa267 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0069.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0069.py @@ -13,25 +13,41 @@ from typing_extensions import NotRequired, TypedDict -class TeamSimpleType(TypedDict): - """Team Simple +class GetConsumedLicensesType(TypedDict): + """Enterprise Consumed Licenses - Groups of organization members that gives permissions on specified repositories. + A breakdown of the licenses consumed by an enterprise. """ - 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",) + 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__ = ( + "GetConsumedLicensesPropUsersItemsType", + "GetConsumedLicensesType", +) 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 61568b090..9755ad7ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0070.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0070.py @@ -12,42 +12,26 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0069 import TeamSimpleType - -class TeamType(TypedDict): - """Team +class TeamSimpleType(TypedDict): + """Team Simple Groups of organization members that gives permissions on specified repositories. """ id: int node_id: str + url: str + members_url: str name: str - slug: str description: Union[str, None] + permission: str 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 + slug: str + ldap_dn: NotRequired[str] -__all__ = ( - "TeamPropPermissionsType", - "TeamType", -) +__all__ = ("TeamSimpleType",) 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 6b723e09a..1bb2cecd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0071.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0071.py @@ -9,55 +9,45 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0036 import OrganizationSimpleType -from .group_0070 import TeamType +from .group_0070 import TeamSimpleType -class CopilotSeatDetailsType(TypedDict): - """Copilot Business Seat Detail +class TeamType(TypedDict): + """Team - Information about a Copilot Business seat assignment for a user, team, or - organization. - """ - - assignee: NotRequired[Union[None, SimpleUserType]] - organization: NotRequired[Union[None, OrganizationSimpleType]] - assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] - pending_cancellation_date: NotRequired[Union[date, None]] - last_activity_at: NotRequired[Union[datetime, None]] - last_activity_editor: NotRequired[Union[str, None]] - created_at: datetime - updated_at: NotRequired[datetime] - plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] - - -class EnterpriseTeamType(TypedDict): - """Enterprise Team - - Group of enterprise owners and/or members + Groups of organization members that gives permissions on specified repositories. """ id: int + node_id: str name: str - description: NotRequired[str] slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamPropPermissionsType] url: str - sync_to_organizations: NotRequired[str] - organization_selection_type: NotRequired[str] - group_id: NotRequired[Union[str, None]] - group_name: NotRequired[Union[str, None]] html_url: str members_url: str - created_at: datetime - updated_at: datetime + repositories_url: str + parent: Union[None, TeamSimpleType] + + +class TeamPropPermissionsType(TypedDict): + """TeamPropPermissions""" + + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool __all__ = ( - "CopilotSeatDetailsType", - "EnterpriseTeamType", + "TeamPropPermissionsType", + "TeamType", ) 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 c28ab10cb..b80e62756 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0072.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0072.py @@ -9,192 +9,55 @@ from __future__ import annotations -from datetime import date -from typing import Union +from datetime import date, datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0036 import OrganizationSimpleType +from .group_0071 import TeamType -class CopilotUsageMetricsDayType(TypedDict): - """Copilot Usage Metrics - Copilot usage metrics for a given day. - """ - - date: date - total_active_users: NotRequired[int] - total_engaged_users: NotRequired[int] - copilot_ide_code_completions: NotRequired[ - Union[CopilotIdeCodeCompletionsType, None] - ] - copilot_ide_chat: NotRequired[Union[CopilotIdeChatType, None]] - copilot_dotcom_chat: NotRequired[Union[CopilotDotcomChatType, None]] - copilot_dotcom_pull_requests: NotRequired[ - Union[CopilotDotcomPullRequestsType, None] - ] - - -class CopilotDotcomChatType(TypedDict): - """CopilotDotcomChat - - Usage metrics for Copilot Chat in GitHub.com - """ - - total_engaged_users: NotRequired[int] - models: NotRequired[list[CopilotDotcomChatPropModelsItemsType]] - - -class CopilotDotcomChatPropModelsItemsType(TypedDict): - """CopilotDotcomChatPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - total_chats: NotRequired[int] - - -class CopilotIdeChatType(TypedDict): - """CopilotIdeChat - - Usage metrics for Copilot Chat in the IDE. - """ - - total_engaged_users: NotRequired[int] - editors: NotRequired[list[CopilotIdeChatPropEditorsItemsType]] - - -class CopilotIdeChatPropEditorsItemsType(TypedDict): - """CopilotIdeChatPropEditorsItems - - Copilot Chat metrics, for active editors. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[list[CopilotIdeChatPropEditorsItemsPropModelsItemsType]] - - -class CopilotIdeChatPropEditorsItemsPropModelsItemsType(TypedDict): - """CopilotIdeChatPropEditorsItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - total_chats: NotRequired[int] - total_chat_insertion_events: NotRequired[int] - total_chat_copy_events: NotRequired[int] - - -class CopilotDotcomPullRequestsType(TypedDict): - """CopilotDotcomPullRequests +class CopilotSeatDetailsType(TypedDict): + """Copilot Business Seat Detail - Usage metrics for Copilot for pull requests. + Information about a Copilot Business seat assignment for a user, team, or + organization. """ - 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 - ] - ] + assignee: NotRequired[Union[None, SimpleUserType]] + organization: NotRequired[Union[None, OrganizationSimpleType]] + assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] + pending_cancellation_date: NotRequired[Union[date, None]] + last_activity_at: NotRequired[Union[datetime, None]] + last_activity_editor: NotRequired[Union[str, None]] + created_at: datetime + updated_at: NotRequired[datetime] + plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType( - TypedDict -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems +class EnterpriseTeamType(TypedDict): + """Enterprise Team - Usage metrics for a given language for the given editor for Copilot code - completions. + Group of enterprise owners and/or members """ - 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] + id: int + name: str + description: NotRequired[str] + slug: str + url: str + sync_to_organizations: NotRequired[str] + organization_selection_type: NotRequired[str] + group_id: NotRequired[Union[str, None]] + group_name: NotRequired[Union[str, None]] + html_url: str + members_url: str + created_at: datetime + updated_at: datetime __all__ = ( - "CopilotDotcomChatPropModelsItemsType", - "CopilotDotcomChatType", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType", - "CopilotDotcomPullRequestsPropRepositoriesItemsType", - "CopilotDotcomPullRequestsType", - "CopilotIdeChatPropEditorsItemsPropModelsItemsType", - "CopilotIdeChatPropEditorsItemsType", - "CopilotIdeChatType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsType", - "CopilotIdeCodeCompletionsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsType", - "CopilotUsageMetricsDayType", + "CopilotSeatDetailsType", + "EnterpriseTeamType", ) 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 9ef70e81a..c28ab10cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0073.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0073.py @@ -9,17 +9,192 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import date +from typing import Union +from typing_extensions import NotRequired, TypedDict -class DependabotAlertPackageType(TypedDict): - """DependabotAlertPackage +class CopilotUsageMetricsDayType(TypedDict): + """Copilot Usage Metrics - Details for the vulnerable package. + Copilot usage metrics for a given day. """ - ecosystem: str - name: 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] + ] -__all__ = ("DependabotAlertPackageType",) +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", +) 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 5aa8fc4c0..9ef70e81a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0074.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0074.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0073 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/ghec_v2022_11_28/types/group_0075.py b/githubkit/versions/ghec_v2022_11_28/types/group_0075.py index 837912556..aa30b6287 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0075.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0075.py @@ -9,81 +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_0002 import SecurityAdvisoryEpssType -from .group_0074 import DependabotAlertSecurityVulnerabilityType +from .group_0074 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]] - 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] + 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/ghec_v2022_11_28/types/group_0076.py b/githubkit/versions/ghec_v2022_11_28/types/group_0076.py index 2e0bb2e73..aca393ca1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0076.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0076.py @@ -13,40 +13,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0061 import SimpleRepositoryType -from .group_0074 import DependabotAlertSecurityVulnerabilityType -from .group_0075 import DependabotAlertSecurityAdvisoryType -from .group_0077 import DependabotAlertWithRepositoryPropDependencyType +from .group_0001 import CvssSeveritiesType +from .group_0002 import SecurityAdvisoryEpssType +from .group_0075 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/ghec_v2022_11_28/types/group_0077.py b/githubkit/versions/ghec_v2022_11_28/types/group_0077.py index 0825204f2..c107f21aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0077.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0077.py @@ -9,24 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0073 import DependabotAlertPackageType +from .group_0003 import SimpleUserType +from .group_0061 import SimpleRepositoryType +from .group_0075 import DependabotAlertSecurityVulnerabilityType +from .group_0076 import DependabotAlertSecurityAdvisoryType +from .group_0078 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"]]] - relationship: NotRequired[ - Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]] + 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__ = ("DependabotAlertWithRepositoryPropDependencyType",) +__all__ = ("DependabotAlertWithRepositoryType",) 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 252ea9e23..892e25fe4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0078.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0078.py @@ -9,38 +9,24 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0074 import DependabotAlertPackageType -class GetLicenseSyncStatusType(TypedDict): - """License Sync Status - Information about the status of a license sync job for an enterprise. +class DependabotAlertWithRepositoryPropDependencyType(TypedDict): + """DependabotAlertWithRepositoryPropDependency + + Details for the vulnerable dependency. """ - server_instances: NotRequired[ - list[GetLicenseSyncStatusPropServerInstancesItemsType] + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] + relationship: NotRequired[ + Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]] ] -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__ = ("DependabotAlertWithRepositoryPropDependencyType",) 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 2355032fb..252ea9e23 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,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class NetworkConfigurationType(TypedDict): - """Hosted compute network configuration +class GetLicenseSyncStatusType(TypedDict): + """License Sync Status - A hosted compute network configuration. + Information about the status of a license sync job for an enterprise. """ - id: str - name: str - compute_service: NotRequired[Literal["none", "actions", "codespaces"]] - network_settings_ids: NotRequired[list[str]] - created_on: Union[datetime, None] + server_instances: NotRequired[ + list[GetLicenseSyncStatusPropServerInstancesItemsType] + ] -__all__ = ("NetworkConfigurationType",) +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_0080.py b/githubkit/versions/ghec_v2022_11_28/types/group_0080.py index c2fd7df78..2355032fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0080.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0080.py @@ -9,20 +9,22 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class NetworkSettingsType(TypedDict): - """Hosted compute network settings resource +class NetworkConfigurationType(TypedDict): + """Hosted compute network configuration - A hosted compute network settings resource. + A hosted compute network configuration. """ id: str - network_configuration_id: NotRequired[str] name: str - subnet_id: str - region: str + compute_service: NotRequired[Literal["none", "actions", "codespaces"]] + network_settings_ids: NotRequired[list[str]] + created_on: Union[datetime, None] -__all__ = ("NetworkSettingsType",) +__all__ = ("NetworkConfigurationType",) 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 0ddc5174c..c2fd7df78 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0081.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0081.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CustomPropertyType(TypedDict): - """Organization Custom Property +class NetworkSettingsType(TypedDict): + """Hosted compute network settings resource - Custom property defined on an organization + A hosted compute network settings resource. """ - 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: str + network_configuration_id: NotRequired[str] + name: str + subnet_id: str + region: str -__all__ = ("CustomPropertyType",) +__all__ = ("NetworkSettingsType",) 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 1a1a48cd7..0ddc5174c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0082.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0082.py @@ -13,12 +13,15 @@ from typing_extensions import NotRequired, TypedDict -class CustomPropertySetPayloadType(TypedDict): - """Custom Property Set Payload +class CustomPropertyType(TypedDict): + """Organization Custom Property - Custom property set payload + Custom property defined on an organization """ + 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]] @@ -29,4 +32,4 @@ class CustomPropertySetPayloadType(TypedDict): ] -__all__ = ("CustomPropertySetPayloadType",) +__all__ = ("CustomPropertyType",) 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 b18b97247..1a1a48cd7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0083.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0083.py @@ -13,22 +13,20 @@ 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", - "EnterpriseOwner", + 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"]] ] - bypass_mode: NotRequired[Literal["always", "pull_request"]] -__all__ = ("RepositoryRulesetBypassActorType",) +__all__ = ("CustomPropertySetPayloadType",) 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 ae11f259e..b18b97247 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0084.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0084.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_0085 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, -) +class RepositoryRulesetBypassActorType(TypedDict): + """Repository Ruleset Bypass Actor -class EnterpriseRulesetConditionsOrganizationNameTargetType(TypedDict): - """Repository ruleset conditions for organization names - - Parameters for an organization name condition + An actor that can bypass rules in a ruleset """ - organization_name: ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType - ) + actor_id: NotRequired[Union[int, None]] + actor_type: Literal[ + "Integration", + "OrganizationAdmin", + "RepositoryRole", + "Team", + "DeployKey", + "EnterpriseOwner", + ] + bypass_mode: NotRequired[Literal["always", "pull_request"]] -__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetType",) +__all__ = ("RepositoryRulesetBypassActorType",) 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 ea24713c8..1142b53f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0085.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0085.py @@ -9,16 +9,22 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0086 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, +) -class EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType( - TypedDict -): - """EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName""" - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] +class EnterpriseRulesetConditionsOrganizationNameTargetType(TypedDict): + """Repository ruleset conditions for organization names + Parameters for an organization name condition + """ -__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType",) + organization_name: ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType + ) + + +__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetType",) 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 30f264309..ea24713c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0086.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0086.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0087 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) +class EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType( + TypedDict +): + """EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName""" -class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): - """Repository ruleset conditions for repository names + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] - Parameters for a repository name condition - """ - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) - - -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) +__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType",) 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 f2a6b8a4a..0c4f0c6dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0087.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0087.py @@ -9,15 +9,22 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0088 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] - protected: NotRequired[bool] +class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): + """Repository ruleset conditions for repository names + Parameters for a repository name condition + """ -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) + + +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) 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 5d8faba6f..f2a6b8a4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0088.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0088.py @@ -11,16 +11,13 @@ from typing_extensions import NotRequired, TypedDict -from .group_0089 import RepositoryRulesetConditionsPropRefNameType +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" -class RepositoryRulesetConditionsType(TypedDict): - """Repository ruleset conditions for ref names + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] + protected: NotRequired[bool] - Parameters for a repository ruleset ref name condition - """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - - -__all__ = ("RepositoryRulesetConditionsType",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) 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 bf8990574..cbf72222b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0089.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0089.py @@ -11,12 +11,16 @@ from typing_extensions import NotRequired, TypedDict +from .group_0090 import RepositoryRulesetConditionsPropRefNameType -class RepositoryRulesetConditionsPropRefNameType(TypedDict): - """RepositoryRulesetConditionsPropRefName""" - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] +class RepositoryRulesetConditionsType(TypedDict): + """Repository ruleset conditions for ref names + Parameters for a repository ruleset ref name condition + """ -__all__ = ("RepositoryRulesetConditionsPropRefNameType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + + +__all__ = ("RepositoryRulesetConditionsType",) 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 9b96c8615..bf8990574 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0090.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0091 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/ghec_v2022_11_28/types/group_0091.py b/githubkit/versions/ghec_v2022_11_28/types/group_0091.py index 57df7a1f1..d5e2e9ae1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0091.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0091.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_0092 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): - """Repository ruleset property targeting definition +class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): + """Repository ruleset conditions for repository properties - Parameters for a targeting a repository property + Parameters for a repository property condition """ - name: str - property_values: list[str] - source: NotRequired[Literal["custom", "system"]] + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpecType", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) 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 30efc652a..57df7a1f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0092.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0092.py @@ -9,22 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0093 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, -) +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( + TypedDict +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" + + include: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] + exclude: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] -class EnterpriseRulesetConditionsOrganizationIdTargetType(TypedDict): - """Repository ruleset conditions for organization IDs - Parameters for an organization ID condition +class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): + """Repository ruleset property targeting definition + + Parameters for a targeting a repository property """ - organization_id: ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType - ) + name: str + property_values: list[str] + source: NotRequired[Literal["custom", "system"]] -__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetType",) +__all__ = ( + "RepositoryRulesetConditionsRepositoryPropertySpecType", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", +) 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 4e45a959a..b7c908144 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0093.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0093.py @@ -9,13 +9,22 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0094 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, +) -class EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType(TypedDict): - """EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId""" - organization_ids: NotRequired[list[int]] +class EnterpriseRulesetConditionsOrganizationIdTargetType(TypedDict): + """Repository ruleset conditions for organization IDs + Parameters for an organization ID condition + """ -__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType",) + organization_id: ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType + ) + + +__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetType",) 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 8811b522e..4e45a959a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0094.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0094.py @@ -11,28 +11,11 @@ from typing_extensions import NotRequired, TypedDict -from .group_0085 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, -) -from .group_0087 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) -from .group_0089 import RepositoryRulesetConditionsPropRefNameType +class EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType(TypedDict): + """EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId""" -class EnterpriseRulesetConditionsOneof0Type(TypedDict): - """organization_name_and_repository_name + organization_ids: NotRequired[list[int]] - Conditions to target organizations by name and all repositories - """ - organization_name: ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType - ) - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - - -__all__ = ("EnterpriseRulesetConditionsOneof0Type",) +__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType",) 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 2cd36a579..439b9844c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0095.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0095.py @@ -11,28 +11,28 @@ from typing_extensions import NotRequired, TypedDict -from .group_0085 import ( +from .group_0086 import ( EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, ) -from .group_0089 import RepositoryRulesetConditionsPropRefNameType -from .group_0091 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +from .group_0088 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) +from .group_0090 import RepositoryRulesetConditionsPropRefNameType -class EnterpriseRulesetConditionsOneof1Type(TypedDict): - """organization_name_and_repository_property +class EnterpriseRulesetConditionsOneof0Type(TypedDict): + """organization_name_and_repository_name - Conditions to target organizations by name and repositories by property + Conditions to target organizations by name and all repositories """ organization_name: ( EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType ) - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType ) ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("EnterpriseRulesetConditionsOneof1Type",) +__all__ = ("EnterpriseRulesetConditionsOneof0Type",) 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 663b28188..eb5726e01 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0096.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0096.py @@ -11,28 +11,28 @@ from typing_extensions import NotRequired, TypedDict -from .group_0087 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +from .group_0086 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, ) -from .group_0089 import RepositoryRulesetConditionsPropRefNameType -from .group_0093 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, +from .group_0090 import RepositoryRulesetConditionsPropRefNameType +from .group_0092 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) -class EnterpriseRulesetConditionsOneof2Type(TypedDict): - """organization_id_and_repository_name +class EnterpriseRulesetConditionsOneof1Type(TypedDict): + """organization_name_and_repository_property - Conditions to target organizations by id and all repositories + Conditions to target organizations by name and repositories by property """ - organization_id: ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType + organization_name: ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType ) - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType ) ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("EnterpriseRulesetConditionsOneof2Type",) +__all__ = ("EnterpriseRulesetConditionsOneof1Type",) 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 c072fbcd3..d99e68a64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0097.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0097.py @@ -11,28 +11,28 @@ from typing_extensions import NotRequired, TypedDict -from .group_0089 import RepositoryRulesetConditionsPropRefNameType -from .group_0091 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +from .group_0088 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) -from .group_0093 import ( +from .group_0090 import RepositoryRulesetConditionsPropRefNameType +from .group_0094 import ( EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, ) -class EnterpriseRulesetConditionsOneof3Type(TypedDict): - """organization_id_and_repository_property +class EnterpriseRulesetConditionsOneof2Type(TypedDict): + """organization_id_and_repository_name - Conditions to target organization by id and repositories by property + Conditions to target organizations by id and all repositories """ organization_id: ( EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType ) - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType ) ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("EnterpriseRulesetConditionsOneof3Type",) +__all__ = ("EnterpriseRulesetConditionsOneof2Type",) 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 31548ad70..f8d2bd5ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0098.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0098.py @@ -9,49 +9,30 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, 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"] +from .group_0090 import RepositoryRulesetConditionsPropRefNameType +from .group_0092 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) +from .group_0094 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, +) -class RepositoryRuleNonFastForwardType(TypedDict): - """non_fast_forward +class EnterpriseRulesetConditionsOneof3Type(TypedDict): + """organization_id_and_repository_property - Prevent users with push access from force pushing to refs. + Conditions to target organization by id and repositories by property """ - type: Literal["non_fast_forward"] + organization_id: ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType + ) + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ( - "RepositoryRuleCreationType", - "RepositoryRuleDeletionType", - "RepositoryRuleNonFastForwardType", - "RepositoryRuleRequiredSignaturesType", -) +__all__ = ("EnterpriseRulesetConditionsOneof3Type",) 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 1ec0879bd..31548ad70 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0099.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0099.py @@ -10,19 +10,48 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0100 import RepositoryRuleUpdatePropParametersType +class RepositoryRuleCreationType(TypedDict): + """creation -class RepositoryRuleUpdateType(TypedDict): - """update + 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 - Only allow users with bypass permission to update matching refs. + Prevent users with push access from force pushing to refs. """ - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + type: Literal["non_fast_forward"] -__all__ = ("RepositoryRuleUpdateType",) +__all__ = ( + "RepositoryRuleCreationType", + "RepositoryRuleDeletionType", + "RepositoryRuleNonFastForwardType", + "RepositoryRuleRequiredSignaturesType", +) 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 4de519b89..762b596ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0100.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0100.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0101 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleUpdatePropParametersType(TypedDict): - """RepositoryRuleUpdatePropParameters""" - update_allows_fetch_and_merge: bool +class RepositoryRuleUpdateType(TypedDict): + """update + Only allow users with bypass permission to update matching refs. + """ -__all__ = ("RepositoryRuleUpdatePropParametersType",) + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + + +__all__ = ("RepositoryRuleUpdateType",) 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 c531884ff..4de519b89 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 TypedDict -class RepositoryRuleRequiredLinearHistoryType(TypedDict): - """required_linear_history +class RepositoryRuleUpdatePropParametersType(TypedDict): + """RepositoryRuleUpdatePropParameters""" - Prevent merge commits from being pushed to matching refs. - """ + update_allows_fetch_and_merge: bool - type: Literal["required_linear_history"] - -__all__ = ("RepositoryRuleRequiredLinearHistoryType",) +__all__ = ("RepositoryRuleUpdatePropParametersType",) 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 4482feee9..c531884ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0102.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0102.py @@ -10,19 +10,16 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0103 import RepositoryRuleMergeQueuePropParametersType +class RepositoryRuleRequiredLinearHistoryType(TypedDict): + """required_linear_history -class RepositoryRuleMergeQueueType(TypedDict): - """merge_queue - - Merges must be performed via a merge queue. + Prevent merge commits from being pushed to matching refs. """ - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] + type: Literal["required_linear_history"] -__all__ = ("RepositoryRuleMergeQueueType",) +__all__ = ("RepositoryRuleRequiredLinearHistoryType",) 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 4d32d8491..3fa122ab3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0103.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0103.py @@ -10,19 +10,20 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0104 import RepositoryRuleRequiredDeploymentsPropParametersType -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 RepositoryRuleRequiredDeploymentsType(TypedDict): + """required_deployments + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. + """ -__all__ = ("RepositoryRuleMergeQueuePropParametersType",) + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + + +__all__ = ("RepositoryRuleRequiredDeploymentsType",) 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 80977ce03..ef0c8d1d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0104.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0104.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_0105 import RepositoryRuleRequiredDeploymentsPropParametersType +class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): + """RepositoryRuleRequiredDeploymentsPropParameters""" -class RepositoryRuleRequiredDeploymentsType(TypedDict): - """required_deployments + required_deployment_environments: list[str] - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. - """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] - - -__all__ = ("RepositoryRuleRequiredDeploymentsType",) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) 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 ef0c8d1d9..beedb5329 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0105.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0105.py @@ -9,13 +9,33 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): + """RequiredReviewerConfiguration - required_deployment_environments: list[str] + A reviewing team, and file patterns describing which files they must approve + changes to. + """ + file_patterns: list[str] + minimum_approvals: int + reviewer: RepositoryRuleParamsReviewerType -__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) + +class RepositoryRuleParamsReviewerType(TypedDict): + """Reviewer + + A required reviewing team + """ + + id: int + type: Literal["Team"] + + +__all__ = ( + "RepositoryRuleParamsRequiredReviewerConfigurationType", + "RepositoryRuleParamsReviewerType", +) 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 beedb5329..e00093a3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0106.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0106.py @@ -10,32 +10,20 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0107 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): - """RequiredReviewerConfiguration - A reviewing team, and file patterns describing which files they must approve - changes to. - """ - - file_patterns: list[str] - minimum_approvals: int - reviewer: RepositoryRuleParamsReviewerType - - -class RepositoryRuleParamsReviewerType(TypedDict): - """Reviewer +class RepositoryRulePullRequestType(TypedDict): + """pull_request - A required reviewing team + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. """ - id: int - type: Literal["Team"] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] -__all__ = ( - "RepositoryRuleParamsRequiredReviewerConfigurationType", - "RepositoryRuleParamsReviewerType", -) +__all__ = ("RepositoryRulePullRequestType",) 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 a22c17d51..1543217d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0107.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0107.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0108 import RepositoryRulePullRequestPropParametersType +class RepositoryRulePullRequestPropParametersType(TypedDict): + """RepositoryRulePullRequestPropParameters""" -class RepositoryRulePullRequestType(TypedDict): - """pull_request + allowed_merge_methods: NotRequired[list[Literal["merge", "squash", "rebase"]]] + automatic_copilot_code_review_enabled: NotRequired[bool] + dismiss_stale_reviews_on_push: bool + require_code_owner_review: bool + require_last_push_approval: bool + required_approving_review_count: int + required_review_thread_resolution: bool - 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__ = ("RepositoryRulePullRequestPropParametersType",) 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 1543217d1..072821549 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,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0109 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRulePullRequestPropParametersType(TypedDict): - """RepositoryRulePullRequestPropParameters""" - allowed_merge_methods: NotRequired[list[Literal["merge", "squash", "rebase"]]] - automatic_copilot_code_review_enabled: NotRequired[bool] - dismiss_stale_reviews_on_push: bool - require_code_owner_review: bool - require_last_push_approval: bool - required_approving_review_count: int - required_review_thread_resolution: bool +class 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__ = ("RepositoryRulePullRequestPropParametersType",) + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + + +__all__ = ("RepositoryRuleRequiredStatusChecksType",) 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 47fba2437..82ebfc8c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0109.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0109.py @@ -9,21 +9,28 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0110 import RepositoryRuleRequiredStatusChecksPropParametersType +class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): + """RepositoryRuleRequiredStatusChecksPropParameters""" -class RepositoryRuleRequiredStatusChecksType(TypedDict): - """required_status_checks + do_not_enforce_on_create: NotRequired[bool] + required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] + strict_required_status_checks_policy: bool - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. + +class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): + """StatusCheckConfiguration + + Required status check """ - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + context: str + integration_id: NotRequired[int] -__all__ = ("RepositoryRuleRequiredStatusChecksType",) +__all__ = ( + "RepositoryRuleParamsStatusCheckConfigurationType", + "RepositoryRuleRequiredStatusChecksPropParametersType", +) 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 82ebfc8c9..1aa8613c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0110.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0110.py @@ -9,28 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0111 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): - """RepositoryRuleRequiredStatusChecksPropParameters""" - do_not_enforce_on_create: NotRequired[bool] - required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] - strict_required_status_checks_policy: bool +class RepositoryRuleCommitMessagePatternType(TypedDict): + """commit_message_pattern - -class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): - """StatusCheckConfiguration - - Required status check + Parameters to be used for the commit_message_pattern rule """ - context: str - integration_id: NotRequired[int] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] -__all__ = ( - "RepositoryRuleParamsStatusCheckConfigurationType", - "RepositoryRuleRequiredStatusChecksPropParametersType", -) +__all__ = ("RepositoryRuleCommitMessagePatternType",) 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 14ad9b9ac..b6fc6932b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0111.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0111.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0112 import RepositoryRuleCommitMessagePatternPropParametersType +class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): + """RepositoryRuleCommitMessagePatternPropParameters""" -class RepositoryRuleCommitMessagePatternType(TypedDict): - """commit_message_pattern + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Parameters to be used for the commit_message_pattern rule - """ - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] - - -__all__ = ("RepositoryRuleCommitMessagePatternType",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) 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 b6fc6932b..22289927b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0112.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0112.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0113 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): - """RepositoryRuleCommitMessagePatternPropParameters""" - 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__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) 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 a3ae2341e..d6712bb18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0113.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0113.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0114 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" -class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): - """commit_author_email_pattern + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Parameters to be used for the commit_author_email_pattern rule - """ - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] - - -__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) 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 d6712bb18..d703f9426 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0114.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0114.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0115 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" - 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__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitterEmailPatternType",) 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 8778f6ed1..a6567de4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0115.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0115.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0116 import RepositoryRuleCommitterEmailPatternPropParametersType +class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitterEmailPatternPropParameters""" -class RepositoryRuleCommitterEmailPatternType(TypedDict): - """committer_email_pattern + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Parameters to be used for the committer_email_pattern rule - """ - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] - - -__all__ = ("RepositoryRuleCommitterEmailPatternType",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) 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 a6567de4b..654fd7f53 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0116.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0116.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0117 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitterEmailPatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleBranchNamePatternType(TypedDict): + """branch_name_pattern + Parameters to be used for the branch_name_pattern rule + """ -__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + + +__all__ = ("RepositoryRuleBranchNamePatternType",) 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 c19b34607..da29fc42d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0117.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0117.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0118 import RepositoryRuleBranchNamePatternPropParametersType +class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): + """RepositoryRuleBranchNamePatternPropParameters""" -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__ = ("RepositoryRuleBranchNamePatternPropParametersType",) 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 da29fc42d..9279ef94d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0118.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0118.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0119 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): - """RepositoryRuleBranchNamePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleTagNamePatternType(TypedDict): + """tag_name_pattern + Parameters to be used for the tag_name_pattern rule + """ -__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + + +__all__ = ("RepositoryRuleTagNamePatternType",) 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 a302e3a5f..cbfa3546b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0119.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0119.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0120 import RepositoryRuleTagNamePatternPropParametersType +class RepositoryRuleTagNamePatternPropParametersType(TypedDict): + """RepositoryRuleTagNamePatternPropParameters""" -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__ = ("RepositoryRuleTagNamePatternPropParametersType",) 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 cbfa3546b..d3ab39be5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0120.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0120.py @@ -12,14 +12,19 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0121 import RepositoryRuleFilePathRestrictionPropParametersType -class RepositoryRuleTagNamePatternPropParametersType(TypedDict): - """RepositoryRuleTagNamePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleFilePathRestrictionType(TypedDict): + """file_path_restriction + Prevent commits that include changes in specified file and folder paths from + being pushed to the commit graph. This includes absolute paths that contain file + names. + """ -__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] + + +__all__ = ("RepositoryRuleFilePathRestrictionType",) 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 cd5473034..7e198ed48 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0121.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0121.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0122 import RepositoryRuleFilePathRestrictionPropParametersType +class RepositoryRuleFilePathRestrictionPropParametersType(TypedDict): + """RepositoryRuleFilePathRestrictionPropParameters""" -class RepositoryRuleFilePathRestrictionType(TypedDict): - """file_path_restriction + restricted_file_paths: list[str] - Prevent commits that include changes in specified file and folder paths from - being pushed to the commit graph. This includes absolute paths that contain file - names. - """ - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] - - -__all__ = ("RepositoryRuleFilePathRestrictionType",) +__all__ = ("RepositoryRuleFilePathRestrictionPropParametersType",) 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 7e198ed48..2b7e44574 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0122.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0122.py @@ -9,13 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0123 import RepositoryRuleMaxFilePathLengthPropParametersType -class RepositoryRuleFilePathRestrictionPropParametersType(TypedDict): - """RepositoryRuleFilePathRestrictionPropParameters""" - restricted_file_paths: list[str] +class RepositoryRuleMaxFilePathLengthType(TypedDict): + """max_file_path_length + Prevent commits that include file paths that exceed the specified character + limit from being pushed to the commit graph. + """ -__all__ = ("RepositoryRuleFilePathRestrictionPropParametersType",) + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] + + +__all__ = ("RepositoryRuleMaxFilePathLengthType",) 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 78ee354a9..7f4773214 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0123.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0123.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_0124 import RepositoryRuleMaxFilePathLengthPropParametersType +class RepositoryRuleMaxFilePathLengthPropParametersType(TypedDict): + """RepositoryRuleMaxFilePathLengthPropParameters""" -class RepositoryRuleMaxFilePathLengthType(TypedDict): - """max_file_path_length + max_file_path_length: int - Prevent commits that include file paths that exceed the specified character - limit from being pushed to the commit graph. - """ - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] - - -__all__ = ("RepositoryRuleMaxFilePathLengthType",) +__all__ = ("RepositoryRuleMaxFilePathLengthPropParametersType",) 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 7f4773214..ffef6f9d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0124.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0124.py @@ -9,13 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0125 import RepositoryRuleFileExtensionRestrictionPropParametersType -class RepositoryRuleMaxFilePathLengthPropParametersType(TypedDict): - """RepositoryRuleMaxFilePathLengthPropParameters""" - max_file_path_length: int +class RepositoryRuleFileExtensionRestrictionType(TypedDict): + """file_extension_restriction + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. + """ -__all__ = ("RepositoryRuleMaxFilePathLengthPropParametersType",) + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] + + +__all__ = ("RepositoryRuleFileExtensionRestrictionType",) 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 d3474448e..e8886bc56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0125.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0125.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_0126 import RepositoryRuleFileExtensionRestrictionPropParametersType +class RepositoryRuleFileExtensionRestrictionPropParametersType(TypedDict): + """RepositoryRuleFileExtensionRestrictionPropParameters""" -class RepositoryRuleFileExtensionRestrictionType(TypedDict): - """file_extension_restriction + restricted_file_extensions: list[str] - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. - """ - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] - - -__all__ = ("RepositoryRuleFileExtensionRestrictionType",) +__all__ = ("RepositoryRuleFileExtensionRestrictionPropParametersType",) 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 e8886bc56..0a49726e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0126.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0126.py @@ -9,13 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0127 import RepositoryRuleMaxFileSizePropParametersType -class RepositoryRuleFileExtensionRestrictionPropParametersType(TypedDict): - """RepositoryRuleFileExtensionRestrictionPropParameters""" - restricted_file_extensions: list[str] +class RepositoryRuleMaxFileSizeType(TypedDict): + """max_file_size + Prevent commits with individual files that exceed the specified limit from being + pushed to the commit graph. + """ -__all__ = ("RepositoryRuleFileExtensionRestrictionPropParametersType",) + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] + + +__all__ = ("RepositoryRuleMaxFileSizeType",) 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 7bad8f33a..f3b12569b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0127.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0127.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_0128 import RepositoryRuleMaxFileSizePropParametersType +class RepositoryRuleMaxFileSizePropParametersType(TypedDict): + """RepositoryRuleMaxFileSizePropParameters""" -class RepositoryRuleMaxFileSizeType(TypedDict): - """max_file_size + max_file_size: int - Prevent commits with individual files that exceed the specified limit from being - pushed to the commit graph. - """ - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] - - -__all__ = ("RepositoryRuleMaxFileSizeType",) +__all__ = ("RepositoryRuleMaxFileSizePropParametersType",) 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 f3b12569b..7464769b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0128.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0128.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleMaxFileSizePropParametersType(TypedDict): - """RepositoryRuleMaxFileSizePropParameters""" +class RepositoryRuleParamsRestrictedCommitsType(TypedDict): + """RestrictedCommits - max_file_size: int + Restricted commit + """ + oid: str + reason: NotRequired[str] -__all__ = ("RepositoryRuleMaxFileSizePropParametersType",) + +__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) 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 7464769b7..3e4632970 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0129.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0129.py @@ -9,17 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0130 import RepositoryRuleWorkflowsPropParametersType -class RepositoryRuleParamsRestrictedCommitsType(TypedDict): - """RestrictedCommits - Restricted commit +class RepositoryRuleWorkflowsType(TypedDict): + """workflows + + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - oid: str - reason: NotRequired[str] + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] -__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) +__all__ = ("RepositoryRuleWorkflowsType",) 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 9c553d31d..c26b4894e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0130.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0130.py @@ -9,21 +9,29 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0131 import RepositoryRuleWorkflowsPropParametersType +class RepositoryRuleWorkflowsPropParametersType(TypedDict): + """RepositoryRuleWorkflowsPropParameters""" -class RepositoryRuleWorkflowsType(TypedDict): - """workflows + do_not_enforce_on_create: NotRequired[bool] + workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. + +class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): + """WorkflowFileReference + + A workflow that must run for this rule to pass """ - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + path: str + ref: NotRequired[str] + repository_id: int + sha: NotRequired[str] -__all__ = ("RepositoryRuleWorkflowsType",) +__all__ = ( + "RepositoryRuleParamsWorkflowFileReferenceType", + "RepositoryRuleWorkflowsPropParametersType", +) 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 c26b4894e..7f0624d8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0131.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0131.py @@ -9,29 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0132 import RepositoryRuleCodeScanningPropParametersType -class RepositoryRuleWorkflowsPropParametersType(TypedDict): - """RepositoryRuleWorkflowsPropParameters""" - do_not_enforce_on_create: NotRequired[bool] - workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] +class RepositoryRuleCodeScanningType(TypedDict): + """code_scanning - -class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): - """WorkflowFileReference - - A workflow that must run for this rule to pass + 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. """ - path: str - ref: NotRequired[str] - repository_id: int - sha: NotRequired[str] + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] -__all__ = ( - "RepositoryRuleParamsWorkflowFileReferenceType", - "RepositoryRuleWorkflowsPropParametersType", -) +__all__ = ("RepositoryRuleCodeScanningType",) 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 0b473a6f2..0ce3aaee0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0132.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0132.py @@ -10,21 +10,29 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0133 import RepositoryRuleCodeScanningPropParametersType +class RepositoryRuleCodeScanningPropParametersType(TypedDict): + """RepositoryRuleCodeScanningPropParameters""" -class RepositoryRuleCodeScanningType(TypedDict): - """code_scanning + code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. + +class RepositoryRuleParamsCodeScanningToolType(TypedDict): + """CodeScanningTool + + A tool that must provide code scanning results for this rule to pass. """ - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + 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__ = ("RepositoryRuleCodeScanningType",) +__all__ = ( + "RepositoryRuleCodeScanningPropParametersType", + "RepositoryRuleParamsCodeScanningToolType", +) 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 0ce3aaee0..4a10ca88a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0133.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0133.py @@ -9,30 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict - -class RepositoryRuleCodeScanningPropParametersType(TypedDict): - """RepositoryRuleCodeScanningPropParameters""" - - code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] +from .group_0134 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, +) -class RepositoryRuleParamsCodeScanningToolType(TypedDict): - """CodeScanningTool +class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): + """Repository ruleset conditions for repository IDs - A tool that must provide code scanning results for this rule to pass. + Parameters for a repository ID condition """ - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] - tool: str + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -__all__ = ( - "RepositoryRuleCodeScanningPropParametersType", - "RepositoryRuleParamsCodeScanningToolType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) 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 d33ca49af..ab014ee2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0134.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0134.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0135 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" -class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): - """Repository ruleset conditions for repository IDs + repository_ids: NotRequired[list[int]] - Parameters for a repository ID condition - """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType - - -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) 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 ab014ee2b..c703e2611 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0135.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0135.py @@ -11,11 +11,22 @@ from typing_extensions import NotRequired, TypedDict +from .group_0088 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) +from .group_0090 import RepositoryRulesetConditionsPropRefNameType -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - repository_ids: NotRequired[list[int]] +class OrgRulesetConditionsOneof0Type(TypedDict): + """repository_name_and_ref_name + Conditions to target repositories by name and refs by name + """ -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) + + +__all__ = ("OrgRulesetConditionsOneof0Type",) 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 6ce3da67a..43c89bb86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0136.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0136.py @@ -11,22 +11,20 @@ from typing_extensions import NotRequired, TypedDict -from .group_0087 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +from .group_0090 import RepositoryRulesetConditionsPropRefNameType +from .group_0134 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) -from .group_0089 import RepositoryRulesetConditionsPropRefNameType -class OrgRulesetConditionsOneof0Type(TypedDict): - """repository_name_and_ref_name +class OrgRulesetConditionsOneof1Type(TypedDict): + """repository_id_and_ref_name - Conditions to target repositories by name and refs by name + Conditions to target repositories by id and refs by name """ ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -__all__ = ("OrgRulesetConditionsOneof0Type",) +__all__ = ("OrgRulesetConditionsOneof1Type",) 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 327ba9d7e..2145d60c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0137.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0137.py @@ -11,20 +11,22 @@ from typing_extensions import NotRequired, TypedDict -from .group_0089 import RepositoryRulesetConditionsPropRefNameType -from .group_0135 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, +from .group_0090 import RepositoryRulesetConditionsPropRefNameType +from .group_0092 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) -class OrgRulesetConditionsOneof1Type(TypedDict): - """repository_id_and_ref_name +class OrgRulesetConditionsOneof2Type(TypedDict): + """repository_property_and_ref_name - Conditions to target repositories by id and refs by name + Conditions to target repositories by property and refs by name """ ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) -__all__ = ("OrgRulesetConditionsOneof1Type",) +__all__ = ("OrgRulesetConditionsOneof2Type",) 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 9eab6d1ef..a6c25d74c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0138.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0138.py @@ -9,24 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0089 import RepositoryRulesetConditionsPropRefNameType -from .group_0091 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, -) +from .group_0139 import RepositoryRuleMergeQueuePropParametersType -class OrgRulesetConditionsOneof2Type(TypedDict): - """repository_property_and_ref_name +class RepositoryRuleMergeQueueType(TypedDict): + """merge_queue - Conditions to target repositories by property and refs by name + Merges must be performed via a merge queue. """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType - ) + type: Literal["merge_queue"] + parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] -__all__ = ("OrgRulesetConditionsOneof2Type",) +__all__ = ("RepositoryRuleMergeQueueType",) 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 044b6f2aa..4d32d8491 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0139.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0139.py @@ -9,120 +9,20 @@ 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_0083 import RepositoryRulesetBypassActorType -from .group_0088 import RepositoryRulesetConditionsType -from .group_0098 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0099 import RepositoryRuleUpdateType -from .group_0101 import RepositoryRuleRequiredLinearHistoryType -from .group_0102 import RepositoryRuleMergeQueueType -from .group_0104 import RepositoryRuleRequiredDeploymentsType -from .group_0107 import RepositoryRulePullRequestType -from .group_0109 import RepositoryRuleRequiredStatusChecksType -from .group_0111 import RepositoryRuleCommitMessagePatternType -from .group_0113 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0115 import RepositoryRuleCommitterEmailPatternType -from .group_0117 import RepositoryRuleBranchNamePatternType -from .group_0119 import RepositoryRuleTagNamePatternType -from .group_0121 import RepositoryRuleFilePathRestrictionType -from .group_0123 import RepositoryRuleMaxFilePathLengthType -from .group_0125 import RepositoryRuleFileExtensionRestrictionType -from .group_0127 import RepositoryRuleMaxFileSizeType -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0136 import OrgRulesetConditionsOneof0Type -from .group_0137 import OrgRulesetConditionsOneof1Type -from .group_0138 import OrgRulesetConditionsOneof2Type +class RepositoryRuleMergeQueuePropParametersType(TypedDict): + """RepositoryRuleMergeQueuePropParameters""" -class RepositoryRulesetType(TypedDict): - """Repository ruleset + 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 - 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, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -class RepositoryRulesetPropLinksType(TypedDict): - """RepositoryRulesetPropLinks""" - - self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] - html: NotRequired[Union[RepositoryRulesetPropLinksPropHtmlType, None]] - - -class RepositoryRulesetPropLinksPropSelfType(TypedDict): - """RepositoryRulesetPropLinksPropSelf""" - - href: NotRequired[str] - - -class RepositoryRulesetPropLinksPropHtmlType(TypedDict): - """RepositoryRulesetPropLinksPropHtml""" - - href: NotRequired[str] - - -__all__ = ( - "RepositoryRulesetPropLinksPropHtmlType", - "RepositoryRulesetPropLinksPropSelfType", - "RepositoryRulesetPropLinksType", - "RepositoryRulesetType", -) +__all__ = ("RepositoryRuleMergeQueuePropParametersType",) 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 ff64441e9..e3eee017a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0140.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0140.py @@ -10,20 +10,119 @@ 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_0141 import RulesetVersionPropActorType +from .group_0084 import RepositoryRulesetBypassActorType +from .group_0089 import RepositoryRulesetConditionsType +from .group_0099 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0100 import RepositoryRuleUpdateType +from .group_0102 import RepositoryRuleRequiredLinearHistoryType +from .group_0103 import RepositoryRuleRequiredDeploymentsType +from .group_0106 import RepositoryRulePullRequestType +from .group_0108 import RepositoryRuleRequiredStatusChecksType +from .group_0110 import RepositoryRuleCommitMessagePatternType +from .group_0112 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0114 import RepositoryRuleCommitterEmailPatternType +from .group_0116 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleTagNamePatternType +from .group_0120 import RepositoryRuleFilePathRestrictionType +from .group_0122 import RepositoryRuleMaxFilePathLengthType +from .group_0124 import RepositoryRuleFileExtensionRestrictionType +from .group_0126 import RepositoryRuleMaxFileSizeType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0131 import RepositoryRuleCodeScanningType +from .group_0135 import OrgRulesetConditionsOneof0Type +from .group_0136 import OrgRulesetConditionsOneof1Type +from .group_0137 import OrgRulesetConditionsOneof2Type +from .group_0138 import RepositoryRuleMergeQueueType -class RulesetVersionType(TypedDict): - """Ruleset version +class RepositoryRulesetType(TypedDict): + """Repository ruleset - The historical version of a ruleset + A set of rules to apply when specified conditions are met. """ - version_id: int - actor: RulesetVersionPropActorType - updated_at: datetime + id: int + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + source_type: NotRequired[Literal["Repository", "Organization", "Enterprise"]] + source: str + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + current_user_can_bypass: NotRequired[ + Literal["always", "pull_requests_only", "never"] + ] + node_id: NotRequired[str] + links: NotRequired[RepositoryRulesetPropLinksType] + conditions: NotRequired[ + Union[ + RepositoryRulesetConditionsType, + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + None, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] -__all__ = ("RulesetVersionType",) +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", +) 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 8966c1c93..d51197ead 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0141.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0141.py @@ -9,17 +9,21 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict +from .group_0142 import RulesetVersionPropActorType -class RulesetVersionPropActorType(TypedDict): - """RulesetVersionPropActor - The actor who updated the ruleset +class RulesetVersionType(TypedDict): + """Ruleset version + + The historical version of a ruleset """ - id: NotRequired[int] - type: NotRequired[str] + version_id: int + actor: RulesetVersionPropActorType + updated_at: datetime -__all__ = ("RulesetVersionPropActorType",) +__all__ = ("RulesetVersionType",) 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 3b3468132..8966c1c93 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0142.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0142.py @@ -9,20 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0141 import RulesetVersionPropActorType -from .group_0144 import RulesetVersionWithStateAllof1PropStateType +class RulesetVersionPropActorType(TypedDict): + """RulesetVersionPropActor -class RulesetVersionWithStateType(TypedDict): - """RulesetVersionWithState""" + The actor who updated the ruleset + """ - version_id: int - actor: RulesetVersionPropActorType - updated_at: datetime - state: RulesetVersionWithStateAllof1PropStateType + id: NotRequired[int] + type: NotRequired[str] -__all__ = ("RulesetVersionWithStateType",) +__all__ = ("RulesetVersionPropActorType",) 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 f7c047870..d4daaa86e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0143.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0143.py @@ -9,15 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -from .group_0144 import RulesetVersionWithStateAllof1PropStateType +from .group_0142 import RulesetVersionPropActorType +from .group_0145 import RulesetVersionWithStateAllof1PropStateType -class RulesetVersionWithStateAllof1Type(TypedDict): - """RulesetVersionWithStateAllof1""" +class RulesetVersionWithStateType(TypedDict): + """RulesetVersionWithState""" + version_id: int + actor: RulesetVersionPropActorType + updated_at: datetime state: RulesetVersionWithStateAllof1PropStateType -__all__ = ("RulesetVersionWithStateAllof1Type",) +__all__ = ("RulesetVersionWithStateType",) 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 c09a8e009..91e76cfee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0144.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0144.py @@ -11,12 +11,13 @@ from typing_extensions import TypedDict +from .group_0145 import RulesetVersionWithStateAllof1PropStateType -class RulesetVersionWithStateAllof1PropStateType(TypedDict): - """RulesetVersionWithStateAllof1PropState - The state of the ruleset version - """ +class RulesetVersionWithStateAllof1Type(TypedDict): + """RulesetVersionWithStateAllof1""" + state: RulesetVersionWithStateAllof1PropStateType -__all__ = ("RulesetVersionWithStateAllof1PropStateType",) + +__all__ = ("RulesetVersionWithStateAllof1Type",) 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 b50ccb144..c09a8e009 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0145.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0145.py @@ -12,98 +12,11 @@ from typing_extensions import TypedDict -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit +class RulesetVersionWithStateAllof1PropStateType(TypedDict): + """RulesetVersionWithStateAllof1PropState - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. + The state of the ruleset version """ - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str - - -class SecretScanningLocationPullRequestReviewType(TypedDict): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str - - -__all__ = ( - "SecretScanningLocationCommitType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationWikiCommitType", -) +__all__ = ("RulesetVersionWithStateAllof1PropStateType",) 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 f78b830c8..b50ccb144 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0146.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0146.py @@ -12,50 +12,98 @@ from typing_extensions import TypedDict -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. """ - issue_title_url: str + 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 SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. """ - issue_comment_url: str + 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 SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody - 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. + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. """ - pull_request_title_url: str + issue_body_url: str -class SecretScanningLocationPullRequestReviewCommentType(TypedDict): - """SecretScanningLocationPullRequestReviewComment +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle - 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. + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. """ - pull_request_review_comment_url: str + discussion_title_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str __all__ = ( - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationPullRequestReviewCommentType", - "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationCommitType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationWikiCommitType", ) 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 fad48635c..f78b830c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0147.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0147.py @@ -12,27 +12,50 @@ from typing_extensions import TypedDict -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. """ - discussion_body_url: str + issue_title_url: str -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment - 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. + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. """ - pull_request_comment_url: str + issue_comment_url: str + + +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str __all__ = ( - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationPullRequestCommentType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationPullRequestReviewCommentType", + "SecretScanningLocationPullRequestTitleType", ) 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 aa6fb7c53..fad48635c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0148.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0148.py @@ -9,83 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0061 import SimpleRepositoryType -from .group_0145 import ( - SecretScanningLocationCommitType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationWikiCommitType, -) -from .group_0146 import ( - SecretScanningLocationIssueCommentType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationPullRequestReviewCommentType, - SecretScanningLocationPullRequestTitleType, -) -from .group_0147 import ( - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationPullRequestCommentType, -) +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 OrganizationSecretScanningAlertType(TypedDict): - """OrganizationSecretScanningAlert""" + discussion_body_url: str - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - repository: NotRequired[SimpleRepositoryType] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - resolution_comment: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - is_base64_encoded: NotRequired[Union[bool, None]] - first_location_detected: NotRequired[ - Union[ - None, - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - has_more_locations: NotRequired[bool] +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment -__all__ = ("OrganizationSecretScanningAlertType",) + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str + + +__all__ = ( + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationPullRequestCommentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0149.py b/githubkit/versions/ghec_v2022_11_28/types/group_0149.py index fb14d5d5d..2c9446015 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0149.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0149.py @@ -9,39 +9,83 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union 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 +from .group_0003 import SimpleUserType +from .group_0061 import SimpleRepositoryType +from .group_0146 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0147 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0148 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): - """ActionsBillingUsagePropMinutesUsedBreakdown""" +class OrganizationSecretScanningAlertType(TypedDict): + """OrganizationSecretScanningAlert""" - 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] + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + repository: NotRequired[SimpleRepositoryType] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + resolution_comment: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + is_base64_encoded: NotRequired[Union[bool, None]] + first_location_detected: NotRequired[ + Union[ + None, + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + has_more_locations: NotRequired[bool] -__all__ = ( - "ActionsBillingUsagePropMinutesUsedBreakdownType", - "ActionsBillingUsageType", -) +__all__ = ("OrganizationSecretScanningAlertType",) 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 481d2d694..fb14d5d5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0150.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0150.py @@ -12,36 +12,36 @@ from typing_extensions import NotRequired, TypedDict -class AdvancedSecurityActiveCommittersType(TypedDict): - """AdvancedSecurityActiveCommitters""" - - 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] - - -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 +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__ = ( - "AdvancedSecurityActiveCommittersRepositoryType", - "AdvancedSecurityActiveCommittersType", - "AdvancedSecurityActiveCommittersUserType", + "ActionsBillingUsagePropMinutesUsedBreakdownType", + "ActionsBillingUsageType", ) 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 565b462a0..481d2d694 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0151.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0151.py @@ -9,34 +9,39 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class GetAllCostCentersType(TypedDict): - """GetAllCostCenters""" +class AdvancedSecurityActiveCommittersType(TypedDict): + """AdvancedSecurityActiveCommitters""" - cost_centers: NotRequired[list[GetAllCostCentersPropCostCentersItemsType]] + 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] -class GetAllCostCentersPropCostCentersItemsType(TypedDict): - """GetAllCostCentersPropCostCentersItems""" +class AdvancedSecurityActiveCommittersRepositoryType(TypedDict): + """AdvancedSecurityActiveCommittersRepository""" - id: str name: str - state: NotRequired[Literal["active", "deleted"]] - resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItemsType] + advanced_security_committers: int + advanced_security_committers_breakdown: list[ + AdvancedSecurityActiveCommittersUserType + ] -class GetAllCostCentersPropCostCentersItemsPropResourcesItemsType(TypedDict): - """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" +class AdvancedSecurityActiveCommittersUserType(TypedDict): + """AdvancedSecurityActiveCommittersUser""" - type: str - name: str + user_login: str + last_pushed_date: str + last_pushed_email: str __all__ = ( - "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", - "GetAllCostCentersPropCostCentersItemsType", - "GetAllCostCentersType", + "AdvancedSecurityActiveCommittersRepositoryType", + "AdvancedSecurityActiveCommittersType", + "AdvancedSecurityActiveCommittersUserType", ) 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 ad1f80401..565b462a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0152.py @@ -9,25 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class GetCostCenterType(TypedDict): - """GetCostCenter""" +class GetAllCostCentersType(TypedDict): + """GetAllCostCenters""" + + cost_centers: NotRequired[list[GetAllCostCentersPropCostCentersItemsType]] + + +class GetAllCostCentersPropCostCentersItemsType(TypedDict): + """GetAllCostCentersPropCostCentersItems""" id: str name: str - resources: list[GetCostCenterPropResourcesItemsType] + state: NotRequired[Literal["active", "deleted"]] + resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItemsType] -class GetCostCenterPropResourcesItemsType(TypedDict): - """GetCostCenterPropResourcesItems""" +class GetAllCostCentersPropCostCentersItemsPropResourcesItemsType(TypedDict): + """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" type: str name: str __all__ = ( - "GetCostCenterPropResourcesItemsType", - "GetCostCenterType", + "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", + "GetAllCostCentersPropCostCentersItemsType", + "GetAllCostCentersType", ) 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 7a0099d4f..ad1f80401 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0153.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0153.py @@ -9,17 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class DeleteCostCenterType(TypedDict): - """DeleteCostCenter""" +class GetCostCenterType(TypedDict): + """GetCostCenter""" - message: str id: str name: str - cost_center_state: Literal["CostCenterArchived"] + resources: list[GetCostCenterPropResourcesItemsType] -__all__ = ("DeleteCostCenterType",) +class GetCostCenterPropResourcesItemsType(TypedDict): + """GetCostCenterPropResourcesItems""" + + type: str + name: str + + +__all__ = ( + "GetCostCenterPropResourcesItemsType", + "GetCostCenterType", +) 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 cac22c41a..7a0099d4f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0154.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0154.py @@ -9,15 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class PackagesBillingUsageType(TypedDict): - """PackagesBillingUsage""" +class DeleteCostCenterType(TypedDict): + """DeleteCostCenter""" - total_gigabytes_bandwidth_used: int - total_paid_gigabytes_bandwidth_used: int - included_gigabytes_bandwidth: int + message: str + id: str + name: str + cost_center_state: Literal["CostCenterArchived"] -__all__ = ("PackagesBillingUsageType",) +__all__ = ("DeleteCostCenterType",) 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 15a19a09d..cac22c41a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0155.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0155.py @@ -12,12 +12,12 @@ from typing_extensions import TypedDict -class CombinedBillingUsageType(TypedDict): - """CombinedBillingUsage""" +class PackagesBillingUsageType(TypedDict): + """PackagesBillingUsage""" - days_left_in_billing_cycle: int - estimated_paid_storage_for_month: int - estimated_storage_for_month: int + total_gigabytes_bandwidth_used: int + total_paid_gigabytes_bandwidth_used: int + included_gigabytes_bandwidth: int -__all__ = ("CombinedBillingUsageType",) +__all__ = ("PackagesBillingUsageType",) 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 8b794ad2d..15a19a09d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0156.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0156.py @@ -9,32 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class BillingUsageReportType(TypedDict): - """BillingUsageReport""" +class CombinedBillingUsageType(TypedDict): + """CombinedBillingUsage""" - usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] + days_left_in_billing_cycle: int + estimated_paid_storage_for_month: int + estimated_storage_for_month: int -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__ = ("CombinedBillingUsageType",) 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 1bd13ab39..8b794ad2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0157.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0157.py @@ -9,35 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0003 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 + + +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__ = ( + "BillingUsageReportPropUsageItemsItemsType", + "BillingUsageReportType", +) 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 a99164b42..1bd13ab39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0158.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0158.py @@ -11,30 +11,33 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class IssueTypeType(TypedDict): - """Issue Type - The type of issue. +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 - name: str + number: int + state: Literal["open", "closed"] + title: str description: Union[str, None] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - is_enabled: NotRequired[bool] - - -__all__ = ("IssueTypeType",) + 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/ghec_v2022_11_28/types/group_0159.py b/githubkit/versions/ghec_v2022_11_28/types/group_0159.py index 8a6080a74..a99164b42 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0159.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0159.py @@ -9,22 +9,32 @@ 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 datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class IssueTypeType(TypedDict): + """Issue Type + + The type of issue. + """ + + id: int + node_id: str + name: str + description: Union[str, None] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + is_enabled: NotRequired[bool] + + +__all__ = ("IssueTypeType",) 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 9c4a31132..8a6080a74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0160.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0160.py @@ -9,107 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0020 import RepositoryType -from .group_0157 import MilestoneType -from .group_0158 import IssueTypeType -from .group_0159 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", "duplicate"]] - ] - title: str - body: NotRequired[Union[str, None]] - user: Union[None, SimpleUserType] - labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - milestone: Union[None, MilestoneType] - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - comments: int - pull_request: NotRequired[IssuePropPullRequestType] - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - draft: NotRequired[bool] - closed_by: NotRequired[Union[None, SimpleUserType]] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - repository: NotRequired[RepositoryType] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - sub_issues_summary: NotRequired[SubIssuesSummaryType] - - -class SubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class IssuePropLabelsItemsOneof1Type(TypedDict): - """IssuePropLabelsItemsOneof1""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - default: NotRequired[bool] - - -class IssuePropPullRequestType(TypedDict): - """IssuePropPullRequest""" - - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] - - -__all__ = ( - "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/ghec_v2022_11_28/types/group_0161.py b/githubkit/versions/ghec_v2022_11_28/types/group_0161.py index 8634903ae..3538ffdb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0161.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0161.py @@ -9,44 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0159 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",) +from typing_extensions import TypedDict + + +class SubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +__all__ = ("SubIssuesSummaryType",) 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 04c6138dd..bd106bfea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0162.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0162.py @@ -10,75 +10,98 @@ 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_0160 import IssueType -from .group_0161 import IssueCommentType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0158 import MilestoneType +from .group_0159 import IssueTypeType +from .group_0160 import ReactionRollupType +from .group_0161 import SubIssuesSummaryType -class EventPropPayloadType(TypedDict): - """EventPropPayload""" +class IssueType(TypedDict): + """Issue - 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 + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ 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 + node_id: str url: str + repository_url: str + labels_url: str + comments_url: str + events_url: str + html_url: str + number: int + state: str + state_reason: NotRequired[ + Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] + ] + title: str + body: NotRequired[Union[str, None]] + user: Union[None, SimpleUserType] + labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + milestone: Union[None, MilestoneType] + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + comments: int + pull_request: NotRequired[IssuePropPullRequestType] + closed_at: Union[datetime, None] + created_at: datetime + updated_at: datetime + draft: NotRequired[bool] + closed_by: NotRequired[Union[None, SimpleUserType]] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + repository: NotRequired[RepositoryType] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + reactions: NotRequired[ReactionRollupType] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + + +class 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__ = ( - "ActorType", - "EventPropPayloadPropPagesItemsType", - "EventPropPayloadType", - "EventPropRepoType", - "EventType", + "IssuePropLabelsItemsOneof1Type", + "IssuePropPullRequestType", + "IssueType", ) 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 b0afe5713..01d3e1040 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0163.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0163.py @@ -9,55 +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_0010 import IntegrationType +from .group_0160 import ReactionRollupType -class FeedType(TypedDict): - """Feed - Feed - """ +class IssueCommentType(TypedDict): + """Issue Comment - 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 + Comments provide a way for people to collaborate on an issue. """ - href: str - type: str - - -__all__ = ( - "FeedPropLinksType", - "FeedType", - "LinkWithTypeType", -) + 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",) 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 0b66a8534..566fedc4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0164.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0164.py @@ -10,47 +10,75 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0162 import IssueType +from .group_0163 import IssueCommentType -class BaseGistType(TypedDict): - """Base Gist +class EventPropPayloadType(TypedDict): + """EventPropPayload""" - Base Gist + 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 """ - 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 + type: Union[str, None] + actor: ActorType + repo: EventPropRepoType + org: NotRequired[ActorType] + payload: EventPropPayloadType public: bool - created_at: datetime - updated_at: datetime - description: Union[str, None] - comments: int - comments_enabled: NotRequired[bool] - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - forks: NotRequired[list[Any]] - history: NotRequired[list[Any]] - - -BaseGistPropFilesType: TypeAlias = dict[str, Any] -"""BaseGistPropFiles -""" + 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__ = ( - "BaseGistPropFilesType", - "BaseGistType", + "ActorType", + "EventPropPayloadPropPagesItemsType", + "EventPropPayloadType", + "EventPropRepoType", + "EventType", ) 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 7969063ff..b0afe5713 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0165.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0165.py @@ -9,71 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class FeedType(TypedDict): + """Feed -class GistHistoryType(TypedDict): - """Gist History - - Gist History + Feed """ - 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 + 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: 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 -""" + href: str + type: str __all__ = ( - "GistHistoryPropChangeStatusType", - "GistHistoryType", - "GistSimplePropForkOfPropFilesType", - "GistSimplePropForkOfType", + "FeedPropLinksType", + "FeedType", + "LinkWithTypeType", ) 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 d766feb3b..0b66a8534 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0166.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0166.py @@ -14,115 +14,43 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0165 import GistHistoryType, GistSimplePropForkOfType -class GistSimpleType(TypedDict): - """Gist Simple +class BaseGistType(TypedDict): + """Base Gist - Gist Simple + Base Gist """ - 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 + 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: BaseGistPropFilesType + 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[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 +BaseGistPropFilesType: TypeAlias = dict[str, Any] +"""BaseGistPropFiles +""" __all__ = ( - "GistSimplePropFilesType", - "GistSimplePropForksItemsType", - "GistSimpleType", - "PublicUserPropPlanType", - "PublicUserType", + "BaseGistPropFilesType", + "BaseGistType", ) 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 d69692063..7969063ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0167.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0167.py @@ -10,35 +10,70 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -class GistCommentType(TypedDict): - """Gist Comment +class GistHistoryType(TypedDict): + """Gist History - A comment made to a 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 """ - id: int - node_id: str url: str - body: str - user: Union[None, SimpleUserType] + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: GistSimplePropForkOfPropFilesType + public: bool created_at: datetime updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - - -__all__ = ("GistCommentType",) + description: Union[str, None] + comments: int + comments_enabled: NotRequired[bool] + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[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_0168.py b/githubkit/versions/ghec_v2022_11_28/types/group_0168.py index a6cb34469..19208cd91 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0168.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0168.py @@ -10,34 +10,119 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType +from .group_0167 import GistHistoryType, GistSimplePropForkOfType -class GistCommitType(TypedDict): - """Gist Commit +class GistSimpleType(TypedDict): + """Gist Simple - Gist Commit + 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 - version: str - user: Union[None, SimpleUserType] - change_status: GistCommitPropChangeStatusType - committed_at: datetime + 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 GistCommitPropChangeStatusType(TypedDict): - """GistCommitPropChangeStatus""" +class PublicUserPropPlanType(TypedDict): + """PublicUserPropPlan""" - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] + collaborators: int + name: str + space: int + private_repos: int __all__ = ( - "GistCommitPropChangeStatusType", - "GistCommitType", + "GistSimplePropFilesType", + "GistSimplePropForksItemsType", + "GistSimpleType", + "PublicUserPropPlanType", + "PublicUserType", ) 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 69bf98302..d69692063 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0169.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0169.py @@ -9,17 +9,36 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class GitignoreTemplateType(TypedDict): - """Gitignore Template - Gitignore Template - """ - - name: str - source: str +class GistCommentType(TypedDict): + """Gist Comment + A comment made to a gist. + """ -__all__ = ("GitignoreTemplateType",) + 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", + ] + + +__all__ = ("GistCommentType",) 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 f471d8c73..a6cb34469 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0170.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0170.py @@ -9,29 +9,35 @@ 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 -class LicenseType(TypedDict): - """License - License +class GistCommitType(TypedDict): + """Gist Commit + + Gist Commit """ - 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",) + 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__ = ( + "GistCommitPropChangeStatusType", + "GistCommitType", +) 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 59d9a8af7..69bf98302 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0171.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0171.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -class MarketplaceListingPlanType(TypedDict): - """Marketplace Listing Plan +class GitignoreTemplateType(TypedDict): + """Gitignore Template - Marketplace Listing Plan + Gitignore Template """ - 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] + source: str -__all__ = ("MarketplaceListingPlanType",) +__all__ = ("GitignoreTemplateType",) 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 ff1e80fed..f471d8c73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0172.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0172.py @@ -10,30 +10,28 @@ from __future__ import annotations from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0173 import ( - MarketplacePurchasePropMarketplacePendingChangeType, - MarketplacePurchasePropMarketplacePurchaseType, -) +class LicenseType(TypedDict): + """License -class MarketplacePurchaseType(TypedDict): - """Marketplace Purchase - - Marketplace Purchase + License """ - 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",) + 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_0173.py b/githubkit/versions/ghec_v2022_11_28/types/group_0173.py index 5e45b041f..59d9a8af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0173.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0173.py @@ -9,36 +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_0171 import MarketplaceListingPlanType +class MarketplaceListingPlanType(TypedDict): + """Marketplace Listing Plan -class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): - """MarketplacePurchasePropMarketplacePendingChange""" + Marketplace Listing Plan + """ - is_installed: NotRequired[bool] - effective_date: NotRequired[str] - unit_count: NotRequired[Union[int, None]] - id: NotRequired[int] - plan: NotRequired[MarketplaceListingPlanType] + 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] -class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: NotRequired[str] - next_billing_date: NotRequired[Union[str, None]] - is_installed: NotRequired[bool] - unit_count: NotRequired[Union[int, None]] - on_free_trial: NotRequired[bool] - free_trial_ends_on: NotRequired[Union[str, None]] - updated_at: NotRequired[str] - plan: NotRequired[MarketplaceListingPlanType] - - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChangeType", - "MarketplacePurchasePropMarketplacePurchaseType", -) +__all__ = ("MarketplaceListingPlanType",) 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 d0e33aad3..c1865a1f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0174.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0174.py @@ -9,75 +9,31 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0175 import ( + MarketplacePurchasePropMarketplacePendingChangeType, + MarketplacePurchasePropMarketplacePurchaseType, +) -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""" - - sha256_rsa: NotRequired[str] - sha256_dsa: NotRequired[str] - sha256_ecdsa: NotRequired[str] - sha256_ed25519: NotRequired[str] +class MarketplacePurchaseType(TypedDict): + """Marketplace Purchase -class ApiOverviewPropDomainsType(TypedDict): - """ApiOverviewPropDomains""" + Marketplace Purchase + """ - 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 + 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 -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__ = ("MarketplacePurchaseType",) 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 51d9bdcb4..6d1652f5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0175.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0175.py @@ -9,92 +9,36 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0173 import MarketplaceListingPlanType -class SecurityAndAnalysisType(TypedDict): - """SecurityAndAnalysis""" - advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] - code_security: NotRequired[SecurityAndAnalysisPropCodeSecurityType] - dependabot_security_updates: NotRequired[ - SecurityAndAnalysisPropDependabotSecurityUpdatesType - ] - secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] - secret_scanning_push_protection: NotRequired[ - SecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - SecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - secret_scanning_ai_detection: NotRequired[ - SecurityAndAnalysisPropSecretScanningAiDetectionType - ] - secret_scanning_validity_checks: NotRequired[ - SecurityAndAnalysisPropSecretScanningValidityChecksType - ] +class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): + """MarketplacePurchasePropMarketplacePendingChange""" + is_installed: NotRequired[bool] + effective_date: NotRequired[str] + unit_count: NotRequired[Union[int, None]] + id: NotRequired[int] + plan: NotRequired[MarketplaceListingPlanType] -class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """SecurityAndAnalysisPropAdvancedSecurity""" - status: NotRequired[Literal["enabled", "disabled"]] +class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): + """MarketplacePurchasePropMarketplacePurchase""" - -class SecurityAndAnalysisPropCodeSecurityType(TypedDict): - """SecurityAndAnalysisPropCodeSecurity""" - - 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"]] + 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__ = ( - "SecurityAndAnalysisPropAdvancedSecurityType", - "SecurityAndAnalysisPropCodeSecurityType", - "SecurityAndAnalysisPropDependabotSecurityUpdatesType", - "SecurityAndAnalysisPropSecretScanningAiDetectionType", - "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "SecurityAndAnalysisPropSecretScanningPushProtectionType", - "SecurityAndAnalysisPropSecretScanningType", - "SecurityAndAnalysisPropSecretScanningValidityChecksType", - "SecurityAndAnalysisType", + "MarketplacePurchasePropMarketplacePendingChangeType", + "MarketplacePurchasePropMarketplacePurchaseType", ) 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 d780dc15e..d0e33aad3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0176.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0176.py @@ -9,156 +9,75 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0175 import SecurityAndAnalysisType +class ApiOverviewType(TypedDict): + """Api Overview -class MinimalRepositoryType(TypedDict): - """Minimal Repository - - Minimal Repository + Api Overview """ - 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]] - custom_properties: NotRequired[MinimalRepositoryPropCustomPropertiesType] - - -class CodeOfConductType(TypedDict): - """Code Of Conduct - - Code Of Conduct - """ + 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] - key: str - name: str - url: str - body: NotRequired[str] - html_url: Union[str, None] +class ApiOverviewPropSshKeyFingerprintsType(TypedDict): + """ApiOverviewPropSshKeyFingerprints""" -class MinimalRepositoryPropPermissionsType(TypedDict): - """MinimalRepositoryPropPermissions""" + sha256_rsa: NotRequired[str] + sha256_dsa: NotRequired[str] + sha256_ecdsa: NotRequired[str] + sha256_ed25519: NotRequired[str] - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] +class ApiOverviewPropDomainsType(TypedDict): + """ApiOverviewPropDomains""" -class MinimalRepositoryPropLicenseType(TypedDict): - """MinimalRepositoryPropLicense""" + 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 + ] - key: NotRequired[str] - name: NotRequired[str] - spdx_id: NotRequired[str] - url: NotRequired[str] - node_id: NotRequired[str] +class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): + """ApiOverviewPropDomainsPropActionsInbound""" -MinimalRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""MinimalRepositoryPropCustomProperties + full_domains: NotRequired[list[str]] + wildcard_domains: NotRequired[list[str]] -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 ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): + """ApiOverviewPropDomainsPropArtifactAttestations""" + + trust_domain: NotRequired[str] + services: NotRequired[list[str]] __all__ = ( - "CodeOfConductType", - "MinimalRepositoryPropCustomPropertiesType", - "MinimalRepositoryPropLicenseType", - "MinimalRepositoryPropPermissionsType", - "MinimalRepositoryType", + "ApiOverviewPropDomainsPropActionsInboundType", + "ApiOverviewPropDomainsPropArtifactAttestationsType", + "ApiOverviewPropDomainsType", + "ApiOverviewPropSshKeyFingerprintsType", + "ApiOverviewType", ) 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 f9558beee..eac5505a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0177.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0177.py @@ -9,39 +9,98 @@ 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_0176 import MinimalRepositoryType +class SecurityAndAnalysisType(TypedDict): + """SecurityAndAnalysis""" -class ThreadType(TypedDict): - """Thread + advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] + code_security: NotRequired[SecurityAndAnalysisPropCodeSecurityType] + dependabot_security_updates: NotRequired[ + SecurityAndAnalysisPropDependabotSecurityUpdatesType + ] + secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] + secret_scanning_push_protection: NotRequired[ + SecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_ai_detection: NotRequired[ + SecurityAndAnalysisPropSecretScanningAiDetectionType + ] + secret_scanning_validity_checks: NotRequired[ + SecurityAndAnalysisPropSecretScanningValidityChecksType + ] - Thread + +class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """SecurityAndAnalysisPropAdvancedSecurity + + Enable or disable GitHub Advanced Security for the repository. + + For standalone Code Scanning or Secret Protection products, this parameter + cannot be used. + """ + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropCodeSecurityType(TypedDict): + """SecurityAndAnalysisPropCodeSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - id: str - repository: MinimalRepositoryType - subject: ThreadPropSubjectType - reason: str - unread: bool - updated_at: str - last_read_at: Union[str, None] - url: str - subscription_url: str + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningType(TypedDict): + """SecurityAndAnalysisPropSecretScanning""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningAiDetection""" + + status: NotRequired[Literal["enabled", "disabled"]] -class ThreadPropSubjectType(TypedDict): - """ThreadPropSubject""" +class SecurityAndAnalysisPropSecretScanningValidityChecksType(TypedDict): + """SecurityAndAnalysisPropSecretScanningValidityChecks""" - title: str - url: str - latest_comment_url: str - type: str + status: NotRequired[Literal["enabled", "disabled"]] __all__ = ( - "ThreadPropSubjectType", - "ThreadType", + "SecurityAndAnalysisPropAdvancedSecurityType", + "SecurityAndAnalysisPropCodeSecurityType", + "SecurityAndAnalysisPropDependabotSecurityUpdatesType", + "SecurityAndAnalysisPropSecretScanningAiDetectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningType", + "SecurityAndAnalysisPropSecretScanningValidityChecksType", + "SecurityAndAnalysisType", ) 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 f0966921a..10454244f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0178.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0178.py @@ -10,23 +10,155 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0177 import SecurityAndAnalysisType -class ThreadSubscriptionType(TypedDict): - """Thread Subscription - Thread Subscription +class MinimalRepositoryType(TypedDict): + """Minimal Repository + + Minimal Repository """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: Union[datetime, 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 - thread_url: NotRequired[str] - repository_url: NotRequired[str] + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: NotRequired[str] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: NotRequired[str] + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: NotRequired[str] + mirror_url: NotRequired[Union[str, None]] + hooks_url: str + svn_url: NotRequired[str] + homepage: NotRequired[Union[str, None]] + language: NotRequired[Union[str, None]] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + has_discussions: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[Union[datetime, None]] + created_at: NotRequired[Union[datetime, None]] + updated_at: NotRequired[Union[datetime, None]] + permissions: NotRequired[MinimalRepositoryPropPermissionsType] + role_name: NotRequired[str] + temp_clone_token: NotRequired[Union[str, None]] + delete_branch_on_merge: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + code_of_conduct: NotRequired[CodeOfConductType] + license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] + forks: NotRequired[int] + open_issues: NotRequired[int] + watchers: NotRequired[int] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[MinimalRepositoryPropCustomPropertiesType] + + +class CodeOfConductType(TypedDict): + """Code Of Conduct + + Code Of Conduct + """ + + key: str + name: str + url: str + body: NotRequired[str] + html_url: Union[str, None] + + +class MinimalRepositoryPropPermissionsType(TypedDict): + """MinimalRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] + + +class MinimalRepositoryPropLicenseType(TypedDict): + """MinimalRepositoryPropLicense""" + + key: NotRequired[str] + name: NotRequired[str] + spdx_id: NotRequired[str] + url: NotRequired[str] + node_id: NotRequired[str] + + +MinimalRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""MinimalRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -__all__ = ("ThreadSubscriptionType",) +__all__ = ( + "CodeOfConductType", + "MinimalRepositoryPropCustomPropertiesType", + "MinimalRepositoryPropLicenseType", + "MinimalRepositoryPropPermissionsType", + "MinimalRepositoryType", +) 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 7ed63b48e..7938fdda8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0179.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0179.py @@ -9,27 +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_0003 import SimpleUserType +from .group_0178 import MinimalRepositoryType -class OrganizationCustomRepositoryRoleType(TypedDict): - """Organization Custom Repository Role +class ThreadType(TypedDict): + """Thread - Custom repository roles created by organization owners + Thread """ - 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 + id: str + repository: MinimalRepositoryType + subject: ThreadPropSubjectType + reason: str + unread: bool + updated_at: str + last_read_at: Union[str, None] + url: str + subscription_url: str -__all__ = ("OrganizationCustomRepositoryRoleType",) +class ThreadPropSubjectType(TypedDict): + """ThreadPropSubject""" + + title: str + url: str + latest_comment_url: str + type: str + + +__all__ = ( + "ThreadPropSubjectType", + "ThreadType", +) 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 a06f840f9..f0966921a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0180.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0180.py @@ -9,21 +9,24 @@ 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_0061 import SimpleRepositoryType +class ThreadSubscriptionType(TypedDict): + """Thread Subscription -class DependabotRepositoryAccessDetailsType(TypedDict): - """Dependabot Repository Access Details - - Information about repositories that Dependabot is able to access in an - organization + Thread Subscription """ - default_level: NotRequired[Union[None, Literal["public", "internal"]]] - accessible_repositories: NotRequired[list[Union[None, SimpleRepositoryType]]] + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: Union[datetime, None] + url: str + thread_url: NotRequired[str] + repository_url: NotRequired[str] -__all__ = ("DependabotRepositoryAccessDetailsType",) +__all__ = ("ThreadSubscriptionType",) 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 18d7defaa..7ed63b48e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0181.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0181.py @@ -10,105 +10,26 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -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 OrganizationCustomRepositoryRoleType(TypedDict): + """Organization Custom Repository Role - 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. + Custom repository roles created by organization owners """ - login: str id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[OrganizationFullPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - default_repository_branch: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_delete_repositories: NotRequired[bool] - members_can_change_repo_visibility: NotRequired[bool] - members_can_invite_outside_collaborators: NotRequired[bool] - members_can_delete_issues: NotRequired[bool] - display_commenter_full_name_setting_enabled: NotRequired[bool] - readers_can_create_discussions: NotRequired[bool] - members_can_create_teams: NotRequired[bool] - members_can_view_dependency_insights: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - secret_scanning_validity_checks_enabled: NotRequired[bool] + 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 - 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__ = ( - "OrganizationFullPropPlanType", - "OrganizationFullType", -) +__all__ = ("OrganizationCustomRepositoryRoleType",) 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 f8ed08e06..a06f840f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0182.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0182.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_0061 import SimpleRepositoryType -class OidcCustomSubType(TypedDict): - """Actions OIDC Subject customization - Actions OIDC Subject customization +class DependabotRepositoryAccessDetailsType(TypedDict): + """Dependabot Repository Access Details + + Information about repositories that Dependabot is able to access in an + organization """ - include_claim_keys: list[str] + default_level: NotRequired[Union[None, Literal["public", "internal"]]] + accessible_repositories: NotRequired[list[Union[None, SimpleRepositoryType]]] -__all__ = ("OidcCustomSubType",) +__all__ = ("DependabotRepositoryAccessDetailsType",) 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 f02f87f3d..18d7defaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0183.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0183.py @@ -9,17 +9,106 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class ActionsOrganizationPermissionsType(TypedDict): - """ActionsOrganizationPermissions""" +class OrganizationFullType(TypedDict): + """Organization Full - enabled_repositories: Literal["all", "none", "selected"] - selected_repositories_url: NotRequired[str] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + 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. -__all__ = ("ActionsOrganizationPermissionsType",) + 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]] + default_repository_branch: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_delete_repositories: NotRequired[bool] + members_can_change_repo_visibility: NotRequired[bool] + members_can_invite_outside_collaborators: NotRequired[bool] + members_can_delete_issues: NotRequired[bool] + display_commenter_full_name_setting_enabled: NotRequired[bool] + readers_can_create_discussions: NotRequired[bool] + members_can_create_teams: NotRequired[bool] + members_can_view_dependency_insights: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + secret_scanning_validity_checks_enabled: NotRequired[bool] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] + deploy_keys_enabled_for_repositories: NotRequired[bool] + + +class OrganizationFullPropPlanType(TypedDict): + """OrganizationFullPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] + + +__all__ = ( + "OrganizationFullPropPlanType", + "OrganizationFullType", +) 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 f67033a97..f8ed08e06 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0184.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0184.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsPublicKeyType(TypedDict): - """ActionsPublicKey +class OidcCustomSubType(TypedDict): + """Actions OIDC Subject customization - The public key used for setting Actions Secrets. + Actions OIDC Subject customization """ - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + include_claim_keys: list[str] -__all__ = ("ActionsPublicKeyType",) +__all__ = ("OidcCustomSubType",) 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 1a4992005..f02f87f3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0185.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0185.py @@ -9,85 +9,17 @@ 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_0056 import BypassResponseType +class ActionsOrganizationPermissionsType(TypedDict): + """ActionsOrganizationPermissions""" -class SecretScanningBypassRequestType(TypedDict): - """Secret scanning bypass request + 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 bypass request made by a user asking to be exempted from push protection in - this repository. - """ - id: NotRequired[int] - number: NotRequired[int] - repository: NotRequired[SecretScanningBypassRequestPropRepositoryType] - organization: NotRequired[SecretScanningBypassRequestPropOrganizationType] - requester: NotRequired[SecretScanningBypassRequestPropRequesterType] - request_type: NotRequired[str] - data: NotRequired[Union[list[SecretScanningBypassRequestPropDataItemsType], None]] - resource_identifier: NotRequired[str] - status: NotRequired[ - Literal[ - "pending", "denied", "approved", "cancelled", "completed", "expired", "open" - ] - ] - requester_comment: NotRequired[Union[str, None]] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[list[BypassResponseType], None]] - url: NotRequired[str] - html_url: NotRequired[str] - - -class SecretScanningBypassRequestPropRepositoryType(TypedDict): - """SecretScanningBypassRequestPropRepository - - The repository the bypass request is for. - """ - - id: NotRequired[int] - name: NotRequired[str] - full_name: NotRequired[str] - - -class SecretScanningBypassRequestPropOrganizationType(TypedDict): - """SecretScanningBypassRequestPropOrganization - - The organization associated with the repository the bypass request is for. - """ - - id: NotRequired[int] - name: NotRequired[str] - - -class SecretScanningBypassRequestPropRequesterType(TypedDict): - """SecretScanningBypassRequestPropRequester - - The user who requested the bypass. - """ - - actor_id: NotRequired[int] - actor_name: NotRequired[str] - - -class SecretScanningBypassRequestPropDataItemsType(TypedDict): - """SecretScanningBypassRequestPropDataItems""" - - secret_type: NotRequired[str] - bypass_reason: NotRequired[Literal["used_in_tests", "false_positive", "fix_later"]] - path: NotRequired[str] - branch: NotRequired[str] - - -__all__ = ( - "SecretScanningBypassRequestPropDataItemsType", - "SecretScanningBypassRequestPropOrganizationType", - "SecretScanningBypassRequestPropRepositoryType", - "SecretScanningBypassRequestPropRequesterType", - "SecretScanningBypassRequestType", -) +__all__ = ("ActionsOrganizationPermissionsType",) 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 0adfea923..f67033a97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0186.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0186.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_0003 import SimpleUserType -from .group_0070 import TeamType +class ActionsPublicKeyType(TypedDict): + """ActionsPublicKey -class CampaignSummaryType(TypedDict): - """Campaign summary - - The campaign metadata and alert stats. + The public key used for setting Actions Secrets. """ - number: int - created_at: datetime - updated_at: datetime - name: NotRequired[str] - description: str - managers: list[SimpleUserType] - team_managers: NotRequired[list[TeamType]] - published_at: NotRequired[datetime] - ends_at: datetime - closed_at: NotRequired[Union[datetime, None]] - state: Literal["open", "closed"] - contact_link: Union[str, None] - alert_stats: NotRequired[CampaignSummaryPropAlertStatsType] - - -class CampaignSummaryPropAlertStatsType(TypedDict): - """CampaignSummaryPropAlertStats""" - - open_count: int - closed_count: int - in_progress_count: int - - -__all__ = ( - "CampaignSummaryPropAlertStatsType", - "CampaignSummaryType", -) + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] + + +__all__ = ("ActionsPublicKeyType",) 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 febb2d4f6..1a4992005 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0187.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0187.py @@ -9,23 +9,85 @@ 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_0056 import BypassResponseType -class CodespaceMachineType(TypedDict): - """Codespace machine - A description of the machine powering a codespace. +class SecretScanningBypassRequestType(TypedDict): + """Secret scanning bypass request + + A bypass request made by a user asking to be exempted from push protection in + this repository. + """ + + id: NotRequired[int] + number: NotRequired[int] + repository: NotRequired[SecretScanningBypassRequestPropRepositoryType] + organization: NotRequired[SecretScanningBypassRequestPropOrganizationType] + requester: NotRequired[SecretScanningBypassRequestPropRequesterType] + request_type: NotRequired[str] + data: NotRequired[Union[list[SecretScanningBypassRequestPropDataItemsType], None]] + resource_identifier: NotRequired[str] + status: NotRequired[ + Literal[ + "pending", "denied", "approved", "cancelled", "completed", "expired", "open" + ] + ] + requester_comment: NotRequired[Union[str, None]] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[list[BypassResponseType], None]] + url: NotRequired[str] + html_url: NotRequired[str] + + +class SecretScanningBypassRequestPropRepositoryType(TypedDict): + """SecretScanningBypassRequestPropRepository + + The repository the bypass request is for. """ - 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"]] + id: NotRequired[int] + name: NotRequired[str] + full_name: NotRequired[str] + + +class SecretScanningBypassRequestPropOrganizationType(TypedDict): + """SecretScanningBypassRequestPropOrganization + + The organization associated with the repository the bypass request is for. + """ + + id: NotRequired[int] + name: NotRequired[str] + + +class SecretScanningBypassRequestPropRequesterType(TypedDict): + """SecretScanningBypassRequestPropRequester + + The user who requested the bypass. + """ + + actor_id: NotRequired[int] + actor_name: NotRequired[str] + + +class SecretScanningBypassRequestPropDataItemsType(TypedDict): + """SecretScanningBypassRequestPropDataItems""" + + secret_type: NotRequired[str] + bypass_reason: NotRequired[Literal["used_in_tests", "false_positive", "fix_later"]] + path: NotRequired[str] + branch: NotRequired[str] -__all__ = ("CodespaceMachineType",) +__all__ = ( + "SecretScanningBypassRequestPropDataItemsType", + "SecretScanningBypassRequestPropOrganizationType", + "SecretScanningBypassRequestPropRepositoryType", + "SecretScanningBypassRequestPropRequesterType", + "SecretScanningBypassRequestType", +) 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 34b80d990..a35c28681 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0188.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0188.py @@ -14,89 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0176 import MinimalRepositoryType -from .group_0187 import CodespaceMachineType +from .group_0071 import TeamType -class CodespaceType(TypedDict): - """Codespace +class CampaignSummaryType(TypedDict): + """Campaign summary - A codespace. + The campaign metadata and alert stats. """ - 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] + number: int 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]] + name: NotRequired[str] + description: str + managers: list[SimpleUserType] + team_managers: NotRequired[list[TeamType]] + published_at: NotRequired[datetime] + ends_at: datetime + closed_at: NotRequired[Union[datetime, None]] + state: Literal["open", "closed"] + contact_link: Union[str, None] + alert_stats: NotRequired[CampaignSummaryPropAlertStatsType] -class CodespacePropGitStatusType(TypedDict): - """CodespacePropGitStatus +class CampaignSummaryPropAlertStatsType(TypedDict): + """CampaignSummaryPropAlertStats""" - 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]] + open_count: int + closed_count: int + in_progress_count: int __all__ = ( - "CodespacePropGitStatusType", - "CodespacePropRuntimeConstraintsType", - "CodespaceType", + "CampaignSummaryPropAlertStatsType", + "CampaignSummaryType", ) 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 3f68d2a84..febb2d4f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0189.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0189.py @@ -9,21 +9,23 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class CodespacesPublicKeyType(TypedDict): - """CodespacesPublicKey +class CodespaceMachineType(TypedDict): + """Codespace machine - The public key used for setting Codespaces secrets. + A description of the machine powering a codespace. """ - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + name: str + display_name: str + operating_system: str + storage_in_bytes: int + memory_in_bytes: int + cpus: int + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] -__all__ = ("CodespacesPublicKeyType",) +__all__ = ("CodespaceMachineType",) 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 3446a1559..126501462 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0190.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0190.py @@ -9,43 +9,94 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0178 import MinimalRepositoryType +from .group_0189 import CodespaceMachineType -class CopilotOrganizationDetailsType(TypedDict): - """Copilot Organization Details - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. +class CodespaceType(TypedDict): + """Codespace + + A codespace. """ - seat_breakdown: CopilotOrganizationSeatBreakdownType - public_code_suggestions: Literal["allow", "block", "unconfigured"] - ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" + 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", ] - plan_type: NotRequired[Literal["business", "enterprise"]] + 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 CopilotOrganizationSeatBreakdownType(TypedDict): - """Copilot Seat Breakdown +class CodespacePropGitStatusType(TypedDict): + """CodespacePropGitStatus - The breakdown of Copilot Business seats for the organization. + Details about the codespace's git repository. """ - 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] + 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__ = ( - "CopilotOrganizationDetailsType", - "CopilotOrganizationSeatBreakdownType", + "CodespacePropGitStatusType", + "CodespacePropRuntimeConstraintsType", + "CodespaceType", ) 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 3bc77b79e..3f68d2a84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0191.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0191.py @@ -9,29 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -class CredentialAuthorizationType(TypedDict): - """Credential Authorization +class CodespacesPublicKeyType(TypedDict): + """CodespacesPublicKey - Credential Authorization + The public key used for setting Codespaces secrets. """ - 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",) + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] + + +__all__ = ("CodespacesPublicKeyType",) 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 a553134b2..3446a1559 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0192.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0192.py @@ -9,17 +9,43 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrganizationCustomRepositoryRoleCreateSchemaType(TypedDict): - """OrganizationCustomRepositoryRoleCreateSchema""" +class CopilotOrganizationDetailsType(TypedDict): + """Copilot Organization Details - name: str - description: NotRequired[Union[str, None]] - base_role: Literal["read", "triage", "write", "maintain"] - permissions: list[str] + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. + """ + seat_breakdown: CopilotOrganizationSeatBreakdownType + public_code_suggestions: Literal["allow", "block", "unconfigured"] + ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] + plan_type: NotRequired[Literal["business", "enterprise"]] -__all__ = ("OrganizationCustomRepositoryRoleCreateSchemaType",) + +class CopilotOrganizationSeatBreakdownType(TypedDict): + """Copilot Seat Breakdown + + The breakdown of Copilot Business seats for the organization. + """ + + total: NotRequired[int] + added_this_cycle: NotRequired[int] + pending_cancellation: NotRequired[int] + pending_invitation: NotRequired[int] + active_this_cycle: NotRequired[int] + inactive_this_cycle: NotRequired[int] + + +__all__ = ( + "CopilotOrganizationDetailsType", + "CopilotOrganizationSeatBreakdownType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0193.py b/githubkit/versions/ghec_v2022_11_28/types/group_0193.py index 2e4c217fa..3bc77b79e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0193.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0193.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrganizationCustomRepositoryRoleUpdateSchemaType(TypedDict): - """OrganizationCustomRepositoryRoleUpdateSchema""" +class CredentialAuthorizationType(TypedDict): + """Credential Authorization - name: NotRequired[str] - description: NotRequired[Union[str, None]] - base_role: NotRequired[Literal["read", "triage", "write", "maintain"]] - permissions: NotRequired[list[str]] + Credential Authorization + """ + 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__ = ("OrganizationCustomRepositoryRoleUpdateSchemaType",) + +__all__ = ("CredentialAuthorizationType",) 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 fb3981a7a..a553134b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0194.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0194.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 DependabotPublicKeyType(TypedDict): - """DependabotPublicKey +class OrganizationCustomRepositoryRoleCreateSchemaType(TypedDict): + """OrganizationCustomRepositoryRoleCreateSchema""" - The public key used for setting Dependabot Secrets. - """ + name: str + description: NotRequired[Union[str, None]] + base_role: Literal["read", "triage", "write", "maintain"] + permissions: list[str] - key_id: str - key: str - -__all__ = ("DependabotPublicKeyType",) +__all__ = ("OrganizationCustomRepositoryRoleCreateSchemaType",) 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 31f7beec4..2e4c217fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0195.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0195.py @@ -9,104 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningAlertDismissalRequestType(TypedDict): - """Code scanning alert dismissal request +class OrganizationCustomRepositoryRoleUpdateSchemaType(TypedDict): + """OrganizationCustomRepositoryRoleUpdateSchema""" - Alert dismisal request made by a user asking to dismiss a code scanning alert. - """ - - id: NotRequired[int] - number: NotRequired[int] - repository: NotRequired[CodeScanningAlertDismissalRequestPropRepositoryType] - organization: NotRequired[CodeScanningAlertDismissalRequestPropOrganizationType] - requester: NotRequired[CodeScanningAlertDismissalRequestPropRequesterType] - request_type: NotRequired[str] - data: NotRequired[ - Union[list[CodeScanningAlertDismissalRequestPropDataItemsType], None] - ] - resource_identifier: NotRequired[str] - status: NotRequired[Literal["pending", "denied", "approved", "expired"]] - requester_comment: NotRequired[Union[str, None]] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[list[DismissalRequestResponseType], None]] - url: NotRequired[str] - html_url: NotRequired[str] - - -class CodeScanningAlertDismissalRequestPropRepositoryType(TypedDict): - """CodeScanningAlertDismissalRequestPropRepository - - The repository the dismissal request is for. - """ - - id: NotRequired[int] name: NotRequired[str] - full_name: NotRequired[str] - - -class CodeScanningAlertDismissalRequestPropOrganizationType(TypedDict): - """CodeScanningAlertDismissalRequestPropOrganization - - The organization associated with the repository the dismissal request is for. - """ - - id: NotRequired[int] - name: NotRequired[str] - - -class CodeScanningAlertDismissalRequestPropRequesterType(TypedDict): - """CodeScanningAlertDismissalRequestPropRequester - - The user who requested the dismissal request. - """ - - actor_id: NotRequired[int] - actor_name: NotRequired[str] - - -class CodeScanningAlertDismissalRequestPropDataItemsType(TypedDict): - """CodeScanningAlertDismissalRequestPropDataItems""" - - reason: NotRequired[str] - alert_number: NotRequired[str] - pr_review_thread_id: NotRequired[str] - - -class DismissalRequestResponseType(TypedDict): - """Dismissal request response - - A response made by a requester to dismiss the request. - """ - - id: NotRequired[int] - reviewer: NotRequired[DismissalRequestResponsePropReviewerType] - message: NotRequired[Union[str, None]] - status: NotRequired[Literal["approved", "denied", "dismissed"]] - created_at: NotRequired[datetime] - - -class DismissalRequestResponsePropReviewerType(TypedDict): - """DismissalRequestResponsePropReviewer - - The user who reviewed the dismissal request. - """ - - actor_id: NotRequired[int] - actor_name: NotRequired[str] + description: NotRequired[Union[str, None]] + base_role: NotRequired[Literal["read", "triage", "write", "maintain"]] + permissions: NotRequired[list[str]] -__all__ = ( - "CodeScanningAlertDismissalRequestPropDataItemsType", - "CodeScanningAlertDismissalRequestPropOrganizationType", - "CodeScanningAlertDismissalRequestPropRepositoryType", - "CodeScanningAlertDismissalRequestPropRequesterType", - "CodeScanningAlertDismissalRequestType", - "DismissalRequestResponsePropReviewerType", - "DismissalRequestResponseType", -) +__all__ = ("OrganizationCustomRepositoryRoleUpdateSchemaType",) 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 e8bc0775a..fb3981a7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0196.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0196.py @@ -9,84 +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_0056 import BypassResponseType +class DependabotPublicKeyType(TypedDict): + """DependabotPublicKey -class SecretScanningDismissalRequestType(TypedDict): - """Secret scanning alert dismissal request - - A dismissal request made by a user asking to close a secret scanning alert in - this repository. - """ - - id: NotRequired[int] - number: NotRequired[int] - repository: NotRequired[SecretScanningDismissalRequestPropRepositoryType] - organization: NotRequired[SecretScanningDismissalRequestPropOrganizationType] - requester: NotRequired[SecretScanningDismissalRequestPropRequesterType] - request_type: NotRequired[str] - data: NotRequired[ - Union[list[SecretScanningDismissalRequestPropDataItemsType], None] - ] - resource_identifier: NotRequired[str] - status: NotRequired[ - Literal["pending", "denied", "approved", "cancelled", "expired"] - ] - requester_comment: NotRequired[Union[str, None]] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[list[BypassResponseType], None]] - url: NotRequired[str] - html_url: NotRequired[str] - - -class SecretScanningDismissalRequestPropRepositoryType(TypedDict): - """SecretScanningDismissalRequestPropRepository - - The repository the dismissal request is for. + The public key used for setting Dependabot Secrets. """ - id: NotRequired[int] - name: NotRequired[str] - full_name: NotRequired[str] - - -class SecretScanningDismissalRequestPropOrganizationType(TypedDict): - """SecretScanningDismissalRequestPropOrganization - - The organization associated with the repository the dismissal request is for. - """ - - id: NotRequired[int] - name: NotRequired[str] - - -class SecretScanningDismissalRequestPropRequesterType(TypedDict): - """SecretScanningDismissalRequestPropRequester - - The user who requested the dismissal. - """ - - actor_id: NotRequired[int] - actor_name: NotRequired[str] - - -class SecretScanningDismissalRequestPropDataItemsType(TypedDict): - """SecretScanningDismissalRequestPropDataItems""" - - secret_type: NotRequired[str] - alert_number: NotRequired[str] - reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] + key_id: str + key: str -__all__ = ( - "SecretScanningDismissalRequestPropDataItemsType", - "SecretScanningDismissalRequestPropOrganizationType", - "SecretScanningDismissalRequestPropRepositoryType", - "SecretScanningDismissalRequestPropRequesterType", - "SecretScanningDismissalRequestType", -) +__all__ = ("DependabotPublicKeyType",) 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 f738c8bcd..31f7beec4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0197.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0197.py @@ -13,27 +13,100 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0176 import MinimalRepositoryType +class CodeScanningAlertDismissalRequestType(TypedDict): + """Code scanning alert dismissal request -class PackageType(TypedDict): - """Package + Alert dismisal request made by a user asking to dismiss a code scanning alert. + """ + + id: NotRequired[int] + number: NotRequired[int] + repository: NotRequired[CodeScanningAlertDismissalRequestPropRepositoryType] + organization: NotRequired[CodeScanningAlertDismissalRequestPropOrganizationType] + requester: NotRequired[CodeScanningAlertDismissalRequestPropRequesterType] + request_type: NotRequired[str] + data: NotRequired[ + Union[list[CodeScanningAlertDismissalRequestPropDataItemsType], None] + ] + resource_identifier: NotRequired[str] + status: NotRequired[Literal["pending", "denied", "approved", "expired"]] + requester_comment: NotRequired[Union[str, None]] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[list[DismissalRequestResponseType], None]] + url: NotRequired[str] + html_url: NotRequired[str] + + +class CodeScanningAlertDismissalRequestPropRepositoryType(TypedDict): + """CodeScanningAlertDismissalRequestPropRepository + + The repository the dismissal request is for. + """ + + id: NotRequired[int] + name: NotRequired[str] + full_name: NotRequired[str] + + +class CodeScanningAlertDismissalRequestPropOrganizationType(TypedDict): + """CodeScanningAlertDismissalRequestPropOrganization + + The organization associated with the repository the dismissal request is for. + """ + + id: NotRequired[int] + name: NotRequired[str] + + +class CodeScanningAlertDismissalRequestPropRequesterType(TypedDict): + """CodeScanningAlertDismissalRequestPropRequester + + The user who requested the dismissal request. + """ + + actor_id: NotRequired[int] + actor_name: NotRequired[str] + + +class CodeScanningAlertDismissalRequestPropDataItemsType(TypedDict): + """CodeScanningAlertDismissalRequestPropDataItems""" + + reason: NotRequired[str] + alert_number: NotRequired[str] + pr_review_thread_id: NotRequired[str] + + +class DismissalRequestResponseType(TypedDict): + """Dismissal request response + + A response made by a requester to dismiss the request. + """ + + id: NotRequired[int] + reviewer: NotRequired[DismissalRequestResponsePropReviewerType] + message: NotRequired[Union[str, None]] + status: NotRequired[Literal["approved", "denied", "dismissed"]] + created_at: NotRequired[datetime] + + +class DismissalRequestResponsePropReviewerType(TypedDict): + """DismissalRequestResponsePropReviewer - A software package + The user who reviewed the dismissal request. """ - 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 + actor_id: NotRequired[int] + actor_name: NotRequired[str] -__all__ = ("PackageType",) +__all__ = ( + "CodeScanningAlertDismissalRequestPropDataItemsType", + "CodeScanningAlertDismissalRequestPropOrganizationType", + "CodeScanningAlertDismissalRequestPropRepositoryType", + "CodeScanningAlertDismissalRequestPropRequesterType", + "CodeScanningAlertDismissalRequestType", + "DismissalRequestResponsePropReviewerType", + "DismissalRequestResponseType", +) 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 cc9b10e07..e8bc0775a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0198.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0198.py @@ -9,40 +9,84 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0056 import BypassResponseType -class ExternalGroupType(TypedDict): - """ExternalGroup - Information about an external group's usage and its members +class SecretScanningDismissalRequestType(TypedDict): + """Secret scanning alert dismissal request + + A dismissal request made by a user asking to close a secret scanning alert in + this repository. + """ + + id: NotRequired[int] + number: NotRequired[int] + repository: NotRequired[SecretScanningDismissalRequestPropRepositoryType] + organization: NotRequired[SecretScanningDismissalRequestPropOrganizationType] + requester: NotRequired[SecretScanningDismissalRequestPropRequesterType] + request_type: NotRequired[str] + data: NotRequired[ + Union[list[SecretScanningDismissalRequestPropDataItemsType], None] + ] + resource_identifier: NotRequired[str] + status: NotRequired[ + Literal["pending", "denied", "approved", "cancelled", "expired"] + ] + requester_comment: NotRequired[Union[str, None]] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[list[BypassResponseType], None]] + url: NotRequired[str] + html_url: NotRequired[str] + + +class SecretScanningDismissalRequestPropRepositoryType(TypedDict): + """SecretScanningDismissalRequestPropRepository + + The repository the dismissal request is for. + """ + + id: NotRequired[int] + name: NotRequired[str] + full_name: NotRequired[str] + + +class SecretScanningDismissalRequestPropOrganizationType(TypedDict): + """SecretScanningDismissalRequestPropOrganization + + The organization associated with the repository the dismissal request is for. """ - group_id: int - group_name: str - updated_at: NotRequired[str] - teams: list[ExternalGroupPropTeamsItemsType] - members: list[ExternalGroupPropMembersItemsType] + id: NotRequired[int] + name: NotRequired[str] -class ExternalGroupPropTeamsItemsType(TypedDict): - """ExternalGroupPropTeamsItems""" +class SecretScanningDismissalRequestPropRequesterType(TypedDict): + """SecretScanningDismissalRequestPropRequester + + The user who requested the dismissal. + """ - team_id: int - team_name: str + actor_id: NotRequired[int] + actor_name: NotRequired[str] -class ExternalGroupPropMembersItemsType(TypedDict): - """ExternalGroupPropMembersItems""" +class SecretScanningDismissalRequestPropDataItemsType(TypedDict): + """SecretScanningDismissalRequestPropDataItems""" - member_id: int - member_login: str - member_name: str - member_email: str + secret_type: NotRequired[str] + alert_number: NotRequired[str] + reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] __all__ = ( - "ExternalGroupPropMembersItemsType", - "ExternalGroupPropTeamsItemsType", - "ExternalGroupType", + "SecretScanningDismissalRequestPropDataItemsType", + "SecretScanningDismissalRequestPropOrganizationType", + "SecretScanningDismissalRequestPropRepositoryType", + "SecretScanningDismissalRequestPropRequesterType", + "SecretScanningDismissalRequestType", ) 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 31dfd9dfc..4dae76564 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0199.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0199.py @@ -9,27 +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_0178 import MinimalRepositoryType -class ExternalGroupsType(TypedDict): - """ExternalGroups - A list of external groups available to be connected to a team - """ - - groups: NotRequired[list[ExternalGroupsPropGroupsItemsType]] +class PackageType(TypedDict): + """Package + A software package + """ -class ExternalGroupsPropGroupsItemsType(TypedDict): - """ExternalGroupsPropGroupsItems""" - - group_id: int - group_name: str - updated_at: str + 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__ = ( - "ExternalGroupsPropGroupsItemsType", - "ExternalGroupsType", -) +__all__ = ("PackageType",) 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 23c54a38b..cc9b10e07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0200.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0200.py @@ -9,30 +9,40 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class ExternalGroupType(TypedDict): + """ExternalGroup -class OrganizationInvitationType(TypedDict): - """Organization Invitation - - Organization Invitation + Information about an external group's usage and its 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",) + group_id: int + group_name: str + updated_at: NotRequired[str] + teams: list[ExternalGroupPropTeamsItemsType] + members: list[ExternalGroupPropMembersItemsType] + + +class ExternalGroupPropTeamsItemsType(TypedDict): + """ExternalGroupPropTeamsItems""" + + team_id: int + team_name: str + + +class ExternalGroupPropMembersItemsType(TypedDict): + """ExternalGroupPropMembersItems""" + + member_id: int + member_login: str + member_name: str + member_email: str + + +__all__ = ( + "ExternalGroupPropMembersItemsType", + "ExternalGroupPropTeamsItemsType", + "ExternalGroupType", +) 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 1613d4046..31dfd9dfc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0201.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0201.py @@ -9,17 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class RepositoryFineGrainedPermissionType(TypedDict): - """Repository Fine-Grained Permission +class ExternalGroupsType(TypedDict): + """ExternalGroups - A fine-grained permission that protects repository resources. + A list of external groups available to be connected to a team """ - name: str - description: str + groups: NotRequired[list[ExternalGroupsPropGroupsItemsType]] -__all__ = ("RepositoryFineGrainedPermissionType",) +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_0202.py b/githubkit/versions/ghec_v2022_11_28/types/group_0202.py index dd28f2299..23c54a38b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0202.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0202.py @@ -9,39 +9,30 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class OrgHookType(TypedDict): - """Org Hook - Org Hook +class OrganizationInvitationType(TypedDict): + """Organization Invitation + + Organization Invitation """ 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", -) + 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_0203.py b/githubkit/versions/ghec_v2022_11_28/types/group_0203.py index eecf40a48..1613d4046 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0203.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0203.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 RepositoryFineGrainedPermissionType(TypedDict): + """Repository Fine-Grained Permission - http_method: NotRequired[str] - api_route: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] + A fine-grained permission that protects repository resources. + """ + name: str + description: str -__all__ = ("ApiInsightsRouteStatsItemsType",) + +__all__ = ("RepositoryFineGrainedPermissionType",) 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 a652aaeff..dd28f2299 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0204.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0204.py @@ -9,20 +9,39 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ApiInsightsSubjectStatsItemsType(TypedDict): - """ApiInsightsSubjectStatsItems""" +class OrgHookType(TypedDict): + """Org Hook - 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] + 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__ = ("ApiInsightsSubjectStatsItemsType",) + +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_0205.py b/githubkit/versions/ghec_v2022_11_28/types/group_0205.py index efa213a4a..eecf40a48 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0205.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0205.py @@ -9,17 +9,19 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ApiInsightsSummaryStatsType(TypedDict): - """Summary Stats - - API Insights usage summary stats for an organization - """ +class ApiInsightsRouteStatsItemsType(TypedDict): + """ApiInsightsRouteStatsItems""" + http_method: NotRequired[str] + api_route: NotRequired[str] total_request_count: NotRequired[int] rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] -__all__ = ("ApiInsightsSummaryStatsType",) +__all__ = ("ApiInsightsRouteStatsItemsType",) 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 b1ac3a080..a652aaeff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0206.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0206.py @@ -9,15 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ApiInsightsTimeStatsItemsType(TypedDict): - """ApiInsightsTimeStatsItems""" +class ApiInsightsSubjectStatsItemsType(TypedDict): + """ApiInsightsSubjectStatsItems""" - timestamp: NotRequired[str] + 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__ = ("ApiInsightsTimeStatsItemsType",) +__all__ = ("ApiInsightsSubjectStatsItemsType",) 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 810ca5b00..efa213a4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0207.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0207.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ApiInsightsUserStatsItemsType(TypedDict): - """ApiInsightsUserStatsItems""" +class ApiInsightsSummaryStatsType(TypedDict): + """Summary Stats + + API Insights usage summary stats for an organization + """ - 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__ = ("ApiInsightsUserStatsItemsType",) +__all__ = ("ApiInsightsSummaryStatsType",) 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 86b7b0b1e..b1ac3a080 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,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 InteractionLimitResponseType(TypedDict): - """Interaction Limits +class ApiInsightsTimeStatsItemsType(TypedDict): + """ApiInsightsTimeStatsItems""" - Interaction limit settings. - """ + timestamp: NotRequired[str] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - origin: str - expires_at: datetime - -__all__ = ("InteractionLimitResponseType",) +__all__ = ("ApiInsightsTimeStatsItemsType",) 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 7711ae8ae..810ca5b00 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0209.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0209.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class InteractionLimitType(TypedDict): - """Interaction Restrictions +class ApiInsightsUserStatsItemsType(TypedDict): + """ApiInsightsUserStatsItems""" - Limit interactions to a specific type of user for a specified duration - """ + 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] - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - expiry: NotRequired[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] - -__all__ = ("InteractionLimitType",) +__all__ = ("ApiInsightsUserStatsItemsType",) 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 2d5d28056..86b7b0b1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0210.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0210.py @@ -9,24 +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 -class OrganizationCreateIssueTypeType(TypedDict): - """OrganizationCreateIssueType""" +class InteractionLimitResponseType(TypedDict): + """Interaction Limits - name: str - is_enabled: bool - description: NotRequired[Union[str, None]] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] + Interaction limit settings. + """ + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + origin: str + expires_at: datetime -__all__ = ("OrganizationCreateIssueTypeType",) + +__all__ = ("InteractionLimitResponseType",) 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 e6f7b909d..7711ae8ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0211.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0211.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrganizationUpdateIssueTypeType(TypedDict): - """OrganizationUpdateIssueType""" +class InteractionLimitType(TypedDict): + """Interaction Restrictions - name: str - is_enabled: bool - description: NotRequired[Union[str, None]] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] + Limit interactions to a specific type of user for a specified duration + """ + + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + expiry: NotRequired[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] ] -__all__ = ("OrganizationUpdateIssueTypeType",) +__all__ = ("InteractionLimitType",) 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 f9aad3ba7..2d5d28056 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0212.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0212.py @@ -12,32 +12,21 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0036 import OrganizationSimpleType +class OrganizationCreateIssueTypeType(TypedDict): + """OrganizationCreateIssueType""" -class OrgMembershipType(TypedDict): - """Org Membership + name: str + is_enabled: bool + description: NotRequired[Union[str, None]] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] - 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__ = ("OrganizationCreateIssueTypeType",) 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 b0bdc2624..e6f7b909d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0213.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0213.py @@ -9,38 +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_0003 import SimpleUserType -from .group_0020 import RepositoryType - - -class MigrationType(TypedDict): - """Migration - - A migration. - """ - - id: int - owner: Union[None, SimpleUserType] - guid: str - state: str - lock_repositories: bool - exclude_metadata: bool - exclude_git_data: bool - exclude_attachments: bool - exclude_releases: bool - exclude_owner_projects: bool - org_metadata_only: bool - repositories: list[RepositoryType] - url: str - created_at: datetime - updated_at: datetime - node_id: str - archive_url: NotRequired[str] - exclude: NotRequired[list[str]] - - -__all__ = ("MigrationType",) + +class OrganizationUpdateIssueTypeType(TypedDict): + """OrganizationUpdateIssueType""" + + name: str + is_enabled: bool + description: NotRequired[Union[str, None]] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] + + +__all__ = ("OrganizationUpdateIssueTypeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0214.py b/githubkit/versions/ghec_v2022_11_28/types/group_0214.py index 0c71e9bd1..aa49b94df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0214.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0214.py @@ -9,17 +9,37 @@ 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_0036 import OrganizationSimpleType -class OrganizationFineGrainedPermissionType(TypedDict): - """Organization Fine-Grained Permission - A fine-grained permission that protects organization resources. +class OrgMembershipType(TypedDict): + """Org Membership + + Org Membership """ - name: str - description: str + url: str + state: Literal["active", "pending"] + role: Literal["admin", "member", "billing_manager"] + direct_membership: NotRequired[bool] + enterprise_teams_providing_indirect_membership: NotRequired[list[str]] + organization_url: str + organization: OrganizationSimpleType + user: Union[None, SimpleUserType] + permissions: NotRequired[OrgMembershipPropPermissionsType] + + +class OrgMembershipPropPermissionsType(TypedDict): + """OrgMembershipPropPermissions""" + + can_create_repository: bool -__all__ = ("OrganizationFineGrainedPermissionType",) +__all__ = ( + "OrgMembershipPropPermissionsType", + "OrgMembershipType", +) 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 fb3b706a0..b0bdc2624 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0215.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0215.py @@ -10,41 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class OrganizationRoleType(TypedDict): - """Organization Role +class MigrationType(TypedDict): + """Migration - Organization roles + A migration. """ 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] + 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]] -class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): - """OrgsOrgOrganizationRolesGetResponse200""" - - total_count: NotRequired[int] - roles: NotRequired[list[OrganizationRoleType]] - - -__all__ = ( - "OrganizationRoleType", - "OrgsOrgOrganizationRolesGetResponse200Type", -) +__all__ = ("MigrationType",) 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 c9e591941..0c71e9bd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0216.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0216.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 OrganizationCustomOrganizationRoleCreateSchemaType(TypedDict): - """OrganizationCustomOrganizationRoleCreateSchema""" +class OrganizationFineGrainedPermissionType(TypedDict): + """Organization Fine-Grained Permission + + A fine-grained permission that protects organization resources. + """ name: str - description: NotRequired[str] - permissions: list[str] - base_role: NotRequired[Literal["read", "triage", "write", "maintain", "admin"]] + description: str -__all__ = ("OrganizationCustomOrganizationRoleCreateSchemaType",) +__all__ = ("OrganizationFineGrainedPermissionType",) 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 e77a4f03f..fb3b706a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0217.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0217.py @@ -9,19 +9,42 @@ 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 OrganizationCustomOrganizationRoleUpdateSchemaType(TypedDict): - """OrganizationCustomOrganizationRoleUpdateSchema""" - name: NotRequired[str] - description: NotRequired[str] - permissions: NotRequired[list[str]] +class OrganizationRoleType(TypedDict): + """Organization Role + + Organization roles + """ + + id: int + name: str + description: NotRequired[Union[str, None]] base_role: NotRequired[ - Literal["none", "read", "triage", "write", "maintain", "admin"] + 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__ = ("OrganizationCustomOrganizationRoleUpdateSchemaType",) +__all__ = ( + "OrganizationRoleType", + "OrgsOrgOrganizationRolesGetResponse200Type", +) 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 cc29ac94a..c9e591941 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0218.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0218.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0069 import TeamSimpleType +class OrganizationCustomOrganizationRoleCreateSchemaType(TypedDict): + """OrganizationCustomOrganizationRoleCreateSchema""" -class TeamRoleAssignmentType(TypedDict): - """A Role Assignment for a Team + name: str + description: NotRequired[str] + permissions: list[str] + base_role: NotRequired[Literal["read", "triage", "write", "maintain", "admin"]] - The Relationship a Team has with a role. - """ - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - id: int - node_id: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: str - permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] - url: str - html_url: str - members_url: str - repositories_url: str - parent: Union[None, TeamSimpleType] - - -class TeamRoleAssignmentPropPermissionsType(TypedDict): - """TeamRoleAssignmentPropPermissions""" - - pull: bool - triage: bool - push: bool - maintain: bool - admin: bool - - -__all__ = ( - "TeamRoleAssignmentPropPermissionsType", - "TeamRoleAssignmentType", -) +__all__ = ("OrganizationCustomOrganizationRoleCreateSchemaType",) 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 59bf8c936..e77a4f03f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0219.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0219.py @@ -9,42 +9,19 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0069 import TeamSimpleType - - -class UserRoleAssignmentType(TypedDict): - """A Role Assignment for a User - - The Relationship a User has with a role. - """ - - 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",) + +class OrganizationCustomOrganizationRoleUpdateSchemaType(TypedDict): + """OrganizationCustomOrganizationRoleUpdateSchema""" + + name: NotRequired[str] + description: NotRequired[str] + permissions: NotRequired[list[str]] + base_role: NotRequired[ + Literal["none", "read", "triage", "write", "maintain", "admin"] + ] + + +__all__ = ("OrganizationCustomOrganizationRoleUpdateSchemaType",) 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 9b4b7ff6c..e40d19eb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0220.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0220.py @@ -9,53 +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_0070 import TeamSimpleType -class PackageVersionType(TypedDict): - """Package Version - A version of a software package +class TeamRoleAssignmentType(TypedDict): + """A Role Assignment for a Team + + The Relationship a Team has with a role. """ + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] id: int + node_id: str name: str + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] url: str - 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] + html_url: str + members_url: str + repositories_url: str + parent: Union[None, TeamSimpleType] -class PackageVersionPropMetadataPropDockerType(TypedDict): - """Docker Metadata""" +class TeamRoleAssignmentPropPermissionsType(TypedDict): + """TeamRoleAssignmentPropPermissions""" - tag: NotRequired[list[str]] + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool __all__ = ( - "PackageVersionPropMetadataPropContainerType", - "PackageVersionPropMetadataPropDockerType", - "PackageVersionPropMetadataType", - "PackageVersionType", + "TeamRoleAssignmentPropPermissionsType", + "TeamRoleAssignmentType", ) 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 4979cd78c..bb6a74906 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0221.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0221.py @@ -9,75 +9,42 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0070 import TeamSimpleType -class OrganizationProgrammaticAccessGrantRequestType(TypedDict): - """Simple Organization Programmatic Access Grant Request +class UserRoleAssignmentType(TypedDict): + """A Role Assignment for a User - Minimal representation of an organization programmatic access grant request for - enumerations + The Relationship a User has with a role. """ + 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 - 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", -) + 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_0222.py b/githubkit/versions/ghec_v2022_11_28/types/group_0222.py index 54bd740d2..9b4b7ff6c 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,53 @@ 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 +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class PackageVersionType(TypedDict): + """Package Version -class OrganizationProgrammaticAccessGrantType(TypedDict): - """Organization Programmatic Access Grant - - Minimal representation of an organization programmatic access grant for - enumerations + A version of a software package """ 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. - """ + 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] - organization: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType - ] - other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] +class PackageVersionPropMetadataType(TypedDict): + """Package Version Metadata""" -OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization -""" + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + container: NotRequired[PackageVersionPropMetadataPropContainerType] + docker: NotRequired[PackageVersionPropMetadataPropDockerType] -OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository -""" +class PackageVersionPropMetadataPropContainerType(TypedDict): + """Container Metadata""" + tags: list[str] -OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther -""" + +class PackageVersionPropMetadataPropDockerType(TypedDict): + """Docker Metadata""" + + tag: NotRequired[list[str]] __all__ = ( - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantPropPermissionsType", - "OrganizationProgrammaticAccessGrantType", + "PackageVersionPropMetadataPropContainerType", + "PackageVersionPropMetadataPropDockerType", + "PackageVersionPropMetadataType", + "PackageVersionType", ) 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 a3a79cbc5..4979cd78c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0223.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0223.py @@ -9,24 +9,75 @@ 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 OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): - """Organization private registry - Private registry configuration for an organization +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. """ - name: str - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] - username: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] - created_at: datetime - updated_at: datetime + 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__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", + "OrganizationProgrammaticAccessGrantRequestType", +) 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 9f42888f5..54bd740d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0224.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0224.py @@ -9,34 +9,72 @@ 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_0003 import SimpleUserType -class ProjectType(TypedDict): - """Project +class OrganizationProgrammaticAccessGrantType(TypedDict): + """Organization Programmatic Access Grant - Projects are a way to organize columns and cards of work. + Minimal representation of an organization programmatic access grant for + enumerations """ - 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",) + 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_0225.py b/githubkit/versions/ghec_v2022_11_28/types/group_0225.py index c3784542a..4a4e90682 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0225.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0225.py @@ -9,18 +9,40 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class CustomPropertyValueType(TypedDict): - """Custom Property Value +class OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): + """Organization private registry - Custom property name and associated value + Private registry configuration for an organization """ - property_name: str - value: Union[str, list[str], None] - - -__all__ = ("CustomPropertyValueType",) + name: str + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] + username: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] + created_at: datetime + updated_at: datetime + + +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) 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 1f54ca297..9f42888f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0226.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0226.py @@ -9,21 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0225 import CustomPropertyValueType +from .group_0003 import SimpleUserType -class OrgRepoCustomPropertyValuesType(TypedDict): - """Organization Repository Custom Property Values +class ProjectType(TypedDict): + """Project - List of custom property values for a repository + Projects are a way to organize columns and cards of work. """ - repository_id: int - repository_name: str - repository_full_name: str - properties: list[CustomPropertyValueType] - - -__all__ = ("OrgRepoCustomPropertyValuesType",) + owner_url: str + url: str + html_url: str + columns_url: str + id: int + node_id: str + name: str + body: Union[str, None] + number: int + state: str + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] + + +__all__ = ("ProjectType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0227.py b/githubkit/versions/ghec_v2022_11_28/types/group_0227.py index cac6eb986..c3784542a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0227.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0227.py @@ -13,16 +13,14 @@ from typing_extensions import TypedDict -class CodeOfConductSimpleType(TypedDict): - """Code Of Conduct Simple +class CustomPropertyValueType(TypedDict): + """Custom Property Value - Code of Conduct Simple + Custom property name and associated value """ - url: str - key: str - name: str - html_url: Union[str, None] + property_name: str + value: Union[str, list[str], None] -__all__ = ("CodeOfConductSimpleType",) +__all__ = ("CustomPropertyValueType",) 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 9a211382c..3c233fdf7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0228.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0228.py @@ -9,151 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType -from .group_0020 import RepositoryType -from .group_0175 import SecurityAndAnalysisType -from .group_0227 import CodeOfConductSimpleType +from .group_0227 import CustomPropertyValueType -class FullRepositoryType(TypedDict): - """Full Repository +class OrgRepoCustomPropertyValuesType(TypedDict): + """Organization Repository Custom Property Values - Full Repository + List of custom property values for a 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: 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] + repository_id: int + repository_name: str + repository_full_name: str + properties: list[CustomPropertyValueType] -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__ = ("OrgRepoCustomPropertyValuesType",) 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 74f027a0f..cac6eb986 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0229.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0229.py @@ -9,25 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class RuleSuitesItemsType(TypedDict): - """RuleSuitesItems""" +class CodeOfConductSimpleType(TypedDict): + """Code Of Conduct Simple - 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"]] + Code of Conduct Simple + """ + url: str + key: str + name: str + html_url: Union[str, None] -__all__ = ("RuleSuitesItemsType",) + +__all__ = ("CodeOfConductSimpleType",) 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 edb6fa30e..5051508f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0230.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0230.py @@ -10,50 +10,150 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0020 import RepositoryType +from .group_0177 import SecurityAndAnalysisType +from .group_0229 import CodeOfConductSimpleType -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 FullRepositoryType(TypedDict): + """Full Repository - 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""" + Full Repository + """ - type: NotRequired[str] - id: NotRequired[Union[int, None]] - name: NotRequired[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: 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__ = ( - "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", - "RuleSuitePropRuleEvaluationsItemsType", - "RuleSuiteType", + "FullRepositoryPropCustomPropertiesType", + "FullRepositoryPropPermissionsType", + "FullRepositoryType", ) 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 ef2fcae57..74f027a0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0231.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0231.py @@ -9,32 +9,25 @@ from __future__ import annotations +from datetime import datetime from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class RuleSuitesItemsType(TypedDict): + """RuleSuitesItems""" -class RepositoryAdvisoryCreditType(TypedDict): - """RepositoryAdvisoryCredit + 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 credit given to a user for a repository security advisory. - """ - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - state: Literal["accepted", "declined", "pending"] - - -__all__ = ("RepositoryAdvisoryCreditType",) +__all__ = ("RuleSuitesItemsType",) 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 51df255ae..edb6fa30e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0232.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0232.py @@ -13,138 +13,47 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType -from .group_0003 import SimpleUserType -from .group_0070 import TeamType -from .group_0231 import RepositoryAdvisoryCreditType +class RuleSuiteType(TypedDict): + """Rule Suite -class RepositoryAdvisoryType(TypedDict): - """RepositoryAdvisory - - A repository security advisory. + Response """ - 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. - """ + 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]] - package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] - vulnerable_version_range: Union[str, None] - patched_versions: Union[str, None] - vulnerable_functions: Union[list[str], None] +class RuleSuitePropRuleEvaluationsItemsType(TypedDict): + """RuleSuitePropRuleEvaluationsItems""" -class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): - """RepositoryAdvisoryVulnerabilityPropPackage + 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]] - 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] +class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + + type: NotRequired[str] + id: NotRequired[Union[int, None]] + name: NotRequired[Union[str, None]] __all__ = ( - "RepositoryAdvisoryPropCreditsItemsType", - "RepositoryAdvisoryPropCvssType", - "RepositoryAdvisoryPropCwesItemsType", - "RepositoryAdvisoryPropIdentifiersItemsType", - "RepositoryAdvisoryPropSubmissionType", - "RepositoryAdvisoryType", - "RepositoryAdvisoryVulnerabilityPropPackageType", - "RepositoryAdvisoryVulnerabilityType", + "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", + "RuleSuitePropRuleEvaluationsItemsType", + "RuleSuiteType", ) 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 dcb7aa8bd..ef2fcae57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0233.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0233.py @@ -9,30 +9,32 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class GroupMappingType(TypedDict): - """GroupMapping - - External Groups to be mapped to a team for membership - """ - - groups: NotRequired[list[GroupMappingPropGroupsItemsType]] +class RepositoryAdvisoryCreditType(TypedDict): + """RepositoryAdvisoryCredit -class GroupMappingPropGroupsItemsType(TypedDict): - """GroupMappingPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - status: NotRequired[str] - synced_at: NotRequired[Union[str, None]] - + A credit given to a user for a repository security advisory. + """ -__all__ = ( - "GroupMappingPropGroupsItemsType", - "GroupMappingType", -) + 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_0234.py b/githubkit/versions/ghec_v2022_11_28/types/group_0234.py index e67c93531..d2b6743c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0234.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0234.py @@ -13,107 +13,138 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0069 import TeamSimpleType +from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0071 import TeamType +from .group_0233 import RepositoryAdvisoryCreditType -class TeamFullType(TypedDict): - """Full Team +class RepositoryAdvisoryType(TypedDict): + """RepositoryAdvisory - Groups of organization members that gives permissions on specified repositories. + A repository security advisory. """ - id: int - node_id: str + ghsa_id: str + cve_id: Union[str, None] url: str html_url: str - name: str - slug: str + summary: str description: Union[str, None] - privacy: NotRequired[Literal["closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + 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", + ] ] - 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 + + +class RepositoryAdvisoryVulnerabilityType(TypedDict): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. """ - 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""" + package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + patched_versions: Union[str, None] + vulnerable_functions: Union[list[str], None] - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] + +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__ = ( - "TeamFullType", - "TeamOrganizationPropPlanType", - "TeamOrganizationType", + "RepositoryAdvisoryPropCreditsItemsType", + "RepositoryAdvisoryPropCvssType", + "RepositoryAdvisoryPropCwesItemsType", + "RepositoryAdvisoryPropIdentifiersItemsType", + "RepositoryAdvisoryPropSubmissionType", + "RepositoryAdvisoryType", + "RepositoryAdvisoryVulnerabilityPropPackageType", + "RepositoryAdvisoryVulnerabilityType", ) 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 6aa9a7601..dcb7aa8bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0235.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0235.py @@ -9,39 +9,30 @@ 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_0159 import ReactionRollupType +class GroupMappingType(TypedDict): + """GroupMapping -class TeamDiscussionType(TypedDict): - """Team Discussion - - A team discussion is a persistent record of a free-form conversation within a - team. + External Groups to be mapped to a team for membership """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - comments_count: int - comments_url: str - created_at: datetime - last_edited_at: Union[datetime, None] - html_url: str - node_id: str - number: int - pinned: bool - private: bool - team_url: str - title: str - updated_at: datetime - url: str - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TeamDiscussionType",) + groups: NotRequired[list[GroupMappingPropGroupsItemsType]] + + +class GroupMappingPropGroupsItemsType(TypedDict): + """GroupMappingPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + status: NotRequired[str] + synced_at: NotRequired[Union[str, None]] + + +__all__ = ( + "GroupMappingPropGroupsItemsType", + "GroupMappingType", +) 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 8ebd55e57..09bfcadb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0236.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0236.py @@ -10,32 +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_0003 import SimpleUserType -from .group_0159 import ReactionRollupType +from .group_0070 import TeamSimpleType -class TeamDiscussionCommentType(TypedDict): - """Team Discussion Comment +class TeamFullType(TypedDict): + """Full Team - A reply to a discussion within a team. + Groups of organization members that gives permissions on specified repositories. """ - 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 + id: int node_id: str - number: int + 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 - reactions: NotRequired[ReactionRollupType] + 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__ = ("TeamDiscussionCommentType",) +__all__ = ( + "TeamFullType", + "TeamOrganizationPropPlanType", + "TeamOrganizationType", +) 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 29fb93bc6..8b8aa904e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0237.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0237.py @@ -10,26 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0160 import ReactionRollupType -class ReactionType(TypedDict): - """Reaction +class TeamDiscussionType(TypedDict): + """Team Discussion - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + A team discussion is a persistent record of a free-form conversation within a + team. """ - id: int - node_id: str - user: Union[None, SimpleUserType] - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + 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__ = ("ReactionType",) +__all__ = ("TeamDiscussionType",) 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 201ca0a17..fa8bc7381 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0238.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0238.py @@ -9,19 +9,33 @@ 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 +from .group_0003 import SimpleUserType +from .group_0160 import ReactionRollupType -class TeamMembershipType(TypedDict): - """Team Membership - Team Membership +class TeamDiscussionCommentType(TypedDict): + """Team Discussion Comment + + 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 - role: Literal["member", "maintainer"] - state: Literal["active", "pending"] + reactions: NotRequired[ReactionRollupType] -__all__ = ("TeamMembershipType",) +__all__ = ("TeamDiscussionCommentType",) 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 eac617342..29fb93bc6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0239.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0239.py @@ -9,45 +9,27 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -class TeamProjectType(TypedDict): - """Team Project +class ReactionType(TypedDict): + """Reaction - A team's access to a project. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - 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", -) + 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_0240.py b/githubkit/versions/ghec_v2022_11_28/types/group_0240.py index d648ae260..201ca0a17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0240.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0240.py @@ -9,122 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType +class TeamMembershipType(TypedDict): + """Team Membership -class TeamRepositoryType(TypedDict): - """Team Repository - - A team's access to a repository. + Team 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] - - -class TeamRepositoryPropPermissionsType(TypedDict): - """TeamRepositoryPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + role: Literal["member", "maintainer"] + state: Literal["active", "pending"] -__all__ = ( - "TeamRepositoryPropPermissionsType", - "TeamRepositoryType", -) +__all__ = ("TeamMembershipType",) 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 fdc7baddd..eac617342 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0241.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0241.py @@ -9,32 +9,45 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -class ProjectCardType(TypedDict): - """Project Card +class TeamProjectType(TypedDict): + """Team Project - Project cards represent a scope of work. + A team's access to a project. """ + owner_url: str url: str + html_url: str + columns_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",) + name: str + body: Union[str, None] + number: int + state: str + creator: SimpleUserType + created_at: str + updated_at: str + organization_permission: NotRequired[str] + private: NotRequired[bool] + permissions: TeamProjectPropPermissionsType + + +class TeamProjectPropPermissionsType(TypedDict): + """TeamProjectPropPermissions""" + + read: bool + write: bool + admin: bool + + +__all__ = ( + "TeamProjectPropPermissionsType", + "TeamProjectType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0242.py b/githubkit/versions/ghec_v2022_11_28/types/group_0242.py index d23a9ab67..d648ae260 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0242.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0242.py @@ -10,23 +10,121 @@ 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_0019 import LicenseSimpleType -class ProjectColumnType(TypedDict): - """Project Column - Project columns contain cards of work. +class TeamRepositoryType(TypedDict): + """Team Repository + + A team's access to a repository. """ - url: str - project_url: str - cards_url: str id: int node_id: str name: str - created_at: datetime - updated_at: datetime + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[TeamRepositoryPropPermissionsType] + role_name: NotRequired[str] + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] + + +class TeamRepositoryPropPermissionsType(TypedDict): + """TeamRepositoryPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] -__all__ = ("ProjectColumnType",) +__all__ = ( + "TeamRepositoryPropPermissionsType", + "TeamRepositoryType", +) 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 45af07517..fdc7baddd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0243.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0243.py @@ -9,20 +9,32 @@ 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 -class ProjectCollaboratorPermissionType(TypedDict): - """Project Collaborator Permission +class ProjectCardType(TypedDict): + """Project Card - Project Collaborator Permission + Project cards represent a scope of work. """ - permission: str - user: Union[None, SimpleUserType] - - -__all__ = ("ProjectCollaboratorPermissionType",) + 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_0244.py b/githubkit/versions/ghec_v2022_11_28/types/group_0244.py index 7564a62f1..d23a9ab67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0244.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0244.py @@ -9,16 +9,24 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class RateLimitType(TypedDict): - """Rate Limit""" +class ProjectColumnType(TypedDict): + """Project Column - limit: int - remaining: int - reset: int - used: int + Project columns contain cards of work. + """ + url: str + project_url: str + cards_url: str + id: int + node_id: str + name: str + created_at: datetime + updated_at: datetime -__all__ = ("RateLimitType",) + +__all__ = ("ProjectColumnType",) 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 90abd1747..45af07517 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0245.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0245.py @@ -9,20 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0244 import RateLimitType -from .group_0246 import RateLimitOverviewPropResourcesType +from .group_0003 import SimpleUserType -class RateLimitOverviewType(TypedDict): - """Rate Limit Overview +class ProjectCollaboratorPermissionType(TypedDict): + """Project Collaborator Permission - Rate Limit Overview + Project Collaborator Permission """ - resources: RateLimitOverviewPropResourcesType - rate: RateLimitType + permission: str + user: Union[None, SimpleUserType] -__all__ = ("RateLimitOverviewType",) +__all__ = ("ProjectCollaboratorPermissionType",) 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 46d577927..7564a62f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0246.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0246.py @@ -9,26 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0244 import RateLimitType +class RateLimitType(TypedDict): + """Rate Limit""" -class RateLimitOverviewPropResourcesType(TypedDict): - """RateLimitOverviewPropResources""" + limit: int + remaining: int + reset: int + used: int - 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] - dependency_sbom: NotRequired[RateLimitType] - code_scanning_autofix: NotRequired[RateLimitType] - -__all__ = ("RateLimitOverviewPropResourcesType",) +__all__ = ("RateLimitType",) 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 02e909e24..0e375d44d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0247.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0247.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0246 import RateLimitType +from .group_0248 import RateLimitOverviewPropResourcesType -class ArtifactType(TypedDict): - """Artifact - An artifact +class RateLimitOverviewType(TypedDict): + """Rate Limit Overview + + Rate Limit Overview """ - id: int - node_id: str - name: str - size_in_bytes: int - url: str - archive_download_url: str - expired: bool - created_at: Union[datetime, None] - expires_at: Union[datetime, None] - updated_at: Union[datetime, None] - digest: NotRequired[Union[str, None]] - workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] - - -class ArtifactPropWorkflowRunType(TypedDict): - """ArtifactPropWorkflowRun""" - - id: NotRequired[int] - repository_id: NotRequired[int] - head_repository_id: NotRequired[int] - head_branch: NotRequired[str] - head_sha: NotRequired[str] - - -__all__ = ( - "ArtifactPropWorkflowRunType", - "ArtifactType", -) + resources: RateLimitOverviewPropResourcesType + rate: RateLimitType + + +__all__ = ("RateLimitOverviewType",) 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 88facf6b2..06303ec4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0248.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0248.py @@ -9,33 +9,26 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict +from .group_0246 import RateLimitType -class ActionsCacheListType(TypedDict): - """Repository actions caches - Repository actions caches - """ +class RateLimitOverviewPropResourcesType(TypedDict): + """RateLimitOverviewPropResources""" - total_count: int - actions_caches: list[ActionsCacheListPropActionsCachesItemsType] + 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] + dependency_sbom: NotRequired[RateLimitType] + code_scanning_autofix: NotRequired[RateLimitType] -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__ = ("RateLimitOverviewPropResourcesType",) 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 1d359461a..02e909e24 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0249.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0249.py @@ -10,66 +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 -class JobType(TypedDict): - """Job +class ArtifactType(TypedDict): + """Artifact - Information of a job execution in a workflow run + An artifact """ 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] + size_in_bytes: int + url: str + archive_download_url: str + expired: bool + created_at: Union[datetime, None] + expires_at: Union[datetime, None] + updated_at: Union[datetime, None] + digest: NotRequired[Union[str, None]] + workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] -class JobPropStepsItemsType(TypedDict): - """JobPropStepsItems""" +class ArtifactPropWorkflowRunType(TypedDict): + """ArtifactPropWorkflowRun""" - 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]] + id: NotRequired[int] + repository_id: NotRequired[int] + head_repository_id: NotRequired[int] + head_branch: NotRequired[str] + head_sha: NotRequired[str] __all__ = ( - "JobPropStepsItemsType", - "JobType", + "ArtifactPropWorkflowRunType", + "ArtifactType", ) 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 faacb2b0b..88facf6b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0250.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0250.py @@ -9,17 +9,33 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class OidcCustomSubRepoType(TypedDict): - """Actions OIDC subject customization for a repository +class ActionsCacheListType(TypedDict): + """Repository actions caches - Actions OIDC subject customization for a repository + Repository actions caches """ - use_default: bool - include_claim_keys: NotRequired[list[str]] + total_count: int + actions_caches: list[ActionsCacheListPropActionsCachesItemsType] -__all__ = ("OidcCustomSubRepoType",) +class ActionsCacheListPropActionsCachesItemsType(TypedDict): + """ActionsCacheListPropActionsCachesItems""" + + id: NotRequired[int] + ref: NotRequired[str] + key: NotRequired[str] + version: NotRequired[str] + last_accessed_at: NotRequired[datetime] + created_at: NotRequired[datetime] + size_in_bytes: NotRequired[int] + + +__all__ = ( + "ActionsCacheListPropActionsCachesItemsType", + "ActionsCacheListType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0251.py b/githubkit/versions/ghec_v2022_11_28/types/group_0251.py index 7d6ae5032..1d359461a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0251.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0251.py @@ -10,18 +10,66 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ActionsSecretType(TypedDict): - """Actions Secret +class JobType(TypedDict): + """Job - Set secrets for GitHub Actions. + Information of a job execution in a workflow run """ - name: 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 - updated_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]] -__all__ = ("ActionsSecretType",) +__all__ = ( + "JobPropStepsItemsType", + "JobType", +) 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 eb13c7e2f..faacb2b0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0252.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0252.py @@ -9,17 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ActionsVariableType(TypedDict): - """Actions Variable""" +class OidcCustomSubRepoType(TypedDict): + """Actions OIDC subject customization for a repository - name: str - value: str - created_at: datetime - updated_at: datetime + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ("ActionsVariableType",) + +__all__ = ("OidcCustomSubRepoType",) 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 eb7ddcbc1..7d6ae5032 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0253.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0253.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class ActionsRepositoryPermissionsType(TypedDict): - """ActionsRepositoryPermissions""" +class ActionsSecretType(TypedDict): + """Actions Secret - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + Set secrets for GitHub Actions. + """ + name: str + created_at: datetime + updated_at: datetime -__all__ = ("ActionsRepositoryPermissionsType",) + +__all__ = ("ActionsSecretType",) 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 d7d171918..eb13c7e2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0254.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0254.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import TypedDict -class ActionsWorkflowAccessToRepositoryType(TypedDict): - """ActionsWorkflowAccessToRepository""" +class ActionsVariableType(TypedDict): + """Actions Variable""" - access_level: Literal["none", "user", "organization", "enterprise"] + name: str + value: str + created_at: datetime + updated_at: datetime -__all__ = ("ActionsWorkflowAccessToRepositoryType",) +__all__ = ("ActionsVariableType",) 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 7879ad294..eb7ddcbc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0255.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0255.py @@ -9,55 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class PullRequestMinimalType(TypedDict): - """Pull Request Minimal""" +class ActionsRepositoryPermissionsType(TypedDict): + """ActionsRepositoryPermissions""" - id: int - number: int - url: str - head: PullRequestMinimalPropHeadType - base: PullRequestMinimalPropBaseType + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[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 - sha: str - repo: PullRequestMinimalPropBasePropRepoType - - -class PullRequestMinimalPropBasePropRepoType(TypedDict): - """PullRequestMinimalPropBasePropRepo""" - - id: int - url: str - name: str - - -__all__ = ( - "PullRequestMinimalPropBasePropRepoType", - "PullRequestMinimalPropBaseType", - "PullRequestMinimalPropHeadPropRepoType", - "PullRequestMinimalPropHeadType", - "PullRequestMinimalType", -) +__all__ = ("ActionsRepositoryPermissionsType",) 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 d8e989649..d7d171918 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0256.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0256.py @@ -9,47 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import TypedDict -class SimpleCommitType(TypedDict): - """Simple Commit +class ActionsWorkflowAccessToRepositoryType(TypedDict): + """ActionsWorkflowAccessToRepository""" - A commit. - """ + access_level: Literal["none", "user", "organization", "enterprise"] - id: str - tree_id: str - message: str - timestamp: datetime - author: Union[SimpleCommitPropAuthorType, None] - committer: Union[SimpleCommitPropCommitterType, None] - -class SimpleCommitPropAuthorType(TypedDict): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str - email: str - - -class SimpleCommitPropCommitterType(TypedDict): - """SimpleCommitPropCommitter - - Information about the Git committer - """ - - name: str - email: str - - -__all__ = ( - "SimpleCommitPropAuthorType", - "SimpleCommitPropCommitterType", - "SimpleCommitType", -) +__all__ = ("ActionsWorkflowAccessToRepositoryType",) 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 99736b91c..7879ad294 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0257.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0257.py @@ -9,72 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0176 import MinimalRepositoryType -from .group_0255 import PullRequestMinimalType -from .group_0256 import SimpleCommitType +class PullRequestMinimalType(TypedDict): + """Pull Request Minimal""" -class WorkflowRunType(TypedDict): - """Workflow Run + id: int + number: int + url: str + head: PullRequestMinimalPropHeadType + base: PullRequestMinimalPropBaseType + + +class PullRequestMinimalPropHeadType(TypedDict): + """PullRequestMinimalPropHead""" + + ref: str + sha: str + repo: PullRequestMinimalPropHeadPropRepoType - An invocation of a workflow - """ + +class PullRequestMinimalPropHeadPropRepoType(TypedDict): + """PullRequestMinimalPropHeadPropRepo""" id: int - name: NotRequired[Union[str, None]] - node_id: str - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - head_branch: Union[str, None] - head_sha: str - path: str - run_number: int - run_attempt: NotRequired[int] - referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] - event: str - status: Union[str, None] - conclusion: Union[str, None] - workflow_id: int url: str - html_url: str - pull_requests: Union[list[PullRequestMinimalType], None] - created_at: datetime - updated_at: datetime - actor: NotRequired[SimpleUserType] - triggering_actor: NotRequired[SimpleUserType] - run_started_at: NotRequired[datetime] - jobs_url: str - logs_url: str - check_suite_url: str - artifacts_url: str - cancel_url: str - rerun_url: str - previous_attempt_url: NotRequired[Union[str, None]] - workflow_url: str - head_commit: Union[None, SimpleCommitType] - repository: MinimalRepositoryType - head_repository: MinimalRepositoryType - head_repository_id: NotRequired[int] - display_title: str - - -class ReferencedWorkflowType(TypedDict): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str + name: str + + +class PullRequestMinimalPropBaseType(TypedDict): + """PullRequestMinimalPropBase""" + + ref: str sha: str - ref: NotRequired[str] + repo: PullRequestMinimalPropBasePropRepoType + + +class PullRequestMinimalPropBasePropRepoType(TypedDict): + """PullRequestMinimalPropBasePropRepo""" + + id: int + url: str + name: str __all__ = ( - "ReferencedWorkflowType", - "WorkflowRunType", + "PullRequestMinimalPropBasePropRepoType", + "PullRequestMinimalPropBaseType", + "PullRequestMinimalPropHeadPropRepoType", + "PullRequestMinimalPropHeadType", + "PullRequestMinimalType", ) 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 8003cc5ba..d8e989649 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0258.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0258.py @@ -10,37 +10,46 @@ from __future__ import annotations from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +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 EnvironmentApprovalsType(TypedDict): - """Environment Approval - An entry in the reviews log for environment deployments +class SimpleCommitPropAuthorType(TypedDict): + """SimpleCommitPropAuthor + + Information about the Git author """ - environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] - state: Literal["approved", "rejected", "pending"] - user: SimpleUserType - comment: str + name: str + email: str + +class SimpleCommitPropCommitterType(TypedDict): + """SimpleCommitPropCommitter -class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): - """EnvironmentApprovalsPropEnvironmentsItems""" + Information about the Git committer + """ - 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 + email: str __all__ = ( - "EnvironmentApprovalsPropEnvironmentsItemsType", - "EnvironmentApprovalsType", + "SimpleCommitPropAuthorType", + "SimpleCommitPropCommitterType", + "SimpleCommitType", ) 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 909bb75c8..6c07bd38f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0259.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0259.py @@ -9,14 +9,72 @@ 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_0178 import MinimalRepositoryType +from .group_0257 import PullRequestMinimalType +from .group_0258 import SimpleCommitType -class ReviewCustomGatesCommentRequiredType(TypedDict): - """ReviewCustomGatesCommentRequired""" - environment_name: str - comment: str +class WorkflowRunType(TypedDict): + """Workflow Run + An invocation of a workflow + """ -__all__ = ("ReviewCustomGatesCommentRequiredType",) + id: int + name: NotRequired[Union[str, None]] + node_id: str + check_suite_id: NotRequired[int] + check_suite_node_id: NotRequired[str] + head_branch: Union[str, None] + head_sha: str + path: str + run_number: int + run_attempt: NotRequired[int] + referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] + event: str + status: Union[str, None] + conclusion: Union[str, None] + workflow_id: int + url: str + html_url: str + pull_requests: Union[list[PullRequestMinimalType], None] + created_at: datetime + updated_at: datetime + actor: NotRequired[SimpleUserType] + triggering_actor: NotRequired[SimpleUserType] + run_started_at: NotRequired[datetime] + jobs_url: str + logs_url: str + check_suite_url: str + artifacts_url: str + cancel_url: str + rerun_url: str + previous_attempt_url: NotRequired[Union[str, None]] + workflow_url: str + head_commit: Union[None, SimpleCommitType] + repository: MinimalRepositoryType + head_repository: MinimalRepositoryType + head_repository_id: NotRequired[int] + display_title: str + + +class ReferencedWorkflowType(TypedDict): + """Referenced workflow + + A workflow referenced/reused by the initial caller workflow + """ + + path: str + sha: str + ref: NotRequired[str] + + +__all__ = ( + "ReferencedWorkflowType", + "WorkflowRunType", +) 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 75b0bb6f6..8003cc5ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0260.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0260.py @@ -9,16 +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 ReviewCustomGatesStateRequiredType(TypedDict): - """ReviewCustomGatesStateRequired""" - environment_name: str - state: Literal["approved", "rejected"] - comment: NotRequired[str] +class EnvironmentApprovalsType(TypedDict): + """Environment Approval + An entry in the reviews log for environment deployments + """ -__all__ = ("ReviewCustomGatesStateRequiredType",) + 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_0261.py b/githubkit/versions/ghec_v2022_11_28/types/group_0261.py index 2ff9ebf1f..909bb75c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0261.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0261.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_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0070 import TeamType +class ReviewCustomGatesCommentRequiredType(TypedDict): + """ReviewCustomGatesCommentRequired""" -class PendingDeploymentPropReviewersItemsType(TypedDict): - """PendingDeploymentPropReviewersItems""" + environment_name: str + comment: str - 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__ = ("ReviewCustomGatesCommentRequiredType",) 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 92437789e..75b0bb6f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0262.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0262.py @@ -9,46 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType - - -class DeploymentType(TypedDict): - """Deployment - - A request for a specific ref(branch,sha,tag) to be deployed - """ - - 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 -""" +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class ReviewCustomGatesStateRequiredType(TypedDict): + """ReviewCustomGatesStateRequired""" + + environment_name: str + state: Literal["approved", "rejected"] + comment: NotRequired[str] -__all__ = ( - "DeploymentPropPayloadOneof0Type", - "DeploymentType", -) +__all__ = ("ReviewCustomGatesStateRequiredType",) 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 f9d6d4cf5..6746de794 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0263.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0263.py @@ -9,85 +9,46 @@ 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_0071 import TeamType -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 PendingDeploymentPropReviewersItemsType(TypedDict): + """PendingDeploymentPropReviewersItems""" + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - job_id: int - duration_ms: int +class PendingDeploymentType(TypedDict): + """Pending Deployment + Details of a deployment that is waiting for protection rules to pass + """ -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] - ] + environment: PendingDeploymentPropEnvironmentType + wait_timer: int + wait_timer_started_at: Union[datetime, None] + current_user_can_approve: bool + reviewers: list[PendingDeploymentPropReviewersItemsType] -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" +class PendingDeploymentPropEnvironmentType(TypedDict): + """PendingDeploymentPropEnvironment""" - job_id: int - duration_ms: int + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] __all__ = ( - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropMacosType", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropUbuntuType", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropWindowsType", - "WorkflowRunUsagePropBillableType", - "WorkflowRunUsageType", + "PendingDeploymentPropEnvironmentType", + "PendingDeploymentPropReviewersItemsType", + "PendingDeploymentType", ) 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 6cefd47bb..92437789e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0264.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0264.py @@ -9,48 +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_0003 import SimpleUserType +from .group_0010 import IntegrationType -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""" +class DeploymentType(TypedDict): + """Deployment - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropMacosType(TypedDict): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropWindowsType(TypedDict): - """WorkflowUsagePropBillablePropWindows""" + A request for a specific ref(branch,sha,tag) to be deployed + """ - total_ms: NotRequired[int] + 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__ = ( - "WorkflowUsagePropBillablePropMacosType", - "WorkflowUsagePropBillablePropUbuntuType", - "WorkflowUsagePropBillablePropWindowsType", - "WorkflowUsagePropBillableType", - "WorkflowUsageType", + "DeploymentPropPayloadOneof0Type", + "DeploymentType", ) 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 1deac10b0..f9d6d4cf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0265.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0265.py @@ -9,34 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WorkflowRunUsageType(TypedDict): + """Workflow Run Usage -class ActivityType(TypedDict): - """Activity - - Activity + Workflow Run Usage """ - 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", + 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] ] - actor: Union[None, SimpleUserType] -__all__ = ("ActivityType",) +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int + duration_ms: int + + +__all__ = ( + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropMacosType", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropUbuntuType", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropWindowsType", + "WorkflowRunUsagePropBillableType", + "WorkflowRunUsageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0266.py b/githubkit/versions/ghec_v2022_11_28/types/group_0266.py index 8b6890539..6cefd47bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0266.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0266.py @@ -9,19 +9,48 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class AutolinkType(TypedDict): - """Autolink reference +class WorkflowUsageType(TypedDict): + """Workflow Usage - An autolink reference. + Workflow Usage """ - id: int - key_prefix: str - url_template: str - is_alphanumeric: bool + billable: WorkflowUsagePropBillableType -__all__ = ("AutolinkType",) +class WorkflowUsagePropBillableType(TypedDict): + """WorkflowUsagePropBillable""" + + ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] + + +class WorkflowUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: NotRequired[int] + + +class WorkflowUsagePropBillablePropMacosType(TypedDict): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: NotRequired[int] + + +class WorkflowUsagePropBillablePropWindowsType(TypedDict): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: NotRequired[int] + + +__all__ = ( + "WorkflowUsagePropBillablePropMacosType", + "WorkflowUsagePropBillablePropUbuntuType", + "WorkflowUsagePropBillablePropWindowsType", + "WorkflowUsagePropBillableType", + "WorkflowUsageType", +) 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 deb29de44..1deac10b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0267.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0267.py @@ -9,17 +9,34 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class CheckAutomatedSecurityFixesType(TypedDict): - """Check Dependabot security updates - Check Dependabot security updates - """ - - enabled: bool - paused: bool +class ActivityType(TypedDict): + """Activity + Activity + """ -__all__ = ("CheckAutomatedSecurityFixesType",) + 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_0268.py b/githubkit/versions/ghec_v2022_11_28/types/group_0268.py index a6fbe93b2..8b6890539 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0268.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0268.py @@ -9,31 +9,19 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0269 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, -) +class AutolinkType(TypedDict): + """Autolink reference -class ProtectedBranchPullRequestReviewType(TypedDict): - """Protected Branch Pull Request Review - - Protected Branch Pull Request Review + An autolink reference. """ - 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] + id: int + key_prefix: str + url_template: str + is_alphanumeric: bool -__all__ = ("ProtectedBranchPullRequestReviewType",) +__all__ = ("AutolinkType",) 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 e2b0cb885..deb29de44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0269.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0269.py @@ -9,37 +9,17 @@ 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_0010 import IntegrationType -from .group_0070 import TeamType +class CheckAutomatedSecurityFixesType(TypedDict): + """Check Dependabot security updates -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. + Check Dependabot security updates """ - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] + enabled: bool + paused: bool -__all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", - "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", -) +__all__ = ("CheckAutomatedSecurityFixesType",) 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 f6fd03a7a..16cc469cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0270.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0270.py @@ -9,128 +9,31 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0271 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, +) -class BranchRestrictionPolicyType(TypedDict): - """Branch Restriction Policy - - Branch Restriction Policy - """ - - 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 ProtectedBranchPullRequestReviewType(TypedDict): + """Protected Branch Pull Request Review -class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" + Protected Branch Pull Request Review + """ - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - hooks_url: NotRequired[str] - issues_url: NotRequired[str] - members_url: NotRequired[str] - public_members_url: NotRequired[str] - avatar_url: NotRequired[str] - description: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: NotRequired[str] - contents: NotRequired[str] - issues: NotRequired[str] - single_file: NotRequired[str] - - -__all__ = ( - "BranchRestrictionPolicyPropAppsItemsPropOwnerType", - "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", - "BranchRestrictionPolicyPropAppsItemsType", - "BranchRestrictionPolicyPropTeamsItemsType", - "BranchRestrictionPolicyPropUsersItemsType", - "BranchRestrictionPolicyType", -) + 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/ghec_v2022_11_28/types/group_0271.py b/githubkit/versions/ghec_v2022_11_28/types/group_0271.py index b8fbef39a..36ac4fcc6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0271.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0271.py @@ -12,135 +12,34 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0268 import ProtectedBranchPullRequestReviewType -from .group_0270 import BranchRestrictionPolicyType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0071 import TeamType -class BranchProtectionType(TypedDict): - """Branch Protection - - Branch Protection - """ +class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] 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] + users_url: NotRequired[str] + teams_url: NotRequired[str] -class ProtectedBranchAdminEnforcedType(TypedDict): - """Protected Branch Admin Enforced +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - Protected Branch Admin Enforced + Allow specific users, teams, or apps to bypass pull request requirements. """ - 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] + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] __all__ = ( - "BranchProtectionPropAllowDeletionsType", - "BranchProtectionPropAllowForcePushesType", - "BranchProtectionPropAllowForkSyncingType", - "BranchProtectionPropBlockCreationsType", - "BranchProtectionPropLockBranchType", - "BranchProtectionPropRequiredConversationResolutionType", - "BranchProtectionPropRequiredLinearHistoryType", - "BranchProtectionPropRequiredSignaturesType", - "BranchProtectionType", - "ProtectedBranchAdminEnforcedType", - "ProtectedBranchRequiredStatusCheckPropChecksItemsType", - "ProtectedBranchRequiredStatusCheckType", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", + "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", ) 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 3c1b63e7c..f6fd03a7a 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,128 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0271 import BranchProtectionType +class BranchRestrictionPolicyType(TypedDict): + """Branch Restriction Policy -class ShortBranchType(TypedDict): - """Short Branch - - Short Branch + Branch Restriction Policy """ - name: str - commit: ShortBranchPropCommitType - protected: bool - protection: NotRequired[BranchProtectionType] - protection_url: NotRequired[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""" -class ShortBranchPropCommitType(TypedDict): - """ShortBranchPropCommit""" + 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] - sha: str - url: 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__ = ( - "ShortBranchPropCommitType", - "ShortBranchType", + "BranchRestrictionPolicyPropAppsItemsPropOwnerType", + "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", + "BranchRestrictionPolicyPropAppsItemsType", + "BranchRestrictionPolicyPropTeamsItemsType", + "BranchRestrictionPolicyPropUsersItemsType", + "BranchRestrictionPolicyType", ) 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 7c317075a..f9e5b489f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0273.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0273.py @@ -9,19 +9,138 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0270 import ProtectedBranchPullRequestReviewType +from .group_0272 import BranchRestrictionPolicyType -class GitUserType(TypedDict): - """Git User - Metaproperties for Git author/committer information. +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] - email: NotRequired[str] - date: NotRequired[datetime] + protection_url: NotRequired[str] + required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] + lock_branch: NotRequired[BranchProtectionPropLockBranchType] + allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] + + +class ProtectedBranchAdminEnforcedType(TypedDict): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + + url: str + enabled: bool + + +class BranchProtectionPropRequiredLinearHistoryType(TypedDict): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForcePushesType(TypedDict): + """BranchProtectionPropAllowForcePushes""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowDeletionsType(TypedDict): + """BranchProtectionPropAllowDeletions""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropBlockCreationsType(TypedDict): + """BranchProtectionPropBlockCreations""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredConversationResolutionType(TypedDict): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredSignaturesType(TypedDict): + """BranchProtectionPropRequiredSignatures""" + + url: str + enabled: bool + + +class BranchProtectionPropLockBranchType(TypedDict): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForkSyncingType(TypedDict): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckType(TypedDict): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: NotRequired[str] + enforcement_level: NotRequired[str] + contexts: list[str] + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] + contexts_url: NotRequired[str] + strict: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str + app_id: Union[int, None] -__all__ = ("GitUserType",) +__all__ = ( + "BranchProtectionPropAllowDeletionsType", + "BranchProtectionPropAllowForcePushesType", + "BranchProtectionPropAllowForkSyncingType", + "BranchProtectionPropBlockCreationsType", + "BranchProtectionPropLockBranchType", + "BranchProtectionPropRequiredConversationResolutionType", + "BranchProtectionPropRequiredLinearHistoryType", + "BranchProtectionPropRequiredSignaturesType", + "BranchProtectionType", + "ProtectedBranchAdminEnforcedType", + "ProtectedBranchRequiredStatusCheckPropChecksItemsType", + "ProtectedBranchRequiredStatusCheckType", +) 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 fb5244f00..18b85c292 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0274.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0274.py @@ -9,18 +9,32 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0273 import BranchProtectionType -class VerificationType(TypedDict): - """Verification""" - verified: bool - reason: str - payload: Union[str, None] - signature: Union[str, None] - verified_at: NotRequired[Union[str, None]] +class ShortBranchType(TypedDict): + """Short Branch + Short Branch + """ -__all__ = ("VerificationType",) + name: str + commit: ShortBranchPropCommitType + protected: bool + protection: NotRequired[BranchProtectionType] + protection_url: NotRequired[str] + + +class ShortBranchPropCommitType(TypedDict): + """ShortBranchPropCommit""" + + sha: str + url: str + + +__all__ = ( + "ShortBranchPropCommitType", + "ShortBranchType", +) 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 bb2e4713b..7c317075a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0275.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0275.py @@ -9,29 +9,19 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class DiffEntryType(TypedDict): - """Diff Entry +class GitUserType(TypedDict): + """Git User - Diff Entry + Metaproperties for Git author/committer information. """ - sha: Union[str, None] - 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",) + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] + + +__all__ = ("GitUserType",) 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 988de6ae2..fb5244f00 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0276.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0276.py @@ -12,56 +12,15 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0275 import DiffEntryType -from .group_0277 import CommitPropCommitType +class VerificationType(TypedDict): + """Verification""" -class CommitType(TypedDict): - """Commit + verified: bool + reason: str + payload: Union[str, None] + signature: Union[str, None] + verified_at: NotRequired[Union[str, None]] - 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]] - - -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", -) +__all__ = ("VerificationType",) 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 39e435e95..bb2e4713b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0277.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0277.py @@ -9,33 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0273 import GitUserType -from .group_0274 import VerificationType +class DiffEntryType(TypedDict): + """Diff Entry -class CommitPropCommitType(TypedDict): - """CommitPropCommit""" + Diff Entry + """ - url: str - author: Union[None, GitUserType] - committer: Union[None, GitUserType] - message: str - comment_count: int - tree: CommitPropCommitPropTreeType - verification: NotRequired[VerificationType] + sha: Union[str, None] + 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 CommitPropCommitPropTreeType(TypedDict): - """CommitPropCommitPropTree""" - - sha: str - url: str - - -__all__ = ( - "CommitPropCommitPropTreeType", - "CommitPropCommitType", -) +__all__ = ("DiffEntryType",) 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 90120c7ab..462697d04 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0278.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0278.py @@ -9,36 +9,59 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0271 import BranchProtectionType -from .group_0276 import CommitType +from .group_0003 import SimpleUserType +from .group_0277 import DiffEntryType +from .group_0279 import CommitPropCommitType -class BranchWithProtectionType(TypedDict): - """Branch With Protection +class CommitType(TypedDict): + """Commit - Branch With Protection + Commit """ - name: str - commit: CommitType - links: BranchWithProtectionPropLinksType - protected: bool - protection: BranchProtectionType - protection_url: str - pattern: NotRequired[str] - required_approving_review_count: NotRequired[int] + 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 BranchWithProtectionPropLinksType(TypedDict): - """BranchWithProtectionPropLinks""" +class EmptyObjectType(TypedDict): + """Empty Object - html: str - self_: str + 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__ = ( - "BranchWithProtectionPropLinksType", - "BranchWithProtectionType", + "CommitPropParentsItemsType", + "CommitPropStatsType", + "CommitType", + "EmptyObjectType", ) 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 601555dbe..caa49543f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0279.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0279.py @@ -12,130 +12,30 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0270 import BranchRestrictionPolicyType -from .group_0280 import ProtectedBranchPropRequiredPullRequestReviewsType +from .group_0275 import GitUserType +from .group_0276 import VerificationType -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""" +class CommitPropCommitType(TypedDict): + """CommitPropCommit""" url: str - enabled: bool - - -class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool - - -class ProtectedBranchPropAllowForcePushesType(TypedDict): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool - - -class ProtectedBranchPropAllowDeletionsType(TypedDict): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool + author: Union[None, GitUserType] + committer: Union[None, GitUserType] + message: str + comment_count: int + tree: CommitPropCommitPropTreeType + verification: NotRequired[VerificationType] -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 - """ +class CommitPropCommitPropTreeType(TypedDict): + """CommitPropCommitPropTree""" + sha: str 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", + "CommitPropCommitPropTreeType", + "CommitPropCommitType", ) 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 196829170..dce7c6d23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0280.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0280.py @@ -11,26 +11,34 @@ from typing_extensions import NotRequired, TypedDict -from .group_0281 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, -) +from .group_0273 import BranchProtectionType +from .group_0278 import CommitType + +class BranchWithProtectionType(TypedDict): + """Branch With Protection -class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): - """ProtectedBranchPropRequiredPullRequestReviews""" + Branch With Protection + """ - url: str - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] + name: str + commit: CommitType + links: BranchWithProtectionPropLinksType + protected: bool + protection: BranchProtectionType + protection_url: str + pattern: NotRequired[str] required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - dismissal_restrictions: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] -__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) +class BranchWithProtectionPropLinksType(TypedDict): + """BranchWithProtectionPropLinks""" + + html: str + self_: str + + +__all__ = ( + "BranchWithProtectionPropLinksType", + "BranchWithProtectionType", +) 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 2fb9d8c84..a94b9082f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0281.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0281.py @@ -12,35 +12,130 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0070 import TeamType +from .group_0272 import BranchRestrictionPolicyType +from .group_0282 import ProtectedBranchPropRequiredPullRequestReviewsType -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +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 + """ url: str - users_url: str - teams_url: str - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] + strict: bool + contexts: list[str] + checks: list[StatusCheckPolicyPropChecksItemsType] + contexts_url: str -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class StatusCheckPolicyPropChecksItemsType(TypedDict): + """StatusCheckPolicyPropChecksItems""" - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] + context: str + app_id: Union[int, None] __all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ProtectedBranchPropAllowDeletionsType", + "ProtectedBranchPropAllowForcePushesType", + "ProtectedBranchPropAllowForkSyncingType", + "ProtectedBranchPropBlockCreationsType", + "ProtectedBranchPropEnforceAdminsType", + "ProtectedBranchPropLockBranchType", + "ProtectedBranchPropRequiredConversationResolutionType", + "ProtectedBranchPropRequiredLinearHistoryType", + "ProtectedBranchPropRequiredSignaturesType", + "ProtectedBranchType", + "StatusCheckPolicyPropChecksItemsType", + "StatusCheckPolicyType", ) 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 daf967d0f..57ed939c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0282.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0282.py @@ -9,34 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType +from .group_0283 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, +) -class DeploymentSimpleType(TypedDict): - """Deployment - - A deployment created as the result of an Actions check run from a workflow that - references an environment - """ +class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): + """ProtectedBranchPropRequiredPullRequestReviews""" 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",) + 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",) 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 68c91644f..377b42ca4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0283.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0283.py @@ -9,71 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0255 import PullRequestMinimalType -from .group_0282 import DeploymentSimpleType +from .group_0071 import TeamType -class CheckRunType(TypedDict): - """CheckRun +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - 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""" - - title: Union[str, None] - summary: Union[str, None] - text: Union[str, None] - annotations_count: int - annotations_url: str + users_url: str + teams_url: str + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] -class CheckRunPropCheckSuiteType(TypedDict): - """CheckRunPropCheckSuite""" +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" - id: int + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] __all__ = ( - "CheckRunPropCheckSuiteType", - "CheckRunPropOutputType", - "CheckRunType", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", ) 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 82fbb570d..daf967d0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0284.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0284.py @@ -9,26 +9,34 @@ 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_0010 import IntegrationType -class CheckAnnotationType(TypedDict): - """Check Annotation - Check Annotation - """ - - path: str - start_line: int - end_line: int - start_column: Union[int, None] - end_column: Union[int, None] - annotation_level: Union[str, None] - title: Union[str, None] - message: Union[str, None] - raw_details: Union[str, None] - blob_href: str +class DeploymentSimpleType(TypedDict): + """Deployment + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ -__all__ = ("CheckAnnotationType",) + url: str + id: int + node_id: str + task: str + original_environment: NotRequired[str] + environment: str + description: Union[str, None] + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0285.py b/githubkit/versions/ghec_v2022_11_28/types/group_0285.py index 2e72d8b03..680bc2d6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0285.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0285.py @@ -14,26 +14,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0010 import IntegrationType -from .group_0176 import MinimalRepositoryType -from .group_0255 import PullRequestMinimalType -from .group_0256 import SimpleCommitType +from .group_0257 import PullRequestMinimalType +from .group_0284 import DeploymentSimpleType -class CheckSuiteType(TypedDict): - """CheckSuite +class CheckRunType(TypedDict): + """CheckRun - A suite of checks performed on the code of a given code change + A check performed on the code of a given code change """ id: int - node_id: str - head_branch: Union[str, None] head_sha: str - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], + 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, @@ -45,33 +44,36 @@ class CheckSuiteType(TypedDict): "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] + started_at: Union[datetime, None] + completed_at: Union[datetime, None] + output: CheckRunPropOutputType + name: str + check_suite: Union[CheckRunPropCheckSuiteType, 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] + pull_requests: list[PullRequestMinimalType] + deployment: NotRequired[DeploymentSimpleType] -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" +class CheckRunPropOutputType(TypedDict): + """CheckRunPropOutput""" - total_count: int - check_suites: list[CheckSuiteType] + 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__ = ( - "CheckSuiteType", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", + "CheckRunPropCheckSuiteType", + "CheckRunPropOutputType", + "CheckRunType", ) 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 57585988d..82fbb570d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0286.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0286.py @@ -9,38 +9,26 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0176 import MinimalRepositoryType +class CheckAnnotationType(TypedDict): + """Check Annotation -class CheckSuitePreferenceType(TypedDict): - """Check Suite Preference - - Check suite configuration preferences for a repository. + Check Annotation """ - preferences: CheckSuitePreferencePropPreferencesType - repository: MinimalRepositoryType - - -class CheckSuitePreferencePropPreferencesType(TypedDict): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: NotRequired[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] - ] - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int - setting: bool + 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__ = ( - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", - "CheckSuitePreferencePropPreferencesType", - "CheckSuitePreferenceType", -) +__all__ = ("CheckAnnotationType",) 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 1c6e725e9..d9b0c18da 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0287.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0287.py @@ -13,33 +13,65 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0058 import CodeScanningAlertRuleSummaryType -from .group_0059 import CodeScanningAnalysisToolType -from .group_0060 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"] +from .group_0010 import IntegrationType +from .group_0178 import MinimalRepositoryType +from .group_0257 import PullRequestMinimalType +from .group_0258 import SimpleCommitType + + +class CheckSuiteType(TypedDict): + """CheckSuite + + A suite of checks performed on the code of a given code change + """ + + id: int + node_id: str + head_branch: Union[str, None] + head_sha: str + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + 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__ = ("CodeScanningAlertItemsType",) +__all__ = ( + "CheckSuiteType", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", +) 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 12346aa3c..a21a7a18f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0288.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0288.py @@ -9,55 +9,38 @@ 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_0059 import CodeScanningAnalysisToolType -from .group_0060 import CodeScanningAlertInstanceType - - -class CodeScanningAlertType(TypedDict): - """CodeScanningAlert""" - - number: int - created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] +from .group_0178 import MinimalRepositoryType + + +class CheckSuitePreferenceType(TypedDict): + """Check Suite Preference + + Check suite configuration preferences for a repository. + """ + preferences: CheckSuitePreferencePropPreferencesType + repository: MinimalRepositoryType -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"]] +class CheckSuitePreferencePropPreferencesType(TypedDict): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: NotRequired[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[list[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int + setting: bool __all__ = ( - "CodeScanningAlertRuleType", - "CodeScanningAlertType", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", + "CheckSuitePreferencePropPreferencesType", + "CheckSuitePreferenceType", ) 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 1a155e137..1c6e725e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0289.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0289.py @@ -11,15 +11,35 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict - - -class CodeScanningAutofixType(TypedDict): - """CodeScanningAutofix""" - - status: Literal["pending", "error", "success", "outdated"] - description: Union[str, None] - started_at: datetime - - -__all__ = ("CodeScanningAutofixType",) +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0058 import CodeScanningAlertRuleSummaryType +from .group_0059 import CodeScanningAnalysisToolType +from .group_0060 import CodeScanningAlertInstanceType + + +class CodeScanningAlertItemsType(TypedDict): + """CodeScanningAlertItems""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + + +__all__ = ("CodeScanningAlertItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0290.py b/githubkit/versions/ghec_v2022_11_28/types/group_0290.py index 8ec0e8374..12346aa3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0290.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0290.py @@ -9,17 +9,55 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class CodeScanningAutofixCommitsType(TypedDict): - """CodeScanningAutofixCommits - - Commit an autofix for a code scanning alert - """ - - target_ref: NotRequired[str] - message: NotRequired[str] - - -__all__ = ("CodeScanningAutofixCommitsType",) +from .group_0003 import SimpleUserType +from .group_0059 import CodeScanningAnalysisToolType +from .group_0060 import CodeScanningAlertInstanceType + + +class CodeScanningAlertType(TypedDict): + """CodeScanningAlert""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + + +class CodeScanningAlertRuleType(TypedDict): + """CodeScanningAlertRule""" + + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[list[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + + +__all__ = ( + "CodeScanningAlertRuleType", + "CodeScanningAlertType", +) 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 2cbf6f579..1a155e137 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0291.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0291.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict -class CodeScanningAutofixCommitsResponseType(TypedDict): - """CodeScanningAutofixCommitsResponse""" +class CodeScanningAutofixType(TypedDict): + """CodeScanningAutofix""" - target_ref: NotRequired[str] - sha: NotRequired[str] + status: Literal["pending", "error", "success", "outdated"] + description: Union[str, None] + started_at: datetime -__all__ = ("CodeScanningAutofixCommitsResponseType",) +__all__ = ("CodeScanningAutofixType",) 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 7e7ca9ae8..8ec0e8374 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0292.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0292.py @@ -9,30 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_0059 import CodeScanningAnalysisToolType +class CodeScanningAutofixCommitsType(TypedDict): + """CodeScanningAutofixCommits -class CodeScanningAnalysisType(TypedDict): - """CodeScanningAnalysis""" + Commit an autofix for a code scanning alert + """ - 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 + target_ref: NotRequired[str] + message: NotRequired[str] -__all__ = ("CodeScanningAnalysisType",) +__all__ = ("CodeScanningAutofixCommitsType",) 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 a217f8af1..2cbf6f579 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0293.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0293.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CodeScanningAnalysisDeletionType(TypedDict): - """Analysis deletion +class CodeScanningAutofixCommitsResponseType(TypedDict): + """CodeScanningAutofixCommitsResponse""" - Successful deletion of a code scanning analysis - """ + target_ref: NotRequired[str] + sha: NotRequired[str] - next_analysis_url: Union[str, None] - confirm_delete_url: Union[str, None] - -__all__ = ("CodeScanningAnalysisDeletionType",) +__all__ = ("CodeScanningAutofixCommitsResponseType",) 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 279371ebd..7e7ca9ae8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0294.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0294.py @@ -10,28 +10,29 @@ 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_0059 import CodeScanningAnalysisToolType -class CodeScanningCodeqlDatabaseType(TypedDict): - """CodeQL Database +class CodeScanningAnalysisType(TypedDict): + """CodeScanningAnalysis""" - A CodeQL database. - """ - - id: int - name: str - language: str - uploader: SimpleUserType - content_type: str - size: int + ref: str + commit_sha: str + analysis_key: str + environment: str + category: NotRequired[str] + error: str created_at: datetime - updated_at: datetime + results_count: int + rules_count: int + id: int url: str - commit_oid: NotRequired[Union[str, None]] + sarif_id: str + tool: CodeScanningAnalysisToolType + deletable: bool + warning: str -__all__ = ("CodeScanningCodeqlDatabaseType",) +__all__ = ("CodeScanningAnalysisType",) 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 86f33d140..a217f8af1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0295.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0295.py @@ -9,23 +9,18 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import TypedDict -class CodeScanningVariantAnalysisRepositoryType(TypedDict): - """Repository Identifier +class CodeScanningAnalysisDeletionType(TypedDict): + """Analysis deletion - Repository Identifier + Successful deletion of a code scanning analysis """ - id: int - name: str - full_name: str - private: bool - stargazers_count: int - updated_at: Union[datetime, None] + next_analysis_url: Union[str, None] + confirm_delete_url: Union[str, None] -__all__ = ("CodeScanningVariantAnalysisRepositoryType",) +__all__ = ("CodeScanningAnalysisDeletionType",) 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 24bab6ecc..279371ebd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0296.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0296.py @@ -9,16 +9,29 @@ 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_0295 import CodeScanningVariantAnalysisRepositoryType +from .group_0003 import SimpleUserType -class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningCodeqlDatabaseType(TypedDict): + """CodeQL Database - repository_count: int - repositories: list[CodeScanningVariantAnalysisRepositoryType] + 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__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) + +__all__ = ("CodeScanningCodeqlDatabaseType",) 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 e358ea71b..86f33d140 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0297.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0297.py @@ -10,42 +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 -from .group_0003 import SimpleUserType -from .group_0061 import SimpleRepositoryType -from .group_0298 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType -from .group_0299 import CodeScanningVariantAnalysisPropSkippedRepositoriesType +class CodeScanningVariantAnalysisRepositoryType(TypedDict): + """Repository Identifier -class CodeScanningVariantAnalysisType(TypedDict): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Repository Identifier """ id: int - controller_repo: SimpleRepositoryType - actor: SimpleUserType - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] - query_pack_url: str - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - completed_at: NotRequired[Union[datetime, None]] - status: Literal["in_progress", "succeeded", "failed", "cancelled"] - actions_workflow_run_id: NotRequired[int] - failure_reason: NotRequired[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] - scanned_repositories: NotRequired[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] - ] - skipped_repositories: NotRequired[ - CodeScanningVariantAnalysisPropSkippedRepositoriesType - ] - - -__all__ = ("CodeScanningVariantAnalysisType",) + 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_0298.py b/githubkit/versions/ghec_v2022_11_28/types/group_0298.py index 76cb3d54b..366e4dfc0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0298.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0298.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_0295 import CodeScanningVariantAnalysisRepositoryType +from .group_0297 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - 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] + repository_count: int + repositories: list[CodeScanningVariantAnalysisRepositoryType] -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) 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 6fa0d8747..6da0fcb83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0299.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0299.py @@ -9,36 +9,43 @@ 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_0296 import CodeScanningVariantAnalysisSkippedRepoGroupType +from .group_0003 import SimpleUserType +from .group_0061 import SimpleRepositoryType +from .group_0300 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType +from .group_0301 import CodeScanningVariantAnalysisPropSkippedRepositoriesType -class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningVariantAnalysisType(TypedDict): + """Variant Analysis - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + A run of a CodeQL query against one or more repositories. """ - 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", -) + id: int + controller_repo: SimpleRepositoryType + actor: SimpleUserType + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack_url: str + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + completed_at: NotRequired[Union[datetime, None]] + status: Literal["in_progress", "succeeded", "failed", "cancelled"] + actions_workflow_run_id: NotRequired[int] + failure_reason: NotRequired[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] + scanned_repositories: NotRequired[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] + ] + skipped_repositories: NotRequired[ + CodeScanningVariantAnalysisPropSkippedRepositoriesType + ] + + +__all__ = ("CodeScanningVariantAnalysisType",) 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 34fba4dc3..12ff7b34d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0300.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0300.py @@ -12,22 +12,19 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0061 import SimpleRepositoryType +from .group_0297 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningVariantAnalysisRepoTaskType(TypedDict): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - repository: SimpleRepositoryType + repository: CodeScanningVariantAnalysisRepositoryType analysis_status: Literal[ "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" ] - artifact_size_in_bytes: NotRequired[int] result_count: NotRequired[int] + artifact_size_in_bytes: NotRequired[int] failure_message: NotRequired[str] - database_commit_sha: NotRequired[str] - source_location_prefix: NotRequired[str] - artifact_url: NotRequired[str] -__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) 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 481da9df9..91bfa989c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0301.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0301.py @@ -9,41 +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_0298 import CodeScanningVariantAnalysisSkippedRepoGroupType -class CodeScanningDefaultSetupType(TypedDict): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +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. """ - state: NotRequired[Literal["configured", "not-configured"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] - runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - threat_model: NotRequired[Literal["remote", "remote_and_local"]] - updated_at: NotRequired[Union[datetime, None]] - schedule: NotRequired[Union[None, Literal["weekly"]]] - - -__all__ = ("CodeScanningDefaultSetupType",) + 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_0302.py b/githubkit/versions/ghec_v2022_11_28/types/group_0302.py index 69c76e214..34fba4dc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0302.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0302.py @@ -9,36 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0061 import SimpleRepositoryType -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"]] - threat_model: NotRequired[Literal["remote", "remote_and_local"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] + +class CodeScanningVariantAnalysisRepoTaskType(TypedDict): + """CodeScanningVariantAnalysisRepoTask""" + + repository: SimpleRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" ] + artifact_size_in_bytes: NotRequired[int] + result_count: NotRequired[int] + failure_message: NotRequired[str] + database_commit_sha: NotRequired[str] + source_location_prefix: NotRequired[str] + artifact_url: NotRequired[str] -__all__ = ("CodeScanningDefaultSetupUpdateType",) +__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) 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 f363fa4b1..481da9df9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0303.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0303.py @@ -9,19 +9,41 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningDefaultSetupUpdateResponseType(TypedDict): - """CodeScanningDefaultSetupUpdateResponse +class CodeScanningDefaultSetupType(TypedDict): + """CodeScanningDefaultSetup - 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. + Configuration for code scanning default setup. """ - run_id: NotRequired[int] - run_url: NotRequired[str] - - -__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) + state: NotRequired[Literal["configured", "not-configured"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] + runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + threat_model: NotRequired[Literal["remote", "remote_and_local"]] + updated_at: NotRequired[Union[datetime, None]] + schedule: NotRequired[Union[None, Literal["weekly"]]] + + +__all__ = ("CodeScanningDefaultSetupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0304.py b/githubkit/versions/ghec_v2022_11_28/types/group_0304.py index 5a45d64e1..69c76e214 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0304.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0304.py @@ -9,14 +9,36 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningSarifsReceiptType(TypedDict): - """CodeScanningSarifsReceipt""" - - id: NotRequired[str] - url: NotRequired[str] - - -__all__ = ("CodeScanningSarifsReceiptType",) +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"]] + threat_model: NotRequired[Literal["remote", "remote_and_local"]] + 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_0305.py b/githubkit/versions/ghec_v2022_11_28/types/group_0305.py index 3b46d219b..f363fa4b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0305.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0305.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningSarifsStatusType(TypedDict): - """CodeScanningSarifsStatus""" +class CodeScanningDefaultSetupUpdateResponseType(TypedDict): + """CodeScanningDefaultSetupUpdateResponse - processing_status: NotRequired[Literal["pending", "complete", "failed"]] - analyses_url: NotRequired[Union[str, None]] - errors: NotRequired[Union[list[str], None]] + 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] -__all__ = ("CodeScanningSarifsStatusType",) + +__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) 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 418c6bccd..5a45d64e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0306.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0306.py @@ -9,31 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0063 import CodeSecurityConfigurationType +class CodeScanningSarifsReceiptType(TypedDict): + """CodeScanningSarifsReceipt""" -class CodeSecurityConfigurationForRepositoryType(TypedDict): - """CodeSecurityConfigurationForRepository + id: NotRequired[str] + url: NotRequired[str] - Code security configuration associated with a repository and attachment status - """ - status: NotRequired[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] - configuration: NotRequired[CodeSecurityConfigurationType] - - -__all__ = ("CodeSecurityConfigurationForRepositoryType",) +__all__ = ("CodeScanningSarifsReceiptType",) 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 4480d357f..3b46d219b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0307.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0307.py @@ -9,32 +9,16 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeownersErrorsType(TypedDict): - """CODEOWNERS errors +class CodeScanningSarifsStatusType(TypedDict): + """CodeScanningSarifsStatus""" - A list of errors found in a repo's CODEOWNERS file - """ + processing_status: NotRequired[Literal["pending", "complete", "failed"]] + analyses_url: NotRequired[Union[str, None]] + errors: NotRequired[Union[list[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__ = ( - "CodeownersErrorsPropErrorsItemsType", - "CodeownersErrorsType", -) +__all__ = ("CodeScanningSarifsStatusType",) 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 e1c93e03b..418c6bccd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0308.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0308.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_0063 import CodeSecurityConfigurationType -class CodespacesPermissionsCheckForDevcontainerType(TypedDict): - """Codespaces Permissions Check - Permission check result for a given devcontainer config. - """ - - accepted: bool +class CodeSecurityConfigurationForRepositoryType(TypedDict): + """CodeSecurityConfigurationForRepository + Code security configuration associated with a repository and attachment status + """ -__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) + 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_0309.py b/githubkit/versions/ghec_v2022_11_28/types/group_0309.py index 1e5d0a456..4480d357f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0309.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0309.py @@ -9,30 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0176 import MinimalRepositoryType +class CodeownersErrorsType(TypedDict): + """CODEOWNERS errors -class RepositoryInvitationType(TypedDict): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. + A list of errors found in a repo's CODEOWNERS file """ - 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 + 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__ = ("RepositoryInvitationType",) +__all__ = ( + "CodeownersErrorsPropErrorsItemsType", + "CodeownersErrorsType", +) 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 10af54a9e..e1c93e03b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0310.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0310.py @@ -9,64 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class RepositoryCollaboratorPermissionType(TypedDict): - """Repository Collaborator Permission +class CodespacesPermissionsCheckForDevcontainerType(TypedDict): + """Codespaces Permissions Check - Repository Collaborator Permission + Permission check result for a given devcontainer config. """ - permission: str - role_name: str - user: Union[None, CollaboratorType] + accepted: bool -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__ = ("CodespacesPermissionsCheckForDevcontainerType",) 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 86b98054a..011c1ea67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0311.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0311.py @@ -14,53 +14,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0159 import ReactionRollupType +from .group_0178 import MinimalRepositoryType -class CommitCommentType(TypedDict): - """Commit Comment +class RepositoryInvitationType(TypedDict): + """Repository Invitation - Commit Comment + Repository invitations let you manage who you collaborate with. """ - 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] + repository: MinimalRepositoryType + invitee: Union[None, SimpleUserType] + inviter: Union[None, SimpleUserType] + permissions: Literal["read", "write", "admin", "triage", "maintain"] 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]] + expired: NotRequired[bool] + url: str + html_url: str + node_id: str -__all__ = ( - "CommitCommentType", - "TimelineCommitCommentedEventType", -) +__all__ = ("RepositoryInvitationType",) 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 997250710..10af54a9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0312.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0312.py @@ -9,28 +9,64 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class BranchShortType(TypedDict): - """Branch Short +class RepositoryCollaboratorPermissionType(TypedDict): + """Repository Collaborator Permission - Branch Short + Repository Collaborator Permission """ - name: str - commit: BranchShortPropCommitType - protected: bool + permission: str + role_name: str + user: Union[None, CollaboratorType] -class BranchShortPropCommitType(TypedDict): - """BranchShortPropCommit""" +class CollaboratorType(TypedDict): + """Collaborator - sha: str + 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__ = ( - "BranchShortPropCommitType", - "BranchShortType", + "CollaboratorPropPermissionsType", + "CollaboratorType", + "RepositoryCollaboratorPermissionType", ) 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 064aa0ae7..d5d76e441 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0313.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0313.py @@ -9,16 +9,58 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0160 import ReactionRollupType -class LinkType(TypedDict): - """Link - Hypermedia Link +class CommitCommentType(TypedDict): + """Commit Comment + + 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 """ - href: str + event: NotRequired[Literal["commit_commented"]] + node_id: NotRequired[str] + commit_id: NotRequired[str] + comments: NotRequired[list[CommitCommentType]] -__all__ = ("LinkType",) +__all__ = ( + "CommitCommentType", + "TimelineCommitCommentedEventType", +) 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 ac1473211..997250710 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0314.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0314.py @@ -9,22 +9,28 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class BranchShortType(TypedDict): + """Branch Short -class AutoMergeType(TypedDict): - """Auto merge - - The status of auto merging a pull request. + Branch Short """ - enabled_by: SimpleUserType - merge_method: Literal["merge", "squash", "rebase"] - commit_title: Union[str, None] - commit_message: Union[str, None] + name: str + commit: BranchShortPropCommitType + protected: bool + + +class BranchShortPropCommitType(TypedDict): + """BranchShortPropCommit""" + + sha: str + url: str -__all__ = ("AutoMergeType",) +__all__ = ( + "BranchShortPropCommitType", + "BranchShortType", +) 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 d39064945..064aa0ae7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0315.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0315.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_0003 import SimpleUserType -from .group_0070 import TeamType -from .group_0157 import MilestoneType -from .group_0314 import AutoMergeType -from .group_0316 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType -from .group_0317 import PullRequestSimplePropLinksType +class LinkType(TypedDict): + """Link -class PullRequestSimpleType(TypedDict): - """Pull Request Simple - - Pull Request Simple + Hypermedia Link """ - 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 + href: str -__all__ = ( - "PullRequestSimplePropLabelsItemsType", - "PullRequestSimpleType", -) +__all__ = ("LinkType",) 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 1c03aef11..ac1473211 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0316.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0316.py @@ -9,34 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -class PullRequestSimplePropHeadType(TypedDict): - """PullRequestSimplePropHead""" +class AutoMergeType(TypedDict): + """Auto merge - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] + The status of auto merging a pull request. + """ + enabled_by: SimpleUserType + merge_method: Literal["merge", "squash", "rebase"] + commit_title: Union[str, None] + commit_message: Union[str, None] -class PullRequestSimplePropBaseType(TypedDict): - """PullRequestSimplePropBase""" - label: str - ref: str - repo: RepositoryType - sha: str - user: Union[None, SimpleUserType] - - -__all__ = ( - "PullRequestSimplePropBaseType", - "PullRequestSimplePropHeadType", -) +__all__ = ("AutoMergeType",) 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 e94eb6a44..5972b4b07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0317.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0317.py @@ -9,22 +9,84 @@ 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_0313 import LinkType +from .group_0003 import SimpleUserType +from .group_0071 import TeamType +from .group_0158 import MilestoneType +from .group_0316 import AutoMergeType +from .group_0318 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType +from .group_0319 import PullRequestSimplePropLinksType -class PullRequestSimplePropLinksType(TypedDict): - """PullRequestSimplePropLinks""" +class PullRequestSimpleType(TypedDict): + """Pull Request Simple - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + Pull Request Simple + """ + 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] -__all__ = ("PullRequestSimplePropLinksType",) + +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/ghec_v2022_11_28/types/group_0318.py b/githubkit/versions/ghec_v2022_11_28/types/group_0318.py index 62cf438e8..1c03aef11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0318.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0318.py @@ -9,45 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0176 import MinimalRepositoryType +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class CombinedCommitStatusType(TypedDict): - """Combined Commit Status +class PullRequestSimplePropHeadType(TypedDict): + """PullRequestSimplePropHead""" - Combined Commit Status - """ - - state: str - statuses: list[SimpleCommitStatusType] + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] sha: str - total_count: int - repository: MinimalRepositoryType - commit_url: str - url: str + user: Union[None, SimpleUserType] -class SimpleCommitStatusType(TypedDict): - """Simple Commit Status""" +class PullRequestSimplePropBaseType(TypedDict): + """PullRequestSimplePropBase""" - 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 + label: str + ref: str + repo: RepositoryType + sha: str + user: Union[None, SimpleUserType] __all__ = ( - "CombinedCommitStatusType", - "SimpleCommitStatusType", + "PullRequestSimplePropBaseType", + "PullRequestSimplePropHeadType", ) 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 13b770a02..bce3384d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0319.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0319.py @@ -9,29 +9,22 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +from .group_0315 import LinkType -class StatusType(TypedDict): - """Status +class PullRequestSimplePropLinksType(TypedDict): + """PullRequestSimplePropLinks""" - The status of a commit. - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - 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__ = ("PullRequestSimplePropLinksType",) 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 59863e993..bef6ec990 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0320.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0320.py @@ -13,45 +13,41 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0019 import LicenseSimpleType -from .group_0227 import CodeOfConductSimpleType +from .group_0178 import MinimalRepositoryType -class CommunityProfilePropFilesType(TypedDict): - """CommunityProfilePropFiles""" +class CombinedCommitStatusType(TypedDict): + """Combined Commit Status - 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""" + Combined Commit Status + """ + state: str + statuses: list[SimpleCommitStatusType] + sha: str + total_count: int + repository: MinimalRepositoryType + commit_url: str url: str - html_url: str -class CommunityProfileType(TypedDict): - """Community Profile +class SimpleCommitStatusType(TypedDict): + """Simple Commit Status""" - Community Profile - """ - - health_percentage: int description: Union[str, None] - documentation: Union[str, None] - files: CommunityProfilePropFilesType - updated_at: Union[datetime, None] - content_reports_enabled: NotRequired[bool] + 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__ = ( - "CommunityHealthFileType", - "CommunityProfilePropFilesType", - "CommunityProfileType", + "CombinedCommitStatusType", + "SimpleCommitStatusType", ) 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 01d89eba9..13b770a02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0321.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0321.py @@ -9,32 +9,29 @@ 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_0275 import DiffEntryType -from .group_0276 import CommitType +from .group_0003 import SimpleUserType -class CommitComparisonType(TypedDict): - """Commit Comparison +class StatusType(TypedDict): + """Status - Commit Comparison + The status of a commit. """ 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",) + 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_0322.py b/githubkit/versions/ghec_v2022_11_28/types/group_0322.py index 3c6f67fc5..8718dcd66 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0322.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0322.py @@ -9,65 +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_0229 import CodeOfConductSimpleType -class ContentTreeType(TypedDict): - """Content Tree - - Content Tree - """ - - 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]] - encoding: NotRequired[str] - links: ContentTreePropLinksType +class CommunityProfilePropFilesType(TypedDict): + """CommunityProfilePropFiles""" -class ContentTreePropLinksType(TypedDict): - """ContentTreePropLinks""" + 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] - git: Union[str, None] - html: Union[str, None] - self_: str +class CommunityHealthFileType(TypedDict): + """Community Health File""" -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 + html_url: str + +class CommunityProfileType(TypedDict): + """Community Profile -class ContentTreePropEntriesItemsPropLinksType(TypedDict): - """ContentTreePropEntriesItemsPropLinks""" + 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__ = ( - "ContentTreePropEntriesItemsPropLinksType", - "ContentTreePropEntriesItemsType", - "ContentTreePropLinksType", - "ContentTreeType", + "CommunityHealthFileType", + "CommunityProfilePropFilesType", + "CommunityProfileType", ) 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 74ee6a6e4..6c28a1ed2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0323.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0323.py @@ -9,35 +9,32 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0277 import DiffEntryType +from .group_0278 import CommitType -class ContentDirectoryItemsType(TypedDict): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] - size: int - name: str - path: str - content: NotRequired[str] - sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentDirectoryItemsPropLinksType - - -class ContentDirectoryItemsPropLinksType(TypedDict): - """ContentDirectoryItemsPropLinks""" +class CommitComparisonType(TypedDict): + """Commit Comparison - git: Union[str, None] - html: Union[str, None] - self_: str + Commit Comparison + """ - -__all__ = ( - "ContentDirectoryItemsPropLinksType", - "ContentDirectoryItemsType", -) + 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_0324.py b/githubkit/versions/ghec_v2022_11_28/types/group_0324.py index 2ad4b4ca8..3c6f67fc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0324.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0324.py @@ -9,34 +9,56 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class ContentFileType(TypedDict): - """Content File +class ContentTreeType(TypedDict): + """Content Tree - Content File + Content Tree """ - type: Literal["file"] - encoding: str + type: str size: int name: str path: str - content: str sha: str + content: NotRequired[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] + entries: NotRequired[list[ContentTreePropEntriesItemsType]] + encoding: NotRequired[str] + links: ContentTreePropLinksType -class ContentFilePropLinksType(TypedDict): - """ContentFilePropLinks""" +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] @@ -44,6 +66,8 @@ class ContentFilePropLinksType(TypedDict): __all__ = ( - "ContentFilePropLinksType", - "ContentFileType", + "ContentTreePropEntriesItemsPropLinksType", + "ContentTreePropEntriesItemsType", + "ContentTreePropLinksType", + "ContentTreeType", ) 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 0998eda68..74ee6a6e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0325.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0325.py @@ -10,30 +10,27 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ContentSymlinkType(TypedDict): - """Symlink Content +class ContentDirectoryItemsType(TypedDict): + """ContentDirectoryItems""" - An object describing a symlink - """ - - type: Literal["symlink"] - target: str + 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: ContentSymlinkPropLinksType + links: ContentDirectoryItemsPropLinksType -class ContentSymlinkPropLinksType(TypedDict): - """ContentSymlinkPropLinks""" +class ContentDirectoryItemsPropLinksType(TypedDict): + """ContentDirectoryItemsPropLinks""" git: Union[str, None] html: Union[str, None] @@ -41,6 +38,6 @@ class ContentSymlinkPropLinksType(TypedDict): __all__ = ( - "ContentSymlinkPropLinksType", - "ContentSymlinkType", + "ContentDirectoryItemsPropLinksType", + "ContentDirectoryItemsType", ) 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 b80d6984e..2ad4b4ca8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0326.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0326.py @@ -10,30 +10,33 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ContentSubmoduleType(TypedDict): - """Submodule Content +class ContentFileType(TypedDict): + """Content File - An object describing a submodule + Content File """ - type: Literal["submodule"] - submodule_git_url: str + 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: ContentSubmodulePropLinksType + links: ContentFilePropLinksType + target: NotRequired[str] + submodule_git_url: NotRequired[str] -class ContentSubmodulePropLinksType(TypedDict): - """ContentSubmodulePropLinks""" +class ContentFilePropLinksType(TypedDict): + """ContentFilePropLinks""" git: Union[str, None] html: Union[str, None] @@ -41,6 +44,6 @@ class ContentSubmodulePropLinksType(TypedDict): __all__ = ( - "ContentSubmodulePropLinksType", - "ContentSubmoduleType", + "ContentFilePropLinksType", + "ContentFileType", ) 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 78a4cf43d..0998eda68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0327.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0327.py @@ -9,107 +9,38 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class FileCommitType(TypedDict): - """File Commit +class ContentSymlinkType(TypedDict): + """Symlink Content - File Commit + An object describing a symlink """ - content: Union[FileCommitPropContentType, None] - commit: FileCommitPropCommitType + 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 FileCommitPropContentType(TypedDict): - """FileCommitPropContent""" +class ContentSymlinkPropLinksType(TypedDict): + """ContentSymlinkPropLinks""" - name: NotRequired[str] - path: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] - html_url: NotRequired[str] - git_url: NotRequired[str] - download_url: NotRequired[str] - type: NotRequired[str] - links: NotRequired[FileCommitPropContentPropLinksType] - - -class FileCommitPropContentPropLinksType(TypedDict): - """FileCommitPropContentPropLinks""" - - self_: NotRequired[str] - git: NotRequired[str] - html: NotRequired[str] - - -class FileCommitPropCommitType(TypedDict): - """FileCommitPropCommit""" - - sha: NotRequired[str] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - author: NotRequired[FileCommitPropCommitPropAuthorType] - committer: NotRequired[FileCommitPropCommitPropCommitterType] - message: NotRequired[str] - tree: NotRequired[FileCommitPropCommitPropTreeType] - parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] - verification: NotRequired[FileCommitPropCommitPropVerificationType] - - -class FileCommitPropCommitPropAuthorType(TypedDict): - """FileCommitPropCommitPropAuthor""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropCommitterType(TypedDict): - """FileCommitPropCommitPropCommitter""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropTreeType(TypedDict): - """FileCommitPropCommitPropTree""" - - url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropParentsItemsType(TypedDict): - """FileCommitPropCommitPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropVerificationType(TypedDict): - """FileCommitPropCommitPropVerification""" - - verified: NotRequired[bool] - reason: NotRequired[str] - signature: NotRequired[Union[str, None]] - payload: NotRequired[Union[str, None]] - verified_at: NotRequired[Union[str, None]] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "FileCommitPropCommitPropAuthorType", - "FileCommitPropCommitPropCommitterType", - "FileCommitPropCommitPropParentsItemsType", - "FileCommitPropCommitPropTreeType", - "FileCommitPropCommitPropVerificationType", - "FileCommitPropCommitType", - "FileCommitPropContentPropLinksType", - "FileCommitPropContentType", - "FileCommitType", + "ContentSymlinkPropLinksType", + "ContentSymlinkType", ) 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 82a56dc68..b80d6984e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0328.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0328.py @@ -9,53 +9,38 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class RepositoryRuleViolationErrorType(TypedDict): - """RepositoryRuleViolationError +class ContentSubmoduleType(TypedDict): + """Submodule Content - Repository rule violation was detected + An object describing a submodule """ - message: NotRequired[str] - documentation_url: NotRequired[str] - status: NotRequired[str] - metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] + 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 RepositoryRuleViolationErrorPropMetadataType(TypedDict): - """RepositoryRuleViolationErrorPropMetadata""" +class ContentSubmodulePropLinksType(TypedDict): + """ContentSubmodulePropLinks""" - secret_scanning: NotRequired[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningType - ] - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" - - bypass_placeholders: NotRequired[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType - ] - ] - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( - TypedDict -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ - - placeholder_id: NotRequired[str] - token_type: NotRequired[str] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", - "RepositoryRuleViolationErrorPropMetadataType", - "RepositoryRuleViolationErrorType", + "ContentSubmodulePropLinksType", + "ContentSubmoduleType", ) 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 0bcf70515..78a4cf43d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0329.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0329.py @@ -13,34 +13,103 @@ from typing_extensions import NotRequired, TypedDict -class ContributorType(TypedDict): - """Contributor +class FileCommitType(TypedDict): + """File Commit - Contributor + File Commit """ - login: NotRequired[str] - id: NotRequired[int] + 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] - 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 + 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] - user_view_type: 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__ = ("ContributorType",) +__all__ = ( + "FileCommitPropCommitPropAuthorType", + "FileCommitPropCommitPropCommitterType", + "FileCommitPropCommitPropParentsItemsType", + "FileCommitPropCommitPropTreeType", + "FileCommitPropCommitPropVerificationType", + "FileCommitPropCommitType", + "FileCommitPropContentPropLinksType", + "FileCommitPropContentType", + "FileCommitType", +) 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 48a67bfbd..82a56dc68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0330.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0330.py @@ -9,42 +9,53 @@ 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_0074 import DependabotAlertSecurityVulnerabilityType -from .group_0075 import DependabotAlertSecurityAdvisoryType -from .group_0331 import DependabotAlertPropDependencyType +class RepositoryRuleViolationErrorType(TypedDict): + """RepositoryRuleViolationError -class DependabotAlertType(TypedDict): - """DependabotAlert - - A Dependabot alert. + Repository rule violation was detected """ - 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" - ], + 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 + ] ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] -__all__ = ("DependabotAlertType",) +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_0331.py b/githubkit/versions/ghec_v2022_11_28/types/group_0331.py index 1788c23cf..0bcf70515 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0331.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0331.py @@ -9,22 +9,38 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0073 import DependabotAlertPackageType +class ContributorType(TypedDict): + """Contributor -class DependabotAlertPropDependencyType(TypedDict): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + Contributor """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] - relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]] - - -__all__ = ("DependabotAlertPropDependencyType",) + 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_0332.py b/githubkit/versions/ghec_v2022_11_28/types/group_0332.py index b061be26e..b4849594c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0332.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0332.py @@ -9,35 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -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", -) +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0075 import DependabotAlertSecurityVulnerabilityType +from .group_0076 import DependabotAlertSecurityAdvisoryType +from .group_0333 import DependabotAlertPropDependencyType + + +class DependabotAlertType(TypedDict): + """DependabotAlert + + A Dependabot alert. + """ + + number: int + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] + dependency: DependabotAlertPropDependencyType + security_advisory: DependabotAlertSecurityAdvisoryType + security_vulnerability: DependabotAlertSecurityVulnerabilityType + url: str + html_url: str + created_at: datetime + updated_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[None, SimpleUserType] + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] + dismissed_comment: Union[str, None] + fixed_at: Union[datetime, None] + auto_dismissed_at: NotRequired[Union[datetime, None]] + + +__all__ = ("DependabotAlertType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0333.py b/githubkit/versions/ghec_v2022_11_28/types/group_0333.py index 489a3ce99..dfd51750c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0333.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0333.py @@ -9,81 +9,22 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0074 import DependabotAlertPackageType -class DependencyGraphSpdxSbomType(TypedDict): - """Dependency Graph SPDX SBOM - A schema for the SPDX JSON format returned by the Dependency Graph. - """ - - sbom: DependencyGraphSpdxSbomPropSbomType - - -class DependencyGraphSpdxSbomPropSbomType(TypedDict): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str - spdx_version: str - comment: NotRequired[str] - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType - name: str - data_license: str - document_namespace: str - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] - relationships: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] - ] - - -class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - - created: str - creators: list[str] +class DependabotAlertPropDependencyType(TypedDict): + """DependabotAlertPropDependency + Details for the vulnerable dependency. + """ -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 + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] + relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]] -__all__ = ( - "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", - "DependencyGraphSpdxSbomPropSbomType", - "DependencyGraphSpdxSbomType", -) +__all__ = ("DependabotAlertPropDependencyType",) 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 75968e9b1..b061be26e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0334.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0334.py @@ -9,15 +9,35 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing import Literal, Union +from typing_extensions import TypedDict -MetadataType: TypeAlias = dict[str, Any] -"""metadata -User-defined metadata to store domain-specific information limited to 8 keys -with scalar values. -""" +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__ = ("MetadataType",) +__all__ = ( + "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", + "DependencyGraphDiffItemsType", +) 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 1435a010c..489a3ce99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0335.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0335.py @@ -9,20 +9,81 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0334 import MetadataType +class DependencyGraphSpdxSbomType(TypedDict): + """Dependency Graph SPDX SBOM -class DependencyType(TypedDict): - """Dependency""" + A schema for the SPDX JSON format returned by the Dependency Graph. + """ - package_url: NotRequired[str] - metadata: NotRequired[MetadataType] - relationship: NotRequired[Literal["direct", "indirect"]] - scope: NotRequired[Literal["runtime", "development"]] - dependencies: NotRequired[list[str]] + sbom: DependencyGraphSpdxSbomPropSbomType -__all__ = ("DependencyType",) +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/ghec_v2022_11_28/types/group_0336.py b/githubkit/versions/ghec_v2022_11_28/types/group_0336.py index b3a2a790e..75968e9b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0336.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0336.py @@ -10,35 +10,14 @@ from __future__ import annotations from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypeAlias -from .group_0334 import MetadataType +MetadataType: TypeAlias = dict[str, Any] +"""metadata - -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. +User-defined metadata to store domain-specific information limited to 8 keys +with scalar values. """ -__all__ = ( - "ManifestPropFileType", - "ManifestPropResolvedType", - "ManifestType", -) +__all__ = ("MetadataType",) 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 b4584859b..1bcae7b8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0337.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0337.py @@ -9,59 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0334 import MetadataType +from .group_0336 import MetadataType -class SnapshotType(TypedDict): - """snapshot +class DependencyType(TypedDict): + """Dependency""" - Create a new snapshot of a repository's dependencies. - """ - - version: int - job: SnapshotPropJobType - sha: str - ref: str - detector: SnapshotPropDetectorType + package_url: NotRequired[str] 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. -""" + relationship: NotRequired[Literal["direct", "indirect"]] + scope: NotRequired[Literal["runtime", "development"]] + dependencies: NotRequired[list[str]] -__all__ = ( - "SnapshotPropDetectorType", - "SnapshotPropJobType", - "SnapshotPropManifestsType", - "SnapshotType", -) +__all__ = ("DependencyType",) 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 8e3d71848..fae86f12a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0338.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0338.py @@ -9,37 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType - - -class DeploymentStatusType(TypedDict): - """Deployment Status - - The status of a deployment. - """ - - url: str - id: int - node_id: str - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] - creator: Union[None, SimpleUserType] - description: str - environment: NotRequired[str] - target_url: str - created_at: datetime - updated_at: datetime - deployment_url: str - repository_url: str - environment_url: NotRequired[str] - log_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentStatusType",) +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict + +from .group_0336 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", +) 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 2b9241c94..f3d326380 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0339.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0339.py @@ -9,18 +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_0336 import MetadataType -class DeploymentBranchPolicySettingsType(TypedDict): - """DeploymentBranchPolicySettings - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. +class SnapshotType(TypedDict): + """snapshot + + Create a new snapshot of a repository's dependencies. """ - protected_branches: bool - custom_branch_policies: bool + 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__ = ("DeploymentBranchPolicySettingsType",) +__all__ = ( + "SnapshotPropDetectorType", + "SnapshotPropJobType", + "SnapshotPropManifestsType", + "SnapshotType", +) 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 326f742f1..8e3d71848 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0340.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0340.py @@ -10,67 +10,36 @@ 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_0339 import DeploymentBranchPolicySettingsType -from .group_0341 import EnvironmentPropProtectionRulesItemsAnyof1Type +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class EnvironmentType(TypedDict): - """Environment +class DeploymentStatusType(TypedDict): + """Deployment Status - Details of a deployment environment + The status of a deployment. """ + url: str id: int node_id: str - name: str - url: str - html_url: 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 - 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]] + deployment_url: str + repository_url: str + environment_url: NotRequired[str] + log_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] -__all__ = ( - "EnvironmentPropProtectionRulesItemsAnyof0Type", - "EnvironmentPropProtectionRulesItemsAnyof2Type", - "EnvironmentType", - "ReposOwnerRepoEnvironmentsGetResponse200Type", -) +__all__ = ("DeploymentStatusType",) 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 182ced12b..2b9241c94 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0341.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0341.py @@ -9,21 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0342 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType +class DeploymentBranchPolicySettingsType(TypedDict): + """DeploymentBranchPolicySettings -class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1""" + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ - id: int - node_id: str - prevent_self_review: NotRequired[bool] - type: str - reviewers: NotRequired[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] - ] + protected_branches: bool + custom_branch_policies: bool -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) +__all__ = ("DeploymentBranchPolicySettingsType",) 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 e9720bdc9..ebeccd822 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0342.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0342.py @@ -9,18 +9,68 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0070 import TeamType +from .group_0341 import DeploymentBranchPolicySettingsType +from .group_0343 import EnvironmentPropProtectionRulesItemsAnyof1Type -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class EnvironmentType(TypedDict): + """Environment - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] + 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] + ] -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) + +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__ = ( + "EnvironmentPropProtectionRulesItemsAnyof0Type", + "EnvironmentPropProtectionRulesItemsAnyof2Type", + "EnvironmentType", + "ReposOwnerRepoEnvironmentsGetResponse200Type", +) 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 35c7c1f2a..98ea6f633 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0343.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0343.py @@ -9,15 +9,21 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0344 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType -class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): - """Deployment branch and tag policy name pattern""" - name: str - type: NotRequired[Literal["branch", "tag"]] +class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1""" + id: int + node_id: str + prevent_self_review: NotRequired[bool] + type: str + reviewers: NotRequired[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] + ] -__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) + +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) 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 784015c57..be0f40443 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0344.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0344.py @@ -9,13 +9,18 @@ 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_0071 import TeamType -class DeploymentBranchPolicyNamePatternType(TypedDict): - """Deployment branch policy name pattern""" - name: str +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] -__all__ = ("DeploymentBranchPolicyNamePatternType",) + +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) 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 55685e749..35c7c1f2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0345.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0345.py @@ -9,19 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class CustomDeploymentRuleAppType(TypedDict): - """Custom deployment protection rule app +class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): + """Deployment branch and tag policy name pattern""" - A GitHub App that is providing a custom deployment protection rule. - """ + name: str + type: NotRequired[Literal["branch", "tag"]] - id: int - slug: str - integration_url: str - node_id: str - -__all__ = ("CustomDeploymentRuleAppType",) +__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) 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 1b3fc5124..784015c57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0346.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0346.py @@ -9,37 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0345 import CustomDeploymentRuleAppType +class DeploymentBranchPolicyNamePatternType(TypedDict): + """Deployment branch policy name pattern""" -class DeploymentProtectionRuleType(TypedDict): - """Deployment protection rule + name: str - Deployment protection rule - """ - id: int - node_id: str - enabled: bool - app: CustomDeploymentRuleAppType - - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} - """ - - total_count: NotRequired[int] - custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] - - -__all__ = ( - "DeploymentProtectionRuleType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", -) +__all__ = ("DeploymentBranchPolicyNamePatternType",) 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 deb8a4c9a..55685e749 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0347.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0347.py @@ -12,14 +12,16 @@ from typing_extensions import TypedDict -class ShortBlobType(TypedDict): - """Short Blob +class CustomDeploymentRuleAppType(TypedDict): + """Custom deployment protection rule app - Short Blob + A GitHub App that is providing a custom deployment protection rule. """ - url: str - sha: str + id: int + slug: str + integration_url: str + node_id: str -__all__ = ("ShortBlobType",) +__all__ = ("CustomDeploymentRuleAppType",) 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 7145ff7f3..3004678b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0348.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0348.py @@ -9,23 +9,37 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0347 import CustomDeploymentRuleAppType -class BlobType(TypedDict): - """Blob - Blob +class DeploymentProtectionRuleType(TypedDict): + """Deployment protection rule + + Deployment protection rule """ - content: str - encoding: str - url: str - sha: str - size: Union[int, None] + id: int node_id: str - highlighted_content: NotRequired[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__ = ("BlobType",) +__all__ = ( + "DeploymentProtectionRuleType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", +) 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 cb7d784df..deb8a4c9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0349.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0349.py @@ -9,81 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import TypedDict -class GitCommitType(TypedDict): - """Git Commit +class ShortBlobType(TypedDict): + """Short Blob - Low-level Git commit operations within a repository + Short Blob """ - 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 - - -class GitCommitPropParentsItemsType(TypedDict): - """GitCommitPropParentsItems""" - - sha: str - url: str - html_url: str - - -class GitCommitPropVerificationType(TypedDict): - """GitCommitPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: Union[str, None] -__all__ = ( - "GitCommitPropAuthorType", - "GitCommitPropCommitterType", - "GitCommitPropParentsItemsType", - "GitCommitPropTreeType", - "GitCommitPropVerificationType", - "GitCommitType", -) +__all__ = ("ShortBlobType",) 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 5f8d78e7c..7145ff7f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0350.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0350.py @@ -9,30 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class GitRefType(TypedDict): - """Git Reference +class BlobType(TypedDict): + """Blob - Git references within a repository + Blob """ - ref: str - node_id: str + content: str + encoding: str url: str - object_: GitRefPropObjectType - - -class GitRefPropObjectType(TypedDict): - """GitRefPropObject""" - - type: str sha: str - url: str + size: Union[int, None] + node_id: str + highlighted_content: NotRequired[str] -__all__ = ( - "GitRefPropObjectType", - "GitRefType", -) +__all__ = ("BlobType",) 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 8b99031b9..cb7d784df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0351.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0351.py @@ -9,45 +9,81 @@ 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_0274 import VerificationType +class GitCommitType(TypedDict): + """Git Commit -class GitTagType(TypedDict): - """Git Tag - - Metadata for a Git tag + Low-level Git commit operations within a repository """ - node_id: str - tag: str sha: str + node_id: str url: str + author: GitCommitPropAuthorType + committer: GitCommitPropCommitterType message: str - tagger: GitTagPropTaggerType - object_: GitTagPropObjectType - verification: NotRequired[VerificationType] + 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 GitTagPropTaggerType(TypedDict): - """GitTagPropTagger""" +class GitCommitPropCommitterType(TypedDict): + """GitCommitPropCommitter - date: str + Identifying information for the git-user + """ + + date: datetime email: str name: str -class GitTagPropObjectType(TypedDict): - """GitTagPropObject""" +class GitCommitPropTreeType(TypedDict): + """GitCommitPropTree""" + + sha: str + url: str + + +class GitCommitPropParentsItemsType(TypedDict): + """GitCommitPropParentsItems""" sha: str - type: 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__ = ( - "GitTagPropObjectType", - "GitTagPropTaggerType", - "GitTagType", + "GitCommitPropAuthorType", + "GitCommitPropCommitterType", + "GitCommitPropParentsItemsType", + "GitCommitPropTreeType", + "GitCommitPropVerificationType", + "GitCommitType", ) 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 6559266ff..5f8d78e7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0352.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0352.py @@ -9,33 +9,30 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class GitTreeType(TypedDict): - """Git Tree +class GitRefType(TypedDict): + """Git Reference - The hierarchy between files in a Git repository. + Git references within a repository """ - sha: str - url: NotRequired[str] - truncated: bool - tree: list[GitTreePropTreeItemsType] + ref: str + node_id: str + url: str + object_: GitRefPropObjectType -class GitTreePropTreeItemsType(TypedDict): - """GitTreePropTreeItems""" +class GitRefPropObjectType(TypedDict): + """GitRefPropObject""" - path: str - mode: str type: str sha: str - size: NotRequired[int] - url: NotRequired[str] + url: str __all__ = ( - "GitTreePropTreeItemsType", - "GitTreeType", + "GitRefPropObjectType", + "GitRefType", ) 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 2763aab9e..3dfb483dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0353.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0353.py @@ -9,16 +9,45 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0276 import VerificationType -class HookResponseType(TypedDict): - """Hook Response""" - code: Union[int, None] - status: Union[str, None] - message: Union[str, None] +class GitTagType(TypedDict): + """Git Tag + Metadata for a Git tag + """ -__all__ = ("HookResponseType",) + 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", +) 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 2ed03c847..6559266ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0354.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0354.py @@ -9,32 +9,33 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_0011 import WebhookConfigType -from .group_0353 import HookResponseType +class GitTreeType(TypedDict): + """Git Tree -class HookType(TypedDict): - """Webhook - - Webhooks for repositories. + The hierarchy between files in a Git repository. """ + sha: str + url: NotRequired[str] + truncated: bool + tree: list[GitTreePropTreeItemsType] + + +class GitTreePropTreeItemsType(TypedDict): + """GitTreePropTreeItems""" + + path: str + mode: str 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 - - -__all__ = ("HookType",) + sha: str + size: NotRequired[int] + url: NotRequired[str] + + +__all__ = ( + "GitTreePropTreeItemsType", + "GitTreeType", +) 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 991490339..2763aab9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0355.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0355.py @@ -9,67 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class ImportType(TypedDict): - """Import +class HookResponseType(TypedDict): + """Hook Response""" - A repository import from an external source. - """ + code: Union[int, None] + status: Union[str, None] + message: Union[str, None] - 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 - 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__ = ( - "ImportPropProjectChoicesItemsType", - "ImportType", -) +__all__ = ("HookResponseType",) 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 a760ba55a..c63cb8392 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0356.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0356.py @@ -9,22 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict +from .group_0011 import WebhookConfigType +from .group_0355 import HookResponseType -class PorterAuthorType(TypedDict): - """Porter Author - Porter Author +class HookType(TypedDict): + """Webhook + + Webhooks for repositories. """ + type: str id: int - remote_id: str - remote_name: str - email: str name: str + active: bool + events: list[str] + config: WebhookConfigType + updated_at: datetime + created_at: datetime url: str - import_url: str + test_url: str + ping_url: str + deliveries_url: NotRequired[str] + last_response: HookResponseType -__all__ = ("PorterAuthorType",) +__all__ = ("HookType",) 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 ae1425148..991490339 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0357.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0357.py @@ -9,19 +9,67 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class PorterLargeFileType(TypedDict): - """Porter Large File +class ImportType(TypedDict): + """Import - Porter Large File + A repository import from an external source. """ - ref_name: str - path: str - oid: str - size: int + 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 + html_url: str + authors_url: str + repository_url: str + svn_root: NotRequired[str] -__all__ = ("PorterLargeFileType",) +class ImportPropProjectChoicesItemsType(TypedDict): + """ImportPropProjectChoicesItems""" + + vcs: NotRequired[str] + tfvc_project: NotRequired[str] + human_name: NotRequired[str] + + +__all__ = ( + "ImportPropProjectChoicesItemsType", + "ImportType", +) 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 f78c1edd3..a760ba55a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0358.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0358.py @@ -9,114 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0070 import TeamType -from .group_0160 import IssueType +class PorterAuthorType(TypedDict): + """Porter Author -class IssueEventType(TypedDict): - """Issue Event - - Issue Event + Porter Author """ 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 - """ - + remote_id: str + remote_name: str + email: str + name: 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 + import_url: str -__all__ = ( - "IssueEventDismissedReviewType", - "IssueEventLabelType", - "IssueEventMilestoneType", - "IssueEventProjectCardType", - "IssueEventRenameType", - "IssueEventType", -) +__all__ = ("PorterAuthorType",) 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 e030b2d8c..ae1425148 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0359.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0359.py @@ -9,39 +9,19 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class PorterLargeFileType(TypedDict): + """Porter Large File -class LabeledIssueEventType(TypedDict): - """Labeled Issue Event - - Labeled Issue Event + Porter Large File """ - 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 + ref_name: str + path: str + oid: str + size: int -__all__ = ( - "LabeledIssueEventPropLabelType", - "LabeledIssueEventType", -) +__all__ = ("PorterLargeFileType",) 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 94fd5f2f1..e4df75f96 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0360.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0360.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_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0071 import TeamType +from .group_0162 import IssueType -class UnlabeledIssueEventType(TypedDict): - """Unlabeled Issue Event +class IssueEventType(TypedDict): + """Issue Event - Unlabeled Issue Event + Issue Event """ id: int node_id: str url: str - actor: SimpleUserType - event: Literal["unlabeled"] + 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] - label: UnlabeledIssueEventPropLabelType + 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 UnlabeledIssueEventPropLabelType(TypedDict): - """UnlabeledIssueEventPropLabel""" +class IssueEventLabelType(TypedDict): + """Issue Event Label - name: str - color: str + 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__ = ( - "UnlabeledIssueEventPropLabelType", - "UnlabeledIssueEventType", + "IssueEventDismissedReviewType", + "IssueEventLabelType", + "IssueEventMilestoneType", + "IssueEventProjectCardType", + "IssueEventRenameType", + "IssueEventType", ) 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 735f4766c..e030b2d8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0361.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0361.py @@ -9,30 +9,39 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class AssignedIssueEventType(TypedDict): - """Assigned Issue Event +class LabeledIssueEventType(TypedDict): + """Labeled Issue Event - Assigned Issue Event + Labeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: str + event: Literal["labeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + performed_via_github_app: Union[None, IntegrationType, None] + label: LabeledIssueEventPropLabelType -__all__ = ("AssignedIssueEventType",) +class LabeledIssueEventPropLabelType(TypedDict): + """LabeledIssueEventPropLabel""" + + name: str + color: str + + +__all__ = ( + "LabeledIssueEventPropLabelType", + "LabeledIssueEventType", +) 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 cee4c2513..94fd5f2f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0362.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0362.py @@ -9,30 +9,39 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class UnassignedIssueEventType(TypedDict): - """Unassigned Issue Event +class UnlabeledIssueEventType(TypedDict): + """Unlabeled Issue Event - Unassigned Issue Event + Unlabeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: str + event: Literal["unlabeled"] 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 + label: UnlabeledIssueEventPropLabelType -__all__ = ("UnassignedIssueEventType",) +class UnlabeledIssueEventPropLabelType(TypedDict): + """UnlabeledIssueEventPropLabel""" + + name: str + color: str + + +__all__ = ( + "UnlabeledIssueEventPropLabelType", + "UnlabeledIssueEventType", +) 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 2b6b9a914..735f4766c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0363.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0363.py @@ -9,38 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class MilestonedIssueEventType(TypedDict): - """Milestoned Issue Event +class AssignedIssueEventType(TypedDict): + """Assigned Issue Event - Milestoned Issue Event + Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["milestoned"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - milestone: MilestonedIssueEventPropMilestoneType + performed_via_github_app: Union[IntegrationType, None] + assignee: SimpleUserType + assigner: SimpleUserType -class MilestonedIssueEventPropMilestoneType(TypedDict): - """MilestonedIssueEventPropMilestone""" - - title: str - - -__all__ = ( - "MilestonedIssueEventPropMilestoneType", - "MilestonedIssueEventType", -) +__all__ = ("AssignedIssueEventType",) 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 dfaf3aff4..cee4c2513 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0364.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0364.py @@ -9,38 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class DemilestonedIssueEventType(TypedDict): - """Demilestoned Issue Event +class UnassignedIssueEventType(TypedDict): + """Unassigned Issue Event - Demilestoned Issue Event + Unassigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["demilestoned"] + 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 + assignee: SimpleUserType + assigner: SimpleUserType -class DemilestonedIssueEventPropMilestoneType(TypedDict): - """DemilestonedIssueEventPropMilestone""" - - title: str - - -__all__ = ( - "DemilestonedIssueEventPropMilestoneType", - "DemilestonedIssueEventType", -) +__all__ = ("UnassignedIssueEventType",) 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 6d9cdf5e9..2b6b9a914 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0365.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0365.py @@ -16,32 +16,31 @@ from .group_0010 import IntegrationType -class RenamedIssueEventType(TypedDict): - """Renamed Issue Event +class MilestonedIssueEventType(TypedDict): + """Milestoned Issue Event - Renamed Issue Event + Milestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["renamed"] + event: Literal["milestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - rename: RenamedIssueEventPropRenameType + milestone: MilestonedIssueEventPropMilestoneType -class RenamedIssueEventPropRenameType(TypedDict): - """RenamedIssueEventPropRename""" +class MilestonedIssueEventPropMilestoneType(TypedDict): + """MilestonedIssueEventPropMilestone""" - from_: str - to: str + title: str __all__ = ( - "RenamedIssueEventPropRenameType", - "RenamedIssueEventType", + "MilestonedIssueEventPropMilestoneType", + "MilestonedIssueEventType", ) 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 7c87f6512..dfaf3aff4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0366.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0366.py @@ -10,31 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0070 import TeamType -class ReviewRequestedIssueEventType(TypedDict): - """Review Requested Issue Event +class DemilestonedIssueEventType(TypedDict): + """Demilestoned Issue Event - Review Requested Issue Event + Demilestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_requested"] + event: Literal["demilestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + milestone: DemilestonedIssueEventPropMilestoneType -__all__ = ("ReviewRequestedIssueEventType",) +class DemilestonedIssueEventPropMilestoneType(TypedDict): + """DemilestonedIssueEventPropMilestone""" + + title: str + + +__all__ = ( + "DemilestonedIssueEventPropMilestoneType", + "DemilestonedIssueEventType", +) 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 2b6b8d1d2..6d9cdf5e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0367.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0367.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_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0070 import TeamType -class ReviewRequestRemovedIssueEventType(TypedDict): - """Review Request Removed Issue Event +class RenamedIssueEventType(TypedDict): + """Renamed Issue Event - Review Request Removed Issue Event + Renamed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_request_removed"] + event: Literal["renamed"] 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] + rename: RenamedIssueEventPropRenameType -__all__ = ("ReviewRequestRemovedIssueEventType",) +class RenamedIssueEventPropRenameType(TypedDict): + """RenamedIssueEventPropRename""" + + from_: str + to: str + + +__all__ = ( + "RenamedIssueEventPropRenameType", + "RenamedIssueEventType", +) 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 160c5a57c..82e83dd23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0368.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0368.py @@ -14,36 +14,27 @@ from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0071 import TeamType -class ReviewDismissedIssueEventType(TypedDict): - """Review Dismissed Issue Event +class ReviewRequestedIssueEventType(TypedDict): + """Review Requested Issue Event - Review Dismissed Issue Event + Review Requested Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_dismissed"] + 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] - dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): - """ReviewDismissedIssueEventPropDismissedReview""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[str] - - -__all__ = ( - "ReviewDismissedIssueEventPropDismissedReviewType", - "ReviewDismissedIssueEventType", -) +__all__ = ("ReviewRequestedIssueEventType",) 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 1c8f2b944..369a0a9f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0369.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0369.py @@ -10,28 +10,31 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0071 import TeamType -class LockedIssueEventType(TypedDict): - """Locked Issue Event +class ReviewRequestRemovedIssueEventType(TypedDict): + """Review Request Removed Issue Event - Locked Issue Event + Review Request Removed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["locked"] + 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] - lock_reason: Union[str, None] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -__all__ = ("LockedIssueEventType",) +__all__ = ("ReviewRequestRemovedIssueEventType",) 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 c1191415d..160c5a57c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0370.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0370.py @@ -16,36 +16,34 @@ from .group_0010 import IntegrationType -class AddedToProjectIssueEventType(TypedDict): - """Added to Project Issue Event +class ReviewDismissedIssueEventType(TypedDict): + """Review Dismissed Issue Event - Added to Project Issue Event + Review Dismissed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["added_to_project"] + event: Literal["review_dismissed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType -class AddedToProjectIssueEventPropProjectCardType(TypedDict): - """AddedToProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[str] __all__ = ( - "AddedToProjectIssueEventPropProjectCardType", - "AddedToProjectIssueEventType", + "ReviewDismissedIssueEventPropDismissedReviewType", + "ReviewDismissedIssueEventType", ) 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 c8c8ecbcf..1c8f2b944 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0371.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0371.py @@ -10,42 +10,28 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class MovedColumnInProjectIssueEventType(TypedDict): - """Moved Column in Project Issue Event +class LockedIssueEventType(TypedDict): + """Locked Issue Event - Moved Column in Project Issue Event + Locked Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["moved_columns_in_project"] + event: Literal["locked"] 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] + lock_reason: Union[str, None] -class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "MovedColumnInProjectIssueEventPropProjectCardType", - "MovedColumnInProjectIssueEventType", -) +__all__ = ("LockedIssueEventType",) 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 8616df3d4..c1191415d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0372.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0372.py @@ -16,26 +16,26 @@ from .group_0010 import IntegrationType -class RemovedFromProjectIssueEventType(TypedDict): - """Removed from Project Issue Event +class AddedToProjectIssueEventType(TypedDict): + """Added to Project Issue Event - Removed from Project Issue Event + Added to Project Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["removed_from_project"] + 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[RemovedFromProjectIssueEventPropProjectCardType] + project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] -class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): - """RemovedFromProjectIssueEventPropProjectCard""" +class AddedToProjectIssueEventPropProjectCardType(TypedDict): + """AddedToProjectIssueEventPropProjectCard""" id: int url: str @@ -46,6 +46,6 @@ class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): __all__ = ( - "RemovedFromProjectIssueEventPropProjectCardType", - "RemovedFromProjectIssueEventType", + "AddedToProjectIssueEventPropProjectCardType", + "AddedToProjectIssueEventType", ) 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 03ad239c9..c8c8ecbcf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0373.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0373.py @@ -16,26 +16,26 @@ from .group_0010 import IntegrationType -class ConvertedNoteToIssueIssueEventType(TypedDict): - """Converted Note to Issue Issue Event +class MovedColumnInProjectIssueEventType(TypedDict): + """Moved Column in Project Issue Event - Converted Note to Issue Issue Event + Moved Column in Project Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["converted_note_to_issue"] + event: Literal["moved_columns_in_project"] 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] + project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] -class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): - """ConvertedNoteToIssueIssueEventPropProjectCard""" +class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): + """MovedColumnInProjectIssueEventPropProjectCard""" id: int url: str @@ -46,6 +46,6 @@ class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): __all__ = ( - "ConvertedNoteToIssueIssueEventPropProjectCardType", - "ConvertedNoteToIssueIssueEventType", + "MovedColumnInProjectIssueEventPropProjectCardType", + "MovedColumnInProjectIssueEventType", ) 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 512863709..8616df3d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0374.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0374.py @@ -9,46 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0159 import ReactionRollupType -class TimelineCommentEventType(TypedDict): - """Timeline Comment Event +class RemovedFromProjectIssueEventType(TypedDict): + """Removed from Project Issue Event - Timeline Comment Event + Removed from Project Issue Event """ - event: Literal["commented"] - actor: SimpleUserType id: int node_id: str url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: SimpleUserType - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TimelineCommentEventType",) + actor: SimpleUserType + event: Literal["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 RemovedFromProjectIssueEventPropProjectCardType(TypedDict): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "RemovedFromProjectIssueEventPropProjectCardType", + "RemovedFromProjectIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0375.py b/githubkit/versions/ghec_v2022_11_28/types/group_0375.py index 29e6f9fcd..03ad239c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0375.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0375.py @@ -9,25 +9,43 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0376 import TimelineCrossReferencedEventPropSourceType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventType(TypedDict): - """Timeline Cross Referenced Event +class ConvertedNoteToIssueIssueEventType(TypedDict): + """Converted Note to Issue Issue Event - Timeline Cross Referenced Event + Converted Note to Issue Issue Event """ - event: Literal["cross-referenced"] - actor: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - source: TimelineCrossReferencedEventPropSourceType - - -__all__ = ("TimelineCrossReferencedEventType",) + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["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 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_0376.py b/githubkit/versions/ghec_v2022_11_28/types/group_0376.py index 86e1717bd..14e88ff31 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0376.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0376.py @@ -9,16 +9,46 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0160 import IssueType - - -class TimelineCrossReferencedEventPropSourceType(TypedDict): - """TimelineCrossReferencedEventPropSource""" - - type: NotRequired[str] - issue: NotRequired[IssueType] - - -__all__ = ("TimelineCrossReferencedEventPropSourceType",) +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0160 import ReactionRollupType + + +class TimelineCommentEventType(TypedDict): + """Timeline Comment Event + + Timeline Comment 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",) 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 11c95229f..b76a2d691 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0377.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0377.py @@ -10,81 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0378 import TimelineCrossReferencedEventPropSourceType -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 +class TimelineCrossReferencedEventType(TypedDict): + """Timeline Cross Referenced Event - Identifying information for the git-user + Timeline Cross Referenced Event """ - 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] + event: Literal["cross-referenced"] + actor: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + source: TimelineCrossReferencedEventPropSourceType -__all__ = ( - "TimelineCommittedEventPropAuthorType", - "TimelineCommittedEventPropCommitterType", - "TimelineCommittedEventPropParentsItemsType", - "TimelineCommittedEventPropTreeType", - "TimelineCommittedEventPropVerificationType", - "TimelineCommittedEventType", -) +__all__ = ("TimelineCrossReferencedEventType",) 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 19ca5be38..fa88103f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0378.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0378.py @@ -9,66 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0162 import IssueType -class TimelineReviewedEventType(TypedDict): - """Timeline Reviewed Event +class TimelineCrossReferencedEventPropSourceType(TypedDict): + """TimelineCrossReferencedEventPropSource""" - Timeline Reviewed Event - """ + type: NotRequired[str] + issue: NotRequired[IssueType] - 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__ = ( - "TimelineReviewedEventPropLinksPropHtmlType", - "TimelineReviewedEventPropLinksPropPullRequestType", - "TimelineReviewedEventPropLinksType", - "TimelineReviewedEventType", -) +__all__ = ("TimelineCrossReferencedEventPropSourceType",) 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 db960bc49..11c95229f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0379.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0379.py @@ -13,99 +13,78 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0159 import ReactionRollupType +class TimelineCommittedEventType(TypedDict): + """Timeline Committed Event -class PullRequestReviewCommentType(TypedDict): - """Pull Request Review Comment - - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Committed Event """ - url: str - pull_request_review_id: Union[int, None] - id: int + event: NotRequired[Literal["committed"]] + sha: str 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 + url: str + author: TimelineCommittedEventPropAuthorType + committer: TimelineCommittedEventPropCommitterType + message: str + tree: TimelineCommittedEventPropTreeType + parents: list[TimelineCommittedEventPropParentsItemsType] + verification: TimelineCommittedEventPropVerificationType 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""" +class TimelineCommittedEventPropAuthorType(TypedDict): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ - self_: PullRequestReviewCommentPropLinksPropSelfType - html: PullRequestReviewCommentPropLinksPropHtmlType - pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + date: datetime + email: str + name: str -class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): - """PullRequestReviewCommentPropLinksPropSelf""" +class TimelineCommittedEventPropCommitterType(TypedDict): + """TimelineCommittedEventPropCommitter - href: str + Identifying information for the git-user + """ + date: datetime + email: str + name: str -class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): - """PullRequestReviewCommentPropLinksPropHtml""" - href: str +class TimelineCommittedEventPropTreeType(TypedDict): + """TimelineCommittedEventPropTree""" + sha: str + url: str -class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewCommentPropLinksPropPullRequest""" - href: str +class TimelineCommittedEventPropParentsItemsType(TypedDict): + """TimelineCommittedEventPropParentsItems""" + sha: str + url: str + html_url: str -class TimelineLineCommentedEventType(TypedDict): - """Timeline Line Commented Event - Timeline Line Commented Event - """ +class TimelineCommittedEventPropVerificationType(TypedDict): + """TimelineCommittedEventPropVerification""" - event: NotRequired[Literal["line_commented"]] - node_id: NotRequired[str] - comments: NotRequired[list[PullRequestReviewCommentType]] + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] __all__ = ( - "PullRequestReviewCommentPropLinksPropHtmlType", - "PullRequestReviewCommentPropLinksPropPullRequestType", - "PullRequestReviewCommentPropLinksPropSelfType", - "PullRequestReviewCommentPropLinksType", - "PullRequestReviewCommentType", - "TimelineLineCommentedEventType", + "TimelineCommittedEventPropAuthorType", + "TimelineCommittedEventPropCommitterType", + "TimelineCommittedEventPropParentsItemsType", + "TimelineCommittedEventPropTreeType", + "TimelineCommittedEventPropVerificationType", + "TimelineCommittedEventType", ) 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 3baa7987b..19ca5be38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0380.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0380.py @@ -9,29 +9,66 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -class TimelineAssignedIssueEventType(TypedDict): - """Timeline Assigned Issue Event +class TimelineReviewedEventType(TypedDict): + """Timeline Reviewed Event - Timeline Assigned Issue Event + Timeline Reviewed Event """ + event: Literal["reviewed"] 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 + user: SimpleUserType + body: Union[str, None] + state: str + html_url: str + pull_request_url: str + links: TimelineReviewedEventPropLinksType + submitted_at: NotRequired[datetime] + commit_id: str + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] -__all__ = ("TimelineAssignedIssueEventType",) +class TimelineReviewedEventPropLinksType(TypedDict): + """TimelineReviewedEventPropLinks""" + + html: TimelineReviewedEventPropLinksPropHtmlType + pull_request: TimelineReviewedEventPropLinksPropPullRequestType + + +class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str + + +class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "TimelineReviewedEventPropLinksPropHtmlType", + "TimelineReviewedEventPropLinksPropPullRequestType", + "TimelineReviewedEventPropLinksType", + "TimelineReviewedEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0381.py b/githubkit/versions/ghec_v2022_11_28/types/group_0381.py index 7d37c3f07..7787bcd15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0381.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0381.py @@ -9,29 +9,103 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +from .group_0160 import ReactionRollupType -class TimelineUnassignedIssueEventType(TypedDict): - """Timeline Unassigned Issue Event +class PullRequestReviewCommentType(TypedDict): + """Pull Request Review Comment - Timeline Unassigned Issue Event + 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 - 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 + diff_hunk: str + path: str + position: NotRequired[int] + original_position: NotRequired[int] + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: SimpleUserType + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: PullRequestReviewCommentPropLinksType + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + reactions: NotRequired[ReactionRollupType] + body_html: NotRequired[str] + body_text: NotRequired[str] + + +class PullRequestReviewCommentPropLinksType(TypedDict): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelfType + html: PullRequestReviewCommentPropLinksPropHtmlType + pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + + +class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str + + +class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str + + +class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str + + +class TimelineLineCommentedEventType(TypedDict): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ + + event: NotRequired[Literal["line_commented"]] + node_id: NotRequired[str] + comments: NotRequired[list[PullRequestReviewCommentType]] -__all__ = ("TimelineUnassignedIssueEventType",) +__all__ = ( + "PullRequestReviewCommentPropLinksPropHtmlType", + "PullRequestReviewCommentPropLinksPropPullRequestType", + "PullRequestReviewCommentPropLinksPropSelfType", + "PullRequestReviewCommentPropLinksType", + "PullRequestReviewCommentType", + "TimelineLineCommentedEventType", +) 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 4978c8454..3baa7987b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0382.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0382.py @@ -9,29 +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_0003 import SimpleUserType from .group_0010 import IntegrationType -class StateChangeIssueEventType(TypedDict): - """State Change Issue Event +class TimelineAssignedIssueEventType(TypedDict): + """Timeline Assigned Issue Event - State Change Issue Event + Timeline Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: str + event: Literal["assigned"] 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]] + assignee: SimpleUserType -__all__ = ("StateChangeIssueEventType",) +__all__ = ("TimelineAssignedIssueEventType",) 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 b320cbbd3..7d37c3f07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0383.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0383.py @@ -9,26 +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_0003 import SimpleUserType +from .group_0010 import IntegrationType -class DeployKeyType(TypedDict): - """Deploy Key - An SSH key granting access to a single repository. +class TimelineUnassignedIssueEventType(TypedDict): + """Timeline Unassigned Issue Event + + Timeline Unassigned Issue Event """ id: int - key: str + node_id: str url: str - title: str - verified: bool + actor: SimpleUserType + event: Literal["unassigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] created_at: str - read_only: bool - added_by: NotRequired[Union[str, None]] - last_used: NotRequired[Union[str, None]] - enabled: NotRequired[bool] + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -__all__ = ("DeployKeyType",) +__all__ = ("TimelineUnassignedIssueEventType",) 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 bc5f5cd8b..4978c8454 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0384.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0384.py @@ -9,14 +9,29 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing import Union +from typing_extensions import NotRequired, TypedDict -LanguageType: TypeAlias = dict[str, Any] -"""Language +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -Language -""" + +class StateChangeIssueEventType(TypedDict): + """State Change Issue Event + + State Change Issue 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]] -__all__ = ("LanguageType",) +__all__ = ("StateChangeIssueEventType",) 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 2913097c9..0060c4ef9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0385.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0385.py @@ -9,42 +9,27 @@ 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_0019 import LicenseSimpleType +class DeployKeyType(TypedDict): + """Deploy Key -class LicenseContentType(TypedDict): - """License Content - - License Content + An SSH key granting access to a single repository. """ - name: str - path: str - sha: str - size: int + id: int + key: str url: str - html_url: Union[str, None] - git_url: Union[str, None] - download_url: Union[str, None] - type: str - content: str - encoding: str - links: LicenseContentPropLinksType - license_: Union[None, LicenseSimpleType] - - -class LicenseContentPropLinksType(TypedDict): - """LicenseContentPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str + title: str + verified: bool + created_at: str + read_only: bool + added_by: NotRequired[Union[str, None]] + last_used: NotRequired[Union[datetime, None]] + enabled: NotRequired[bool] -__all__ = ( - "LicenseContentPropLinksType", - "LicenseContentType", -) +__all__ = ("DeployKeyType",) 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 ef4f49c12..bc5f5cd8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0386.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0386.py @@ -9,19 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import TypeAlias +LanguageType: TypeAlias = dict[str, Any] +"""Language -class MergedUpstreamType(TypedDict): - """Merged upstream - - Results of a successful merge upstream request - """ - - message: NotRequired[str] - merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] - base_branch: NotRequired[str] +Language +""" -__all__ = ("MergedUpstreamType",) +__all__ = ("LanguageType",) 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 121c3bad8..2913097c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0387.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0387.py @@ -9,64 +9,42 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0019 import LicenseSimpleType -class PageType(TypedDict): - """GitHub Pages - The configuration for GitHub Pages for a repository. - """ - - url: str - status: Union[None, Literal["built", "building", "errored"]] - cname: Union[str, None] - protected_domain_state: NotRequired[ - Union[None, Literal["pending", "verified", "unverified"]] - ] - pending_domain_unverified_at: NotRequired[Union[datetime, None]] - custom_404: bool - html_url: NotRequired[str] - build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] - source: NotRequired[PagesSourceHashType] - public: bool - https_certificate: NotRequired[PagesHttpsCertificateType] - https_enforced: NotRequired[bool] +class LicenseContentType(TypedDict): + """License Content + License Content + """ -class PagesSourceHashType(TypedDict): - """Pages Source Hash""" - - branch: str + 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 PagesHttpsCertificateType(TypedDict): - """Pages Https Certificate""" +class LicenseContentPropLinksType(TypedDict): + """LicenseContentPropLinks""" - 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] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "PageType", - "PagesHttpsCertificateType", - "PagesSourceHashType", + "LicenseContentPropLinksType", + "LicenseContentType", ) 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 83899a24e..ef4f49c12 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0388.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0388.py @@ -9,36 +9,19 @@ 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 -from .group_0003 import SimpleUserType +class MergedUpstreamType(TypedDict): + """Merged upstream -class PageBuildType(TypedDict): - """Page Build - - Page Build + Results of a successful merge upstream request """ - url: str - status: str - error: PageBuildPropErrorType - pusher: Union[None, SimpleUserType] - commit: str - duration: int - created_at: datetime - updated_at: datetime - - -class PageBuildPropErrorType(TypedDict): - """PageBuildPropError""" - - message: Union[str, None] + message: NotRequired[str] + merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] + base_branch: NotRequired[str] -__all__ = ( - "PageBuildPropErrorType", - "PageBuildType", -) +__all__ = ("MergedUpstreamType",) 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 d7001e4a1..121c3bad8 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,64 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import date, datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class PageBuildStatusType(TypedDict): - """Page Build Status +class PageType(TypedDict): + """GitHub Pages - Page Build Status + The configuration for GitHub Pages for a repository. """ url: str - status: 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] -__all__ = ("PageBuildStatusType",) +class PagesSourceHashType(TypedDict): + """Pages Source Hash""" + + branch: str + path: str + + +class PagesHttpsCertificateType(TypedDict): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", + ] + description: str + domains: list[str] + expires_at: NotRequired[date] + + +__all__ = ( + "PageType", + "PagesHttpsCertificateType", + "PagesSourceHashType", +) 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 d3e0b1eca..83899a24e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0390.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0390.py @@ -9,20 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class PageDeploymentType(TypedDict): - """GitHub Pages - The GitHub Pages deployment status. +class PageBuildType(TypedDict): + """Page Build + + Page Build """ - id: Union[int, str] - status_url: str - page_url: str - preview_url: NotRequired[str] + url: str + status: str + error: PageBuildPropErrorType + pusher: Union[None, SimpleUserType] + commit: str + duration: int + created_at: datetime + updated_at: datetime + + +class PageBuildPropErrorType(TypedDict): + """PageBuildPropError""" + + message: Union[str, None] -__all__ = ("PageDeploymentType",) +__all__ = ( + "PageBuildPropErrorType", + "PageBuildType", +) 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 2bf2ddbc1..d7001e4a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0391.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0391.py @@ -9,28 +9,17 @@ 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_extensions import TypedDict + + +class PageBuildStatusType(TypedDict): + """Page Build Status + + Page Build Status + """ + + url: str + status: str + + +__all__ = ("PageBuildStatusType",) 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 5546e6ba9..d3e0b1eca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0392.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0392.py @@ -13,84 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class PagesHealthCheckType(TypedDict): - """Pages Health Check Status +class PageDeploymentType(TypedDict): + """GitHub Pages - Pages Health Check Status + The GitHub Pages deployment status. """ - domain: NotRequired[PagesHealthCheckPropDomainType] - alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] + id: Union[int, str] + status_url: str + page_url: str + preview_url: 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__ = ("PageDeploymentType",) 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 1648d10ba..2bf2ddbc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0393.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0393.py @@ -9,85 +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_0069 import TeamSimpleType -from .group_0157 import MilestoneType -from .group_0314 import AutoMergeType -from .group_0394 import PullRequestPropLabelsItemsType -from .group_0395 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0396 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 - 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", +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", + ] ] - 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",) +__all__ = ("PagesDeploymentStatusType",) 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 8c969ec82..5546e6ba9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0394.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0394.py @@ -10,19 +10,87 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class PullRequestPropLabelsItemsType(TypedDict): - """PullRequestPropLabelsItems""" +class PagesHealthCheckType(TypedDict): + """Pages Health Check Status - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + Pages Health Check Status + """ + domain: NotRequired[PagesHealthCheckPropDomainType] + alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] -__all__ = ("PullRequestPropLabelsItemsType",) + +class PagesHealthCheckPropDomainType(TypedDict): + """PagesHealthCheckPropDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +class PagesHealthCheckPropAltDomainType(TypedDict): + """PagesHealthCheckPropAltDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +__all__ = ( + "PagesHealthCheckPropAltDomainType", + "PagesHealthCheckPropDomainType", + "PagesHealthCheckType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0395.py b/githubkit/versions/ghec_v2022_11_28/types/group_0395.py index cd3535f15..d9c9817a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0395.py @@ -9,34 +9,85 @@ 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_0020 import RepositoryType +from .group_0070 import TeamSimpleType +from .group_0158 import MilestoneType +from .group_0316 import AutoMergeType +from .group_0396 import PullRequestPropLabelsItemsType +from .group_0397 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0398 import PullRequestPropLinksType -class PullRequestPropHeadType(TypedDict): - """PullRequestPropHead""" +class PullRequestType(TypedDict): + """Pull Request - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] + 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. + """ - -class PullRequestPropBaseType(TypedDict): - """PullRequestPropBase""" - - label: str - ref: str - repo: RepositoryType - sha: str + url: str + id: int + node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + 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__ = ( - "PullRequestPropBaseType", - "PullRequestPropHeadType", -) +__all__ = ("PullRequestType",) 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 e7772c740..8c969ec82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0396.py @@ -9,22 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0313 import LinkType +class PullRequestPropLabelsItemsType(TypedDict): + """PullRequestPropLabelsItems""" -class PullRequestPropLinksType(TypedDict): - """PullRequestPropLinks""" + id: int + node_id: str + url: str + name: str + description: Union[str, None] + color: str + default: bool - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType - -__all__ = ("PullRequestPropLinksType",) +__all__ = ("PullRequestPropLabelsItemsType",) 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 211278b38..cd3535f15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0397.py @@ -9,18 +9,34 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class PullRequestMergeResultType(TypedDict): - """Pull Request Merge Result - Pull Request Merge Result - """ +class PullRequestPropHeadType(TypedDict): + """PullRequestPropHead""" + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] sha: str - merged: bool - message: str + user: Union[None, SimpleUserType] -__all__ = ("PullRequestMergeResultType",) +class PullRequestPropBaseType(TypedDict): + """PullRequestPropBase""" + + label: str + ref: str + repo: RepositoryType + sha: str + user: SimpleUserType + + +__all__ = ( + "PullRequestPropBaseType", + "PullRequestPropHeadType", +) 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 f6482d200..139570b6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0398.py @@ -11,18 +11,20 @@ from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0070 import TeamType +from .group_0315 import LinkType -class PullRequestReviewRequestType(TypedDict): - """Pull Request Review Request +class PullRequestPropLinksType(TypedDict): + """PullRequestPropLinks""" - Pull Request Review Request - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - users: list[SimpleUserType] - teams: list[TeamType] - -__all__ = ("PullRequestReviewRequestType",) +__all__ = ("PullRequestPropLinksType",) 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 d7cb39fb2..211278b38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0399.py @@ -9,65 +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_0003 import SimpleUserType +class PullRequestMergeResultType(TypedDict): + """Pull Request Merge Result -class PullRequestReviewType(TypedDict): - """Pull Request Review - - Pull Request Reviews are reviews on pull requests. + Pull Request Merge Result """ - 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 + sha: str + merged: bool + message: str -__all__ = ( - "PullRequestReviewPropLinksPropHtmlType", - "PullRequestReviewPropLinksPropPullRequestType", - "PullRequestReviewPropLinksType", - "PullRequestReviewType", -) +__all__ = ("PullRequestMergeResultType",) 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 97cb213cc..44a27771b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0400.py @@ -9,59 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0159 import ReactionRollupType -from .group_0401 import ReviewCommentPropLinksType +from .group_0071 import TeamType -class ReviewCommentType(TypedDict): - """Legacy Review Comment +class PullRequestReviewRequestType(TypedDict): + """Pull Request Review Request - Legacy Review Comment + Pull Request Review Request """ - 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]] - subject_type: NotRequired[Literal["line", "file"]] + users: list[SimpleUserType] + teams: list[TeamType] -__all__ = ("ReviewCommentType",) +__all__ = ("PullRequestReviewRequestType",) 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 873571baa..d7cb39fb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0401.py @@ -9,17 +9,65 @@ 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_0313 import LinkType +from .group_0003 import SimpleUserType -class ReviewCommentPropLinksType(TypedDict): - """ReviewCommentPropLinks""" +class PullRequestReviewType(TypedDict): + """Pull Request Review - self_: LinkType - html: LinkType - pull_request: LinkType + Pull Request Reviews are reviews on pull requests. + """ + 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", + ] -__all__ = ("ReviewCommentPropLinksType",) + +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_0402.py b/githubkit/versions/ghec_v2022_11_28/types/group_0402.py index ed9a33bfd..b8d2f2f42 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0402.py @@ -11,31 +11,57 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0160 import ReactionRollupType +from .group_0403 import ReviewCommentPropLinksType -class ReleaseAssetType(TypedDict): - """Release Asset +class ReviewCommentType(TypedDict): + """Legacy Review Comment - Data related to a release. + Legacy Review Comment """ url: str - browser_download_url: str + pull_request_review_id: Union[int, None] id: int node_id: str - name: str - label: Union[str, None] - state: Literal["uploaded", "open"] - content_type: str - size: int - digest: Union[str, None] - download_count: int + 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 - uploader: Union[None, SimpleUserType] + 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]] + subject_type: NotRequired[Literal["line", "file"]] -__all__ = ("ReleaseAssetType",) +__all__ = ("ReviewCommentType",) 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 e21f701ea..f0e49faa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0403.py @@ -9,44 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0159 import ReactionRollupType -from .group_0402 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_0315 import LinkType + + +class ReviewCommentPropLinksType(TypedDict): + """ReviewCommentPropLinks""" + + self_: LinkType + html: LinkType + pull_request: LinkType + + +__all__ = ("ReviewCommentPropLinksType",) 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 8cbfbc707..ed9a33bfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0404.py @@ -9,17 +9,33 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ReleaseNotesContentType(TypedDict): - """Generated Release Notes Content - Generated name and body describing a release +class ReleaseAssetType(TypedDict): + """Release Asset + + Data related to a release. """ + url: str + browser_download_url: str + id: int + node_id: str name: str - body: str - - -__all__ = ("ReleaseNotesContentType",) + label: Union[str, None] + state: Literal["uploaded", "open"] + content_type: str + size: int + digest: Union[str, None] + download_count: int + created_at: datetime + updated_at: datetime + uploader: Union[None, SimpleUserType] + + +__all__ = ("ReleaseAssetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0405.py b/githubkit/versions/ghec_v2022_11_28/types/group_0405.py index a7e58a24b..cf548d61c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0405.py @@ -9,20 +9,45 @@ 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_0160 import ReactionRollupType +from .group_0404 import ReleaseAssetType -class RepositoryRuleRulesetInfoType(TypedDict): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ - - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReleaseType(TypedDict): + """Release + A release. + """ -__all__ = ("RepositoryRuleRulesetInfoType",) + 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 + immutable: NotRequired[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_0406.py b/githubkit/versions/ghec_v2022_11_28/types/group_0406.py index 0f564cd7d..8cbfbc707 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0406.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 RepositoryRuleDetailedOneof0Type(TypedDict): - """RepositoryRuleDetailedOneof0""" +class ReleaseNotesContentType(TypedDict): + """Generated Release Notes Content - type: Literal["creation"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + Generated name and body describing a release + """ + name: str + body: str -__all__ = ("RepositoryRuleDetailedOneof0Type",) + +__all__ = ("ReleaseNotesContentType",) 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 c72a1672e..a7e58a24b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0407.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0100 import RepositoryRuleUpdatePropParametersType +class RepositoryRuleRulesetInfoType(TypedDict): + """repository ruleset data for rule -class RepositoryRuleDetailedOneof1Type(TypedDict): - """RepositoryRuleDetailedOneof1""" + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof1Type",) +__all__ = ("RepositoryRuleRulesetInfoType",) 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 273dd677c..0f564cd7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0408.py @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof2Type(TypedDict): - """RepositoryRuleDetailedOneof2""" +class RepositoryRuleDetailedOneof0Type(TypedDict): + """RepositoryRuleDetailedOneof0""" - type: Literal["deletion"] + type: Literal["creation"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof2Type",) +__all__ = ("RepositoryRuleDetailedOneof0Type",) 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 8886199f4..a5814cf75 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0409.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0101 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleDetailedOneof3Type(TypedDict): - """RepositoryRuleDetailedOneof3""" - type: Literal["required_linear_history"] +class RepositoryRuleDetailedOneof1Type(TypedDict): + """RepositoryRuleDetailedOneof1""" + + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof3Type",) +__all__ = ("RepositoryRuleDetailedOneof1Type",) 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 d97b89712..273dd677c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0410.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0103 import RepositoryRuleMergeQueuePropParametersType +class RepositoryRuleDetailedOneof2Type(TypedDict): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof4Type(TypedDict): - """RepositoryRuleDetailedOneof4""" - - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] + type: Literal["deletion"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof4Type",) +__all__ = ("RepositoryRuleDetailedOneof2Type",) 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 a04ac4556..8886199f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0411.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0105 import RepositoryRuleRequiredDeploymentsPropParametersType +class RepositoryRuleDetailedOneof3Type(TypedDict): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof5Type(TypedDict): - """RepositoryRuleDetailedOneof5""" - - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof5Type",) +__all__ = ("RepositoryRuleDetailedOneof3Type",) 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 c30b2990f..cbe7e7aeb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0412.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0139 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRuleDetailedOneof6Type(TypedDict): - """RepositoryRuleDetailedOneof6""" - type: Literal["required_signatures"] +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__ = ("RepositoryRuleDetailedOneof6Type",) +__all__ = ("RepositoryRuleDetailedOneof4Type",) 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 510a6bde9..e541a12e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0413.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0108 import RepositoryRulePullRequestPropParametersType +from .group_0104 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleDetailedOneof7Type(TypedDict): - """RepositoryRuleDetailedOneof7""" +class RepositoryRuleDetailedOneof5Type(TypedDict): + """RepositoryRuleDetailedOneof5""" - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof7Type",) +__all__ = ("RepositoryRuleDetailedOneof5Type",) 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 b0cf42c30..c30b2990f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0414.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0110 import RepositoryRuleRequiredStatusChecksPropParametersType +class RepositoryRuleDetailedOneof6Type(TypedDict): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof8Type(TypedDict): - """RepositoryRuleDetailedOneof8""" - - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["required_signatures"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof8Type",) +__all__ = ("RepositoryRuleDetailedOneof6Type",) 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 d5be14715..197d9ac23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0415.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0107 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleDetailedOneof9Type(TypedDict): - """RepositoryRuleDetailedOneof9""" - type: Literal["non_fast_forward"] +class RepositoryRuleDetailedOneof7Type(TypedDict): + """RepositoryRuleDetailedOneof7""" + + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof9Type",) +__all__ = ("RepositoryRuleDetailedOneof7Type",) 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 1d31e9042..737084a8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0416.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0112 import RepositoryRuleCommitMessagePatternPropParametersType +from .group_0109 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleDetailedOneof10Type(TypedDict): - """RepositoryRuleDetailedOneof10""" +class RepositoryRuleDetailedOneof8Type(TypedDict): + """RepositoryRuleDetailedOneof8""" - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof10Type",) +__all__ = ("RepositoryRuleDetailedOneof8Type",) 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 c195f4f88..d5be14715 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0417.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0417.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0114 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +class RepositoryRuleDetailedOneof9Type(TypedDict): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof11Type(TypedDict): - """RepositoryRuleDetailedOneof11""" - - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["non_fast_forward"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof11Type",) +__all__ = ("RepositoryRuleDetailedOneof9Type",) 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 7cf3d87c6..75f52416b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0418.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0116 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0111 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleDetailedOneof12Type(TypedDict): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof10Type(TypedDict): + """RepositoryRuleDetailedOneof10""" - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof12Type",) +__all__ = ("RepositoryRuleDetailedOneof10Type",) 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 37335c56c..b693cc3f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0419.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0118 import RepositoryRuleBranchNamePatternPropParametersType +from .group_0113 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleDetailedOneof13Type(TypedDict): - """RepositoryRuleDetailedOneof13""" +class RepositoryRuleDetailedOneof11Type(TypedDict): + """RepositoryRuleDetailedOneof11""" - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + 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__ = ("RepositoryRuleDetailedOneof13Type",) +__all__ = ("RepositoryRuleDetailedOneof11Type",) 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 de8b96441..dbf2c82f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0420.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0120 import RepositoryRuleTagNamePatternPropParametersType +from .group_0115 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleDetailedOneof14Type(TypedDict): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof12Type(TypedDict): + """RepositoryRuleDetailedOneof12""" - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof14Type",) +__all__ = ("RepositoryRuleDetailedOneof12Type",) 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 7f744299a..30713ed58 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0421.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0122 import RepositoryRuleFilePathRestrictionPropParametersType +from .group_0117 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleDetailedOneof15Type(TypedDict): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof13Type(TypedDict): + """RepositoryRuleDetailedOneof13""" - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof15Type",) +__all__ = ("RepositoryRuleDetailedOneof13Type",) 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 a7d6b6f8e..cc8543df0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0422.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0124 import RepositoryRuleMaxFilePathLengthPropParametersType +from .group_0119 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleDetailedOneof16Type(TypedDict): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof14Type(TypedDict): + """RepositoryRuleDetailedOneof14""" - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof16Type",) +__all__ = ("RepositoryRuleDetailedOneof14Type",) 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 eacae88be..13982098c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0423.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0126 import RepositoryRuleFileExtensionRestrictionPropParametersType +from .group_0121 import RepositoryRuleFilePathRestrictionPropParametersType -class RepositoryRuleDetailedOneof17Type(TypedDict): - """RepositoryRuleDetailedOneof17""" +class RepositoryRuleDetailedOneof15Type(TypedDict): + """RepositoryRuleDetailedOneof15""" - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof17Type",) +__all__ = ("RepositoryRuleDetailedOneof15Type",) 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 4cb540d17..50a46b146 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0424.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0128 import RepositoryRuleMaxFileSizePropParametersType +from .group_0123 import RepositoryRuleMaxFilePathLengthPropParametersType -class RepositoryRuleDetailedOneof18Type(TypedDict): - """RepositoryRuleDetailedOneof18""" +class RepositoryRuleDetailedOneof16Type(TypedDict): + """RepositoryRuleDetailedOneof16""" - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof18Type",) +__all__ = ("RepositoryRuleDetailedOneof16Type",) 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 89d4e51a4..1b19564e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0425.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0131 import RepositoryRuleWorkflowsPropParametersType +from .group_0125 import RepositoryRuleFileExtensionRestrictionPropParametersType -class RepositoryRuleDetailedOneof19Type(TypedDict): - """RepositoryRuleDetailedOneof19""" +class RepositoryRuleDetailedOneof17Type(TypedDict): + """RepositoryRuleDetailedOneof17""" - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof19Type",) +__all__ = ("RepositoryRuleDetailedOneof17Type",) 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 d0c3da9bf..48fcf4079 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0426.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0133 import RepositoryRuleCodeScanningPropParametersType +from .group_0127 import RepositoryRuleMaxFileSizePropParametersType -class RepositoryRuleDetailedOneof20Type(TypedDict): - """RepositoryRuleDetailedOneof20""" +class RepositoryRuleDetailedOneof18Type(TypedDict): + """RepositoryRuleDetailedOneof18""" - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof20Type",) +__all__ = ("RepositoryRuleDetailedOneof18Type",) 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 380e0f7ff..accf3f1f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0427.py @@ -9,81 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0145 import ( - SecretScanningLocationCommitType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationWikiCommitType, -) -from .group_0146 import ( - SecretScanningLocationIssueCommentType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationPullRequestReviewCommentType, - SecretScanningLocationPullRequestTitleType, -) -from .group_0147 import ( - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationPullRequestCommentType, -) +from .group_0130 import RepositoryRuleWorkflowsPropParametersType -class SecretScanningAlertType(TypedDict): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof19Type(TypedDict): + """RepositoryRuleDetailedOneof19""" - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - is_base64_encoded: NotRequired[Union[bool, None]] - first_location_detected: NotRequired[ - Union[ - None, - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - has_more_locations: NotRequired[bool] + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningAlertType",) +__all__ = ("RepositoryRuleDetailedOneof19Type",) 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 153b0414e..70ccb6b69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0428.py @@ -9,67 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0145 import ( - SecretScanningLocationCommitType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationWikiCommitType, -) -from .group_0146 import ( - SecretScanningLocationIssueCommentType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationPullRequestReviewCommentType, - SecretScanningLocationPullRequestTitleType, -) -from .group_0147 import ( - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationPullRequestCommentType, -) +from .group_0132 import RepositoryRuleCodeScanningPropParametersType -class SecretScanningLocationType(TypedDict): - """SecretScanningLocation""" +class RepositoryRuleDetailedOneof20Type(TypedDict): + """RepositoryRuleDetailedOneof20""" - 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, - ] - ] + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningLocationType",) +__all__ = ("RepositoryRuleDetailedOneof20Type",) 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 a7d6503ef..30b311d79 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0429.py @@ -13,13 +13,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0146 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0147 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0148 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -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 SecretScanningAlertType(TypedDict): + """SecretScanningAlert""" + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + is_base64_encoded: NotRequired[Union[bool, None]] + first_location_detected: NotRequired[ + Union[ + None, + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + has_more_locations: NotRequired[bool] -__all__ = ("SecretScanningPushProtectionBypassType",) + +__all__ = ("SecretScanningAlertType",) 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 c28f498af..91e360bbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0430.py @@ -9,47 +9,67 @@ 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_0146 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0147 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0148 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -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 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 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__ = ("SecretScanningLocationType",) 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 3fadc1994..a7d6503ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0431.py @@ -9,14 +9,17 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" +class SecretScanningPushProtectionBypassType(TypedDict): + """SecretScanningPushProtectionBypass""" - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] + reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] + expire_at: NotRequired[Union[datetime, None]] + token_type: NotRequired[str] -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) +__all__ = ("SecretScanningPushProtectionBypassType",) 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 3bd956c2f..c28f498af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0432.py @@ -9,80 +9,47 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class RepositoryAdvisoryCreateType(TypedDict): - """RepositoryAdvisoryCreate""" +class SecretScanningScanHistoryType(TypedDict): + """SecretScanningScanHistory""" - 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", + incremental_scans: NotRequired[list[SecretScanningScanType]] + pattern_update_scans: NotRequired[list[SecretScanningScanType]] + backfill_scans: NotRequired[list[SecretScanningScanType]] + custom_pattern_backfill_scans: NotRequired[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] ] -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" +class SecretScanningScanType(TypedDict): + """SecretScanningScan - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] + 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 RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - The name of the package affected by the vulnerability. - """ +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] + 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__ = ( - "RepositoryAdvisoryCreatePropCreditsItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryCreateType", + "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", + "SecretScanningScanHistoryType", + "SecretScanningScanType", ) 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 23f5f5af0..3fadc1994 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0433.py @@ -9,61 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class PrivateVulnerabilityReportCreateType(TypedDict): - """PrivateVulnerabilityReportCreate""" +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - 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] + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] -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__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) 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 689cbef7f..3bd956c2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0434.py @@ -13,28 +13,24 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryAdvisoryUpdateType(TypedDict): - """RepositoryAdvisoryUpdate""" +class RepositoryAdvisoryCreateType(TypedDict): + """RepositoryAdvisoryCreate""" - summary: NotRequired[str] - description: NotRequired[str] + summary: str + description: str cve_id: NotRequired[Union[str, None]] - vulnerabilities: NotRequired[ - list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] - ] + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] cwe_ids: NotRequired[Union[list[str], None]] credits_: NotRequired[ - Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] + Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], 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]] + start_private_fork: NotRequired[bool] -class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropCreditsItems""" +class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryCreatePropCreditsItems""" login: str type: Literal[ @@ -51,17 +47,17 @@ class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): ] -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType vulnerable_version_range: NotRequired[Union[str, None]] patched_versions: NotRequired[Union[str, None]] vulnerable_functions: NotRequired[Union[list[str], None]] -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage The name of the package affected by the vulnerability. """ @@ -85,8 +81,8 @@ class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict) __all__ = ( - "RepositoryAdvisoryUpdatePropCreditsItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryUpdateType", + "RepositoryAdvisoryCreatePropCreditsItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryCreateType", ) 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 ca2546e70..23f5f5af0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0435.py @@ -9,21 +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 -from .group_0003 import SimpleUserType +class PrivateVulnerabilityReportCreateType(TypedDict): + """PrivateVulnerabilityReportCreate""" -class StargazerType(TypedDict): - """Stargazer + 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] - Stargazer + +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. """ - starred_at: datetime - user: Union[None, SimpleUserType] + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("StargazerType",) +__all__ = ( + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", + "PrivateVulnerabilityReportCreateType", +) 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 c3c8c7e64..689cbef7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0436.py @@ -9,18 +9,84 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class CommitActivityType(TypedDict): - """Commit Activity +class RepositoryAdvisoryUpdateType(TypedDict): + """RepositoryAdvisoryUpdate""" - Commit Activity + 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. """ - days: list[int] - total: int - week: int + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("CommitActivityType",) +__all__ = ( + "RepositoryAdvisoryUpdatePropCreditsItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryUpdateType", +) 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 0c764aa8c..ca2546e70 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0437.py @@ -9,33 +9,21 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -class ContributorActivityType(TypedDict): - """Contributor Activity +class StargazerType(TypedDict): + """Stargazer - Contributor Activity + Stargazer """ - author: Union[None, SimpleUserType] - total: int - weeks: list[ContributorActivityPropWeeksItemsType] + starred_at: datetime + user: Union[None, SimpleUserType] -class ContributorActivityPropWeeksItemsType(TypedDict): - """ContributorActivityPropWeeksItems""" - - w: NotRequired[int] - a: NotRequired[int] - d: NotRequired[int] - c: NotRequired[int] - - -__all__ = ( - "ContributorActivityPropWeeksItemsType", - "ContributorActivityType", -) +__all__ = ("StargazerType",) 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 4bde16f66..c3c8c7e64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0438.py @@ -12,11 +12,15 @@ from typing_extensions import TypedDict -class ParticipationStatsType(TypedDict): - """Participation Stats""" +class CommitActivityType(TypedDict): + """Commit Activity - all_: list[int] - owner: list[int] + Commit Activity + """ + days: list[int] + total: int + week: int -__all__ = ("ParticipationStatsType",) + +__all__ = ("CommitActivityType",) 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 00a60951a..0c764aa8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0439.py @@ -9,23 +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_0003 import SimpleUserType -class RepositorySubscriptionType(TypedDict): - """Repository Invitation - Repository invitations let you manage who you collaborate with. +class ContributorActivityType(TypedDict): + """Contributor Activity + + Contributor Activity """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: datetime - url: str - repository_url: str + author: Union[None, SimpleUserType] + total: int + weeks: list[ContributorActivityPropWeeksItemsType] + + +class ContributorActivityPropWeeksItemsType(TypedDict): + """ContributorActivityPropWeeksItems""" + + w: NotRequired[int] + a: NotRequired[int] + d: NotRequired[int] + c: NotRequired[int] -__all__ = ("RepositorySubscriptionType",) +__all__ = ( + "ContributorActivityPropWeeksItemsType", + "ContributorActivityType", +) 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 8a231b6fb..4bde16f66 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0440.py @@ -12,27 +12,11 @@ from typing_extensions import TypedDict -class TagType(TypedDict): - """Tag +class ParticipationStatsType(TypedDict): + """Participation Stats""" - Tag - """ + all_: list[int] + owner: list[int] - name: str - commit: TagPropCommitType - zipball_url: str - tarball_url: str - node_id: str - -class TagPropCommitType(TypedDict): - """TagPropCommit""" - - sha: str - url: str - - -__all__ = ( - "TagPropCommitType", - "TagType", -) +__all__ = ("ParticipationStatsType",) 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 a09ecf462..00a60951a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0441.py @@ -9,20 +9,23 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict -class TagProtectionType(TypedDict): - """Tag protection +class RepositorySubscriptionType(TypedDict): + """Repository Invitation - Tag protection + Repository invitations let you manage who you collaborate with. """ - id: NotRequired[int] - created_at: NotRequired[str] - updated_at: NotRequired[str] - enabled: NotRequired[bool] - pattern: str + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: datetime + url: str + repository_url: str -__all__ = ("TagProtectionType",) +__all__ = ("RepositorySubscriptionType",) 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 69365fe85..8a231b6fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0442.py @@ -12,13 +12,27 @@ from typing_extensions import TypedDict -class TopicType(TypedDict): - """Topic +class TagType(TypedDict): + """Tag - A topic aggregates entities that are related to a subject. + Tag """ - names: list[str] + name: str + commit: TagPropCommitType + zipball_url: str + tarball_url: str + node_id: str -__all__ = ("TopicType",) +class TagPropCommitType(TypedDict): + """TagPropCommit""" + + sha: str + url: str + + +__all__ = ( + "TagPropCommitType", + "TagType", +) 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 2412270d8..a09ecf462 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0443.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0443.py @@ -9,16 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TrafficType(TypedDict): - """Traffic""" +class TagProtectionType(TypedDict): + """Tag protection - timestamp: datetime - uniques: int - count: int + Tag protection + """ + id: NotRequired[int] + created_at: NotRequired[str] + updated_at: NotRequired[str] + enabled: NotRequired[bool] + pattern: str -__all__ = ("TrafficType",) + +__all__ = ("TagProtectionType",) 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 df3063ae0..69365fe85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0444.py @@ -11,18 +11,14 @@ from typing_extensions import TypedDict -from .group_0443 import TrafficType +class TopicType(TypedDict): + """Topic -class CloneTrafficType(TypedDict): - """Clone Traffic - - Clone Traffic + A topic aggregates entities that are related to a subject. """ - count: int - uniques: int - clones: list[TrafficType] + names: list[str] -__all__ = ("CloneTrafficType",) +__all__ = ("TopicType",) 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 8ae9ebc92..2412270d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0445.py @@ -9,19 +9,16 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class ContentTrafficType(TypedDict): - """Content Traffic +class TrafficType(TypedDict): + """Traffic""" - Content Traffic - """ - - path: str - title: str - count: int + timestamp: datetime uniques: int + count: int -__all__ = ("ContentTrafficType",) +__all__ = ("TrafficType",) 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 d7d63281a..e6030d019 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0446.py @@ -11,16 +11,18 @@ from typing_extensions import TypedDict +from .group_0445 import TrafficType -class ReferrerTrafficType(TypedDict): - """Referrer Traffic - Referrer Traffic +class CloneTrafficType(TypedDict): + """Clone Traffic + + Clone Traffic """ - referrer: str count: int uniques: int + clones: list[TrafficType] -__all__ = ("ReferrerTrafficType",) +__all__ = ("CloneTrafficType",) 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 a6f3a617a..8ae9ebc92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0447.py @@ -11,18 +11,17 @@ from typing_extensions import TypedDict -from .group_0443 import TrafficType +class ContentTrafficType(TypedDict): + """Content Traffic -class ViewTrafficType(TypedDict): - """View Traffic - - View Traffic + Content Traffic """ + path: str + title: str count: int uniques: int - views: list[TrafficType] -__all__ = ("ViewTrafficType",) +__all__ = ("ContentTrafficType",) 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 a4530cd7b..d7d63281a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0448.py @@ -9,33 +9,18 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class GroupResponseType(TypedDict): - """GroupResponse""" +class ReferrerTrafficType(TypedDict): + """Referrer Traffic - schemas: list[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] - external_id: NotRequired[Union[str, None]] - display_name: NotRequired[Union[str, None]] - members: NotRequired[list[GroupResponsePropMembersItemsType]] + Referrer Traffic + """ + referrer: str + count: int + uniques: int -class GroupResponsePropMembersItemsType(TypedDict): - """GroupResponsePropMembersItems""" - value: str - ref: str - display: NotRequired[str] - - -__all__ = ( - "GroupResponsePropMembersItemsType", - "GroupResponseType", -) +__all__ = ("ReferrerTrafficType",) 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 49cdae3aa..b237d0a7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0449.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_0445 import TrafficType -class MetaType(TypedDict): - """Meta - The metadata associated with the creation/updates to the user. +class ViewTrafficType(TypedDict): + """View Traffic + + View Traffic """ - resource_type: Literal["User", "Group"] - created: NotRequired[str] - last_modified: NotRequired[str] - location: NotRequired[str] + count: int + uniques: int + views: list[TrafficType] -__all__ = ("MetaType",) +__all__ = ("ViewTrafficType",) 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 8d7697619..a4530cd7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0450.py @@ -12,11 +12,9 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0449 import MetaType - -class ScimEnterpriseGroupResponseType(TypedDict): - """ScimEnterpriseGroupResponse""" +class GroupResponseType(TypedDict): + """GroupResponse""" schemas: list[ Literal[ @@ -26,31 +24,18 @@ class ScimEnterpriseGroupResponseType(TypedDict): ] external_id: NotRequired[Union[str, None]] display_name: NotRequired[Union[str, None]] - members: NotRequired[list[ScimEnterpriseGroupResponseMergedMembersType]] - id: NotRequired[str] - meta: NotRequired[MetaType] + members: NotRequired[list[GroupResponsePropMembersItemsType]] -class ScimEnterpriseGroupResponseMergedMembersType(TypedDict): - """ScimEnterpriseGroupResponseMergedMembers""" +class GroupResponsePropMembersItemsType(TypedDict): + """GroupResponsePropMembersItems""" 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", + "GroupResponsePropMembersItemsType", + "GroupResponseType", ) 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 2db897707..49cdae3aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0451.py @@ -9,28 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0449 import MetaType +class MetaType(TypedDict): + """Meta -class ScimEnterpriseGroupResponseAllof1Type(TypedDict): - """ScimEnterpriseGroupResponseAllof1""" + The metadata associated with the creation/updates to the user. + """ - id: NotRequired[str] - members: NotRequired[list[ScimEnterpriseGroupResponseAllof1PropMembersItemsType]] - meta: NotRequired[MetaType] + resource_type: Literal["User", "Group"] + created: NotRequired[str] + last_modified: NotRequired[str] + location: NotRequired[str] -class ScimEnterpriseGroupResponseAllof1PropMembersItemsType(TypedDict): - """ScimEnterpriseGroupResponseAllof1PropMembersItems""" - - value: NotRequired[str] - ref: NotRequired[str] - display: NotRequired[str] - - -__all__ = ( - "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", - "ScimEnterpriseGroupResponseAllof1Type", -) +__all__ = ("MetaType",) 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 5d3f1069e..11702f6a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0452.py @@ -9,27 +9,48 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0451 import MetaType -class GroupType(TypedDict): - """Group""" - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] - external_id: str - display_name: str - members: list[GroupPropMembersItemsType] +class ScimEnterpriseGroupResponseType(TypedDict): + """ScimEnterpriseGroupResponse""" + 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 GroupPropMembersItemsType(TypedDict): - """GroupPropMembersItems""" + +class ScimEnterpriseGroupResponseMergedMembersType(TypedDict): + """ScimEnterpriseGroupResponseMergedMembers""" value: str - display_name: 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__ = ( - "GroupPropMembersItemsType", - "GroupType", + "ScimEnterpriseGroupListType", + "ScimEnterpriseGroupResponseMergedMembersType", + "ScimEnterpriseGroupResponseType", ) 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 a81bf3fd2..c603c2db1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0453.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0451 import MetaType -class PatchSchemaType(TypedDict): - """PatchSchema""" - operations: list[PatchSchemaPropOperationsItemsType] - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] +class ScimEnterpriseGroupResponseAllof1Type(TypedDict): + """ScimEnterpriseGroupResponseAllof1""" + id: NotRequired[str] + members: NotRequired[list[ScimEnterpriseGroupResponseAllof1PropMembersItemsType]] + meta: NotRequired[MetaType] -class PatchSchemaPropOperationsItemsType(TypedDict): - """PatchSchemaPropOperationsItems""" - op: Literal["add", "replace", "remove"] - path: NotRequired[str] +class ScimEnterpriseGroupResponseAllof1PropMembersItemsType(TypedDict): + """ScimEnterpriseGroupResponseAllof1PropMembersItems""" + value: NotRequired[str] + ref: NotRequired[str] + display: NotRequired[str] __all__ = ( - "PatchSchemaPropOperationsItemsType", - "PatchSchemaType", + "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", + "ScimEnterpriseGroupResponseAllof1Type", ) 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 96b042860..5d3f1069e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0454.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class UserNameResponseType(TypedDict): - """UserNameResponse""" +class GroupType(TypedDict): + """Group""" - formatted: NotRequired[str] - family_name: NotRequired[str] - given_name: NotRequired[str] - middle_name: NotRequired[str] + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] + external_id: str + display_name: str + members: list[GroupPropMembersItemsType] -class UserEmailsResponseItemsType(TypedDict): - """UserEmailsResponseItems""" +class GroupPropMembersItemsType(TypedDict): + """GroupPropMembersItems""" value: str - type: NotRequired[str] - primary: NotRequired[bool] + display_name: str __all__ = ( - "UserEmailsResponseItemsType", - "UserNameResponseType", + "GroupPropMembersItemsType", + "GroupType", ) 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 dd4ea445a..a81bf3fd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0455.py @@ -13,24 +13,22 @@ from typing_extensions import NotRequired, TypedDict -class UserRoleItemsType(TypedDict): - """UserRoleItems""" - - display: NotRequired[str] - type: NotRequired[str] - value: Literal[ - "user", - "27d9891d-2c17-4f45-a262-781a0e55c80a", - "guest_collaborator", - "1ebc4a02-e56c-43a6-92a5-02ee09b90824", - "enterprise_owner", - "981df190-8801-4618-a08a-d91f6206c954", - "ba4987ab-a1c3-412a-b58c-360fc407cb10", - "billing_manager", - "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", - "e6be2762-e4ad-4108-b72d-1bbe884a0f91", - ] - primary: NotRequired[bool] - - -__all__ = ("UserRoleItemsType",) +class PatchSchemaType(TypedDict): + """PatchSchema""" + + operations: list[PatchSchemaPropOperationsItemsType] + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] + + +class PatchSchemaPropOperationsItemsType(TypedDict): + """PatchSchemaPropOperationsItems""" + + op: Literal["add", "replace", "remove"] + path: NotRequired[str] + value: NotRequired[str] + + +__all__ = ( + "PatchSchemaPropOperationsItemsType", + "PatchSchemaType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0456.py b/githubkit/versions/ghec_v2022_11_28/types/group_0456.py index a0069dc1e..96b042860 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0456.py @@ -9,24 +9,27 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0454 import UserEmailsResponseItemsType, UserNameResponseType -from .group_0455 import UserRoleItemsType +class UserNameResponseType(TypedDict): + """UserNameResponse""" -class UserResponseType(TypedDict): - """UserResponse""" + formatted: NotRequired[str] + family_name: NotRequired[str] + given_name: NotRequired[str] + middle_name: NotRequired[str] - 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]] +class UserEmailsResponseItemsType(TypedDict): + """UserEmailsResponseItems""" -__all__ = ("UserResponseType",) + value: str + type: NotRequired[str] + primary: NotRequired[bool] + + +__all__ = ( + "UserEmailsResponseItemsType", + "UserNameResponseType", +) 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 ffb8386a8..dd4ea445a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0457.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0457.py @@ -9,42 +9,28 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0449 import MetaType -from .group_0454 import UserEmailsResponseItemsType, UserNameResponseType -from .group_0455 import UserRoleItemsType -from .group_0459 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType +class UserRoleItemsType(TypedDict): + """UserRoleItems""" -class ScimEnterpriseUserResponseType(TypedDict): - """ScimEnterpriseUserResponse""" + 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] - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] - external_id: NotRequired[Union[str, None]] - active: bool - user_name: NotRequired[str] - name: NotRequired[UserNameResponseType] - display_name: NotRequired[Union[str, None]] - emails: list[UserEmailsResponseItemsType] - roles: NotRequired[list[UserRoleItemsType]] - id: str - groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] - meta: MetaType - -class ScimEnterpriseUserListType(TypedDict): - """ScimEnterpriseUserList""" - - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] - total_results: int - resources: list[ScimEnterpriseUserResponseType] - start_index: int - items_per_page: int - - -__all__ = ( - "ScimEnterpriseUserListType", - "ScimEnterpriseUserResponseType", -) +__all__ = ("UserRoleItemsType",) 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 9754f8d5e..68332c705 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0458.py @@ -9,18 +9,24 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0449 import MetaType -from .group_0459 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType +from .group_0456 import UserEmailsResponseItemsType, UserNameResponseType +from .group_0457 import UserRoleItemsType -class ScimEnterpriseUserResponseAllof1Type(TypedDict): - """ScimEnterpriseUserResponseAllof1""" +class UserResponseType(TypedDict): + """UserResponse""" - id: str - groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] - meta: MetaType + 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]] -__all__ = ("ScimEnterpriseUserResponseAllof1Type",) +__all__ = ("UserResponseType",) 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 69b2ab7f3..4e5e49219 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0459.py @@ -9,15 +9,42 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0451 import MetaType +from .group_0456 import UserEmailsResponseItemsType, UserNameResponseType +from .group_0457 import UserRoleItemsType +from .group_0461 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType -class ScimEnterpriseUserResponseAllof1PropGroupsItemsType(TypedDict): - """ScimEnterpriseUserResponseAllof1PropGroupsItems""" - value: NotRequired[str] - ref: NotRequired[str] - display: NotRequired[str] +class ScimEnterpriseUserResponseType(TypedDict): + """ScimEnterpriseUserResponse""" + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] + external_id: NotRequired[Union[str, None]] + active: bool + user_name: NotRequired[str] + name: NotRequired[UserNameResponseType] + display_name: NotRequired[Union[str, None]] + emails: list[UserEmailsResponseItemsType] + roles: NotRequired[list[UserRoleItemsType]] + id: str + groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] + meta: MetaType -__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",) + +class ScimEnterpriseUserListType(TypedDict): + """ScimEnterpriseUserList""" + + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] + total_results: int + resources: list[ScimEnterpriseUserResponseType] + start_index: int + items_per_page: int + + +__all__ = ( + "ScimEnterpriseUserListType", + "ScimEnterpriseUserResponseType", +) 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 c4ec480bc..b97b1b474 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0460.py @@ -9,44 +9,18 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0455 import UserRoleItemsType +from .group_0451 import MetaType +from .group_0461 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType -class UserType(TypedDict): - """User""" +class ScimEnterpriseUserResponseAllof1Type(TypedDict): + """ScimEnterpriseUserResponseAllof1""" - 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: str + groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] + meta: MetaType -class UserNameType(TypedDict): - """UserName""" - - formatted: NotRequired[str] - family_name: str - given_name: str - middle_name: NotRequired[str] - - -class UserEmailsItemsType(TypedDict): - """UserEmailsItems""" - - value: str - type: str - primary: bool - - -__all__ = ( - "UserEmailsItemsType", - "UserNameType", - "UserType", -) +__all__ = ("ScimEnterpriseUserResponseAllof1Type",) 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 83d9c05bb..69b2ab7f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0461.py @@ -9,112 +9,15 @@ 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 - - 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 - """ - - 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""" - - 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""" +class ScimEnterpriseUserResponseAllof1PropGroupsItemsType(TypedDict): + """ScimEnterpriseUserResponseAllof1PropGroupsItems""" value: NotRequired[str] - primary: NotRequired[bool] - type: NotRequired[str] + ref: 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", -) +__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",) 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 e1d436bf1..af654bb8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0462.py @@ -9,28 +9,44 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0457 import UserRoleItemsType -class SearchResultTextMatchesItemsType(TypedDict): - """SearchResultTextMatchesItems""" - object_url: NotRequired[str] - object_type: NotRequired[Union[str, None]] - property_: NotRequired[str] - fragment: NotRequired[str] - matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] +class UserType(TypedDict): + """User""" + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] + external_id: str + active: bool + user_name: str + name: NotRequired[UserNameType] + display_name: str + emails: list[UserEmailsItemsType] + roles: NotRequired[list[UserRoleItemsType]] -class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): - """SearchResultTextMatchesItemsPropMatchesItems""" - text: NotRequired[str] - indices: NotRequired[list[int]] +class UserNameType(TypedDict): + """UserName""" + + formatted: NotRequired[str] + family_name: str + given_name: str + middle_name: NotRequired[str] + + +class UserEmailsItemsType(TypedDict): + """UserEmailsItems""" + + value: str + type: str + primary: bool __all__ = ( - "SearchResultTextMatchesItemsPropMatchesItemsType", - "SearchResultTextMatchesItemsType", + "UserEmailsItemsType", + "UserNameType", + "UserType", ) 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 64d24bfa1..83d9c05bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0463.py @@ -10,43 +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_0176 import MinimalRepositoryType -from .group_0462 import SearchResultTextMatchesItemsType +class ScimUserListType(TypedDict): + """SCIM User List -class CodeSearchResultItemType(TypedDict): - """Code 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 + """ - Code 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'} """ - 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]] + 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 SearchCodeGetResponse200Type(TypedDict): - """SearchCodeGetResponse200""" - total_count: int - incomplete_results: bool - items: list[CodeSearchResultItemType] +class ScimUserPropOperationsItemsPropValueOneof1Type(TypedDict): + """ScimUserPropOperationsItemsPropValueOneof1""" __all__ = ( - "CodeSearchResultItemType", - "SearchCodeGetResponse200Type", + "ScimUserListType", + "ScimUserPropEmailsItemsType", + "ScimUserPropGroupsItemsType", + "ScimUserPropMetaType", + "ScimUserPropNameType", + "ScimUserPropOperationsItemsPropValueOneof1Type", + "ScimUserPropOperationsItemsType", + "ScimUserPropRolesItemsType", + "ScimUserType", ) 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 50a251c0e..e1d436bf1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0464.py @@ -12,51 +12,25 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0176 import MinimalRepositoryType -from .group_0273 import GitUserType -from .group_0462 import SearchResultTextMatchesItemsType -from .group_0465 import CommitSearchResultItemPropCommitType +class SearchResultTextMatchesItemsType(TypedDict): + """SearchResultTextMatchesItems""" -class CommitSearchResultItemType(TypedDict): - """Commit Search Result Item + object_url: NotRequired[str] + object_type: NotRequired[Union[str, None]] + property_: NotRequired[str] + fragment: NotRequired[str] + matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] - Commit Search Result Item - """ - url: str - sha: str - html_url: str - comments_url: str - commit: CommitSearchResultItemPropCommitType - author: Union[None, SimpleUserType] - committer: Union[None, GitUserType] - parents: list[CommitSearchResultItemPropParentsItemsType] - repository: MinimalRepositoryType - score: float - node_id: str - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] +class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): + """SearchResultTextMatchesItemsPropMatchesItems""" - -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] + text: NotRequired[str] + indices: NotRequired[list[int]] __all__ = ( - "CommitSearchResultItemPropParentsItemsType", - "CommitSearchResultItemType", - "SearchCommitsGetResponse200Type", + "SearchResultTextMatchesItemsPropMatchesItemsType", + "SearchResultTextMatchesItemsType", ) 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 e96aeff2a..765444862 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0465.py @@ -13,39 +13,40 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0273 import GitUserType -from .group_0274 import VerificationType +from .group_0178 import MinimalRepositoryType +from .group_0464 import SearchResultTextMatchesItemsType -class CommitSearchResultItemPropCommitType(TypedDict): - """CommitSearchResultItemPropCommit""" - - author: CommitSearchResultItemPropCommitPropAuthorType - committer: Union[None, GitUserType] - comment_count: int - message: str - tree: CommitSearchResultItemPropCommitPropTreeType - url: str - verification: NotRequired[VerificationType] +class CodeSearchResultItemType(TypedDict): + """Code Search Result Item - -class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): - """CommitSearchResultItemPropCommitPropAuthor""" + Code Search Result Item + """ name: str - email: str - date: datetime + 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 CommitSearchResultItemPropCommitPropTreeType(TypedDict): - """CommitSearchResultItemPropCommitPropTree""" +class SearchCodeGetResponse200Type(TypedDict): + """SearchCodeGetResponse200""" - sha: str - url: str + total_count: int + incomplete_results: bool + items: list[CodeSearchResultItemType] __all__ = ( - "CommitSearchResultItemPropCommitPropAuthorType", - "CommitSearchResultItemPropCommitPropTreeType", - "CommitSearchResultItemPropCommitType", + "CodeSearchResultItemType", + "SearchCodeGetResponse200Type", ) 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 eb9af2e93..0eb417d4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0466.py @@ -9,115 +9,54 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0020 import RepositoryType -from .group_0157 import MilestoneType -from .group_0158 import IssueTypeType -from .group_0159 import ReactionRollupType -from .group_0462 import SearchResultTextMatchesItemsType +from .group_0178 import MinimalRepositoryType +from .group_0275 import GitUserType +from .group_0464 import SearchResultTextMatchesItemsType +from .group_0467 import CommitSearchResultItemPropCommitType -class IssueSearchResultItemType(TypedDict): - """Issue Search Result Item +class CommitSearchResultItemType(TypedDict): + """Commit Search Result Item - Issue Search Result Item + Commit Search Result Item """ url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str + sha: str html_url: str - id: int + comments_url: str + commit: CommitSearchResultItemPropCommitType + author: Union[None, SimpleUserType] + committer: Union[None, GitUserType] + parents: list[CommitSearchResultItemPropParentsItemsType] + repository: MinimalRepositoryType + score: float node_id: str - number: int - title: str - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - assignees: NotRequired[Union[list[SimpleUserType], None]] - user: Union[None, SimpleUserType] - labels: list[IssueSearchResultItemPropLabelsItemsType] - sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] - state: str - state_reason: NotRequired[Union[str, None]] - assignee: Union[None, SimpleUserType] - milestone: Union[None, MilestoneType] - comments: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] - body: NotRequired[str] - score: float - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - draft: NotRequired[bool] - repository: NotRequired[RepositoryType] - body_html: NotRequired[str] - body_text: NotRequired[str] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -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""" +class CommitSearchResultItemPropParentsItemsType(TypedDict): + """CommitSearchResultItemPropParentsItems""" - 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] + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] -class SearchIssuesGetResponse200Type(TypedDict): - """SearchIssuesGetResponse200""" +class SearchCommitsGetResponse200Type(TypedDict): + """SearchCommitsGetResponse200""" total_count: int incomplete_results: bool - items: list[IssueSearchResultItemType] + items: list[CommitSearchResultItemType] __all__ = ( - "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropPullRequestType", - "IssueSearchResultItemPropSubIssuesSummaryType", - "IssueSearchResultItemType", - "SearchIssuesGetResponse200Type", + "CommitSearchResultItemPropParentsItemsType", + "CommitSearchResultItemType", + "SearchCommitsGetResponse200Type", ) 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 82f3d0d1f..48f0eda0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0467.py @@ -9,38 +9,43 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0462 import SearchResultTextMatchesItemsType +from .group_0275 import GitUserType +from .group_0276 import VerificationType -class LabelSearchResultItemType(TypedDict): - """Label Search Result Item +class CommitSearchResultItemPropCommitType(TypedDict): + """CommitSearchResultItemPropCommit""" - Label Search Result Item - """ - - id: int - node_id: str + author: CommitSearchResultItemPropCommitPropAuthorType + committer: Union[None, GitUserType] + comment_count: int + message: str + tree: CommitSearchResultItemPropCommitPropTreeType url: str + verification: NotRequired[VerificationType] + + +class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): + """CommitSearchResultItemPropCommitPropAuthor""" + name: str - color: str - default: bool - description: Union[str, None] - score: float - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + email: str + date: datetime -class SearchLabelsGetResponse200Type(TypedDict): - """SearchLabelsGetResponse200""" +class CommitSearchResultItemPropCommitPropTreeType(TypedDict): + """CommitSearchResultItemPropCommitPropTree""" - total_count: int - incomplete_results: bool - items: list[LabelSearchResultItemType] + sha: str + url: str __all__ = ( - "LabelSearchResultItemType", - "SearchLabelsGetResponse200Type", + "CommitSearchResultItemPropCommitPropAuthorType", + "CommitSearchResultItemPropCommitPropTreeType", + "CommitSearchResultItemPropCommitType", ) 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 0a091467a..17ff4045b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0468.py @@ -10,131 +10,106 @@ 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_0019 import LicenseSimpleType -from .group_0462 import SearchResultTextMatchesItemsType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0158 import MilestoneType +from .group_0159 import IssueTypeType +from .group_0160 import ReactionRollupType +from .group_0161 import SubIssuesSummaryType +from .group_0464 import SearchResultTextMatchesItemsType -class RepoSearchResultItemType(TypedDict): - """Repo Search Result Item +class IssueSearchResultItemType(TypedDict): + """Issue Search Result Item - Repo Search Result Item + 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 - name: str - full_name: str - owner: Union[None, SimpleUserType] - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: 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[SubIssuesSummaryType] + state: str + state_reason: NotRequired[Union[str, None]] + assignee: Union[None, SimpleUserType] + milestone: Union[None, MilestoneType] + comments: int 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] + closed_at: Union[datetime, None] 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""" + pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] + body: NotRequired[str] + score: float + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + draft: NotRequired[bool] + repository: NotRequired[RepositoryType] + body_html: NotRequired[str] + body_text: NotRequired[str] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +class IssueSearchResultItemPropLabelsItemsType(TypedDict): + """IssueSearchResultItemPropLabelsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + color: NotRequired[str] + default: NotRequired[bool] + description: NotRequired[Union[str, None]] + + +class 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[RepoSearchResultItemType] + items: list[IssueSearchResultItemType] __all__ = ( - "RepoSearchResultItemPropPermissionsType", - "RepoSearchResultItemType", - "SearchRepositoriesGetResponse200Type", + "IssueSearchResultItemPropLabelsItemsType", + "IssueSearchResultItemPropPullRequestType", + "IssueSearchResultItemType", + "SearchIssuesGetResponse200Type", ) 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 4e1639385..39313c1f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0469.py @@ -9,84 +9,38 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0462 import SearchResultTextMatchesItemsType +from .group_0464 import SearchResultTextMatchesItemsType -class TopicSearchResultItemType(TypedDict): - """Topic Search Result Item +class LabelSearchResultItemType(TypedDict): + """Label Search Result Item - Topic Search Result Item + Label Search Result Item """ + id: int + node_id: str + url: str name: str - display_name: Union[str, None] - short_description: Union[str, None] + color: str + default: bool 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""" +class SearchLabelsGetResponse200Type(TypedDict): + """SearchLabelsGetResponse200""" total_count: int incomplete_results: bool - items: list[TopicSearchResultItemType] + items: list[LabelSearchResultItemType] __all__ = ( - "SearchTopicsGetResponse200Type", - "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", - "TopicSearchResultItemPropAliasesItemsType", - "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", - "TopicSearchResultItemPropRelatedItemsType", - "TopicSearchResultItemType", + "LabelSearchResultItemType", + "SearchLabelsGetResponse200Type", ) 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 c0b09c277..3914c6030 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0470.py @@ -13,61 +13,128 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0462 import SearchResultTextMatchesItemsType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0464 import SearchResultTextMatchesItemsType -class UserSearchResultItemType(TypedDict): - """User Search Result Item +class RepoSearchResultItemType(TypedDict): + """Repo Search Result Item - User Search Result Item + Repo Search Result Item """ - login: str id: int node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str + name: str + full_name: str + owner: Union[None, SimpleUserType] + private: bool html_url: str - followers_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - received_events_url: str - type: 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 - following_url: str - gists_url: str - starred_url: str + forks_url: str + keys_url: str + collaborators_url: str + teams_url: str + hooks_url: str + issue_events_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]] + 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]] - blog: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - suspended_at: NotRequired[Union[datetime, None]] - user_view_type: NotRequired[str] + 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 SearchUsersGetResponse200Type(TypedDict): - """SearchUsersGetResponse200""" +class SearchRepositoriesGetResponse200Type(TypedDict): + """SearchRepositoriesGetResponse200""" total_count: int incomplete_results: bool - items: list[UserSearchResultItemType] + items: list[RepoSearchResultItemType] __all__ = ( - "SearchUsersGetResponse200Type", - "UserSearchResultItemType", + "RepoSearchResultItemPropPermissionsType", + "RepoSearchResultItemType", + "SearchRepositoriesGetResponse200Type", ) 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 855325c4a..5d67ca065 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0471.py @@ -13,68 +13,80 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0464 import SearchResultTextMatchesItemsType -class PrivateUserType(TypedDict): - """Private User - Private User +class TopicSearchResultItemType(TypedDict): + """Topic Search Result Item + + Topic Search Result Item """ - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - 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 + 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 - 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] + 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 PrivateUserPropPlanType(TypedDict): - """PrivateUserPropPlan""" +class TopicSearchResultItemPropRelatedItemsType(TypedDict): + """TopicSearchResultItemPropRelatedItems""" - collaborators: int - name: str - space: int - private_repos: int + 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__ = ( - "PrivateUserPropPlanType", - "PrivateUserType", + "SearchTopicsGetResponse200Type", + "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", + "TopicSearchResultItemPropAliasesItemsType", + "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", + "TopicSearchResultItemPropRelatedItemsType", + "TopicSearchResultItemType", ) 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 6be52538b..1ed6a7bd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0472.py @@ -9,17 +9,65 @@ 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_0464 import SearchResultTextMatchesItemsType -class CodespacesUserPublicKeyType(TypedDict): - """CodespacesUserPublicKey - The public key used for setting user Codespaces' Secrets. +class UserSearchResultItemType(TypedDict): + """User Search Result Item + + User Search Result Item """ - key_id: str - key: str + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + received_events_url: str + type: str + score: float + following_url: str + gists_url: str + starred_url: str + events_url: str + public_repos: NotRequired[int] + public_gists: NotRequired[int] + followers: NotRequired[int] + following: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + name: NotRequired[Union[str, None]] + bio: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + site_admin: bool + hireable: NotRequired[Union[bool, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + blog: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + suspended_at: NotRequired[Union[datetime, None]] + user_view_type: NotRequired[str] + + +class SearchUsersGetResponse200Type(TypedDict): + """SearchUsersGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[UserSearchResultItemType] -__all__ = ("CodespacesUserPublicKeyType",) +__all__ = ( + "SearchUsersGetResponse200Type", + "UserSearchResultItemType", +) 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 2b50d37d0..855325c4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0473.py @@ -14,20 +14,67 @@ from typing_extensions import NotRequired, TypedDict -class CodespaceExportDetailsType(TypedDict): - """Fetches information about an export of a codespace. +class PrivateUserType(TypedDict): + """Private User - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest + Private User """ - 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]] + 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] -__all__ = ("CodespaceExportDetailsType",) +class PrivateUserPropPlanType(TypedDict): + """PrivateUserPropPlan""" + + collaborators: int + name: str + space: int + private_repos: int + + +__all__ = ( + "PrivateUserPropPlanType", + "PrivateUserType", +) 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 9dca5e77e..6be52538b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0474.py @@ -9,95 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0187 import CodespaceMachineType -from .group_0228 import FullRepositoryType +class CodespacesUserPublicKeyType(TypedDict): + """CodespacesUserPublicKey -class CodespaceWithFullRepositoryType(TypedDict): - """Codespace - - A codespace. + The public key used for setting user Codespaces' Secrets. """ - id: int - name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: FullRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] - created_at: datetime - updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespaceWithFullRepositoryPropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[ - CodespaceWithFullRepositoryPropRuntimeConstraintsType - ] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - - -class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): - """CodespaceWithFullRepositoryPropGitStatus - - Details about the codespace's git repository. - """ - - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] - - -class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" - - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] + key_id: str + key: str -__all__ = ( - "CodespaceWithFullRepositoryPropGitStatusType", - "CodespaceWithFullRepositoryPropRuntimeConstraintsType", - "CodespaceWithFullRepositoryType", -) +__all__ = ("CodespacesUserPublicKeyType",) 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 767832678..2b50d37d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0475.py @@ -9,20 +9,25 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class EmailType(TypedDict): - """Email +class CodespaceExportDetailsType(TypedDict): + """Fetches information about an export of a codespace. - Email + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - email: str - primary: bool - verified: bool - visibility: Union[str, None] + state: NotRequired[Union[str, None]] + completed_at: NotRequired[Union[datetime, None]] + branch: NotRequired[Union[str, None]] + sha: NotRequired[Union[str, None]] + id: NotRequired[str] + export_url: NotRequired[str] + html_url: NotRequired[Union[str, None]] -__all__ = ("EmailType",) +__all__ = ("CodespaceExportDetailsType",) 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 324df51fb..2ab71590d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0476.py @@ -10,69 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0189 import CodespaceMachineType +from .group_0230 import FullRepositoryType -class GpgKeyType(TypedDict): - """GPG Key - A unique encryption key +class CodespaceWithFullRepositoryType(TypedDict): + """Codespace + + A codespace. """ 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: 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 - 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""" + 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. + """ - 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] + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] -class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): - """GpgKeyPropSubkeysItemsPropEmailsItems""" +class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" - email: NotRequired[str] - verified: NotRequired[bool] + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] __all__ = ( - "GpgKeyPropEmailsItemsType", - "GpgKeyPropSubkeysItemsPropEmailsItemsType", - "GpgKeyPropSubkeysItemsType", - "GpgKeyType", + "CodespaceWithFullRepositoryPropGitStatusType", + "CodespaceWithFullRepositoryPropRuntimeConstraintsType", + "CodespaceWithFullRepositoryType", ) 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 6c95fc7a9..767832678 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0477.py @@ -9,23 +9,20 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class KeyType(TypedDict): - """Key +class EmailType(TypedDict): + """Email - Key + Email """ - key: str - id: int - url: str - title: str - created_at: datetime + email: str + primary: bool verified: bool - read_only: bool + visibility: Union[str, None] -__all__ = ("KeyType",) +__all__ = ("EmailType",) 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 d450a620b..324df51fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0478.py @@ -10,41 +10,69 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Any, Union from typing_extensions import NotRequired, TypedDict -from .group_0171 import MarketplaceListingPlanType +class GpgKeyType(TypedDict): + """GPG Key -class UserMarketplacePurchaseType(TypedDict): - """User Marketplace Purchase - - User Marketplace Purchase + A unique encryption key """ - 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 + 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 MarketplaceAccountType(TypedDict): - """Marketplace Account""" +class GpgKeyPropEmailsItemsType(TypedDict): + """GpgKeyPropEmailsItems""" - url: str - id: int - type: str - node_id: NotRequired[str] - login: str - email: NotRequired[Union[str, None]] - organization_billing_email: NotRequired[Union[str, None]] + 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__ = ( - "MarketplaceAccountType", - "UserMarketplacePurchaseType", + "GpgKeyPropEmailsItemsType", + "GpgKeyPropSubkeysItemsPropEmailsItemsType", + "GpgKeyPropSubkeysItemsType", + "GpgKeyType", ) 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 f892fc0d3..3b5ea56a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0479.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 KeyType(TypedDict): + """Key - Social media account + Key """ - provider: str + key: str + id: int url: str + title: str + created_at: datetime + verified: bool + read_only: bool + last_used: NotRequired[Union[datetime, None]] -__all__ = ("SocialAccountType",) +__all__ = ("KeyType",) 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 a3c3f348b..6bb8b6f14 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0480.py @@ -10,19 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0173 import MarketplaceListingPlanType -class SshSigningKeyType(TypedDict): - """SSH Signing Key - A public SSH key used to sign Git commits +class UserMarketplacePurchaseType(TypedDict): + """User Marketplace Purchase + + User Marketplace Purchase """ - key: str + 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 - title: str - created_at: datetime + type: str + node_id: NotRequired[str] + login: str + email: NotRequired[Union[str, None]] + organization_billing_email: NotRequired[Union[str, None]] -__all__ = ("SshSigningKeyType",) +__all__ = ( + "MarketplaceAccountType", + "UserMarketplacePurchaseType", +) 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 de982a527..f892fc0d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0481.py @@ -9,20 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -from .group_0020 import RepositoryType +class SocialAccountType(TypedDict): + """Social account -class StarredRepositoryType(TypedDict): - """Starred Repository - - Starred Repository + Social media account """ - starred_at: datetime - repo: RepositoryType + provider: str + url: str -__all__ = ("StarredRepositoryType",) +__all__ = ("SocialAccountType",) 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 d66bf379e..a3c3f348b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0482.py @@ -9,26 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class HovercardType(TypedDict): - """Hovercard +class SshSigningKeyType(TypedDict): + """SSH Signing Key - Hovercard + A public SSH key used to sign Git commits """ - contexts: list[HovercardPropContextsItemsType] + key: str + id: int + title: str + created_at: datetime -class HovercardPropContextsItemsType(TypedDict): - """HovercardPropContextsItems""" - - message: str - octicon: str - - -__all__ = ( - "HovercardPropContextsItemsType", - "HovercardType", -) +__all__ = ("SshSigningKeyType",) 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 e5a58b96a..de982a527 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0483.py @@ -10,18 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class KeySimpleType(TypedDict): - """Key Simple - Key Simple +class StarredRepositoryType(TypedDict): + """Starred Repository + + Starred Repository """ - id: int - key: str - created_at: NotRequired[datetime] + starred_at: datetime + repo: RepositoryType -__all__ = ("KeySimpleType",) +__all__ = ("StarredRepositoryType",) 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 4f0fc4229..d66bf379e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0484.py @@ -9,31 +9,26 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class BillingUsageReportUserType(TypedDict): - """BillingUsageReportUser""" +class HovercardType(TypedDict): + """Hovercard - usage_items: NotRequired[list[BillingUsageReportUserPropUsageItemsItemsType]] + Hovercard + """ + contexts: list[HovercardPropContextsItemsType] -class BillingUsageReportUserPropUsageItemsItemsType(TypedDict): - """BillingUsageReportUserPropUsageItemsItems""" - date: str - product: str - sku: str - quantity: int - unit_type: str - price_per_unit: float - gross_amount: float - discount_amount: float - net_amount: float - repository_name: NotRequired[str] +class HovercardPropContextsItemsType(TypedDict): + """HovercardPropContextsItems""" + + message: str + octicon: str __all__ = ( - "BillingUsageReportUserPropUsageItemsItemsType", - "BillingUsageReportUserType", + "HovercardPropContextsItemsType", + "HovercardType", ) 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 c148eac40..e0295b625 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0485.py @@ -14,27 +14,16 @@ from typing_extensions import NotRequired, TypedDict -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/enterprise- - cloud@latest//admin/overview/about-enterprise-accounts)." +class KeySimpleType(TypedDict): + """Key Simple + + Key Simple """ - 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 + key: str + created_at: NotRequired[datetime] + last_used: NotRequired[Union[datetime, None]] -__all__ = ("EnterpriseWebhooksType",) +__all__ = ("KeySimpleType",) 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 6a6fdd608..4f0fc4229 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0486.py @@ -9,22 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class SimpleInstallationType(TypedDict): - """Simple Installation +class BillingUsageReportUserType(TypedDict): + """BillingUsageReportUser""" - 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)." - """ + usage_items: NotRequired[list[BillingUsageReportUserPropUsageItemsItemsType]] - id: int - node_id: str +class BillingUsageReportUserPropUsageItemsItemsType(TypedDict): + """BillingUsageReportUserPropUsageItemsItems""" -__all__ = ("SimpleInstallationType",) + date: str + product: str + sku: str + quantity: int + unit_type: str + price_per_unit: float + gross_amount: float + discount_amount: float + net_amount: float + repository_name: NotRequired[str] + + +__all__ = ( + "BillingUsageReportUserPropUsageItemsItemsType", + "BillingUsageReportUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0487.py b/githubkit/versions/ghec_v2022_11_28/types/group_0487.py index b52264ecb..c148eac40 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0487.py @@ -9,31 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrganizationSimpleWebhooksType(TypedDict): - """Organization Simple +class EnterpriseWebhooksType(TypedDict): + """Enterprise - 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. + 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)." """ - login: str + description: NotRequired[Union[str, None]] + html_url: str + website_url: NotRequired[Union[str, None]] 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 + name: str + slug: str + created_at: Union[datetime, None] + updated_at: Union[datetime, None] avatar_url: str - description: Union[str, None] -__all__ = ("OrganizationSimpleWebhooksType",) +__all__ = ("EnterpriseWebhooksType",) 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 5ba060a68..6a6fdd608 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0488.py @@ -9,281 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType +class SimpleInstallationType(TypedDict): + """Simple Installation -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. + 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 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] -__all__ = ( - "RepositoryWebhooksPropCustomPropertiesType", - "RepositoryWebhooksPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", - "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryType", - "RepositoryWebhooksType", -) +__all__ = ("SimpleInstallationType",) 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 40a2b0a13..b52264ecb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0489.py @@ -9,52 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class WebhooksRuleType(TypedDict): - """branch protection rule +class OrganizationSimpleWebhooksType(TypedDict): + """Organization Simple - 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. + 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. """ - 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 + login: str 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",) + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + + +__all__ = ("OrganizationSimpleWebhooksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0490.py b/githubkit/versions/ghec_v2022_11_28/types/group_0490.py index ff46b21c5..5ba060a68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0490.py @@ -10,22 +10,280 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class ExemptionResponseType(TypedDict): - """Exemption response - A response to an exemption request by a delegated bypasser. +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 + 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] - reviewer_id: NotRequired[int] - reviewer_login: NotRequired[str] - status: NotRequired[Literal["approved", "rejected", "dismissed"]] - reviewer_comment: NotRequired[Union[str, None]] - created_at: NotRequired[datetime] + 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__ = ("ExemptionResponseType",) +__all__ = ( + "RepositoryWebhooksPropCustomPropertiesType", + "RepositoryWebhooksPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", + "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryType", + "RepositoryWebhooksType", +) 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 6f77e1fee..40a2b0a13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0491.py @@ -10,178 +10,51 @@ 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_0490 import ExemptionResponseType - -class ExemptionRequestType(TypedDict): - """Exemption Request - - A request from a user to be exempted from a set of rules. - """ - - id: NotRequired[int] - number: NotRequired[Union[int, None]] - repository_id: NotRequired[int] - requester_id: NotRequired[int] - requester_login: NotRequired[str] - request_type: NotRequired[ - Literal[ - "push_ruleset_bypass", - "secret_scanning", - "secret_scanning_closure", - "code_scanning_alert_dismissal", - ] +class WebhooksRuleType(TypedDict): + """branch protection rule + + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/enterprise-cloud@latest//github/administering- + a-repository/defining-the-mergeability-of-pull-requests/about-protected- + branches#about-branch-protection-settings) applied to branches that match the + name. Binary settings are boolean. Multi-level configurations are one of `off`, + `non_admins`, or `everyone`. Actor and build lists are arrays of strings. + """ + + admin_enforced: bool + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] + authorized_actor_names: list[str] + authorized_actors_only: bool + authorized_dismissal_actors_only: bool + create_protected: NotRequired[bool] + created_at: datetime + dismiss_stale_reviews_on_push: bool + id: int + ignore_approvals_from_contributors: bool + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" ] - exemption_request_data: NotRequired[ - Union[ - ExemptionRequestPushRulesetBypassType, - ExemptionRequestSecretScanningType, - DismissalRequestSecretScanningType, - DismissalRequestCodeScanningType, - ] - ] - resource_identifier: NotRequired[str] - status: NotRequired[Literal["pending", "rejected", "cancelled", "completed"]] - requester_comment: NotRequired[Union[str, None]] - metadata: NotRequired[ - Union[ - ExemptionRequestSecretScanningMetadataType, - DismissalRequestSecretScanningMetadataType, - DismissalRequestCodeScanningMetadataType, - None, - ] - ] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[list[ExemptionResponseType], None]] - html_url: NotRequired[str] - - -class ExemptionRequestSecretScanningMetadataType(TypedDict): - """Secret Scanning Push Protection Exemption Request Metadata - - Metadata for a secret scanning push protection exemption request. - """ - - label: NotRequired[str] - reason: NotRequired[Literal["fixed_later", "false_positive", "tests"]] - - -class DismissalRequestSecretScanningMetadataType(TypedDict): - """Secret scanning alert dismissal request metadata - - Metadata for a secret scanning alert dismissal request. - """ - - alert_title: NotRequired[str] - reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] - - -class DismissalRequestCodeScanningMetadataType(TypedDict): - """Code scanning alert dismissal request metadata - - Metadata for a code scanning alert dismissal request. - """ - - alert_title: NotRequired[str] - reason: NotRequired[Literal["false positive", "won't fix", "used in tests"]] - - -class ExemptionRequestPushRulesetBypassType(TypedDict): - """Push ruleset bypass exemption request data - - Push rules that are being requested to be bypassed. - """ - - type: NotRequired[Literal["push_ruleset_bypass"]] - data: NotRequired[list[ExemptionRequestPushRulesetBypassPropDataItemsType]] - - -class ExemptionRequestPushRulesetBypassPropDataItemsType(TypedDict): - """ExemptionRequestPushRulesetBypassPropDataItems""" - - ruleset_id: NotRequired[int] - ruleset_name: NotRequired[str] - total_violations: NotRequired[int] - rule_type: NotRequired[str] - - -class DismissalRequestSecretScanningType(TypedDict): - """Secret scanning alert dismissal request data - - Secret scanning alerts that have dismissal requests. - """ - - type: NotRequired[Literal["secret_scanning_closure"]] - data: NotRequired[list[DismissalRequestSecretScanningPropDataItemsType]] - - -class DismissalRequestSecretScanningPropDataItemsType(TypedDict): - """DismissalRequestSecretScanningPropDataItems""" - - reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] - secret_type: NotRequired[str] - alert_number: NotRequired[str] - - -class DismissalRequestCodeScanningType(TypedDict): - """Code scanning alert dismissal request data - - Code scanning alerts that have dismissal requests. - """ - - type: NotRequired[Literal["code_scanning_alert_dismissal"]] - data: NotRequired[list[DismissalRequestCodeScanningPropDataItemsType]] - - -class DismissalRequestCodeScanningPropDataItemsType(TypedDict): - """DismissalRequestCodeScanningPropDataItems""" - - alert_number: NotRequired[str] - - -class ExemptionRequestSecretScanningType(TypedDict): - """Secret scanning push protection exemption request data - - Secret scanning push protections that are being requested to be bypassed. - """ - - type: NotRequired[Literal["secret_scanning"]] - data: NotRequired[list[ExemptionRequestSecretScanningPropDataItemsType]] - - -class ExemptionRequestSecretScanningPropDataItemsType(TypedDict): - """ExemptionRequestSecretScanningPropDataItems""" - - secret_type: NotRequired[str] - locations: NotRequired[ - list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType] - ] - - -class ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType(TypedDict): - """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" - - commit: NotRequired[str] - branch: NotRequired[str] - path: NotRequired[str] - - -__all__ = ( - "DismissalRequestCodeScanningMetadataType", - "DismissalRequestCodeScanningPropDataItemsType", - "DismissalRequestCodeScanningType", - "DismissalRequestSecretScanningMetadataType", - "DismissalRequestSecretScanningPropDataItemsType", - "DismissalRequestSecretScanningType", - "ExemptionRequestPushRulesetBypassPropDataItemsType", - "ExemptionRequestPushRulesetBypassType", - "ExemptionRequestSecretScanningMetadataType", - "ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType", - "ExemptionRequestSecretScanningPropDataItemsType", - "ExemptionRequestSecretScanningType", - "ExemptionRequestType", -) + 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_0492.py b/githubkit/versions/ghec_v2022_11_28/types/group_0492.py index 064996e49..ff46b21c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0492.py @@ -13,48 +13,19 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType -from .group_0176 import MinimalRepositoryType -from .group_0255 import PullRequestMinimalType +class ExemptionResponseType(TypedDict): + """Exemption response -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + A response to an exemption request by a delegated bypasser. """ - 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] + 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__ = ("SimpleCheckSuiteType",) +__all__ = ("ExemptionResponseType",) 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 cf1c85679..715c08d3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0493.py @@ -13,63 +13,175 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType -from .group_0255 import PullRequestMinimalType -from .group_0282 import DeploymentSimpleType -from .group_0492 import SimpleCheckSuiteType +from .group_0492 import ExemptionResponseType -class CheckRunWithSimpleCheckSuiteType(TypedDict): - """CheckRun +class ExemptionRequestType(TypedDict): + """Exemption Request - A check performed on the code of a given code change + A request from a user to be exempted from a set of rules. """ - app: Union[IntegrationType, None] - check_suite: SimpleCheckSuiteType - completed_at: Union[datetime, None] - conclusion: Union[ - None, + id: NotRequired[int] + number: NotRequired[Union[int, None]] + repository_id: NotRequired[int] + requester_id: NotRequired[int] + requester_login: NotRequired[str] + request_type: NotRequired[ Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], + "push_ruleset_bypass", + "secret_scanning", + "secret_scanning_closure", + "code_scanning_alert_dismissal", + ] ] - 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] + exemption_request_data: NotRequired[ + Union[ + ExemptionRequestPushRulesetBypassType, + ExemptionRequestSecretScanningType, + DismissalRequestSecretScanningType, + DismissalRequestCodeScanningType, + ] + ] + resource_identifier: NotRequired[str] + status: NotRequired[Literal["pending", "rejected", "cancelled", "completed"]] + requester_comment: NotRequired[Union[str, None]] + metadata: NotRequired[ + Union[ + ExemptionRequestSecretScanningMetadataType, + DismissalRequestSecretScanningMetadataType, + DismissalRequestCodeScanningMetadataType, + None, + ] + ] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[list[ExemptionResponseType], None]] + html_url: NotRequired[str] + + +class ExemptionRequestSecretScanningMetadataType(TypedDict): + """Secret Scanning Push Protection Exemption Request Metadata + + Metadata for a secret scanning push protection exemption request. + """ + + label: NotRequired[str] + reason: NotRequired[Literal["fixed_later", "false_positive", "tests"]] + + +class DismissalRequestSecretScanningMetadataType(TypedDict): + """Secret scanning alert dismissal request metadata + + Metadata for a secret scanning alert dismissal request. + """ + + alert_title: NotRequired[str] + reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] + + +class DismissalRequestCodeScanningMetadataType(TypedDict): + """Code scanning alert dismissal request metadata + + Metadata for a code scanning alert dismissal request. + """ + + alert_title: NotRequired[str] + reason: NotRequired[Literal["false positive", "won't fix", "used in tests"]] + + +class ExemptionRequestPushRulesetBypassType(TypedDict): + """Push ruleset bypass exemption request data + + Push rules that are being requested to be bypassed. + """ + + type: NotRequired[Literal["push_ruleset_bypass"]] + data: NotRequired[list[ExemptionRequestPushRulesetBypassPropDataItemsType]] + + +class ExemptionRequestPushRulesetBypassPropDataItemsType(TypedDict): + """ExemptionRequestPushRulesetBypassPropDataItems""" + + ruleset_id: NotRequired[int] + ruleset_name: NotRequired[str] + total_violations: NotRequired[int] + rule_type: NotRequired[str] + + +class DismissalRequestSecretScanningType(TypedDict): + """Secret scanning alert dismissal request data + + Secret scanning alerts that have dismissal requests. + """ + + type: NotRequired[Literal["secret_scanning_closure"]] + data: NotRequired[list[DismissalRequestSecretScanningPropDataItemsType]] + + +class DismissalRequestSecretScanningPropDataItemsType(TypedDict): + """DismissalRequestSecretScanningPropDataItems""" + + reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] + secret_type: NotRequired[str] + alert_number: NotRequired[str] + + +class DismissalRequestCodeScanningType(TypedDict): + """Code scanning alert dismissal request data + + Code scanning alerts that have dismissal requests. + """ + + type: NotRequired[Literal["code_scanning_alert_dismissal"]] + data: NotRequired[list[DismissalRequestCodeScanningPropDataItemsType]] + + +class DismissalRequestCodeScanningPropDataItemsType(TypedDict): + """DismissalRequestCodeScanningPropDataItems""" + + alert_number: NotRequired[str] + + +class ExemptionRequestSecretScanningType(TypedDict): + """Secret scanning push protection exemption request data + + Secret scanning push protections that are being requested to be bypassed. + """ + + type: NotRequired[Literal["secret_scanning"]] + data: NotRequired[list[ExemptionRequestSecretScanningPropDataItemsType]] + + +class ExemptionRequestSecretScanningPropDataItemsType(TypedDict): + """ExemptionRequestSecretScanningPropDataItems""" + + secret_type: NotRequired[str] + locations: NotRequired[ + list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType] + ] + + +class ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType(TypedDict): + """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" + + commit: NotRequired[str] + branch: NotRequired[str] + path: NotRequired[str] __all__ = ( - "CheckRunWithSimpleCheckSuitePropOutputType", - "CheckRunWithSimpleCheckSuiteType", + "DismissalRequestCodeScanningMetadataType", + "DismissalRequestCodeScanningPropDataItemsType", + "DismissalRequestCodeScanningType", + "DismissalRequestSecretScanningMetadataType", + "DismissalRequestSecretScanningPropDataItemsType", + "DismissalRequestSecretScanningType", + "ExemptionRequestPushRulesetBypassPropDataItemsType", + "ExemptionRequestPushRulesetBypassType", + "ExemptionRequestSecretScanningMetadataType", + "ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType", + "ExemptionRequestSecretScanningPropDataItemsType", + "ExemptionRequestSecretScanningType", + "ExemptionRequestType", ) 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 a55d555bc..c7fe7893d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0494.py @@ -9,27 +9,52 @@ 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_0010 import IntegrationType +from .group_0178 import MinimalRepositoryType +from .group_0257 import PullRequestMinimalType -class WebhooksDeployKeyType(TypedDict): - """WebhooksDeployKey - 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 - id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str - url: str - verified: bool - enabled: NotRequired[bool] +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite + A suite of checks performed on the code of a given code change + """ -__all__ = ("WebhooksDeployKeyType",) + after: NotRequired[Union[str, None]] + app: NotRequired[Union[IntegrationType, None]] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + pull_requests: NotRequired[list[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] + url: NotRequired[str] + + +__all__ = ("SimpleCheckSuiteType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0495.py b/githubkit/versions/ghec_v2022_11_28/types/group_0495.py index 34eb3310b..48b8aeacc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0495.py @@ -10,22 +10,66 @@ 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_0010 import IntegrationType +from .group_0257 import PullRequestMinimalType +from .group_0284 import DeploymentSimpleType +from .group_0494 import SimpleCheckSuiteType -class WebhooksWorkflowType(TypedDict): - """Workflow""" - badge_url: str - created_at: datetime +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[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 - path: str - state: str - updated_at: datetime + output: CheckRunWithSimpleCheckSuitePropOutputType + pull_requests: list[PullRequestMinimalType] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "pending"] url: str -__all__ = ("WebhooksWorkflowType",) +class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int + annotations_url: str + summary: Union[str, None] + text: Union[str, None] + title: Union[str, None] + + +__all__ = ( + "CheckRunWithSimpleCheckSuitePropOutputType", + "CheckRunWithSimpleCheckSuiteType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0496.py b/githubkit/versions/ghec_v2022_11_28/types/group_0496.py index c93e49162..a55d555bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0496.py @@ -9,69 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksApproverType(TypedDict): - """WebhooksApprover""" +class WebhooksDeployKeyType(TypedDict): + """WebhooksDeployKey - 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] + The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ - -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] + added_by: NotRequired[Union[str, None]] + created_at: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str + url: str + verified: bool + enabled: NotRequired[bool] -__all__ = ( - "WebhooksApproverType", - "WebhooksReviewersItemsPropReviewerType", - "WebhooksReviewersItemsType", -) +__all__ = ("WebhooksDeployKeyType",) 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 167cc5522..34eb3310b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0497.py @@ -9,20 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class WebhooksWorkflowJobRunType(TypedDict): - """WebhooksWorkflowJobRun""" +class WebhooksWorkflowType(TypedDict): + """Workflow""" - conclusion: None - created_at: str - environment: str + badge_url: str + created_at: datetime html_url: str id: int - name: None - status: str - updated_at: str + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str -__all__ = ("WebhooksWorkflowJobRunType",) +__all__ = ("WebhooksWorkflowType",) 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 da4062d95..c93e49162 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0498.py @@ -13,7 +13,38 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksUserType(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] @@ -37,7 +68,10 @@ class WebhooksUserType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -__all__ = ("WebhooksUserType",) +__all__ = ( + "WebhooksApproverType", + "WebhooksReviewersItemsPropReviewerType", + "WebhooksReviewersItemsType", +) 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 32906747e..167cc5522 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0499.py @@ -9,82 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksAnswerType(TypedDict): - """WebhooksAnswer""" +class WebhooksWorkflowJobRunType(TypedDict): + """WebhooksWorkflowJobRun""" - 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 + conclusion: None + created_at: str + environment: str html_url: str id: int - node_id: str - parent_id: None - reactions: NotRequired[WebhooksAnswerPropReactionsType] - repository_url: str - updated_at: datetime - user: Union[WebhooksAnswerPropUserType, None] + name: None + status: str + updated_at: str -class WebhooksAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksAnswerPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksAnswerPropReactionsType", - "WebhooksAnswerPropUserType", - "WebhooksAnswerType", -) +__all__ = ("WebhooksWorkflowJobRunType",) 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 48f1a497e..da4062d95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0500.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0500.py @@ -9,125 +9,11 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class DiscussionType(TypedDict): - """Discussion - - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] - answer_html_url: Union[str, None] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - category: DiscussionPropCategoryType - comments: int - 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 LabelType(TypedDict): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ - - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool - - -class DiscussionPropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class DiscussionPropCategoryType(TypedDict): - """DiscussionPropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str - - -class DiscussionPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class DiscussionPropUserType(TypedDict): +class WebhooksUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -154,11 +40,4 @@ class DiscussionPropUserType(TypedDict): user_view_type: NotRequired[str] -__all__ = ( - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", - "DiscussionType", - "LabelType", -) +__all__ = ("WebhooksUserType",) 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 4c279958b..32906747e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0501.py @@ -9,12 +9,13 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksCommentType(TypedDict): - """WebhooksComment""" +class WebhooksAnswerType(TypedDict): + """WebhooksAnswer""" author_association: Literal[ "COLLABORATOR", @@ -28,19 +29,19 @@ class WebhooksCommentType(TypedDict): ] body: str child_comment_count: int - created_at: str + created_at: datetime discussion_id: int html_url: str id: int node_id: str - parent_id: Union[int, None] - reactions: WebhooksCommentPropReactionsType + parent_id: None + reactions: NotRequired[WebhooksAnswerPropReactionsType] repository_url: str - updated_at: str - user: Union[WebhooksCommentPropUserType, None] + updated_at: datetime + user: Union[WebhooksAnswerPropUserType, None] -class WebhooksCommentPropReactionsType(TypedDict): +class WebhooksAnswerPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -55,7 +56,7 @@ class WebhooksCommentPropReactionsType(TypedDict): url: str -class WebhooksCommentPropUserType(TypedDict): +class WebhooksAnswerPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -83,7 +84,7 @@ class WebhooksCommentPropUserType(TypedDict): __all__ = ( - "WebhooksCommentPropReactionsType", - "WebhooksCommentPropUserType", - "WebhooksCommentType", + "WebhooksAnswerPropReactionsType", + "WebhooksAnswerPropUserType", + "WebhooksAnswerType", ) 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 469b744f3..48f1a497e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0502.py @@ -9,20 +9,156 @@ 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 -class WebhooksLabelType(TypedDict): - """Label""" +class DiscussionType(TypedDict): + """Discussion + A Discussion in a repository. + """ + + active_lock_reason: Union[str, None] + answer_chosen_at: Union[str, None] + answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] + answer_html_url: Union[str, None] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + category: DiscussionPropCategoryType + comments: int + 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 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 - description: Union[str, None] + + +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: 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 -__all__ = ("WebhooksLabelType",) +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", +) 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 60f7cc9c6..4c279958b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0503.py @@ -9,17 +9,81 @@ 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 WebhooksCommentType(TypedDict): + """WebhooksComment""" - full_name: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: str + discussion_id: int + html_url: str id: int - name: str node_id: str - private: bool + parent_id: Union[int, None] + reactions: WebhooksCommentPropReactionsType + repository_url: str + updated_at: str + user: Union[WebhooksCommentPropUserType, None] -__all__ = ("WebhooksRepositoriesItemsType",) +class WebhooksCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: 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", +) 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 afa5d37c4..469b744f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0504.py @@ -9,17 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class WebhooksRepositoriesAddedItemsType(TypedDict): - """WebhooksRepositoriesAddedItems""" +class WebhooksLabelType(TypedDict): + """Label""" - full_name: str + color: str + default: bool + description: Union[str, None] id: int name: str node_id: str - private: bool + url: str -__all__ = ("WebhooksRepositoriesAddedItemsType",) +__all__ = ("WebhooksLabelType",) 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 6393790aa..60f7cc9c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0505.py @@ -9,87 +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_0010 import IntegrationType +class WebhooksRepositoriesItemsType(TypedDict): + """WebhooksRepositoriesItems""" -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 + full_name: str id: int - issue_url: str + name: str node_id: str - performed_via_github_app: Union[IntegrationType, None] - reactions: WebhooksIssueCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhooksIssueCommentPropUserType, None] - - -class WebhooksIssueCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssueCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + private: bool -__all__ = ( - "WebhooksIssueCommentPropReactionsType", - "WebhooksIssueCommentPropUserType", - "WebhooksIssueCommentType", -) +__all__ = ("WebhooksRepositoriesItemsType",) 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 dea7603b6..afa5d37c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0506.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksChangesType(TypedDict): - """WebhooksChanges +class WebhooksRepositoriesAddedItemsType(TypedDict): + """WebhooksRepositoriesAddedItems""" - The changes to the comment. - """ + full_name: str + id: int + name: str + node_id: str + private: bool - body: NotRequired[WebhooksChangesPropBodyType] - -class WebhooksChangesPropBodyType(TypedDict): - """WebhooksChangesPropBody""" - - from_: str - - -__all__ = ( - "WebhooksChangesPropBodyType", - "WebhooksChangesType", -) +__all__ = ("WebhooksRepositoriesAddedItemsType",) 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 1a62d38dd..6393790aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0507.py @@ -13,21 +13,16 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0010 import IntegrationType -class WebhooksIssueType(TypedDict): - """Issue +class WebhooksIssueCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) 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", @@ -38,259 +33,20 @@ 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 - html_url: str - id: int - labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssuePropPullRequestType] - reactions: WebhooksIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhooksIssuePropUserType, None] - - -class WebhooksIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int + body: str created_at: datetime - creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] html_url: str id: int - labels_url: str + issue_url: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str + performed_via_github_app: Union[IntegrationType, None] + reactions: WebhooksIssueCommentPropReactionsType updated_at: datetime url: str + user: Union[WebhooksIssueCommentPropUserType, 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 WebhooksIssueCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -305,15 +61,7 @@ class WebhooksIssuePropReactionsType(TypedDict): url: str -class WebhooksIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssuePropUserType(TypedDict): +class WebhooksIssueCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -341,17 +89,7 @@ class WebhooksIssuePropUserType(TypedDict): __all__ = ( - "WebhooksIssuePropAssigneeType", - "WebhooksIssuePropAssigneesItemsType", - "WebhooksIssuePropLabelsItemsType", - "WebhooksIssuePropMilestonePropCreatorType", - "WebhooksIssuePropMilestoneType", - "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", - "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssuePropPerformedViaGithubAppType", - "WebhooksIssuePropPullRequestType", - "WebhooksIssuePropReactionsType", - "WebhooksIssuePropSubIssuesSummaryType", - "WebhooksIssuePropUserType", - "WebhooksIssueType", + "WebhooksIssueCommentPropReactionsType", + "WebhooksIssueCommentPropUserType", + "WebhooksIssueCommentType", ) 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 78c0b9fb1..dea7603b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0508.py @@ -9,63 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksMilestoneType(TypedDict): - """Milestone +class WebhooksChangesType(TypedDict): + """WebhooksChanges - A collection of related issues and pull requests. + The changes to the comment. """ - 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 + body: NotRequired[WebhooksChangesPropBodyType] -class WebhooksMilestonePropCreatorType(TypedDict): - """User""" +class WebhooksChangesPropBodyType(TypedDict): + """WebhooksChangesPropBody""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: str __all__ = ( - "WebhooksMilestonePropCreatorType", - "WebhooksMilestoneType", + "WebhooksChangesPropBodyType", + "WebhooksChangesType", ) 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 f493b6516..bceed9b61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0509.py @@ -13,10 +13,11 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhooksIssue2Type(TypedDict): +class WebhooksIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -26,8 +27,8 @@ class WebhooksIssue2Type(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] - assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] + assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -47,19 +48,19 @@ class WebhooksIssue2Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] + labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhooksIssue2PropMilestoneType, None] + milestone: Union[WebhooksIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhooksIssue2PropPerformedViaGithubAppType, None] + Union[WebhooksIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhooksIssue2PropPullRequestType] - reactions: WebhooksIssue2PropReactionsType + pull_request: NotRequired[WebhooksIssuePropPullRequestType] + reactions: WebhooksIssuePropReactionsType repository_url: str - sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] + sub_issues_summary: NotRequired[SubIssuesSummaryType] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] @@ -67,10 +68,10 @@ class WebhooksIssue2Type(TypedDict): type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: Union[WebhooksIssue2PropUserType, None] + user: Union[WebhooksIssuePropUserType, None] -class WebhooksIssue2PropAssigneeType(TypedDict): +class WebhooksIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -92,12 +93,12 @@ class WebhooksIssue2PropAssigneeType(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 WebhooksIssue2PropAssigneesItemsType(TypedDict): +class WebhooksIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -119,12 +120,12 @@ class WebhooksIssue2PropAssigneesItemsType(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 WebhooksIssue2PropLabelsItemsType(TypedDict): +class WebhooksIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -136,7 +137,7 @@ class WebhooksIssue2PropLabelsItemsType(TypedDict): url: str -class WebhooksIssue2PropMilestoneType(TypedDict): +class WebhooksIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -145,7 +146,7 @@ class WebhooksIssue2PropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] + creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -160,7 +161,7 @@ class WebhooksIssue2PropMilestoneType(TypedDict): url: str -class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): +class WebhooksIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -182,12 +183,12 @@ class WebhooksIssue2PropMilestonePropCreatorType(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 WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): +class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -204,13 +205,13 @@ class actors within GitHub. id: Union[int, None] name: str node_id: str - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -237,8 +238,8 @@ class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions +class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -260,7 +261,7 @@ class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): 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"]] @@ -280,8 +281,8 @@ class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): workflows: NotRequired[Literal["read", "write"]] -class WebhooksIssue2PropPullRequestType(TypedDict): - """WebhooksIssue2PropPullRequest""" +class WebhooksIssuePropPullRequestType(TypedDict): + """WebhooksIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -290,7 +291,7 @@ class WebhooksIssue2PropPullRequestType(TypedDict): url: NotRequired[str] -class WebhooksIssue2PropReactionsType(TypedDict): +class WebhooksIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -305,15 +306,7 @@ class WebhooksIssue2PropReactionsType(TypedDict): url: str -class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssue2PropUserType(TypedDict): +class WebhooksIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -335,23 +328,22 @@ class WebhooksIssue2PropUserType(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__ = ( - "WebhooksIssue2PropAssigneeType", - "WebhooksIssue2PropAssigneesItemsType", - "WebhooksIssue2PropLabelsItemsType", - "WebhooksIssue2PropMilestonePropCreatorType", - "WebhooksIssue2PropMilestoneType", - "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssue2PropPerformedViaGithubAppType", - "WebhooksIssue2PropPullRequestType", - "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropSubIssuesSummaryType", - "WebhooksIssue2PropUserType", - "WebhooksIssue2Type", + "WebhooksIssuePropAssigneeType", + "WebhooksIssuePropAssigneesItemsType", + "WebhooksIssuePropLabelsItemsType", + "WebhooksIssuePropMilestonePropCreatorType", + "WebhooksIssuePropMilestoneType", + "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", + "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssuePropPerformedViaGithubAppType", + "WebhooksIssuePropPullRequestType", + "WebhooksIssuePropReactionsType", + "WebhooksIssuePropUserType", + "WebhooksIssueType", ) 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 12263b7bb..78c0b9fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0510.py @@ -9,11 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksUserMannequinType(TypedDict): +class WebhooksMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + 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] @@ -40,4 +65,7 @@ class WebhooksUserMannequinType(TypedDict): user_view_type: NotRequired[str] -__all__ = ("WebhooksUserMannequinType",) +__all__ = ( + "WebhooksMilestonePropCreatorType", + "WebhooksMilestoneType", +) 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 442613e28..bc133546e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0511.py @@ -9,48 +9,341 @@ 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_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -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 WebhooksIssue2Type(TypedDict): + """Issue + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ -class WebhooksMarketplacePurchasePropAccountType(TypedDict): - """WebhooksMarketplacePurchasePropAccount""" + 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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhooksIssue2PropUserType, None] + + +class WebhooksIssue2PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str node_id: str - organization_billing_email: Union[str, None] - type: str + url: str + +class WebhooksIssue2PropMilestoneType(TypedDict): + """Milestone -class WebhooksMarketplacePurchasePropPlanType(TypedDict): - """WebhooksMarketplacePurchasePropPlan""" + A collection of related issues and pull requests. + """ - bullets: list[Union[str, None]] - description: str - has_free_trial: bool + 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 - monthly_price_in_cents: 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 - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + 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 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__ = ( - "WebhooksMarketplacePurchasePropAccountType", - "WebhooksMarketplacePurchasePropPlanType", - "WebhooksMarketplacePurchaseType", + "WebhooksIssue2PropAssigneeType", + "WebhooksIssue2PropAssigneesItemsType", + "WebhooksIssue2PropLabelsItemsType", + "WebhooksIssue2PropMilestonePropCreatorType", + "WebhooksIssue2PropMilestoneType", + "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssue2PropPerformedViaGithubAppType", + "WebhooksIssue2PropPullRequestType", + "WebhooksIssue2PropReactionsType", + "WebhooksIssue2PropUserType", + "WebhooksIssue2Type", ) 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 38627d866..12263b7bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0512.py @@ -13,44 +13,31 @@ 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""" - +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 login: 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 - 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__ = ( - "WebhooksPreviousMarketplacePurchasePropAccountType", - "WebhooksPreviousMarketplacePurchasePropPlanType", - "WebhooksPreviousMarketplacePurchaseType", -) + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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_0513.py b/githubkit/versions/ghec_v2022_11_28/types/group_0513.py index 1b0b6886a..442613e28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0513.py @@ -10,51 +10,47 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksTeamType(TypedDict): - """Team +class WebhooksMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - Groups of organization members that gives permissions on specified repositories. - """ + 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""" - 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 + 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 - members_url: str + monthly_price_in_cents: int 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 + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhooksTeamPropParentType", - "WebhooksTeamType", + "WebhooksMarketplacePurchasePropAccountType", + "WebhooksMarketplacePurchasePropPlanType", + "WebhooksMarketplacePurchaseType", ) 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 a8ca4146c..38627d866 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0514.py @@ -9,22 +9,48 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0256 import SimpleCommitType +class WebhooksPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" -class MergeGroupType(TypedDict): - """Merge Group + 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 - A group of pull requests that the merge queue has grouped together to be merged. - """ - head_sha: str - head_ref: str - base_sha: str - base_ref: str - head_commit: SimpleCommitType +class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropAccount""" + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str -__all__ = ("MergeGroupType",) + +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 + + +__all__ = ( + "WebhooksPreviousMarketplacePurchasePropAccountType", + "WebhooksPreviousMarketplacePurchasePropPlanType", + "WebhooksPreviousMarketplacePurchaseType", +) 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 84341cab5..1b0b6886a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0515.py @@ -9,63 +9,52 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksMilestone3Type(TypedDict): - """Milestone +class WebhooksTeamType(TypedDict): + """Team - A collection of related issues and pull requests. + Groups of organization members that gives permissions on specified repositories. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestone3PropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksMilestone3PropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: 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__ = ( - "WebhooksMilestone3PropCreatorType", - "WebhooksMilestone3Type", + "WebhooksTeamPropParentType", + "WebhooksTeamType", ) 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 838f548fa..89e03505a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0516.py @@ -9,52 +9,22 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0258 import SimpleCommitType -class WebhooksMembershipType(TypedDict): - """Membership - The membership between the user and the organization. Not present when the - action is `member_invited`. +class MergeGroupType(TypedDict): + """Merge Group + + A group of pull requests that the merge queue has grouped together to be merged. """ - organization_url: str - role: str - state: str - url: str - user: Union[WebhooksMembershipPropUserType, None] - - -class WebhooksMembershipPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksMembershipPropUserType", - "WebhooksMembershipType", -) + 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_0517.py b/githubkit/versions/ghec_v2022_11_28/types/group_0517.py index 8767f4c9e..84341cab5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0517.py @@ -9,163 +9,63 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksMilestone3Type(TypedDict): + """Milestone -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request - - Details of a Personal Access Token Request. + 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 - 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 + labels_url: 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 -""" + number: int + 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__ = ( - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestType", + "WebhooksMilestone3PropCreatorType", + "WebhooksMilestone3Type", ) 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 15e68c071..03d84e2f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0518.py @@ -9,30 +9,27 @@ 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 WebhooksMembershipType(TypedDict): + """Membership - 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 + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str + role: str + direct_membership: NotRequired[bool] + enterprise_teams_providing_indirect_membership: NotRequired[list[str]] + state: str url: str + user: Union[WebhooksMembershipPropUserType, None] -class WebhooksProjectCardPropCreatorType(TypedDict): +class WebhooksMembershipPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -60,6 +57,6 @@ class WebhooksProjectCardPropCreatorType(TypedDict): __all__ = ( - "WebhooksProjectCardPropCreatorType", - "WebhooksProjectCardType", + "WebhooksMembershipPropUserType", + "WebhooksMembershipType", ) 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 f00c9358c..8767f4c9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0519.py @@ -9,57 +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_0003 import SimpleUserType -class WebhooksProjectType(TypedDict): - """Project""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhooksProjectPropCreatorType, None] - html_url: str +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request + + Details of a Personal Access Token Request. + """ + + 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 - 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] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: 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 + + +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__ = ( - "WebhooksProjectPropCreatorType", - "WebhooksProjectType", + "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_0520.py b/githubkit/versions/ghec_v2022_11_28/types/group_0520.py index 3c545b05d..15e68c071 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0520.py @@ -10,22 +10,56 @@ 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 WebhooksProjectCardType(TypedDict): + """Project Card""" after_id: NotRequired[Union[int, None]] - cards_url: str + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] created_at: datetime + creator: Union[WebhooksProjectCardPropCreatorType, None] id: int - name: str node_id: str + note: Union[str, None] project_url: str updated_at: datetime url: str -__all__ = ("WebhooksProjectColumnType",) +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__ = ( + "WebhooksProjectCardPropCreatorType", + "WebhooksProjectCardType", +) 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 61f9ee87b..f00c9358c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0521.py @@ -10,32 +10,56 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksProjectType(TypedDict): + """Project""" -class ProjectsV2Type(TypedDict): - """Projects v2 Project - - A projects v2 project - """ - - id: float - node_id: str - owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool - closed_at: Union[datetime, None] + body: Union[str, None] + columns_url: str created_at: datetime - updated_at: datetime + creator: Union[WebhooksProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] + 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] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: 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__ = ( + "WebhooksProjectPropCreatorType", + "WebhooksProjectType", +) 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 d31a72cb2..3c545b05d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0522.py @@ -14,20 +14,18 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksProjectChangesType(TypedDict): - """WebhooksProjectChanges""" +class WebhooksProjectColumnType(TypedDict): + """Project Column""" - archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] + 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 WebhooksProjectChangesPropArchivedAtType(TypedDict): - """WebhooksProjectChangesPropArchivedAt""" - - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] - - -__all__ = ( - "WebhooksProjectChangesPropArchivedAtType", - "WebhooksProjectChangesType", -) +__all__ = ("WebhooksProjectColumnType",) 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 11c42252b..61f9ee87b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0523.py @@ -10,27 +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 ProjectsV2ItemType(TypedDict): - """Projects v2 Item +class ProjectsV2Type(TypedDict): + """Projects v2 Project - An item belonging to a project + A projects v2 project """ id: float - node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] + 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 - archived_at: Union[datetime, None] + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] -__all__ = ("ProjectsV2ItemType",) +__all__ = ("ProjectsV2Type",) 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 07d3ae203..d31a72cb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0524.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0524.py @@ -9,31 +9,25 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksProjectChangesType(TypedDict): + """WebhooksProjectChanges""" -class ProjectsV2StatusUpdateType(TypedDict): - """Projects v2 Status Update + archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] - An status update belonging to a project - """ - id: float - 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"]] - ] - start_date: NotRequired[date] - target_date: NotRequired[date] - body: NotRequired[Union[str, None]] +class WebhooksProjectChangesPropArchivedAtType(TypedDict): + """WebhooksProjectChangesPropArchivedAt""" + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] -__all__ = ("ProjectsV2StatusUpdateType",) + +__all__ = ( + "WebhooksProjectChangesPropArchivedAtType", + "WebhooksProjectChangesType", +) 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 034beab61..11c42252b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0525.py @@ -14,84 +14,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0069 import TeamSimpleType -from .group_0157 import MilestoneType -from .group_0314 import AutoMergeType -from .group_0394 import PullRequestPropLabelsItemsType -from .group_0395 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0396 import PullRequestPropLinksType -class PullRequestWebhookType(TypedDict): - """PullRequestWebhook""" +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item - 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]] + An item belonging to a project + """ + + 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 - 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] + archived_at: Union[datetime, None] -__all__ = ("PullRequestWebhookType",) +__all__ = ("ProjectsV2ItemType",) 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 85163bcaa..07d3ae203 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0526.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0526.py @@ -9,23 +9,31 @@ from __future__ import annotations -from typing import Literal +from datetime import date, datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class PullRequestWebhookAllof1Type(TypedDict): - """PullRequestWebhookAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +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] + created_at: datetime + updated_at: datetime + status: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + start_date: NotRequired[date] + target_date: NotRequired[date] + body: NotRequired[Union[str, None]] -__all__ = ("PullRequestWebhookAllof1Type",) +__all__ = ("ProjectsV2StatusUpdateType",) 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 9c89f8ed7..90680444c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0527.py @@ -13,17 +13,51 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0070 import TeamSimpleType +from .group_0158 import MilestoneType +from .group_0316 import AutoMergeType +from .group_0396 import PullRequestPropLabelsItemsType +from .group_0397 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0398 import PullRequestPropLinksType -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]] +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" + + 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", @@ -34,845 +68,30 @@ class WebhooksPullRequest5Type(TypedDict): "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 + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] 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 - """ - + 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_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", -) +__all__ = ("PullRequestWebhookType",) 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 e0b112082..85163bcaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0528.py @@ -9,131 +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 WebhooksReviewCommentType(TypedDict): - """Pull Request Review Comment +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhooksReviewCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + 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"] ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhooksReviewCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhooksReviewCommentPropUserType, None] - - -class WebhooksReviewCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReviewCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewCommentPropLinksType(TypedDict): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtmlType - pull_request: WebhooksReviewCommentPropLinksPropPullRequestType - self_: WebhooksReviewCommentPropLinksPropSelfType - - -class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] -__all__ = ( - "WebhooksReviewCommentPropLinksPropHtmlType", - "WebhooksReviewCommentPropLinksPropPullRequestType", - "WebhooksReviewCommentPropLinksPropSelfType", - "WebhooksReviewCommentPropLinksType", - "WebhooksReviewCommentPropReactionsType", - "WebhooksReviewCommentPropUserType", - "WebhooksReviewCommentType", -) +__all__ = ("PullRequestWebhookAllof1Type",) 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 0d56edfb2..9c89f8ed7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0529.py @@ -14,13 +14,16 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksReviewType(TypedDict): - """WebhooksReview +class WebhooksPullRequest5Type(TypedDict): + """Pull Request""" - The review that was affected. - """ - - links: WebhooksReviewPropLinksType + 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", @@ -31,18 +34,122 @@ class WebhooksReviewType(TypedDict): "NONE", "OWNER", ] + auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] + base: WebhooksPullRequest5PropBaseType body: Union[str, None] - commit_id: str + 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 - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhooksReviewPropUserType, None] + 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 WebhooksReviewPropUserType(TypedDict): +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] @@ -69,29 +176,703 @@ class WebhooksReviewPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhooksReviewPropLinksType(TypedDict): - """WebhooksReviewPropLinks""" +class WebhooksPullRequest5PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + - html: WebhooksReviewPropLinksPropHtmlType - pull_request: WebhooksReviewPropLinksPropPullRequestType +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""" -class WebhooksReviewPropLinksPropHtmlType(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 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 WebhooksReviewPropLinksPropPullRequestType(TypedDict): +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__ = ( - "WebhooksReviewPropLinksPropHtmlType", - "WebhooksReviewPropLinksPropPullRequestType", - "WebhooksReviewPropLinksType", - "WebhooksReviewPropUserType", - "WebhooksReviewType", + "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_0530.py b/githubkit/versions/ghec_v2022_11_28/types/group_0530.py index 593e61fe6..e0b112082 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0530.py @@ -14,63 +14,53 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksReleaseType(TypedDict): - """Release +class WebhooksReviewCommentType(TypedDict): + """Pull Request Review Comment - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. """ - 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 + 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 - name: Union[str, None] + in_reply_to_id: NotRequired[int] + line: Union[int, 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 + 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 - zipball_url: Union[str, None] + user: Union[WebhooksReviewCommentPropUserType, 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): +class WebhooksReviewCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -85,29 +75,7 @@ class WebhooksReleasePropReactionsType(TypedDict): url: str -class WebhooksReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - digest: Union[str, None] - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): +class WebhooksReviewCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,12 +99,41 @@ class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReviewCommentPropLinksType(TypedDict): + """WebhooksReviewCommentPropLinks""" + + html: WebhooksReviewCommentPropLinksPropHtmlType + pull_request: WebhooksReviewCommentPropLinksPropPullRequestType + self_: WebhooksReviewCommentPropLinksPropSelfType + + +class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str __all__ = ( - "WebhooksReleasePropAssetsItemsPropUploaderType", - "WebhooksReleasePropAssetsItemsType", - "WebhooksReleasePropAuthorType", - "WebhooksReleasePropReactionsType", - "WebhooksReleaseType", + "WebhooksReviewCommentPropLinksPropHtmlType", + "WebhooksReviewCommentPropLinksPropPullRequestType", + "WebhooksReviewCommentPropLinksPropSelfType", + "WebhooksReviewCommentPropLinksType", + "WebhooksReviewCommentPropReactionsType", + "WebhooksReviewCommentPropUserType", + "WebhooksReviewCommentType", ) 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 868af322f..0d56edfb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0531.py @@ -14,58 +14,35 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksRelease1Type(TypedDict): - """Release +class WebhooksReviewType(TypedDict): + """WebhooksReview - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. + The review that was affected. """ - assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] - assets_url: str - author: Union[WebhooksRelease1PropAuthorType, None] + links: WebhooksReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + commit_id: str 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] + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhooksReviewPropUserType, 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 - digest: Union[str, None] - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): +class WebhooksReviewPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -89,54 +66,32 @@ class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksRelease1PropAuthorType(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 WebhooksReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str -class WebhooksRelease1PropReactionsType(TypedDict): - """Reactions""" +class WebhooksReviewPropLinksPropPullRequestType(TypedDict): + """Link""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + href: str __all__ = ( - "WebhooksRelease1PropAssetsItemsPropUploaderType", - "WebhooksRelease1PropAssetsItemsType", - "WebhooksRelease1PropAuthorType", - "WebhooksRelease1PropReactionsType", - "WebhooksRelease1Type", + "WebhooksReviewPropLinksPropHtmlType", + "WebhooksReviewPropLinksPropPullRequestType", + "WebhooksReviewPropLinksType", + "WebhooksReviewPropUserType", + "WebhooksReviewType", ) 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 3401e5834..5d40298c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0532.py @@ -14,32 +14,101 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class WebhooksReleaseType(TypedDict): + """Release - The security alert of the vulnerable dependency. + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. """ - 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 + 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 + immutable: bool + name: Union[str, None] node_id: str - number: int - severity: str - state: Literal["open"] + 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 WebhooksAlertPropDismisserType(TypedDict): +class WebhooksReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -66,6 +135,9 @@ class WebhooksAlertPropDismisserType(TypedDict): __all__ = ( - "WebhooksAlertPropDismisserType", - "WebhooksAlertType", + "WebhooksReleasePropAssetsItemsPropUploaderType", + "WebhooksReleasePropAssetsItemsType", + "WebhooksReleasePropAuthorType", + "WebhooksReleasePropReactionsType", + "WebhooksReleaseType", ) 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 60f295adf..81ce2709d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0533.py @@ -13,46 +13,131 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksRelease1Type(TypedDict): + """Release -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] + 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 + immutable: bool + 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 + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + + +class WebhooksRelease1PropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - 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",) + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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_0534.py b/githubkit/versions/ghec_v2022_11_28/types/group_0534.py index dce9a1159..3401e5834 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0534.py @@ -9,95 +9,63 @@ 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 WebhooksAlertType(TypedDict): + """Repository Vulnerability Alert Alert -class WebhooksSecurityAdvisoryType(TypedDict): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The security alert of the vulnerable dependency. """ - cvss: WebhooksSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] - description: str + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] ghsa_id: str - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] - published_at: str - references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] + id: int + node_id: str + number: int severity: str - summary: str - updated_at: str - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] - withdrawn_at: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCvssType(TypedDict): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -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 + 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__ = ( - "WebhooksSecurityAdvisoryPropCvssType", - "WebhooksSecurityAdvisoryPropCwesItemsType", - "WebhooksSecurityAdvisoryPropIdentifiersItemsType", - "WebhooksSecurityAdvisoryPropReferencesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhooksSecurityAdvisoryType", + "WebhooksAlertPropDismisserType", + "WebhooksAlertType", ) 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 7dd35b2e2..60f295adf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0535.py @@ -9,123 +9,50 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -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 SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" - -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] + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] 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", -) + 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_0536.py b/githubkit/versions/ghec_v2022_11_28/types/group_0536.py index bcc71503a..dce9a1159 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0536.py @@ -9,42 +9,95 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0001 import CvssSeveritiesType -class WebhooksChanges8Type(TypedDict): - """WebhooksChanges8""" - tier: WebhooksChanges8PropTierType +class WebhooksSecurityAdvisoryType(TypedDict): + """WebhooksSecurityAdvisory + The details of the security advisory, including summary, description, and + severity. + """ -class WebhooksChanges8PropTierType(TypedDict): - """WebhooksChanges8PropTier""" + 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] - from_: WebhooksChanges8PropTierPropFromType +class WebhooksSecurityAdvisoryPropCvssType(TypedDict): + """WebhooksSecurityAdvisoryPropCvss""" -class WebhooksChanges8PropTierPropFromType(TypedDict): - """Sponsorship Tier + score: float + vector_string: Union[str, None] - 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 +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 - node_id: str __all__ = ( - "WebhooksChanges8PropTierPropFromType", - "WebhooksChanges8PropTierType", - "WebhooksChanges8Type", + "WebhooksSecurityAdvisoryPropCvssType", + "WebhooksSecurityAdvisoryPropCwesItemsType", + "WebhooksSecurityAdvisoryPropIdentifiersItemsType", + "WebhooksSecurityAdvisoryPropReferencesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhooksSecurityAdvisoryType", ) 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 108b60484..7dd35b2e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0537.py @@ -13,48 +13,119 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksTeam1Type(TypedDict): - """Team +class WebhooksSponsorshipType(TypedDict): + """WebhooksSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ + 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] - 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 WebhooksSponsorshipPropSponsorableType(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 + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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 - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhooksTeam1PropParentType", - "WebhooksTeam1Type", + "WebhooksSponsorshipPropMaintainerType", + "WebhooksSponsorshipPropSponsorType", + "WebhooksSponsorshipPropSponsorableType", + "WebhooksSponsorshipPropTierType", + "WebhooksSponsorshipType", ) 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 96ce8154b..bcc71503a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0538.py @@ -9,25 +9,42 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +class WebhooksChanges8Type(TypedDict): + """WebhooksChanges8""" -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" + tier: WebhooksChanges8PropTierType - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhooksChanges8PropTierType(TypedDict): + """WebhooksChanges8PropTier""" -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) + 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_0539.py b/githubkit/versions/ghec_v2022_11_28/types/group_0539.py index 71aa394bc..108b60484 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0539.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_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 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",) +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_0540.py b/githubkit/versions/ghec_v2022_11_28/types/group_0540.py index 2eb293367..de87fcb13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0540.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0489 import WebhooksRuleType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule 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: RepositoryWebhooksType - rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookBranchProtectionRuleCreatedType",) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) 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 88185176f..80271e282 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0541.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0489 import WebhooksRuleType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - action: Literal["deleted"] + action: Literal["enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookBranchProtectionRuleDeletedType",) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) 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 3a477ea5f..e82155103 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0542.py @@ -9,22 +9,21 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0489 import WebhooksRuleType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0491 import WebhooksRuleType -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,149 +32,4 @@ class WebhookBranchProtectionRuleEditedType(TypedDict): 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 - """ - - from_: Literal["off", "non_admins", "everyone"] - - -__all__ = ( - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedType", -) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) 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 e6a22a55a..f29cf487b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0543.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0491 import ExemptionRequestType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0491 import WebhooksRuleType -class WebhookExemptionRequestCancelledType(TypedDict): - """Exemption request cancellation event""" +class WebhookBranchProtectionRuleDeletedType(TypedDict): + """branch protection rule deleted event""" - action: Literal["cancelled"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType + repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestCancelledType",) +__all__ = ("WebhookBranchProtectionRuleDeletedType",) 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 4895dce2d..a049d08dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0544.py @@ -9,27 +9,173 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0491 import ExemptionRequestType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0491 import WebhooksRuleType -class WebhookExemptionRequestCompletedType(TypedDict): - """Exemption request completed event""" +class WebhookBranchProtectionRuleEditedType(TypedDict): + """branch protection rule edited event""" - action: Literal["completed"] + action: Literal["edited"] + changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType + repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestCompletedType",) +class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType + ] + authorized_actor_names: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType + ] + authorized_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType + ] + authorized_dismissal_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType + ] + linear_history_requirement_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType + ] + lock_branch_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType + ] + lock_allows_fork_sync: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType + ] + pull_request_reviews_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType + ] + require_last_push_approval: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType + ] + required_status_checks: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType + ] + required_status_checks_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType + ] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +__all__ = ( + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", + "WebhookBranchProtectionRuleEditedPropChangesType", + "WebhookBranchProtectionRuleEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0545.py b/githubkit/versions/ghec_v2022_11_28/types/group_0545.py index ff66dccef..6c5786dc9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0545.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0491 import ExemptionRequestType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0493 import ExemptionRequestType -class WebhookExemptionRequestCreatedType(TypedDict): - """Exemption request created event""" +class WebhookExemptionRequestCancelledType(TypedDict): + """Exemption request cancellation event""" - action: Literal["created"] + action: Literal["cancelled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookExemptionRequestCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookExemptionRequestCreatedType",) +__all__ = ("WebhookExemptionRequestCancelledType",) 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 962e0caa0..5808d02fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0546.py @@ -13,25 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0490 import ExemptionResponseType -from .group_0491 import ExemptionRequestType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0493 import ExemptionRequestType -class WebhookExemptionRequestResponseDismissedType(TypedDict): - """Exemption response dismissed event""" +class WebhookExemptionRequestCompletedType(TypedDict): + """Exemption request completed event""" - action: Literal["response_dismissed"] + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] exemption_request: ExemptionRequestType - exemption_response: ExemptionResponseType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestResponseDismissedType",) +__all__ = ("WebhookExemptionRequestCompletedType",) 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 8ec78aadc..6ac2cda9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0547.py @@ -13,25 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0490 import ExemptionResponseType -from .group_0491 import ExemptionRequestType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0493 import ExemptionRequestType -class WebhookExemptionRequestResponseSubmittedType(TypedDict): - """Exemption response submitted event""" +class WebhookExemptionRequestCreatedType(TypedDict): + """Exemption request 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 sender: SimpleUserType -__all__ = ("WebhookExemptionRequestResponseSubmittedType",) +__all__ = ("WebhookExemptionRequestCreatedType",) 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 8216778c7..547e1e44f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0548.py @@ -13,21 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0493 import CheckRunWithSimpleCheckSuiteType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0492 import ExemptionResponseType +from .group_0493 import ExemptionRequestType -class WebhookCheckRunCompletedType(TypedDict): - """Check Run Completed Event""" +class WebhookExemptionRequestResponseDismissedType(TypedDict): + """Exemption response dismissed event""" - action: Literal["completed"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["response_dismissed"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + exemption_response: ExemptionResponseType sender: SimpleUserType -__all__ = ("WebhookCheckRunCompletedType",) +__all__ = ("WebhookExemptionRequestResponseDismissedType",) 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 831afd105..f54ff2df1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0549.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_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0492 import ExemptionResponseType +from .group_0493 import ExemptionRequestType -class WebhookCheckRunCompletedFormEncodedType(TypedDict): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookExemptionRequestResponseSubmittedType(TypedDict): + """Exemption response submitted event""" - payload: str + action: Literal["response_submitted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + exemption_response: ExemptionResponseType + sender: SimpleUserType -__all__ = ("WebhookCheckRunCompletedFormEncodedType",) +__all__ = ("WebhookExemptionRequestResponseSubmittedType",) 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 f4785be3d..f2ecf01df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0550.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0493 import CheckRunWithSimpleCheckSuiteType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0495 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - action: Literal["created"] + action: Literal["completed"] check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookCheckRunCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedType",) +__all__ = ("WebhookCheckRunCompletedType",) 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 090ccf388..831afd105 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0551.py @@ -12,13 +12,13 @@ from typing_extensions import TypedDict -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event - The check_run.created webhook encoded with URL encoding + The check_run.completed webhook encoded with URL encoding """ payload: str -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) 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 0fed5fe98..9ca340d45 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0552.py @@ -13,34 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0493 import CheckRunWithSimpleCheckSuiteType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0495 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - action: Literal["requested_action"] + action: Literal["created"] check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserType -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: NotRequired[str] - - -__all__ = ( - "WebhookCheckRunRequestedActionPropRequestedActionType", - "WebhookCheckRunRequestedActionType", -) +__all__ = ("WebhookCheckRunCreatedType",) 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 0d80e2c39..090ccf388 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0553.py @@ -12,13 +12,13 @@ from typing_extensions import TypedDict -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event - The check_run.requested_action webhook encoded with URL encoding + The check_run.created webhook encoded with URL encoding """ payload: str -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) 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 3faa0afa9..7929ec049 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0554.py @@ -13,21 +13,34 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0493 import CheckRunWithSimpleCheckSuiteType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0495 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" - action: Literal["rerequested"] + action: Literal["requested_action"] check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserType -__all__ = ("WebhookCheckRunRerequestedType",) +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction + + The action requested by the user. + """ + + identifier: NotRequired[str] + + +__all__ = ( + "WebhookCheckRunRequestedActionPropRequestedActionType", + "WebhookCheckRunRequestedActionType", +) 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 ef6a77599..0d80e2c39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0555.py @@ -12,13 +12,13 @@ from typing_extensions import TypedDict -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event - The check_run.rerequested webhook encoded with URL encoding + The check_run.requested_action webhook encoded with URL encoding """ payload: str -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) 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 763ec1338..d785cc2e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0556.py @@ -9,268 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0495 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + check_run: CheckRunWithSimpleCheckSuiteType 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. - """ - - 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__ = ("WebhookCheckRunRerequestedType",) 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 e8763b2d0..ef6a77599 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0557.py @@ -9,265 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested 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/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. + The check_run.rerequested 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__ = ("WebhookCheckRunRerequestedFormEncodedType",) 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 7bb1ea04b..b0b863336 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0558.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,15 +32,15 @@ class WebhookCheckSuiteRerequestedType(TypedDict): sender: SimpleUserType -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite +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: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType before: Union[str, None] check_runs_url: str conclusion: Union[ @@ -53,26 +53,30 @@ class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): "timed_out", "action_required", "stale", + "skipped", + "startup_failure", ], ] created_at: datetime head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType head_sha: str id: int latest_check_runs_count: int node_id: str pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType ] rerequestable: NotRequired[bool] runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] updated_at: datetime url: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -90,15 +94,15 @@ class actors within GitHub. client_id: NotRequired[Union[str, None]] name: str node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -125,8 +129,8 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions The set of permissions for the GitHub app """ @@ -168,18 +172,18 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(Typed workflows: NotRequired[Literal["read", "write"]] -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): """SimpleCommit""" - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType id: str message: str timestamp: str tree_id: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): """Committer Metaproperties for Git author/committer information. @@ -191,7 +195,7 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(Typ username: NotRequired[str] -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): """Committer @@ -205,27 +209,27 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( username: NotRequired[str] -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): """Check Run Pull Request""" - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -235,17 +239,17 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePro url: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -256,17 +260,17 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPro __all__ = ( - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedType", ) 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 d9f3e2876..e91379b6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0559.py @@ -14,57 +14,92 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - 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 WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +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). """ - created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + 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", + ], ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + 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 ] - 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[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - 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: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -91,72 +126,148 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(Typed user_view_type: NotRequired[str] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( +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 ): - """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"] + """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""" -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ + """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 WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedType", ) 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 604d5fdcc..b8479326e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0560.py @@ -14,63 +14,91 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - 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 WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - 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"] + 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", + ], ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] + 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 ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str - dismissal_approved_by: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, - None, - ] + + +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 WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -97,104 +125,148 @@ class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict 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 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 WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + 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 WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( TypedDict ): - """User""" + """Repo Ref""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + name: str + url: str __all__ = ( - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedType", ) 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 668535998..6e9e017bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0561.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,33 +34,66 @@ class WebhookCodeScanningAlertCreatedType(TypedDict): sender: SimpleUserType -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + ] dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] fixed_at: NotRequired[None] html_url: str - instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, + None, + ] ] number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed"]] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType url: str - dismissal_approved_by: NotRequired[None] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): +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 @@ -69,19 +102,21 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDi commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ end_column: NotRequired[int] end_line: NotRequired[int] @@ -90,41 +125,38 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation start_line: NotRequired[int] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: NotRequired[str] -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" 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""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - guid: NotRequired[Union[str, None]] name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchType", ) 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 634684ca7..ace049b0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0562.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,33 +34,43 @@ class WebhookCodeScanningAlertFixedType(TypedDict): sender: SimpleUserType -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert The code scanning alert involved in the event. """ created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + 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 - instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] ] number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Union[None, Literal["fixed"]] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType url: str + dismissal_approved_by: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, + None, + ] + ] -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -87,7 +97,9 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): """Alert Instance""" analysis_key: str @@ -96,19 +108,19 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -117,16 +129,16 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationTy start_line: NotRequired[int] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" description: str full_description: NotRequired[str] @@ -138,21 +150,51 @@ class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): tags: NotRequired[Union[list[str], None]] -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" guid: NotRequired[Union[str, None]] name: str version: Union[str, None] +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + __all__ = ( - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserType", ) 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 579969616..858a1da5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0563.py @@ -14,56 +14,53 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["created"] + alert: WebhookCodeScanningAlertCreatedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] + ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert The code scanning alert involved in the event. """ - created_at: datetime - dismissed_at: Union[str, None] - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None - ] + created_at: Union[datetime, None] + dismissed_at: None + dismissed_by: None dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[str, None] + dismissed_reason: None fixed_at: NotRequired[None] html_url: str + instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] ] number: int - rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed"]] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] url: str + dismissal_approved_by: NotRequired[None] -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - - -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): """Alert Instance""" analysis_key: str @@ -72,19 +69,19 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedD commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -93,16 +90,16 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocatio start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" description: str full_description: NotRequired[str] @@ -114,8 +111,8 @@ class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): tags: NotRequired[Union[list[str], None]] -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" guid: NotRequired[Union[str, None]] name: str @@ -123,12 +120,11 @@ class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): __all__ = ( - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedType", ) 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 fadeaf286..e346a0441 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0564.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,35 +34,60 @@ class WebhookCodeScanningAlertReopenedByUserType(TypedDict): sender: SimpleUserType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert The code scanning alert involved in the event. """ created_at: datetime - dismissed_at: None - dismissed_by: None + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] fixed_at: NotRequired[None] html_url: str + instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, - None, - ] + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] ] number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Union[None, Literal["open", "fixed"]] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Union[None, Literal["fixed"]] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): +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 @@ -71,21 +96,19 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n - """ + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -94,35 +117,42 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +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 WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + guid: NotRequired[Union[str, None]] name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedType", ) 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 0457238a5..fe05d0daf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0565.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0565.py @@ -9,106 +9,126 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + 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 sender: SimpleUserType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert - 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[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None ] - body: str - commit_id: str - created_at: str + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[str, None] + fixed_at: NotRequired[None] html_url: str - id: int - line: Union[int, None] - node_id: str - path: Union[str, None] - position: Union[int, None] - reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] - updated_at: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType url: str - user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] -class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +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 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 + +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] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: 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__ = ( - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedType", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedType", ) 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 de0be79e0..b1d4f90e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0566.py @@ -9,29 +9,120 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" - description: Union[str, None] + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + 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 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_0567.py b/githubkit/versions/ghec_v2022_11_28/types/group_0567.py index 7d05c170d..d444770d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0567.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0567.py @@ -9,25 +9,106 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0081 import CustomPropertyType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" action: Literal["created"] - definition: CustomPropertyType + comment: WebhookCommitCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyCreatedType",) +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_0568.py b/githubkit/versions/ghec_v2022_11_28/types/group_0568.py index 3ad285af8..e37fed4ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0568.py @@ -9,33 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCreateType(TypedDict): + """create event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + description: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" - - property_name: str - - -__all__ = ( - "WebhookCustomPropertyDeletedPropDefinitionType", - "WebhookCustomPropertyDeletedType", -) +__all__ = ("WebhookCreateType",) 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 eb66e69b5..bdb021b0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0569.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0081 import CustomPropertyType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType +from .group_0082 import CustomPropertyType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): - """custom property promoted to business event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" - action: Literal["promote_to_enterprise"] + action: Literal["created"] definition: CustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -30,4 +30,4 @@ class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookCustomPropertyPromotedToEnterpriseType",) +__all__ = ("WebhookCustomPropertyCreatedType",) 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 3d5211568..3f2713eb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0570.py @@ -13,21 +13,29 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0081 import CustomPropertyType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" - action: Literal["updated"] - definition: CustomPropertyType + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookCustomPropertyUpdatedType",) +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str + + +__all__ = ( + "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCustomPropertyDeletedType", +) 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 e3eb52073..1de8b667f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0571.py @@ -13,24 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0225 import CustomPropertyValueType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0082 import CustomPropertyType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): + """custom property promoted to business event""" - action: Literal["updated"] + action: Literal["promote_to_enterprise"] + definition: CustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - repository: RepositoryWebhooksType - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] sender: NotRequired[SimpleUserType] - new_property_values: list[CustomPropertyValueType] - old_property_values: list[CustomPropertyValueType] -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +__all__ = ("WebhookCustomPropertyPromotedToEnterpriseType",) 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 4d6dd42a1..b1446f1f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0572.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0082 import CustomPropertyType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" + action: Literal["updated"] + definition: CustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDeleteType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) 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 ed7df0ebe..102316d4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0573.py @@ -13,23 +13,24 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0330 import DependabotAlertType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0227 import CustomPropertyValueType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserType] + new_property_values: list[CustomPropertyValueType] + old_property_values: list[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) 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 f9fd2647d..c3ccf0a2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0574.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0330 import DependabotAlertType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["auto_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__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ("WebhookDeleteType",) 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 c6fe46772..53b0cf40f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0575.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0330 import DependabotAlertType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0332 import DependabotAlertType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["created"] + action: Literal["auto_dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) 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 376d0fddc..df6d571e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0576.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0330 import DependabotAlertType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0332 import DependabotAlertType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["dismissed"] + action: Literal["auto_reopened"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertDismissedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) 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 2cc4735c0..6d9942d37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0577.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0330 import DependabotAlertType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0332 import DependabotAlertType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" - action: Literal["fixed"] + action: Literal["created"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertFixedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookDependabotAlertCreatedType",) 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 96b8d623a..6cc18da72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0578.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0330 import DependabotAlertType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0332 import DependabotAlertType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" - action: Literal["reintroduced"] + action: Literal["dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReintroducedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookDependabotAlertDismissedType",) 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 9b33d506d..6eb7a1978 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0579.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0330 import DependabotAlertType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0332 import DependabotAlertType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed event""" - action: Literal["reopened"] + action: Literal["fixed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDependabotAlertFixedType",) 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 08eb0cf71..63bc49aee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0580.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0494 import WebhooksDeployKeyType +from .group_0332 import DependabotAlertType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyCreatedType",) +__all__ = ("WebhookDependabotAlertReintroducedType",) 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 8ab201e07..8755a47d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0581.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0494 import WebhooksDeployKeyType +from .group_0332 import DependabotAlertType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyDeletedType",) +__all__ = ("WebhookDependabotAlertReopenedType",) 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 0acbcf7ef..d6df53d19 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0582.py @@ -9,550 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0495 import WebhooksWorkflowType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0496 import WebhooksDeployKeyType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] 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__ = ("WebhookDeployKeyCreatedType",) 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 73156b5ca..e16d80aa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0583.py @@ -13,26 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0262 import DeploymentType -from .group_0393 import PullRequestType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 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_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0496 import WebhooksDeployKeyType + + +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserType] + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ("WebhookDeployKeyDeletedType",) 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 dc6f4be75..49bd67386 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0584.py @@ -10,55 +10,198 @@ 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_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0496 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0497 import WebhooksWorkflowJobRunType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0497 import WebhooksWorkflowType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" - action: Literal["approved"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] + action: Literal["created"] + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] + 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] ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, 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 WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" +class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: 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: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: 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 WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): +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[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -80,11 +223,9 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): display_title: str event: str head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] + head_commit: NotRequired[None] head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -94,21 +235,19 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): name: str node_id: str path: str - previous_attempt_url: NotRequired[Union[str, None]] + previous_attempt_url: NotRequired[None] pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] + repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] rerun_url: NotRequired[str] run_attempt: int run_number: int @@ -116,8 +255,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None + triggering_actor: NotRequired[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] ] updated_at: datetime url: str @@ -125,7 +264,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): workflow_url: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -152,21 +291,17 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): user_view_type: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -193,8 +328,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(Type user_view_type: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -207,7 +342,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(Typed contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] + description: NotRequired[None] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -231,7 +366,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(Typed node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -246,10 +381,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(Typed url: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -269,11 +402,10 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerT subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -286,7 +418,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] + description: NotRequired[None] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -310,7 +442,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -325,10 +457,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict url: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -348,36 +478,31 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): """Check Run Pull Request""" - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + ) sha: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -387,17 +512,19 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBas url: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + ) sha: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -408,20 +535,24 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHea __all__ = ( - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedType", + "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_0585.py b/githubkit/versions/ghec_v2022_11_28/types/group_0585.py index e10095523..5f84a94cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0585.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0585.py @@ -9,417 +9,30 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0496 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0497 import WebhooksWorkflowJobRunType +from .group_0264 import DeploymentType +from .group_0395 import PullRequestType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" - action: Literal["rejected"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - 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] - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] + action: Literal["requested"] 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 + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[list[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + installation: NotRequired[SimpleInstallationType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedType", -) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) 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 336ccdd5d..a9c3506eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0586.py @@ -14,83 +14,51 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0498 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0499 import WebhooksWorkflowJobRunType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["requested"] + action: Literal["approved"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] - environment: str installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType - requestor: Union[WebhooksUserType, None] - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] + reviewers: NotRequired[list[WebhooksReviewersItemsType]] 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] + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] ] - type: NotRequired[Literal["User", "Team"]] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: 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] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -109,13 +77,14 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): ], ] created_at: datetime + display_title: str event: str head_branch: str head_commit: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] ] head_repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -127,18 +96,18 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): path: str previous_attempt_url: NotRequired[Union[str, None]] pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType ] rerun_url: NotRequired[str] run_attempt: int @@ -148,16 +117,15 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): "requested", "in_progress", "completed", "queued", "waiting", "pending" ] triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str workflow_id: int workflow_url: NotRequired[str] - display_title: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -184,21 +152,21 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): user_view_type: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -225,8 +193,8 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(Typ user_view_type: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -263,7 +231,7 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(Type node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -278,10 +246,10 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(Type url: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -304,8 +272,8 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner user_view_type: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -342,7 +310,7 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDic node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -357,10 +325,10 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDic url: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -383,33 +351,33 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType user_view_type: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( TypedDict ): """Check Run Pull Request""" base: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType ) head: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType ) id: int number: int url: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -419,17 +387,17 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBa url: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -440,22 +408,20 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHe __all__ = ( - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedType", + "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_0587.py b/githubkit/versions/ghec_v2022_11_28/types/group_0587.py index e07da5ed1..10b870286 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0587.py @@ -10,404 +10,55 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0495 import WebhooksWorkflowType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0498 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0499 import WebhooksWorkflowJobRunType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType + 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 - workflow: NotRequired[Union[WebhooksWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - 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] + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[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] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -423,16 +74,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): "timed_out", "action_required", "stale", - "startup_failure", ], ] created_at: datetime - display_title: str event: str head_branch: str - head_commit: NotRequired[None] + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] head_repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -442,38 +93,37 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): name: str node_id: str path: str - previous_attempt_url: NotRequired[None] + previous_attempt_url: NotRequired[Union[str, None]] pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType ] rerun_url: NotRequired[str] run_attempt: int run_number: int run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str workflow_id: int workflow_url: NotRequired[str] + display_title: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -500,17 +150,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -537,8 +191,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(Typed user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -551,7 +205,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[None] + description: NotRequired[Union[str, None]] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -575,7 +229,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -590,10 +244,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -613,10 +267,11 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerTy subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -629,7 +284,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[None] + description: NotRequired[Union[str, None]] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -653,7 +308,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -668,10 +323,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -691,29 +346,36 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) id: int number: int url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -723,17 +385,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -744,30 +406,20 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead __all__ = ( - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedType", + "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_0588.py b/githubkit/versions/ghec_v2022_11_28/types/group_0588.py index d86bef079..c05b9e2b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0588.py @@ -9,29 +9,453 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0499 import WebhooksAnswerType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["answered"] - answer: WebhooksAnswerType - 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__ = ("WebhookDiscussionAnsweredType",) +class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: Union[str, None] + status: str + updated_at: str + + +class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User", "Team"]] + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRequestedPropReviewersItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunType", + "WebhookDeploymentReviewRequestedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0589.py b/githubkit/versions/ghec_v2022_11_28/types/group_0589.py index f61574c7e..26e1eb585 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0589.py @@ -10,60 +10,764 @@ 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 -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0497 import WebhooksWorkflowType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - 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 WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + 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 WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + 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 WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" - created_at: datetime - description: str - emoji: 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 - is_answerable: 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] + 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] - repository_id: int - slug: str + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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__ = ( - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedType", + "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_0590.py b/githubkit/versions/ghec_v2022_11_28/types/group_0590.py index 9616e211d..15334ba31 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0590.py @@ -13,17 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0501 import WebhooksAnswerType +from .group_0502 import DiscussionType -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["closed"] + action: Literal["answered"] + answer: WebhooksAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionClosedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionClosedType",) +__all__ = ("WebhookDiscussionAnsweredType",) 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 324b3ebe6..7f254dca5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0591.py @@ -9,23 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType -from .group_0501 import WebhooksCommentType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["created"] - comment: WebhooksCommentType + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +34,36 @@ class WebhookDiscussionCommentCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionCommentCreatedType",) +class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +__all__ = ( + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", + "WebhookDiscussionCategoryChangedPropChangesType", + "WebhookDiscussionCategoryChangedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0592.py b/githubkit/versions/ghec_v2022_11_28/types/group_0592.py index 2f800aaa6..82bcb1141 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0592.py @@ -13,19 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType -from .group_0501 import WebhooksCommentType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["deleted"] - comment: WebhooksCommentType + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +32,4 @@ class WebhookDiscussionCommentDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionCommentDeletedType",) +__all__ = ("WebhookDiscussionClosedType",) 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 ea4bf272b..b951a39b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0593.py @@ -13,19 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType -from .group_0501 import WebhooksCommentType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType +from .group_0503 import WebhooksCommentType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType + action: Literal["created"] comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] @@ -35,20 +34,4 @@ class WebhookDiscussionCommentEditedType(TypedDict): sender: SimpleUserType -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" - - body: WebhookDiscussionCommentEditedPropChangesPropBodyType - - -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str - - -__all__ = ( - "WebhookDiscussionCommentEditedPropChangesPropBodyType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedType", -) +__all__ = ("WebhookDiscussionCommentCreatedType",) 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 e997d47bd..a67186263 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0594.py @@ -13,17 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType +from .group_0503 import WebhooksCommentType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" - action: Literal["created"] + action: Literal["deleted"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionCreatedType",) +__all__ = ("WebhookDiscussionCommentDeletedType",) 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 e604a15e3..2e7879267 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0595.py @@ -13,17 +13,20 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType +from .group_0503 import WebhooksCommentType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +35,20 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionDeletedType",) +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_0596.py b/githubkit/versions/ghec_v2022_11_28/types/group_0596.py index dfa631dea..f7657ac4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0596.py @@ -13,18 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["created"] 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__ = ("WebhookDiscussionCreatedType",) 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 bb55b6f77..e30202bb7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0597.py @@ -13,25 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType -from .group_0502 import WebhooksLabelType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - action: Literal["labeled"] + action: Literal["deleted"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionLabeledType",) +__all__ = ("WebhookDiscussionDeletedType",) 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 909f7ee25..a53d3a4c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0598.py @@ -13,17 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - action: Literal["locked"] + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +33,28 @@ class WebhookDiscussionLockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionLockedType",) +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_0599.py b/githubkit/versions/ghec_v2022_11_28/types/group_0599.py index ab50ef3fb..ab2883d27 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0599.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType +from .group_0504 import WebhooksLabelType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - action: Literal["pinned"] + action: Literal["labeled"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionPinnedType",) +__all__ = ("WebhookDiscussionLabeledType",) 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 38fc3cf9b..07178e682 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0600.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["reopened"] + action: Literal["locked"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionReopenedType",) +__all__ = ("WebhookDiscussionLockedType",) 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 7d3f99b08..e6c4bf3af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0601.py @@ -13,19 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType -from .group_0602 import WebhookDiscussionTransferredPropChangesType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +32,4 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredType",) +__all__ = ("WebhookDiscussionPinnedType",) 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 0c6080e40..1246d607d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0602.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_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["reopened"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +__all__ = ("WebhookDiscussionReopenedType",) 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 c58dbf8b5..b214ce97d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0603.py @@ -13,21 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0499 import WebhooksAnswerType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType +from .group_0604 import WebhookDiscussionTransferredPropChangesType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" - action: Literal["unanswered"] + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType discussion: DiscussionType - old_answer: WebhooksAnswerType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookDiscussionUnansweredType",) +__all__ = ("WebhookDiscussionTransferredType",) 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 254e4c6b3..a87fd071a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0604.py @@ -9,29 +9,17 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType -from .group_0502 import WebhooksLabelType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - action: Literal["unlabeled"] - discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType -__all__ = ("WebhookDiscussionUnlabeledType",) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) 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 b9522a55e..330173e99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0605.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0501 import WebhooksAnswerType +from .group_0502 import DiscussionType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" - action: Literal["unlocked"] + action: Literal["unanswered"] discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + old_answer: WebhooksAnswerType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDiscussionUnlockedType",) +__all__ = ("WebhookDiscussionUnansweredType",) 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 491d8e61e..930c058be 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0606.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0500 import DiscussionType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType +from .group_0504 import WebhooksLabelType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" - action: Literal["unpinned"] + action: Literal["unlabeled"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionUnlabeledType",) 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 60457e6c3..6740a9a97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0607.py @@ -9,28 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0608 import WebhookForkPropForkeeType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookForkType(TypedDict): - """fork event - - A user forks a repository. - """ +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" + action: Literal["unlocked"] + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionUnlockedType",) 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 aa1805d37..d6bcd8f84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0608.py @@ -9,151 +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_0610 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0502 import DiscussionType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" - The created [`repository`](https://docs.github.com/enterprise- - cloud@latest//rest/repos/repos#get-a-repository) resource. - """ + action: Literal["unpinned"] + 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__ = ("WebhookDiscussionUnpinnedType",) 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 63646388e..afce9c517 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0609.py @@ -9,150 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0610 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0610 import WebhookForkPropForkeeType -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookForkType(TypedDict): + """fork event - A git repository + A user forks a 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] + enterprise: NotRequired[EnterpriseWebhooksType] + forkee: WebhookForkPropForkeeType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -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__ = ("WebhookForkType",) 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 a6cb9b92f..0563cbf64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0610.py @@ -9,17 +9,151 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0612 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee + The created [`repository`](https://docs.github.com/enterprise- + cloud@latest//rest/repos/repos#get-a-repository) resource. + """ -__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) + 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", +) 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 624daaf0c..1d20f3516 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0611.py @@ -9,109 +9,136 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0612 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] 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]] + 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: 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] + 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: 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] + 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: 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] + 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 WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" + +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: 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] @@ -119,12 +146,13 @@ class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): 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] __all__ = ( - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", - "WebhookForkPropForkeeAllof1Type", + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", + "WebhookForkPropForkeeAllof0Type", ) 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 52c10d4b8..a6cb9b92f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0612.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - action: Literal["revoked"] - sender: SimpleUserType - -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) 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 b33740a31..624daaf0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0613.py @@ -12,36 +12,119 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" -class WebhookGollumType(TypedDict): - """gollum event""" + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] + private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[list[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pages: list[WebhookGollumPropPagesItemsType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str +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__ = ( - "WebhookGollumPropPagesItemsType", - "WebhookGollumType", + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", + "WebhookForkPropForkeeAllof1Type", ) 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 d3b05270c..52c10d4b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0614.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0485 import EnterpriseWebhooksType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType -from .group_0503 import WebhooksRepositoriesItemsType - - -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhooksUserType, None]] + + +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" + + action: Literal["revoked"] sender: SimpleUserType -__all__ = ("WebhookInstallationCreatedType",) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) 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 aadf044ee..375a6df78 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0615.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0615.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_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0485 import EnterpriseWebhooksType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0503 import WebhooksRepositoriesItemsType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" +class WebhookGollumType(TypedDict): + """gollum event""" - action: Literal["deleted"] 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__ = ("WebhookInstallationDeletedType",) +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/ghec_v2022_11_28/types/group_0616.py b/githubkit/versions/ghec_v2022_11_28/types/group_0616.py index 4ff628670..d35f744a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0616.py @@ -9,28 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0485 import EnterpriseWebhooksType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0503 import WebhooksRepositoriesItemsType +from .group_0487 import EnterpriseWebhooksType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType +from .group_0505 import WebhooksRepositoriesItemsType -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - action: Literal["new_permissions_accepted"] + 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__ = ("WebhookInstallationNewPermissionsAcceptedType",) +__all__ = ("WebhookInstallationCreatedType",) 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 450417fde..e7e71a96e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0617.py @@ -9,46 +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_0485 import EnterpriseWebhooksType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType -from .group_0504 import WebhooksRepositoriesAddedItemsType +from .group_0487 import EnterpriseWebhooksType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0505 import WebhooksRepositoriesItemsType -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - action: Literal["added"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType - ] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] + requester: NotRequired[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", -) +__all__ = ("WebhookInstallationDeletedType",) 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 3b66584a3..823be5dff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0618.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0618.py @@ -9,46 +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_0485 import EnterpriseWebhooksType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType -from .group_0504 import WebhooksRepositoriesAddedItemsType +from .group_0487 import EnterpriseWebhooksType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0505 import WebhooksRepositoriesItemsType -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - action: Literal["removed"] + action: Literal["new_permissions_accepted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType - ] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] + requester: NotRequired[None] sender: SimpleUserType -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" - - full_name: str - id: int - name: str - node_id: str - private: bool - - -__all__ = ( - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesRemovedType", -) +__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) 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 e00705c1b..6e2b24b84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0619.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0619.py @@ -9,28 +9,46 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0485 import EnterpriseWebhooksType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0503 import WebhooksRepositoriesItemsType +from .group_0487 import EnterpriseWebhooksType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType +from .group_0506 import WebhooksRepositoriesAddedItemsType -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" - action: Literal["suspend"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType + ] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] sender: SimpleUserType -__all__ = ("WebhookInstallationSuspendType",) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + node_id: NotRequired[str] + private: NotRequired[bool] + + +__all__ = ( + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesAddedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0620.py b/githubkit/versions/ghec_v2022_11_28/types/group_0620.py index 605a26a35..20946aebd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0620.py @@ -13,91 +13,42 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0018 import InstallationType +from .group_0487 import EnterpriseWebhooksType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType +from .group_0506 import WebhooksRepositoriesAddedItemsType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType + ] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - target_type: str + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserType -class WebhookInstallationTargetRenamedPropAccountType(TypedDict): - """WebhookInstallationTargetRenamedPropAccount""" +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" - 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 + full_name: str id: int - is_verified: NotRequired[bool] - issues_url: NotRequired[str] - login: NotRequired[str] - members_url: NotRequired[str] - name: NotRequired[str] + name: 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 + private: bool __all__ = ( - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesRemovedType", ) 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 3517a3de7..8bc34686c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0621.py @@ -14,16 +14,16 @@ from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0485 import EnterpriseWebhooksType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0503 import WebhooksRepositoriesItemsType +from .group_0487 import EnterpriseWebhooksType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0505 import WebhooksRepositoriesItemsType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" - action: Literal["unsuspend"] + action: Literal["suspend"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,4 +33,4 @@ class WebhookInstallationUnsuspendType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookInstallationUnsuspendType",) +__all__ = ("WebhookInstallationSuspendType",) 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 0483325a3..f96f02700 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0622.py @@ -9,29 +9,95 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0623 import WebhookIssueCommentCreatedPropCommentType -from .group_0624 import WebhookIssueCommentCreatedPropIssueType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: SimpleInstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + target_type: str -__all__ = ("WebhookIssueCommentCreatedType",) +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", +) 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 6ba5d4683..9cfabea2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0623.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_0010 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0487 import EnterpriseWebhooksType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0505 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ + action: Literal["unsuspend"] + 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__ = ("WebhookInstallationUnsuspendType",) 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 1119dee03..5d79e8df4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0624.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0624.py @@ -9,157 +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_0158 import IssueTypeType -from .group_0626 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0631 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0633 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0634 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0625 import WebhookIssueCommentCreatedPropCommentType +from .group_0626 import WebhookIssueCommentCreatedPropIssueType -class WebhookIssueCommentCreatedPropIssueType(TypedDict): - """WebhookIssueCommentCreatedPropIssue +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType - -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", - "WebhookIssueCommentCreatedPropIssueType", -) +__all__ = ("WebhookIssueCommentCreatedType",) 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 1319bb324..6ba5d4683 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0625.py @@ -13,37 +13,16 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType -from .group_0626 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0628 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0630 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0631 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) +from .group_0010 import IntegrationType -class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) 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", @@ -54,74 +33,20 @@ class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str + body: 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] + issue_url: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] + performed_via_github_app: Union[None, IntegrationType, None] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType 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] + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -136,7 +61,7 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -158,14 +83,13 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(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__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof0Type", + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", + "WebhookIssueCommentCreatedPropCommentType", ) 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 088b44492..d31d73f14 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0626.py @@ -13,9 +13,79 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType +from .group_0628 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0634 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0635 import ( + WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, +) + + +class WebhookIssueCommentCreatedPropIssueType(TypedDict): + """WebhookIssueCommentCreatedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssueCommentCreatedPropIssueMergedUserType + -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -41,30 +111,51 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - 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 WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedUser""" - diff_url: 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] - 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] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", + "WebhookIssueCommentCreatedPropIssueType", ) 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 2a39d32cf..c1bc81df9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0627.py @@ -9,11 +9,130 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType +from .group_0628 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0630 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0632 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + 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] @@ -40,4 +159,9 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof0Type", +) 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 c7e45f2f4..088b44492 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0628.py @@ -11,37 +11,60 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0627 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 WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - A collection of related issues and pull requests. - """ +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__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) +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_0629.py b/githubkit/versions/ghec_v2022_11_28/types/group_0629.py index b261a91af..2a39d32cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0629.py @@ -13,9 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -37,58 +35,9 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - - 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__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) 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 733c384a8..d5ff198b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0630.py @@ -10,41 +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_0629 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + A collection of related issues and pull requests. """ - created_at: Union[datetime, None] + 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__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) 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 ef1c4a5c5..b261a91af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0631.py @@ -9,15 +9,86 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" - total: int - completed: int - percent_completed: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) +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", +) 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 7b1858f2a..5cbdde4fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0632.py @@ -9,148 +9,42 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0631 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -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] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - color: str - default: bool + created_at: Union[datetime, None] description: Union[str, None] - id: int + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] 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] + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) 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 ce51f1f9d..7b1858f2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0633.py @@ -9,36 +9,148 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0627 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + 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] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + 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 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_0634.py b/githubkit/versions/ghec_v2022_11_28/types/group_0634.py index 7dbcba10a..f70a9a689 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0634.py @@ -10,35 +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_0629 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - created_at: Union[datetime, None] + 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__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) 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 2079838ea..e506bee89 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0635.py @@ -9,29 +9,36 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0505 import WebhooksIssueCommentType -from .group_0636 import WebhookIssueCommentDeletedPropIssueType - - -class WebhookIssueCommentDeletedType(TypedDict): - """issue_comment deleted event""" - - action: Literal["deleted"] - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssueCommentDeletedType",) +from .group_0631 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0636.py b/githubkit/versions/ghec_v2022_11_28/types/group_0636.py index 1bce0338b..a85740501 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0636.py @@ -9,157 +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_0158 import IssueTypeType -from .group_0638 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0643 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0645 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0646 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, -) +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0507 import WebhooksIssueCommentType +from .group_0637 import WebhookIssueCommentDeletedPropIssueType -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentDeletedType(TypedDict): + """issue_comment deleted event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ + action: Literal["deleted"] + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", - "WebhookIssueCommentDeletedPropIssueType", -) +__all__ = ("WebhookIssueCommentDeletedType",) 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 771a8d695..3e70eb458 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0637.py @@ -13,37 +13,33 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType -from .group_0638 import ( +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType +from .group_0639 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) -from .group_0640 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0642 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0643 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, +from .group_0645 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0646 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None ] + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -54,7 +50,7 @@ class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -63,39 +59,33 @@ class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - ] + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[ WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + user: WebhookIssueCommentDeletedPropIssueMergedUserType -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -121,8 +111,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict) user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -136,8 +126,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -164,8 +154,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof0Type", + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", + "WebhookIssueCommentDeletedPropIssueType", ) 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 0cf270ec9..8de91861b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0638.py @@ -13,8 +13,84 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType +from .group_0639 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0641 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0643 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) + + +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"] + ] + 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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,30 +117,51 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(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 WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" - diff_url: 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] - 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] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof0Type", ) 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 b8118ecd1..0cf270ec9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0639.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0639.py @@ -9,11 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,4 +41,30 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0640.py b/githubkit/versions/ghec_v2022_11_28/types/group_0640.py index 71c87accb..b8118ecd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0640.py @@ -9,39 +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_0639 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -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 + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: 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__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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_0641.py b/githubkit/versions/ghec_v2022_11_28/types/group_0641.py index 078dc1e49..4a5bd77d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0641.py @@ -9,86 +9,39 @@ 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 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] +from .group_0640 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - 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"]] + 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__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) 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 1ea1b9ddc..078dc1e49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0642.py @@ -9,42 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0641 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user 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 set of permissions for the GitHub app """ - 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",) + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0643.py b/githubkit/versions/ghec_v2022_11_28/types/group_0643.py index aa70cbec8..0c1cfdf5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0643.py @@ -9,15 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict + +from .group_0642 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0645.py b/githubkit/versions/ghec_v2022_11_28/types/group_0645.py index 29c328755..fa2b04401 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0645.py @@ -13,7 +13,7 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0639 import ( +from .group_0640 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) 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 52b2fc267..7033bb8bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0646.py @@ -13,7 +13,7 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0641 import ( +from .group_0642 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) 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 c4c917512..ea00e021b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0647.py @@ -13,12 +13,12 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0505 import WebhooksIssueCommentType -from .group_0506 import WebhooksChangesType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0507 import WebhooksIssueCommentType +from .group_0508 import WebhooksChangesType from .group_0648 import WebhookIssueCommentEditedPropIssueType 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 3ad0471c0..fd338fbc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0648.py @@ -13,15 +13,15 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) -from .group_0655 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -from .group_0657 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0658 import ( +from .group_0656 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0657 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) @@ -73,9 +73,7 @@ class WebhookIssueCommentEditedPropIssueType(TypedDict): ] reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] + sub_issues_summary: NotRequired[SubIssuesSummaryType] state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] 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 12f01253c..495f0d6b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0649.py @@ -13,7 +13,8 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, @@ -23,7 +24,6 @@ from .group_0654 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) -from .group_0655 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): @@ -79,9 +79,7 @@ class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): ] reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] + sub_issues_summary: NotRequired[SubIssuesSummaryType] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] 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 5c991e61e..d5d49ac59 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0655.py @@ -9,15 +9,148 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" - total: int - completed: int - percent_completed: int + 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] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", + "WebhookIssueCommentEditedPropIssueAllof1Type", +) 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 d5d49ac59..8e847f92d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0656.py @@ -9,148 +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 - -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] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" +from .group_0651 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - color: str - default: bool + 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 - name: str + labels_url: str node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", - "WebhookIssueCommentEditedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) 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 8e847f92d..6cc3d890b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0657.py @@ -10,35 +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_0651 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +from .group_0653 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - 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[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) 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 6cc3d890b..8e0e73886 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0658.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 NotRequired, TypedDict -from .group_0653 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",) +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType +from .group_0509 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_0659.py b/githubkit/versions/ghec_v2022_11_28/types/group_0659.py index 5950cee41..0020f267d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0659.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0659.py @@ -9,29 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType -from .group_0507 import WebhooksIssueType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0660 import WebhookIssuesClosedPropIssueType -class WebhookIssuesAssignedType(TypedDict): - """issues assigned event""" +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" - action: Literal["assigned"] - assignee: NotRequired[Union[WebhooksUserType, None]] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType + issue: WebhookIssuesClosedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesAssignedType",) +__all__ = ("WebhookIssuesClosedType",) 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 e57804d4d..807089364 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,184 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0661 import WebhookIssuesClosedPropIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType +from .group_0666 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0668 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0669 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + 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[SubIssuesSummaryType] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssuesClosedPropIssueMergedUserType -__all__ = ("WebhookIssuesClosedType",) + +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", +) 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 d91282174..b20ea5a92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0661.py @@ -13,27 +13,29 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType -from .group_0667 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0669 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0670 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType +from .group_0663 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0665 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0666 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue +class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): + """Issue 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 + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -44,7 +46,7 @@ class WebhookIssuesClosedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] + body: Union[str, None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -53,33 +55,31 @@ class WebhookIssuesClosedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] + labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] ] pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueMergedReactionsType + reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: WebhookIssuesClosedPropIssueMergedUserType + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -105,8 +105,8 @@ class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignees""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -132,8 +132,8 @@ class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" color: str default: bool @@ -144,8 +144,8 @@ class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -159,8 +159,8 @@ class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -187,10 +187,10 @@ class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): __all__ = ( - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", - "WebhookIssuesClosedPropIssueType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", + "WebhookIssuesClosedPropIssueAllof0Type", ) 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 a4804da0b..2a05f2e97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0662.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0662.py @@ -9,161 +9,11 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType -from .group_0664 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0666 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -from .group_0667 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, -) - -class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] - - -class 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): +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -190,11 +40,4 @@ class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): user_view_type: NotRequired[str] -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", - "WebhookIssuesClosedPropIssueAllof0Type", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) 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 2a05f2e97..da2ae64f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0663.py @@ -9,35 +9,35 @@ 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_0662 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -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 WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + 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] + 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__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) 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 42c2c03fc..77496d06f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0664.py @@ -9,35 +9,85 @@ 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_0663 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +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 WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - A collection of related issues and pull requests. +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + 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__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) 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 77496d06f..3490ed7f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0665.py @@ -9,85 +9,41 @@ 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] +from .group_0664 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The set of permissions for the 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. """ - 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", -) + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0666.py b/githubkit/versions/ghec_v2022_11_28/types/group_0666.py index 1ebcc2511..46a9659b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0666.py @@ -13,37 +13,15 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0665 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",) + +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] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) 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 2fe4e0efb..06e71289d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0667.py @@ -9,30 +9,118 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" - diff_url: NotRequired[str] + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] + ] + assignees: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: Union[str, None] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + ] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - total: int - completed: int - percent_completed: int + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", + "WebhookIssuesClosedPropIssueAllof1Type", ) 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 06e71289d..15cdb6d32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0668.py @@ -9,118 +9,32 @@ 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_0662 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] +class 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 + 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 WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", - "WebhookIssuesClosedPropIssueAllof1Type", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) 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 2ed1e276a..210f68e56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0669.py @@ -10,31 +10,34 @@ 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_0663 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0664 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - 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 + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) 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 7c8e8f019..941991f37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0670.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0670.py @@ -9,35 +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_0665 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",) +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0671 import WebhookIssuesDeletedPropIssueType + + +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssuesDeletedType",) 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 13b4e3f9e..2ee66c6bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0671.py @@ -9,27 +9,347 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0672 import WebhookIssuesDeletedPropIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" +class WebhookIssuesDeletedPropIssueType(TypedDict): + """Issue - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesDeletedType",) + +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class 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", + "WebhookIssuesDeletedPropIssuePropUserType", + "WebhookIssuesDeletedPropIssueType", +) 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 3ff2b4895..a7bd1404e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0672.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0672.py @@ -9,357 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0510 import WebhooksMilestoneType +from .group_0673 import WebhookIssuesDemilestonedPropIssueType -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["demilestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhooksMilestoneType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - 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", -) +__all__ = ("WebhookIssuesDemilestonedType",) 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 7771010a0..c00de92ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0673.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0673.py @@ -9,29 +9,353 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0508 import WebhooksMilestoneType -from .group_0674 import WebhookIssuesDemilestonedPropIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" +class WebhookIssuesDemilestonedPropIssueType(TypedDict): + """Issue - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhooksMilestoneType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesDemilestonedType",) + +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 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", + "WebhookIssuesDemilestonedPropIssuePropUserType", + "WebhookIssuesDemilestonedPropIssueType", +) 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 0eb270299..278869de0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0674.py @@ -9,363 +9,57 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0504 import WebhooksLabelType +from .group_0675 import WebhookIssuesEditedPropIssueType -class WebhookIssuesDemilestonedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +class 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 WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges - -class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + The changes to the issue. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[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 + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" - total: int - completed: int - percent_completed: int + from_: str -class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): - """User""" +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: str __all__ = ( - "WebhookIssuesDemilestonedPropIssuePropAssigneeType", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssuePropMilestoneType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssuePropPullRequestType", - "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDemilestonedPropIssuePropUserType", - "WebhookIssuesDemilestonedPropIssueType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedType", ) 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 ac5411ca1..0ee4f0e82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0675.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0675.py @@ -9,57 +9,346 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0502 import WebhooksLabelType -from .group_0676 import WebhookIssuesEditedPropIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesEditedType(TypedDict): - """issues edited event""" +class WebhookIssuesEditedPropIssueType(TypedDict): + """Issue - action: Literal["edited"] - changes: WebhookIssuesEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesEditedPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] + + +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - The changes to the issue. +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. """ - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" +class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): + """Reactions""" - from_: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" +class WebhookIssuesEditedPropIssuePropUserType(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", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedType", + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropUserType", + "WebhookIssuesEditedPropIssueType", ) 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 b9f0678a5..aa3b8a881 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0676.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0676.py @@ -9,356 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0504 import WebhooksLabelType +from .group_0677 import WebhookIssuesLabeledPropIssueType -class WebhookIssuesEditedPropIssueType(TypedDict): - """Issue +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["labeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhooksLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesEditedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesEditedPropIssuePropUserType, None] - -class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesEditedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesEditedPropIssuePropUserType", - "WebhookIssuesEditedPropIssueType", -) +__all__ = ("WebhookIssuesLabeledType",) 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 56373eceb..773a65c13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0677.py @@ -9,29 +9,346 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0502 import WebhooksLabelType -from .group_0678 import WebhookIssuesLabeledPropIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" +class WebhookIssuesLabeledPropIssueType(TypedDict): + """Issue - action: Literal["labeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] -__all__ = ("WebhookIssuesLabeledType",) + +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 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", + "WebhookIssuesLabeledPropIssuePropUserType", + "WebhookIssuesLabeledPropIssueType", +) 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 fde64427c..26a53f0ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0678.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0678.py @@ -9,356 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0679 import WebhookIssuesLockedPropIssueType -class WebhookIssuesLabeledPropIssueType(TypedDict): - """Issue +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["locked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLockedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] - -class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLabeledPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLabeledPropIssuePropUserType", - "WebhookIssuesLabeledPropIssueType", -) +__all__ = ("WebhookIssuesLockedType",) 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 24d7afa65..3750b4d1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0679.py @@ -9,27 +9,349 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0680 import WebhookIssuesLockedPropIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" +class WebhookIssuesLockedPropIssueType(TypedDict): + """Issue - action: Literal["locked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesLockedType",) + +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 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", + "WebhookIssuesLockedPropIssuePropUserType", + "WebhookIssuesLockedPropIssueType", +) 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 5f9d8c443..37ed181cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0680.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0680.py @@ -9,359 +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_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0510 import WebhooksMilestoneType +from .group_0681 import WebhookIssuesMilestonedPropIssueType -class WebhookIssuesLockedPropIssueType(TypedDict): - """Issue +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["milestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] - reactions: WebhookIssuesLockedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLockedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLockedPropIssuePropUserType, None] - -class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class 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", -) +__all__ = ("WebhookIssuesMilestonedType",) 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 fad821928..fd03dbfa8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0681.py @@ -9,29 +9,347 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0508 import WebhooksMilestoneType -from .group_0682 import WebhookIssuesMilestonedPropIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" +class WebhookIssuesMilestonedPropIssueType(TypedDict): + """Issue - action: Literal["milestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesMilestonedType",) + +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 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", + "WebhookIssuesMilestonedPropIssuePropUserType", + "WebhookIssuesMilestonedPropIssueType", +) 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 340bef20d..979f5a5f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0682.py @@ -9,357 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0683 import WebhookIssuesOpenedPropChangesType +from .group_0685 import WebhookIssuesOpenedPropIssueType -class WebhookIssuesMilestonedPropIssueType(TypedDict): - """Issue +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesOpenedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] - -class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssuePropAssigneeType", - "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssuePropMilestoneType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssuePropPullRequestType", - "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesMilestonedPropIssuePropUserType", - "WebhookIssuesMilestonedPropIssueType", -) +__all__ = ("WebhookIssuesOpenedType",) 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 f70fd10f0..761300fd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0683.py @@ -9,29 +9,189 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0684 import WebhookIssuesOpenedPropChangesType -from .group_0686 import WebhookIssuesOpenedPropIssueType +from .group_0684 import WebhookIssuesOpenedPropChangesPropOldIssueType -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType -__all__ = ("WebhookIssuesOpenedType",) +class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_discussions: NotRequired[bool] + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesType", +) 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 e9cf65d7f..533ee11f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0684.py @@ -10,147 +10,240 @@ 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_0685 import WebhookIssuesOpenedPropChangesPropOldIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: NotRequired[ + Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: NotRequired[ + list[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None + ] + ] + ] + author_association: NotRequired[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[datetime, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[datetime] + draft: NotRequired[bool] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: int + labels: NotRequired[ + list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + ] + node_id: NotRequired[str] + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + ] + reactions: NotRequired[WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType] + repository_url: NotRequired[str] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[datetime] + url: NotRequired[str] + user: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] + ] + type: NotRequired[Union[IssueTypeType, None]] + + +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 WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): - """Repository - A git repository +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - 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 + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None ] - 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 + due_on: Union[datetime, None] 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 + number: int 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 + state: Literal["open", "closed"] + title: str updated_at: datetime url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] -WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): + """User""" -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): - """License""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): + """App - key: str + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - spdx_id: str - url: Union[str, None] + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -177,21 +270,115 @@ class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[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 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 WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", ) 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 4af1cae75..f43972ab9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0685.py @@ -13,87 +13,65 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): +class WebhookIssuesOpenedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- cloud@latest//rest/issues/issues#get-an-issue) itself. """ - active_lock_reason: NotRequired[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - assignees: NotRequired[ - list[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None - ] - ] - ] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[datetime, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[datetime] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime draft: NotRequired[bool] - events_url: NotRequired[str] - html_url: NotRequired[str] + events_url: str + html_url: str id: int - labels: NotRequired[ - list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] - ] - labels_url: NotRequired[str] + labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels_url: str locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] - ] - node_id: NotRequired[str] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType - ] - reactions: NotRequired[WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType] - repository_url: NotRequired[str] - sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] ] + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[datetime] - url: NotRequired[str] - user: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] - ] + title: str type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -120,7 +98,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -147,7 +125,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -159,7 +137,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): +class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -168,9 +146,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -185,7 +161,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -207,14 +183,12 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(Typ 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 WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -232,19 +206,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -271,11 +242,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -297,7 +267,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer 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"]] @@ -317,8 +287,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -327,7 +297,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): +class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -342,15 +312,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): +class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -378,17 +340,16 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropIssueType", ) 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 7252c615c..05648cdb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0686.py @@ -9,357 +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_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0511 import WebhooksIssue2Type -class WebhookIssuesOpenedPropIssueType(TypedDict): - """Issue +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["pinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssue2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] - -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropIssueType", -) +__all__ = ("WebhookIssuesPinnedType",) 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 301b71058..a5875b24e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0687.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0509 import WebhooksIssue2Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0688 import WebhookIssuesReopenedPropIssueType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["pinned"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesPinnedType",) +__all__ = ("WebhookIssuesReopenedType",) 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 66f928342..cb0d7ccc0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0688.py @@ -9,27 +9,347 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0689 import WebhookIssuesReopenedPropIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookIssuesReopenedPropIssueType(TypedDict): + """Issue - action: Literal["reopened"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + type: NotRequired[Union[IssueTypeType, None]] -__all__ = ("WebhookIssuesReopenedType",) + +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 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", + "WebhookIssuesReopenedPropIssuePropUserType", + "WebhookIssuesReopenedPropIssueType", +) 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 49cdf5200..237e0445c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0689.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0689.py @@ -9,357 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0511 import WebhooksIssue2Type +from .group_0690 import WebhookIssuesTransferredPropChangesType -class WebhookIssuesReopenedPropIssueType(TypedDict): - """Issue +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssue2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] - reactions: WebhookIssuesReopenedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] - type: NotRequired[Union[IssueTypeType, None]] - -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", -) +__all__ = ("WebhookIssuesTransferredType",) 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 ce8e97d73..c1535d86a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0690.py @@ -9,29 +9,193 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0509 import WebhooksIssue2Type -from .group_0691 import WebhookIssuesTransferredPropChangesType +from .group_0691 import WebhookIssuesTransferredPropChangesPropNewIssueType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType -__all__ = ("WebhookIssuesTransferredType",) +class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0691.py b/githubkit/versions/ghec_v2022_11_28/types/group_0691.py index 8287ef0ed..a78f8c0e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0691.py @@ -10,149 +10,237 @@ 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_0692 import WebhookIssuesTransferredPropChangesPropNewIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): + """Issue - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType + 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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] -class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): - """Repository +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): + """User""" - A git repository + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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. """ - 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 + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, + None, ] - 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 + due_on: Union[datetime, None] 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 + number: int open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str + state: Literal["open", "closed"] + title: str updated_at: datetime url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] -WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( + TypedDict +): + """User""" -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): - """License""" +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. + """ - key: str + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - spdx_id: str - url: Union[str, None] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -179,23 +267,115 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDic user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + """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 - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + +class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", ) 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 92c1ed4a5..3a3975bf0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0692.py @@ -9,385 +9,29 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0159 import IssueTypeType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0509 import WebhooksIssueType -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): - """Issue +class WebhookIssuesTypedType(TypedDict): + """issues typed event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["typed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssueType + type: Union[IssueTypeType, None] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: list[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType - ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( - TypedDict -): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", -) +__all__ = ("WebhookIssuesTypedType",) 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 eac237239..de9e23c31 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0693.py @@ -13,25 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0158 import IssueTypeType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0507 import WebhooksIssueType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0509 import WebhooksIssueType +from .group_0512 import WebhooksUserMannequinType -class WebhookIssuesTypedType(TypedDict): - """issues typed event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["typed"] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] issue: WebhooksIssueType - type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesTypedType",) +__all__ = ("WebhookIssuesUnassignedType",) 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 880311524..c6efe7b78 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0694.py @@ -9,29 +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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0507 import WebhooksIssueType -from .group_0510 import WebhooksUserMannequinType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0504 import WebhooksLabelType +from .group_0509 import WebhooksIssueType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] issue: WebhooksIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnassignedType",) +__all__ = ("WebhookIssuesUnlabeledType",) 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 6df7c8991..9ec5d6529 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0695.py @@ -13,25 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0502 import WebhooksLabelType -from .group_0507 import WebhooksIssueType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0696 import WebhookIssuesUnlockedPropIssueType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" - action: Literal["unlabeled"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - label: NotRequired[WebhooksLabelType] + issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnlabeledType",) +__all__ = ("WebhookIssuesUnlockedType",) 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 d1233576c..0470fc453 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0696.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0696.py @@ -9,27 +9,349 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0697 import WebhookIssuesUnlockedPropIssueType +from .group_0159 import IssueTypeType +from .group_0161 import SubIssuesSummaryType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookIssuesUnlockedPropIssueType(TypedDict): + """Issue - action: Literal["unlocked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[False] + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesUnlockedType",) + +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 + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class 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 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 + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: 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__ = ( + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropUserType", + "WebhookIssuesUnlockedPropIssueType", +) 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 c8ae758ec..552d59880 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0697.py @@ -9,359 +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_0158 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0511 import WebhooksIssue2Type -class WebhookIssuesUnlockedPropIssueType(TypedDict): - """Issue +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["unpinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssue2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: Literal[False] - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] - -class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class 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 - owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class 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 - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: 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__ = ( - "WebhookIssuesUnlockedPropIssuePropAssigneeType", - "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlockedPropIssuePropMilestoneType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssuePropPullRequestType", - "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesUnlockedPropIssuePropUserType", - "WebhookIssuesUnlockedPropIssueType", -) +__all__ = ("WebhookIssuesUnpinnedType",) 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 05ea0f336..88e3ed2b7 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,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0509 import WebhooksIssue2Type +from .group_0159 import IssueTypeType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0509 import WebhooksIssueType -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookIssuesUntypedType(TypedDict): + """issues untyped event""" - action: Literal["unpinned"] + action: Literal["untyped"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhooksIssueType + type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnpinnedType",) +__all__ = ("WebhookIssuesUntypedType",) 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 e71b486e3..c3468a121 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0699.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0699.py @@ -9,29 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0158 import IssueTypeType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0507 import WebhooksIssueType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0504 import WebhooksLabelType -class WebhookIssuesUntypedType(TypedDict): - """issues untyped event""" +class WebhookLabelCreatedType(TypedDict): + """label created event""" - action: Literal["untyped"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - type: Union[IssueTypeType, None] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookIssuesUntypedType",) +__all__ = ("WebhookLabelCreatedType",) 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 89a56965f..452ca680e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0700.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0700.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0502 import WebhooksLabelType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0504 import WebhooksLabelType -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookLabelCreatedType",) +__all__ = ("WebhookLabelDeletedType",) 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 7f2d74dc6..313f23d5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0701.py @@ -13,17 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0502 import WebhooksLabelType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0504 import WebhooksLabelType -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" +class WebhookLabelEditedType(TypedDict): + """label edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[WebhookLabelEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] label: WebhooksLabelType @@ -32,4 +33,39 @@ class WebhookLabelDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookLabelDeletedType",) +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + + +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str + + +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0702.py b/githubkit/versions/ghec_v2022_11_28/types/group_0702.py index 000443053..036c629e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0702.py @@ -13,59 +13,26 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0502 import WebhooksLabelType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0513 import WebhooksMarketplacePurchaseType +from .group_0514 import WebhooksPreviousMarketplacePurchaseType -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] + action: Literal["cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + repository: NotRequired[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__ = ("WebhookMarketplacePurchaseCancelledType",) 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 8479c7a11..7d7a8aeba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0703.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0703.py @@ -9,30 +9,78 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0511 import WebhooksMarketplacePurchaseType -from .group_0512 import WebhooksPreviousMarketplacePurchaseType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0513 import WebhooksMarketplacePurchaseType -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" - action: Literal["cancelled"] + action: Literal["changed"] effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + ] repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchaseCancelledType",) +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/ghec_v2022_11_28/types/group_0704.py b/githubkit/versions/ghec_v2022_11_28/types/group_0704.py index 48248c994..99f83adda 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0704.py @@ -13,47 +13,49 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0511 import WebhooksMarketplacePurchaseType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0513 import WebhooksMarketplacePurchaseType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - action: Literal["changed"] + action: Literal["pending_change"] effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType ] repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): """Marketplace Purchase""" - account: ( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType - ) + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType 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 + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType unit_count: int -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( TypedDict ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ id: int login: str @@ -62,10 +64,10 @@ class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccoun type: str -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( TypedDict ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" bullets: list[str] description: str @@ -79,8 +81,8 @@ class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanTy __all__ = ( - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeType", ) 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 235cd60e2..704fa9ce6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0705.py @@ -13,48 +13,48 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0511 import WebhooksMarketplacePurchaseType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0514 import WebhooksPreviousMarketplacePurchaseType -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["pending_change"] + action: Literal["pending_change_cancelled"] effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( TypedDict ): """Marketplace Purchase""" - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] + free_trial_ends_on: None + next_billing_date: Union[str, None] on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType unit_count: int -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( TypedDict ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt """ id: int @@ -64,10 +64,10 @@ class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseProp type: str -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( TypedDict ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" bullets: list[str] description: str @@ -81,8 +81,8 @@ class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseProp __all__ = ( - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledType", ) 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 7662a978e..93fc0f03d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0706.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0706.py @@ -9,80 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0512 import WebhooksPreviousMarketplacePurchaseType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0513 import WebhooksMarketplacePurchaseType +from .group_0514 import WebhooksPreviousMarketplacePurchaseType -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["pending_change_cancelled"] + action: Literal["purchased"] effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[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__ = ("WebhookMarketplacePurchasePurchasedType",) 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 2e5f671c4..aa893c860 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0707.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0707.py @@ -9,30 +9,64 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0511 import WebhooksMarketplacePurchaseType -from .group_0512 import WebhooksPreviousMarketplacePurchaseType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookMemberAddedType(TypedDict): + """member added event""" - action: Literal["purchased"] - effective_date: str + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchasePurchasedType",) +class WebhookMemberAddedPropChangesType(TypedDict): + """WebhookMemberAddedPropChanges""" + + permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] + role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] + + +class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] + + +class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str + + +__all__ = ( + "WebhookMemberAddedPropChangesPropPermissionType", + "WebhookMemberAddedPropChangesPropRoleNameType", + "WebhookMemberAddedPropChangesType", + "WebhookMemberAddedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0708.py b/githubkit/versions/ghec_v2022_11_28/types/group_0708.py index da830b9fd..c99b7f751 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0708.py @@ -13,18 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookMemberEditedType(TypedDict): + """member edited event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] member: Union[WebhooksUserType, None] @@ -33,40 +33,32 @@ class WebhookMemberAddedType(TypedDict): sender: SimpleUserType -class WebhookMemberAddedPropChangesType(TypedDict): - """WebhookMemberAddedPropChanges""" - - permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] - role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges + The changes to the collaborator permissions + """ -class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): - """WebhookMemberAddedPropChangesPropPermission + old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] + permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] - 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 WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropOldPermission""" + from_: str -class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): - """WebhookMemberAddedPropChangesPropRoleName - The role assigned to the collaborator. - """ +class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropPermission""" - to: str + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedType", + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedType", ) 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 db16c96dc..e3a5c9a91 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0709.py @@ -13,18 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookMemberRemovedType(TypedDict): + """member removed event""" - action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] member: Union[WebhooksUserType, None] @@ -33,32 +32,4 @@ class WebhookMemberEditedType(TypedDict): 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__ = ("WebhookMemberRemovedType",) 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 ed4c4fee3..6e7a2e862 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0710.py @@ -12,24 +12,56 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType +from .group_0515 import WebhooksTeamType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookMembershipAddedType(TypedDict): + """membership added event""" - action: Literal["removed"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] member: Union[WebhooksUserType, None] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMemberRemovedType",) +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_0711.py b/githubkit/versions/ghec_v2022_11_28/types/group_0711.py index 933fb2fe7..a47e35f77 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0711.py @@ -12,29 +12,29 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType -from .group_0513 import WebhooksTeamType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType +from .group_0515 import WebhooksTeamType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" - action: Literal["added"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] member: Union[WebhooksUserType, None] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] team: WebhooksTeamType -class WebhookMembershipAddedPropSenderType(TypedDict): +class WebhookMembershipRemovedPropSenderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -62,6 +62,6 @@ class WebhookMembershipAddedPropSenderType(TypedDict): __all__ = ( - "WebhookMembershipAddedPropSenderType", - "WebhookMembershipAddedType", + "WebhookMembershipRemovedPropSenderType", + "WebhookMembershipRemovedType", ) 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 ade1e8f2c..b1498245b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0712.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0712.py @@ -9,59 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType -from .group_0513 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0516 import MergeGroupType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - action: Literal["removed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["checks_requested"] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + merge_group: MergeGroupType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhooksTeamType + sender: NotRequired[SimpleUserType] -class WebhookMembershipRemovedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookMembershipRemovedPropSenderType", - "WebhookMembershipRemovedType", -) +__all__ = ("WebhookMergeGroupChecksRequestedType",) 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 48b7f62fa..b62ae8f3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0713.py @@ -13,16 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0514 import MergeGroupType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0516 import MergeGroupType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - action: Literal["checks_requested"] + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] installation: NotRequired[SimpleInstallationType] merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +31,4 @@ class WebhookMergeGroupChecksRequestedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMergeGroupChecksRequestedType",) +__all__ = ("WebhookMergeGroupDestroyedType",) 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 8fea0eb71..86f0fe3e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0714.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0714.py @@ -9,26 +9,57 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0514 import MergeGroupType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMergeGroupDestroyedType",) +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + + The deleted 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_0715.py b/githubkit/versions/ghec_v2022_11_28/types/group_0715.py index ec8820776..c2d4c12c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0715.py @@ -9,57 +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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0510 import WebhooksMilestoneType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["deleted"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int installation: NotRequired[SimpleInstallationType] + milestone: WebhooksMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook - - The deleted webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: list[str] - id: int - name: str - type: str - updated_at: str - - -class WebhookMetaDeletedPropHookPropConfigType(TypedDict): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] - insecure_ssl: str - secret: NotRequired[str] - url: str - - -__all__ = ( - "WebhookMetaDeletedPropHookPropConfigType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedType", -) +__all__ = ("WebhookMilestoneClosedType",) 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 210ffb64f..7d4930e3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0716.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0508 import WebhooksMilestoneType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0517 import WebhooksMilestone3Type -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["closed"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + milestone: WebhooksMilestone3Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMilestoneClosedType",) +__all__ = ("WebhookMilestoneCreatedType",) 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 2a2dfcc73..cf707098b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0717.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0515 import WebhooksMilestone3Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0510 import WebhooksMilestoneType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type + milestone: WebhooksMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMilestoneCreatedType",) +__all__ = ("WebhookMilestoneDeletedType",) 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 4be90224c..86a13defb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0718.py @@ -13,17 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0508 import WebhooksMilestoneType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0510 import WebhooksMilestoneType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] milestone: WebhooksMilestoneType @@ -32,4 +33,39 @@ class WebhookMilestoneDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookMilestoneDeletedType",) +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_0719.py b/githubkit/versions/ghec_v2022_11_28/types/group_0719.py index a7fa0cf30..f4c5c1c66 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0719.py @@ -13,59 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0508 import WebhooksMilestoneType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0517 import WebhooksMilestone3Type -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + milestone: WebhooksMilestone3Type 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 - - -__all__ = ( - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedType", -) +__all__ = ("WebhookMilestoneOpenedType",) 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 80acf6f10..3750abd5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0720.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0515 import WebhooksMilestone3Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" - action: Literal["opened"] + action: Literal["blocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookMilestoneOpenedType",) +__all__ = ("WebhookOrgBlockBlockedType",) 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 e2172185e..8b50b7c08 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0721.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" - action: Literal["blocked"] + action: Literal["unblocked"] blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookOrgBlockBlockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookOrgBlockBlockedType",) +__all__ = ("WebhookOrgBlockUnblockedType",) 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 0c40d7d1d..c2783296d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0722.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0518 import WebhooksMembershipType -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" - action: Literal["unblocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhooksMembershipType] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookOrgBlockUnblockedType",) +__all__ = ("WebhookOrganizationDeletedType",) 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 b42d73cc1..5311c6c6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0723.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0516 import WebhooksMembershipType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0518 import WebhooksMembershipType -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" - action: Literal["deleted"] + action: Literal["member_added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] + membership: WebhooksMembershipType organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookOrganizationDeletedType",) +__all__ = ("WebhookOrganizationMemberAddedType",) 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 69ac1e29a..1d06135b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0724.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_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0516 import WebhooksMembershipType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" - action: Literal["member_added"] + action: Literal["member_invited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType + invitation: WebhookOrganizationMemberInvitedPropInvitationType organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType + user: NotRequired[Union[WebhooksUserType, None]] -__all__ = ("WebhookOrganizationMemberAddedType",) +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_0725.py b/githubkit/versions/ghec_v2022_11_28/types/group_0725.py index 155047f40..304314375 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0725.py @@ -9,80 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0518 import WebhooksMembershipType -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" - action: Literal["member_invited"] + action: Literal["member_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType + membership: WebhooksMembershipType organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - user: NotRequired[Union[WebhooksUserType, None]] -class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): - """WebhookOrganizationMemberInvitedPropInvitation - - The invitation for the user or email if the action is `member_invited`. - """ - - created_at: 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__ = ("WebhookOrganizationMemberRemovedType",) 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 899680541..dc0a4e1ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0726.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0726.py @@ -13,23 +13,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0516 import WebhooksMembershipType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0518 import WebhooksMembershipType -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" - action: Literal["member_removed"] + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType + membership: NotRequired[WebhooksMembershipType] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberRemovedType",) +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookOrganizationRenamedPropChangesPropLoginType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0727.py b/githubkit/versions/ghec_v2022_11_28/types/group_0727.py index f9d0d2299..fbf589490 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0727.py @@ -9,44 +9,44 @@ 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_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0516 import WebhooksMembershipType +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" + 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] - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" + version: NotRequired[str] - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] +WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropMetadata +""" -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" - from_: NotRequired[str] +WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropDependenciesItems +""" __all__ = ( - "WebhookOrganizationRenamedPropChangesPropLoginType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedType", + "WebhookRubygemsMetadataPropDependenciesItemsType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataType", ) 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 fbf589490..ffd6798c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0728.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0729 import WebhookPackagePublishedPropPackageType -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 WebhookPackagePublishedType(TypedDict): + """package published event""" + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackagePublishedPropPackageType + 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__ = ("WebhookPackagePublishedType",) 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 b43ecf9d7..a4e13963d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0729.py @@ -9,27 +9,73 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0730 import WebhookPackagePublishedPropPackageType +from .group_0730 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + 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__ = ("WebhookPackagePublishedType",) + +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_0730.py b/githubkit/versions/ghec_v2022_11_28/types/group_0730.py index 7b8838203..35e8e32e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0730.py @@ -9,35 +9,79 @@ 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_0731 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0727 import WebhookRubygemsMetadataType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - Information about the package. - """ - - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str + 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 - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] + 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 WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -64,18 +108,396 @@ class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" +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 + """ - about_url: str + +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 - type: 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 - vendor: 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__ = ( - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", - "WebhookPackagePublishedPropPackageType", + "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_0731.py b/githubkit/versions/ghec_v2022_11_28/types/group_0731.py index 82212a21e..f59d0e9eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0731.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_0728 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0732 import WebhookPackageUpdatedPropPackageType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" +class WebhookPackageUpdatedType(TypedDict): + """package updated 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["updated"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType + repository: 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__ = ("WebhookPackageUpdatedType",) 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 c02842939..fdf152727 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0732.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0732.py @@ -9,27 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0733 import WebhookPackageUpdatedPropPackageType +from .group_0733 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - action: Literal["updated"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType - repository: RepositoryWebhooksType - sender: SimpleUserType + 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__ = ("WebhookPackageUpdatedType",) + +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_0733.py b/githubkit/versions/ghec_v2022_11_28/types/group_0733.py index 55251ee29..d9d0fd3d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0733.py @@ -9,33 +9,55 @@ 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_0734 import WebhookPackageUpdatedPropPackagePropPackageVersionType +from .group_0727 import WebhookRubygemsMetadataType -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + ] + body: str + body_html: str created_at: str - description: Union[str, None] - ecosystem: 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 - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + 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 WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -62,18 +84,93 @@ class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" +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""" - about_url: str + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int name: str - type: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str url: str - vendor: 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__ = ( - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", - "WebhookPackageUpdatedPropPackageType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionType", ) 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 f6ded52c6..350652e73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0734.py @@ -9,136 +9,52 @@ 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_0728 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPageBuildType(TypedDict): + """page_build event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None - ] - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] 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 + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + The [List GitHub Pages builds](https://docs.github.com/enterprise- + cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + """ - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[list[str]] - - -WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems -""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str + commit: Union[str, None] created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: str - size: int - state: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str updated_at: str + url: str -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" - 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 + message: Union[str, None] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): +class WebhookPageBuildPropBuildPropPusherType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -166,11 +82,8 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorTyp __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionType", + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildType", ) 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 1e37fddca..5c7881408 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0735.py @@ -9,81 +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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0519 import PersonalAccessTokenRequestType -class WebhookPageBuildType(TypedDict): - """page_build event""" +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - build: WebhookPageBuildPropBuildType + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - id: int - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType sender: SimpleUserType + installation: SimpleInstallationType -class WebhookPageBuildPropBuildType(TypedDict): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/enterprise- - cloud@latest//rest/pages/pages#list-github-pages-builds) itself. - """ - - commit: Union[str, None] - created_at: str - duration: int - error: WebhookPageBuildPropBuildPropErrorType - pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] - status: str - updated_at: str - url: str - - -class WebhookPageBuildPropBuildPropErrorType(TypedDict): - """WebhookPageBuildPropBuildPropError""" - - message: Union[str, None] - - -class WebhookPageBuildPropBuildPropPusherType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookPageBuildPropBuildPropErrorType", - "WebhookPageBuildPropBuildPropPusherType", - "WebhookPageBuildPropBuildType", - "WebhookPageBuildType", -) +__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) 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 5ac61ed8e..516e4cdfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0736.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0517 import PersonalAccessTokenRequestType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0519 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" - action: Literal["approved"] + action: Literal["cancelled"] personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] organization: OrganizationSimpleWebhooksType @@ -30,4 +30,4 @@ class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) 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 56a72b470..e1b0bcff2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0737.py @@ -13,21 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0517 import PersonalAccessTokenRequestType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0519 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" - action: Literal["cancelled"] + action: Literal["created"] personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] organization: OrganizationSimpleWebhooksType sender: SimpleUserType - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) 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 c89bcf271..167564552 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0738.py @@ -13,21 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0517 import PersonalAccessTokenRequestType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0519 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" - action: Literal["created"] + action: Literal["denied"] personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] organization: OrganizationSimpleWebhooksType + enterprise: NotRequired[EnterpriseWebhooksType] sender: SimpleUserType - installation: NotRequired[SimpleInstallationType] + installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) 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 ac3df2ff2..cb564a9d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0739.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0739.py @@ -9,25 +9,23 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0517 import PersonalAccessTokenRequestType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0740 import WebhookPingPropHookType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - sender: SimpleUserType - installation: SimpleInstallationType + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + zen: NotRequired[str] -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) +__all__ = ("WebhookPingType",) 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 140d94ab6..b85d37b50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0740.py @@ -9,23 +9,45 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0741 import WebhookPingPropHookType +from .group_0355 import HookResponseType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPingPropHookType(TypedDict): + """Webhook - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - zen: NotRequired[str] + The webhook that is being pinged + """ + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType + created_at: datetime + deliveries_url: NotRequired[str] + events: list[str] + id: int + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str + updated_at: datetime + url: NotRequired[str] -__all__ = ("WebhookPingType",) + +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" + + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookPingPropHookPropConfigType", + "WebhookPingPropHookType", +) 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 8b527e78e..76f44f172 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0741.py @@ -9,45 +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_0353 import HookResponseType +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded -class WebhookPingPropHookType(TypedDict): - """Webhook - - The webhook that is being pinged + The webhooks ping payload encoded with URL encoding. """ - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType - created_at: datetime - deliveries_url: NotRequired[str] - events: list[str] - id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str - updated_at: datetime - url: NotRequired[str] - - -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" - - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookPingPropHookPropConfigType", - "WebhookPingPropHookType", -) + payload: str + + +__all__ = ("WebhookPingFormEncodedType",) 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 76f44f172..0997a1281 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0742.py @@ -9,16 +9,44 @@ 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_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0520 import WebhooksProjectCardType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" - payload: str + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -__all__ = ("WebhookPingFormEncodedType",) +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_0743.py b/githubkit/versions/ghec_v2022_11_28/types/group_0743.py index 429a1e32e..abe66fff2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0743.py @@ -13,18 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0518 import WebhooksProjectCardType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0520 import WebhooksProjectCardType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,20 +32,4 @@ class WebhookProjectCardConvertedType(TypedDict): sender: SimpleUserType -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNoteType - - -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str - - -__all__ = ( - "WebhookProjectCardConvertedPropChangesPropNoteType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedType", -) +__all__ = ("WebhookProjectCardCreatedType",) 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 b54680157..e6e9c7e9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0744.py @@ -9,27 +9,76 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0518 import WebhooksProjectCardType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookProjectCardCreatedType(TypedDict): - """project_card 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_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + project_card: WebhookProjectCardDeletedPropProjectCardType + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: SimpleUserType -__all__ = ("WebhookProjectCardCreatedType",) +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_0745.py b/githubkit/versions/ghec_v2022_11_28/types/group_0745.py index 54bee14fc..41d0600b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0745.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0745.py @@ -9,76 +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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0520 import WebhooksProjectCardType -class WebhookProjectCardDeletedType(TypedDict): - """project_card 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_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -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] +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNoteType + + +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] __all__ = ( - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedType", + "WebhookProjectCardEditedPropChangesPropNoteType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedType", ) 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 318af83c0..ab95ec9d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0746.py @@ -9,44 +9,91 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0518 import WebhooksProjectCardType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType + action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType + project_card: WebhookProjectCardMovedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" - note: WebhookProjectCardEditedPropChangesPropNoteType + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" - from_: Union[str, None] + 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__ = ( - "WebhookProjectCardEditedPropChangesPropNoteType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedType", + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedType", ) 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 f3f83f3bb..c75678d30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0747.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0747.py @@ -13,58 +13,27 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" - - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - 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] + after_id: NotRequired[Union[int, None]] archived: bool column_id: int column_url: str content_url: NotRequired[str] created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] id: int node_id: str - note: Union[Union[str, None], None] + note: Union[str, None] project_url: str updated_at: datetime url: str -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -91,9 +60,6 @@ class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): __all__ = ( - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedType", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof0Type", ) 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 c75678d30..8e4564103 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0748.py @@ -9,44 +9,41 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" - 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 + 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 WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): - """User""" +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[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] @@ -54,12 +51,11 @@ class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(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__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof0Type", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof1Type", ) 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 8e4564103..0409dd308 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0749.py @@ -9,53 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0521 import WebhooksProjectType -class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] - archived: NotRequired[bool] - column_id: NotRequired[int] - column_url: NotRequired[str] - created_at: NotRequired[str] - creator: NotRequired[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] - ] - id: NotRequired[int] - node_id: NotRequired[str] - note: NotRequired[Union[str, None]] - project_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof1Type", -) + +class WebhookProjectClosedType(TypedDict): + """project closed event""" + + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + + +__all__ = ("WebhookProjectClosedType",) 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 7135437b4..9bb820b66 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0750.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0519 import WebhooksProjectType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0522 import WebhooksProjectColumnType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" - action: Literal["closed"] + 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__ = ("WebhookProjectClosedType",) +__all__ = ("WebhookProjectColumnCreatedType",) 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 c550973f2..8128ed033 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0751.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0751.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0520 import WebhooksProjectColumnType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0522 import WebhooksProjectColumnType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectColumnCreatedType",) +__all__ = ("WebhookProjectColumnDeletedType",) 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 c7ac54808..3c6b2db66 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0752.py @@ -9,27 +9,44 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0520 import WebhooksProjectColumnType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0522 import WebhooksProjectColumnType -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project_column: WebhooksProjectColumnType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectColumnDeletedType",) +class WebhookProjectColumnEditedPropChangesType(TypedDict): + """WebhookProjectColumnEditedPropChanges""" + + name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + + +class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookProjectColumnEditedPropChangesPropNameType", + "WebhookProjectColumnEditedPropChangesType", + "WebhookProjectColumnEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0753.py b/githubkit/versions/ghec_v2022_11_28/types/group_0753.py index 392fe46fb..36b227e86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0753.py @@ -13,40 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0520 import WebhooksProjectColumnType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0522 import WebhooksProjectColumnType -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" - action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType + action: Literal["moved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project_column: WebhooksProjectColumnType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" - - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] - - -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str - - -__all__ = ( - "WebhookProjectColumnEditedPropChangesPropNameType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedType", -) +__all__ = ("WebhookProjectColumnMovedType",) 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 12b30e70c..3a5b50724 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0520 import WebhooksProjectColumnType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0521 import WebhooksProjectType -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" +class WebhookProjectCreatedType(TypedDict): + """project created event""" - action: Literal["moved"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project: WebhooksProjectType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectColumnMovedType",) +__all__ = ("WebhookProjectCreatedType",) 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 30c0e5b68..c78546f46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0755.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0519 import WebhooksProjectType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0521 import WebhooksProjectType -class WebhookProjectCreatedType(TypedDict): - """project created event""" +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectCreatedType",) +__all__ = ("WebhookProjectDeletedType",) 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 8ce36cc92..efdaf318c 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,55 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0519 import WebhooksProjectType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0521 import WebhooksProjectType -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" +class WebhookProjectEditedType(TypedDict): + """project edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[WebhookProjectEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project: WebhooksProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectDeletedType",) +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/ghec_v2022_11_28/types/group_0757.py b/githubkit/versions/ghec_v2022_11_28/types/group_0757.py index 5cfd70a09..105d72b1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0757.py @@ -13,51 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0519 import WebhooksProjectType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0521 import WebhooksProjectType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["reopened"] 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__ = ("WebhookProjectReopenedType",) 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 a588b75e3..ec9520c71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0758.py @@ -13,23 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0519 import WebhooksProjectType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0523 import ProjectsV2Type -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" - action: Literal["reopened"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["closed"] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectReopenedType",) +__all__ = ("WebhookProjectsV2ProjectClosedType",) 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 275e7abe5..5e041316c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0759.py @@ -13,19 +13,22 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0521 import ProjectsV2Type +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0523 import ProjectsV2Type -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated - action: Literal["closed"] + A project was created + """ + + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectClosedType",) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) 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 aa8cd9634..359586d23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0760.py @@ -13,22 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0521 import ProjectsV2Type +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0523 import ProjectsV2Type -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" - A project was created - """ - - action: Literal["created"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) 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 c469e5947..1d03013f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0761.py @@ -9,23 +9,72 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0521 import ProjectsV2Type +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0523 import ProjectsV2Type -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +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_0762.py b/githubkit/versions/ghec_v2022_11_28/types/group_0762.py index 2a416014b..d3577ad85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0762.py @@ -9,72 +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_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0521 import ProjectsV2Type +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0524 import WebhooksProjectChangesType +from .group_0525 import ProjectsV2ItemType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + action: Literal["archived"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_item: ProjectsV2ItemType 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__ = ("WebhookProjectsV2ItemArchivedType",) 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 8e317b671..01305953c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0763.py @@ -9,25 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0522 import WebhooksProjectChangesType -from .group_0523 import ProjectsV2ItemType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0525 import ProjectsV2ItemType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["archived"] - changes: WebhooksProjectChangesType + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemArchivedType",) +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_0764.py b/githubkit/versions/ghec_v2022_11_28/types/group_0764.py index 12af59ba6..299c88005 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0764.py @@ -9,43 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0523 import ProjectsV2ItemType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0525 import ProjectsV2ItemType -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType 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__ = ("WebhookProjectsV2ItemCreatedType",) 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 e1bf186cb..2181976d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0765.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0523 import ProjectsV2ItemType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0525 import ProjectsV2ItemType -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" - action: Literal["created"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookProjectsV2ItemDeletedType",) 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 2d2e52821..2ef0b8aa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0766.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0766.py @@ -9,23 +9,107 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0523 import ProjectsV2ItemType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0525 import ProjectsV2ItemType -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited Event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, + ] + ] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +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_0767.py b/githubkit/versions/ghec_v2022_11_28/types/group_0767.py index a4f5f83e3..4b849a074 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0767.py @@ -13,103 +13,41 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0523 import ProjectsV2ItemType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0525 import ProjectsV2ItemType -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" - 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, - ] + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType ] - 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""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( + TypedDict +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" from_: NotRequired[Union[str, None]] to: NotRequired[Union[str, None]] __all__ = ( - "ProjectsV2IterationSettingType", - "ProjectsV2SingleSelectOptionType", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedType", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedType", ) 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 e7fc37c6b..b588d6f5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0768.py @@ -9,45 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0523 import ProjectsV2ItemType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0524 import WebhooksProjectChangesType +from .group_0525 import ProjectsV2ItemType -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["restored"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): - """WebhookProjectsV2ItemReorderedPropChanges""" - - previous_projects_v2_item_node_id: NotRequired[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType - ] - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( - TypedDict -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedType", -) +__all__ = ("WebhookProjectsV2ItemRestoredType",) 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 e9f7c13bd..d27ef016c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0769.py @@ -13,21 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0522 import WebhooksProjectChangesType -from .group_0523 import ProjectsV2ItemType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0523 import ProjectsV2Type -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["restored"] - changes: WebhooksProjectChangesType + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemRestoredType",) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) 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 e2fc17112..4e3dee3a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0770.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0521 import ProjectsV2Type +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0526 import ProjectsV2StatusUpdateType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): + """Projects v2 Status Update Created Event""" - action: Literal["reopened"] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) 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 acccfe1f6..e2263c26c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0771.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0524 import ProjectsV2StatusUpdateType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0526 import ProjectsV2StatusUpdateType -class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): + """Projects v2 Status Update Deleted Event""" - action: Literal["created"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) +__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) 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 0e4700ffc..d1560b303 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0772.py @@ -9,23 +9,77 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0524 import ProjectsV2StatusUpdateType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0526 import ProjectsV2StatusUpdateType -class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2StatusUpdateEditedType(TypedDict): + """Projects v2 Status Update Edited Event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) +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_0773.py b/githubkit/versions/ghec_v2022_11_28/types/group_0773.py index ce066f0df..8ea7c855e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0773.py @@ -9,77 +9,23 @@ from __future__ import annotations -from datetime import date -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0524 import ProjectsV2StatusUpdateType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookProjectsV2StatusUpdateEditedType(TypedDict): - """Projects v2 Status Update Edited Event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType 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__ = ("WebhookPublicType",) 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 1576adf74..60c90624a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0774.py @@ -9,23 +9,950 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0500 import WebhooksUserType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" + action: Literal["assigned"] + assignee: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPublicType",) +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAssignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAssignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0775.py b/githubkit/versions/ghec_v2022_11_28/types/group_0775.py index 20fc320cf..1b704bfc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0775.py @@ -14,38 +14,42 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0498 import WebhooksUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["assigned"] - assignee: Union[WebhooksUserType, None] + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAssignedPropPullRequestType + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestAssignedPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestAssignedPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +61,10 @@ class WebhookPullRequestAssignedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestAssignedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +76,11 @@ class WebhookPullRequestAssignedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestAssignedPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +89,24 @@ class WebhookPullRequestAssignedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +116,10 @@ class WebhookPullRequestAssignedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] -class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,12 +141,14 @@ class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(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 WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -160,12 +170,11 @@ class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(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 WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -174,12 +183,13 @@ class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -208,7 +218,7 @@ class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -220,7 +230,7 @@ class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -247,7 +257,7 @@ class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -257,7 +267,8 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -273,7 +284,9 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -295,12 +308,12 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(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 WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -329,7 +342,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -356,48 +369,58 @@ class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType ) - review_comments: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -405,7 +428,7 @@ class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -413,29 +436,35 @@ class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -462,7 +491,7 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -505,10 +534,10 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(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 @@ -522,7 +551,8 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -537,10 +567,11 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -574,7 +605,7 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -586,7 +617,9 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -613,10 +646,12 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -625,17 +660,46 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] + 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 WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -695,7 +759,8 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -710,10 +775,11 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -747,7 +813,7 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -759,7 +825,9 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -786,10 +854,12 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -798,34 +868,7 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsTy 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( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -842,7 +885,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 node_id: str parent: NotRequired[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -853,11 +896,11 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] @@ -873,7 +916,9 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -888,7 +933,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -899,10 +944,12 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] html_url: str @@ -918,41 +965,41 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent __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", + "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_0776.py b/githubkit/versions/ghec_v2022_11_28/types/group_0776.py index cdc5451a7..59c2cf124 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0776.py @@ -14,40 +14,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["auto_merge_disabled"] + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, None, ] ] @@ -62,9 +62,9 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -76,11 +76,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -89,10 +89,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] ] milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None ] node_id: str number: int @@ -100,13 +100,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -116,10 +116,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -146,7 +146,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -174,7 +174,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( url: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -183,13 +183,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedD commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -218,7 +218,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabled user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -230,7 +230,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(Type url: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -257,7 +257,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -267,7 +267,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedD closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -284,7 +284,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedD url: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -308,12 +308,12 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator 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 WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -342,7 +342,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -369,26 +369,24 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -396,7 +394,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsTyp href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -404,15 +402,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -420,7 +416,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -428,7 +424,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComme href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -436,15 +432,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComme href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -452,19 +446,19 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesTyp href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -491,7 +485,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -534,10 +528,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(Typ 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 @@ -551,7 +545,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(Typ language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -567,11 +561,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(Typ open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -605,7 +599,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(Typ web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -617,7 +611,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLice url: Union[str, None] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -646,12 +640,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwne user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -660,19 +652,19 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPerm triage: NotRequired[bool] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType sha: str user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -699,7 +691,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -759,7 +751,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(Typ language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -775,11 +767,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(Typ open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -813,7 +805,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(Typ web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -825,7 +817,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLice url: Union[str, None] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -854,12 +846,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwne user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -868,7 +858,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPerm triage: NotRequired[bool] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -885,7 +875,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt node_id: str parent: NotRequired[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -896,11 +886,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt url: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] @@ -916,7 +906,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt url: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -933,7 +923,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsT node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -944,11 +934,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsT url: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt """ description: Union[str, None] @@ -965,41 +955,41 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsP __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", + "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_0777.py b/githubkit/versions/ghec_v2022_11_28/types/group_0777.py index d0909121d..39ec70ba5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0777.py @@ -9,987 +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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0527 import PullRequestWebhookType -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["auto_merge_enabled"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType 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__ = ("WebhookPullRequestClosedType",) 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 457e02afe..a173695bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0778.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0525 import PullRequestWebhookType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0527 import PullRequestWebhookType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["closed"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestClosedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookPullRequestClosedType",) +__all__ = ("WebhookPullRequestConvertedToDraftType",) 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 df08eeaa6..333afe9e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0779.py @@ -13,24 +13,24 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0525 import PullRequestWebhookType +from .group_0158 import MilestoneType +from .group_0487 import EnterpriseWebhooksType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0529 import WebhooksPullRequest5Type -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["converted_to_draft"] + 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__ = ("WebhookPullRequestConvertedToDraftType",) +__all__ = ("WebhookPullRequestDemilestonedType",) 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 ff219d821..0820acc0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0780.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0780.py @@ -9,28 +9,961 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0157 import MilestoneType -from .group_0485 import EnterpriseWebhooksType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0527 import WebhooksPullRequest5Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["demilestoned"] + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] + installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookPullRequestDemilestonedType",) +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_0781.py b/githubkit/versions/ghec_v2022_11_28/types/group_0781.py index 5c8af29a7..857e3cbfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0781.py @@ -9,961 +9,79 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0527 import PullRequestWebhookType -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["dequeued"] + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType 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: PullRequestWebhookType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges - 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. + The changes to the comment if the action was `edited`. """ - 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 + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" - href: str + from_: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" - href: str + from_: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" - href: str + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType -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. - """ +class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" - 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] + from_: str -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" +class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" - 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_: 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", + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedType", ) 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 b9ea37231..abd84be53 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0782.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0782.py @@ -9,79 +9,947 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0525 import PullRequestWebhookType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" - The changes to the comment if the action was `edited`. + 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. """ - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + 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 WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" - from_: str + href: str -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" - from_: str + href: str -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType + href: str -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" +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. + """ - 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[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + 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 WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - 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", + "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_0783.py b/githubkit/versions/ghec_v2022_11_28/types/group_0783.py index be288698a..c5d57554b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0783.py @@ -14,36 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0504 import WebhooksLabelType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" - action: Literal["enqueued"] + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType + pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + links: WebhookPullRequestLabeledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +57,8 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -68,11 +70,11 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType + head: WebhookPullRequestLabeledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -81,22 +83,22 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -106,10 +108,10 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,12 +133,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(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 WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -158,11 +160,11 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(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 WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -171,14 +173,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -205,7 +205,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -217,7 +217,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -239,12 +239,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(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 WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +254,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +270,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -297,7 +297,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,12 +321,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 WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -353,56 +353,54 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +408,29 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -459,7 +457,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -519,7 +517,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -534,10 +532,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -571,7 +569,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -583,7 +581,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -610,10 +608,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -622,44 +620,17 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] 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] + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -719,7 +690,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -734,10 +705,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -771,7 +742,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -783,7 +754,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -810,10 +781,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -822,7 +793,34 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +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 @@ -831,30 +829,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, + 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 WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] @@ -870,7 +868,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -885,7 +883,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -896,10 +894,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -915,41 +913,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", + "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_0784.py b/githubkit/versions/ghec_v2022_11_28/types/group_0784.py index fcd700ee6..a68333214 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0784.py @@ -14,38 +14,36 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0502 import WebhooksLabelType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["labeled"] + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType + pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): +class WebhookPullRequestLockedPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinksType + links: WebhookPullRequestLockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +55,8 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +68,11 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType + head: WebhookPullRequestLockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +81,22 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +106,10 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,12 +131,12 @@ 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 WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -164,7 +162,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,12 +171,12 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -205,7 +203,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -217,7 +215,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -244,7 +242,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +252,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +268,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -292,12 +290,12 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(Typed 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 WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -326,7 +324,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0T user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -353,84 +351,82 @@ class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -457,7 +453,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -517,7 +513,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -532,10 +528,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -569,9 +565,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): """License""" key: str @@ -581,7 +575,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -608,10 +602,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(Type user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -620,17 +614,17 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" label: Union[str, None] ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -690,7 +684,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -705,10 +699,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -742,9 +736,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): """License""" key: str @@ -754,7 +746,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -781,10 +773,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(Type user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -793,7 +785,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -820,7 +812,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -837,7 +829,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T node_id: str parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -848,11 +840,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] @@ -868,7 +860,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -883,7 +875,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -894,10 +886,10 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -913,41 +905,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", + "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_0785.py b/githubkit/versions/ghec_v2022_11_28/types/group_0785.py index 850e5b99c..cda92dbca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0785.py @@ -9,937 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0158 import MilestoneType +from .group_0487 import EnterpriseWebhooksType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0529 import WebhooksPullRequest5Type -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - action: Literal["locked"] + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -class WebhookPullRequestLockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedType", -) +__all__ = ("WebhookPullRequestMilestonedType",) 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 61860d300..e02c83e3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0786.py @@ -13,24 +13,24 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0157 import MilestoneType -from .group_0485 import EnterpriseWebhooksType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0527 import WebhooksPullRequest5Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0527 import PullRequestWebhookType -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - action: Literal["milestoned"] + action: Literal["opened"] 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__ = ("WebhookPullRequestOpenedType",) 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 358a0823b..4ec6a897d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0787.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0525 import PullRequestWebhookType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0527 import PullRequestWebhookType -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["opened"] + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestOpenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookPullRequestOpenedType",) +__all__ = ("WebhookPullRequestReadyForReviewType",) 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 0378fbfde..d81046506 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0788.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0525 import PullRequestWebhookType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0527 import PullRequestWebhookType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - action: Literal["ready_for_review"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestReadyForReviewType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookPullRequestReadyForReviewType",) +__all__ = ("WebhookPullRequestReopenedType",) 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 ee65d83ac..9c3373c2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0789.py @@ -9,28 +9,1095 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0525 import PullRequestWebhookType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - action: Literal["reopened"] + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestReopenedType",) +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""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] + ] + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + 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: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + ] + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( + 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: NotRequired[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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + 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( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + 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 + + +__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", +) 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 65830eca4..30ec5d9bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0790.py @@ -14,156 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0530 import WebhooksReviewCommentType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + action: Literal["deleted"] + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): - """Pull Request Review Comment +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - 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""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -179,10 +62,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): ] auto_merge: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None ] ] - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -190,31 +73,31 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -223,10 +106,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -248,12 +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( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -277,11 +160,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -290,13 +173,13 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -325,7 +208,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -339,7 +222,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -349,7 +232,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -366,7 +249,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -390,12 +273,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -419,12 +302,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -451,26 +334,26 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -478,7 +361,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -486,7 +369,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -494,7 +377,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -502,7 +385,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -510,7 +393,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -518,7 +401,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -526,7 +409,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -534,19 +417,19 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -575,7 +458,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -637,7 +520,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -653,11 +536,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -691,7 +574,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -703,7 +586,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -732,10 +615,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss ions """ @@ -746,21 +629,21 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str ref: str repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -808,7 +691,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,7 +705,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -838,11 +721,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -876,7 +759,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -888,7 +771,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -917,10 +800,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss ions """ @@ -931,7 +814,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -960,7 +843,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -969,29 +852,29 @@ 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, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems Oneof1PropParent """ @@ -1008,7 +891,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -1025,7 +908,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1036,10 +919,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp Parent """ @@ -1057,47 +940,40 @@ 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", + "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_0791.py b/githubkit/versions/ghec_v2022_11_28/types/group_0791.py index 488d9bc4c..a1324ab7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0791.py @@ -14,39 +14,41 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0528 import WebhooksReviewCommentType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0508 import WebhooksChangesType +from .group_0530 import WebhooksReviewCommentType -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhooksChangesType comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -62,10 +64,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): ] auto_merge: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None ] ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -73,31 +75,31 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -106,10 +108,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,7 +138,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -162,9 +164,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsTyp subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,13 +176,13 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -208,7 +211,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -222,7 +225,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -232,7 +235,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -249,7 +252,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -273,12 +276,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 WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -307,7 +310,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -330,30 +333,30 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDic 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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -361,7 +364,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -369,7 +372,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -377,7 +380,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -385,7 +388,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -393,7 +396,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -401,7 +404,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -409,7 +412,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -417,19 +420,19 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -458,7 +461,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -520,7 +523,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -536,11 +539,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -574,7 +577,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -586,7 +589,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -615,11 +618,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool @@ -629,21 +632,21 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str ref: str repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -705,7 +708,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -721,11 +724,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -759,7 +762,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -771,7 +774,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -800,11 +803,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool @@ -814,7 +817,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -843,7 +846,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -860,7 +863,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -871,11 +874,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] @@ -891,7 +894,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -908,7 +911,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -919,11 +922,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] @@ -940,40 +943,40 @@ 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", + "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_0792.py b/githubkit/versions/ghec_v2022_11_28/types/group_0792.py index c4fa74301..6bb8a9f47 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0792.py @@ -14,42 +14,116 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0506 import WebhooksChangesType -from .group_0528 import WebhooksReviewCommentType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksReviewCommentType + action: Literal["dismissed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType repository: RepositoryWebhooksType + review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserType -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType + 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[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None ] ] author_association: Literal[ @@ -62,44 +136,40 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] + auto_merge: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType 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 + draft: bool + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -108,10 +178,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,14 +203,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(Typed 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 WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -162,12 +230,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 WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -176,13 +243,13 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(Type commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,9 +278,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -225,7 +290,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -235,7 +300,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -252,7 +317,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -276,12 +341,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 WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -305,12 +370,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 WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -333,30 +398,28 @@ 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 WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -364,7 +427,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsT href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -372,23 +435,19 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsTy href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -396,7 +455,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -404,15 +463,13 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -420,21 +477,19 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesT href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -461,9 +516,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -523,7 +576,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -539,11 +592,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -577,7 +630,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -589,7 +642,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -618,12 +671,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -632,23 +683,21 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str ref: str repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -708,7 +757,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -724,11 +773,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -762,7 +811,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -774,7 +823,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -803,12 +852,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -817,9 +864,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -846,7 +891,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -855,30 +900,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, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -894,7 +939,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -911,7 +956,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -922,11 +967,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] @@ -943,40 +988,45 @@ 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", + "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_0793.py b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py index 25fa4e7dc..e302d2d2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py @@ -14,117 +14,49 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0531 import WebhooksReviewType -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["dismissed"] + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + pull_request: WebhookPullRequestReviewEditedPropPullRequestType repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType + review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" - The review that was affected. - """ + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - 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 WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" -class WebhookPullRequestReviewDismissedPropReviewPropUserType(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", "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): +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -137,9 +69,9 @@ class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -147,29 +79,29 @@ class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -178,10 +110,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -208,7 +140,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -234,7 +166,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(Typ url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -243,13 +175,13 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -278,7 +210,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -290,7 +222,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -300,8 +232,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -317,7 +248,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -341,12 +272,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorTy 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 WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -375,7 +306,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -402,52 +333,48 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -455,7 +382,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -463,33 +390,29 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -516,7 +439,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -562,7 +485,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -576,12 +498,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -592,11 +512,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -605,10 +524,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -623,14 +538,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -642,7 +555,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -671,10 +584,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -683,21 +596,17 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" label: str ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -743,7 +652,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -757,12 +665,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -773,11 +679,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -786,10 +691,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -804,14 +705,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -823,7 +722,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -852,10 +751,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -864,7 +763,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -891,7 +790,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -908,7 +807,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -919,11 +818,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] @@ -939,7 +838,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -956,7 +855,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -967,12 +866,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -988,45 +885,42 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPro __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", + "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_0794.py b/githubkit/versions/ghec_v2022_11_28/types/group_0794.py index 685f8e540..388cc13c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0794.py @@ -14,49 +14,72 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0529 import WebhooksReviewType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType repository: RepositoryWebhooksType - review: WebhooksReviewType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserType -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" - - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(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 WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, + ] assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -69,51 +92,75 @@ class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType + 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: WebhookPullRequestReviewEditedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] + labels: list[ + 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[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, ] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType + 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[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -135,12 +182,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(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 WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -162,11 +211,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedD 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 WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -175,13 +227,13 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -210,7 +262,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -222,7 +276,38 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict url: str -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -232,7 +317,8 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -248,7 +334,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -272,12 +358,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( 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 WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -301,12 +387,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn 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 WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -328,53 +416,63 @@ class WebhookPullRequestReviewEditedPropPullRequestPropUserType(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 WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType ) - review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -382,7 +480,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentTyp href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -390,29 +488,42 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsTy href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + None, + ] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -439,7 +550,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -485,6 +598,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic has_pages: bool has_projects: bool has_wiki: bool + has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -498,10 +612,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, + 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] @@ -512,10 +628,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -524,6 +641,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic 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 @@ -538,12 +659,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic 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 WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -555,7 +678,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseTy url: Union[str, None] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -584,10 +707,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType user_view_type: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -596,17 +721,55 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissio triage: NotRequired[bool] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" label: str ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + None, + ] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): +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 @@ -652,6 +815,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic has_pages: bool has_projects: bool has_wiki: bool + has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -665,10 +829,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, + 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] @@ -679,10 +845,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -691,6 +858,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic 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 @@ -705,12 +876,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic 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 WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -722,7 +895,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseTy url: Union[str, None] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -751,10 +924,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType user_view_type: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -763,34 +938,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissio 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( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -807,7 +955,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -818,11 +966,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -838,7 +986,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -847,29 +995,31 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( """ 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[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + 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 WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] html_url: str @@ -885,42 +1035,42 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropPa __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", + "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_0795.py b/githubkit/versions/ghec_v2022_11_28/types/group_0795.py index 9a0294592..8df366f23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0795.py @@ -14,70 +14,85 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): - """User""" +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + description: Union[str, 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"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + 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 WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, None, ] assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, None, ] ] @@ -92,10 +107,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, None, ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -107,12 +122,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType ] locked: bool maintainer_can_modify: NotRequired[bool] @@ -123,12 +138,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) merged_at: Union[datetime, None] merged_by: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, None, ] ] milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, None, ] node_id: str @@ -137,13 +152,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -154,11 +169,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( TypedDict ): """User""" @@ -187,7 +202,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -216,7 +231,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesIt user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( TypedDict ): """PullRequestAutoMerge @@ -227,13 +242,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeTy commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -262,7 +277,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -276,7 +291,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( TypedDict ): """User""" @@ -305,7 +320,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( TypedDict ): """Milestone @@ -317,7 +332,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneTy closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -334,7 +349,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneTy url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -363,7 +378,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -392,7 +407,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( TypedDict ): """User""" @@ -421,26 +436,26 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -448,7 +463,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -456,7 +471,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -464,7 +479,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHt href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -472,7 +487,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIs href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -480,7 +495,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -488,7 +503,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -496,7 +511,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -504,24 +519,24 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSt href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str ref: str repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType ) sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, None, ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -550,7 +565,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -612,7 +627,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -628,11 +643,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -666,7 +681,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -678,7 +693,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -707,10 +722,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP ermissions """ @@ -721,24 +736,24 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str ref: str repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType ) sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, None, ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -767,7 +782,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -829,7 +844,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -845,11 +860,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -883,7 +898,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -895,7 +910,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -924,10 +939,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP ermissions """ @@ -938,7 +953,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -955,7 +970,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -966,10 +981,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer sItemsOneof1PropParent """ @@ -986,7 +1001,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -1003,7 +1018,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1014,10 +1029,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte msPropParent """ @@ -1035,42 +1050,43 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0Type", + "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_0796.py b/githubkit/versions/ghec_v2022_11_28/types/group_0796.py index 0414d0c02..8372a8f01 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0796.py @@ -14,85 +14,69 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["review_request_removed"] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" + avatar_url: NotRequired[str] 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 + email: NotRequired[Union[str, None]] + events_url: 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"] - repositories_url: str - slug: str - url: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, None, ] ] @@ -107,10 +91,9 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -122,12 +105,12 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType ] locked: bool maintainer_can_modify: NotRequired[bool] @@ -138,13 +121,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) merged_at: Union[datetime, None] merged_by: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None ] ] milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None ] node_id: str number: int @@ -152,13 +133,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -169,13 +150,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -197,12 +176,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -226,12 +205,12 @@ 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( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( TypedDict ): """PullRequestAutoMerge @@ -242,13 +221,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeTy commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -277,7 +256,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -291,9 +270,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -320,7 +297,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( TypedDict ): """Milestone @@ -332,7 +309,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -349,7 +326,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -373,12 +350,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -407,9 +384,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -431,31 +406,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -463,7 +438,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -471,7 +446,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -479,7 +454,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -487,7 +462,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -495,7 +470,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -503,7 +478,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -511,7 +486,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -519,24 +494,19 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -565,7 +535,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -627,7 +597,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -643,11 +613,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -681,7 +651,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -693,7 +663,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -722,11 +692,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions """ admin: bool @@ -736,24 +706,19 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -782,7 +747,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -844,7 +809,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -860,11 +825,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -898,7 +863,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -910,7 +875,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -939,11 +904,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions """ admin: bool @@ -953,7 +918,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -970,7 +935,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -981,11 +946,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -1001,7 +966,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -1010,30 +975,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, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent """ description: Union[str, None] @@ -1050,43 +1015,42 @@ 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", + "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_0797.py b/githubkit/versions/ghec_v2022_11_28/types/group_0797.py index 1635704da..32d1fbafd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0797.py @@ -14,69 +14,81 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): - """User""" +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: 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", "Mannequin"]] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): +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: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, None, ] ] @@ -91,9 +103,9 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -105,12 +117,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType ] locked: bool maintainer_can_modify: NotRequired[bool] @@ -121,11 +133,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): merged_at: Union[datetime, None] merged_by: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None ] ] milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None ] node_id: str number: int @@ -133,13 +145,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -150,11 +162,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -181,7 +193,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -210,7 +222,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsTy user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( TypedDict ): """PullRequestAutoMerge @@ -221,13 +233,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -256,7 +268,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -270,7 +282,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -297,7 +309,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( TypedDict ): """Milestone @@ -309,7 +321,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -326,7 +338,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -355,7 +367,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -384,7 +396,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -411,26 +423,26 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -438,7 +450,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -446,7 +458,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -454,7 +466,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -462,7 +474,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueTy href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -470,7 +482,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -478,7 +490,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -486,7 +498,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -494,19 +506,19 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -535,7 +547,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -597,7 +609,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -613,11 +625,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -651,7 +663,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -663,7 +675,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -692,10 +704,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis sions """ @@ -706,19 +718,19 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -747,7 +759,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -809,7 +821,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -825,11 +837,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -863,7 +875,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -875,7 +887,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -904,10 +916,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis sions """ @@ -918,7 +930,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -927,29 +939,29 @@ 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, + 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem sOneof1PropParent """ @@ -966,7 +978,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -983,7 +995,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -994,10 +1006,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro pParent """ @@ -1015,42 +1027,43 @@ 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", + "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_0798.py b/githubkit/versions/ghec_v2022_11_28/types/group_0798.py index f55773d9f..346466e8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0798.py @@ -14,82 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0531 import WebhooksReviewType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - action: Literal["review_requested"] + action: Literal["submitted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + review: WebhooksReviewType 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None ] ] author_association: Literal[ @@ -103,70 +60,51 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType - ] + 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -193,9 +131,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -219,12 +155,9 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsTy subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,13 +166,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -268,9 +201,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -282,36 +213,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 WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -321,7 +223,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -338,7 +240,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -367,7 +269,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -391,12 +293,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -423,26 +325,24 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -450,7 +350,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -458,23 +358,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -482,7 +378,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -490,15 +386,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -506,21 +400,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -547,9 +439,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -609,7 +499,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -625,11 +515,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -663,7 +553,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -675,7 +565,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -704,12 +594,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -718,50 +606,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -821,7 +680,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -837,11 +696,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -875,7 +734,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -887,7 +746,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -916,12 +775,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -930,7 +787,34 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +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 @@ -939,30 +823,30 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -978,7 +862,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -995,7 +879,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1006,11 +890,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] @@ -1027,43 +911,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", + "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_0799.py b/githubkit/versions/ghec_v2022_11_28/types/group_0799.py index 265bfc68a..dcd7eaadd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0799.py @@ -14,39 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0529 import WebhooksReviewType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" - action: Literal["submitted"] + action: Literal["resolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType repository: RepositoryWebhooksType - review: WebhooksReviewType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, ] ] author_association: Literal[ @@ -60,9 +60,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,29 +70,31 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -101,10 +103,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -126,12 +128,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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -153,11 +157,11 @@ 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] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -166,13 +170,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -201,7 +205,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -213,7 +219,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -223,7 +229,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -240,7 +246,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -264,12 +270,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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -298,7 +304,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -325,24 +331,26 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType ) - review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -350,7 +358,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -358,19 +366,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -378,7 +390,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -386,13 +398,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -400,19 +414,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -439,7 +455,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -499,12 +517,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -515,11 +531,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -528,10 +544,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -546,14 +558,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -565,7 +576,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -594,10 +605,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -606,21 +619,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" label: Union[str, None] ref: str repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -680,12 +695,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -696,11 +709,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -709,10 +722,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -727,14 +736,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -746,7 +754,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -775,10 +783,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -787,7 +797,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -814,7 +826,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,7 +843,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -842,11 +854,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -862,7 +874,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -879,7 +891,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -890,11 +902,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -910,41 +922,189 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro 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__ = ( - "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", + "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_0800.py b/githubkit/versions/ghec_v2022_11_28/types/group_0800.py index 18aef9a9e..fa1126cdf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0800.py @@ -14,38 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" - action: Literal["resolved"] + action: Literal["unresolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -60,9 +60,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,31 +70,31 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -103,10 +103,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -133,7 +137,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -161,22 +165,24 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: Union[str, None] + commit_title: str enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +211,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -219,7 +225,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -229,7 +237,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -246,7 +254,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -275,7 +283,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -299,12 +307,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -326,31 +334,31 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDic site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -358,7 +366,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -366,7 +374,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -374,7 +382,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -382,7 +390,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -390,7 +398,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -398,7 +406,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -406,7 +414,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -414,19 +422,20 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -455,7 +464,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -517,7 +526,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -531,11 +540,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -564,7 +573,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -576,7 +585,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -605,11 +614,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions """ admin: bool @@ -619,21 +628,49 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None - ] + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( +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 @@ -695,7 +732,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -709,11 +746,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -742,7 +779,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -754,7 +791,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -783,11 +820,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions """ admin: bool @@ -797,36 +834,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -835,30 +843,30 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer """ 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[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, 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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent """ description: Union[str, None] @@ -874,7 +882,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -891,7 +899,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,11 +910,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent """ description: Union[str, None] @@ -922,16 +930,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType ] node_id: str -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( + TypedDict +): """Pull Request Review Comment The [comment](https://docs.github.com/enterprise- @@ -940,7 +950,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(Type """ links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType ) author_association: Literal[ "COLLABORATOR", @@ -962,14 +972,14 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(Type line: Union[int, None] node_id: str original_commit_id: str - original_line: Union[int, None] + 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: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType side: Literal["LEFT", "RIGHT"] start_line: Union[int, None] start_side: Union[None, Literal["LEFT", "RIGHT"]] @@ -977,12 +987,12 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(Type updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, None, ] -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( TypedDict ): """Reactions""" @@ -999,7 +1009,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReact url: str -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( TypedDict ): """User""" @@ -1023,22 +1033,22 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserT 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 WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( TypedDict ): """Link""" @@ -1046,7 +1056,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( TypedDict ): """Link""" @@ -1054,7 +1064,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( TypedDict ): """Link""" @@ -1063,48 +1073,48 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks __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", + "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_0801.py b/githubkit/versions/ghec_v2022_11_28/types/group_0801.py index 127e8924a..90db9b4f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0801.py @@ -14,40 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" - action: Literal["unresolved"] + action: Literal["synchronize"] + after: str + before: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + pull_request: WebhookPullRequestSynchronizePropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + sender: SimpleUserType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -60,57 +58,64 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType 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: WebhookPullRequestSynchronizePropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] 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[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + ] milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType ] 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 - ] + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -132,14 +137,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 WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -161,28 +164,25 @@ 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 WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(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, - None, + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,9 +211,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -225,9 +223,34 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( - TypedDict -): +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. @@ -237,8 +260,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -254,7 +276,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -278,12 +300,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 WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -307,12 +329,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 WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -334,63 +356,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 WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -398,7 +410,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -406,38 +418,29 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, - None, - ] + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -464,9 +467,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -526,10 +527,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + 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] @@ -540,11 +543,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -553,6 +555,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 +573,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 WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +592,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,12 +621,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -628,22 +633,17 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, - None, - ] + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -670,9 +670,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -732,10 +730,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + 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] @@ -746,11 +746,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -759,6 +758,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 +776,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 WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -791,7 +795,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -820,12 +824,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -834,7 +836,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,30 +845,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, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, 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 WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent """ description: Union[str, None] @@ -882,7 +884,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -899,7 +901,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -910,12 +912,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -930,191 +930,42 @@ 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", + "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_0802.py b/githubkit/versions/ghec_v2022_11_28/types/group_0802.py index 9ee1dd496..543e482a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0802.py @@ -14,38 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0512 import WebhooksUserMannequinType -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" - action: Literal["synchronize"] - after: str - before: str + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType + pull_request: WebhookPullRequestUnassignedPropPullRequestType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +58,9 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +72,11 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,24 +85,22 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -112,10 +110,10 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -142,7 +140,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -168,7 +166,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDi url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -177,12 +175,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,7 +209,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -223,7 +221,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict) url: str -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -245,12 +243,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(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 WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -260,7 +258,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -276,7 +274,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -305,7 +303,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -334,7 +332,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -361,48 +359,48 @@ class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -410,7 +408,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -418,29 +416,29 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsTyp href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -467,7 +465,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -527,8 +525,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -543,10 +540,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -580,7 +577,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -592,7 +589,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -621,10 +618,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -633,44 +630,17 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] 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] + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -730,8 +700,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -746,10 +715,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -783,7 +752,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -795,7 +764,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -824,10 +793,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -836,7 +805,34 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( +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 @@ -853,7 +849,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -864,11 +860,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent """ description: Union[str, None] @@ -884,9 +880,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -901,7 +895,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -912,10 +906,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -931,41 +925,41 @@ 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", + "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_0803.py b/githubkit/versions/ghec_v2022_11_28/types/group_0803.py index 5ffa45db2..39ae25258 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0803.py @@ -14,38 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0510 import WebhooksUserMannequinType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0504 import WebhooksLabelType -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType + pull_request: WebhookPullRequestUnlabeledPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -57,10 +57,8 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +70,11 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,22 +83,22 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -110,10 +108,10 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -140,7 +138,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -166,7 +164,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDic url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -175,12 +173,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,7 +207,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -221,7 +219,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -243,12 +241,12 @@ 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 WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -258,7 +256,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -274,9 +272,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -303,7 +299,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -332,7 +328,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -359,48 +355,48 @@ class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -408,7 +404,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -416,29 +412,29 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" - label: Union[str, None] + label: str ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -465,7 +461,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict) user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -525,7 +521,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -540,10 +536,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -577,7 +573,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -589,7 +585,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -618,10 +614,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -630,17 +626,17 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" label: Union[str, None] ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -700,7 +696,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -715,10 +711,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -752,7 +748,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -764,7 +760,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -793,10 +789,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -805,7 +801,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -832,7 +828,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict) user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -849,7 +845,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -860,11 +856,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent """ description: Union[str, None] @@ -880,7 +876,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -895,7 +891,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -906,10 +902,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -925,41 +921,41 @@ 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", + "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_0804.py b/githubkit/versions/ghec_v2022_11_28/types/group_0804.py index 03ad17fb8..255b5d6ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0804.py @@ -14,38 +14,36 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0502 import WebhooksLabelType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" - action: Literal["unlabeled"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType + pull_request: WebhookPullRequestUnlockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +55,8 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +68,11 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +81,22 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +106,10 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,12 +131,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(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 WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -160,25 +158,25 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(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 WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: Union[str, None] + commit_title: str enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -207,7 +205,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -219,7 +217,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -246,7 +244,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -256,7 +254,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -272,7 +270,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -294,12 +292,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(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 WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -323,12 +321,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 WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -350,53 +348,53 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUserType(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 WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -404,7 +402,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -412,29 +410,29 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -461,7 +459,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -521,7 +519,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -536,10 +534,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -573,7 +571,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,9 +583,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -614,10 +610,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -626,17 +622,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -696,7 +692,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -711,10 +707,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -748,7 +744,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -760,9 +756,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -789,10 +783,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -801,7 +795,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -828,7 +822,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -837,30 +831,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, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, 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 WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] @@ -876,7 +870,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -891,7 +885,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,10 +896,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -921,41 +915,41 @@ 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", + "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_0805.py b/githubkit/versions/ghec_v2022_11_28/types/group_0805.py index 5542aff8a..532151a79 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0805.py @@ -10,456 +10,129 @@ 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_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" +class WebhookPushType(TypedDict): + """push event""" - action: Literal["unlocked"] + 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] - 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, - ] - ] - 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 + 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: 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 +class WebhookPushPropHeadCommitPropAuthorType(TypedDict): + """Committer - The status of auto merging a pull request. + Metaproperties for Git author/committer information. """ - 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 + date: NotRequired[datetime] + email: Union[str, None] 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] + username: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone +class WebhookPushPropHeadCommitPropCommitterType(TypedDict): + """Committer - A collection of related issues and pull requests. + Metaproperties for Git author/committer information. """ - 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""" + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: 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 WebhookPushPropPusherType(TypedDict): + """Committer -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): - """User""" + Metaproperties for Git author/committer information. + """ - avatar_url: NotRequired[str] - deleted: NotRequired[bool] + date: NotRequired[datetime] email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[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 - + 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 WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - href: str +class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): + """Committer + Metaproperties for Git author/committer information. + """ -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - label: str - ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] +class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): + """Committer -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(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 WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPushPropRepositoryType(TypedDict): """Repository A git repository @@ -484,6 +157,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(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 @@ -518,12 +192,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] + license_: Union[WebhookPushPropRepositoryPropLicenseType, 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] @@ -533,12 +203,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType - ] + owner: Union[WebhookPushPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str @@ -546,10 +212,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -564,189 +226,22 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( - 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] - +WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookPushPropRepositoryPropCustomProperties -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] +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 WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): +class WebhookPushPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -756,7 +251,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPushPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -783,10 +278,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -795,161 +288,18 @@ 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( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - __all__ = ( - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedType", + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropPusherType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", + "WebhookPushPropRepositoryType", + "WebhookPushType", ) 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 a632ed79d..290a8613f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0806.py @@ -9,297 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0807 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookPushType(TypedDict): - """push event""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - after: str - base_ref: Union[str, None] - before: str - commits: list[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool + action: Literal["published"] 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] + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookPushPropHeadCommitType(TypedDict): - """Commit""" - - added: NotRequired[list[str]] - author: WebhookPushPropHeadCommitPropAuthorType - committer: WebhookPushPropHeadCommitPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str - url: str - - -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropPusherType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: NotRequired[Union[str, None]] - name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[list[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str - url: str - - -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - 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", -) +__all__ = ("WebhookRegistryPackagePublishedType",) 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 5d1c284c9..1edd3d48d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0807.py @@ -9,27 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0808 import WebhookRegistryPackagePublishedPropRegistryPackageType +from .group_0808 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - 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: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType + package_type: str + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + ] + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + ] + updated_at: Union[str, None] -__all__ = ("WebhookRegistryPackagePublishedType",) +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: NotRequired[str] + name: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + vendor: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", + "WebhookRegistryPackagePublishedPropRegistryPackageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0808.py b/githubkit/versions/ghec_v2022_11_28/types/group_0808.py index 1a7704b1d..f6d42617f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0808.py @@ -9,37 +9,81 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0809 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) +from .group_0727 import WebhookRubygemsMetadataType -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str + 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 - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] ] - updated_at: Union[str, 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 WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" avatar_url: str events_url: str @@ -62,18 +106,422 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict) user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: NotRequired[list[str]] + + +WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata +Items +""" + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, + None, + ] + ] + bugs: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, + None, + ] + ] + dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, + None, + ] + ] + scripts: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[list[str]] + contributors: NotRequired[list[str]] + engines: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + - about_url: NotRequired[str] +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, + int, + None, + ] + ] name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + ] + created_at: NotRequired[str] + draft: NotRequired[bool] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + prerelease: NotRequired[bool] + published_at: NotRequired[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + url: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] - vendor: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackagePublishedPropRegistryPackageType", + "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_0809.py b/githubkit/versions/ghec_v2022_11_28/types/group_0809.py index d632b4d66..30a87f8cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0809.py @@ -9,519 +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_0728 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0810 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - 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 + action: Literal["updated"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ - - tags: NotRequired[list[str]] - - -WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata -Items -""" - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, - None, - ] - ] - bugs: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, - None, - ] - ] - dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, - None, - ] - ] - scripts: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[list[str]] - contributors: NotRequired[list[str]] - engines: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ - - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ - - id: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, - None, - ] - ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - ] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - prerelease: NotRequired[bool] - published_at: NotRequired[str] - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - url: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", -) +__all__ = ("WebhookRegistryPackageUpdatedType",) 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 4164a746b..677b9629c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0810.py @@ -9,27 +9,65 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0811 import WebhookRegistryPackageUpdatedPropRegistryPackageType +from .group_0811 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - action: Literal["updated"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: 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__ = ("WebhookRegistryPackageUpdatedType",) +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_0811.py b/githubkit/versions/ghec_v2022_11_28/types/group_0811.py index 23206a92e..2d2d78a99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0811.py @@ -9,37 +9,60 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0812 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +from .group_0727 import WebhookRubygemsMetadataType -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str created_at: str - description: None - ecosystem: 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 - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType - ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + 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 WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" avatar_url: str events_url: str @@ -62,12 +85,96 @@ class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +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__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", ) 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 b83afc57d..02e18e5dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0812.py @@ -9,172 +9,27 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0728 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0532 import WebhooksReleaseType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: NotRequired[list[str]] - - -WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt -ems -""" - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] - name: NotRequired[str] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", -) +__all__ = ("WebhookReleaseCreatedType",) 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 29ddaf32a..4eeb53bec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0813.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0530 import WebhooksReleaseType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0532 import WebhooksReleaseType -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookReleaseCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookReleaseCreatedType",) +__all__ = ("WebhookReleaseDeletedType",) 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 a7010e799..411727ca6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0814.py @@ -13,23 +13,64 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0530 import WebhooksReleaseType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0532 import WebhooksReleaseType -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookReleaseEditedType(TypedDict): + """release edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookReleaseEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookReleaseDeletedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + tag_name: NotRequired[WebhookReleaseEditedPropChangesPropTagNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropTagNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropTagName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +__all__ = ( + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesPropTagNameType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0815.py b/githubkit/versions/ghec_v2022_11_28/types/group_0815.py index 1bfad49fe..b1cb3aba5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0815.py @@ -9,68 +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_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0530 import WebhooksReleaseType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookReleaseEditedType(TypedDict): - """release edited event""" +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType + action: Literal["prereleased"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType + release: WebhookReleasePrereleasedPropReleaseType repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" - - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - tag_name: NotRequired[WebhookReleaseEditedPropChangesPropTagNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] - - -class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropTagNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropTagName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool +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 + immutable: bool + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str __all__ = ( - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesPropTagNameType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedType", ) 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 90b38c546..fc29cd438 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0816.py @@ -9,155 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0533 import WebhooksRelease1Type -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: Literal["prereleased"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType + release: WebhooksRelease1Type repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -class WebhookReleasePrereleasedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] - assets_url: str - author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: Literal[True] - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - digest: Union[str, None] - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] - ] - url: str - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -__all__ = ( - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", - "WebhookReleasePrereleasedPropReleasePropAuthorType", - "WebhookReleasePrereleasedPropReleasePropReactionsType", - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedType", -) +__all__ = ("WebhookReleasePublishedType",) 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 dace716a1..23ac4d093 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0817.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0531 import WebhooksRelease1Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0532 import WebhooksReleaseType -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" - action: Literal["published"] + action: Literal["released"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type + release: WebhooksReleaseType repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookReleasePublishedType",) +__all__ = ("WebhookReleaseReleasedType",) 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 8ffe61213..52a7123e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0818.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0530 import WebhooksReleaseType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0533 import WebhooksRelease1Type -class WebhookReleaseReleasedType(TypedDict): - """release released event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" - action: Literal["released"] + action: Literal["unpublished"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType + release: WebhooksRelease1Type repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookReleaseReleasedType",) +__all__ = ("WebhookReleaseUnpublishedType",) 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 c40c4e586..1c10eea65 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0819.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0531 import WebhooksRelease1Type +from .group_0234 import RepositoryAdvisoryType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" - action: Literal["unpublished"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type repository: RepositoryWebhooksType + repository_advisory: RepositoryAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookReleaseUnpublishedType",) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) 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 c8b6d8300..13a3040dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0820.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0232 import RepositoryAdvisoryType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0234 import RepositoryAdvisoryType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" - action: Literal["published"] + action: Literal["reported"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookRepositoryAdvisoryPublishedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryAdvisoryPublishedType",) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) 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 be12a9006..80e903e48 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0821.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0232 import RepositoryAdvisoryType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" - action: Literal["reported"] + action: Literal["archived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +__all__ = ("WebhookRepositoryArchivedType",) 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 167a5221d..8b427ecb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0822.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" - action: Literal["archived"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryArchivedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryArchivedType",) +__all__ = ("WebhookRepositoryCreatedType",) 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 7b71f8ed9..a48654c73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0823.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryCreatedType",) +__all__ = ("WebhookRepositoryDeletedType",) 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 a723b57fb..75c0a31f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0824.py @@ -9,25 +9,38 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryDeletedType(TypedDict): - """repository 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: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryDeletedType",) +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_0825.py b/githubkit/versions/ghec_v2022_11_28/types/group_0825.py index 46753c22e..6634243b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0825.py @@ -9,38 +9,66 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] -"""WebhookRepositoryDispatchSamplePropClientPayload +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" -The `client_payload` that was specified in the `POST -/repos/{owner}/{repo}/dispatches` request body. -""" + 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__ = ( - "WebhookRepositoryDispatchSamplePropClientPayloadType", - "WebhookRepositoryDispatchSampleType", + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedType", ) 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 332cd0650..8f4b633cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0826.py @@ -9,66 +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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType + status: Literal["success", "cancelled", "failure"] -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__ = ("WebhookRepositoryImportType",) 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 10c29bf14..970a3aa75 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0827.py @@ -13,21 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" + action: Literal["privatized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookRepositoryImportType",) +__all__ = ("WebhookRepositoryPrivatizedType",) 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 2d4b44dd6..33d7698a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0828.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - action: Literal["privatized"] + action: Literal["publicized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryPrivatizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPrivatizedType",) +__all__ = ("WebhookRepositoryPublicizedType",) 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 f89d2e6ae..17d1ea8d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0829.py @@ -13,16 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" - action: Literal["publicized"] + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +31,27 @@ class WebhookRepositoryPublicizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPublicizedType",) +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" + + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType + + +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_0830.py b/githubkit/versions/ghec_v2022_11_28/types/group_0830.py index a86cf0b7c..1ad47924d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0830.py @@ -13,45 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0140 import RepositoryRulesetType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType 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__ = ("WebhookRepositoryRulesetCreatedType",) 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 506b85956..a470475c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0831.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0139 import RepositoryRulesetType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0140 import RepositoryRulesetType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookRepositoryRulesetCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetCreatedType",) +__all__ = ("WebhookRepositoryRulesetDeletedType",) 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 d4f1621f8..ad8da4598 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0832.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0139 import RepositoryRulesetType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0140 import RepositoryRulesetType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0833 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" - action: Literal["deleted"] + action: Literal["edited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetDeletedType",) +__all__ = ("WebhookRepositoryRulesetEditedType",) 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 5826cfe85..a1b4ebedc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0833.py @@ -9,29 +9,37 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0139 import RepositoryRulesetType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0834 import WebhookRepositoryRulesetEditedPropChangesType +from .group_0834 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +from .group_0836 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["edited"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] - sender: SimpleUserType + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] -__all__ = ("WebhookRepositoryRulesetEditedType",) +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_0834.py b/githubkit/versions/ghec_v2022_11_28/types/group_0834.py index 4c6d16f5c..2d04f040f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0834.py @@ -11,35 +11,22 @@ from typing_extensions import NotRequired, TypedDict -from .group_0835 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -from .group_0837 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0089 import RepositoryRulesetConditionsType +from .group_0835 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + added: NotRequired[list[RepositoryRulesetConditionsType]] + deleted: NotRequired[list[RepositoryRulesetConditionsType]] + updated: NotRequired[ + list[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType + ] ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] - - -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: NotRequired[str] -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) 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 f275715d6..94f7fad9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0835.py @@ -11,22 +11,86 @@ from typing_extensions import NotRequired, TypedDict -from .group_0088 import RepositoryRulesetConditionsType -from .group_0836 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +from .group_0089 import RepositoryRulesetConditionsType + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ - added: NotRequired[list[RepositoryRulesetConditionsType]] - deleted: NotRequired[list[RepositoryRulesetConditionsType]] - updated: NotRequired[ - list[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType + ] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType ] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) +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_0836.py b/githubkit/versions/ghec_v2022_11_28/types/group_0836.py index b4117a904..871fbd283 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0836.py @@ -9,88 +9,97 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0088 import RepositoryRulesetConditionsType - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] - +from .group_0099 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0100 import RepositoryRuleUpdateType +from .group_0102 import RepositoryRuleRequiredLinearHistoryType +from .group_0103 import RepositoryRuleRequiredDeploymentsType +from .group_0106 import RepositoryRulePullRequestType +from .group_0108 import RepositoryRuleRequiredStatusChecksType +from .group_0110 import RepositoryRuleCommitMessagePatternType +from .group_0112 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0114 import RepositoryRuleCommitterEmailPatternType +from .group_0116 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleTagNamePatternType +from .group_0120 import RepositoryRuleFilePathRestrictionType +from .group_0122 import RepositoryRuleMaxFilePathLengthType +from .group_0124 import RepositoryRuleFileExtensionRestrictionType +from .group_0126 import RepositoryRuleMaxFileSizeType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0131 import RepositoryRuleCodeScanningType +from .group_0138 import RepositoryRuleMergeQueueType +from .group_0837 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + deleted: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + updated: NotRequired[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] ] -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__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) 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 b23e8812c..da46584eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0837.py @@ -12,94 +12,114 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0098 import ( +from .group_0099 import ( RepositoryRuleCreationType, RepositoryRuleDeletionType, RepositoryRuleNonFastForwardType, RepositoryRuleRequiredSignaturesType, ) -from .group_0099 import RepositoryRuleUpdateType -from .group_0101 import RepositoryRuleRequiredLinearHistoryType -from .group_0102 import RepositoryRuleMergeQueueType -from .group_0104 import RepositoryRuleRequiredDeploymentsType -from .group_0107 import RepositoryRulePullRequestType -from .group_0109 import RepositoryRuleRequiredStatusChecksType -from .group_0111 import RepositoryRuleCommitMessagePatternType -from .group_0113 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0115 import RepositoryRuleCommitterEmailPatternType -from .group_0117 import RepositoryRuleBranchNamePatternType -from .group_0119 import RepositoryRuleTagNamePatternType -from .group_0121 import RepositoryRuleFilePathRestrictionType -from .group_0123 import RepositoryRuleMaxFilePathLengthType -from .group_0125 import RepositoryRuleFileExtensionRestrictionType -from .group_0127 import RepositoryRuleMaxFileSizeType -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0838 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) +from .group_0100 import RepositoryRuleUpdateType +from .group_0102 import RepositoryRuleRequiredLinearHistoryType +from .group_0103 import RepositoryRuleRequiredDeploymentsType +from .group_0106 import RepositoryRulePullRequestType +from .group_0108 import RepositoryRuleRequiredStatusChecksType +from .group_0110 import RepositoryRuleCommitMessagePatternType +from .group_0112 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0114 import RepositoryRuleCommitterEmailPatternType +from .group_0116 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleTagNamePatternType +from .group_0120 import RepositoryRuleFilePathRestrictionType +from .group_0122 import RepositoryRuleMaxFilePathLengthType +from .group_0124 import RepositoryRuleFileExtensionRestrictionType +from .group_0126 import RepositoryRuleMaxFileSizeType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0131 import RepositoryRuleCodeScanningType +from .group_0138 import RepositoryRuleMergeQueueType + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] + rule: NotRequired[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, ] ] - deleted: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType ] - updated: NotRequired[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType + ] + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType ] + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType + ] + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) + 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_0838.py b/githubkit/versions/ghec_v2022_11_28/types/group_0838.py index 90663ee7d..7fed27380 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0838.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0838.py @@ -9,117 +9,105 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0098 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0099 import RepositoryRuleUpdateType -from .group_0101 import RepositoryRuleRequiredLinearHistoryType -from .group_0102 import RepositoryRuleMergeQueueType -from .group_0104 import RepositoryRuleRequiredDeploymentsType -from .group_0107 import RepositoryRulePullRequestType -from .group_0109 import RepositoryRuleRequiredStatusChecksType -from .group_0111 import RepositoryRuleCommitMessagePatternType -from .group_0113 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0115 import RepositoryRuleCommitterEmailPatternType -from .group_0117 import RepositoryRuleBranchNamePatternType -from .group_0119 import RepositoryRuleTagNamePatternType -from .group_0121 import RepositoryRuleFilePathRestrictionType -from .group_0123 import RepositoryRuleMaxFilePathLengthType -from .group_0125 import RepositoryRuleFileExtensionRestrictionType -from .group_0127 import RepositoryRuleMaxFileSizeType -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0132 import RepositoryRuleCodeScanningType - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ +class WebhookRepositoryTransferredPropChangesType(TypedDict): + """WebhookRepositoryTransferredPropChanges""" - from_: NotRequired[str] + owner: WebhookRepositoryTransferredPropChangesPropOwnerType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ +class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwner""" - from_: NotRequired[str] + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: NotRequired[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType + ] + user: NotRequired[ + Union[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None + ] + ] + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( TypedDict ): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] + """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__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredType", ) 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 2729d3894..95a31706e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0839.py @@ -9,21 +9,20 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType + action: Literal["unarchived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -31,83 +30,4 @@ class WebhookRepositoryTransferredType(TypedDict): 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__ = ("WebhookRepositoryUnarchivedType",) 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 b455773d2..ba4f77377 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0840.py @@ -13,16 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0534 import WebhooksAlertType -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" - action: Literal["unarchived"] + action: Literal["create"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +32,4 @@ class WebhookRepositoryUnarchivedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryUnarchivedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) 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 9b01c2cc4..77a5ac432 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0841.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0841.py @@ -9,22 +9,22 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0532 import WebhooksAlertType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" - action: Literal["create"] - alert: WebhooksAlertType + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,63 @@ class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +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_0842.py b/githubkit/versions/ghec_v2022_11_28/types/group_0842.py index c64a65288..305b74024 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0842.py @@ -9,22 +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_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0534 import WebhooksAlertType -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType + action: Literal["reopen"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,63 +32,4 @@ class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): sender: SimpleUserType -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", -) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) 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 c0c3a7e5e..660aa5d5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0843.py @@ -9,22 +9,22 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0532 import WebhooksAlertType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["reopen"] - alert: WebhooksAlertType + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,63 @@ class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) +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_0844.py b/githubkit/versions/ghec_v2022_11_28/types/group_0844.py index 1f1d81641..1c7bc7805 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0844.py @@ -9,86 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0535 import SecretScanningAlertWebhookType -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType + action: Literal["created"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -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", -) +__all__ = ("WebhookSecretScanningAlertCreatedType",) 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 672b7315a..cab4521cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0845.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0533 import SecretScanningAlertWebhookType +from .group_0430 import SecretScanningLocationType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0535 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" action: Literal["created"] alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertCreatedType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedType",) 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 6676cb653..4c3c84e39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0846.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_0003 import SimpleUserType -from .group_0428 import SecretScanningLocationType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0533 import SecretScanningAlertWebhookType - -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): """Secret Scanning Alert Location Created Event""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType - installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + payload: str -__all__ = ("WebhookSecretScanningAlertLocationCreatedType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) 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 4c3c84e39..c7dff8747 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,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_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0535 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - payload: str +class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): + """secret_scanning_alert publicly leaked event""" + action: Literal["publicly_leaked"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) + +__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) 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 4651e4212..0b342da43 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0848.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0533 import SecretScanningAlertWebhookType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0535 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): - """secret_scanning_alert publicly leaked event""" +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" - action: Literal["publicly_leaked"] + action: Literal["reopened"] alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) +__all__ = ("WebhookSecretScanningAlertReopenedType",) 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 946f32a3d..1c54a15bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0849.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0533 import SecretScanningAlertWebhookType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0535 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - action: Literal["reopened"] + action: Literal["resolved"] alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookSecretScanningAlertReopenedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertReopenedType",) +__all__ = ("WebhookSecretScanningAlertResolvedType",) 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 04fb50707..53e70093a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0850.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0533 import SecretScanningAlertWebhookType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0535 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" - action: Literal["resolved"] + action: Literal["validated"] alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookSecretScanningAlertResolvedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertResolvedType",) +__all__ = ("WebhookSecretScanningAlertValidatedType",) 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 920c1bcec..54a7397ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0851.py @@ -9,27 +9,35 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0533 import SecretScanningAlertWebhookType - - -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" - - action: Literal["validated"] - alert: SecretScanningAlertWebhookType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType + + +class WebhookSecretScanningScanCompletedType(TypedDict): + """secret_scanning_scan completed event""" + + action: Literal["completed"] + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] + started_at: datetime + completed_at: datetime + secret_types: NotRequired[Union[list[str], None]] + custom_pattern_name: NotRequired[Union[str, None]] + custom_pattern_scope: NotRequired[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] + repository: NotRequired[RepositoryWebhooksType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertValidatedType",) +__all__ = ("WebhookSecretScanningScanCompletedType",) 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 43060b2fb..96378b5df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0852.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_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 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_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0536 import WebhooksSecurityAdvisoryType + + +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" + + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhooksSecurityAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningScanCompletedType",) +__all__ = ("WebhookSecurityAdvisoryPublishedType",) 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 f34c90b42..bda5345ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0853.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0534 import WebhooksSecurityAdvisoryType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0536 import WebhooksSecurityAdvisoryType -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - action: Literal["published"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookSecurityAdvisoryPublishedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryPublishedType",) +__all__ = ("WebhookSecurityAdvisoryUpdatedType",) 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 cb21ee669..1c7acb495 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0854.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0534 import WebhooksSecurityAdvisoryType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0855 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" - action: Literal["updated"] + action: Literal["withdrawn"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryUpdatedType",) +__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) 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 f008e8f25..f38acab63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0855.py @@ -9,27 +9,113 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0856 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType +from .group_0001 import CvssSeveritiesType -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["withdrawn"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType - sender: NotRequired[SimpleUserType] + 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__ = ("WebhookSecurityAdvisoryWithdrawnType",) + +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_0856.py b/githubkit/versions/ghec_v2022_11_28/types/group_0856.py index f38acab63..c7a151feb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0856.py @@ -9,113 +9,25 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0230 import FullRepositoryType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0857 import WebhookSecurityAndAnalysisPropChangesType -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - The details of the security advisory, including summary, description, and - severity. - """ + changes: WebhookSecurityAndAnalysisPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: FullRepositoryType + 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__ = ("WebhookSecurityAndAnalysisType",) 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 e070f030c..ad92e2fc0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0857.py @@ -11,23 +11,13 @@ from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0228 import FullRepositoryType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0858 import WebhookSecurityAndAnalysisPropChangesType +from .group_0858 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - changes: WebhookSecurityAndAnalysisPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType - sender: NotRequired[SimpleUserType] + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -__all__ = ("WebhookSecurityAndAnalysisType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) 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 e8f41a55e..56cc407e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0858.py @@ -9,15 +9,16 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0859 import WebhookSecurityAndAnalysisPropChangesPropFromType +from .group_0177 import SecurityAndAnalysisType -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) 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 8c510401f..381424b52 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0859.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_0175 import SecurityAndAnalysisType +from .group_0003 import SimpleUserType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0537 import WebhooksSponsorshipType -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + action: Literal["cancelled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +__all__ = ("WebhookSponsorshipCancelledType",) 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 8090dfe62..f14fcae2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0860.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0535 import WebhooksSponsorshipType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0537 import WebhooksSponsorshipType -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" - action: Literal["cancelled"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookSponsorshipCancelledType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipCancelledType",) +__all__ = ("WebhookSponsorshipCreatedType",) 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 f5add938b..613cca38b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0861.py @@ -13,17 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0535 import WebhooksSponsorshipType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0537 import WebhooksSponsorshipType -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" - action: Literal["created"] + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +33,20 @@ class WebhookSponsorshipCreatedType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipCreatedType",) +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_0862.py b/githubkit/versions/ghec_v2022_11_28/types/group_0862.py index d1130c6d7..899b54233 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0862.py @@ -13,18 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0535 import WebhooksSponsorshipType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0537 import WebhooksSponsorshipType -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,20 +33,4 @@ class WebhookSponsorshipEditedType(TypedDict): sponsorship: WebhooksSponsorshipType -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str - - -__all__ = ( - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedType", -) +__all__ = ("WebhookSponsorshipPendingCancellationType",) 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 af2dfcd93..e114e6122 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0863.py @@ -13,17 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0535 import WebhooksSponsorshipType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0537 import WebhooksSponsorshipType +from .group_0538 import WebhooksChanges8Type -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" - action: Literal["pending_cancellation"] + action: Literal["pending_tier_change"] + changes: WebhooksChanges8Type effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,4 +35,4 @@ class WebhookSponsorshipPendingCancellationType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipPendingCancellationType",) +__all__ = ("WebhookSponsorshipPendingTierChangeType",) 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 a83bc09f2..7b190a041 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0864.py @@ -13,20 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0535 import WebhooksSponsorshipType -from .group_0536 import WebhooksChanges8Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0537 import WebhooksSponsorshipType +from .group_0538 import WebhooksChanges8Type -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" - action: Literal["pending_tier_change"] + action: Literal["tier_changed"] changes: WebhooksChanges8Type - effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -35,4 +34,4 @@ class WebhookSponsorshipPendingTierChangeType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipPendingTierChangeType",) +__all__ = ("WebhookSponsorshipTierChangedType",) 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 0242d6d28..d9a388e39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0865.py @@ -9,29 +9,26 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0535 import WebhooksSponsorshipType -from .group_0536 import WebhooksChanges8Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" +class WebhookStarCreatedType(TypedDict): + """star created event""" - action: Literal["tier_changed"] - changes: WebhooksChanges8Type + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + starred_at: Union[str, None] -__all__ = ("WebhookSponsorshipTierChangedType",) +__all__ = ("WebhookStarCreatedType",) 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 5f4839904..0d358ea25 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0866.py @@ -9,26 +9,26 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookStarCreatedType(TypedDict): - """star created event""" +class WebhookStarDeletedType(TypedDict): + """star deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - starred_at: Union[str, None] + starred_at: None -__all__ = ("WebhookStarCreatedType",) +__all__ = ("WebhookStarDeletedType",) 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 ec356425d..4f86747f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0867.py @@ -9,26 +9,202 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookStarDeletedType(TypedDict): - """star deleted event""" +class WebhookStatusType(TypedDict): + """status event""" - action: Literal["deleted"] + 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: RepositoryWebhooksType sender: SimpleUserType - starred_at: None + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] + updated_at: str -__all__ = ("WebhookStarDeletedType",) +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_0868.py b/githubkit/versions/ghec_v2022_11_28/types/group_0868.py index 3e9cd37e8..31b2ed900 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0868.py @@ -10,201 +10,20 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookStatusType(TypedDict): - """status event""" + Metaproperties for Git author/committer information. + """ - 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: RepositoryWebhooksType - sender: SimpleUserType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str - - -class WebhookStatusPropBranchesItemsType(TypedDict): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommitType - name: str - protected: bool - - -class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] - url: Union[str, None] - - -class WebhookStatusPropCommitType(TypedDict): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthorType, None] - comments_url: str - commit: WebhookStatusPropCommitPropCommitType - committer: Union[WebhookStatusPropCommitPropCommitterType, None] - html_url: str - node_id: str - parents: list[WebhookStatusPropCommitPropParentsItemsType] - sha: str - url: str - - -class WebhookStatusPropCommitPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropParentsItemsType(TypedDict): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitType(TypedDict): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthorType - comment_count: int - committer: WebhookStatusPropCommitPropCommitPropCommitterType - message: str - tree: WebhookStatusPropCommitPropCommitPropTreeType - url: str - verification: WebhookStatusPropCommitPropCommitPropVerificationType - - -class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime - email: str + date: NotRequired[datetime] + email: Union[str, None] name: str username: NotRequired[str] -class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] - signature: Union[str, None] - verified: bool - verified_at: Union[str, None] - - -__all__ = ( - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitType", - "WebhookStatusType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) 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 31b2ed900..eafde2845 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0869.py @@ -9,21 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - Metaproperties for Git author/committer information. - """ + date: str + email: NotRequired[str] + name: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) 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 eafde2845..e44b95c39 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,21 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer - date: str - email: NotRequired[str] - name: NotRequired[str] + Metaproperties for Git author/committer information. + """ + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) + +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) 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 e44b95c39..a808e25ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0871.py @@ -9,21 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - Metaproperties for Git author/committer information. - """ + date: str + email: NotRequired[str] + name: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) 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 a808e25ce..3ff8f5f82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0872.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_0020 import RepositoryType +from .group_0162 import IssueType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +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: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) + +__all__ = ("WebhookSubIssuesParentIssueAddedType",) 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 7c3b065dd..93d452c10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0873.py @@ -14,16 +14,16 @@ from .group_0003 import SimpleUserType from .group_0020 import RepositoryType -from .group_0160 import IssueType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0162 import IssueType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookSubIssuesParentIssueAddedType(TypedDict): - """parent issue added event""" +class WebhookSubIssuesParentIssueRemovedType(TypedDict): + """parent issue removed event""" - action: Literal["parent_issue_added"] + action: Literal["parent_issue_removed"] parent_issue_id: float parent_issue: IssueType parent_issue_repo: RepositoryType @@ -35,4 +35,4 @@ class WebhookSubIssuesParentIssueAddedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSubIssuesParentIssueAddedType",) +__all__ = ("WebhookSubIssuesParentIssueRemovedType",) 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 c3ab6f941..566307095 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0874.py @@ -14,25 +14,25 @@ from .group_0003 import SimpleUserType from .group_0020 import RepositoryType -from .group_0160 import IssueType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0162 import IssueType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookSubIssuesParentIssueRemovedType(TypedDict): - """parent issue removed event""" +class WebhookSubIssuesSubIssueAddedType(TypedDict): + """sub-issue added event""" - action: Literal["parent_issue_removed"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType + action: Literal["sub_issue_added"] sub_issue_id: float sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSubIssuesParentIssueRemovedType",) +__all__ = ("WebhookSubIssuesSubIssueAddedType",) 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 1eeb6f72a..6356e6428 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0875.py @@ -14,16 +14,16 @@ from .group_0003 import SimpleUserType from .group_0020 import RepositoryType -from .group_0160 import IssueType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0162 import IssueType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookSubIssuesSubIssueAddedType(TypedDict): - """sub-issue added event""" +class WebhookSubIssuesSubIssueRemovedType(TypedDict): + """sub-issue removed event""" - action: Literal["sub_issue_added"] + action: Literal["sub_issue_removed"] sub_issue_id: float sub_issue: IssueType sub_issue_repo: RepositoryType @@ -35,4 +35,4 @@ class WebhookSubIssuesSubIssueAddedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSubIssuesSubIssueAddedType",) +__all__ = ("WebhookSubIssuesSubIssueRemovedType",) 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 d83ed1cf8..36afebd3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0876.py @@ -9,30 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0160 import IssueType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 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 +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0539 import WebhooksTeam1Type + + +class WebhookTeamAddType(TypedDict): + """team_add event""" + + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + team: WebhooksTeam1Type -__all__ = ("WebhookSubIssuesSubIssueRemovedType",) +__all__ = ("WebhookTeamAddType",) 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 8c36baf96..95de4e8f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0877.py @@ -9,25 +9,194 @@ 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_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0537 import WebhooksTeam1Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0539 import WebhooksTeam1Type -class WebhookTeamAddType(TypedDict): - """team_add event""" +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" + action: Literal["added_to_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserType] team: WebhooksTeam1Type -__all__ = ("WebhookTeamAddType",) +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0878.py b/githubkit/versions/ghec_v2022_11_28/types/group_0878.py index 75ea1a666..7e8983344 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0878.py @@ -14,25 +14,25 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0537 import WebhooksTeam1Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0539 import WebhooksTeam1Type -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" +class WebhookTeamCreatedType(TypedDict): + """team created event""" - action: Literal["added_to_repository"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] - sender: NotRequired[SimpleUserType] + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] + sender: SimpleUserType team: WebhooksTeam1Type -class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): +class WebhookTeamCreatedPropRepositoryType(TypedDict): """Repository A git repository @@ -58,7 +58,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): contributors_url: str created_at: Union[int, datetime] custom_properties: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType ] default_branch: str delete_branch_on_merge: NotRequired[bool] @@ -93,7 +93,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -104,10 +104,8 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType - ] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str @@ -134,10 +132,8 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): watchers_count: int -WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties +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 @@ -145,7 +141,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): """ -class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -155,7 +151,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -182,8 +178,8 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -193,10 +189,10 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): __all__ = ( - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryType", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedType", ) 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 fd129c813..ba8d2bb50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0879.py @@ -14,25 +14,25 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0537 import WebhooksTeam1Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0539 import WebhooksTeam1Type -class WebhookTeamCreatedType(TypedDict): - """team created event""" +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] - sender: SimpleUserType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserType] team: WebhooksTeam1Type -class WebhookTeamCreatedPropRepositoryType(TypedDict): +class WebhookTeamDeletedPropRepositoryType(TypedDict): """Repository A git repository @@ -58,7 +58,7 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): contributors_url: str created_at: Union[int, datetime] custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType ] default_branch: str delete_branch_on_merge: NotRequired[bool] @@ -93,7 +93,7 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -104,8 +104,8 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str @@ -132,8 +132,8 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): watchers_count: int -WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamCreatedPropRepositoryPropCustomProperties +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 @@ -141,7 +141,7 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): """ -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -151,7 +151,7 @@ class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -178,8 +178,8 @@ class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -189,10 +189,10 @@ class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): __all__ = ( - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedType", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedType", ) 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 479041f1c..601342725 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0880.py @@ -14,25 +14,26 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0537 import WebhooksTeam1Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0539 import WebhooksTeam1Type -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" +class WebhookTeamEditedType(TypedDict): + """team edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] - sender: NotRequired[SimpleUserType] + repository: NotRequired[WebhookTeamEditedPropRepositoryType] + sender: SimpleUserType team: WebhooksTeam1Type -class WebhookTeamDeletedPropRepositoryType(TypedDict): +class WebhookTeamEditedPropRepositoryType(TypedDict): """Repository A git repository @@ -58,7 +59,7 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): contributors_url: str created_at: Union[int, datetime] custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType + WebhookTeamEditedPropRepositoryPropCustomPropertiesType ] default_branch: str delete_branch_on_merge: NotRequired[bool] @@ -93,7 +94,7 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -104,8 +105,8 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str @@ -132,8 +133,8 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): watchers_count: int -WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamDeletedPropRepositoryPropCustomProperties +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 @@ -141,7 +142,7 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): """ -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -151,7 +152,7 @@ class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -178,8 +179,8 @@ class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -188,11 +189,78 @@ class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): 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__ = ( - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedType", + "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_0881.py b/githubkit/versions/ghec_v2022_11_28/types/group_0881.py index 8db7b8611..6ed8e148f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0881.py @@ -14,26 +14,25 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0537 import WebhooksTeam1Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0539 import WebhooksTeam1Type -class WebhookTeamEditedType(TypedDict): - """team edited event""" +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType + action: Literal["removed_from_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] sender: SimpleUserType team: WebhooksTeam1Type -class WebhookTeamEditedPropRepositoryType(TypedDict): +class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): """Repository A git repository @@ -59,7 +58,7 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): contributors_url: str created_at: Union[int, datetime] custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType ] default_branch: str delete_branch_on_merge: NotRequired[bool] @@ -94,7 +93,7 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -105,8 +104,10 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType + ] private: bool public: NotRequired[bool] pulls_url: str @@ -133,8 +134,10 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): watchers_count: int -WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamEditedPropRepositoryPropCustomProperties +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 @@ -142,7 +145,7 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): """ -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -152,7 +155,7 @@ class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -179,8 +182,8 @@ class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -189,78 +192,11 @@ class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): 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__ = ( - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryType", ) 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 cd969f5c4..15fb8de44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0882.py @@ -9,194 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0537 import WebhooksTeam1Type +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" +class WebhookWatchStartedType(TypedDict): + """watch started event""" - action: Literal["removed_from_repository"] + action: Literal["started"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType - team: WebhooksTeam1Type -class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryType", -) +__all__ = ("WebhookWatchStartedType",) 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 655cdce05..05bfb5c72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0883.py @@ -9,25 +9,35 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookWatchStartedType(TypedDict): - """watch started event""" +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" - action: Literal["started"] enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserType + workflow: str -__all__ = ("WebhookWatchStartedType",) +WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] +"""WebhookWorkflowDispatchPropInputs +""" + + +__all__ = ( + "WebhookWorkflowDispatchPropInputsType", + "WebhookWorkflowDispatchType", +) 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 d5a8c51e6..740cbf24f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0884.py @@ -9,35 +9,79 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0264 import DeploymentType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType - workflow: str + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType + deployment: NotRequired[DeploymentType] -WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] -"""WebhookWorkflowDispatchPropInputs -""" +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + url: str + + +class 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["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowDispatchPropInputsType", - "WebhookWorkflowDispatchType", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedType", ) 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 9e382ed4b..d129fc90a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0885.py @@ -10,42 +10,29 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0262 import DeploymentType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" - - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJob""" + 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: str - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", + completed_at: Union[str, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], ] created_at: str head_sha: str @@ -57,20 +44,20 @@ class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): 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] + 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[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" completed_at: Union[str, None] conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] @@ -81,7 +68,6 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", ) 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 d129fc90a..92b2bfd6b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0886.py @@ -10,64 +10,56 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - 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", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[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 - + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[list[Union[str, None]]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + list[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] + ] + url: NotRequired[str] -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(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"] +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", ) 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 92b2bfd6b..b331aa19e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0887.py @@ -12,54 +12,68 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0264 import DeploymentType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[Union[str, None]]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - list[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] - url: NotRequired[str] - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" + + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] + url: str + + +class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" + + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + name: str + number: int + started_at: Union[Union[str, None], None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressType", ) 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 c41ca943d..217bd7ee4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0888.py @@ -10,35 +10,19 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0262 import DeploymentType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" - - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJob""" + 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[Union[str, None], None] - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] created_at: str head_sha: str html_url: str @@ -49,31 +33,30 @@ class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): 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] + 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[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str number: int - started_at: Union[Union[str, None], None] + started_at: Union[str, None] status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", ) 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 217bd7ee4..7a741384f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0889.py @@ -10,53 +10,49 @@ 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): +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[None, Literal["failure", "skipped", "success", "cancelled"]] + conclusion: Union[str, None] name: str number: int started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] + status: Literal["in_progress", "completed", "pending", "queued"] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", ) 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 7a741384f..5158ef94a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0890.py @@ -9,50 +9,72 @@ 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_0264 import DeploymentType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 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""" +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" + + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str completed_at: Union[str, None] conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + 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["in_progress", "completed", "pending", "queued"] + status: Literal["completed", "in_progress", "queued", "pending"] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedType", ) 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 5877f02f7..2d3fc34ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0891.py @@ -14,28 +14,28 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0262 import DeploymentType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0264 import DeploymentType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" - action: Literal["queued"] + action: Literal["waiting"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType deployment: NotRequired[DeploymentType] -class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobQueuedPropWorkflowJob""" +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" check_run_url: str completed_at: Union[str, None] @@ -55,14 +55,14 @@ class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): 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] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] url: str -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): """Workflow Step""" completed_at: Union[str, None] @@ -70,11 +70,11 @@ class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): name: str number: int started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending"] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] __all__ = ( - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedType", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingType", ) 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 e15f14141..ca0ccd054 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0892.py @@ -14,67 +14,421 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0262 import DeploymentType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0497 import WebhooksWorkflowType -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" - action: Literal["waiting"] + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType - deployment: NotRequired[DeploymentType] + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str + 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 - labels: list[str] - name: str + 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_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] + 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 WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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 - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + 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__ = ( - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingType", + "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_0893.py b/githubkit/versions/ghec_v2022_11_28/types/group_0893.py index 26fce16df..31d31f59c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0893.py @@ -14,30 +14,30 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0495 import WebhooksWorkflowType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0497 import WebhooksWorkflowType -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" - action: Literal["completed"] + action: Literal["in_progress"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): """Workflow Run""" - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] artifacts_url: str cancel_url: str check_suite_id: int @@ -54,14 +54,13 @@ class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): "stale", "success", "timed_out", - "startup_failure", ], ] created_at: datetime event: str head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType head_sha: str html_url: str id: int @@ -72,35 +71,34 @@ class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): path: str previous_attempt_url: Union[str, None] pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] ] referenced_workflows: NotRequired[ Union[ list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType rerun_url: str run_attempt: int run_number: int run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] + status: Literal["requested", "in_progress", "completed", "queued", "pending"] triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str workflow_id: int workflow_url: str - display_title: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -124,20 +122,19 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -161,21 +158,24 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDic subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): """SimpleCommit""" - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) id: str message: str timestamp: str tree_id: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): """Committer Metaproperties for Git author/committer information. @@ -187,7 +187,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(Typ username: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( TypedDict ): """Committer @@ -201,7 +201,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( username: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): """Repository Lite""" archive_url: str @@ -235,11 +235,11 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict languages_url: str merges_url: str milestones_url: str - name: str + name: Union[str, None] node_id: str notifications_url: str owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None ] private: bool pulls_url: str @@ -254,7 +254,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): """User""" @@ -280,10 +280,9 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): """Repository Lite""" archive_url: str @@ -321,7 +320,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): node_id: str notifications_url: str owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None ] private: bool pulls_url: str @@ -336,7 +335,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -360,30 +359,29 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(Type subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -393,17 +391,17 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePro url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -414,21 +412,21 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPro __all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedType", + "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_0894.py b/githubkit/versions/ghec_v2022_11_28/types/group_0894.py index d00f31002..969e21664 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0894.py @@ -14,30 +14,30 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0495 import WebhooksWorkflowType +from .group_0487 import EnterpriseWebhooksType +from .group_0488 import SimpleInstallationType +from .group_0489 import OrganizationSimpleWebhooksType +from .group_0490 import RepositoryWebhooksType +from .group_0497 import WebhooksWorkflowType -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" - action: Literal["in_progress"] + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): """Workflow Run""" - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] artifacts_url: str cancel_url: str check_suite_id: int @@ -46,21 +46,22 @@ class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): conclusion: Union[ None, Literal[ - "action_required", - "cancelled", + "success", "failure", "neutral", - "skipped", - "stale", - "success", + "cancelled", "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", ], ] created_at: datetime event: str head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType head_sha: str html_url: str id: int @@ -71,34 +72,35 @@ class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): path: str previous_attempt_url: Union[str, None] pull_requests: list[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None - ] + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType rerun_url: str run_attempt: int run_number: int run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str workflow_id: int workflow_url: str + display_title: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -122,19 +124,20 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -158,24 +161,21 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDi subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): """SimpleCommit""" - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType - ) + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType id: str message: str timestamp: str tree_id: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( - TypedDict -): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): """Committer Metaproperties for Git author/committer information. @@ -187,7 +187,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( username: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( TypedDict ): """Committer @@ -201,7 +201,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType username: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): """Repository Lite""" archive_url: str @@ -235,11 +235,11 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDic languages_url: str merges_url: str milestones_url: str - name: Union[str, None] + name: str node_id: str notifications_url: str owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None ] private: bool pulls_url: str @@ -254,7 +254,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDic url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): """User""" @@ -280,9 +280,10 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): """Repository Lite""" archive_url: str @@ -320,7 +321,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): node_id: str notifications_url: str owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None ] private: bool pulls_url: str @@ -335,7 +336,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -359,29 +360,30 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(Typ subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -391,17 +393,17 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePr url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -412,21 +414,21 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPr __all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressType", + "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_0895.py b/githubkit/versions/ghec_v2022_11_28/types/group_0895.py index a8943d1bc..2d4d40484 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0895.py @@ -10,425 +10,34 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0485 import EnterpriseWebhooksType -from .group_0486 import SimpleInstallationType -from .group_0487 import OrganizationSimpleWebhooksType -from .group_0488 import RepositoryWebhooksType -from .group_0495 import WebhooksWorkflowType +from .group_0008 import EnterpriseType +from .group_0009 import IntegrationPropPermissionsType -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" - 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] + slug: NotRequired[str] 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] + client_id: str + owner: Union[SimpleUserType, EnterpriseType] 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 + external_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 + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: list[str] + installations_count: NotRequired[int] + client_secret: str + webhook_secret: Union[str, None] + pem: str -__all__ = ( - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedType", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) 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 2d4d40484..528a915b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0896.py @@ -9,35 +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_0003 import SimpleUserType -from .group_0008 import EnterpriseType -from .group_0009 import IntegrationPropPermissionsType +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" - - id: int - slug: NotRequired[str] - node_id: str client_id: str - owner: Union[SimpleUserType, EnterpriseType] - name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: list[str] - installations_count: NotRequired[int] client_secret: str webhook_secret: Union[str, None] pem: str -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) 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 528a915b7..8f59ec945 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0897.py @@ -10,16 +10,16 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) +__all__ = ("AppHookConfigPatchBodyType",) 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 8f59ec945..24eb9bac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0898.py @@ -9,17 +9,11 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - -__all__ = ("AppHookConfigPatchBodyType",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) 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 24eb9bac1..e93cba9f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0899.py @@ -9,11 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0017 import AppPermissionsType -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) + repositories: NotRequired[list[str]] + repository_ids: NotRequired[list[int]] + permissions: NotRequired[AppPermissionsType] + + +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) 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 e93cba9f3..fad60868e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0900.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0017 import AppPermissionsType +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" + access_token: str - repositories: NotRequired[list[str]] - repository_ids: NotRequired[list[int]] - permissions: NotRequired[AppPermissionsType] - -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) 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 fad60868e..c0bad1ae1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0901.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" access_token: str -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) +__all__ = ("ApplicationsClientIdTokenPostBodyType",) 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 c0bad1ae1..8a68cb8df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0902.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" access_token: str -__all__ = ("ApplicationsClientIdTokenPostBodyType",) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) 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 8a68cb8df..8e0b6ce68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0903.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" access_token: str -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) 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 8e0b6ce68..8351134ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0904.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0017 import AppPermissionsType -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" + +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__ = ("ApplicationsClientIdTokenPatchBodyType",) +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) 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 8351134ad..4dce740a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0905.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0017 import AppPermissionsType +class CredentialsRevokePostBodyType(TypedDict): + """CredentialsRevokePostBody""" -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" + credentials: list[str] - 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__ = ("CredentialsRevokePostBodyType",) 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 4dce740a0..e3fd6e8a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0906.py @@ -9,13 +9,12 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import TypeAlias - -class CredentialsRevokePostBodyType(TypedDict): - """CredentialsRevokePostBody""" - - credentials: list[str] +EmojisGetResponse200Type: TypeAlias = dict[str, Any] +"""EmojisGetResponse200 +""" -__all__ = ("CredentialsRevokePostBodyType",) +__all__ = ("EmojisGetResponse200Type",) 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 e3fd6e8a8..041aa273c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0907.py @@ -9,12 +9,16 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing_extensions import TypedDict -EmojisGetResponse200Type: TypeAlias = dict[str, Any] -"""EmojisGetResponse200 -""" +from .group_0031 import ActionsHostedRunnerType + + +class EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" + + total_count: int + runners: list[ActionsHostedRunnerType] -__all__ = ("EmojisGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",) 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 041aa273c..f1d09102c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0908.py @@ -9,16 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0031 import ActionsHostedRunnerType +class EnterprisesEnterpriseActionsHostedRunnersPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersPostBody""" -class EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" + name: str + image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType + size: str + runner_group_id: int + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] - total_count: int - runners: list[ActionsHostedRunnerType] +class EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",) + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: NotRequired[str] + source: NotRequired[Literal["github", "partner", "custom"]] + + +__all__ = ( + "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType", + "EnterprisesEnterpriseActionsHostedRunnersPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0909.py b/githubkit/versions/ghec_v2022_11_28/types/group_0909.py index f1d09102c..80161e9ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0909.py @@ -9,33 +9,20 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0032 import ActionsHostedRunnerImageType -class EnterprisesEnterpriseActionsHostedRunnersPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsHostedRunnersPostBody""" - name: str - image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType - size: str - runner_group_id: int - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] +class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" - -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"]] + total_count: int + images: list[ActionsHostedRunnerImageType] __all__ = ( - "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType", - "EnterprisesEnterpriseActionsHostedRunnersPostBodyType", + "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type", ) 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 80161e9ce..b478dc35e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0910.py @@ -14,15 +14,13 @@ from .group_0032 import ActionsHostedRunnerImageType -class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type( +class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type( TypedDict ): - """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" + """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" total_count: int images: list[ActionsHostedRunnerImageType] -__all__ = ( - "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type", -) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type",) 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 b478dc35e..107964da3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0911.py @@ -11,16 +11,16 @@ from typing_extensions import TypedDict -from .group_0032 import ActionsHostedRunnerImageType +from .group_0030 import ActionsHostedRunnerMachineSpecType -class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type( +class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type( TypedDict ): - """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" + """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" total_count: int - images: list[ActionsHostedRunnerImageType] + machine_specs: list[ActionsHostedRunnerMachineSpecType] -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type",) 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 107964da3..1114dd36e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0912.py @@ -11,16 +11,12 @@ from typing_extensions import TypedDict -from .group_0030 import ActionsHostedRunnerMachineSpecType - -class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" total_count: int - machine_specs: list[ActionsHostedRunnerMachineSpecType] + platforms: list[str] -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type",) 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 1114dd36e..bb70222d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0913.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" - total_count: int - platforms: list[str] + name: NotRequired[str] + runner_group_id: NotRequired[int] + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType",) 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 bb70222d4..ed4fcf97f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0914.py @@ -9,16 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): - """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" +class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsPutBody""" - name: NotRequired[str] - runner_group_id: NotRequired[int] - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] + enabled_organizations: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) 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 ed4fcf97f..fbbf5634a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0915.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0036 import OrganizationSimpleType -class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsPutBody""" - enabled_organizations: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + total_count: float + organizations: list[OrganizationSimpleType] -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) 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 fbbf5634a..e10af1aa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0916.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0036 import OrganizationSimpleType +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + selected_organization_ids: list[int] - total_count: float - organizations: list[OrganizationSimpleType] - -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) 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 e10af1aa1..5a30f5258 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0917.py @@ -9,13 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" - selected_organization_ids: list[int] + total_count: float + runner_groups: list[RunnerGroupsEnterpriseType] -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) +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", +) 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 5a30f5258..772221f28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0918.py @@ -9,34 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" +class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" - 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] + 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__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsEnterpriseType", -) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) 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 772221f28..7127368d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0919.py @@ -9,21 +9,19 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" - name: str + name: NotRequired[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] + network_configuration_id: NotRequired[Union[str, None]] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) 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 7127368d3..bbc5ea822 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0920.py @@ -9,19 +9,20 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0036 import OrganizationSimpleType -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]] - network_configuration_id: NotRequired[Union[str, None]] +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + total_count: float + organizations: list[OrganizationSimpleType] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", +) 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 bbc5ea822..ab43b41f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0921.py @@ -11,18 +11,15 @@ from typing_extensions import TypedDict -from .group_0036 import OrganizationSimpleType - -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( TypedDict ): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" - total_count: float - organizations: list[OrganizationSimpleType] + selected_organization_ids: list[int] __all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", ) 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 ab43b41f7..7a7890a82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0922.py @@ -11,15 +11,18 @@ from typing_extensions import TypedDict +from .group_0041 import RunnerType -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( + +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( TypedDict ): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - selected_organization_ids: list[int] + total_count: float + runners: list[RunnerType] __all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ) 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 7a7890a82..f9cb41787 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0923.py @@ -11,18 +11,13 @@ from typing_extensions import TypedDict -from .group_0041 import RunnerType - -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( TypedDict ): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - total_count: float - runners: list[RunnerType] + runners: list[int] -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", -) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) 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 f9cb41787..c98f8064a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0924.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0041 import RunnerType -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] +class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" + total_count: NotRequired[float] + runners: NotRequired[list[RunnerType]] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) 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 c98f8064a..05462f38c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0925.py @@ -11,14 +11,14 @@ from typing_extensions import NotRequired, TypedDict -from .group_0041 import RunnerType +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" -class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - total_count: NotRequired[float] - runners: NotRequired[list[RunnerType]] - -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) 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 05462f38c..dc1b4cf57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0926.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0041 import RunnerType -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" - name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + runner: RunnerType + encoded_jit_config: str -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) 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 dc1b4cf57..c76b3c8f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0927.py @@ -11,16 +11,14 @@ from typing_extensions import TypedDict -from .group_0041 import RunnerType +from .group_0040 import RunnerLabelType -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" - runner: RunnerType - encoded_jit_config: str + total_count: int + labels: list[RunnerLabelType] -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) 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 c76b3c8f6..a11685a46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0928.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0040 import RunnerLabelType +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + labels: list[str] - total_count: int - labels: list[RunnerLabelType] - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) 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 a11685a46..55a7d1a67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0929.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" labels: list[str] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) 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 55a7d1a67..438f14e83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0930.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0040 import RunnerLabelType -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: int + labels: list[RunnerLabelType] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) 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 438f14e83..71ac6803f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0931.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0040 import RunnerLabelType +class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBodyType(TypedDict): + """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + client_id: str + repository_selection: Literal["all", "selected", "none"] + repositories: NotRequired[list[str]] - total_count: int - labels: list[RunnerLabelType] - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) +__all__ = ("EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBodyType",) 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 71ac6803f..293fd9d80 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0932.py @@ -13,12 +13,17 @@ from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBodyType(TypedDict): - """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBody""" - - client_id: str - repository_selection: Literal["all", "selected", "none"] +class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBodyType( + TypedDict +): + """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositories + PatchBody + """ + + repository_selection: Literal["all", "selected"] repositories: NotRequired[list[str]] -__all__ = ("EnterprisesEnterpriseAppsOrganizationsOrgInstallationsPostBodyType",) +__all__ = ( + "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBodyType", +) 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 293fd9d80..9adb6d2e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0933.py @@ -9,21 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBodyType( +class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBodyType( TypedDict ): """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositories - PatchBody + AddPatchBody """ - repository_selection: Literal["all", "selected"] - repositories: NotRequired[list[str]] + repositories: list[str] __all__ = ( - "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesPatchBodyType", + "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBodyType", ) 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 9adb6d2e5..dda949940 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0934.py @@ -12,16 +12,16 @@ from typing_extensions import TypedDict -class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBodyType( +class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBodyType( TypedDict ): """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositories - AddPatchBody + RemovePatchBody """ repositories: list[str] __all__ = ( - "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesAddPatchBodyType", + "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBodyType", ) 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 dda949940..72c44a2a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0935.py @@ -9,19 +9,43 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import TypedDict - -class EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBodyType( - TypedDict -): - """EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositories - RemovePatchBody - """ - - repositories: list[str] - - -__all__ = ( - "EnterprisesEnterpriseAppsOrganizationsOrgInstallationsInstallationIdRepositoriesRemovePatchBodyType", +from .group_0052 import ( + AmazonS3AccessKeysConfigType, + AzureBlobConfigType, + AzureHubConfigType, + DatadogConfigType, + HecConfigType, ) +from .group_0053 import AmazonS3OidcConfigType, SplunkConfigType +from .group_0054 import GoogleCloudConfigType + + +class EnterprisesEnterpriseAuditLogStreamsPostBodyType(TypedDict): + """EnterprisesEnterpriseAuditLogStreamsPostBody""" + + enabled: bool + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", + ] + vendor_specific: Union[ + AzureBlobConfigType, + AzureHubConfigType, + AmazonS3OidcConfigType, + AmazonS3AccessKeysConfigType, + SplunkConfigType, + HecConfigType, + GoogleCloudConfigType, + DatadogConfigType, + ] + + +__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",) 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 72c44a2a5..0daa19884 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0936.py @@ -23,8 +23,8 @@ from .group_0054 import GoogleCloudConfigType -class EnterprisesEnterpriseAuditLogStreamsPostBodyType(TypedDict): - """EnterprisesEnterpriseAuditLogStreamsPostBody""" +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType(TypedDict): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" enabled: bool stream_type: Literal[ @@ -48,4 +48,4 @@ class EnterprisesEnterpriseAuditLogStreamsPostBodyType(TypedDict): ] -__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",) 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 0daa19884..ec679fcbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0937.py @@ -9,43 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0052 import ( - AmazonS3AccessKeysConfigType, - AzureBlobConfigType, - AzureHubConfigType, - DatadogConfigType, - HecConfigType, -) -from .group_0053 import AmazonS3OidcConfigType, SplunkConfigType -from .group_0054 import GoogleCloudConfigType - - -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType(TypedDict): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" - - enabled: bool - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] - vendor_specific: Union[ - AzureBlobConfigType, - AzureHubConfigType, - AmazonS3OidcConfigType, - AmazonS3AccessKeysConfigType, - SplunkConfigType, - HecConfigType, - GoogleCloudConfigType, - DatadogConfigType, - ] - - -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",) +from typing_extensions import NotRequired, TypedDict + + +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type(TypedDict): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" + + errors: NotRequired[list[str]] + + +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type",) 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 ec679fcbf..2bdddc34c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0938.py @@ -12,10 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type(TypedDict): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" - errors: NotRequired[list[str]] + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type",) +__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) 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 2bdddc34c..e61b2ce8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0939.py @@ -9,15 +9,75 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0064 import CodeScanningOptionsType +from .group_0065 import CodeScanningDefaultSetupOptionsType -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + name: str + description: str + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + code_security: NotRequired[Literal["enabled", "disabled", "not_set"]] + 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_options: NotRequired[Union[CodeScanningOptionsType, None]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_protection: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", +) 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 387a0fa8a..91b280198 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0940.py @@ -12,23 +12,26 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0064 import CodeScanningDefaultSetupOptionsType +from .group_0065 import CodeScanningDefaultSetupOptionsType -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - name: str - description: str + name: NotRequired[str] + description: NotRequired[str] advanced_security: NotRequired[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] + code_security: NotRequired[Literal["enabled", "disabled", "not_set"]] 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 + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType ] dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] @@ -39,6 +42,7 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): code_scanning_delegated_alert_dismissal: NotRequired[ Literal["enabled", "disabled", "not_set"] ] + secret_protection: NotRequired[Literal["enabled", "disabled", "not_set"]] secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] secret_scanning_push_protection: NotRequired[ Literal["enabled", "disabled", "not_set"] @@ -61,11 +65,11 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): enforcement: NotRequired[Literal["enforced", "unenforced"]] -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions Feature options for Automatic dependency submission """ @@ -74,6 +78,6 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraph __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", ) 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 f12ac157b..ec6e0b6b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0941.py @@ -9,73 +9,18 @@ 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_0064 import CodeScanningDefaultSetupOptionsType - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - labeled_runners: NotRequired[bool] + scope: Literal["all", "all_without_configurations"] __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ) 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 ec6e0b6b9..47259f1fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0942.py @@ -10,17 +10,19 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - scope: Literal["all", "all_without_configurations"] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ) 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 47259f1fc..88e02b100 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0943.py @@ -12,17 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0063 import CodeSecurityConfigurationType -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ default_for_new_repos: NotRequired[ Literal["all", "none", "private_and_internal", "public"] ] + configuration: NotRequired[CodeSecurityConfigurationType] __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ) 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 88e02b100..669b21726 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0944.py @@ -9,25 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0063 import CodeSecurityConfigurationType +class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ - - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] + 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] ] - configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) 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 669b21726..1d58a615e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0945.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0072 import CopilotSeatDetailsType -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 EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) + +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",) 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 7d7991ce0..db2687fd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0946.py @@ -11,14 +11,14 @@ from typing_extensions import NotRequired, TypedDict -from .group_0071 import CopilotSeatDetailsType +from .group_0072 import CopilotSeatDetailsType -class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" +class EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type(TypedDict): + """EnterprisesEnterpriseMembersUsernameCopilotGetResponse200""" total_seats: NotRequired[int] seats: NotRequired[list[CopilotSeatDetailsType]] -__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type",) 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 a2513b672..e08d40656 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0947.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0071 import CopilotSeatDetailsType +from .group_0080 import NetworkConfigurationType -class EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type(TypedDict): - """EnterprisesEnterpriseMembersUsernameCopilotGetResponse200""" +class EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" - total_seats: NotRequired[int] - seats: NotRequired[list[CopilotSeatDetailsType]] + total_count: int + network_configurations: list[NetworkConfigurationType] -__all__ = ("EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type",) 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 a6314b9f9..8140a1e62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0948.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_0079 import NetworkConfigurationType +class EnterprisesEnterpriseNetworkConfigurationsPostBodyType(TypedDict): + """EnterprisesEnterpriseNetworkConfigurationsPostBody""" -class EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" + name: str + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: list[str] - total_count: int - network_configurations: list[NetworkConfigurationType] - -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",) 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 8140a1e62..021c97df5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0949.py @@ -13,12 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseNetworkConfigurationsPostBodyType(TypedDict): - """EnterprisesEnterpriseNetworkConfigurationsPostBody""" +class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType( + TypedDict +): + """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" - name: str + name: NotRequired[str] compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: list[str] + network_settings_ids: NotRequired[list[str]] -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",) +__all__ = ( + "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType", +) 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 021c97df5..6539d8406 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0950.py @@ -9,20 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0082 import CustomPropertyType -class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType( - TypedDict -): - """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" - name: NotRequired[str] - compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: NotRequired[list[str]] +class EnterprisesEnterprisePropertiesSchemaPatchBodyType(TypedDict): + """EnterprisesEnterprisePropertiesSchemaPatchBody""" + properties: list[CustomPropertyType] -__all__ = ( - "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType", -) + +__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",) 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 19e924f85..0b07cdfc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0951.py @@ -9,15 +9,79 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0081 import CustomPropertyType +from .group_0084 import RepositoryRulesetBypassActorType +from .group_0095 import EnterpriseRulesetConditionsOneof0Type +from .group_0096 import EnterpriseRulesetConditionsOneof1Type +from .group_0097 import EnterpriseRulesetConditionsOneof2Type +from .group_0098 import EnterpriseRulesetConditionsOneof3Type +from .group_0099 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0100 import RepositoryRuleUpdateType +from .group_0102 import RepositoryRuleRequiredLinearHistoryType +from .group_0103 import RepositoryRuleRequiredDeploymentsType +from .group_0106 import RepositoryRulePullRequestType +from .group_0108 import RepositoryRuleRequiredStatusChecksType +from .group_0110 import RepositoryRuleCommitMessagePatternType +from .group_0112 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0114 import RepositoryRuleCommitterEmailPatternType +from .group_0116 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleTagNamePatternType +from .group_0120 import RepositoryRuleFilePathRestrictionType +from .group_0122 import RepositoryRuleMaxFilePathLengthType +from .group_0124 import RepositoryRuleFileExtensionRestrictionType +from .group_0126 import RepositoryRuleMaxFileSizeType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0131 import RepositoryRuleCodeScanningType -class EnterprisesEnterprisePropertiesSchemaPatchBodyType(TypedDict): - """EnterprisesEnterprisePropertiesSchemaPatchBody""" +class EnterprisesEnterpriseRulesetsPostBodyType(TypedDict): + """EnterprisesEnterpriseRulesetsPostBody""" - properties: list[CustomPropertyType] + 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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",) +__all__ = ("EnterprisesEnterpriseRulesetsPostBodyType",) 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 3a937373f..ddb6f8c2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0952.py @@ -12,42 +12,41 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0083 import RepositoryRulesetBypassActorType -from .group_0094 import EnterpriseRulesetConditionsOneof0Type -from .group_0095 import EnterpriseRulesetConditionsOneof1Type -from .group_0096 import EnterpriseRulesetConditionsOneof2Type -from .group_0097 import EnterpriseRulesetConditionsOneof3Type -from .group_0098 import ( +from .group_0084 import RepositoryRulesetBypassActorType +from .group_0095 import EnterpriseRulesetConditionsOneof0Type +from .group_0096 import EnterpriseRulesetConditionsOneof1Type +from .group_0097 import EnterpriseRulesetConditionsOneof2Type +from .group_0098 import EnterpriseRulesetConditionsOneof3Type +from .group_0099 import ( RepositoryRuleCreationType, RepositoryRuleDeletionType, RepositoryRuleNonFastForwardType, RepositoryRuleRequiredSignaturesType, ) -from .group_0099 import RepositoryRuleUpdateType -from .group_0101 import RepositoryRuleRequiredLinearHistoryType -from .group_0102 import RepositoryRuleMergeQueueType -from .group_0104 import RepositoryRuleRequiredDeploymentsType -from .group_0107 import RepositoryRulePullRequestType -from .group_0109 import RepositoryRuleRequiredStatusChecksType -from .group_0111 import RepositoryRuleCommitMessagePatternType -from .group_0113 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0115 import RepositoryRuleCommitterEmailPatternType -from .group_0117 import RepositoryRuleBranchNamePatternType -from .group_0119 import RepositoryRuleTagNamePatternType -from .group_0121 import RepositoryRuleFilePathRestrictionType -from .group_0123 import RepositoryRuleMaxFilePathLengthType -from .group_0125 import RepositoryRuleFileExtensionRestrictionType -from .group_0127 import RepositoryRuleMaxFileSizeType -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0132 import RepositoryRuleCodeScanningType +from .group_0100 import RepositoryRuleUpdateType +from .group_0102 import RepositoryRuleRequiredLinearHistoryType +from .group_0103 import RepositoryRuleRequiredDeploymentsType +from .group_0106 import RepositoryRulePullRequestType +from .group_0108 import RepositoryRuleRequiredStatusChecksType +from .group_0110 import RepositoryRuleCommitMessagePatternType +from .group_0112 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0114 import RepositoryRuleCommitterEmailPatternType +from .group_0116 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleTagNamePatternType +from .group_0120 import RepositoryRuleFilePathRestrictionType +from .group_0122 import RepositoryRuleMaxFilePathLengthType +from .group_0124 import RepositoryRuleFileExtensionRestrictionType +from .group_0126 import RepositoryRuleMaxFileSizeType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0131 import RepositoryRuleCodeScanningType -class EnterprisesEnterpriseRulesetsPostBodyType(TypedDict): - """EnterprisesEnterpriseRulesetsPostBody""" +class EnterprisesEnterpriseRulesetsRulesetIdPutBodyType(TypedDict): + """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" - name: str + name: NotRequired[str] target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: Literal["disabled", "active", "evaluate"] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] conditions: NotRequired[ Union[ @@ -64,7 +63,6 @@ class EnterprisesEnterpriseRulesetsPostBodyType(TypedDict): RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -86,4 +84,4 @@ class EnterprisesEnterpriseRulesetsPostBodyType(TypedDict): ] -__all__ = ("EnterprisesEnterpriseRulesetsPostBodyType",) +__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",) 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 e3ca69b7e..d71ce1643 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0953.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_0083 import RepositoryRulesetBypassActorType -from .group_0094 import EnterpriseRulesetConditionsOneof0Type -from .group_0095 import EnterpriseRulesetConditionsOneof1Type -from .group_0096 import EnterpriseRulesetConditionsOneof2Type -from .group_0097 import EnterpriseRulesetConditionsOneof3Type -from .group_0098 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0099 import RepositoryRuleUpdateType -from .group_0101 import RepositoryRuleRequiredLinearHistoryType -from .group_0102 import RepositoryRuleMergeQueueType -from .group_0104 import RepositoryRuleRequiredDeploymentsType -from .group_0107 import RepositoryRulePullRequestType -from .group_0109 import RepositoryRuleRequiredStatusChecksType -from .group_0111 import RepositoryRuleCommitMessagePatternType -from .group_0113 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0115 import RepositoryRuleCommitterEmailPatternType -from .group_0117 import RepositoryRuleBranchNamePatternType -from .group_0119 import RepositoryRuleTagNamePatternType -from .group_0121 import RepositoryRuleFilePathRestrictionType -from .group_0123 import RepositoryRuleMaxFilePathLengthType -from .group_0125 import RepositoryRuleFileExtensionRestrictionType -from .group_0127 import RepositoryRuleMaxFileSizeType -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0132 import RepositoryRuleCodeScanningType +class EnterprisesEnterpriseSettingsBillingCostCentersPostBodyType(TypedDict): + """EnterprisesEnterpriseSettingsBillingCostCentersPostBody""" -class EnterprisesEnterpriseRulesetsRulesetIdPutBodyType(TypedDict): - """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" + name: 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[ - EnterpriseRulesetConditionsOneof0Type, - EnterpriseRulesetConditionsOneof1Type, - EnterpriseRulesetConditionsOneof2Type, - EnterpriseRulesetConditionsOneof3Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",) +__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersPostBodyType",) 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 d71ce1643..ecc55ceb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0954.py @@ -9,13 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersPostBodyType(TypedDict): - """EnterprisesEnterpriseSettingsBillingCostCentersPostBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200Type(TypedDict): + """EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200""" - name: str + id: NotRequired[str] + name: NotRequired[str] + resources: NotRequired[ + list[ + EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItemsType + ] + ] -__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersPostBodyType",) +class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItemsType( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems""" + + type: NotRequired[str] + name: NotRequired[str] + + +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItemsType", + "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200Type", +) 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 ecc55ceb1..ea83f2cf4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0955.py @@ -9,31 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200Type(TypedDict): - """EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200""" - - id: NotRequired[str] - name: NotRequired[str] - resources: NotRequired[ - list[ - EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItemsType - ] - ] - - -class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItemsType( +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBodyType( TypedDict ): - """EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems""" + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody""" - type: NotRequired[str] - name: NotRequired[str] + name: str -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItemsType", - "EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200Type", -) +__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBodyType",) 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 ea83f2cf4..58b8839d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0956.py @@ -9,15 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBodyType( +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType( TypedDict ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody""" + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" - name: str + users: NotRequired[list[str]] + organizations: NotRequired[list[str]] + repositories: NotRequired[list[str]] -__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBodyType",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", +) 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 58b8839d7..06bb4eff1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0957.py @@ -12,16 +12,16 @@ from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType( +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type( TypedDict ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 + 00 + """ - users: NotRequired[list[str]] - organizations: NotRequired[list[str]] - repositories: NotRequired[list[str]] + message: NotRequired[str] __all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", ) 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 06bb4eff1..92e3b540c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0958.py @@ -12,16 +12,16 @@ from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type( +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType( TypedDict ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 - 00 - """ + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" - message: NotRequired[str] + users: NotRequired[list[str]] + organizations: NotRequired[list[str]] + repositories: NotRequired[list[str]] __all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", ) 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 92e3b540c..38414b976 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0959.py @@ -12,16 +12,16 @@ from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType( +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type( TypedDict ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons + e200 + """ - users: NotRequired[list[str]] - organizations: NotRequired[list[str]] - repositories: NotRequired[list[str]] + message: NotRequired[str] __all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", ) 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 38414b976..2a811b378 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0960.py @@ -9,19 +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 EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons - e200 - """ +class GistsPostBodyType(TypedDict): + """GistsPostBody""" - message: NotRequired[str] + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] + + +GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsPostBodyPropFiles + +Names and content for the files that make up the gist + +Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} +""" __all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", + "GistsPostBodyPropFilesType", + "GistsPostBodyType", ) 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 2a811b378..cad5cbf2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0961.py @@ -9,29 +9,27 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class GistsPostBodyType(TypedDict): - """GistsPostBody""" +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" - description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] -GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsPostBodyPropFiles +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" -Names and content for the files that make up the gist - -Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} -""" + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] __all__ = ( - "GistsPostBodyPropFilesType", - "GistsPostBodyType", + "GistsGistIdGetResponse403PropBlockType", + "GistsGistIdGetResponse403Type", ) 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 cad5cbf2a..e5f3979ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0962.py @@ -9,27 +9,35 @@ 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 GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" +GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsGistIdPatchBodyPropFiles - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] +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__ = ( - "GistsGistIdGetResponse403PropBlockType", - "GistsGistIdGetResponse403Type", + "GistsGistIdPatchBodyPropFilesType", + "GistsGistIdPatchBodyType", ) 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 e5f3979ec..054661ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0963.py @@ -9,35 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] + body: str -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", -) +__all__ = ("GistsGistIdCommentsPostBodyType",) 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 054661ac7..39ac46ae2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0964.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" body: str -__all__ = ("GistsGistIdCommentsPostBodyType",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) 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 39ac46ae2..10e6b69c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0965.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" - body: str - -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) +__all__ = ("GistsGistIdStarGetResponse404Type",) 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 10e6b69c7..a168e4016 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0966.py @@ -9,11 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" -__all__ = ("GistsGistIdStarGetResponse404Type",) + total_count: int + repositories: list[RepositoryType] + repository_selection: NotRequired[str] + + +__all__ = ("InstallationRepositoriesGetResponse200Type",) 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 a168e4016..cb94d812e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0967.py @@ -9,17 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0020 import RepositoryType +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] - total_count: int - repositories: list[RepositoryType] - repository_selection: NotRequired[str] - -__all__ = ("InstallationRepositoriesGetResponse200Type",) +__all__ = ("MarkdownPostBodyType",) 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 cb94d812e..f9c51f36b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0968.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] + last_read_at: NotRequired[datetime] + read: NotRequired[bool] -__all__ = ("MarkdownPostBodyType",) +__all__ = ("NotificationsPutBodyType",) 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 f9c51f36b..70705f433 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0969.py @@ -9,15 +9,13 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" - last_read_at: NotRequired[datetime] - read: NotRequired[bool] + message: NotRequired[str] -__all__ = ("NotificationsPutBodyType",) +__all__ = ("NotificationsPutResponse202Type",) 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 70705f433..0dbd53ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0970.py @@ -12,10 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - message: NotRequired[str] + ignored: NotRequired[bool] -__all__ = ("NotificationsPutResponse202Type",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) 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 0dbd53ac7..b4bae8cdd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0971.py @@ -11,11 +11,14 @@ from typing_extensions import NotRequired, TypedDict +from .group_0181 import OrganizationCustomRepositoryRoleType -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" - ignored: NotRequired[bool] +class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" + total_count: NotRequired[int] + custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) + +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) 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 025afb145..3d20a3b98 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0972.py @@ -11,14 +11,16 @@ from typing_extensions import NotRequired, TypedDict -from .group_0179 import OrganizationCustomRepositoryRoleType +class OrganizationsOrgDependabotRepositoryAccessPatchBodyType(TypedDict): + """OrganizationsOrgDependabotRepositoryAccessPatchBody -class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" + Examples: + {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} + """ - total_count: NotRequired[int] - custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] + repository_ids_to_add: NotRequired[list[int]] + repository_ids_to_remove: NotRequired[list[int]] -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",) 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 3d20a3b98..2e01cf7ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0973.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class OrganizationsOrgDependabotRepositoryAccessPatchBodyType(TypedDict): - """OrganizationsOrgDependabotRepositoryAccessPatchBody +class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType(TypedDict): + """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" - Examples: - {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} - """ + default_level: Literal["public", "internal"] - repository_ids_to_add: NotRequired[list[int]] - repository_ids_to_remove: NotRequired[list[int]] - -__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType",) 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 2e01cf7ec..f0f3bfeba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0974.py @@ -10,13 +10,47 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict - - -class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType(TypedDict): - """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" - - default_level: Literal["public", "internal"] - - -__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType",) +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] + 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_0975.py b/githubkit/versions/ghec_v2022_11_28/types/group_0975.py index f0f3bfeba..c9f8884a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0975.py @@ -9,48 +9,28 @@ 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] - secret_scanning_validity_checks_enabled: NotRequired[bool] - deploy_keys_enabled_for_repositories: NotRequired[bool] - - -__all__ = ("OrgsOrgPatchBodyType",) +from typing_extensions import TypedDict + + +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" + + 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 + + +__all__ = ( + "ActionsCacheUsageByRepositoryType", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", +) 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 c9f8884a9..c6bcde5bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0976.py @@ -11,26 +11,14 @@ from typing_extensions import TypedDict +from .group_0031 import ActionsHostedRunnerType -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int - repository_cache_usages: list[ActionsCacheUsageByRepositoryType] - - -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository +class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersGetResponse200""" - GitHub Actions Cache Usage by repository. - """ - - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int + total_count: int + runners: list[ActionsHostedRunnerType] -__all__ = ( - "ActionsCacheUsageByRepositoryType", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", -) +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) 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 c6bcde5bd..da2efcd13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py @@ -9,16 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0031 import ActionsHostedRunnerType +class OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBody""" -class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersGetResponse200""" + name: str + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType + size: str + runner_group_id: int + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] - total_count: int - runners: list[ActionsHostedRunnerType] +class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBodyPropImage -__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: NotRequired[str] + source: NotRequired[Literal["github", "partner", "custom"]] + + +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBodyPropImageType", + "OrgsOrgActionsHostedRunnersPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py index da2efcd13..40e9ab690 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py @@ -9,33 +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 OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): - """OrgsOrgActionsHostedRunnersPostBody""" - name: str - image: OrgsOrgActionsHostedRunnersPostBodyPropImageType - size: str - runner_group_id: int - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): - """OrgsOrgActionsHostedRunnersPostBodyPropImage - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ - - id: NotRequired[str] - source: NotRequired[Literal["github", "partner", "custom"]] - - -__all__ = ( - "OrgsOrgActionsHostedRunnersPostBodyPropImageType", - "OrgsOrgActionsHostedRunnersPostBodyType", -) +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) 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 40e9ab690..54fbcec10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0979.py @@ -14,11 +14,11 @@ from .group_0032 import ActionsHostedRunnerImageType -class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" total_count: int images: list[ActionsHostedRunnerImageType] -__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) 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 54fbcec10..32724978e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0980.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0032 import ActionsHostedRunnerImageType +from .group_0030 import ActionsHostedRunnerMachineSpecType -class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" total_count: int - images: list[ActionsHostedRunnerImageType] + machine_specs: list[ActionsHostedRunnerMachineSpecType] -__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) 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 32724978e..f96c7b054 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0981.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0030 import ActionsHostedRunnerMachineSpecType - -class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" total_count: int - machine_specs: list[ActionsHostedRunnerMachineSpecType] + platforms: list[str] -__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) 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 f96c7b054..2331cd4aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0982.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" - total_count: int - platforms: list[str] + name: NotRequired[str] + runner_group_id: NotRequired[int] + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] -__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) 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 2331cd4aa..dfdea43ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0983.py @@ -9,16 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): - """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" - name: NotRequired[str] - runner_group_id: NotRequired[int] - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) 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 dfdea43ec..484b23498 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0984.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float + repositories: list[RepositoryType] -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) 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 484b23498..a2735688c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0985.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0020 import RepositoryType +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: float - repositories: list[RepositoryType] - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) 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 a2735688c..507ed1dee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0986.py @@ -9,13 +9,36 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsGetResponse200""" - selected_repository_ids: list[int] + total_count: float + runner_groups: list[RunnerGroupsOrgType] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) +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_0987.py b/githubkit/versions/ghec_v2022_11_28/types/group_0987.py index 507ed1dee..28b84e166 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0987.py @@ -9,36 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsGetResponse200""" +class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsPostBody""" - 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] - network_configuration_id: NotRequired[str] - inherited: bool - inherited_allows_public_repositories: NotRequired[bool] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] + 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__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsOrgType", -) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) 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 28b84e166..d7ec24fe4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0988.py @@ -9,21 +9,19 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsPostBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" 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] + network_configuration_id: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) 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 d7ec24fe4..3542c5d01 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0989.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_0031 import ActionsHostedRunnerType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - network_configuration_id: NotRequired[Union[str, None]] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + total_count: float + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) 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 3542c5d01..ab36147ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0990.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0031 import ActionsHostedRunnerType +from .group_0178 import MinimalRepositoryType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" total_count: float - runners: list[ActionsHostedRunnerType] + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) 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 de77271da..0ab50bd6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0991.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0176 import MinimalRepositoryType +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: float - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) 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 0ab50bd6d..4b286a4c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0992.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0041 import RunnerType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - selected_repository_ids: list[int] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float + runners: list[RunnerType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) 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 4b286a4c3..bb10bbf9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0993.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0041 import RunnerType +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + runners: list[int] - total_count: float - runners: list[RunnerType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) 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 bb10bbf9a..b2064758b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0994.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0041 import RunnerType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" + total_count: int + runners: list[RunnerType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) 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 b2064758b..5e08d0dd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0995.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0041 import RunnerType +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - total_count: int - runners: list[RunnerType] - -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) 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 5e08d0dd4..86d454795 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0996.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - name: str - runner_group_id: int labels: list[str] - work_folder: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) 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 86d454795..1e050b2e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0997.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" labels: list[str] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) 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 1e050b2e1..f17121488 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0998.py @@ -9,13 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" - labels: list[str] + total_count: int + secrets: list[OrganizationActionsSecretType] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) +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_0999.py b/githubkit/versions/ghec_v2022_11_28/types/group_0999.py index f17121488..6f2b7d0ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0999.py @@ -9,32 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" - total_count: int - secrets: list[OrganizationActionsSecretType] - - -class OrganizationActionsSecretType(TypedDict): - """Actions Secret for an Organization - - Secrets for GitHub Actions for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime + encrypted_value: str + key_id: str visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrganizationActionsSecretType", - "OrgsOrgActionsSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) 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 6f2b7d0ff..54330fce9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1000.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_0178 import MinimalRepositoryType -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" - encrypted_value: str - key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) 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 c37007cdb..91774da55 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1001.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0176 import MinimalRepositoryType +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) 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 91774da55..feb95bc8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1002.py @@ -9,13 +9,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 OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" - selected_repository_ids: list[int] + total_count: int + variables: list[OrganizationActionsVariableType] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) +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_1003.py b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py index feb95bc8c..35d9aa84a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py @@ -9,33 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" - - total_count: int - variables: list[OrganizationActionsVariableType] - - -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. - """ +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" name: str value: str - created_at: datetime - updated_at: datetime visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrganizationActionsVariableType", - "OrgsOrgActionsVariablesGetResponse200Type", -) +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) 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 35d9aa84a..32397b063 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1004.py @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" - name: str - value: str - visibility: Literal["all", "private", "selected"] + name: NotRequired[str] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) 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 32397b063..be688a6f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1005.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_0178 import MinimalRepositoryType -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) 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 fb932c96b..7b7f6fc84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1006.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0176 import MinimalRepositoryType +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) 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 7b7f6fc84..2a4ab0267 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1007.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgAttestationsBulkListPostBodyType(TypedDict): + """OrgsOrgAttestationsBulkListPostBody""" - selected_repository_ids: list[int] + subject_digests: list[str] + predicate_type: NotRequired[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgAttestationsBulkListPostBodyType",) 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 2a4ab0267..0dd3d4f18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1008.py @@ -9,14 +9,42 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class OrgsOrgAttestationsBulkListPostBodyType(TypedDict): - """OrgsOrgAttestationsBulkListPostBody""" +class OrgsOrgAttestationsBulkListPostResponse200Type(TypedDict): + """OrgsOrgAttestationsBulkListPostResponse200""" - subject_digests: list[str] - predicate_type: NotRequired[str] + attestations_subject_digests: NotRequired[ + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType + ] + page_info: NotRequired[OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType] -__all__ = ("OrgsOrgAttestationsBulkListPostBodyType",) +OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + +Mapping of subject digest to bundles. +""" + + +class OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): + """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: NotRequired[bool] + has_previous: NotRequired[bool] + next_: NotRequired[str] + previous: NotRequired[str] + + +__all__ = ( + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", + "OrgsOrgAttestationsBulkListPostResponse200Type", +) 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 0dd3d4f18..2721f9331 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1009.py @@ -9,42 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class OrgsOrgAttestationsBulkListPostResponse200Type(TypedDict): - """OrgsOrgAttestationsBulkListPostResponse200""" +class OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): + """OrgsOrgAttestationsDeleteRequestPostBodyOneof0""" - attestations_subject_digests: NotRequired[ - OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType - ] - page_info: NotRequired[OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType] + subject_digests: list[str] -OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests - -Mapping of subject digest to bundles. -""" - - -class OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): - """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo - - Information about the current page. - """ - - has_next: NotRequired[bool] - has_previous: NotRequired[bool] - next_: NotRequired[str] - previous: NotRequired[str] - - -__all__ = ( - "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", - "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", - "OrgsOrgAttestationsBulkListPostResponse200Type", -) +__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type",) 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 2721f9331..0e26279dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1010.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): - """OrgsOrgAttestationsDeleteRequestPostBodyOneof0""" +class OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): + """OrgsOrgAttestationsDeleteRequestPostBodyOneof1""" - subject_digests: list[str] + attestation_ids: list[int] -__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type",) +__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type",) 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 0e26279dc..5fba98e1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1011.py @@ -9,13 +9,70 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): - """OrgsOrgAttestationsDeleteRequestPostBodyOneof1""" +class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - attestation_ids: list[int] + attestations: NotRequired[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] + ] -__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type",) +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pVerificationMaterial +""" + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pDsseEnvelope +""" + + +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1012.py b/githubkit/versions/ghec_v2022_11_28/types/group_1012.py index 5fba98e1e..57bdd1a34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1012.py @@ -9,70 +9,32 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" +class OrgsOrgCampaignsPostBodyType(TypedDict): + """OrgsOrgCampaignsPostBody""" - attestations: NotRequired[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] - ] + name: str + description: str + managers: NotRequired[list[str]] + team_managers: NotRequired[list[str]] + ends_at: datetime + contact_link: NotRequired[Union[str, None]] + code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType] + generate_issues: NotRequired[bool] -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" +class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType(TypedDict): + """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - 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 -""" + repository_id: int + alert_numbers: list[int] __all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "OrgsOrgAttestationsSubjectDigestGetResponse200Type", + "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", + "OrgsOrgCampaignsPostBodyType", ) 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 57bdd1a34..25289c59a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1013.py @@ -10,31 +10,20 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgCampaignsPostBodyType(TypedDict): - """OrgsOrgCampaignsPostBody""" +class OrgsOrgCampaignsCampaignNumberPatchBodyType(TypedDict): + """OrgsOrgCampaignsCampaignNumberPatchBody""" - name: str - description: str + name: NotRequired[str] + description: NotRequired[str] managers: NotRequired[list[str]] team_managers: NotRequired[list[str]] - ends_at: datetime + ends_at: NotRequired[datetime] contact_link: NotRequired[Union[str, None]] - code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType] - generate_issues: NotRequired[bool] + state: NotRequired[Literal["open", "closed"]] -class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType(TypedDict): - """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - - repository_id: int - alert_numbers: list[int] - - -__all__ = ( - "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", - "OrgsOrgCampaignsPostBodyType", -) +__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBodyType",) 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 25289c59a..8f7dd9dc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1014.py @@ -9,21 +9,110 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0064 import CodeScanningOptionsType +from .group_0065 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCampaignsCampaignNumberPatchBodyType(TypedDict): - """OrgsOrgCampaignsCampaignNumberPatchBody""" - name: NotRequired[str] - description: NotRequired[str] - managers: NotRequired[list[str]] - team_managers: NotRequired[list[str]] - ends_at: NotRequired[datetime] - contact_link: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] +class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + name: str + description: str + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + code_security: NotRequired[Literal["enabled", "disabled", "not_set"]] + 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_options: NotRequired[Union[CodeScanningOptionsType, None]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_protection: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBodyType",) + +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_1015.py b/githubkit/versions/ghec_v2022_11_28/types/group_1015.py index 83d62b82e..a177d65ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1015.py @@ -9,106 +9,13 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0064 import CodeScanningDefaultSetupOptionsType +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" -class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsPostBody""" + selected_repository_ids: NotRequired[list[int]] - name: str - description: str - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] - - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyType", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) 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 a177d65ec..2cc191208 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1016.py @@ -9,13 +9,108 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0065 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + code_security: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_protection: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) + +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_1017.py b/githubkit/versions/ghec_v2022_11_28/types/group_1017.py index 058420b31..2ad011ac8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1017.py @@ -9,106 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0064 import CodeScanningDefaultSetupOptionsType +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" ] - 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"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) 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 2ad011ac8..ed69b7f35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1018.py @@ -13,13 +13,12 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] ] - selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) 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 ed69b7f35..e5c78203a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1019.py @@ -12,13 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0063 import CodeSecurityConfigurationType -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" default_for_new_repos: NotRequired[ Literal["all", "none", "private_and_internal", "public"] ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) 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 e5c78203a..a0ff8b251 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1020.py @@ -9,23 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0063 import CodeSecurityConfigurationType +from .group_0190 import CodespaceType -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] + total_count: int + codespaces: list[CodespaceType] -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) 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 0b5961550..1234cdbd0 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,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0188 import CodespaceType +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[list[str]] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) 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 1234cdbd0..214a3ca92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1022.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 OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[list[str]] + selected_usernames: list[str] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) 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 214a3ca92..1aec188b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1023.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" selected_usernames: list[str] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) 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 1aec188b7..b5051f775 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1024.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 OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" - selected_usernames: list[str] + total_count: int + secrets: list[CodespacesOrgSecretType] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) +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_1025.py b/githubkit/versions/ghec_v2022_11_28/types/group_1025.py index b5051f775..8eb7cb359 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1025.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 OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - total_count: int - secrets: list[CodespacesOrgSecretType] - - -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime + encrypted_value: NotRequired[str] + key_id: NotRequired[str] visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "CodespacesOrgSecretType", - "OrgsOrgCodespacesSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) 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 8eb7cb359..e8227a0c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1026.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_0178 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 OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) 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 00513b5d7..9d6f25331 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1027.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0176 import MinimalRepositoryType +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) 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 9d6f25331..3ff668c21 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1028.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0072 import CopilotSeatDetailsType -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: list[int] +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) 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 723a7b03d..a2e3b4a72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1029.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0071 import CopilotSeatDetailsType +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" + selected_teams: list[str] - total_seats: NotRequired[int] - seats: NotRequired[list[CopilotSeatDetailsType]] - -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) 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 a2e3b4a72..76837fcdc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1030.py @@ -12,10 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - selected_teams: list[str] + The total number of seats created for members of the specified team(s). + """ + seats_created: int -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) 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 76837fcdc..dba449159 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1031.py @@ -12,13 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - The total number of seats created for members of the specified team(s). - """ + selected_teams: list[str] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) 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 dba449159..1b12f6a95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1032.py @@ -12,10 +12,14 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - selected_teams: list[str] + The total number of seats set to "pending cancellation" for members of the + specified team(s). + """ + seats_cancelled: int -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) 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 1b12f6a95..9a511ba2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1033.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + selected_usernames: list[str] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) 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 9a511ba2a..651754049 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1034.py @@ -12,10 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - selected_usernames: list[str] + The total number of seats created for the specified user(s). + """ + seats_created: int -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) 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 651754049..dddfa0789 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1035.py @@ -12,13 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - The total number of seats created for the specified user(s). - """ + selected_usernames: list[str] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) 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 dddfa0789..b1510f36c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1036.py @@ -12,10 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - selected_usernames: list[str] + The total number of seats set to "pending cancellation" for the specified users. + """ + seats_cancelled: int -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) 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 b1510f36c..d7e5d39a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1037.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0181 import OrganizationCustomRepositoryRoleType -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seats set to "pending cancellation" for the specified users. - """ +class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): + """OrgsOrgCustomRepositoryRolesGetResponse200""" - seats_cancelled: int + total_count: NotRequired[int] + custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) 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 aa154d32c..fef93ba69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1038.py @@ -9,16 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0179 import OrganizationCustomRepositoryRoleType +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" -class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): - """OrgsOrgCustomRepositoryRolesGetResponse200""" + total_count: int + secrets: list[OrganizationDependabotSecretType] - total_count: NotRequired[int] - custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) + 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_1039.py b/githubkit/versions/ghec_v2022_11_28/types/group_1039.py index fef93ba69..5ee895714 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1039.py @@ -9,32 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - total_count: int - secrets: list[OrganizationDependabotSecretType] - - -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization - - Secrets for GitHub Dependabot for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime + encrypted_value: NotRequired[str] + key_id: NotRequired[str] visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + selected_repository_ids: NotRequired[list[str]] -__all__ = ( - "OrganizationDependabotSecretType", - "OrgsOrgDependabotSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) 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 5ee895714..3f550cc0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1040.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_0178 import MinimalRepositoryType -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[str]] +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) 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 df97afbb8..258f8e119 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1041.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0176 import MinimalRepositoryType +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) 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 258f8e119..e99853b27 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1042.py @@ -9,13 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" - selected_repository_ids: list[int] + name: str + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] + + +__all__ = ( + "OrgsOrgHooksPostBodyPropConfigType", + "OrgsOrgHooksPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1043.py b/githubkit/versions/ghec_v2022_11_28/types/group_1043.py index e99853b27..19cc5034f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1043.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] events: NotRequired[list[str]] active: NotRequired[bool] + name: NotRequired[str] -class OrgsOrgHooksPostBodyPropConfigType(TypedDict): - """OrgsOrgHooksPostBodyPropConfig +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig Key/value pairs to provide settings for this webhook. """ @@ -32,11 +32,9 @@ class OrgsOrgHooksPostBodyPropConfigType(TypedDict): content_type: NotRequired[str] secret: NotRequired[str] insecure_ssl: NotRequired[Union[str, float]] - username: NotRequired[str] - password: NotRequired[str] __all__ = ( - "OrgsOrgHooksPostBodyPropConfigType", - "OrgsOrgHooksPostBodyType", + "OrgsOrgHooksHookIdPatchBodyPropConfigType", + "OrgsOrgHooksHookIdPatchBodyType", ) 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 19cc5034f..6399b7a4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1044.py @@ -13,28 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] - name: NotRequired[str] - - -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str + url: NotRequired[str] content_type: NotRequired[str] secret: NotRequired[str] insecure_ssl: NotRequired[Union[str, float]] -__all__ = ( - "OrgsOrgHooksHookIdPatchBodyPropConfigType", - "OrgsOrgHooksHookIdPatchBodyType", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) 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 6399b7a4c..54372b1e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1045.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0018 import InstallationType -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" + total_count: int + installations: list[InstallationType] -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) + +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) 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 54372b1e4..5916d7d10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1046.py @@ -11,14 +11,9 @@ from typing_extensions import TypedDict -from .group_0018 import InstallationType +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" - total_count: int - installations: list[InstallationType] - - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) 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 5916d7d10..2184fe8a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1047.py @@ -9,11 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("OrgsOrgInvitationsPostBodyType",) 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 2184fe8a4..5864e6e63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1048.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_0190 import CodespaceType -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[list[int]] +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("OrgsOrgInvitationsPostBodyType",) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) 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 beb4044f0..78a34c5ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1049.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_0188 import CodespaceType +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + role: NotRequired[Literal["admin", "member"]] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) 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 78a34c5ed..242ce3795 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1050.py @@ -13,10 +13,18 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" - role: NotRequired[Literal["admin", "member"]] + 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__ = ("OrgsOrgMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgMigrationsPostBodyType",) 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 242ce3795..b7593464f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1051.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - 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"]]] + async_: NotRequired[bool] -__all__ = ("OrgsOrgMigrationsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) 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 b7593464f..5de4170f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1052.py @@ -9,13 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" - async_: NotRequired[bool] - -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) 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 5de4170f2..f43c7d76b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1053.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) 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 f43c7d76b..a99cad652 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1054.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +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__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) 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 a99cad652..f08e02365 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1055.py @@ -13,12 +13,11 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - pat_request_ids: NotRequired[list[int]] action: Literal["approve", "deny"] reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) 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 f08e02365..b2f0b1907 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1056.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + action: Literal["revoke"] + pat_ids: list[int] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) 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 b2f0b1907..32c37cd97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1057.py @@ -13,11 +13,10 @@ from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" action: Literal["revoke"] - pat_ids: list[int] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) 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 32c37cd97..93c0b2743 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1058.py @@ -9,14 +9,49 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict - - -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" - - action: Literal["revoke"] - - -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesGetResponse200""" + + total_count: int + configurations: list[OrgPrivateRegistryConfigurationType] + + +class OrgPrivateRegistryConfigurationType(TypedDict): + """Organization private registry + + Private registry configuration for an organization + """ + + name: str + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] + 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_1059.py b/githubkit/versions/ghec_v2022_11_28/types/group_1059.py index a8b5e1475..52f611337 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1059.py @@ -9,33 +9,36 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesGetResponse200""" - - total_count: int - configurations: list[OrgPrivateRegistryConfigurationType] - - -class OrgPrivateRegistryConfigurationType(TypedDict): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] +class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): + """OrgsOrgPrivateRegistriesPostBody""" + + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] + url: str username: NotRequired[Union[str, None]] + encrypted_value: str + key_id: str visibility: Literal["all", "private", "selected"] - created_at: datetime - updated_at: datetime + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrgPrivateRegistryConfigurationType", - "OrgsOrgPrivateRegistriesGetResponse200Type", -) +__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) 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 1ae97cd3a..95dc5e190 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1060.py @@ -9,20 +9,14 @@ 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 OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] - url: str - username: NotRequired[Union[str, None]] - encrypted_value: str key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + key: str -__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) 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 95dc5e190..0f0608929 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1061.py @@ -9,14 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - - key_id: str - key: str - - -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" + + registry_type: NotRequired[ + Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] + ] + url: NotRequired[str] + username: NotRequired[Union[str, None]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[list[int]] + + +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) 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 47498b69c..1afe17554 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1062.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" - registry_type: NotRequired[ - Literal["maven_repository", "nuget_feed", "goproxy_server"] - ] - url: NotRequired[str] - 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]] + name: str + body: NotRequired[str] -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) +__all__ = ("OrgsOrgProjectsPostBodyType",) 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 1afe17554..aa49543ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1063.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0082 import CustomPropertyType -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" - name: str - body: NotRequired[str] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: list[CustomPropertyType] -__all__ = ("OrgsOrgProjectsPostBodyType",) + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) 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 5a0c8bdca..391fadf41 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1064.py @@ -11,13 +11,14 @@ from typing_extensions import TypedDict -from .group_0081 import CustomPropertyType +from .group_0227 import CustomPropertyValueType -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" - properties: list[CustomPropertyType] + repository_names: list[str] + properties: list[CustomPropertyValueType] -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) 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 22c302464..9dda36fc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1065.py @@ -9,16 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict - -from .group_0225 import CustomPropertyValueType - - -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" - - repository_names: list[str] - properties: list[CustomPropertyValueType] +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__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ( + "OrgsOrgReposPostBodyPropCustomPropertiesType", + "OrgsOrgReposPostBodyType", +) 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 9dda36fc3..4a268b175 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1066.py @@ -9,51 +9,77 @@ from __future__ import annotations -from typing import Any, Literal -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0084 import RepositoryRulesetBypassActorType +from .group_0099 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0100 import RepositoryRuleUpdateType +from .group_0102 import RepositoryRuleRequiredLinearHistoryType +from .group_0103 import RepositoryRuleRequiredDeploymentsType +from .group_0106 import RepositoryRulePullRequestType +from .group_0108 import RepositoryRuleRequiredStatusChecksType +from .group_0110 import RepositoryRuleCommitMessagePatternType +from .group_0112 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0114 import RepositoryRuleCommitterEmailPatternType +from .group_0116 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleTagNamePatternType +from .group_0120 import RepositoryRuleFilePathRestrictionType +from .group_0122 import RepositoryRuleMaxFilePathLengthType +from .group_0124 import RepositoryRuleFileExtensionRestrictionType +from .group_0126 import RepositoryRuleMaxFileSizeType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0131 import RepositoryRuleCodeScanningType +from .group_0135 import OrgRulesetConditionsOneof0Type +from .group_0136 import OrgRulesetConditionsOneof1Type +from .group_0137 import OrgRulesetConditionsOneof2Type -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" 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"] + 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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - 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__ = ( - "OrgsOrgReposPostBodyPropCustomPropertiesType", - "OrgsOrgReposPostBodyType", -) +__all__ = ("OrgsOrgRulesetsPostBodyType",) 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 01e5f310b..8906cfb6f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1067.py @@ -12,41 +12,40 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0083 import RepositoryRulesetBypassActorType -from .group_0098 import ( +from .group_0084 import RepositoryRulesetBypassActorType +from .group_0099 import ( RepositoryRuleCreationType, RepositoryRuleDeletionType, RepositoryRuleNonFastForwardType, RepositoryRuleRequiredSignaturesType, ) -from .group_0099 import RepositoryRuleUpdateType -from .group_0101 import RepositoryRuleRequiredLinearHistoryType -from .group_0102 import RepositoryRuleMergeQueueType -from .group_0104 import RepositoryRuleRequiredDeploymentsType -from .group_0107 import RepositoryRulePullRequestType -from .group_0109 import RepositoryRuleRequiredStatusChecksType -from .group_0111 import RepositoryRuleCommitMessagePatternType -from .group_0113 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0115 import RepositoryRuleCommitterEmailPatternType -from .group_0117 import RepositoryRuleBranchNamePatternType -from .group_0119 import RepositoryRuleTagNamePatternType -from .group_0121 import RepositoryRuleFilePathRestrictionType -from .group_0123 import RepositoryRuleMaxFilePathLengthType -from .group_0125 import RepositoryRuleFileExtensionRestrictionType -from .group_0127 import RepositoryRuleMaxFileSizeType -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0136 import OrgRulesetConditionsOneof0Type -from .group_0137 import OrgRulesetConditionsOneof1Type -from .group_0138 import OrgRulesetConditionsOneof2Type +from .group_0100 import RepositoryRuleUpdateType +from .group_0102 import RepositoryRuleRequiredLinearHistoryType +from .group_0103 import RepositoryRuleRequiredDeploymentsType +from .group_0106 import RepositoryRulePullRequestType +from .group_0108 import RepositoryRuleRequiredStatusChecksType +from .group_0110 import RepositoryRuleCommitMessagePatternType +from .group_0112 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0114 import RepositoryRuleCommitterEmailPatternType +from .group_0116 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleTagNamePatternType +from .group_0120 import RepositoryRuleFilePathRestrictionType +from .group_0122 import RepositoryRuleMaxFilePathLengthType +from .group_0124 import RepositoryRuleFileExtensionRestrictionType +from .group_0126 import RepositoryRuleMaxFileSizeType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0131 import RepositoryRuleCodeScanningType +from .group_0135 import OrgRulesetConditionsOneof0Type +from .group_0136 import OrgRulesetConditionsOneof1Type +from .group_0137 import OrgRulesetConditionsOneof2Type -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" - name: str + name: NotRequired[str] target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: Literal["disabled", "active", "evaluate"] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] conditions: NotRequired[ Union[ @@ -62,7 +61,6 @@ class OrgsOrgRulesetsPostBodyType(TypedDict): RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -84,4 +82,4 @@ class OrgsOrgRulesetsPostBodyType(TypedDict): ] -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) 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 41f07454d..1606d940b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1068.py @@ -9,79 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0083 import RepositoryRulesetBypassActorType -from .group_0098 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0099 import RepositoryRuleUpdateType -from .group_0101 import RepositoryRuleRequiredLinearHistoryType -from .group_0102 import RepositoryRuleMergeQueueType -from .group_0104 import RepositoryRuleRequiredDeploymentsType -from .group_0107 import RepositoryRulePullRequestType -from .group_0109 import RepositoryRuleRequiredStatusChecksType -from .group_0111 import RepositoryRuleCommitMessagePatternType -from .group_0113 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0115 import RepositoryRuleCommitterEmailPatternType -from .group_0117 import RepositoryRuleBranchNamePatternType -from .group_0119 import RepositoryRuleTagNamePatternType -from .group_0121 import RepositoryRuleFilePathRestrictionType -from .group_0123 import RepositoryRuleMaxFilePathLengthType -from .group_0125 import RepositoryRuleFileExtensionRestrictionType -from .group_0127 import RepositoryRuleMaxFileSizeType -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0136 import OrgRulesetConditionsOneof0Type -from .group_0137 import OrgRulesetConditionsOneof1Type -from .group_0138 import OrgRulesetConditionsOneof2Type +from .group_0080 import NetworkConfigurationType -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" +class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] + total_count: int + network_configurations: list[NetworkConfigurationType] -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",) 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 4c455c905..c29f59c8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1069.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_0079 import NetworkConfigurationType +class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" -class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): - """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" + name: str + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: list[str] - total_count: int - network_configurations: list[NetworkConfigurationType] - -__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) 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 c29f59c8e..cf5c73d09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1070.py @@ -13,12 +13,14 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): - """OrgsOrgSettingsNetworkConfigurationsPostBody""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( + TypedDict +): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - name: str + name: NotRequired[str] compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: list[str] + network_settings_ids: NotRequired[list[str]] -__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) 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 cf5c73d09..ccfb358e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1071.py @@ -13,14 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( - TypedDict -): - """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - - name: NotRequired[str] - compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: NotRequired[list[str]] - - -__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" + + name: str + description: NotRequired[str] + maintainers: NotRequired[list[str]] + repo_names: NotRequired[list[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] + + +__all__ = ("OrgsOrgTeamsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1072.py b/githubkit/versions/ghec_v2022_11_28/types/group_1072.py index ccfb358e6..c08c152bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1072.py @@ -9,23 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsPostBodyType(TypedDict): - """OrgsOrgTeamsPostBody""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - name: str + name: NotRequired[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] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("OrgsOrgTeamsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) 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 c08c152bc..cb961efbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1073.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - 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]] + title: str + body: str + private: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) 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 cb961efbb..db3011d85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1074.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - title: str - body: str - private: NotRequired[bool] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) 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 db3011d85..a05290583 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1075.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + body: str -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) 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 a05290583..a6b974137 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1076.py @@ -12,10 +12,14 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" body: str -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", +) 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 a6b974137..937b98f91 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1077.py @@ -9,17 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( TypedDict ): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ) 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 937b98f91..c71526f64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1078.py @@ -13,18 +13,12 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) 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 c71526f64..2c9744c1c 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,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + group_id: int -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) 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 2c9744c1c..b4d610e84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1080.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 OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - group_id: int + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) 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 b4d610e84..8466dce90 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1081.py @@ -13,10 +13,10 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - role: NotRequired[Literal["member", "maintainer"]] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) 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 8466dce90..a637157e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1082.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - permission: NotRequired[Literal["read", "write", "admin"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) 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 a637157e4..b42f638ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1083.py @@ -12,11 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + permission: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) 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 b42f638ac..7ecc032e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1084.py @@ -12,10 +12,23 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - permission: NotRequired[str] + groups: NotRequired[ + list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + ] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +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_1085.py b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py index 7ecc032e3..edc438335 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py @@ -9,26 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - groups: NotRequired[ - list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] - ] + query_suite: NotRequired[Literal["default", "extended"]] -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - - -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", -) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) 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 edc438335..8710755b1 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,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - query_suite: NotRequired[Literal["default", "extended"]] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) 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 8710755b1..3481963bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1087.py @@ -9,15 +9,15 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) 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 3481963bb..ab2395816 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1088.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] + position: str + column_id: NotRequired[int] -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) 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 ab2395816..7c136f63a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1089.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - position: str - column_id: NotRequired[int] - -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) 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 7c136f63a..2628f5b1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1090.py @@ -9,11 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1091.py b/githubkit/versions/ghec_v2022_11_28/types/group_1091.py index 2628f5b1a..c4d1b64db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1091.py @@ -12,26 +12,25 @@ from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" + code: NotRequired[str] message: NotRequired[str] documentation_url: NotRequired[str] errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] ] -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" code: NotRequired[str] message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] __all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", ) 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 c4d1b64db..62ebaaaef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1092.py @@ -9,28 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] - ] + name: str -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", -) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) 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 62ebaaaef..1fdc1bf2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1093.py @@ -9,13 +9,14 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - name: str + note: Union[str, None] -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) 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 1fdc1bf2e..93c271e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1094.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - note: Union[str, None] + content_id: int + content_type: str -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) 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 93c271e2e..4b4ed0962 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1095.py @@ -9,14 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" - content_id: int - content_type: str + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", + "ProjectsColumnsColumnIdCardsPostResponse503Type", +) 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 4b4ed0962..1eee63273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1096.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1096.py @@ -9,28 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] + position: str -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", - "ProjectsColumnsColumnIdCardsPostResponse503Type", -) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) 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 1eee63273..7df563c61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1097.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - position: str - -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) 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 7df563c61..36d491ce7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1098.py @@ -9,11 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) 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 36d491ce7..31f864cbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1099.py @@ -9,15 +9,18 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("ProjectsProjectIdPatchBodyType",) 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 31f864cbd..6e093b913 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1100.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) 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 6e093b913..e3cd89b33 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,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) 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 e3cd89b33..8c02d8953 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,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + name: str -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) 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 8c02d8953..a7224c5e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1103.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 ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - name: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) 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 a7224c5e8..c8a0f02bc 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,189 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private", "internal"]] + security_and_analysis: NotRequired[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] + ] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + is_template: NotRequired[bool] + default_branch: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + archived: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/enterprise- + cloud@latest//organizations/managing-peoples-access-to-your-organization-with- + roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType + ] + code_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_ai_detection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_validity_checks: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. + For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + + For standalone Code Scanning or Secret Protection products, this parameter + cannot be used. + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + + Use the `status` property to enable or disable GitHub Code Security for this + repository. + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- + security/secret-scanning/using-advanced-secret-scanning-and-push-protection- + features/generic-secret-detection/responsible-ai-generic-secrets)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + + Use the `status` property to enable or disable secret scanning automatic + validity checks on supported partner tokens for this repository. + """ + + status: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1105.py b/githubkit/versions/ghec_v2022_11_28/types/group_1105.py index 01a29c32a..446db6a04 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1105.py @@ -9,185 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0249 import ArtifactType -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 ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int + artifacts: list[ArtifactType] -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/enterprise- - cloud@latest//organizations/managing-peoples-access-to-your-organization-with- - roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType - ] - code_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_ai_detection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - secret_scanning_validity_checks: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - - Use the `status` property to enable or disable GitHub Code Security for this - repository. - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- - security/secret-scanning/using-advanced-secret-scanning-and-push-protection- - features/generic-secret-detection/responsible-ai-generic-secrets)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ - - status: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyType", -) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) 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 d4aac7fea..8552ab8cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1106.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0247 import ArtifactType +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + enable_debug_logging: NotRequired[bool] - total_count: int - artifacts: list[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) 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 8552ab8cf..19c3d652d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1107.py @@ -12,10 +12,14 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository - enable_debug_logging: NotRequired[bool] + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) 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 19c3d652d..30db40d96 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1108.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0253 import ActionsSecretType -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" - use_default: bool - include_claim_keys: NotRequired[list[str]] + total_count: int + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) 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 4afcdcb2d..1f63fca72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1109.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1109.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0251 import ActionsSecretType +from .group_0254 import ActionsVariableType -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" total_count: int - secrets: list[ActionsSecretType] + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) 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 08bf0179b..fc3874a09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1110.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_0252 import ActionsVariableType +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) 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 fc3874a09..b02df41ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1111.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0041 import RunnerType -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: list[RunnerType] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) 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 b02df41ae..5036c414c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1112.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0041 import RunnerType +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - total_count: int - runners: list[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) 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 5036c414c..9ca36f6ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1113.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - name: str - runner_group_id: int labels: list[str] - work_folder: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) 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 9ca36f6ff..17c2e6d71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1114.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" labels: list[str] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) 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 17c2e6d71..e57c0c004 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1115.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0259 import WorkflowRunType -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int + workflow_runs: list[WorkflowRunType] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) 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 073da6ba6..31d35b810 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1116.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0257 import WorkflowRunType +from .group_0249 import ArtifactType -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" total_count: int - workflow_runs: list[WorkflowRunType] + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) 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 d9cc9617b..1d89e9a4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1117.py @@ -11,14 +11,16 @@ from typing_extensions import TypedDict -from .group_0247 import ArtifactType +from .group_0251 import JobType -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" total_count: int - artifacts: list[ArtifactType] + jobs: list[JobType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) 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 5dd4be123..597ef36f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1118.py @@ -11,16 +11,14 @@ from typing_extensions import TypedDict -from .group_0249 import JobType +from .group_0251 import JobType -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" total_count: int jobs: list[JobType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) 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 a64efc8d9..76bdf5b5d 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,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0249 import JobType +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + environment_ids: list[int] + state: Literal["approved", "rejected"] + comment: str - total_count: int - jobs: list[JobType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) 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 76bdf5b5d..41d795f26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1120.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - environment_ids: list[int] - state: Literal["approved", "rejected"] - comment: str + enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) 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 41d795f26..d27f156d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1121.py @@ -12,10 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) 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 d27f156d2..030514a03 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1122.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0253 import ActionsSecretType -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) 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 355ef0f7c..335280e49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1123.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1123.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0251 import ActionsSecretType +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + encrypted_value: str + key_id: str - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) 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 335280e49..171acd68d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1124.py @@ -11,12 +11,14 @@ from typing_extensions import TypedDict +from .group_0254 import ActionsVariableType -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - encrypted_value: str - key_id: str +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) 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 05ba821f0..a5b1bcda1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1125.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0252 import ActionsVariableType +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + name: str + value: str - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) 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 a5b1bcda1..9dc60de46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1126.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: str - value: str + name: NotRequired[str] + value: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) 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 9dc60de46..567412f15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1127.py @@ -9,14 +9,40 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - name: NotRequired[str] - value: NotRequired[str] + total_count: int + workflows: list[WorkflowType] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) +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", +) 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 567412f15..3e172dbfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1128.py @@ -9,40 +9,31 @@ 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 ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" - - total_count: int - workflows: list[WorkflowType] +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] -class WorkflowType(TypedDict): - """Workflow - A GitHub Actions workflow - """ +ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - 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] +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__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200Type", - "WorkflowType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", ) 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 3e172dbfe..fa6b969cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1129.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_0259 import WorkflowRunType -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int + workflow_runs: list[WorkflowRunType] -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__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) 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 26201d31a..e197b3b3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1130.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_0257 import WorkflowRunType +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType - total_count: int - workflow_runs: list[WorkflowRunType] +class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundle -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) + 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_1131.py b/githubkit/versions/ghec_v2022_11_28/types/group_1131.py index e197b3b3a..79c9aa002 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1131.py @@ -9,51 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAttestationsPostBodyType(TypedDict): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType + id: NotRequired[int] -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__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) 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 79c9aa002..8a6a46fe3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1132.py @@ -9,13 +9,73 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - id: NotRequired[int] + attestations: NotRequired[ + list[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] -__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) +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_1133.py b/githubkit/versions/ghec_v2022_11_28/types/group_1133.py index 8a6a46fe3..d3cf0850b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1133.py @@ -9,73 +9,15 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - attestations: NotRequired[ - list[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] -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__ = ("ReposOwnerRepoAutolinksPostBodyType",) 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 d3cf0850b..bca1d637c 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,132 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] + 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] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) +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", +) 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 bca1d637c..663ec3e19 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1135.py @@ -9,87 +9,31 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -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( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( 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. - """ + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType + 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[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType ] -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team @@ -102,11 +46,11 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview apps: NotRequired[list[str]] -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances Allow specific users, teams, or apps to bypass pull request requirements. """ @@ -116,25 +60,8 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview 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", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", ) 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 663ec3e19..0e57487fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1136.py @@ -12,56 +12,32 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( 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 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" + + strict: NotRequired[bool] + contexts: NotRequired[list[str]] + checks: NotRequired[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] ] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] + context: str + app_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", ) 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 0e57487fc..e1f78ac45 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1137.py @@ -9,35 +9,21 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - strict: NotRequired[bool] - contexts: NotRequired[list[str]] - checks: NotRequired[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms + Examples: + {'contexts': ['contexts']} """ - context: str - app_id: NotRequired[int] + contexts: list[str] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ) 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 e1f78ac45..7953af035 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1138.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: {'contexts': ['contexts']} @@ -25,5 +25,5 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyO __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ) 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 7953af035..b4a0d30f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1139.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1139.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: {'contexts': ['contexts']} @@ -25,5 +26,5 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBody __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ) 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 b4a0d30f6..1f154c587 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1140.py @@ -12,19 +12,14 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody Examples: - {'contexts': ['contexts']} + {'apps': ['my-app']} """ - contexts: list[str] + apps: list[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) 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 1f154c587..e8ab2de74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1141.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody Examples: {'apps': ['my-app']} @@ -22,4 +22,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDic apps: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) 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 e8ab2de74..26bc12cd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1142.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody Examples: {'apps': ['my-app']} @@ -22,4 +22,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDi apps: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) 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 26bc12cd2..db6c7e46c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1143.py @@ -12,14 +12,16 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 Examples: - {'apps': ['my-app']} + {'teams': ['justice-league']} """ - apps: list[str] + teams: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) 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 db6c7e46c..d74b8d070 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1144.py @@ -12,16 +12,16 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 Examples: - {'teams': ['justice-league']} + {'teams': ['my-team']} """ teams: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) 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 d74b8d070..85e315c26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1145.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 Examples: {'teams': ['my-team']} @@ -24,4 +24,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( teams: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) 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 85e315c26..14d747f27 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1146.py @@ -12,18 +12,14 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody Examples: - {'teams': ['my-team']} + {'users': ['mona']} """ - teams: list[str] + users: list[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) 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 14d747f27..a879b8e99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1147.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody Examples: {'users': ['mona']} @@ -22,4 +22,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDi users: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) 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 a879b8e99..88f98adfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1148.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody Examples: {'users': ['mona']} @@ -22,4 +22,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedD users: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) 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 88f98adfd..b46802659 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1149.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1149.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - Examples: - {'users': ['mona']} - """ + new_name: str - users: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) 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 b46802659..af3347488 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1150.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1150.py @@ -9,13 +9,19 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType( + TypedDict +): + """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody""" - new_name: str + status: Literal["approve", "reject"] + message: str -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) +__all__ = ( + "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType", +) 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 af3347488..635e956dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1151.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1151.py @@ -9,19 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType( +class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type( TypedDict ): - """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody""" + """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200""" - status: Literal["approve", "reject"] - message: str + bypass_review_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType", + "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type", ) 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 635e956dd..0e96d896e 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,62 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type( - TypedDict -): - """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200""" +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - bypass_review_id: NotRequired[int] + 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] + ] + + +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__ = ( - "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", ) 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 0e96d896e..2f1f90be6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1153.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1153.py @@ -9,62 +9,38 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1152 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) -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] +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", ] - 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] - + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -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__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) 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 1825347fa..e70ffef51 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1154.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1154.py @@ -13,34 +13,38 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1153 import ( +from .group_1152 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) -class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" name: str head_sha: str details_url: NotRequired[str] external_id: NotRequired[str] - status: Literal["completed"] + status: NotRequired[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] started_at: NotRequired[datetime] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + 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__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) 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 f23f82e3a..cdd81f62e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1155.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1155.py @@ -9,42 +9,68 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1153 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" + 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 - 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", + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType ] ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + 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""" -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1156.py b/githubkit/versions/ghec_v2022_11_28/types/group_1156.py index cdd81f62e..6a00c9e74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1156.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1156.py @@ -9,68 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1155 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ - list[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType - ] +class 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", ] - images: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] ] -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__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) 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 d9367b9cd..1347a4c6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1157.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1157.py @@ -13,29 +13,31 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1156 import ( +from .group_1155 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" 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", + 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] @@ -44,4 +46,4 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) 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 9eb54a23c..5d8ac49c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1158.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1158.py @@ -9,41 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1156 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - - name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["queued", "in_progress"]] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] - ] - - -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" + + head_sha: str + + +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) 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 5d8ac49c1..5f72161c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1159.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1159.py @@ -9,13 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - head_sha: str + auto_trigger_checks: NotRequired[ + list[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" + + app_id: int + setting: bool + + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", +) 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 5f72161c7..06d170023 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1160.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1160.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0285 import CheckRunType -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - auto_trigger_checks: NotRequired[ - list[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int + check_runs: list[CheckRunType] -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) 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 7f1a49206..d8d166808 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1161.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1161.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0283 import CheckRunType +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + state: Literal["open", "dismissed"] + dismissed_reason: NotRequired[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] + dismissed_comment: NotRequired[Union[str, None]] + create_request: NotRequired[bool] - total_count: int - check_runs: list[CheckRunType] - -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) 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 d8d166808..31cc88a9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1162.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1162.py @@ -9,19 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" ] - dismissed_comment: NotRequired[Union[str, None]] - create_request: NotRequired[bool] + query_pack: str + repositories: list[str] + repository_lists: NotRequired[list[str]] + repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) 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 31cc88a9b..15b2259e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1163.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1163.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" ] query_pack: str - repositories: list[str] - repository_lists: NotRequired[list[str]] + repositories: NotRequired[list[str]] + repository_lists: list[str] repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) 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 15b2259e7..3b669027d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1164.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1164.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" ] query_pack: str repositories: NotRequired[list[str]] - repository_lists: list[str] - repository_owners: NotRequired[list[str]] + repository_lists: NotRequired[list[str]] + repository_owners: list[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) 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 3b669027d..e9eb27946 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1165.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1165.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] - query_pack: str - repositories: NotRequired[list[str]] - repository_lists: NotRequired[list[str]] - repository_owners: list[str] + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) 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 e9eb27946..4d55e3d74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1166.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1166.py @@ -9,20 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0190 import CodespaceType -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) 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 77cf5a4c8..88f53eda8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1167.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1167.py @@ -9,16 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0188 import CodespaceType +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) 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 88f53eda8..2b6a98e8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1168.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1168.py @@ -9,24 +9,29 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - 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] + total_count: int + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str + name: NotRequired[str] display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", +) 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 2b6a98e8b..a00422c6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1169.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1169.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0189 import CodespaceMachineType -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( - TypedDict -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - - path: str - name: NotRequired[str] - display_name: NotRequired[str] + total_count: int + machines: list[CodespaceMachineType] -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) 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 a69276980..1da0f80f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1170.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1170.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0187 import CodespaceMachineType +from .group_0003 import SimpleUserType -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" - total_count: int - machines: list[CodespaceMachineType] + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +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_1171.py b/githubkit/versions/ghec_v2022_11_28/types/group_1171.py index 1da0f80f8..fe71c65ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1171.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1171.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" + total_count: int + secrets: list[RepoCodespacesSecretType] - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + Set repository secrets for GitHub Codespaces. + """ - location: str - devcontainer_path: Union[str, None] + name: str + created_at: datetime + updated_at: datetime __all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", - "ReposOwnerRepoCodespacesNewGetResponse200Type", + "RepoCodespacesSecretType", + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", ) 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 fe71c65ab..4e9617e8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1172.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1172.py @@ -9,29 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - total_count: int - secrets: list[RepoCodespacesSecretType] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "RepoCodespacesSecretType", - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) 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 4e9617e8c..4cccc4ae5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1173.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1173.py @@ -12,11 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + permission: NotRequired[str] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) 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 4cccc4ae5..25f26d78b 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,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - permission: NotRequired[str] + body: str -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) 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 25f26d78b..ce91eec32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1175.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1175.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) 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 ce91eec32..36d63c915 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1176.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1176.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) 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 36d63c915..9408eb8c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1177.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1177.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0285 import CheckRunType -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: list[CheckRunType] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) 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 8a9160948..a33d63ac7 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,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0283 import CheckRunType +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + message: str + content: str + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] - total_count: int - check_runs: list[CheckRunType] +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) + 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_1179.py b/githubkit/versions/ghec_v2022_11_28/types/group_1179.py index a33d63ac7..1a6415115 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1179.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1179.py @@ -12,42 +12,38 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" message: str - content: str - sha: NotRequired[str] + sha: str branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter +class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - The person that committed the file. Default: the authenticated user. + object containing information about the committer. """ - name: str - email: str - date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] -class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropAuthor +class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. + object containing information about the author. """ - name: str - email: str - date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] __all__ = ( - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyType", ) 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 1a6415115..b6eb59e50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1180.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1180.py @@ -9,41 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[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__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) 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 b6eb59e50..61528dc95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1181.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1181.py @@ -9,20 +9,29 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] - dismissed_comment: NotRequired[str] + total_count: int + secrets: list[DependabotSecretType] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +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_1182.py b/githubkit/versions/ghec_v2022_11_28/types/group_1182.py index 61528dc95..95231af1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1182.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1182.py @@ -9,29 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - total_count: int - secrets: list[DependabotSecretType] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -class DependabotSecretType(TypedDict): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "DependabotSecretType", - "ReposOwnerRepoDependabotSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) 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 95231af1a..6e9243ec2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1183.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1183.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + id: int + created_at: str + result: str + message: str -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) 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 6e9243ec2..149bc226e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1184.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1184.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - id: int - created_at: str - result: str - message: str + ref: str + task: NotRequired[str] + auto_merge: NotRequired[bool] + required_contexts: NotRequired[list[str]] + payload: NotRequired[ + Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + ] + environment: NotRequired[str] + description: NotRequired[Union[str, None]] + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 +""" + + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", + "ReposOwnerRepoDeploymentsPostBodyType", +) 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 149bc226e..8dce1979d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1185.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1185.py @@ -9,32 +9,13 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" - 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] + message: NotRequired[str] -ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 -""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", - "ReposOwnerRepoDeploymentsPostBodyType", -) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) 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 8dce1979d..cc93f9515 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1186.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1186.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - message: 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] -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) 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 cc93f9515..fc3c755a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1187.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1187.py @@ -10,21 +10,14 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody""" - 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] + status: Literal["approve", "deny"] + message: str -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) +__all__ = ("ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBodyType",) 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 fc3c755a2..0741e69a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1188.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1188.py @@ -13,11 +13,11 @@ from typing_extensions import TypedDict -class ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBody""" +class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody""" status: Literal["approve", "deny"] message: str -__all__ = ("ReposOwnerRepoDismissalRequestsCodeScanningAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType",) 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 0741e69a5..a6ced9e63 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,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody""" +class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type( + TypedDict +): + """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200""" - status: Literal["approve", "deny"] - message: str + dismissal_review_id: NotRequired[int] -__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType",) +__all__ = ( + "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type", +) 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 a6ced9e63..d1e750ab3 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,27 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type( - TypedDict -): - """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - dismissal_review_id: NotRequired[int] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] + + +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__ = ( - "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type", + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", + "ReposOwnerRepoDispatchesPostBodyType", ) 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 d1e750ab3..2f1b1f7e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1191.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1191.py @@ -9,27 +9,38 @@ 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_0341 import DeploymentBranchPolicySettingsType -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + list[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -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 ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + id: NotRequired[int] __all__ = ( - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", - "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", ) 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 4a11d6eb0..ab59e0b4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1192.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1192.py @@ -9,38 +9,32 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0339 import DeploymentBranchPolicySettingsType +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + total_count: int + branch_policies: list[DeploymentBranchPolicyType] - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - list[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + Details of a deployment branch or tag policy. + """ - type: NotRequired[Literal["User", "Team"]] id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + type: NotRequired[Literal["branch", "tag"]] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "DeploymentBranchPolicyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", ) 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 ab59e0b4e..bb2b4e614 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1193.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1193.py @@ -9,32 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( TypedDict ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - total_count: int - branch_policies: list[DeploymentBranchPolicyType] - - -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - - Details of a deployment branch or tag policy. - """ - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] + integration_id: NotRequired[int] __all__ = ( - "DeploymentBranchPolicyType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ) 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 bb2b4e614..f647a2b60 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1194.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1194.py @@ -11,15 +11,22 @@ from typing_extensions import NotRequired, TypedDict +from .group_0347 import CustomDeploymentRuleAppType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( TypedDict ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - integration_id: NotRequired[int] + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + list[CustomDeploymentRuleAppType] + ] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ) 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 caa6621a2..d3a5e0e4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1195.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1195.py @@ -9,24 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0345 import CustomDeploymentRuleAppType +from .group_0253 import ActionsSecretType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - list[CustomDeploymentRuleAppType] - ] + total_count: int + secrets: list[ActionsSecretType] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) 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 816bc1dc0..3ec440fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1196.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1196.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0251 import ActionsSecretType +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + encrypted_value: str + key_id: str - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) 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 3ec440fb1..68d2306c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1197.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1197.py @@ -11,12 +11,14 @@ from typing_extensions import TypedDict +from .group_0254 import ActionsVariableType -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - encrypted_value: str - key_id: str +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) 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 24c335d04..f3a29926f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1198.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1198.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0252 import ActionsVariableType +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + name: str + value: str - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) 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 f3a29926f..adee73102 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1199.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1199.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - name: str - value: str + name: NotRequired[str] + value: NotRequired[str] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) 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 adee73102..eb686a699 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1200.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1200.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" + organization: NotRequired[str] name: NotRequired[str] - value: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) 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 eb686a699..4c2ef3730 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1201.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1201.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] + content: str + encoding: NotRequired[str] -__all__ = ("ReposOwnerRepoForksPostBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) 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 4c2ef3730..73106315f 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,49 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - content: str - encoding: NotRequired[str] + message: str + tree: str + parents: NotRequired[list[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) +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_1203.py b/githubkit/versions/ghec_v2022_11_28/types/group_1203.py index 73106315f..aa4d83aff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1203.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1203.py @@ -9,49 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - message: str - tree: str - parents: NotRequired[list[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] + ref: str + sha: 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__ = ("ReposOwnerRepoGitRefsPostBodyType",) 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 aa4d83aff..95219ce12 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1204.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1204.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - ref: str sha: str + force: NotRequired[bool] -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) 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 95219ce12..bf927c780 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1205.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1205.py @@ -9,14 +9,33 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - sha: str - force: NotRequired[bool] + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) +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_1206.py b/githubkit/versions/ghec_v2022_11_28/types/group_1206.py index bf927c780..62d4e64ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1206.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1206.py @@ -9,33 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] + 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__ = ( - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", - "ReposOwnerRepoGitTagsPostBodyType", + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", + "ReposOwnerRepoGitTreesPostBodyType", ) 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 62d4e64ac..44bb98073 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1207.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1207.py @@ -9,28 +9,32 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig - 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] + 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__ = ( - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", - "ReposOwnerRepoGitTreesPostBodyType", + "ReposOwnerRepoHooksPostBodyPropConfigType", + "ReposOwnerRepoHooksPostBodyType", ) 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 44bb98073..616829ef4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1208.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1208.py @@ -9,32 +9,19 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0011 import WebhookConfigType -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] +class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: NotRequired[WebhookConfigType] events: NotRequired[list[str]] + add_events: NotRequired[list[str]] + remove_events: NotRequired[list[str]] active: NotRequired[bool] -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__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) 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 616829ef4..2de12ce93 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1209.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1209.py @@ -9,19 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0011 import WebhookConfigType +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] - config: NotRequired[WebhookConfigType] - events: NotRequired[list[str]] - add_events: NotRequired[list[str]] - remove_events: NotRequired[list[str]] - active: NotRequired[bool] - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) 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 2de12ce93..02673d9bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1210.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1210.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) 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 02673d9bf..5f68422b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1211.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1211.py @@ -13,14 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] vcs_username: NotRequired[str] vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPutBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) 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 5f68422b7..f2dee5034 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1212.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1212.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) 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 f2dee5034..f8207f6ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1213.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1213.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 ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - email: NotRequired[str] - name: NotRequired[str] + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) 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 f8207f6ea..ca60a7364 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1214.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1214.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - use_lfs: Literal["opt_in", "opt_out"] - -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) 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 ca60a7364..9285f63d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1215.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1215.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) 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 9285f63d1..9bb94a509 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,34 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] + title: Union[str, int] + body: NotRequired[str] + assignee: NotRequired[Union[str, None]] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] + ] + assignees: NotRequired[list[str]] + type: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1217.py b/githubkit/versions/ghec_v2022_11_28/types/group_1217.py index 9bb94a509..4b0c546c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1217.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1217.py @@ -9,34 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - title: Union[str, int] - body: NotRequired[str] - assignee: NotRequired[Union[str, None]] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] - ] - assignees: NotRequired[list[str]] - type: NotRequired[Union[str, None]] + body: 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__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) 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 4b0c546c3..77f77960c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1218.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1218.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) 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 77f77960c..0edea8a41 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1219.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1219.py @@ -9,16 +9,42 @@ 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 ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + 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", "duplicate", "reopened"]] ] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + list[ + Union[ + str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type + ] + ] + ] + assignees: NotRequired[list[str]] + type: NotRequired[Union[str, None]] + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", +) 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 51b150f12..0f0f4ae84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1220.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1220.py @@ -9,42 +9,13 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" - - title: NotRequired[Union[str, int, None]] - body: NotRequired[Union[str, None]] - assignee: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - list[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[list[str]] - type: NotRequired[Union[str, None]] - +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] + assignees: NotRequired[list[str]] -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) 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 0f0f4ae84..2795b587e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1221.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1221.py @@ -12,10 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" assignees: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) 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 2795b587e..2585a1e0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1222.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1222.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - assignees: NotRequired[list[str]] + body: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) 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 2585a1e0c..8653eeddb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1223.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1223.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - body: str + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) 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 8653eeddb..28a5135d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1224.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1224.py @@ -12,10 +12,21 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - labels: NotRequired[list[str]] + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", +) 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 28a5135d1..4b61c7722 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1225.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1225.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" name: str -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) 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 4b61c7722..a0fe1957d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1226.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1226.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: str + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) 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 a0fe1957d..672fc26ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1227.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1227.py @@ -12,10 +12,21 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - labels: NotRequired[list[str]] + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", +) 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 672fc26ff..6872247a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1228.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1228.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" name: str -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) 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 6872247a2..392d8c14f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1229.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1229.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 ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - name: str + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) 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 392d8c14f..5d8ff2645 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1230.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1230.py @@ -10,13 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) 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 5d8ff2645..6e796683c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1231.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1231.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + sub_issue_id: int -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) 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 6e796683c..294d951b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1232.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1232.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" sub_issue_id: int + replace_parent: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1233.py b/githubkit/versions/ghec_v2022_11_28/types/group_1233.py index 294d951b6..6ffa90a5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1233.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1233.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" sub_issue_id: int - replace_parent: NotRequired[bool] + after_id: NotRequired[int] + before_id: NotRequired[int] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1234.py b/githubkit/versions/ghec_v2022_11_28/types/group_1234.py index 6ffa90a5b..acb0bbfba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1234.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1234.py @@ -12,12 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - sub_issue_id: int - after_id: NotRequired[int] - before_id: NotRequired[int] + title: NotRequired[str] + key: str + read_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1235.py b/githubkit/versions/ghec_v2022_11_28/types/group_1235.py index acb0bbfba..7cc0b1b26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1235.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1235.py @@ -12,12 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + name: str + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1236.py b/githubkit/versions/ghec_v2022_11_28/types/group_1236.py index 7cc0b1b26..607085961 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1236.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1236.py @@ -12,12 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" - name: str + new_name: NotRequired[str] color: NotRequired[str] description: NotRequired[str] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1237.py b/githubkit/versions/ghec_v2022_11_28/types/group_1237.py index 607085961..ac724c353 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1237.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1237.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] + branch: str -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1238.py b/githubkit/versions/ghec_v2022_11_28/types/group_1238.py index ac724c353..f33bb6f09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1238.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1238.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" - branch: str + base: str + head: str + commit_message: NotRequired[str] -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1239.py b/githubkit/versions/ghec_v2022_11_28/types/group_1239.py index f33bb6f09..17d426f88 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1239.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1239.py @@ -9,15 +9,18 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" - base: str - head: str - commit_message: NotRequired[str] + title: str + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1240.py b/githubkit/versions/ghec_v2022_11_28/types/group_1240.py index 17d426f88..1eaa2807a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1240.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1240.py @@ -14,13 +14,13 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - title: str + title: NotRequired[str] state: NotRequired[Literal["open", "closed"]] description: NotRequired[str] due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1241.py b/githubkit/versions/ghec_v2022_11_28/types/group_1241.py index 1eaa2807a..c350dcdf7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1241.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1241.py @@ -10,17 +10,13 @@ from __future__ import annotations from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + last_read_at: NotRequired[datetime] -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1242.py b/githubkit/versions/ghec_v2022_11_28/types/group_1242.py index c350dcdf7..7ab2c0401 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1242.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1242.py @@ -9,14 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - last_read_at: NotRequired[datetime] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1243.py b/githubkit/versions/ghec_v2022_11_28/types/group_1243.py index 7ab2c0401..cd3deab02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1243.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1243.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - message: NotRequired[str] - url: NotRequired[str] + Update the source for the repository. Must include the branch name and path. + """ + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1244.py b/githubkit/versions/ghec_v2022_11_28/types/group_1244.py index cd3deab02..ebfcd3168 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1244.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1244.py @@ -9,18 +9,25 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - Update the source for the repository. Must include the branch name and path. - """ +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" - branch: str - path: Literal["/", "/docs"] + 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__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1245.py b/githubkit/versions/ghec_v2022_11_28/types/group_1245.py index a08faf6d1..2861672a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1245.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1245.py @@ -12,22 +12,20 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" cname: NotRequired[Union[str, None]] https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ] public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1246.py b/githubkit/versions/ghec_v2022_11_28/types/group_1246.py index 96a82b7f5..a5e311f58 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1246.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1246.py @@ -12,20 +12,22 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" - cname: NotRequired[Union[str, None]] + cname: Union[str, None] https_enforced: NotRequired[bool] build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] ] public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1247.py b/githubkit/versions/ghec_v2022_11_28/types/group_1247.py index e81580f26..e65fdf27d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1247.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1247.py @@ -12,13 +12,13 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" - cname: Union[str, None] + cname: NotRequired[Union[str, None]] https_enforced: NotRequired[bool] build_type: NotRequired[Literal["legacy", "workflow"]] source: NotRequired[ @@ -27,7 +27,7 @@ class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ] ] - public: NotRequired[bool] + public: bool -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1248.py b/githubkit/versions/ghec_v2022_11_28/types/group_1248.py index 9d8d0dab4..db76de894 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1248.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1248.py @@ -12,14 +12,14 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1243 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] + https_enforced: bool build_type: NotRequired[Literal["legacy", "workflow"]] source: NotRequired[ Union[ @@ -27,7 +27,7 @@ class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ] ] - public: bool + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1249.py b/githubkit/versions/ghec_v2022_11_28/types/group_1249.py index cb2083e1c..1f79f8c8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1249.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1249.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1244 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" + The source branch and directory used to publish your Pages site. + """ - 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] + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1250.py b/githubkit/versions/ghec_v2022_11_28/types/group_1250.py index 1f79f8c8a..28f869214 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1250.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1250.py @@ -12,15 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1249 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" - branch: str - path: NotRequired[Literal["/", "/docs"]] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1251.py b/githubkit/versions/ghec_v2022_11_28/types/group_1251.py index 6a03885eb..9f823709d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1251.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1251.py @@ -12,14 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1250 import ReposOwnerRepoPagesPostBodyPropSourceType +from .group_1249 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1252.py b/githubkit/versions/ghec_v2022_11_28/types/group_1252.py index 883f21fa5..4bdb60454 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1252.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1252.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1250 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" + The object used to create GitHub Pages deployment + """ - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] + artifact_id: NotRequired[float] + artifact_url: NotRequired[str] + environment: NotRequired[str] + pages_build_version: str + oidc_token: str -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1253.py b/githubkit/versions/ghec_v2022_11_28/types/group_1253.py index 4bdb60454..c22c267f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1253.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1253.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - The object used to create GitHub Pages deployment - """ + enabled: bool - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1254.py b/githubkit/versions/ghec_v2022_11_28/types/group_1254.py index c22c267f3..5d8355086 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1254.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1254.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" - enabled: bool + name: str + body: NotRequired[str] -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1255.py b/githubkit/versions/ghec_v2022_11_28/types/group_1255.py index 5d8355086..e2ffe282d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1255.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1255.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0227 import CustomPropertyValueType -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" - name: str - body: NotRequired[str] +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: list[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1256.py b/githubkit/versions/ghec_v2022_11_28/types/group_1256.py index 2a3c037fc..8e9e41f56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1256.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1256.py @@ -9,15 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0225 import CustomPropertyValueType +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" + 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] - properties: list[CustomPropertyValueType] - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1257.py b/githubkit/versions/ghec_v2022_11_28/types/group_1257.py index 8e9e41f56..160987b13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1257.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1257.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 ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - 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] + body: str -__all__ = ("ReposOwnerRepoPullsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1258.py b/githubkit/versions/ghec_v2022_11_28/types/group_1258.py index 160987b13..4dc9e5008 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1258.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1258.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1259.py b/githubkit/versions/ghec_v2022_11_28/types/group_1259.py index 4dc9e5008..1bb472545 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1259.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1259.py @@ -10,15 +10,17 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1260.py b/githubkit/versions/ghec_v2022_11_28/types/group_1260.py index 1bb472545..b0eda78e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1260.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1260.py @@ -13,14 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" - - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" + + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] + + +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1261.py b/githubkit/versions/ghec_v2022_11_28/types/group_1261.py index b0eda78e6..f15be5df1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1261.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1261.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] - - -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" + + body: str + commit_id: str + path: str + position: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + line: NotRequired[int] + start_line: NotRequired[int] + start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] + in_reply_to: NotRequired[int] + subject_type: NotRequired[Literal["line", "file"]] + + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1262.py b/githubkit/versions/ghec_v2022_11_28/types/group_1262.py index f15be5df1..fdc9c5a0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1262.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1262.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" 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",) + + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1263.py b/githubkit/versions/ghec_v2022_11_28/types/group_1263.py index fdc9c5a0e..743310547 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1263.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1263.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 ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - body: str + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1264.py b/githubkit/versions/ghec_v2022_11_28/types/group_1264.py index 743310547..797f629f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1264.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1264.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1265.py b/githubkit/versions/ghec_v2022_11_28/types/group_1265.py index 797f629f0..8525d9950 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1265.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1265.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" message: NotRequired[str] documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1266.py b/githubkit/versions/ghec_v2022_11_28/types/group_1266.py index 8525d9950..c92fe8585 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1266.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1266.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - message: NotRequired[str] - documentation_url: NotRequired[str] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1267.py b/githubkit/versions/ghec_v2022_11_28/types/group_1267.py index c92fe8585..e461ce1cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1267.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1267.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + reviewers: NotRequired[list[str]] + team_reviewers: list[str] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1268.py b/githubkit/versions/ghec_v2022_11_28/types/group_1268.py index e461ce1cf..43201ae1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1268.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1268.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - reviewers: NotRequired[list[str]] - team_reviewers: list[str] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1269.py b/githubkit/versions/ghec_v2022_11_28/types/group_1269.py index 43201ae1f..bf17592a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1269.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1269.py @@ -9,14 +9,34 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + commit_id: NotRequired[str] + body: NotRequired[str] + event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] + comments: NotRequired[ + list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str + position: NotRequired[int] + body: str + line: NotRequired[int] + side: NotRequired[str] + start_line: NotRequired[int] + start_side: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1270.py b/githubkit/versions/ghec_v2022_11_28/types/group_1270.py index bf17592a6..05cccf0c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1270.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1270.py @@ -9,34 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str - position: NotRequired[int] body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1271.py b/githubkit/versions/ghec_v2022_11_28/types/group_1271.py index 05cccf0c0..412543923 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1271.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1271.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 ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - body: str + message: str + event: NotRequired[Literal["DISMISS"]] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1272.py b/githubkit/versions/ghec_v2022_11_28/types/group_1272.py index 412543923..d03c573ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1272.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1272.py @@ -13,11 +13,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - message: str - event: NotRequired[Literal["DISMISS"]] + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1273.py b/githubkit/versions/ghec_v2022_11_28/types/group_1273.py index d03c573ae..c102fe4d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1273.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1273.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] + expected_head_sha: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1274.py b/githubkit/versions/ghec_v2022_11_28/types/group_1274.py index c102fe4d6..e633d70f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1274.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1274.py @@ -12,10 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - expected_head_sha: NotRequired[str] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1275.py b/githubkit/versions/ghec_v2022_11_28/types/group_1275.py index e633d70f9..4065bba0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1275.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1275.py @@ -9,14 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - message: NotRequired[str] - url: 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__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1276.py b/githubkit/versions/ghec_v2022_11_28/types/group_1276.py index 4065bba0c..0ddd0a8bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1276.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1276.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - 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"]] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1277.py b/githubkit/versions/ghec_v2022_11_28/types/group_1277.py index 0ddd0a8bf..2f21e468e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1277.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1277.py @@ -12,12 +12,13 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1278.py b/githubkit/versions/ghec_v2022_11_28/types/group_1278.py index 2f21e468e..2300351d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1278.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1278.py @@ -9,16 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - tag_name: str + tag_name: NotRequired[str] target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: 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__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1279.py b/githubkit/versions/ghec_v2022_11_28/types/group_1279.py index 2300351d5..d85bf8d37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1279.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1279.py @@ -10,20 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - 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] + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1280.py b/githubkit/versions/ghec_v2022_11_28/types/group_1280.py index d85bf8d37..2eac9e90e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1280.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1280.py @@ -9,14 +9,71 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0084 import RepositoryRulesetBypassActorType +from .group_0089 import RepositoryRulesetConditionsType +from .group_0099 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0100 import RepositoryRuleUpdateType +from .group_0102 import RepositoryRuleRequiredLinearHistoryType +from .group_0103 import RepositoryRuleRequiredDeploymentsType +from .group_0106 import RepositoryRulePullRequestType +from .group_0108 import RepositoryRuleRequiredStatusChecksType +from .group_0110 import RepositoryRuleCommitMessagePatternType +from .group_0112 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0114 import RepositoryRuleCommitterEmailPatternType +from .group_0116 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleTagNamePatternType +from .group_0120 import RepositoryRuleFilePathRestrictionType +from .group_0122 import RepositoryRuleMaxFilePathLengthType +from .group_0124 import RepositoryRuleFileExtensionRestrictionType +from .group_0126 import RepositoryRuleMaxFileSizeType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0131 import RepositoryRuleCodeScanningType +from .group_0138 import RepositoryRuleMergeQueueType -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) + +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1281.py b/githubkit/versions/ghec_v2022_11_28/types/group_1281.py index 8d7209b39..3aa7e4da9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1281.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1281.py @@ -12,39 +12,39 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0083 import RepositoryRulesetBypassActorType -from .group_0088 import RepositoryRulesetConditionsType -from .group_0098 import ( +from .group_0084 import RepositoryRulesetBypassActorType +from .group_0089 import RepositoryRulesetConditionsType +from .group_0099 import ( RepositoryRuleCreationType, RepositoryRuleDeletionType, RepositoryRuleNonFastForwardType, RepositoryRuleRequiredSignaturesType, ) -from .group_0099 import RepositoryRuleUpdateType -from .group_0101 import RepositoryRuleRequiredLinearHistoryType -from .group_0102 import RepositoryRuleMergeQueueType -from .group_0104 import RepositoryRuleRequiredDeploymentsType -from .group_0107 import RepositoryRulePullRequestType -from .group_0109 import RepositoryRuleRequiredStatusChecksType -from .group_0111 import RepositoryRuleCommitMessagePatternType -from .group_0113 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0115 import RepositoryRuleCommitterEmailPatternType -from .group_0117 import RepositoryRuleBranchNamePatternType -from .group_0119 import RepositoryRuleTagNamePatternType -from .group_0121 import RepositoryRuleFilePathRestrictionType -from .group_0123 import RepositoryRuleMaxFilePathLengthType -from .group_0125 import RepositoryRuleFileExtensionRestrictionType -from .group_0127 import RepositoryRuleMaxFileSizeType -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0132 import RepositoryRuleCodeScanningType +from .group_0100 import RepositoryRuleUpdateType +from .group_0102 import RepositoryRuleRequiredLinearHistoryType +from .group_0103 import RepositoryRuleRequiredDeploymentsType +from .group_0106 import RepositoryRulePullRequestType +from .group_0108 import RepositoryRuleRequiredStatusChecksType +from .group_0110 import RepositoryRuleCommitMessagePatternType +from .group_0112 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0114 import RepositoryRuleCommitterEmailPatternType +from .group_0116 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleTagNamePatternType +from .group_0120 import RepositoryRuleFilePathRestrictionType +from .group_0122 import RepositoryRuleMaxFilePathLengthType +from .group_0124 import RepositoryRuleFileExtensionRestrictionType +from .group_0126 import RepositoryRuleMaxFileSizeType +from .group_0129 import RepositoryRuleWorkflowsType +from .group_0131 import RepositoryRuleCodeScanningType +from .group_0138 import RepositoryRuleMergeQueueType -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" - name: str + name: NotRequired[str] target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] conditions: NotRequired[RepositoryRulesetConditionsType] rules: NotRequired[ @@ -76,4 +76,4 @@ class ReposOwnerRepoRulesetsPostBodyType(TypedDict): ] -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1282.py b/githubkit/versions/ghec_v2022_11_28/types/group_1282.py index 8c88bb9f7..a4f75ebc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1282.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1282.py @@ -12,68 +12,15 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0083 import RepositoryRulesetBypassActorType -from .group_0088 import RepositoryRulesetConditionsType -from .group_0098 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0099 import RepositoryRuleUpdateType -from .group_0101 import RepositoryRuleRequiredLinearHistoryType -from .group_0102 import RepositoryRuleMergeQueueType -from .group_0104 import RepositoryRuleRequiredDeploymentsType -from .group_0107 import RepositoryRulePullRequestType -from .group_0109 import RepositoryRuleRequiredStatusChecksType -from .group_0111 import RepositoryRuleCommitMessagePatternType -from .group_0113 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0115 import RepositoryRuleCommitterEmailPatternType -from .group_0117 import RepositoryRuleBranchNamePatternType -from .group_0119 import RepositoryRuleTagNamePatternType -from .group_0121 import RepositoryRuleFilePathRestrictionType -from .group_0123 import RepositoryRuleMaxFilePathLengthType -from .group_0125 import RepositoryRuleFileExtensionRestrictionType -from .group_0127 import RepositoryRuleMaxFileSizeType -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0132 import RepositoryRuleCodeScanningType +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] + resolution_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1283.py b/githubkit/versions/ghec_v2022_11_28/types/group_1283.py index a4f75ebc8..ca4fd9976 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1283.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1283.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] + placeholder_id: str -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1284.py b/githubkit/versions/ghec_v2022_11_28/types/group_1284.py index ca4fd9976..f5eb2b08d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1284.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1284.py @@ -9,15 +9,17 @@ 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 ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] - placeholder_id: str + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1285.py b/githubkit/versions/ghec_v2022_11_28/types/group_1285.py index f5eb2b08d..bf3b98dcb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1285.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1285.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 ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1286.py b/githubkit/versions/ghec_v2022_11_28/types/group_1286.py index bf3b98dcb..492fdc91e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1286.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1286.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 ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + pattern: str -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1287.py b/githubkit/versions/ghec_v2022_11_28/types/group_1287.py index 492fdc91e..f6f94cfa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1287.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1287.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - pattern: str + names: list[str] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1288.py b/githubkit/versions/ghec_v2022_11_28/types/group_1288.py index f6f94cfa4..4f00c0f54 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1288.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1288.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - names: list[str] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[list[int]] -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1289.py b/githubkit/versions/ghec_v2022_11_28/types/group_1289.py index 4f00c0f54..f8f62bc0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1289.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1289.py @@ -12,12 +12,14 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[list[int]] + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] -__all__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1290.py b/githubkit/versions/ghec_v2022_11_28/types/group_1290.py index f8f62bc0c..f4878ed75 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1290.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1290.py @@ -12,14 +12,41 @@ from typing_extensions import NotRequired, TypedDict -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBody""" - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + user_name: str + display_name: NotRequired[str] + name: ScimV2OrganizationsOrgUsersPostBodyPropNameType + emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType] + schemas: NotRequired[list[str]] + external_id: NotRequired[str] + groups: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" + + value: str + primary: NotRequired[bool] + type: NotRequired[str] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", + "ScimV2OrganizationsOrgUsersPostBodyPropNameType", + "ScimV2OrganizationsOrgUsersPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1291.py b/githubkit/versions/ghec_v2022_11_28/types/group_1291.py index f4878ed75..7aaa7ebc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1291.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1291.py @@ -12,21 +12,21 @@ from typing_extensions import NotRequired, TypedDict -class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - user_name: str - display_name: NotRequired[str] - name: ScimV2OrganizationsOrgUsersPostBodyPropNameType - emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType] schemas: NotRequired[list[str]] + display_name: NotRequired[str] external_id: NotRequired[str] groups: NotRequired[list[str]] active: NotRequired[bool] + user_name: str + name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType + emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] -class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropName +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName Examples: {'givenName': 'Jane', 'familyName': 'User'} @@ -37,16 +37,16 @@ class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): formatted: NotRequired[str] -class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + type: NotRequired[str] value: str primary: NotRequired[bool] - type: NotRequired[str] __all__ = ( - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", - "ScimV2OrganizationsOrgUsersPostBodyPropNameType", - "ScimV2OrganizationsOrgUsersPostBodyType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1292.py b/githubkit/versions/ghec_v2022_11_28/types/group_1292.py index 7aaa7ebc8..b3d378206 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1292.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1292.py @@ -9,44 +9,61 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" schemas: NotRequired[list[str]] - display_name: NotRequired[str] - external_id: NotRequired[str] - groups: NotRequired[list[str]] - active: NotRequired[bool] - user_name: str - name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType - emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} + operations: list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType + ] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" + + op: Literal["add", "remove", "replace"] + path: NotRequired[str] + value: NotRequired[ + Union[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, + list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType + ], + str, + ] + ] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" + + active: NotRequired[Union[bool, None]] + user_name: NotRequired[Union[str, None]] + external_id: NotRequired[Union[str, None]] + given_name: NotRequired[Union[str, None]] + family_name: NotRequired[Union[str, None]] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items """ - given_name: str - family_name: str - formatted: NotRequired[str] - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - - type: NotRequired[str] - value: str + value: NotRequired[str] primary: NotRequired[bool] __all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1293.py b/githubkit/versions/ghec_v2022_11_28/types/group_1293.py index b3d378206..6accad501 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1293.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1293.py @@ -13,57 +13,17 @@ from typing_extensions import NotRequired, TypedDict -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" - - schemas: NotRequired[list[str]] - operations: list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType - ] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" - - op: Literal["add", "remove", "replace"] - path: NotRequired[str] - value: NotRequired[ - Union[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, - list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType - ], - str, - ] +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" + + name: str + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -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__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1294.py b/githubkit/versions/ghec_v2022_11_28/types/group_1294.py index 6accad501..5fc734f17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1294.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1294.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - 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]] + title: str + body: str + private: NotRequired[bool] -__all__ = ("TeamsTeamIdPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1295.py b/githubkit/versions/ghec_v2022_11_28/types/group_1295.py index 5fc734f17..97be26f9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1295.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1295.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - title: str - body: str - private: NotRequired[bool] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1296.py b/githubkit/versions/ghec_v2022_11_28/types/group_1296.py index 97be26f9a..49b6126e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1296.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1296.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + body: str -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1297.py b/githubkit/versions/ghec_v2022_11_28/types/group_1297.py index 49b6126e3..aba26488a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1297.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1297.py @@ -12,10 +12,12 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" body: str -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1298.py b/githubkit/versions/ghec_v2022_11_28/types/group_1298.py index aba26488a..ea06c9bbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1298.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1298.py @@ -9,15 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( TypedDict ): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1299.py b/githubkit/versions/ghec_v2022_11_28/types/group_1299.py index ea06c9bbf..02edb1cc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1299.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1299.py @@ -13,16 +13,12 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1300.py b/githubkit/versions/ghec_v2022_11_28/types/group_1300.py index 02edb1cc8..4c1b9ea73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1300.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1300.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1301.py b/githubkit/versions/ghec_v2022_11_28/types/group_1301.py index 4c1b9ea73..0fc6bc372 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1301.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1301.py @@ -13,10 +13,10 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" - role: NotRequired[Literal["member", "maintainer"]] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1302.py b/githubkit/versions/ghec_v2022_11_28/types/group_1302.py index 0fc6bc372..27e574fd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1302.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1302.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - permission: NotRequired[Literal["read", "write", "admin"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1303.py b/githubkit/versions/ghec_v2022_11_28/types/group_1303.py index 27e574fd9..218231963 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1303.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1303.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + permission: NotRequired[Literal["pull", "push", "admin"]] -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1304.py b/githubkit/versions/ghec_v2022_11_28/types/group_1304.py index 218231963..55352f689 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1304.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1304.py @@ -9,14 +9,28 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - permission: NotRequired[Literal["pull", "push", "admin"]] + groups: list[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + synced_at: NotRequired[str] -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +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_1305.py b/githubkit/versions/ghec_v2022_11_28/types/group_1305.py index 55352f689..0cc0c51fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1305.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1305.py @@ -9,28 +9,21 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" +class UserPatchBodyType(TypedDict): + """UserPatchBody""" - 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] + 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__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", -) +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1306.py b/githubkit/versions/ghec_v2022_11_28/types/group_1306.py index 0cc0c51fd..708a3bcd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1306.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1306.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0190 import CodespaceType -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] +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("UserPatchBodyType",) + +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1307.py b/githubkit/versions/ghec_v2022_11_28/types/group_1307.py index eeb07418b..ca44ecf9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1307.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1307.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_0188 import CodespaceType +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" + 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] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1308.py b/githubkit/versions/ghec_v2022_11_28/types/group_1308.py index ca44ecf9e..ad32a685a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1308.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1308.py @@ -13,21 +13,29 @@ from typing_extensions import NotRequired, TypedDict -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - repository_id: int - ref: NotRequired[str] + pull_request: UserCodespacesPostBodyOneof1PropPullRequestType 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",) +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_1309.py b/githubkit/versions/ghec_v2022_11_28/types/group_1309.py index ad32a685a..1e27e71b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1309.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1309.py @@ -9,33 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - 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] + total_count: int + secrets: list[CodespacesSecretType] -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest +class CodespacesSecretType(TypedDict): + """Codespaces Secret - Pull request number for this codespace + Secrets for a GitHub Codespace. """ - pull_request_number: int - repository_id: int + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str __all__ = ( - "UserCodespacesPostBodyOneof1PropPullRequestType", - "UserCodespacesPostBodyOneof1Type", + "CodespacesSecretType", + "UserCodespacesSecretsGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1310.py b/githubkit/versions/ghec_v2022_11_28/types/group_1310.py index 1e27e71b8..6ec0707c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1310.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1310.py @@ -9,32 +9,16 @@ 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 UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" - total_count: int - secrets: list[CodespacesSecretType] + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[list[Union[int, str]]] -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__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1311.py b/githubkit/versions/ghec_v2022_11_28/types/group_1311.py index 6ec0707c1..134d7c65e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1311.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1311.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0178 import MinimalRepositoryType -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[list[Union[int, str]]] +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1312.py b/githubkit/versions/ghec_v2022_11_28/types/group_1312.py index 7e3e18537..69b6c64de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1312.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1312.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0176 import MinimalRepositoryType +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1313.py b/githubkit/versions/ghec_v2022_11_28/types/group_1313.py index 69b6c64de..73deadc8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1313.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1313.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 UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" - selected_repository_ids: list[int] + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[list[str]] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1314.py b/githubkit/versions/ghec_v2022_11_28/types/group_1314.py index 73deadc8f..b8e3b8720 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1314.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1314.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0189 import CodespaceMachineType -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[list[str]] +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int + machines: list[CodespaceMachineType] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1315.py b/githubkit/versions/ghec_v2022_11_28/types/group_1315.py index bfbc92c2d..90f680aa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1315.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1315.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0187 import CodespaceMachineType +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + name: NotRequired[str] + private: NotRequired[bool] - total_count: int - machines: list[CodespaceMachineType] - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1316.py b/githubkit/versions/ghec_v2022_11_28/types/group_1316.py index 90f680aa4..741f85377 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1316.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1316.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 UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" - name: NotRequired[str] - private: NotRequired[bool] + visibility: Literal["public", "private"] -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1317.py b/githubkit/versions/ghec_v2022_11_28/types/group_1317.py index 741f85377..fa445ed2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1317.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1317.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 - visibility: Literal["public", "private"] + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + emails: list[str] -__all__ = ("UserEmailVisibilityPatchBodyType",) + +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1318.py b/githubkit/versions/ghec_v2022_11_28/types/group_1318.py index fa445ed2c..85a754f60 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1318.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1318.py @@ -12,8 +12,13 @@ from typing_extensions import TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +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']} @@ -22,4 +27,4 @@ class UserEmailsPostBodyOneof0Type(TypedDict): emails: list[str] -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1319.py b/githubkit/versions/ghec_v2022_11_28/types/group_1319.py index 85a754f60..bef46dc62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1319.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1319.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" - 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. + name: NotRequired[str] + armored_public_key: str - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - emails: list[str] - - -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1320.py b/githubkit/versions/ghec_v2022_11_28/types/group_1320.py index bef46dc62..069eb3383 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1320.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1320.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0018 import InstallationType -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" - name: NotRequired[str] - armored_public_key: str +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" + total_count: int + installations: list[InstallationType] -__all__ = ("UserGpgKeysPostBodyType",) + +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1321.py b/githubkit/versions/ghec_v2022_11_28/types/group_1321.py index 069eb3383..8e85a1d81 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1321.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1321.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0018 import InstallationType +from .group_0020 import RepositoryType -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" total_count: int - installations: list[InstallationType] + repository_selection: NotRequired[str] + repositories: list[RepositoryType] -__all__ = ("UserInstallationsGetResponse200Type",) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1322.py b/githubkit/versions/ghec_v2022_11_28/types/group_1322.py index 8e85a1d81..9f9dd053b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1322.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1322.py @@ -9,17 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0020 import RepositoryType +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" - total_count: int - repository_selection: NotRequired[str] - repositories: list[RepositoryType] - - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1323.py b/githubkit/versions/ghec_v2022_11_28/types/group_1323.py index 9f9dd053b..5ec08a5e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1323.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1323.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" + title: NotRequired[str] + key: str -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1324.py b/githubkit/versions/ghec_v2022_11_28/types/group_1324.py index 5ec08a5e0..718052573 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1324.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1324.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 UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" - title: NotRequired[str] - key: str + state: Literal["active"] -__all__ = ("UserKeysPostBodyType",) +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1325.py b/githubkit/versions/ghec_v2022_11_28/types/group_1325.py index 718052573..586d41155 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1325.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1325.py @@ -10,13 +10,21 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" - state: Literal["active"] + 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__ = ("UserMembershipsOrgsOrgPatchBodyType",) +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1326.py b/githubkit/versions/ghec_v2022_11_28/types/group_1326.py index 586d41155..6393094b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1326.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1326.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[list[Literal["repositories"]]] - repositories: list[str] + name: str + body: NotRequired[Union[str, None]] -__all__ = ("UserMigrationsPostBodyType",) +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1327.py b/githubkit/versions/ghec_v2022_11_28/types/group_1327.py index 6393094b2..354d7b410 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1327.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1327.py @@ -9,15 +9,38 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" name: str - body: NotRequired[Union[str, None]] - - -__all__ = ("UserProjectsPostBodyType",) + 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_1328.py b/githubkit/versions/ghec_v2022_11_28/types/group_1328.py index 354d7b410..7c5bf8edc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1328.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1328.py @@ -9,38 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict - - -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - - -__all__ = ("UserReposPostBodyType",) +from typing_extensions import TypedDict + + +class 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_1329.py b/githubkit/versions/ghec_v2022_11_28/types/group_1329.py index 7c5bf8edc..5e8ecaf24 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1329.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1329.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody Examples: {'account_urls': ['https://www.linkedin.com/company/github/', @@ -23,4 +23,4 @@ class UserSocialAccountsPostBodyType(TypedDict): account_urls: list[str] -__all__ = ("UserSocialAccountsPostBodyType",) +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1330.py b/githubkit/versions/ghec_v2022_11_28/types/group_1330.py index 5e8ecaf24..712df953e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1330.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1330.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ + title: NotRequired[str] + key: str - account_urls: list[str] - -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1331.py b/githubkit/versions/ghec_v2022_11_28/types/group_1331.py index 712df953e..2ab7931f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1331.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1331.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" +class UsersUsernameAttestationsBulkListPostBodyType(TypedDict): + """UsersUsernameAttestationsBulkListPostBody""" - title: NotRequired[str] - key: str + subject_digests: list[str] + predicate_type: NotRequired[str] -__all__ = ("UserSshSigningKeysPostBodyType",) +__all__ = ("UsersUsernameAttestationsBulkListPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1332.py b/githubkit/versions/ghec_v2022_11_28/types/group_1332.py index 2ab7931f2..322969d86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1332.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1332.py @@ -9,14 +9,44 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class UsersUsernameAttestationsBulkListPostBodyType(TypedDict): - """UsersUsernameAttestationsBulkListPostBody""" +class UsersUsernameAttestationsBulkListPostResponse200Type(TypedDict): + """UsersUsernameAttestationsBulkListPostResponse200""" - subject_digests: list[str] - predicate_type: NotRequired[str] + attestations_subject_digests: NotRequired[ + UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType + ] + page_info: NotRequired[ + UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType + ] -__all__ = ("UsersUsernameAttestationsBulkListPostBodyType",) +UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + +Mapping of subject digest to bundles. +""" + + +class UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): + """UsersUsernameAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: NotRequired[bool] + has_previous: NotRequired[bool] + next_: NotRequired[str] + previous: NotRequired[str] + + +__all__ = ( + "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", + "UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType", + "UsersUsernameAttestationsBulkListPostResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1333.py b/githubkit/versions/ghec_v2022_11_28/types/group_1333.py index 322969d86..5145f707c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1333.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1333.py @@ -9,44 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class UsersUsernameAttestationsBulkListPostResponse200Type(TypedDict): - """UsersUsernameAttestationsBulkListPostResponse200""" +class UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" - attestations_subject_digests: NotRequired[ - UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType - ] - page_info: NotRequired[ - UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType - ] + subject_digests: list[str] -UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests - -Mapping of subject digest to bundles. -""" - - -class UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): - """UsersUsernameAttestationsBulkListPostResponse200PropPageInfo - - Information about the current page. - """ - - has_next: NotRequired[bool] - has_previous: NotRequired[bool] - next_: NotRequired[str] - previous: NotRequired[str] - - -__all__ = ( - "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", - "UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType", - "UsersUsernameAttestationsBulkListPostResponse200Type", -) +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1334.py b/githubkit/versions/ghec_v2022_11_28/types/group_1334.py index 5145f707c..913848fca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1334.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1334.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): - """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" +class UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" - subject_digests: list[str] + attestation_ids: list[int] -__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",) +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1335.py b/githubkit/versions/ghec_v2022_11_28/types/group_1335.py index 913848fca..86ef1dfd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1335.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1335.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 UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): - """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" - attestation_ids: list[int] + attestations: NotRequired[ + list[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] -__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",) +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun +dlePropVerificationMaterial +""" + + +UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun +dlePropDsseEnvelope +""" + + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1336.py b/githubkit/versions/ghec_v2022_11_28/types/group_1336.py deleted file mode 100644 index 86ef1dfd9..000000000 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1336.py +++ /dev/null @@ -1,81 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict - - -class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - - attestations: NotRequired[ - list[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun -dlePropVerificationMaterial -""" - - -UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun -dlePropDsseEnvelope -""" - - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "UsersUsernameAttestationsSubjectDigestGetResponse200Type", -) diff --git a/githubkit/versions/latest/models.py b/githubkit/versions/latest/models.py index 8f7c7d78b..287da34af 100644 --- a/githubkit/versions/latest/models.py +++ b/githubkit/versions/latest/models.py @@ -331,6 +331,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) + from githubkit.versions.v2022_11_28.models import ( + CodeScanningOptions as CodeScanningOptions, + ) from githubkit.versions.v2022_11_28.models import ( CodeScanningOrganizationAlertItems as CodeScanningOrganizationAlertItems, ) @@ -985,9 +988,6 @@ from githubkit.versions.v2022_11_28.models import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from githubkit.versions.v2022_11_28.models import ( - IssueSearchResultItemPropSubIssuesSummary as IssueSearchResultItemPropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import IssueType as IssueType from githubkit.versions.v2022_11_28.models import Job as Job from githubkit.versions.v2022_11_28.models import ( @@ -4397,9 +4397,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) @@ -4481,9 +4478,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) @@ -4565,9 +4559,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) @@ -4652,9 +4643,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) @@ -4739,9 +4727,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDeletedPropIssuePropSubIssuesSummary as WebhookIssuesDeletedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) @@ -4781,9 +4766,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) @@ -4832,9 +4814,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesEditedPropIssuePropSubIssuesSummary as WebhookIssuesEditedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) @@ -4874,9 +4853,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLabeledPropIssuePropSubIssuesSummary as WebhookIssuesLabeledPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) @@ -4916,9 +4892,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesLockedPropIssuePropSubIssuesSummary as WebhookIssuesLockedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) @@ -4958,9 +4931,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary as WebhookIssuesMilestonedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) @@ -5003,9 +4973,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) @@ -5057,9 +5024,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesOpenedPropIssuePropSubIssuesSummary as WebhookIssuesOpenedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) @@ -5102,9 +5066,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesReopenedPropIssuePropSubIssuesSummary as WebhookIssuesReopenedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) @@ -5147,9 +5108,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) @@ -5213,9 +5171,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhookIssuesUnlockedPropIssuePropSubIssuesSummary as WebhookIssuesUnlockedPropIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) @@ -8978,9 +8933,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhooksIssue2PropReactions as WebhooksIssue2PropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhooksIssue2PropSubIssuesSummary as WebhooksIssue2PropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhooksIssue2PropUser as WebhooksIssue2PropUser, ) @@ -9023,9 +8975,6 @@ from githubkit.versions.v2022_11_28.models import ( WebhooksIssuePropReactions as WebhooksIssuePropReactions, ) - from githubkit.versions.v2022_11_28.models import ( - WebhooksIssuePropSubIssuesSummary as WebhooksIssuePropSubIssuesSummary, - ) from githubkit.versions.v2022_11_28.models import ( WebhooksIssuePropUser as WebhooksIssuePropUser, ) @@ -9847,6 +9796,7 @@ "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", + "CodeScanningOptions", "CodeScanningDefaultSetupOptions", "CodeSecurityDefaultConfigurationsItems", "SimpleRepository", @@ -9878,8 +9828,8 @@ "Milestone", "IssueType", "ReactionRollup", - "Issue", "SubIssuesSummary", + "Issue", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", "IssueComment", @@ -10521,7 +10471,6 @@ "CommitSearchResultItemPropCommitPropTree", "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropSubIssuesSummary", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", "LabelSearchResultItem", @@ -10611,7 +10560,6 @@ "WebhooksIssuePropPerformedViaGithubAppPropPermissions", "WebhooksIssuePropPullRequest", "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", "WebhooksIssuePropUser", "WebhooksMilestone", "WebhooksMilestonePropCreator", @@ -10626,7 +10574,6 @@ "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", "WebhooksIssue2PropPullRequest", "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", "WebhooksIssue2PropUser", "WebhooksUserMannequin", "WebhooksMarketplacePurchase", @@ -11052,7 +10999,6 @@ "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary", "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -11080,7 +11026,6 @@ "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary", "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -11108,7 +11053,6 @@ "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary", "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -11139,7 +11083,6 @@ "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp", "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -11162,7 +11105,6 @@ "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesDeletedPropIssuePropPullRequest", "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", "WebhookIssuesDeletedPropIssuePropUser", "WebhookIssuesDemilestoned", "WebhookIssuesDemilestonedPropIssue", @@ -11176,7 +11118,6 @@ "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesDemilestonedPropIssuePropPullRequest", "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesDemilestonedPropIssuePropUser", "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", @@ -11193,7 +11134,6 @@ "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesEditedPropIssuePropPullRequest", "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", "WebhookIssuesEditedPropIssuePropUser", "WebhookIssuesLabeled", "WebhookIssuesLabeledPropIssue", @@ -11207,7 +11147,6 @@ "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesLabeledPropIssuePropPullRequest", "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", "WebhookIssuesLabeledPropIssuePropUser", "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", @@ -11221,7 +11160,6 @@ "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesLockedPropIssuePropPullRequest", "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", "WebhookIssuesLockedPropIssuePropUser", "WebhookIssuesMilestoned", "WebhookIssuesMilestonedPropIssue", @@ -11235,7 +11173,6 @@ "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesMilestonedPropIssuePropPullRequest", "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesMilestonedPropIssuePropUser", "WebhookIssuesOpened", "WebhookIssuesOpenedPropChanges", @@ -11255,7 +11192,6 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -11268,7 +11204,6 @@ "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesOpenedPropIssuePropPullRequest", "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropIssuePropUser", "WebhookIssuesPinned", "WebhookIssuesReopened", @@ -11283,7 +11218,6 @@ "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesReopenedPropIssuePropPullRequest", "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", "WebhookIssuesReopenedPropIssuePropUser", "WebhookIssuesTransferred", "WebhookIssuesTransferredPropChanges", @@ -11303,7 +11237,6 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", "WebhookIssuesTyped", "WebhookIssuesUnassigned", @@ -11320,7 +11253,6 @@ "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesUnlockedPropIssuePropPullRequest", "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", "WebhookIssuesUnlockedPropIssuePropUser", "WebhookIssuesUnpinned", "WebhookIssuesUntyped", diff --git a/githubkit/versions/latest/types.py b/githubkit/versions/latest/types.py index 7c127aada..638f5ed2d 100644 --- a/githubkit/versions/latest/types.py +++ b/githubkit/versions/latest/types.py @@ -347,6 +347,9 @@ from githubkit.versions.v2022_11_28.types import ( CodeScanningDefaultSetupUpdateType as CodeScanningDefaultSetupUpdateType, ) + from githubkit.versions.v2022_11_28.types import ( + CodeScanningOptionsType as CodeScanningOptionsType, + ) from githubkit.versions.v2022_11_28.types import ( CodeScanningOrganizationAlertItemsType as CodeScanningOrganizationAlertItemsType, ) @@ -1039,9 +1042,6 @@ from githubkit.versions.v2022_11_28.types import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from githubkit.versions.v2022_11_28.types import ( - IssueSearchResultItemPropSubIssuesSummaryType as IssueSearchResultItemPropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( IssueSearchResultItemType as IssueSearchResultItemType, ) @@ -4530,9 +4530,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) @@ -4614,9 +4611,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) @@ -4698,9 +4692,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentEditedPropIssueAllof0PropReactionsType as WebhookIssueCommentEditedPropIssueAllof0PropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssueCommentEditedPropIssueAllof0PropUserType as WebhookIssueCommentEditedPropIssueAllof0PropUserType, ) @@ -4785,9 +4776,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) @@ -4875,9 +4863,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType as WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) @@ -4917,9 +4902,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) @@ -4968,9 +4950,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesEditedPropIssuePropSubIssuesSummaryType as WebhookIssuesEditedPropIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) @@ -5010,9 +4989,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType as WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) @@ -5052,9 +5028,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesLockedPropIssuePropSubIssuesSummaryType as WebhookIssuesLockedPropIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, ) @@ -5094,9 +5067,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) @@ -5136,9 +5106,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) @@ -5193,9 +5160,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) @@ -5238,9 +5202,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType as WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) @@ -5280,9 +5241,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) @@ -5349,9 +5307,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType as WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) @@ -9128,9 +9083,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhooksIssue2PropReactionsType as WebhooksIssue2PropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhooksIssue2PropSubIssuesSummaryType as WebhooksIssue2PropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhooksIssue2PropUserType as WebhooksIssue2PropUserType, ) @@ -9176,9 +9128,6 @@ from githubkit.versions.v2022_11_28.types import ( WebhooksIssuePropReactionsType as WebhooksIssuePropReactionsType, ) - from githubkit.versions.v2022_11_28.types import ( - WebhooksIssuePropSubIssuesSummaryType as WebhooksIssuePropSubIssuesSummaryType, - ) from githubkit.versions.v2022_11_28.types import ( WebhooksIssuePropUserType as WebhooksIssuePropUserType, ) @@ -10025,6 +9974,7 @@ "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "CodeScanningOptionsType", "CodeScanningDefaultSetupOptionsType", "CodeSecurityDefaultConfigurationsItemsType", "SimpleRepositoryType", @@ -10056,8 +10006,8 @@ "MilestoneType", "IssueTypeType", "ReactionRollupType", - "IssueType", "SubIssuesSummaryType", + "IssueType", "IssuePropLabelsItemsOneof1Type", "IssuePropPullRequestType", "IssueCommentType", @@ -10699,7 +10649,6 @@ "CommitSearchResultItemPropCommitPropTreeType", "IssueSearchResultItemType", "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropSubIssuesSummaryType", "IssueSearchResultItemPropPullRequestType", "SearchIssuesGetResponse200Type", "LabelSearchResultItemType", @@ -10789,7 +10738,6 @@ "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", "WebhooksIssuePropPullRequestType", "WebhooksIssuePropReactionsType", - "WebhooksIssuePropSubIssuesSummaryType", "WebhooksIssuePropUserType", "WebhooksMilestoneType", "WebhooksMilestonePropCreatorType", @@ -10804,7 +10752,6 @@ "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", "WebhooksIssue2PropPullRequestType", "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropSubIssuesSummaryType", "WebhooksIssue2PropUserType", "WebhooksUserMannequinType", "WebhooksMarketplacePurchaseType", @@ -11230,7 +11177,6 @@ "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType", "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -11258,7 +11204,6 @@ "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType", "WebhookIssueCommentDeletedPropIssueAllof1Type", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", @@ -11286,7 +11231,6 @@ "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType", "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -11317,7 +11261,6 @@ "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -11340,7 +11283,6 @@ "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesDeletedPropIssuePropPullRequestType", "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDeletedPropIssuePropUserType", "WebhookIssuesDemilestonedType", "WebhookIssuesDemilestonedPropIssueType", @@ -11354,7 +11296,6 @@ "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesDemilestonedPropIssuePropPullRequestType", "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDemilestonedPropIssuePropUserType", "WebhookIssuesEditedType", "WebhookIssuesEditedPropChangesType", @@ -11371,7 +11312,6 @@ "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesEditedPropIssuePropPullRequestType", "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", "WebhookIssuesEditedPropIssuePropUserType", "WebhookIssuesLabeledType", "WebhookIssuesLabeledPropIssueType", @@ -11385,7 +11325,6 @@ "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesLabeledPropIssuePropPullRequestType", "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", "WebhookIssuesLabeledPropIssuePropUserType", "WebhookIssuesLockedType", "WebhookIssuesLockedPropIssueType", @@ -11399,7 +11338,6 @@ "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesLockedPropIssuePropPullRequestType", "WebhookIssuesLockedPropIssuePropReactionsType", - "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesLockedPropIssuePropUserType", "WebhookIssuesMilestonedType", "WebhookIssuesMilestonedPropIssueType", @@ -11413,7 +11351,6 @@ "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesMilestonedPropIssuePropPullRequestType", "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesMilestonedPropIssuePropUserType", "WebhookIssuesOpenedType", "WebhookIssuesOpenedPropChangesType", @@ -11433,7 +11370,6 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", @@ -11446,7 +11382,6 @@ "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesOpenedPropIssuePropPullRequestType", "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropIssuePropUserType", "WebhookIssuesPinnedType", "WebhookIssuesReopenedType", @@ -11461,7 +11396,6 @@ "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesReopenedPropIssuePropPullRequestType", "WebhookIssuesReopenedPropIssuePropReactionsType", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesReopenedPropIssuePropUserType", "WebhookIssuesTransferredType", "WebhookIssuesTransferredPropChangesType", @@ -11481,7 +11415,6 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", "WebhookIssuesTypedType", "WebhookIssuesUnassignedType", @@ -11498,7 +11431,6 @@ "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesUnlockedPropIssuePropPullRequestType", "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesUnlockedPropIssuePropUserType", "WebhookIssuesUnpinnedType", "WebhookIssuesUntypedType", diff --git a/githubkit/versions/v2022_11_28/models/__init__.py b/githubkit/versions/v2022_11_28/models/__init__.py index e5390a036..97c4d1432 100644 --- a/githubkit/versions/v2022_11_28/models/__init__.py +++ b/githubkit/versions/v2022_11_28/models/__init__.py @@ -91,2623 +91,2609 @@ from .group_0028 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0029 import ( + from .group_0029 import CodeScanningOptions as CodeScanningOptions + from .group_0030 import ( CodeScanningDefaultSetupOptions as CodeScanningDefaultSetupOptions, ) - from .group_0030 import ( + from .group_0031 import ( CodeSecurityDefaultConfigurationsItems as CodeSecurityDefaultConfigurationsItems, ) - from .group_0031 import SimpleRepository as SimpleRepository - from .group_0032 import ( + from .group_0032 import SimpleRepository as SimpleRepository + from .group_0033 import ( CodeSecurityConfigurationRepositories as CodeSecurityConfigurationRepositories, ) - from .group_0033 import DependabotAlertPackage as DependabotAlertPackage - from .group_0034 import ( + from .group_0034 import DependabotAlertPackage as DependabotAlertPackage + from .group_0035 import ( DependabotAlertSecurityVulnerability as DependabotAlertSecurityVulnerability, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisory as DependabotAlertSecurityAdvisory, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisoryPropCvss as DependabotAlertSecurityAdvisoryPropCvss, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisoryPropCwesItems as DependabotAlertSecurityAdvisoryPropCwesItems, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItems as DependabotAlertSecurityAdvisoryPropIdentifiersItems, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisoryPropReferencesItems as DependabotAlertSecurityAdvisoryPropReferencesItems, ) - from .group_0036 import ( + from .group_0037 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) - from .group_0037 import ( + from .group_0038 import ( DependabotAlertWithRepositoryPropDependency as DependabotAlertWithRepositoryPropDependency, ) - from .group_0038 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0038 import ( + from .group_0039 import SecretScanningLocationCommit as SecretScanningLocationCommit + from .group_0039 import ( SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, ) - from .group_0039 import ( + from .group_0040 import ( SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, ) - from .group_0039 import ( + from .group_0040 import ( SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, ) - from .group_0039 import ( + from .group_0040 import ( SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, ) - from .group_0039 import ( + from .group_0040 import ( SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, ) - from .group_0040 import ( + from .group_0041 import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) - from .group_0040 import ( + from .group_0041 import ( SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, ) - from .group_0041 import ( + from .group_0042 import ( OrganizationSecretScanningAlert as OrganizationSecretScanningAlert, ) - from .group_0042 import Milestone as Milestone - from .group_0043 import IssueType as IssueType - from .group_0044 import ReactionRollup as ReactionRollup - from .group_0045 import Issue as Issue - from .group_0045 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 - from .group_0045 import IssuePropPullRequest as IssuePropPullRequest - from .group_0045 import SubIssuesSummary as SubIssuesSummary - from .group_0046 import IssueComment as IssueComment - from .group_0047 import Actor as Actor - from .group_0047 import Event as Event - from .group_0047 import EventPropPayload as EventPropPayload - from .group_0047 import ( + from .group_0043 import Milestone as Milestone + from .group_0044 import IssueType as IssueType + from .group_0045 import ReactionRollup as ReactionRollup + from .group_0046 import SubIssuesSummary as SubIssuesSummary + from .group_0047 import Issue as Issue + from .group_0047 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 + from .group_0047 import IssuePropPullRequest as IssuePropPullRequest + from .group_0048 import IssueComment as IssueComment + from .group_0049 import Actor as Actor + from .group_0049 import Event as Event + from .group_0049 import EventPropPayload as EventPropPayload + from .group_0049 import ( EventPropPayloadPropPagesItems as EventPropPayloadPropPagesItems, ) - from .group_0047 import EventPropRepo as EventPropRepo - from .group_0048 import Feed as Feed - from .group_0048 import FeedPropLinks as FeedPropLinks - from .group_0048 import LinkWithType as LinkWithType - from .group_0049 import BaseGist as BaseGist - from .group_0049 import BaseGistPropFiles as BaseGistPropFiles - from .group_0050 import GistHistory as GistHistory - from .group_0050 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus - from .group_0050 import GistSimplePropForkOf as GistSimplePropForkOf - from .group_0050 import ( + from .group_0049 import EventPropRepo as EventPropRepo + from .group_0050 import Feed as Feed + from .group_0050 import FeedPropLinks as FeedPropLinks + from .group_0050 import LinkWithType as LinkWithType + from .group_0051 import BaseGist as BaseGist + from .group_0051 import BaseGistPropFiles as BaseGistPropFiles + from .group_0052 import GistHistory as GistHistory + from .group_0052 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus + from .group_0052 import GistSimplePropForkOf as GistSimplePropForkOf + from .group_0052 import ( GistSimplePropForkOfPropFiles as GistSimplePropForkOfPropFiles, ) - from .group_0051 import GistSimple as GistSimple - from .group_0051 import GistSimplePropFiles as GistSimplePropFiles - from .group_0051 import GistSimplePropForksItems as GistSimplePropForksItems - from .group_0051 import PublicUser as PublicUser - from .group_0051 import PublicUserPropPlan as PublicUserPropPlan - from .group_0052 import GistComment as GistComment - from .group_0053 import GistCommit as GistCommit - from .group_0053 import GistCommitPropChangeStatus as GistCommitPropChangeStatus - from .group_0054 import GitignoreTemplate as GitignoreTemplate - from .group_0055 import License as License - from .group_0056 import MarketplaceListingPlan as MarketplaceListingPlan - from .group_0057 import MarketplacePurchase as MarketplacePurchase - from .group_0058 import ( + from .group_0053 import GistSimple as GistSimple + from .group_0053 import GistSimplePropFiles as GistSimplePropFiles + from .group_0053 import GistSimplePropForksItems as GistSimplePropForksItems + from .group_0053 import PublicUser as PublicUser + from .group_0053 import PublicUserPropPlan as PublicUserPropPlan + from .group_0054 import GistComment as GistComment + from .group_0055 import GistCommit as GistCommit + from .group_0055 import GistCommitPropChangeStatus as GistCommitPropChangeStatus + from .group_0056 import GitignoreTemplate as GitignoreTemplate + from .group_0057 import License as License + from .group_0058 import MarketplaceListingPlan as MarketplaceListingPlan + from .group_0059 import MarketplacePurchase as MarketplacePurchase + from .group_0060 import ( MarketplacePurchasePropMarketplacePendingChange as MarketplacePurchasePropMarketplacePendingChange, ) - from .group_0058 import ( + from .group_0060 import ( MarketplacePurchasePropMarketplacePurchase as MarketplacePurchasePropMarketplacePurchase, ) - from .group_0059 import ApiOverview as ApiOverview - from .group_0059 import ApiOverviewPropDomains as ApiOverviewPropDomains - from .group_0059 import ( + from .group_0061 import ApiOverview as ApiOverview + from .group_0061 import ApiOverviewPropDomains as ApiOverviewPropDomains + from .group_0061 import ( ApiOverviewPropDomainsPropActionsInbound as ApiOverviewPropDomainsPropActionsInbound, ) - from .group_0059 import ( + from .group_0061 import ( ApiOverviewPropDomainsPropArtifactAttestations as ApiOverviewPropDomainsPropArtifactAttestations, ) - from .group_0059 import ( + from .group_0061 import ( ApiOverviewPropSshKeyFingerprints as ApiOverviewPropSshKeyFingerprints, ) - from .group_0060 import SecurityAndAnalysis as SecurityAndAnalysis - from .group_0060 import ( + from .group_0062 import SecurityAndAnalysis as SecurityAndAnalysis + from .group_0062 import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropCodeSecurity as SecurityAndAnalysisPropCodeSecurity, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropDependabotSecurityUpdates as SecurityAndAnalysisPropDependabotSecurityUpdates, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropSecretScanning as SecurityAndAnalysisPropSecretScanning, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropSecretScanningAiDetection as SecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropSecretScanningPushProtection as SecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0061 import CodeOfConduct as CodeOfConduct - from .group_0061 import MinimalRepository as MinimalRepository - from .group_0061 import ( + from .group_0063 import CodeOfConduct as CodeOfConduct + from .group_0063 import MinimalRepository as MinimalRepository + from .group_0063 import ( MinimalRepositoryPropCustomProperties as MinimalRepositoryPropCustomProperties, ) - from .group_0061 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense - from .group_0061 import ( + from .group_0063 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense + from .group_0063 import ( MinimalRepositoryPropPermissions as MinimalRepositoryPropPermissions, ) - from .group_0062 import Thread as Thread - from .group_0062 import ThreadPropSubject as ThreadPropSubject - from .group_0063 import ThreadSubscription as ThreadSubscription - from .group_0064 import OrganizationSimple as OrganizationSimple - from .group_0065 import ( + from .group_0064 import Thread as Thread + from .group_0064 import ThreadPropSubject as ThreadPropSubject + from .group_0065 import ThreadSubscription as ThreadSubscription + from .group_0066 import OrganizationSimple as OrganizationSimple + from .group_0067 import ( DependabotRepositoryAccessDetails as DependabotRepositoryAccessDetails, ) - from .group_0066 import BillingUsageReport as BillingUsageReport - from .group_0066 import ( + from .group_0068 import BillingUsageReport as BillingUsageReport + from .group_0068 import ( BillingUsageReportPropUsageItemsItems as BillingUsageReportPropUsageItemsItems, ) - from .group_0067 import OrganizationFull as OrganizationFull - from .group_0067 import OrganizationFullPropPlan as OrganizationFullPropPlan - from .group_0068 import ( + from .group_0069 import OrganizationFull as OrganizationFull + from .group_0069 import OrganizationFullPropPlan as OrganizationFullPropPlan + from .group_0070 import ( ActionsCacheUsageOrgEnterprise as ActionsCacheUsageOrgEnterprise, ) - from .group_0069 import ( + from .group_0071 import ( ActionsHostedRunnerMachineSpec as ActionsHostedRunnerMachineSpec, ) - from .group_0070 import ActionsHostedRunner as ActionsHostedRunner - from .group_0070 import ActionsHostedRunnerPoolImage as ActionsHostedRunnerPoolImage - from .group_0070 import PublicIp as PublicIp - from .group_0071 import ActionsHostedRunnerImage as ActionsHostedRunnerImage - from .group_0072 import ActionsHostedRunnerLimits as ActionsHostedRunnerLimits - from .group_0072 import ( + from .group_0072 import ActionsHostedRunner as ActionsHostedRunner + from .group_0072 import ActionsHostedRunnerPoolImage as ActionsHostedRunnerPoolImage + from .group_0072 import PublicIp as PublicIp + from .group_0073 import ActionsHostedRunnerImage as ActionsHostedRunnerImage + from .group_0074 import ActionsHostedRunnerLimits as ActionsHostedRunnerLimits + from .group_0074 import ( ActionsHostedRunnerLimitsPropPublicIps as ActionsHostedRunnerLimitsPropPublicIps, ) - from .group_0073 import OidcCustomSub as OidcCustomSub - from .group_0074 import ( + from .group_0075 import OidcCustomSub as OidcCustomSub + from .group_0076 import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) - from .group_0075 import SelectedActions as SelectedActions - from .group_0076 import ( + from .group_0077 import SelectedActions as SelectedActions + from .group_0078 import ( ActionsGetDefaultWorkflowPermissions as ActionsGetDefaultWorkflowPermissions, ) - from .group_0077 import ( + from .group_0079 import ( ActionsSetDefaultWorkflowPermissions as ActionsSetDefaultWorkflowPermissions, ) - from .group_0078 import RunnerLabel as RunnerLabel - from .group_0079 import Runner as Runner - from .group_0080 import RunnerApplication as RunnerApplication - from .group_0081 import AuthenticationToken as AuthenticationToken - from .group_0081 import ( + from .group_0080 import RunnerLabel as RunnerLabel + from .group_0081 import Runner as Runner + from .group_0082 import RunnerApplication as RunnerApplication + from .group_0083 import AuthenticationToken as AuthenticationToken + from .group_0083 import ( AuthenticationTokenPropPermissions as AuthenticationTokenPropPermissions, ) - from .group_0082 import ActionsPublicKey as ActionsPublicKey - from .group_0083 import TeamSimple as TeamSimple - from .group_0084 import Team as Team - from .group_0084 import TeamPropPermissions as TeamPropPermissions - from .group_0085 import CampaignSummary as CampaignSummary - from .group_0085 import ( + from .group_0084 import ActionsPublicKey as ActionsPublicKey + from .group_0085 import TeamSimple as TeamSimple + from .group_0086 import Team as Team + from .group_0086 import TeamPropPermissions as TeamPropPermissions + from .group_0087 import CampaignSummary as CampaignSummary + from .group_0087 import ( CampaignSummaryPropAlertStats as CampaignSummaryPropAlertStats, ) - from .group_0086 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary - from .group_0087 import CodeScanningAnalysisTool as CodeScanningAnalysisTool - from .group_0088 import CodeScanningAlertInstance as CodeScanningAlertInstance - from .group_0088 import ( + from .group_0088 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary + from .group_0089 import CodeScanningAnalysisTool as CodeScanningAnalysisTool + from .group_0090 import CodeScanningAlertInstance as CodeScanningAlertInstance + from .group_0090 import ( CodeScanningAlertInstancePropMessage as CodeScanningAlertInstancePropMessage, ) - from .group_0088 import CodeScanningAlertLocation as CodeScanningAlertLocation - from .group_0089 import ( + from .group_0090 import CodeScanningAlertLocation as CodeScanningAlertLocation + from .group_0091 import ( CodeScanningOrganizationAlertItems as CodeScanningOrganizationAlertItems, ) - from .group_0090 import CodespaceMachine as CodespaceMachine - from .group_0091 import Codespace as Codespace - from .group_0091 import CodespacePropGitStatus as CodespacePropGitStatus - from .group_0091 import ( + from .group_0092 import CodespaceMachine as CodespaceMachine + from .group_0093 import Codespace as Codespace + from .group_0093 import CodespacePropGitStatus as CodespacePropGitStatus + from .group_0093 import ( CodespacePropRuntimeConstraints as CodespacePropRuntimeConstraints, ) - from .group_0092 import CodespacesPublicKey as CodespacesPublicKey - from .group_0093 import CopilotOrganizationDetails as CopilotOrganizationDetails - from .group_0093 import ( + from .group_0094 import CodespacesPublicKey as CodespacesPublicKey + from .group_0095 import CopilotOrganizationDetails as CopilotOrganizationDetails + from .group_0095 import ( CopilotOrganizationSeatBreakdown as CopilotOrganizationSeatBreakdown, ) - from .group_0094 import CopilotSeatDetails as CopilotSeatDetails - from .group_0094 import EnterpriseTeam as EnterpriseTeam - from .group_0094 import ( + from .group_0096 import CopilotSeatDetails as CopilotSeatDetails + from .group_0096 import EnterpriseTeam as EnterpriseTeam + from .group_0096 import ( OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, ) - from .group_0095 import CopilotDotcomChat as CopilotDotcomChat - from .group_0095 import ( + from .group_0097 import CopilotDotcomChat as CopilotDotcomChat + from .group_0097 import ( CopilotDotcomChatPropModelsItems as CopilotDotcomChatPropModelsItems, ) - from .group_0095 import CopilotDotcomPullRequests as CopilotDotcomPullRequests - from .group_0095 import ( + from .group_0097 import CopilotDotcomPullRequests as CopilotDotcomPullRequests + from .group_0097 import ( CopilotDotcomPullRequestsPropRepositoriesItems as CopilotDotcomPullRequestsPropRepositoriesItems, ) - from .group_0095 import ( + from .group_0097 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems, ) - from .group_0095 import CopilotIdeChat as CopilotIdeChat - from .group_0095 import ( + from .group_0097 import CopilotIdeChat as CopilotIdeChat + from .group_0097 import ( CopilotIdeChatPropEditorsItems as CopilotIdeChatPropEditorsItems, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeChatPropEditorsItemsPropModelsItems as CopilotIdeChatPropEditorsItemsPropModelsItems, ) - from .group_0095 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions - from .group_0095 import ( + from .group_0097 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions + from .group_0097 import ( CopilotIdeCodeCompletionsPropEditorsItems as CopilotIdeCodeCompletionsPropEditorsItems, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeCodeCompletionsPropLanguagesItems as CopilotIdeCodeCompletionsPropLanguagesItems, ) - from .group_0095 import CopilotUsageMetricsDay as CopilotUsageMetricsDay - from .group_0096 import DependabotPublicKey as DependabotPublicKey - from .group_0097 import Package as Package - from .group_0098 import OrganizationInvitation as OrganizationInvitation - from .group_0099 import OrgHook as OrgHook - from .group_0099 import OrgHookPropConfig as OrgHookPropConfig - from .group_0100 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems - from .group_0101 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems - from .group_0102 import ApiInsightsSummaryStats as ApiInsightsSummaryStats - from .group_0103 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems - from .group_0104 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems - from .group_0105 import InteractionLimitResponse as InteractionLimitResponse - from .group_0106 import InteractionLimit as InteractionLimit - from .group_0107 import OrganizationCreateIssueType as OrganizationCreateIssueType - from .group_0108 import OrganizationUpdateIssueType as OrganizationUpdateIssueType - from .group_0109 import OrgMembership as OrgMembership - from .group_0109 import OrgMembershipPropPermissions as OrgMembershipPropPermissions - from .group_0110 import Migration as Migration - from .group_0111 import OrganizationRole as OrganizationRole - from .group_0111 import ( + from .group_0097 import CopilotUsageMetricsDay as CopilotUsageMetricsDay + from .group_0098 import DependabotPublicKey as DependabotPublicKey + from .group_0099 import Package as Package + from .group_0100 import OrganizationInvitation as OrganizationInvitation + from .group_0101 import OrgHook as OrgHook + from .group_0101 import OrgHookPropConfig as OrgHookPropConfig + from .group_0102 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems + from .group_0103 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems + from .group_0104 import ApiInsightsSummaryStats as ApiInsightsSummaryStats + from .group_0105 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems + from .group_0106 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems + from .group_0107 import InteractionLimitResponse as InteractionLimitResponse + from .group_0108 import InteractionLimit as InteractionLimit + from .group_0109 import OrganizationCreateIssueType as OrganizationCreateIssueType + from .group_0110 import OrganizationUpdateIssueType as OrganizationUpdateIssueType + from .group_0111 import OrgMembership as OrgMembership + from .group_0111 import OrgMembershipPropPermissions as OrgMembershipPropPermissions + from .group_0112 import Migration as Migration + from .group_0113 import OrganizationRole as OrganizationRole + from .group_0113 import ( OrgsOrgOrganizationRolesGetResponse200 as OrgsOrgOrganizationRolesGetResponse200, ) - from .group_0112 import TeamRoleAssignment as TeamRoleAssignment - from .group_0112 import ( + from .group_0114 import TeamRoleAssignment as TeamRoleAssignment + from .group_0114 import ( TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, ) - from .group_0113 import UserRoleAssignment as UserRoleAssignment - from .group_0114 import PackageVersion as PackageVersion - from .group_0114 import PackageVersionPropMetadata as PackageVersionPropMetadata - from .group_0114 import ( + from .group_0115 import UserRoleAssignment as UserRoleAssignment + from .group_0116 import PackageVersion as PackageVersion + from .group_0116 import PackageVersionPropMetadata as PackageVersionPropMetadata + from .group_0116 import ( PackageVersionPropMetadataPropContainer as PackageVersionPropMetadataPropContainer, ) - from .group_0114 import ( + from .group_0116 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) - from .group_0115 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequest as OrganizationProgrammaticAccessGrantRequest, ) - from .group_0115 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequestPropPermissions as OrganizationProgrammaticAccessGrantRequestPropPermissions, ) - from .group_0115 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, ) - from .group_0115 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther, ) - from .group_0115 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrant as OrganizationProgrammaticAccessGrant, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrantPropPermissions as OrganizationProgrammaticAccessGrantPropPermissions, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOther as OrganizationProgrammaticAccessGrantPropPermissionsPropOther, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0117 import ( + from .group_0119 import ( OrgPrivateRegistryConfigurationWithSelectedRepositories as OrgPrivateRegistryConfigurationWithSelectedRepositories, ) - from .group_0118 import Project as Project - from .group_0119 import CustomProperty as CustomProperty - from .group_0120 import CustomPropertySetPayload as CustomPropertySetPayload - from .group_0121 import CustomPropertyValue as CustomPropertyValue - from .group_0122 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues - from .group_0123 import CodeOfConductSimple as CodeOfConductSimple - from .group_0124 import FullRepository as FullRepository - from .group_0124 import ( + from .group_0120 import Project as Project + from .group_0121 import CustomProperty as CustomProperty + from .group_0122 import CustomPropertySetPayload as CustomPropertySetPayload + from .group_0123 import CustomPropertyValue as CustomPropertyValue + from .group_0124 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues + from .group_0125 import CodeOfConductSimple as CodeOfConductSimple + from .group_0126 import FullRepository as FullRepository + from .group_0126 import ( FullRepositoryPropCustomProperties as FullRepositoryPropCustomProperties, ) - from .group_0124 import ( + from .group_0126 import ( FullRepositoryPropPermissions as FullRepositoryPropPermissions, ) - from .group_0125 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor - from .group_0126 import RepositoryRulesetConditions as RepositoryRulesetConditions - from .group_0127 import ( + from .group_0127 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor + from .group_0128 import RepositoryRulesetConditions as RepositoryRulesetConditions + from .group_0129 import ( RepositoryRulesetConditionsPropRefName as RepositoryRulesetConditionsPropRefName, ) - from .group_0128 import ( + from .group_0130 import ( RepositoryRulesetConditionsRepositoryNameTarget as RepositoryRulesetConditionsRepositoryNameTarget, ) - from .group_0129 import ( + from .group_0131 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) - from .group_0130 import ( + from .group_0132 import ( RepositoryRulesetConditionsRepositoryIdTarget as RepositoryRulesetConditionsRepositoryIdTarget, ) - from .group_0131 import ( + from .group_0133 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId, ) - from .group_0132 import ( + from .group_0134 import ( RepositoryRulesetConditionsRepositoryPropertyTarget as RepositoryRulesetConditionsRepositoryPropertyTarget, ) - from .group_0133 import ( + from .group_0135 import ( RepositoryRulesetConditionsRepositoryPropertySpec as RepositoryRulesetConditionsRepositoryPropertySpec, ) - from .group_0133 import ( + from .group_0135 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) - from .group_0134 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 - from .group_0135 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 - from .group_0136 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 - from .group_0137 import RepositoryRuleCreation as RepositoryRuleCreation - from .group_0137 import RepositoryRuleDeletion as RepositoryRuleDeletion - from .group_0137 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward - from .group_0137 import ( + from .group_0136 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 + from .group_0137 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 + from .group_0138 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 + from .group_0139 import RepositoryRuleCreation as RepositoryRuleCreation + from .group_0139 import RepositoryRuleDeletion as RepositoryRuleDeletion + from .group_0139 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward + from .group_0139 import ( RepositoryRuleRequiredSignatures as RepositoryRuleRequiredSignatures, ) - from .group_0138 import RepositoryRuleUpdate as RepositoryRuleUpdate - from .group_0139 import ( + from .group_0140 import RepositoryRuleUpdate as RepositoryRuleUpdate + from .group_0141 import ( RepositoryRuleUpdatePropParameters as RepositoryRuleUpdatePropParameters, ) - from .group_0140 import ( + from .group_0142 import ( RepositoryRuleRequiredLinearHistory as RepositoryRuleRequiredLinearHistory, ) - from .group_0141 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue - from .group_0142 import ( + from .group_0143 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue + from .group_0144 import ( RepositoryRuleMergeQueuePropParameters as RepositoryRuleMergeQueuePropParameters, ) - from .group_0143 import ( + from .group_0145 import ( RepositoryRuleRequiredDeployments as RepositoryRuleRequiredDeployments, ) - from .group_0144 import ( + from .group_0146 import ( RepositoryRuleRequiredDeploymentsPropParameters as RepositoryRuleRequiredDeploymentsPropParameters, ) - from .group_0145 import ( + from .group_0147 import ( RepositoryRuleParamsRequiredReviewerConfiguration as RepositoryRuleParamsRequiredReviewerConfiguration, ) - from .group_0145 import RepositoryRuleParamsReviewer as RepositoryRuleParamsReviewer - from .group_0146 import RepositoryRulePullRequest as RepositoryRulePullRequest - from .group_0147 import ( + from .group_0147 import RepositoryRuleParamsReviewer as RepositoryRuleParamsReviewer + from .group_0148 import RepositoryRulePullRequest as RepositoryRulePullRequest + from .group_0149 import ( RepositoryRulePullRequestPropParameters as RepositoryRulePullRequestPropParameters, ) - from .group_0148 import ( + from .group_0150 import ( RepositoryRuleRequiredStatusChecks as RepositoryRuleRequiredStatusChecks, ) - from .group_0149 import ( + from .group_0151 import ( RepositoryRuleParamsStatusCheckConfiguration as RepositoryRuleParamsStatusCheckConfiguration, ) - from .group_0149 import ( + from .group_0151 import ( RepositoryRuleRequiredStatusChecksPropParameters as RepositoryRuleRequiredStatusChecksPropParameters, ) - from .group_0150 import ( + from .group_0152 import ( RepositoryRuleCommitMessagePattern as RepositoryRuleCommitMessagePattern, ) - from .group_0151 import ( + from .group_0153 import ( RepositoryRuleCommitMessagePatternPropParameters as RepositoryRuleCommitMessagePatternPropParameters, ) - from .group_0152 import ( + from .group_0154 import ( RepositoryRuleCommitAuthorEmailPattern as RepositoryRuleCommitAuthorEmailPattern, ) - from .group_0153 import ( + from .group_0155 import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from .group_0154 import ( + from .group_0156 import ( RepositoryRuleCommitterEmailPattern as RepositoryRuleCommitterEmailPattern, ) - from .group_0155 import ( + from .group_0157 import ( RepositoryRuleCommitterEmailPatternPropParameters as RepositoryRuleCommitterEmailPatternPropParameters, ) - from .group_0156 import ( + from .group_0158 import ( RepositoryRuleBranchNamePattern as RepositoryRuleBranchNamePattern, ) - from .group_0157 import ( + from .group_0159 import ( RepositoryRuleBranchNamePatternPropParameters as RepositoryRuleBranchNamePatternPropParameters, ) - from .group_0158 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern - from .group_0159 import ( + from .group_0160 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern + from .group_0161 import ( RepositoryRuleTagNamePatternPropParameters as RepositoryRuleTagNamePatternPropParameters, ) - from .group_0160 import ( + from .group_0162 import ( RepositoryRuleFilePathRestriction as RepositoryRuleFilePathRestriction, ) - from .group_0161 import ( + from .group_0163 import ( RepositoryRuleFilePathRestrictionPropParameters as RepositoryRuleFilePathRestrictionPropParameters, ) - from .group_0162 import ( + from .group_0164 import ( RepositoryRuleMaxFilePathLength as RepositoryRuleMaxFilePathLength, ) - from .group_0163 import ( + from .group_0165 import ( RepositoryRuleMaxFilePathLengthPropParameters as RepositoryRuleMaxFilePathLengthPropParameters, ) - from .group_0164 import ( + from .group_0166 import ( RepositoryRuleFileExtensionRestriction as RepositoryRuleFileExtensionRestriction, ) - from .group_0165 import ( + from .group_0167 import ( RepositoryRuleFileExtensionRestrictionPropParameters as RepositoryRuleFileExtensionRestrictionPropParameters, ) - from .group_0166 import RepositoryRuleMaxFileSize as RepositoryRuleMaxFileSize - from .group_0167 import ( + from .group_0168 import RepositoryRuleMaxFileSize as RepositoryRuleMaxFileSize + from .group_0169 import ( RepositoryRuleMaxFileSizePropParameters as RepositoryRuleMaxFileSizePropParameters, ) - from .group_0168 import ( + from .group_0170 import ( RepositoryRuleParamsRestrictedCommits as RepositoryRuleParamsRestrictedCommits, ) - from .group_0169 import RepositoryRuleWorkflows as RepositoryRuleWorkflows - from .group_0170 import ( + from .group_0171 import RepositoryRuleWorkflows as RepositoryRuleWorkflows + from .group_0172 import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) - from .group_0170 import ( + from .group_0172 import ( RepositoryRuleWorkflowsPropParameters as RepositoryRuleWorkflowsPropParameters, ) - from .group_0171 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning - from .group_0172 import ( + from .group_0173 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning + from .group_0174 import ( RepositoryRuleCodeScanningPropParameters as RepositoryRuleCodeScanningPropParameters, ) - from .group_0172 import ( + from .group_0174 import ( RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, ) - from .group_0173 import RepositoryRuleset as RepositoryRuleset - from .group_0173 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks - from .group_0173 import ( + from .group_0175 import RepositoryRuleset as RepositoryRuleset + from .group_0175 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks + from .group_0175 import ( RepositoryRulesetPropLinksPropHtml as RepositoryRulesetPropLinksPropHtml, ) - from .group_0173 import ( + from .group_0175 import ( RepositoryRulesetPropLinksPropSelf as RepositoryRulesetPropLinksPropSelf, ) - from .group_0174 import RuleSuitesItems as RuleSuitesItems - from .group_0175 import RuleSuite as RuleSuite - from .group_0175 import ( + from .group_0176 import RuleSuitesItems as RuleSuitesItems + from .group_0177 import RuleSuite as RuleSuite + from .group_0177 import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) - from .group_0175 import ( + from .group_0177 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSource as RuleSuitePropRuleEvaluationsItemsPropRuleSource, ) - from .group_0176 import RulesetVersion as RulesetVersion - from .group_0177 import RulesetVersionPropActor as RulesetVersionPropActor - from .group_0178 import RulesetVersionWithState as RulesetVersionWithState - from .group_0179 import ( + from .group_0178 import RulesetVersion as RulesetVersion + from .group_0179 import RulesetVersionPropActor as RulesetVersionPropActor + from .group_0180 import RulesetVersionWithState as RulesetVersionWithState + from .group_0181 import ( RulesetVersionWithStateAllof1 as RulesetVersionWithStateAllof1, ) - from .group_0180 import ( + from .group_0182 import ( RulesetVersionWithStateAllof1PropState as RulesetVersionWithStateAllof1PropState, ) - from .group_0181 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit - from .group_0182 import RepositoryAdvisory as RepositoryAdvisory - from .group_0182 import ( + from .group_0183 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit + from .group_0184 import RepositoryAdvisory as RepositoryAdvisory + from .group_0184 import ( RepositoryAdvisoryPropCreditsItems as RepositoryAdvisoryPropCreditsItems, ) - from .group_0182 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss - from .group_0182 import ( + from .group_0184 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss + from .group_0184 import ( RepositoryAdvisoryPropCwesItems as RepositoryAdvisoryPropCwesItems, ) - from .group_0182 import ( + from .group_0184 import ( RepositoryAdvisoryPropIdentifiersItems as RepositoryAdvisoryPropIdentifiersItems, ) - from .group_0182 import ( + from .group_0184 import ( RepositoryAdvisoryPropSubmission as RepositoryAdvisoryPropSubmission, ) - from .group_0182 import ( + from .group_0184 import ( RepositoryAdvisoryVulnerability as RepositoryAdvisoryVulnerability, ) - from .group_0182 import ( + from .group_0184 import ( RepositoryAdvisoryVulnerabilityPropPackage as RepositoryAdvisoryVulnerabilityPropPackage, ) - from .group_0183 import ActionsBillingUsage as ActionsBillingUsage - from .group_0183 import ( + from .group_0185 import ActionsBillingUsage as ActionsBillingUsage + from .group_0185 import ( ActionsBillingUsagePropMinutesUsedBreakdown as ActionsBillingUsagePropMinutesUsedBreakdown, ) - from .group_0184 import PackagesBillingUsage as PackagesBillingUsage - from .group_0185 import CombinedBillingUsage as CombinedBillingUsage - from .group_0186 import NetworkSettings as NetworkSettings - from .group_0187 import TeamFull as TeamFull - from .group_0187 import TeamOrganization as TeamOrganization - from .group_0187 import TeamOrganizationPropPlan as TeamOrganizationPropPlan - from .group_0188 import TeamDiscussion as TeamDiscussion - from .group_0189 import TeamDiscussionComment as TeamDiscussionComment - from .group_0190 import Reaction as Reaction - from .group_0191 import TeamMembership as TeamMembership - from .group_0192 import TeamProject as TeamProject - from .group_0192 import TeamProjectPropPermissions as TeamProjectPropPermissions - from .group_0193 import TeamRepository as TeamRepository - from .group_0193 import ( + from .group_0186 import PackagesBillingUsage as PackagesBillingUsage + from .group_0187 import CombinedBillingUsage as CombinedBillingUsage + from .group_0188 import NetworkSettings as NetworkSettings + from .group_0189 import TeamFull as TeamFull + from .group_0189 import TeamOrganization as TeamOrganization + from .group_0189 import TeamOrganizationPropPlan as TeamOrganizationPropPlan + from .group_0190 import TeamDiscussion as TeamDiscussion + from .group_0191 import TeamDiscussionComment as TeamDiscussionComment + from .group_0192 import Reaction as Reaction + from .group_0193 import TeamMembership as TeamMembership + from .group_0194 import TeamProject as TeamProject + from .group_0194 import TeamProjectPropPermissions as TeamProjectPropPermissions + from .group_0195 import TeamRepository as TeamRepository + from .group_0195 import ( TeamRepositoryPropPermissions as TeamRepositoryPropPermissions, ) - from .group_0194 import ProjectCard as ProjectCard - from .group_0195 import ProjectColumn as ProjectColumn - from .group_0196 import ( + from .group_0196 import ProjectCard as ProjectCard + from .group_0197 import ProjectColumn as ProjectColumn + from .group_0198 import ( ProjectCollaboratorPermission as ProjectCollaboratorPermission, ) - from .group_0197 import RateLimit as RateLimit - from .group_0198 import RateLimitOverview as RateLimitOverview - from .group_0199 import ( + from .group_0199 import RateLimit as RateLimit + from .group_0200 import RateLimitOverview as RateLimitOverview + from .group_0201 import ( RateLimitOverviewPropResources as RateLimitOverviewPropResources, ) - from .group_0200 import Artifact as Artifact - from .group_0200 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun - from .group_0201 import ActionsCacheList as ActionsCacheList - from .group_0201 import ( + from .group_0202 import Artifact as Artifact + from .group_0202 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun + from .group_0203 import ActionsCacheList as ActionsCacheList + from .group_0203 import ( ActionsCacheListPropActionsCachesItems as ActionsCacheListPropActionsCachesItems, ) - from .group_0202 import Job as Job - from .group_0202 import JobPropStepsItems as JobPropStepsItems - from .group_0203 import OidcCustomSubRepo as OidcCustomSubRepo - from .group_0204 import ActionsSecret as ActionsSecret - from .group_0205 import ActionsVariable as ActionsVariable - from .group_0206 import ActionsRepositoryPermissions as ActionsRepositoryPermissions - from .group_0207 import ( + from .group_0204 import Job as Job + from .group_0204 import JobPropStepsItems as JobPropStepsItems + from .group_0205 import OidcCustomSubRepo as OidcCustomSubRepo + from .group_0206 import ActionsSecret as ActionsSecret + from .group_0207 import ActionsVariable as ActionsVariable + from .group_0208 import ActionsRepositoryPermissions as ActionsRepositoryPermissions + from .group_0209 import ( ActionsWorkflowAccessToRepository as ActionsWorkflowAccessToRepository, ) - from .group_0208 import PullRequestMinimal as PullRequestMinimal - from .group_0208 import PullRequestMinimalPropBase as PullRequestMinimalPropBase - from .group_0208 import ( + from .group_0210 import PullRequestMinimal as PullRequestMinimal + from .group_0210 import PullRequestMinimalPropBase as PullRequestMinimalPropBase + from .group_0210 import ( PullRequestMinimalPropBasePropRepo as PullRequestMinimalPropBasePropRepo, ) - from .group_0208 import PullRequestMinimalPropHead as PullRequestMinimalPropHead - from .group_0208 import ( + from .group_0210 import PullRequestMinimalPropHead as PullRequestMinimalPropHead + from .group_0210 import ( PullRequestMinimalPropHeadPropRepo as PullRequestMinimalPropHeadPropRepo, ) - from .group_0209 import SimpleCommit as SimpleCommit - from .group_0209 import SimpleCommitPropAuthor as SimpleCommitPropAuthor - from .group_0209 import SimpleCommitPropCommitter as SimpleCommitPropCommitter - from .group_0210 import ReferencedWorkflow as ReferencedWorkflow - from .group_0210 import WorkflowRun as WorkflowRun - from .group_0211 import EnvironmentApprovals as EnvironmentApprovals - from .group_0211 import ( + from .group_0211 import SimpleCommit as SimpleCommit + from .group_0211 import SimpleCommitPropAuthor as SimpleCommitPropAuthor + from .group_0211 import SimpleCommitPropCommitter as SimpleCommitPropCommitter + from .group_0212 import ReferencedWorkflow as ReferencedWorkflow + from .group_0212 import WorkflowRun as WorkflowRun + from .group_0213 import EnvironmentApprovals as EnvironmentApprovals + from .group_0213 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) - from .group_0212 import ( + from .group_0214 import ( ReviewCustomGatesCommentRequired as ReviewCustomGatesCommentRequired, ) - from .group_0213 import ( + from .group_0215 import ( ReviewCustomGatesStateRequired as ReviewCustomGatesStateRequired, ) - from .group_0214 import PendingDeployment as PendingDeployment - from .group_0214 import ( + from .group_0216 import PendingDeployment as PendingDeployment + from .group_0216 import ( PendingDeploymentPropEnvironment as PendingDeploymentPropEnvironment, ) - from .group_0214 import ( + from .group_0216 import ( PendingDeploymentPropReviewersItems as PendingDeploymentPropReviewersItems, ) - from .group_0215 import Deployment as Deployment - from .group_0215 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 - from .group_0216 import WorkflowRunUsage as WorkflowRunUsage - from .group_0216 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable - from .group_0216 import ( + from .group_0217 import Deployment as Deployment + from .group_0217 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 + from .group_0218 import WorkflowRunUsage as WorkflowRunUsage + from .group_0218 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable + from .group_0218 import ( WorkflowRunUsagePropBillablePropMacos as WorkflowRunUsagePropBillablePropMacos, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropUbuntu as WorkflowRunUsagePropBillablePropUbuntu, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropWindows as WorkflowRunUsagePropBillablePropWindows, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems, ) - from .group_0217 import WorkflowUsage as WorkflowUsage - from .group_0217 import WorkflowUsagePropBillable as WorkflowUsagePropBillable - from .group_0217 import ( + from .group_0219 import WorkflowUsage as WorkflowUsage + from .group_0219 import WorkflowUsagePropBillable as WorkflowUsagePropBillable + from .group_0219 import ( WorkflowUsagePropBillablePropMacos as WorkflowUsagePropBillablePropMacos, ) - from .group_0217 import ( + from .group_0219 import ( WorkflowUsagePropBillablePropUbuntu as WorkflowUsagePropBillablePropUbuntu, ) - from .group_0217 import ( + from .group_0219 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) - from .group_0218 import Activity as Activity - from .group_0219 import Autolink as Autolink - from .group_0220 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes - from .group_0221 import ( + from .group_0220 import Activity as Activity + from .group_0221 import Autolink as Autolink + from .group_0222 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes + from .group_0223 import ( ProtectedBranchPullRequestReview as ProtectedBranchPullRequestReview, ) - from .group_0222 import ( + from .group_0224 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0222 import ( + from .group_0224 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0223 import BranchRestrictionPolicy as BranchRestrictionPolicy - from .group_0223 import ( + from .group_0225 import BranchRestrictionPolicy as BranchRestrictionPolicy + from .group_0225 import ( BranchRestrictionPolicyPropAppsItems as BranchRestrictionPolicyPropAppsItems, ) - from .group_0223 import ( + from .group_0225 import ( BranchRestrictionPolicyPropAppsItemsPropOwner as BranchRestrictionPolicyPropAppsItemsPropOwner, ) - from .group_0223 import ( + from .group_0225 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0223 import ( + from .group_0225 import ( BranchRestrictionPolicyPropTeamsItems as BranchRestrictionPolicyPropTeamsItems, ) - from .group_0223 import ( + from .group_0225 import ( BranchRestrictionPolicyPropUsersItems as BranchRestrictionPolicyPropUsersItems, ) - from .group_0224 import BranchProtection as BranchProtection - from .group_0224 import ( + from .group_0226 import BranchProtection as BranchProtection + from .group_0226 import ( BranchProtectionPropAllowDeletions as BranchProtectionPropAllowDeletions, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropAllowForcePushes as BranchProtectionPropAllowForcePushes, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropAllowForkSyncing as BranchProtectionPropAllowForkSyncing, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropBlockCreations as BranchProtectionPropBlockCreations, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropLockBranch as BranchProtectionPropLockBranch, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropRequiredLinearHistory as BranchProtectionPropRequiredLinearHistory, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropRequiredSignatures as BranchProtectionPropRequiredSignatures, ) - from .group_0224 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced - from .group_0224 import ( + from .group_0226 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced + from .group_0226 import ( ProtectedBranchRequiredStatusCheck as ProtectedBranchRequiredStatusCheck, ) - from .group_0224 import ( + from .group_0226 import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) - from .group_0225 import ShortBranch as ShortBranch - from .group_0225 import ShortBranchPropCommit as ShortBranchPropCommit - from .group_0226 import GitUser as GitUser - from .group_0227 import Verification as Verification - from .group_0228 import DiffEntry as DiffEntry - from .group_0229 import Commit as Commit - from .group_0229 import CommitPropParentsItems as CommitPropParentsItems - from .group_0229 import CommitPropStats as CommitPropStats - from .group_0229 import EmptyObject as EmptyObject - from .group_0230 import CommitPropCommit as CommitPropCommit - from .group_0230 import CommitPropCommitPropTree as CommitPropCommitPropTree - from .group_0231 import BranchWithProtection as BranchWithProtection - from .group_0231 import ( + from .group_0227 import ShortBranch as ShortBranch + from .group_0227 import ShortBranchPropCommit as ShortBranchPropCommit + from .group_0228 import GitUser as GitUser + from .group_0229 import Verification as Verification + from .group_0230 import DiffEntry as DiffEntry + from .group_0231 import Commit as Commit + from .group_0231 import CommitPropParentsItems as CommitPropParentsItems + from .group_0231 import CommitPropStats as CommitPropStats + from .group_0231 import EmptyObject as EmptyObject + from .group_0232 import CommitPropCommit as CommitPropCommit + from .group_0232 import CommitPropCommitPropTree as CommitPropCommitPropTree + from .group_0233 import BranchWithProtection as BranchWithProtection + from .group_0233 import ( BranchWithProtectionPropLinks as BranchWithProtectionPropLinks, ) - from .group_0232 import ProtectedBranch as ProtectedBranch - from .group_0232 import ( + from .group_0234 import ProtectedBranch as ProtectedBranch + from .group_0234 import ( ProtectedBranchPropAllowDeletions as ProtectedBranchPropAllowDeletions, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropAllowForcePushes as ProtectedBranchPropAllowForcePushes, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropAllowForkSyncing as ProtectedBranchPropAllowForkSyncing, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropBlockCreations as ProtectedBranchPropBlockCreations, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropEnforceAdmins as ProtectedBranchPropEnforceAdmins, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropLockBranch as ProtectedBranchPropLockBranch, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropRequiredConversationResolution as ProtectedBranchPropRequiredConversationResolution, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropRequiredLinearHistory as ProtectedBranchPropRequiredLinearHistory, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropRequiredSignatures as ProtectedBranchPropRequiredSignatures, ) - from .group_0232 import StatusCheckPolicy as StatusCheckPolicy - from .group_0232 import ( + from .group_0234 import StatusCheckPolicy as StatusCheckPolicy + from .group_0234 import ( StatusCheckPolicyPropChecksItems as StatusCheckPolicyPropChecksItems, ) - from .group_0233 import ( + from .group_0235 import ( ProtectedBranchPropRequiredPullRequestReviews as ProtectedBranchPropRequiredPullRequestReviews, ) - from .group_0234 import ( + from .group_0236 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0234 import ( + from .group_0236 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0235 import DeploymentSimple as DeploymentSimple - from .group_0236 import CheckRun as CheckRun - from .group_0236 import CheckRunPropCheckSuite as CheckRunPropCheckSuite - from .group_0236 import CheckRunPropOutput as CheckRunPropOutput - from .group_0237 import CheckAnnotation as CheckAnnotation - from .group_0238 import CheckSuite as CheckSuite - from .group_0238 import ( + from .group_0237 import DeploymentSimple as DeploymentSimple + from .group_0238 import CheckRun as CheckRun + from .group_0238 import CheckRunPropCheckSuite as CheckRunPropCheckSuite + from .group_0238 import CheckRunPropOutput as CheckRunPropOutput + from .group_0239 import CheckAnnotation as CheckAnnotation + from .group_0240 import CheckSuite as CheckSuite + from .group_0240 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200 as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200, ) - from .group_0239 import CheckSuitePreference as CheckSuitePreference - from .group_0239 import ( + from .group_0241 import CheckSuitePreference as CheckSuitePreference + from .group_0241 import ( CheckSuitePreferencePropPreferences as CheckSuitePreferencePropPreferences, ) - from .group_0239 import ( + from .group_0241 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0240 import CodeScanningAlertItems as CodeScanningAlertItems - from .group_0241 import CodeScanningAlert as CodeScanningAlert - from .group_0241 import CodeScanningAlertRule as CodeScanningAlertRule - from .group_0242 import CodeScanningAutofix as CodeScanningAutofix - from .group_0243 import CodeScanningAutofixCommits as CodeScanningAutofixCommits - from .group_0244 import ( + from .group_0242 import CodeScanningAlertItems as CodeScanningAlertItems + from .group_0243 import CodeScanningAlert as CodeScanningAlert + from .group_0243 import CodeScanningAlertRule as CodeScanningAlertRule + from .group_0244 import CodeScanningAutofix as CodeScanningAutofix + from .group_0245 import CodeScanningAutofixCommits as CodeScanningAutofixCommits + from .group_0246 import ( CodeScanningAutofixCommitsResponse as CodeScanningAutofixCommitsResponse, ) - from .group_0245 import CodeScanningAnalysis as CodeScanningAnalysis - from .group_0246 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion - from .group_0247 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase - from .group_0248 import ( + from .group_0247 import CodeScanningAnalysis as CodeScanningAnalysis + from .group_0248 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion + from .group_0249 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase + from .group_0250 import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) - from .group_0249 import ( + from .group_0251 import ( CodeScanningVariantAnalysisSkippedRepoGroup as CodeScanningVariantAnalysisSkippedRepoGroup, ) - from .group_0250 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis - from .group_0251 import ( + from .group_0252 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis + from .group_0253 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItems as CodeScanningVariantAnalysisPropScannedRepositoriesItems, ) - from .group_0252 import ( + from .group_0254 import ( CodeScanningVariantAnalysisPropSkippedRepositories as CodeScanningVariantAnalysisPropSkippedRepositories, ) - from .group_0252 import ( + from .group_0254 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) - from .group_0253 import ( + from .group_0255 import ( CodeScanningVariantAnalysisRepoTask as CodeScanningVariantAnalysisRepoTask, ) - from .group_0254 import CodeScanningDefaultSetup as CodeScanningDefaultSetup - from .group_0255 import ( + from .group_0256 import CodeScanningDefaultSetup as CodeScanningDefaultSetup + from .group_0257 import ( CodeScanningDefaultSetupUpdate as CodeScanningDefaultSetupUpdate, ) - from .group_0256 import ( + from .group_0258 import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) - from .group_0257 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt - from .group_0258 import CodeScanningSarifsStatus as CodeScanningSarifsStatus - from .group_0259 import ( + from .group_0259 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt + from .group_0260 import CodeScanningSarifsStatus as CodeScanningSarifsStatus + from .group_0261 import ( CodeSecurityConfigurationForRepository as CodeSecurityConfigurationForRepository, ) - from .group_0260 import CodeownersErrors as CodeownersErrors - from .group_0260 import ( + from .group_0262 import CodeownersErrors as CodeownersErrors + from .group_0262 import ( CodeownersErrorsPropErrorsItems as CodeownersErrorsPropErrorsItems, ) - from .group_0261 import ( + from .group_0263 import ( CodespacesPermissionsCheckForDevcontainer as CodespacesPermissionsCheckForDevcontainer, ) - from .group_0262 import RepositoryInvitation as RepositoryInvitation - from .group_0263 import Collaborator as Collaborator - from .group_0263 import CollaboratorPropPermissions as CollaboratorPropPermissions - from .group_0263 import ( + from .group_0264 import RepositoryInvitation as RepositoryInvitation + from .group_0265 import Collaborator as Collaborator + from .group_0265 import CollaboratorPropPermissions as CollaboratorPropPermissions + from .group_0265 import ( RepositoryCollaboratorPermission as RepositoryCollaboratorPermission, ) - from .group_0264 import CommitComment as CommitComment - from .group_0264 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent - from .group_0265 import BranchShort as BranchShort - from .group_0265 import BranchShortPropCommit as BranchShortPropCommit - from .group_0266 import Link as Link - from .group_0267 import AutoMerge as AutoMerge - from .group_0268 import PullRequestSimple as PullRequestSimple - from .group_0268 import ( + from .group_0266 import CommitComment as CommitComment + from .group_0266 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent + from .group_0267 import BranchShort as BranchShort + from .group_0267 import BranchShortPropCommit as BranchShortPropCommit + from .group_0268 import Link as Link + from .group_0269 import AutoMerge as AutoMerge + from .group_0270 import PullRequestSimple as PullRequestSimple + from .group_0270 import ( PullRequestSimplePropLabelsItems as PullRequestSimplePropLabelsItems, ) - from .group_0269 import PullRequestSimplePropBase as PullRequestSimplePropBase - from .group_0269 import PullRequestSimplePropHead as PullRequestSimplePropHead - from .group_0270 import PullRequestSimplePropLinks as PullRequestSimplePropLinks - from .group_0271 import CombinedCommitStatus as CombinedCommitStatus - from .group_0271 import SimpleCommitStatus as SimpleCommitStatus - from .group_0272 import Status as Status - from .group_0273 import CommunityHealthFile as CommunityHealthFile - from .group_0273 import CommunityProfile as CommunityProfile - from .group_0273 import CommunityProfilePropFiles as CommunityProfilePropFiles - from .group_0274 import CommitComparison as CommitComparison - from .group_0275 import ContentTree as ContentTree - from .group_0275 import ContentTreePropEntriesItems as ContentTreePropEntriesItems - from .group_0275 import ( + from .group_0271 import PullRequestSimplePropBase as PullRequestSimplePropBase + from .group_0271 import PullRequestSimplePropHead as PullRequestSimplePropHead + from .group_0272 import PullRequestSimplePropLinks as PullRequestSimplePropLinks + from .group_0273 import CombinedCommitStatus as CombinedCommitStatus + from .group_0273 import SimpleCommitStatus as SimpleCommitStatus + from .group_0274 import Status as Status + from .group_0275 import CommunityHealthFile as CommunityHealthFile + from .group_0275 import CommunityProfile as CommunityProfile + from .group_0275 import CommunityProfilePropFiles as CommunityProfilePropFiles + from .group_0276 import CommitComparison as CommitComparison + from .group_0277 import ContentTree as ContentTree + from .group_0277 import ContentTreePropEntriesItems as ContentTreePropEntriesItems + from .group_0277 import ( ContentTreePropEntriesItemsPropLinks as ContentTreePropEntriesItemsPropLinks, ) - from .group_0275 import ContentTreePropLinks as ContentTreePropLinks - from .group_0276 import ContentDirectoryItems as ContentDirectoryItems - from .group_0276 import ( + from .group_0277 import ContentTreePropLinks as ContentTreePropLinks + from .group_0278 import ContentDirectoryItems as ContentDirectoryItems + from .group_0278 import ( ContentDirectoryItemsPropLinks as ContentDirectoryItemsPropLinks, ) - from .group_0277 import ContentFile as ContentFile - from .group_0277 import ContentFilePropLinks as ContentFilePropLinks - from .group_0278 import ContentSymlink as ContentSymlink - from .group_0278 import ContentSymlinkPropLinks as ContentSymlinkPropLinks - from .group_0279 import ContentSubmodule as ContentSubmodule - from .group_0279 import ContentSubmodulePropLinks as ContentSubmodulePropLinks - from .group_0280 import FileCommit as FileCommit - from .group_0280 import FileCommitPropCommit as FileCommitPropCommit - from .group_0280 import ( + from .group_0279 import ContentFile as ContentFile + from .group_0279 import ContentFilePropLinks as ContentFilePropLinks + from .group_0280 import ContentSymlink as ContentSymlink + from .group_0280 import ContentSymlinkPropLinks as ContentSymlinkPropLinks + from .group_0281 import ContentSubmodule as ContentSubmodule + from .group_0281 import ContentSubmodulePropLinks as ContentSubmodulePropLinks + from .group_0282 import FileCommit as FileCommit + from .group_0282 import FileCommitPropCommit as FileCommitPropCommit + from .group_0282 import ( FileCommitPropCommitPropAuthor as FileCommitPropCommitPropAuthor, ) - from .group_0280 import ( + from .group_0282 import ( FileCommitPropCommitPropCommitter as FileCommitPropCommitPropCommitter, ) - from .group_0280 import ( + from .group_0282 import ( FileCommitPropCommitPropParentsItems as FileCommitPropCommitPropParentsItems, ) - from .group_0280 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree - from .group_0280 import ( + from .group_0282 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree + from .group_0282 import ( FileCommitPropCommitPropVerification as FileCommitPropCommitPropVerification, ) - from .group_0280 import FileCommitPropContent as FileCommitPropContent - from .group_0280 import ( + from .group_0282 import FileCommitPropContent as FileCommitPropContent + from .group_0282 import ( FileCommitPropContentPropLinks as FileCommitPropContentPropLinks, ) - from .group_0281 import RepositoryRuleViolationError as RepositoryRuleViolationError - from .group_0281 import ( + from .group_0283 import RepositoryRuleViolationError as RepositoryRuleViolationError + from .group_0283 import ( RepositoryRuleViolationErrorPropMetadata as RepositoryRuleViolationErrorPropMetadata, ) - from .group_0281 import ( + from .group_0283 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanning as RepositoryRuleViolationErrorPropMetadataPropSecretScanning, ) - from .group_0281 import ( + from .group_0283 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems, ) - from .group_0282 import Contributor as Contributor - from .group_0283 import DependabotAlert as DependabotAlert - from .group_0284 import ( + from .group_0284 import Contributor as Contributor + from .group_0285 import DependabotAlert as DependabotAlert + from .group_0286 import ( DependabotAlertPropDependency as DependabotAlertPropDependency, ) - from .group_0285 import DependencyGraphDiffItems as DependencyGraphDiffItems - from .group_0285 import ( + from .group_0287 import DependencyGraphDiffItems as DependencyGraphDiffItems + from .group_0287 import ( DependencyGraphDiffItemsPropVulnerabilitiesItems as DependencyGraphDiffItemsPropVulnerabilitiesItems, ) - from .group_0286 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom - from .group_0286 import ( + from .group_0288 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom + from .group_0288 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0286 import ( + from .group_0288 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfo as DependencyGraphSpdxSbomPropSbomPropCreationInfo, ) - from .group_0286 import ( + from .group_0288 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItems as DependencyGraphSpdxSbomPropSbomPropPackagesItems, ) - from .group_0286 import ( + from .group_0288 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0286 import ( + from .group_0288 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItems as DependencyGraphSpdxSbomPropSbomPropRelationshipsItems, ) - from .group_0287 import Metadata as Metadata - from .group_0288 import Dependency as Dependency - from .group_0289 import Manifest as Manifest - from .group_0289 import ManifestPropFile as ManifestPropFile - from .group_0289 import ManifestPropResolved as ManifestPropResolved - from .group_0290 import Snapshot as Snapshot - from .group_0290 import SnapshotPropDetector as SnapshotPropDetector - from .group_0290 import SnapshotPropJob as SnapshotPropJob - from .group_0290 import SnapshotPropManifests as SnapshotPropManifests - from .group_0291 import DeploymentStatus as DeploymentStatus - from .group_0292 import ( + from .group_0289 import Metadata as Metadata + from .group_0290 import Dependency as Dependency + from .group_0291 import Manifest as Manifest + from .group_0291 import ManifestPropFile as ManifestPropFile + from .group_0291 import ManifestPropResolved as ManifestPropResolved + from .group_0292 import Snapshot as Snapshot + from .group_0292 import SnapshotPropDetector as SnapshotPropDetector + from .group_0292 import SnapshotPropJob as SnapshotPropJob + from .group_0292 import SnapshotPropManifests as SnapshotPropManifests + from .group_0293 import DeploymentStatus as DeploymentStatus + from .group_0294 import ( DeploymentBranchPolicySettings as DeploymentBranchPolicySettings, ) - from .group_0293 import Environment as Environment - from .group_0293 import ( + from .group_0295 import Environment as Environment + from .group_0295 import ( EnvironmentPropProtectionRulesItemsAnyof0 as EnvironmentPropProtectionRulesItemsAnyof0, ) - from .group_0293 import ( + from .group_0295 import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) - from .group_0293 import ( + from .group_0295 import ( ReposOwnerRepoEnvironmentsGetResponse200 as ReposOwnerRepoEnvironmentsGetResponse200, ) - from .group_0294 import ( + from .group_0296 import ( EnvironmentPropProtectionRulesItemsAnyof1 as EnvironmentPropProtectionRulesItemsAnyof1, ) - from .group_0295 import ( + from .group_0297 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems, ) - from .group_0296 import ( + from .group_0298 import ( DeploymentBranchPolicyNamePatternWithType as DeploymentBranchPolicyNamePatternWithType, ) - from .group_0297 import ( + from .group_0299 import ( DeploymentBranchPolicyNamePattern as DeploymentBranchPolicyNamePattern, ) - from .group_0298 import CustomDeploymentRuleApp as CustomDeploymentRuleApp - from .group_0299 import DeploymentProtectionRule as DeploymentProtectionRule - from .group_0299 import ( + from .group_0300 import CustomDeploymentRuleApp as CustomDeploymentRuleApp + from .group_0301 import DeploymentProtectionRule as DeploymentProtectionRule + from .group_0301 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0300 import ShortBlob as ShortBlob - from .group_0301 import Blob as Blob - from .group_0302 import GitCommit as GitCommit - from .group_0302 import GitCommitPropAuthor as GitCommitPropAuthor - from .group_0302 import GitCommitPropCommitter as GitCommitPropCommitter - from .group_0302 import GitCommitPropParentsItems as GitCommitPropParentsItems - from .group_0302 import GitCommitPropTree as GitCommitPropTree - from .group_0302 import GitCommitPropVerification as GitCommitPropVerification - from .group_0303 import GitRef as GitRef - from .group_0303 import GitRefPropObject as GitRefPropObject - from .group_0304 import GitTag as GitTag - from .group_0304 import GitTagPropObject as GitTagPropObject - from .group_0304 import GitTagPropTagger as GitTagPropTagger - from .group_0305 import GitTree as GitTree - from .group_0305 import GitTreePropTreeItems as GitTreePropTreeItems - from .group_0306 import HookResponse as HookResponse - from .group_0307 import Hook as Hook - from .group_0308 import Import as Import - from .group_0308 import ( + from .group_0302 import ShortBlob as ShortBlob + from .group_0303 import Blob as Blob + from .group_0304 import GitCommit as GitCommit + from .group_0304 import GitCommitPropAuthor as GitCommitPropAuthor + from .group_0304 import GitCommitPropCommitter as GitCommitPropCommitter + from .group_0304 import GitCommitPropParentsItems as GitCommitPropParentsItems + from .group_0304 import GitCommitPropTree as GitCommitPropTree + from .group_0304 import GitCommitPropVerification as GitCommitPropVerification + from .group_0305 import GitRef as GitRef + from .group_0305 import GitRefPropObject as GitRefPropObject + from .group_0306 import GitTag as GitTag + from .group_0306 import GitTagPropObject as GitTagPropObject + from .group_0306 import GitTagPropTagger as GitTagPropTagger + from .group_0307 import GitTree as GitTree + from .group_0307 import GitTreePropTreeItems as GitTreePropTreeItems + from .group_0308 import HookResponse as HookResponse + from .group_0309 import Hook as Hook + from .group_0310 import Import as Import + from .group_0310 import ( ImportPropProjectChoicesItems as ImportPropProjectChoicesItems, ) - from .group_0309 import PorterAuthor as PorterAuthor - from .group_0310 import PorterLargeFile as PorterLargeFile - from .group_0311 import IssueEvent as IssueEvent - from .group_0311 import IssueEventDismissedReview as IssueEventDismissedReview - from .group_0311 import IssueEventLabel as IssueEventLabel - from .group_0311 import IssueEventMilestone as IssueEventMilestone - from .group_0311 import IssueEventProjectCard as IssueEventProjectCard - from .group_0311 import IssueEventRename as IssueEventRename - from .group_0312 import LabeledIssueEvent as LabeledIssueEvent - from .group_0312 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel - from .group_0313 import UnlabeledIssueEvent as UnlabeledIssueEvent - from .group_0313 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel - from .group_0314 import AssignedIssueEvent as AssignedIssueEvent - from .group_0315 import UnassignedIssueEvent as UnassignedIssueEvent - from .group_0316 import MilestonedIssueEvent as MilestonedIssueEvent - from .group_0316 import ( + from .group_0311 import PorterAuthor as PorterAuthor + from .group_0312 import PorterLargeFile as PorterLargeFile + from .group_0313 import IssueEvent as IssueEvent + from .group_0313 import IssueEventDismissedReview as IssueEventDismissedReview + from .group_0313 import IssueEventLabel as IssueEventLabel + from .group_0313 import IssueEventMilestone as IssueEventMilestone + from .group_0313 import IssueEventProjectCard as IssueEventProjectCard + from .group_0313 import IssueEventRename as IssueEventRename + from .group_0314 import LabeledIssueEvent as LabeledIssueEvent + from .group_0314 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel + from .group_0315 import UnlabeledIssueEvent as UnlabeledIssueEvent + from .group_0315 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel + from .group_0316 import AssignedIssueEvent as AssignedIssueEvent + from .group_0317 import UnassignedIssueEvent as UnassignedIssueEvent + from .group_0318 import MilestonedIssueEvent as MilestonedIssueEvent + from .group_0318 import ( MilestonedIssueEventPropMilestone as MilestonedIssueEventPropMilestone, ) - from .group_0317 import DemilestonedIssueEvent as DemilestonedIssueEvent - from .group_0317 import ( + from .group_0319 import DemilestonedIssueEvent as DemilestonedIssueEvent + from .group_0319 import ( DemilestonedIssueEventPropMilestone as DemilestonedIssueEventPropMilestone, ) - from .group_0318 import RenamedIssueEvent as RenamedIssueEvent - from .group_0318 import RenamedIssueEventPropRename as RenamedIssueEventPropRename - from .group_0319 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent - from .group_0320 import ( + from .group_0320 import RenamedIssueEvent as RenamedIssueEvent + from .group_0320 import RenamedIssueEventPropRename as RenamedIssueEventPropRename + from .group_0321 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent + from .group_0322 import ( ReviewRequestRemovedIssueEvent as ReviewRequestRemovedIssueEvent, ) - from .group_0321 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent - from .group_0321 import ( + from .group_0323 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent + from .group_0323 import ( ReviewDismissedIssueEventPropDismissedReview as ReviewDismissedIssueEventPropDismissedReview, ) - from .group_0322 import LockedIssueEvent as LockedIssueEvent - from .group_0323 import AddedToProjectIssueEvent as AddedToProjectIssueEvent - from .group_0323 import ( + from .group_0324 import LockedIssueEvent as LockedIssueEvent + from .group_0325 import AddedToProjectIssueEvent as AddedToProjectIssueEvent + from .group_0325 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0324 import ( + from .group_0326 import ( MovedColumnInProjectIssueEvent as MovedColumnInProjectIssueEvent, ) - from .group_0324 import ( + from .group_0326 import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) - from .group_0325 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent - from .group_0325 import ( + from .group_0327 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent + from .group_0327 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0326 import ( + from .group_0328 import ( ConvertedNoteToIssueIssueEvent as ConvertedNoteToIssueIssueEvent, ) - from .group_0326 import ( + from .group_0328 import ( ConvertedNoteToIssueIssueEventPropProjectCard as ConvertedNoteToIssueIssueEventPropProjectCard, ) - from .group_0327 import TimelineCommentEvent as TimelineCommentEvent - from .group_0328 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent - from .group_0329 import ( + from .group_0329 import TimelineCommentEvent as TimelineCommentEvent + from .group_0330 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent + from .group_0331 import ( TimelineCrossReferencedEventPropSource as TimelineCrossReferencedEventPropSource, ) - from .group_0330 import TimelineCommittedEvent as TimelineCommittedEvent - from .group_0330 import ( + from .group_0332 import TimelineCommittedEvent as TimelineCommittedEvent + from .group_0332 import ( TimelineCommittedEventPropAuthor as TimelineCommittedEventPropAuthor, ) - from .group_0330 import ( + from .group_0332 import ( TimelineCommittedEventPropCommitter as TimelineCommittedEventPropCommitter, ) - from .group_0330 import ( + from .group_0332 import ( TimelineCommittedEventPropParentsItems as TimelineCommittedEventPropParentsItems, ) - from .group_0330 import ( + from .group_0332 import ( TimelineCommittedEventPropTree as TimelineCommittedEventPropTree, ) - from .group_0330 import ( + from .group_0332 import ( TimelineCommittedEventPropVerification as TimelineCommittedEventPropVerification, ) - from .group_0331 import TimelineReviewedEvent as TimelineReviewedEvent - from .group_0331 import ( + from .group_0333 import TimelineReviewedEvent as TimelineReviewedEvent + from .group_0333 import ( TimelineReviewedEventPropLinks as TimelineReviewedEventPropLinks, ) - from .group_0331 import ( + from .group_0333 import ( TimelineReviewedEventPropLinksPropHtml as TimelineReviewedEventPropLinksPropHtml, ) - from .group_0331 import ( + from .group_0333 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0332 import PullRequestReviewComment as PullRequestReviewComment - from .group_0332 import ( + from .group_0334 import PullRequestReviewComment as PullRequestReviewComment + from .group_0334 import ( PullRequestReviewCommentPropLinks as PullRequestReviewCommentPropLinks, ) - from .group_0332 import ( + from .group_0334 import ( PullRequestReviewCommentPropLinksPropHtml as PullRequestReviewCommentPropLinksPropHtml, ) - from .group_0332 import ( + from .group_0334 import ( PullRequestReviewCommentPropLinksPropPullRequest as PullRequestReviewCommentPropLinksPropPullRequest, ) - from .group_0332 import ( + from .group_0334 import ( PullRequestReviewCommentPropLinksPropSelf as PullRequestReviewCommentPropLinksPropSelf, ) - from .group_0332 import TimelineLineCommentedEvent as TimelineLineCommentedEvent - from .group_0333 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent - from .group_0334 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent - from .group_0335 import StateChangeIssueEvent as StateChangeIssueEvent - from .group_0336 import DeployKey as DeployKey - from .group_0337 import Language as Language - from .group_0338 import LicenseContent as LicenseContent - from .group_0338 import LicenseContentPropLinks as LicenseContentPropLinks - from .group_0339 import MergedUpstream as MergedUpstream - from .group_0340 import Page as Page - from .group_0340 import PagesHttpsCertificate as PagesHttpsCertificate - from .group_0340 import PagesSourceHash as PagesSourceHash - from .group_0341 import PageBuild as PageBuild - from .group_0341 import PageBuildPropError as PageBuildPropError - from .group_0342 import PageBuildStatus as PageBuildStatus - from .group_0343 import PageDeployment as PageDeployment - from .group_0344 import PagesDeploymentStatus as PagesDeploymentStatus - from .group_0345 import PagesHealthCheck as PagesHealthCheck - from .group_0345 import ( + from .group_0334 import TimelineLineCommentedEvent as TimelineLineCommentedEvent + from .group_0335 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent + from .group_0336 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent + from .group_0337 import StateChangeIssueEvent as StateChangeIssueEvent + from .group_0338 import DeployKey as DeployKey + from .group_0339 import Language as Language + from .group_0340 import LicenseContent as LicenseContent + from .group_0340 import LicenseContentPropLinks as LicenseContentPropLinks + from .group_0341 import MergedUpstream as MergedUpstream + from .group_0342 import Page as Page + from .group_0342 import PagesHttpsCertificate as PagesHttpsCertificate + from .group_0342 import PagesSourceHash as PagesSourceHash + from .group_0343 import PageBuild as PageBuild + from .group_0343 import PageBuildPropError as PageBuildPropError + from .group_0344 import PageBuildStatus as PageBuildStatus + from .group_0345 import PageDeployment as PageDeployment + from .group_0346 import PagesDeploymentStatus as PagesDeploymentStatus + from .group_0347 import PagesHealthCheck as PagesHealthCheck + from .group_0347 import ( PagesHealthCheckPropAltDomain as PagesHealthCheckPropAltDomain, ) - from .group_0345 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain - from .group_0346 import PullRequest as PullRequest - from .group_0347 import PullRequestPropLabelsItems as PullRequestPropLabelsItems - from .group_0348 import PullRequestPropBase as PullRequestPropBase - from .group_0348 import PullRequestPropHead as PullRequestPropHead - from .group_0349 import PullRequestPropLinks as PullRequestPropLinks - from .group_0350 import PullRequestMergeResult as PullRequestMergeResult - from .group_0351 import PullRequestReviewRequest as PullRequestReviewRequest - from .group_0352 import PullRequestReview as PullRequestReview - from .group_0352 import PullRequestReviewPropLinks as PullRequestReviewPropLinks - from .group_0352 import ( + from .group_0347 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain + from .group_0348 import PullRequest as PullRequest + from .group_0349 import PullRequestPropLabelsItems as PullRequestPropLabelsItems + from .group_0350 import PullRequestPropBase as PullRequestPropBase + from .group_0350 import PullRequestPropHead as PullRequestPropHead + from .group_0351 import PullRequestPropLinks as PullRequestPropLinks + from .group_0352 import PullRequestMergeResult as PullRequestMergeResult + from .group_0353 import PullRequestReviewRequest as PullRequestReviewRequest + from .group_0354 import PullRequestReview as PullRequestReview + from .group_0354 import PullRequestReviewPropLinks as PullRequestReviewPropLinks + from .group_0354 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0352 import ( + from .group_0354 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0353 import ReviewComment as ReviewComment - from .group_0354 import ReviewCommentPropLinks as ReviewCommentPropLinks - from .group_0355 import ReleaseAsset as ReleaseAsset - from .group_0356 import Release as Release - from .group_0357 import ReleaseNotesContent as ReleaseNotesContent - from .group_0358 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo - from .group_0359 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 - from .group_0360 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 - from .group_0361 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 - from .group_0362 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 - from .group_0363 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 - from .group_0364 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 - from .group_0365 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 - from .group_0366 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 - from .group_0367 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 - from .group_0368 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 - from .group_0369 import ( + from .group_0355 import ReviewComment as ReviewComment + from .group_0356 import ReviewCommentPropLinks as ReviewCommentPropLinks + from .group_0357 import ReleaseAsset as ReleaseAsset + from .group_0358 import Release as Release + from .group_0359 import ReleaseNotesContent as ReleaseNotesContent + from .group_0360 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo + from .group_0361 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 + from .group_0362 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 + from .group_0363 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 + from .group_0364 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 + from .group_0365 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 + from .group_0366 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 + from .group_0367 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 + from .group_0368 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 + from .group_0369 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 + from .group_0370 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 + from .group_0371 import ( RepositoryRuleDetailedOneof10 as RepositoryRuleDetailedOneof10, ) - from .group_0370 import ( + from .group_0372 import ( RepositoryRuleDetailedOneof11 as RepositoryRuleDetailedOneof11, ) - from .group_0371 import ( + from .group_0373 import ( RepositoryRuleDetailedOneof12 as RepositoryRuleDetailedOneof12, ) - from .group_0372 import ( + from .group_0374 import ( RepositoryRuleDetailedOneof13 as RepositoryRuleDetailedOneof13, ) - from .group_0373 import ( + from .group_0375 import ( RepositoryRuleDetailedOneof14 as RepositoryRuleDetailedOneof14, ) - from .group_0374 import ( + from .group_0376 import ( RepositoryRuleDetailedOneof15 as RepositoryRuleDetailedOneof15, ) - from .group_0375 import ( + from .group_0377 import ( RepositoryRuleDetailedOneof16 as RepositoryRuleDetailedOneof16, ) - from .group_0376 import ( + from .group_0378 import ( RepositoryRuleDetailedOneof17 as RepositoryRuleDetailedOneof17, ) - from .group_0377 import ( + from .group_0379 import ( RepositoryRuleDetailedOneof18 as RepositoryRuleDetailedOneof18, ) - from .group_0378 import ( + from .group_0380 import ( RepositoryRuleDetailedOneof19 as RepositoryRuleDetailedOneof19, ) - from .group_0379 import ( + from .group_0381 import ( RepositoryRuleDetailedOneof20 as RepositoryRuleDetailedOneof20, ) - from .group_0380 import SecretScanningAlert as SecretScanningAlert - from .group_0381 import SecretScanningLocation as SecretScanningLocation - from .group_0382 import ( + from .group_0382 import SecretScanningAlert as SecretScanningAlert + from .group_0383 import SecretScanningLocation as SecretScanningLocation + from .group_0384 import ( SecretScanningPushProtectionBypass as SecretScanningPushProtectionBypass, ) - from .group_0383 import SecretScanningScan as SecretScanningScan - from .group_0383 import SecretScanningScanHistory as SecretScanningScanHistory - from .group_0383 import ( + from .group_0385 import SecretScanningScan as SecretScanningScan + from .group_0385 import SecretScanningScanHistory as SecretScanningScanHistory + from .group_0385 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItems as SecretScanningScanHistoryPropCustomPatternBackfillScansItems, ) - from .group_0384 import ( + from .group_0386 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1 as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1, ) - from .group_0385 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate - from .group_0385 import ( + from .group_0387 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate + from .group_0387 import ( RepositoryAdvisoryCreatePropCreditsItems as RepositoryAdvisoryCreatePropCreditsItems, ) - from .group_0385 import ( + from .group_0387 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItems as RepositoryAdvisoryCreatePropVulnerabilitiesItems, ) - from .group_0385 import ( + from .group_0387 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0386 import ( + from .group_0388 import ( PrivateVulnerabilityReportCreate as PrivateVulnerabilityReportCreate, ) - from .group_0386 import ( + from .group_0388 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0386 import ( + from .group_0388 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0387 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate - from .group_0387 import ( + from .group_0389 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate + from .group_0389 import ( RepositoryAdvisoryUpdatePropCreditsItems as RepositoryAdvisoryUpdatePropCreditsItems, ) - from .group_0387 import ( + from .group_0389 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0387 import ( + from .group_0389 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0388 import Stargazer as Stargazer - from .group_0389 import CommitActivity as CommitActivity - from .group_0390 import ContributorActivity as ContributorActivity - from .group_0390 import ( + from .group_0390 import Stargazer as Stargazer + from .group_0391 import CommitActivity as CommitActivity + from .group_0392 import ContributorActivity as ContributorActivity + from .group_0392 import ( ContributorActivityPropWeeksItems as ContributorActivityPropWeeksItems, ) - from .group_0391 import ParticipationStats as ParticipationStats - from .group_0392 import RepositorySubscription as RepositorySubscription - from .group_0393 import Tag as Tag - from .group_0393 import TagPropCommit as TagPropCommit - from .group_0394 import TagProtection as TagProtection - from .group_0395 import Topic as Topic - from .group_0396 import Traffic as Traffic - from .group_0397 import CloneTraffic as CloneTraffic - from .group_0398 import ContentTraffic as ContentTraffic - from .group_0399 import ReferrerTraffic as ReferrerTraffic - from .group_0400 import ViewTraffic as ViewTraffic - from .group_0401 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0401 import ( + from .group_0393 import ParticipationStats as ParticipationStats + from .group_0394 import RepositorySubscription as RepositorySubscription + from .group_0395 import Tag as Tag + from .group_0395 import TagPropCommit as TagPropCommit + from .group_0396 import TagProtection as TagProtection + from .group_0397 import Topic as Topic + from .group_0398 import Traffic as Traffic + from .group_0399 import CloneTraffic as CloneTraffic + from .group_0400 import ContentTraffic as ContentTraffic + from .group_0401 import ReferrerTraffic as ReferrerTraffic + from .group_0402 import ViewTraffic as ViewTraffic + from .group_0403 import SearchResultTextMatchesItems as SearchResultTextMatchesItems + from .group_0403 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0402 import CodeSearchResultItem as CodeSearchResultItem - from .group_0402 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0403 import CommitSearchResultItem as CommitSearchResultItem - from .group_0403 import ( + from .group_0404 import CodeSearchResultItem as CodeSearchResultItem + from .group_0404 import SearchCodeGetResponse200 as SearchCodeGetResponse200 + from .group_0405 import CommitSearchResultItem as CommitSearchResultItem + from .group_0405 import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from .group_0403 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 - from .group_0404 import ( + from .group_0405 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 + from .group_0406 import ( CommitSearchResultItemPropCommit as CommitSearchResultItemPropCommit, ) - from .group_0404 import ( + from .group_0406 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0404 import ( + from .group_0406 import ( CommitSearchResultItemPropCommitPropTree as CommitSearchResultItemPropCommitPropTree, ) - from .group_0405 import IssueSearchResultItem as IssueSearchResultItem - from .group_0405 import ( + from .group_0407 import IssueSearchResultItem as IssueSearchResultItem + from .group_0407 import ( IssueSearchResultItemPropLabelsItems as IssueSearchResultItemPropLabelsItems, ) - from .group_0405 import ( + from .group_0407 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0405 import ( - IssueSearchResultItemPropSubIssuesSummary as IssueSearchResultItemPropSubIssuesSummary, - ) - from .group_0405 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 - from .group_0406 import LabelSearchResultItem as LabelSearchResultItem - from .group_0406 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 - from .group_0407 import RepoSearchResultItem as RepoSearchResultItem - from .group_0407 import ( + from .group_0407 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 + from .group_0408 import LabelSearchResultItem as LabelSearchResultItem + from .group_0408 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 + from .group_0409 import RepoSearchResultItem as RepoSearchResultItem + from .group_0409 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0407 import ( + from .group_0409 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0408 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 - from .group_0408 import TopicSearchResultItem as TopicSearchResultItem - from .group_0408 import ( + from .group_0410 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 + from .group_0410 import TopicSearchResultItem as TopicSearchResultItem + from .group_0410 import ( TopicSearchResultItemPropAliasesItems as TopicSearchResultItemPropAliasesItems, ) - from .group_0408 import ( + from .group_0410 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelation as TopicSearchResultItemPropAliasesItemsPropTopicRelation, ) - from .group_0408 import ( + from .group_0410 import ( TopicSearchResultItemPropRelatedItems as TopicSearchResultItemPropRelatedItems, ) - from .group_0408 import ( + from .group_0410 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0409 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0409 import UserSearchResultItem as UserSearchResultItem - from .group_0410 import PrivateUser as PrivateUser - from .group_0410 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0411 import CodespacesUserPublicKey as CodespacesUserPublicKey - from .group_0412 import CodespaceExportDetails as CodespaceExportDetails - from .group_0413 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0413 import ( + from .group_0411 import SearchUsersGetResponse200 as SearchUsersGetResponse200 + from .group_0411 import UserSearchResultItem as UserSearchResultItem + from .group_0412 import PrivateUser as PrivateUser + from .group_0412 import PrivateUserPropPlan as PrivateUserPropPlan + from .group_0413 import CodespacesUserPublicKey as CodespacesUserPublicKey + from .group_0414 import CodespaceExportDetails as CodespaceExportDetails + from .group_0415 import CodespaceWithFullRepository as CodespaceWithFullRepository + from .group_0415 import ( CodespaceWithFullRepositoryPropGitStatus as CodespaceWithFullRepositoryPropGitStatus, ) - from .group_0413 import ( + from .group_0415 import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from .group_0414 import Email as Email - from .group_0415 import GpgKey as GpgKey - from .group_0415 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0415 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0415 import ( + from .group_0416 import Email as Email + from .group_0417 import GpgKey as GpgKey + from .group_0417 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems + from .group_0417 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems + from .group_0417 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0416 import Key as Key - from .group_0417 import MarketplaceAccount as MarketplaceAccount - from .group_0417 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0418 import SocialAccount as SocialAccount - from .group_0419 import SshSigningKey as SshSigningKey - from .group_0420 import StarredRepository as StarredRepository - from .group_0421 import Hovercard as Hovercard - from .group_0421 import HovercardPropContextsItems as HovercardPropContextsItems - from .group_0422 import KeySimple as KeySimple - from .group_0423 import BillingUsageReportUser as BillingUsageReportUser - from .group_0423 import ( + from .group_0418 import Key as Key + from .group_0419 import MarketplaceAccount as MarketplaceAccount + from .group_0419 import UserMarketplacePurchase as UserMarketplacePurchase + from .group_0420 import SocialAccount as SocialAccount + from .group_0421 import SshSigningKey as SshSigningKey + from .group_0422 import StarredRepository as StarredRepository + from .group_0423 import Hovercard as Hovercard + from .group_0423 import HovercardPropContextsItems as HovercardPropContextsItems + from .group_0424 import KeySimple as KeySimple + from .group_0425 import BillingUsageReportUser as BillingUsageReportUser + from .group_0425 import ( BillingUsageReportUserPropUsageItemsItems as BillingUsageReportUserPropUsageItemsItems, ) - from .group_0424 import EnterpriseWebhooks as EnterpriseWebhooks - from .group_0425 import SimpleInstallation as SimpleInstallation - from .group_0426 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0427 import RepositoryWebhooks as RepositoryWebhooks - from .group_0427 import ( + from .group_0426 import EnterpriseWebhooks as EnterpriseWebhooks + from .group_0427 import SimpleInstallation as SimpleInstallation + from .group_0428 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks + from .group_0429 import RepositoryWebhooks as RepositoryWebhooks + from .group_0429 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0427 import ( + from .group_0429 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0427 import ( + from .group_0429 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0427 import ( + from .group_0429 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0427 import ( + from .group_0429 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0428 import WebhooksRule as WebhooksRule - from .group_0429 import SimpleCheckSuite as SimpleCheckSuite - from .group_0430 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0430 import ( + from .group_0430 import WebhooksRule as WebhooksRule + from .group_0431 import SimpleCheckSuite as SimpleCheckSuite + from .group_0432 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0432 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0431 import WebhooksDeployKey as WebhooksDeployKey - from .group_0432 import WebhooksWorkflow as WebhooksWorkflow - from .group_0433 import WebhooksApprover as WebhooksApprover - from .group_0433 import WebhooksReviewersItems as WebhooksReviewersItems - from .group_0433 import ( + from .group_0433 import WebhooksDeployKey as WebhooksDeployKey + from .group_0434 import WebhooksWorkflow as WebhooksWorkflow + from .group_0435 import WebhooksApprover as WebhooksApprover + from .group_0435 import WebhooksReviewersItems as WebhooksReviewersItems + from .group_0435 import ( WebhooksReviewersItemsPropReviewer as WebhooksReviewersItemsPropReviewer, ) - from .group_0434 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun - from .group_0435 import WebhooksUser as WebhooksUser - from .group_0436 import WebhooksAnswer as WebhooksAnswer - from .group_0436 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions - from .group_0436 import WebhooksAnswerPropUser as WebhooksAnswerPropUser - from .group_0437 import Discussion as Discussion - from .group_0437 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0437 import DiscussionPropCategory as DiscussionPropCategory - from .group_0437 import DiscussionPropReactions as DiscussionPropReactions - from .group_0437 import DiscussionPropUser as DiscussionPropUser - from .group_0437 import Label as Label - from .group_0438 import WebhooksComment as WebhooksComment - from .group_0438 import WebhooksCommentPropReactions as WebhooksCommentPropReactions - from .group_0438 import WebhooksCommentPropUser as WebhooksCommentPropUser - from .group_0439 import WebhooksLabel as WebhooksLabel - from .group_0440 import WebhooksRepositoriesItems as WebhooksRepositoriesItems - from .group_0441 import ( + from .group_0436 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun + from .group_0437 import WebhooksUser as WebhooksUser + from .group_0438 import WebhooksAnswer as WebhooksAnswer + from .group_0438 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions + from .group_0438 import WebhooksAnswerPropUser as WebhooksAnswerPropUser + from .group_0439 import Discussion as Discussion + from .group_0439 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0439 import DiscussionPropCategory as DiscussionPropCategory + from .group_0439 import DiscussionPropReactions as DiscussionPropReactions + from .group_0439 import DiscussionPropUser as DiscussionPropUser + from .group_0439 import Label as Label + from .group_0440 import WebhooksComment as WebhooksComment + from .group_0440 import WebhooksCommentPropReactions as WebhooksCommentPropReactions + from .group_0440 import WebhooksCommentPropUser as WebhooksCommentPropUser + from .group_0441 import WebhooksLabel as WebhooksLabel + from .group_0442 import WebhooksRepositoriesItems as WebhooksRepositoriesItems + from .group_0443 import ( WebhooksRepositoriesAddedItems as WebhooksRepositoriesAddedItems, ) - from .group_0442 import WebhooksIssueComment as WebhooksIssueComment - from .group_0442 import ( + from .group_0444 import WebhooksIssueComment as WebhooksIssueComment + from .group_0444 import ( WebhooksIssueCommentPropReactions as WebhooksIssueCommentPropReactions, ) - from .group_0442 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser - from .group_0443 import WebhooksChanges as WebhooksChanges - from .group_0443 import WebhooksChangesPropBody as WebhooksChangesPropBody - from .group_0444 import WebhooksIssue as WebhooksIssue - from .group_0444 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee - from .group_0444 import ( + from .group_0444 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser + from .group_0445 import WebhooksChanges as WebhooksChanges + from .group_0445 import WebhooksChangesPropBody as WebhooksChangesPropBody + from .group_0446 import WebhooksIssue as WebhooksIssue + from .group_0446 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee + from .group_0446 import ( WebhooksIssuePropAssigneesItems as WebhooksIssuePropAssigneesItems, ) - from .group_0444 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems - from .group_0444 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone - from .group_0444 import ( + from .group_0446 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems + from .group_0446 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone + from .group_0446 import ( WebhooksIssuePropMilestonePropCreator as WebhooksIssuePropMilestonePropCreator, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropPerformedViaGithubApp as WebhooksIssuePropPerformedViaGithubApp, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropPerformedViaGithubAppPropOwner as WebhooksIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissions as WebhooksIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0444 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest - from .group_0444 import WebhooksIssuePropReactions as WebhooksIssuePropReactions - from .group_0444 import ( - WebhooksIssuePropSubIssuesSummary as WebhooksIssuePropSubIssuesSummary, - ) - from .group_0444 import WebhooksIssuePropUser as WebhooksIssuePropUser - from .group_0445 import WebhooksMilestone as WebhooksMilestone - from .group_0445 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator - from .group_0446 import WebhooksIssue2 as WebhooksIssue2 - from .group_0446 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee - from .group_0446 import ( + from .group_0446 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest + from .group_0446 import WebhooksIssuePropReactions as WebhooksIssuePropReactions + from .group_0446 import WebhooksIssuePropUser as WebhooksIssuePropUser + from .group_0447 import WebhooksMilestone as WebhooksMilestone + from .group_0447 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator + from .group_0448 import WebhooksIssue2 as WebhooksIssue2 + from .group_0448 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee + from .group_0448 import ( WebhooksIssue2PropAssigneesItems as WebhooksIssue2PropAssigneesItems, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropLabelsItems as WebhooksIssue2PropLabelsItems, ) - from .group_0446 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone - from .group_0446 import ( + from .group_0448 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone + from .group_0448 import ( WebhooksIssue2PropMilestonePropCreator as WebhooksIssue2PropMilestonePropCreator, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropPerformedViaGithubApp as WebhooksIssue2PropPerformedViaGithubApp, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwner as WebhooksIssue2PropPerformedViaGithubAppPropOwner, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissions as WebhooksIssue2PropPerformedViaGithubAppPropPermissions, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropPullRequest as WebhooksIssue2PropPullRequest, ) - from .group_0446 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions - from .group_0446 import ( - WebhooksIssue2PropSubIssuesSummary as WebhooksIssue2PropSubIssuesSummary, - ) - from .group_0446 import WebhooksIssue2PropUser as WebhooksIssue2PropUser - from .group_0447 import WebhooksUserMannequin as WebhooksUserMannequin - from .group_0448 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase - from .group_0448 import ( + from .group_0448 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions + from .group_0448 import WebhooksIssue2PropUser as WebhooksIssue2PropUser + from .group_0449 import WebhooksUserMannequin as WebhooksUserMannequin + from .group_0450 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase + from .group_0450 import ( WebhooksMarketplacePurchasePropAccount as WebhooksMarketplacePurchasePropAccount, ) - from .group_0448 import ( + from .group_0450 import ( WebhooksMarketplacePurchasePropPlan as WebhooksMarketplacePurchasePropPlan, ) - from .group_0449 import ( + from .group_0451 import ( WebhooksPreviousMarketplacePurchase as WebhooksPreviousMarketplacePurchase, ) - from .group_0449 import ( + from .group_0451 import ( WebhooksPreviousMarketplacePurchasePropAccount as WebhooksPreviousMarketplacePurchasePropAccount, ) - from .group_0449 import ( + from .group_0451 import ( WebhooksPreviousMarketplacePurchasePropPlan as WebhooksPreviousMarketplacePurchasePropPlan, ) - from .group_0450 import WebhooksTeam as WebhooksTeam - from .group_0450 import WebhooksTeamPropParent as WebhooksTeamPropParent - from .group_0451 import MergeGroup as MergeGroup - from .group_0452 import WebhooksMilestone3 as WebhooksMilestone3 - from .group_0452 import ( + from .group_0452 import WebhooksTeam as WebhooksTeam + from .group_0452 import WebhooksTeamPropParent as WebhooksTeamPropParent + from .group_0453 import MergeGroup as MergeGroup + from .group_0454 import WebhooksMilestone3 as WebhooksMilestone3 + from .group_0454 import ( WebhooksMilestone3PropCreator as WebhooksMilestone3PropCreator, ) - from .group_0453 import WebhooksMembership as WebhooksMembership - from .group_0453 import WebhooksMembershipPropUser as WebhooksMembershipPropUser - from .group_0454 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0454 import ( + from .group_0455 import WebhooksMembership as WebhooksMembership + from .group_0455 import WebhooksMembershipPropUser as WebhooksMembershipPropUser + from .group_0456 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0455 import WebhooksProjectCard as WebhooksProjectCard - from .group_0455 import ( + from .group_0457 import WebhooksProjectCard as WebhooksProjectCard + from .group_0457 import ( WebhooksProjectCardPropCreator as WebhooksProjectCardPropCreator, ) - from .group_0456 import WebhooksProject as WebhooksProject - from .group_0456 import WebhooksProjectPropCreator as WebhooksProjectPropCreator - from .group_0457 import WebhooksProjectColumn as WebhooksProjectColumn - from .group_0458 import ProjectsV2 as ProjectsV2 - from .group_0459 import WebhooksProjectChanges as WebhooksProjectChanges - from .group_0459 import ( + from .group_0458 import WebhooksProject as WebhooksProject + from .group_0458 import WebhooksProjectPropCreator as WebhooksProjectPropCreator + from .group_0459 import WebhooksProjectColumn as WebhooksProjectColumn + from .group_0460 import ProjectsV2 as ProjectsV2 + from .group_0461 import WebhooksProjectChanges as WebhooksProjectChanges + from .group_0461 import ( WebhooksProjectChangesPropArchivedAt as WebhooksProjectChangesPropArchivedAt, ) - from .group_0460 import ProjectsV2Item as ProjectsV2Item - from .group_0461 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate - from .group_0462 import PullRequestWebhook as PullRequestWebhook - from .group_0463 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 - from .group_0464 import WebhooksPullRequest5 as WebhooksPullRequest5 - from .group_0464 import ( + from .group_0462 import ProjectsV2Item as ProjectsV2Item + from .group_0463 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate + from .group_0464 import PullRequestWebhook as PullRequestWebhook + from .group_0465 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0466 import WebhooksPullRequest5 as WebhooksPullRequest5 + from .group_0466 import ( WebhooksPullRequest5PropAssignee as WebhooksPullRequest5PropAssignee, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropAssigneesItems as WebhooksPullRequest5PropAssigneesItems, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropAutoMerge as WebhooksPullRequest5PropAutoMerge, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropAutoMergePropEnabledBy as WebhooksPullRequest5PropAutoMergePropEnabledBy, ) - from .group_0464 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase - from .group_0464 import ( + from .group_0466 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase + from .group_0466 import ( WebhooksPullRequest5PropBasePropRepo as WebhooksPullRequest5PropBasePropRepo, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBasePropRepoPropLicense as WebhooksPullRequest5PropBasePropRepoPropLicense, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBasePropRepoPropOwner as WebhooksPullRequest5PropBasePropRepoPropOwner, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBasePropRepoPropPermissions as WebhooksPullRequest5PropBasePropRepoPropPermissions, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBasePropUser as WebhooksPullRequest5PropBasePropUser, ) - from .group_0464 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead - from .group_0464 import ( + from .group_0466 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead + from .group_0466 import ( WebhooksPullRequest5PropHeadPropRepo as WebhooksPullRequest5PropHeadPropRepo, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadPropRepoPropLicense as WebhooksPullRequest5PropHeadPropRepoPropLicense, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadPropRepoPropOwner as WebhooksPullRequest5PropHeadPropRepoPropOwner, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissions as WebhooksPullRequest5PropHeadPropRepoPropPermissions, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadPropUser as WebhooksPullRequest5PropHeadPropUser, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLabelsItems as WebhooksPullRequest5PropLabelsItems, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinks as WebhooksPullRequest5PropLinks, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropComments as WebhooksPullRequest5PropLinksPropComments, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropCommits as WebhooksPullRequest5PropLinksPropCommits, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropHtml as WebhooksPullRequest5PropLinksPropHtml, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropIssue as WebhooksPullRequest5PropLinksPropIssue, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropReviewComment as WebhooksPullRequest5PropLinksPropReviewComment, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropReviewComments as WebhooksPullRequest5PropLinksPropReviewComments, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropSelf as WebhooksPullRequest5PropLinksPropSelf, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropStatuses as WebhooksPullRequest5PropLinksPropStatuses, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropMergedBy as WebhooksPullRequest5PropMergedBy, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropMilestone as WebhooksPullRequest5PropMilestone, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropMilestonePropCreator as WebhooksPullRequest5PropMilestonePropCreator, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0 as WebhooksPullRequest5PropRequestedReviewersItemsOneof0, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1 as WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedTeamsItems as WebhooksPullRequest5PropRequestedTeamsItems, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParent as WebhooksPullRequest5PropRequestedTeamsItemsPropParent, ) - from .group_0464 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser - from .group_0465 import WebhooksReviewComment as WebhooksReviewComment - from .group_0465 import ( + from .group_0466 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser + from .group_0467 import WebhooksReviewComment as WebhooksReviewComment + from .group_0467 import ( WebhooksReviewCommentPropLinks as WebhooksReviewCommentPropLinks, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropLinksPropHtml as WebhooksReviewCommentPropLinksPropHtml, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropLinksPropPullRequest as WebhooksReviewCommentPropLinksPropPullRequest, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropLinksPropSelf as WebhooksReviewCommentPropLinksPropSelf, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropReactions as WebhooksReviewCommentPropReactions, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropUser as WebhooksReviewCommentPropUser, ) - from .group_0466 import WebhooksReview as WebhooksReview - from .group_0466 import WebhooksReviewPropLinks as WebhooksReviewPropLinks - from .group_0466 import ( + from .group_0468 import WebhooksReview as WebhooksReview + from .group_0468 import WebhooksReviewPropLinks as WebhooksReviewPropLinks + from .group_0468 import ( WebhooksReviewPropLinksPropHtml as WebhooksReviewPropLinksPropHtml, ) - from .group_0466 import ( + from .group_0468 import ( WebhooksReviewPropLinksPropPullRequest as WebhooksReviewPropLinksPropPullRequest, ) - from .group_0466 import WebhooksReviewPropUser as WebhooksReviewPropUser - from .group_0467 import WebhooksRelease as WebhooksRelease - from .group_0467 import ( + from .group_0468 import WebhooksReviewPropUser as WebhooksReviewPropUser + from .group_0469 import WebhooksRelease as WebhooksRelease + from .group_0469 import ( WebhooksReleasePropAssetsItems as WebhooksReleasePropAssetsItems, ) - from .group_0467 import ( + from .group_0469 import ( WebhooksReleasePropAssetsItemsPropUploader as WebhooksReleasePropAssetsItemsPropUploader, ) - from .group_0467 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor - from .group_0467 import WebhooksReleasePropReactions as WebhooksReleasePropReactions - from .group_0468 import WebhooksRelease1 as WebhooksRelease1 - from .group_0468 import ( + from .group_0469 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor + from .group_0469 import WebhooksReleasePropReactions as WebhooksReleasePropReactions + from .group_0470 import WebhooksRelease1 as WebhooksRelease1 + from .group_0470 import ( WebhooksRelease1PropAssetsItems as WebhooksRelease1PropAssetsItems, ) - from .group_0468 import ( + from .group_0470 import ( WebhooksRelease1PropAssetsItemsPropUploader as WebhooksRelease1PropAssetsItemsPropUploader, ) - from .group_0468 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor - from .group_0468 import ( + from .group_0470 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor + from .group_0470 import ( WebhooksRelease1PropReactions as WebhooksRelease1PropReactions, ) - from .group_0469 import WebhooksAlert as WebhooksAlert - from .group_0469 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser - from .group_0470 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0471 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory - from .group_0471 import ( + from .group_0471 import WebhooksAlert as WebhooksAlert + from .group_0471 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser + from .group_0472 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0473 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory + from .group_0473 import ( WebhooksSecurityAdvisoryPropCvss as WebhooksSecurityAdvisoryPropCvss, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropCwesItems as WebhooksSecurityAdvisoryPropCwesItems, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropIdentifiersItems as WebhooksSecurityAdvisoryPropIdentifiersItems, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropReferencesItems as WebhooksSecurityAdvisoryPropReferencesItems, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItems as WebhooksSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0472 import WebhooksSponsorship as WebhooksSponsorship - from .group_0472 import ( + from .group_0474 import WebhooksSponsorship as WebhooksSponsorship + from .group_0474 import ( WebhooksSponsorshipPropMaintainer as WebhooksSponsorshipPropMaintainer, ) - from .group_0472 import ( + from .group_0474 import ( WebhooksSponsorshipPropSponsor as WebhooksSponsorshipPropSponsor, ) - from .group_0472 import ( + from .group_0474 import ( WebhooksSponsorshipPropSponsorable as WebhooksSponsorshipPropSponsorable, ) - from .group_0472 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier - from .group_0473 import WebhooksChanges8 as WebhooksChanges8 - from .group_0473 import WebhooksChanges8PropTier as WebhooksChanges8PropTier - from .group_0473 import ( + from .group_0474 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier + from .group_0475 import WebhooksChanges8 as WebhooksChanges8 + from .group_0475 import WebhooksChanges8PropTier as WebhooksChanges8PropTier + from .group_0475 import ( WebhooksChanges8PropTierPropFrom as WebhooksChanges8PropTierPropFrom, ) - from .group_0474 import WebhooksTeam1 as WebhooksTeam1 - from .group_0474 import WebhooksTeam1PropParent as WebhooksTeam1PropParent - from .group_0475 import ( + from .group_0476 import WebhooksTeam1 as WebhooksTeam1 + from .group_0476 import WebhooksTeam1PropParent as WebhooksTeam1PropParent + from .group_0477 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0476 import ( + from .group_0478 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0477 import ( + from .group_0479 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0478 import ( + from .group_0480 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, ) - from .group_0480 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0481 import ( + from .group_0482 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0483 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0482 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0483 import ( + from .group_0484 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0485 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0484 import ( + from .group_0486 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0484 import ( + from .group_0486 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0485 import ( + from .group_0487 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0486 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0487 import ( + from .group_0488 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0489 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0488 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0488 import ( + from .group_0490 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0489 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0489 import ( + from .group_0491 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0490 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0490 import ( + from .group_0492 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0497 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0497 import ( + from .group_0499 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0499 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0497 import ( + from .group_0499 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0497 import ( + from .group_0499 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0498 import WebhookCreate as WebhookCreate - from .group_0499 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0500 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0500 import ( + from .group_0500 import WebhookCreate as WebhookCreate + from .group_0501 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0502 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0502 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0501 import ( + from .group_0503 import ( WebhookCustomPropertyPromotedToEnterprise as WebhookCustomPropertyPromotedToEnterprise, ) - from .group_0502 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0503 import ( + from .group_0504 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0505 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0504 import WebhookDelete as WebhookDelete - from .group_0505 import ( + from .group_0506 import WebhookDelete as WebhookDelete + from .group_0507 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0506 import ( + from .group_0508 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0507 import ( + from .group_0509 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0508 import ( + from .group_0510 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0509 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0510 import ( + from .group_0511 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0512 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0511 import ( + from .group_0513 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0512 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0513 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0514 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0514 import ( + from .group_0514 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0515 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0516 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0516 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0515 import ( + from .group_0517 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0520 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0521 import ( + from .group_0522 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0523 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0521 import ( + from .group_0523 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0521 import ( + from .group_0523 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0521 import ( + from .group_0523 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0522 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0523 import ( + from .group_0524 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0525 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0524 import ( + from .group_0526 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0525 import ( + from .group_0527 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0525 import ( + from .group_0527 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0525 import ( + from .group_0527 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0526 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0527 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0528 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0528 import ( + from .group_0528 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0529 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0530 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0530 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0528 import ( + from .group_0530 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0528 import ( + from .group_0530 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0529 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0530 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0531 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0532 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0533 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0534 import ( + from .group_0531 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0532 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0533 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0534 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0535 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0536 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0535 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0536 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0537 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0538 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0539 import WebhookFork as WebhookFork - from .group_0540 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0540 import ( + from .group_0537 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0538 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0539 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0540 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0541 import WebhookFork as WebhookFork + from .group_0542 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0542 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0540 import ( + from .group_0542 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0541 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0541 import ( + from .group_0543 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0543 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0541 import ( + from .group_0543 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0542 import ( + from .group_0544 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0543 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0543 import ( + from .group_0545 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0545 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0543 import ( + from .group_0545 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0544 import ( + from .group_0546 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0545 import WebhookGollum as WebhookGollum - from .group_0545 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0546 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0547 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0548 import ( + from .group_0547 import WebhookGollum as WebhookGollum + from .group_0547 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0548 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0549 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0550 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0549 import ( + from .group_0551 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0549 import ( + from .group_0551 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0550 import ( + from .group_0552 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0550 import ( + from .group_0552 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0551 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0552 import ( + from .group_0553 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0554 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0552 import ( + from .group_0554 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0552 import ( + from .group_0554 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0552 import ( + from .group_0554 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0552 import ( + from .group_0554 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0553 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0554 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0555 import ( + from .group_0555 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0556 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0557 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0555 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0555 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0556 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0556 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0556 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0556 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0557 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0557 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0557 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0557 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0558 import ( + from .group_0560 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0558 import ( + from .group_0560 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0558 import ( + from .group_0560 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0559 import ( + from .group_0561 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0560 import ( + from .group_0562 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0561 import ( + from .group_0563 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0561 import ( + from .group_0563 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0562 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0563 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary, - ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0565 import ( + from .group_0566 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0566 import ( + from .group_0567 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0567 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0568 import ( + from .group_0568 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0569 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0568 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0568 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0568 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0569 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0569 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0569 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0569 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0570 import ( + from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0570 import ( + from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0570 import ( + from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0571 import ( + from .group_0572 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0572 import ( + from .group_0573 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0573 import ( + from .group_0574 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0573 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, - ) from .group_0574 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) from .group_0575 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, @@ -2789,5836 +2775,5797 @@ WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) from .group_0587 import ( - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary, - ) - from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0589 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0590 import ( + from .group_0589 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0591 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0592 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0593 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0593 import ( + from .group_0590 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0591 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0592 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0593 import ( + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0593 import ( + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) - from .group_0593 import ( + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0593 import ( + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0595 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0596 import ( + from .group_0595 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0597 import ( + from .group_0596 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0597 import ( + from .group_0596 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0598 import ( + from .group_0597 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0599 import ( + from .group_0598 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) from .group_0599 import ( - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, - ) - from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0601 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0602 import ( + from .group_0601 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0603 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0604 import ( + from .group_0602 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0603 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0604 import ( - WebhookIssuesDeletedPropIssuePropSubIssuesSummary as WebhookIssuesDeletedPropIssuePropSubIssuesSummary, - ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0605 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0606 import ( + from .group_0604 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0605 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0606 import ( - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary, - ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) - from .group_0607 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0607 import ( + from .group_0606 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0606 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0607 import ( + from .group_0606 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0607 import ( + from .group_0606 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0608 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0608 import ( + from .group_0607 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0607 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0608 import ( - WebhookIssuesEditedPropIssuePropSubIssuesSummary as WebhookIssuesEditedPropIssuePropSubIssuesSummary, - ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0609 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0610 import ( + from .group_0608 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0609 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0610 import ( - WebhookIssuesLabeledPropIssuePropSubIssuesSummary as WebhookIssuesLabeledPropIssuePropSubIssuesSummary, - ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0611 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0612 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0612 import ( + from .group_0610 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0611 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0611 import ( WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from .group_0612 import ( - WebhookIssuesLockedPropIssuePropSubIssuesSummary as WebhookIssuesLockedPropIssuePropSubIssuesSummary, - ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) - from .group_0613 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0614 import ( + from .group_0612 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0613 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0614 import ( - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary as WebhookIssuesMilestonedPropIssuePropSubIssuesSummary, - ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) - from .group_0615 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0616 import ( + from .group_0614 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0615 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0617 import ( - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary, - ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0618 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0618 import ( + from .group_0617 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0618 import ( - WebhookIssuesOpenedPropIssuePropSubIssuesSummary as WebhookIssuesOpenedPropIssuePropSubIssuesSummary, - ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0619 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0620 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0621 import ( + from .group_0618 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0619 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0620 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from .group_0621 import ( - WebhookIssuesReopenedPropIssuePropSubIssuesSummary as WebhookIssuesReopenedPropIssuePropSubIssuesSummary, - ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0622 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0623 import ( + from .group_0621 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0622 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0624 import ( - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary, - ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0625 import WebhookIssuesTyped as WebhookIssuesTyped - from .group_0626 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0627 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0628 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0629 import ( + from .group_0624 import WebhookIssuesTyped as WebhookIssuesTyped + from .group_0625 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0626 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0627 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0628 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from .group_0629 import ( - WebhookIssuesUnlockedPropIssuePropSubIssuesSummary as WebhookIssuesUnlockedPropIssuePropSubIssuesSummary, - ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0630 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0631 import WebhookIssuesUntyped as WebhookIssuesUntyped - from .group_0632 import WebhookLabelCreated as WebhookLabelCreated - from .group_0633 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0634 import WebhookLabelEdited as WebhookLabelEdited - from .group_0634 import ( + from .group_0629 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0630 import WebhookIssuesUntyped as WebhookIssuesUntyped + from .group_0631 import WebhookLabelCreated as WebhookLabelCreated + from .group_0632 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0633 import WebhookLabelEdited as WebhookLabelEdited + from .group_0633 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0634 import ( + from .group_0633 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0634 import ( + from .group_0633 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0634 import ( + from .group_0633 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0635 import ( + from .group_0634 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0636 import ( + from .group_0635 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0636 import ( + from .group_0635 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0636 import ( + from .group_0635 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0636 import ( + from .group_0635 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0637 import ( + from .group_0636 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0637 import ( + from .group_0636 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0637 import ( + from .group_0636 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0637 import ( + from .group_0636 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0638 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0638 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0638 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, ) - from .group_0638 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0639 import ( + from .group_0638 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0640 import WebhookMemberAdded as WebhookMemberAdded - from .group_0640 import ( + from .group_0639 import WebhookMemberAdded as WebhookMemberAdded + from .group_0639 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0640 import ( + from .group_0639 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0640 import ( + from .group_0639 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0641 import WebhookMemberEdited as WebhookMemberEdited - from .group_0641 import ( + from .group_0640 import WebhookMemberEdited as WebhookMemberEdited + from .group_0640 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0641 import ( + from .group_0640 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0641 import ( + from .group_0640 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0642 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0643 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0643 import ( + from .group_0641 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0642 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0642 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0644 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0644 import ( + from .group_0643 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0643 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0645 import ( + from .group_0644 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0646 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0647 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0647 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0647 import ( + from .group_0645 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0646 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0646 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0646 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0648 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0649 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0650 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0651 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0651 import ( + from .group_0647 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0648 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0649 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0650 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0650 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0651 import ( + from .group_0650 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0651 import ( + from .group_0650 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0651 import ( + from .group_0650 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0652 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0653 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0654 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0655 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0656 import ( + from .group_0651 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0652 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0653 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0654 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0655 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0657 import ( + from .group_0656 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0657 import ( + from .group_0656 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0657 import ( + from .group_0656 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0658 import ( + from .group_0657 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0659 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0659 import ( + from .group_0658 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0658 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0659 import ( + from .group_0658 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0660 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0660 import ( + from .group_0659 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0659 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0660 import ( + from .group_0659 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0660 import ( + from .group_0659 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0661 import WebhookPackagePublished as WebhookPackagePublished - from .group_0662 import ( + from .group_0660 import WebhookPackagePublished as WebhookPackagePublished + from .group_0661 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0662 import ( + from .group_0661 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0662 import ( + from .group_0661 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0664 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0665 import ( + from .group_0663 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0664 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0665 import ( + from .group_0664 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0665 import ( + from .group_0664 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0667 import WebhookPageBuild as WebhookPageBuild - from .group_0667 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0667 import ( + from .group_0666 import WebhookPageBuild as WebhookPageBuild + from .group_0666 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0666 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0667 import ( + from .group_0666 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0668 import ( + from .group_0667 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0669 import ( + from .group_0668 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0670 import ( + from .group_0669 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0671 import ( + from .group_0670 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0672 import WebhookPing as WebhookPing - from .group_0673 import WebhookPingPropHook as WebhookPingPropHook - from .group_0673 import ( + from .group_0671 import WebhookPing as WebhookPing + from .group_0672 import WebhookPingPropHook as WebhookPingPropHook + from .group_0672 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0674 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0675 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0675 import ( + from .group_0673 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0674 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0674 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0675 import ( + from .group_0674 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0676 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0677 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0677 import ( + from .group_0675 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0676 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0676 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0677 import ( + from .group_0676 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0678 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0678 import ( + from .group_0677 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0677 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0678 import ( + from .group_0677 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0679 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0679 import ( + from .group_0678 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0678 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0679 import ( + from .group_0678 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0679 import ( + from .group_0678 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0679 import ( + from .group_0678 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0680 import ( + from .group_0679 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0680 import ( + from .group_0679 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0681 import ( + from .group_0680 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0681 import ( + from .group_0680 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0682 import WebhookProjectClosed as WebhookProjectClosed - from .group_0683 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0684 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0685 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0685 import ( + from .group_0681 import WebhookProjectClosed as WebhookProjectClosed + from .group_0682 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0683 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0684 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0684 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0685 import ( + from .group_0684 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0686 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0687 import WebhookProjectCreated as WebhookProjectCreated - from .group_0688 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0689 import WebhookProjectEdited as WebhookProjectEdited - from .group_0689 import ( + from .group_0685 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0686 import WebhookProjectCreated as WebhookProjectCreated + from .group_0687 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0688 import WebhookProjectEdited as WebhookProjectEdited + from .group_0688 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0689 import ( + from .group_0688 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0689 import ( + from .group_0688 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0690 import WebhookProjectReopened as WebhookProjectReopened - from .group_0691 import ( + from .group_0689 import WebhookProjectReopened as WebhookProjectReopened + from .group_0690 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0692 import ( + from .group_0691 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0693 import ( + from .group_0692 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0695 import ( + from .group_0694 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0696 import ( + from .group_0695 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0696 import ( + from .group_0695 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0696 import ( + from .group_0695 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0697 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0698 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0699 import ProjectsV2IterationSetting as ProjectsV2IterationSetting - from .group_0699 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption - from .group_0699 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0699 import ( + from .group_0696 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0697 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0698 import ProjectsV2IterationSetting as ProjectsV2IterationSetting + from .group_0698 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption + from .group_0698 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0698 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0699 import ( + from .group_0698 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0699 import ( + from .group_0698 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0699 import ( + from .group_0698 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0700 import ( + from .group_0699 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0700 import ( + from .group_0699 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0700 import ( + from .group_0699 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0701 import ( + from .group_0700 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0702 import ( + from .group_0701 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0703 import ( + from .group_0702 import ( WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, ) - from .group_0704 import ( + from .group_0703 import ( WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, ) - from .group_0706 import WebhookPublic as WebhookPublic - from .group_0707 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0707 import ( + from .group_0705 import WebhookPublic as WebhookPublic + from .group_0706 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0710 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0711 import ( + from .group_0709 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0710 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0712 import ( + from .group_0711 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0713 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0713 import ( + from .group_0712 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0714 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0714 import ( + from .group_0713 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0713 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0715 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0715 import ( + from .group_0714 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0716 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0716 import ( + from .group_0715 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0717 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0717 import ( + from .group_0716 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0716 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0718 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0719 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0720 import ( + from .group_0717 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0718 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0719 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0721 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0722 import ( + from .group_0720 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0721 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0735 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0735 import ( + from .group_0734 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0736 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0736 import ( + from .group_0735 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0737 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0737 import ( + from .group_0736 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0738 import WebhookPush as WebhookPush - from .group_0738 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0738 import ( + from .group_0737 import WebhookPush as WebhookPush + from .group_0737 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0737 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0738 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0738 import ( + from .group_0737 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0737 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0738 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0738 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0738 import ( + from .group_0737 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0737 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0737 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0739 import ( + from .group_0738 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0740 import ( + from .group_0739 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0740 import ( + from .group_0739 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0740 import ( + from .group_0739 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0742 import ( + from .group_0741 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0743 import ( + from .group_0742 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0743 import ( + from .group_0742 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0743 import ( + from .group_0742 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0745 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0746 import WebhookReleaseDeleted as WebhookReleaseDeleted - from .group_0747 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0747 import ( + from .group_0744 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0745 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0746 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0746 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0747 import ( + from .group_0746 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0747 import ( + from .group_0746 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0747 import ( + from .group_0746 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0747 import ( + from .group_0746 import ( WebhookReleaseEditedPropChangesPropTagName as WebhookReleaseEditedPropChangesPropTagName, ) - from .group_0748 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0748 import ( + from .group_0747 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0747 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0748 import ( + from .group_0747 import ( WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, ) - from .group_0748 import ( + from .group_0747 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0748 import ( + from .group_0747 import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0748 import ( + from .group_0747 import ( WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, ) - from .group_0749 import WebhookReleasePublished as WebhookReleasePublished - from .group_0750 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0751 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0752 import ( + from .group_0748 import WebhookReleasePublished as WebhookReleasePublished + from .group_0749 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0750 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0751 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0753 import ( + from .group_0752 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0754 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0755 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0756 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0757 import ( + from .group_0753 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0754 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0755 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0756 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0757 import ( + from .group_0756 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0758 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0758 import ( + from .group_0757 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0757 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0758 import ( + from .group_0757 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0758 import ( + from .group_0757 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0758 import ( + from .group_0757 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0758 import ( + from .group_0757 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0759 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0760 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0761 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0762 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0762 import ( + from .group_0758 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0759 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0760 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0761 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0761 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0762 import ( + from .group_0761 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0762 import ( + from .group_0761 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0763 import ( + from .group_0762 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0764 import ( + from .group_0763 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0765 import ( + from .group_0764 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0766 import ( + from .group_0765 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0766 import ( + from .group_0765 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0766 import ( + from .group_0765 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0767 import ( + from .group_0766 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0769 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0771 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0771 import ( + from .group_0770 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0770 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0772 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0773 import ( + from .group_0771 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0772 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0774 import ( + from .group_0773 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0774 import ( + from .group_0773 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0774 import ( + from .group_0773 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, ) - from .group_0775 import ( + from .group_0774 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0776 import ( + from .group_0775 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0776 import ( + from .group_0775 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0776 import ( + from .group_0775 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, ) - from .group_0777 import ( + from .group_0776 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0778 import ( + from .group_0777 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0779 import ( + from .group_0778 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0780 import ( + from .group_0779 import ( WebhookSecretScanningAlertPubliclyLeaked as WebhookSecretScanningAlertPubliclyLeaked, ) - from .group_0781 import ( + from .group_0780 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0782 import ( + from .group_0781 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0783 import ( + from .group_0782 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0784 import ( + from .group_0783 import ( WebhookSecretScanningScanCompleted as WebhookSecretScanningScanCompleted, ) - from .group_0785 import ( + from .group_0784 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0786 import ( + from .group_0785 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0787 import ( + from .group_0786 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0789 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0790 import ( + from .group_0788 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0789 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0791 import ( + from .group_0790 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0792 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0793 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0794 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0794 import ( + from .group_0791 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0792 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0793 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0793 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0794 import ( + from .group_0793 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0795 import ( + from .group_0794 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0796 import ( + from .group_0795 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0797 import ( + from .group_0796 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0798 import WebhookStarCreated as WebhookStarCreated - from .group_0799 import WebhookStarDeleted as WebhookStarDeleted - from .group_0800 import WebhookStatus as WebhookStatus - from .group_0800 import ( + from .group_0797 import WebhookStarCreated as WebhookStarCreated + from .group_0798 import WebhookStarDeleted as WebhookStarDeleted + from .group_0799 import WebhookStatus as WebhookStatus + from .group_0799 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0800 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0800 import ( + from .group_0799 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0799 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0801 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0802 import ( + from .group_0801 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0803 import ( + from .group_0802 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0804 import ( + from .group_0803 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0805 import ( + from .group_0804 import ( WebhookSubIssuesParentIssueAdded as WebhookSubIssuesParentIssueAdded, ) - from .group_0806 import ( + from .group_0805 import ( WebhookSubIssuesParentIssueRemoved as WebhookSubIssuesParentIssueRemoved, ) - from .group_0807 import ( + from .group_0806 import ( WebhookSubIssuesSubIssueAdded as WebhookSubIssuesSubIssueAdded, ) - from .group_0808 import ( + from .group_0807 import ( WebhookSubIssuesSubIssueRemoved as WebhookSubIssuesSubIssueRemoved, ) - from .group_0809 import WebhookTeamAdd as WebhookTeamAdd - from .group_0810 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0810 import ( + from .group_0808 import WebhookTeamAdd as WebhookTeamAdd + from .group_0809 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0810 import ( + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0810 import ( + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0810 import ( + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0810 import ( + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0811 import WebhookTeamCreated as WebhookTeamCreated - from .group_0811 import ( + from .group_0810 import WebhookTeamCreated as WebhookTeamCreated + from .group_0810 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0811 import ( + from .group_0810 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0811 import ( + from .group_0810 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0811 import ( + from .group_0810 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0811 import ( + from .group_0810 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0812 import WebhookTeamDeleted as WebhookTeamDeleted - from .group_0812 import ( + from .group_0811 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0811 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0812 import ( + from .group_0811 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0812 import ( + from .group_0811 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0812 import ( + from .group_0811 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0812 import ( + from .group_0811 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0813 import WebhookTeamEdited as WebhookTeamEdited - from .group_0813 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0813 import ( + from .group_0812 import WebhookTeamEdited as WebhookTeamEdited + from .group_0812 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0812 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0815 import WebhookWatchStarted as WebhookWatchStarted - from .group_0816 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0816 import ( + from .group_0814 import WebhookWatchStarted as WebhookWatchStarted + from .group_0815 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0815 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0817 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0817 import ( + from .group_0816 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0816 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0817 import ( + from .group_0816 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0818 import ( + from .group_0817 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0818 import ( + from .group_0817 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0819 import ( + from .group_0818 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0819 import ( + from .group_0818 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0820 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0820 import ( + from .group_0819 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0819 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0820 import ( + from .group_0819 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0821 import ( + from .group_0820 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0821 import ( + from .group_0820 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0822 import ( + from .group_0821 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0822 import ( + from .group_0821 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0823 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_0823 import ( + from .group_0822 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_0822 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0823 import ( + from .group_0822 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0824 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0824 import ( + from .group_0823 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0823 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0824 import ( + from .group_0823 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0825 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0825 import ( + from .group_0824 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, ) - from .group_0826 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0826 import ( + from .group_0825 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0827 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0827 import ( + from .group_0826 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0828 import ( + from .group_0827 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0829 import ( + from .group_0828 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0830 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0831 import ( + from .group_0829 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0830 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0832 import ( + from .group_0831 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0833 import ( + from .group_0832 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0834 import ( + from .group_0833 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0835 import ( + from .group_0834 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0836 import ( + from .group_0835 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0837 import ( + from .group_0836 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0838 import CredentialsRevokePostBody as CredentialsRevokePostBody - from .group_0839 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0840 import ( + from .group_0837 import CredentialsRevokePostBody as CredentialsRevokePostBody + from .group_0838 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0839 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsPostBody, ) - from .group_0840 import ( + from .group_0839 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0841 import ( + from .group_0840 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0841 import ( + from .group_0840 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0842 import ( + from .group_0841 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0843 import ( + from .group_0842 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0844 import ( + from .group_0843 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0845 import ( + from .group_0844 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503 as EnterprisesEnterpriseSecretScanningAlertsGetResponse503, ) - from .group_0846 import GistsPostBody as GistsPostBody - from .group_0846 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_0847 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0847 import ( + from .group_0845 import GistsPostBody as GistsPostBody + from .group_0845 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_0846 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0846 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0848 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0848 import ( + from .group_0847 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0847 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0849 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0850 import ( + from .group_0848 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0849 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0851 import ( + from .group_0850 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0852 import ( + from .group_0851 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0853 import MarkdownPostBody as MarkdownPostBody - from .group_0854 import NotificationsPutBody as NotificationsPutBody - from .group_0855 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0856 import ( + from .group_0852 import MarkdownPostBody as MarkdownPostBody + from .group_0853 import NotificationsPutBody as NotificationsPutBody + from .group_0854 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0855 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0857 import ( + from .group_0856 import ( OrganizationsOrgDependabotRepositoryAccessPatchBody as OrganizationsOrgDependabotRepositoryAccessPatchBody, ) - from .group_0858 import ( + from .group_0857 import ( OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, ) - from .group_0859 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_0860 import ( + from .group_0858 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_0859 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0860 import ( + from .group_0859 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0861 import ( + from .group_0860 import ( OrgsOrgActionsHostedRunnersGetResponse200 as OrgsOrgActionsHostedRunnersGetResponse200, ) - from .group_0862 import ( + from .group_0861 import ( OrgsOrgActionsHostedRunnersPostBody as OrgsOrgActionsHostedRunnersPostBody, ) - from .group_0862 import ( + from .group_0861 import ( OrgsOrgActionsHostedRunnersPostBodyPropImage as OrgsOrgActionsHostedRunnersPostBodyPropImage, ) - from .group_0863 import ( + from .group_0862 import ( OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, ) - from .group_0864 import ( + from .group_0863 import ( OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, ) - from .group_0865 import ( + from .group_0864 import ( OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, ) - from .group_0866 import ( + from .group_0865 import ( OrgsOrgActionsHostedRunnersPlatformsGetResponse200 as OrgsOrgActionsHostedRunnersPlatformsGetResponse200, ) - from .group_0867 import ( + from .group_0866 import ( OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, ) - from .group_0868 import ( + from .group_0867 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0869 import ( + from .group_0868 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0870 import ( + from .group_0869 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0871 import ( + from .group_0870 import ( OrgsOrgActionsRunnerGroupsGetResponse200 as OrgsOrgActionsRunnerGroupsGetResponse200, ) - from .group_0871 import RunnerGroupsOrg as RunnerGroupsOrg - from .group_0872 import ( + from .group_0870 import RunnerGroupsOrg as RunnerGroupsOrg + from .group_0871 import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) - from .group_0873 import ( + from .group_0872 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0874 import ( + from .group_0873 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, ) - from .group_0875 import ( + from .group_0874 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, ) - from .group_0876 import ( + from .group_0875 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, ) - from .group_0877 import ( + from .group_0876 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0878 import ( + from .group_0877 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0879 import ( + from .group_0878 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0880 import ( + from .group_0879 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0881 import ( + from .group_0880 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201 as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_0882 import ( + from .group_0881 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0883 import ( + from .group_0882 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0884 import ( + from .group_0883 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0885 import ( + from .group_0884 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0886 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0886 import ( + from .group_0885 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0885 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0887 import ( + from .group_0886 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0888 import ( + from .group_0887 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0889 import ( + from .group_0888 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0890 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0890 import ( + from .group_0889 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_0889 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0891 import ( + from .group_0890 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0892 import ( + from .group_0891 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0893 import ( + from .group_0892 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0894 import ( + from .group_0893 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_0895 import ( + from .group_0894 import ( OrgsOrgAttestationsBulkListPostBody as OrgsOrgAttestationsBulkListPostBody, ) - from .group_0896 import ( + from .group_0895 import ( OrgsOrgAttestationsBulkListPostResponse200 as OrgsOrgAttestationsBulkListPostResponse200, ) - from .group_0896 import ( + from .group_0895 import ( OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests, ) - from .group_0896 import ( + from .group_0895 import ( OrgsOrgAttestationsBulkListPostResponse200PropPageInfo as OrgsOrgAttestationsBulkListPostResponse200PropPageInfo, ) - from .group_0897 import ( + from .group_0896 import ( OrgsOrgAttestationsDeleteRequestPostBodyOneof0 as OrgsOrgAttestationsDeleteRequestPostBodyOneof0, ) - from .group_0898 import ( + from .group_0897 import ( OrgsOrgAttestationsDeleteRequestPostBodyOneof1 as OrgsOrgAttestationsDeleteRequestPostBodyOneof1, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_0900 import OrgsOrgCampaignsPostBody as OrgsOrgCampaignsPostBody - from .group_0900 import ( + from .group_0899 import OrgsOrgCampaignsPostBody as OrgsOrgCampaignsPostBody + from .group_0899 import ( OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems as OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems, ) - from .group_0901 import ( + from .group_0900 import ( OrgsOrgCampaignsCampaignNumberPatchBody as OrgsOrgCampaignsCampaignNumberPatchBody, ) - from .group_0902 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, ) - from .group_0902 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0902 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0902 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0903 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, ) - from .group_0904 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0904 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0904 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0904 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0905 import ( + from .group_0904 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0906 import ( + from .group_0905 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0907 import ( + from .group_0906 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0908 import ( + from .group_0907 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0909 import ( + from .group_0908 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0910 import ( + from .group_0909 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0911 import ( + from .group_0910 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0912 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_0912 import ( + from .group_0911 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_0911 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0913 import ( + from .group_0912 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0914 import ( + from .group_0913 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0915 import ( + from .group_0914 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0916 import ( + from .group_0915 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0917 import ( + from .group_0916 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0918 import ( + from .group_0917 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0919 import ( + from .group_0918 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0920 import ( + from .group_0919 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0921 import ( + from .group_0920 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0922 import ( + from .group_0921 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0923 import ( + from .group_0922 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0924 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_0924 import ( + from .group_0923 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_0923 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_0925 import ( + from .group_0924 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0926 import ( + from .group_0925 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0927 import ( + from .group_0926 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_0928 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0928 import ( + from .group_0927 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0927 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_0929 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_0929 import ( + from .group_0928 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_0928 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_0930 import ( + from .group_0929 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0931 import ( + from .group_0930 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0932 import ( + from .group_0931 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0933 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0934 import ( + from .group_0932 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0933 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0935 import ( + from .group_0934 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0936 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody - from .group_0937 import ( + from .group_0935 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0936 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0938 import ( + from .group_0937 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_0939 import ( + from .group_0938 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_0940 import ( + from .group_0939 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0941 import ( + from .group_0940 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0942 import ( + from .group_0941 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0943 import ( + from .group_0942 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0944 import ( + from .group_0943 import ( OrgPrivateRegistryConfiguration as OrgPrivateRegistryConfiguration, ) - from .group_0944 import ( + from .group_0943 import ( OrgsOrgPrivateRegistriesGetResponse200 as OrgsOrgPrivateRegistriesGetResponse200, ) - from .group_0945 import ( + from .group_0944 import ( OrgsOrgPrivateRegistriesPostBody as OrgsOrgPrivateRegistriesPostBody, ) - from .group_0946 import ( + from .group_0945 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200 as OrgsOrgPrivateRegistriesPublicKeyGetResponse200, ) - from .group_0947 import ( + from .group_0946 import ( OrgsOrgPrivateRegistriesSecretNamePatchBody as OrgsOrgPrivateRegistriesSecretNamePatchBody, ) - from .group_0948 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0949 import ( + from .group_0947 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0948 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0950 import ( + from .group_0949 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0951 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0951 import ( + from .group_0950 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0950 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0952 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0953 import ( + from .group_0951 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_0952 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0954 import NetworkConfiguration as NetworkConfiguration - from .group_0954 import ( + from .group_0953 import NetworkConfiguration as NetworkConfiguration + from .group_0953 import ( OrgsOrgSettingsNetworkConfigurationsGetResponse200 as OrgsOrgSettingsNetworkConfigurationsGetResponse200, ) - from .group_0955 import ( + from .group_0954 import ( OrgsOrgSettingsNetworkConfigurationsPostBody as OrgsOrgSettingsNetworkConfigurationsPostBody, ) - from .group_0956 import ( + from .group_0955 import ( OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, ) - from .group_0957 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_0958 import ( + from .group_0956 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_0957 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_0959 import ( + from .group_0958 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0960 import ( + from .group_0959 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_0961 import ( + from .group_0960 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_0962 import ( + from .group_0961 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0963 import ( + from .group_0962 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0964 import ( + from .group_0963 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0965 import ( + from .group_0964 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0966 import ( + from .group_0965 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0967 import ( + from .group_0966 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_0968 import ( + from .group_0967 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_0969 import ( + from .group_0968 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_0970 import ( + from .group_0969 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0971 import ( + from .group_0970 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_0972 import ( + from .group_0971 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_0973 import ( + from .group_0972 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0974 import ( + from .group_0973 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0974 import ( + from .group_0973 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0975 import ( + from .group_0974 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0975 import ( + from .group_0974 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_0976 import ( + from .group_0975 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0977 import ( + from .group_0976 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_0978 import ( + from .group_0977 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_0979 import ( + from .group_0978 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_0979 import ( + from .group_0978 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_0980 import ( + from .group_0979 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_0981 import ( + from .group_0980 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_0982 import ( + from .group_0981 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_0983 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_0984 import ( + from .group_0982 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_0983 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_0985 import ( + from .group_0984 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_0986 import ( + from .group_0985 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_0987 import ( + from .group_0986 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_0988 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody - from .group_0988 import ( + from .group_0987 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0989 import ( + from .group_0988 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_0990 import ( + from .group_0989 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_0991 import ( + from .group_0990 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_0992 import ( + from .group_0991 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_0993 import ( + from .group_0992 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_0994 import ( + from .group_0993 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_0995 import ( + from .group_0994 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_0996 import ( + from .group_0995 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_0997 import ( + from .group_0996 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0998 import ( + from .group_0997 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0999 import ( + from .group_0998 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_1000 import ( + from .group_0999 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_1001 import ( + from .group_1000 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_1002 import ( + from .group_1001 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_1003 import ( + from .group_1002 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_1004 import ( + from .group_1003 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_1005 import ( + from .group_1004 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_1006 import ( + from .group_1005 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_1007 import ( + from .group_1006 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_1008 import ( + from .group_1007 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_1009 import ( + from .group_1008 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_1010 import ( + from .group_1009 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_1011 import ( + from .group_1010 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_1011 import Workflow as Workflow - from .group_1012 import ( + from .group_1010 import Workflow as Workflow + from .group_1011 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_1012 import ( + from .group_1011 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_1013 import ( + from .group_1012 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_1014 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, ) - from .group_1014 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, ) - from .group_1014 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, ) - from .group_1014 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, ) - from .group_1015 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_1017 import ( + from .group_1016 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_1019 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_1019 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_1019 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_1020 import ( + from .group_1019 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_1020 import ( + from .group_1019 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_1021 import ( + from .group_1020 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_1022 import ( + from .group_1021 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_1023 import ( + from .group_1022 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_1024 import ( + from .group_1023 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody, ) - from .group_1025 import ( + from .group_1024 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody, ) - from .group_1026 import ( + from .group_1025 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody, ) - from .group_1027 import ( + from .group_1026 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_1028 import ( + from .group_1027 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_1029 import ( + from .group_1028 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_1030 import ( + from .group_1029 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody, ) - from .group_1031 import ( + from .group_1030 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody, ) - from .group_1032 import ( + from .group_1031 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody, ) - from .group_1033 import ( + from .group_1032 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_1034 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_1034 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_1034 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_1034 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_1035 import ( + from .group_1034 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_1036 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_1037 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_1037 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_1037 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) - from .group_1037 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_1038 import ( + from .group_1037 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_1039 import ( + from .group_1038 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_1040 import ( + from .group_1039 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_1041 import ( + from .group_1040 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_1041 import ( + from .group_1040 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_1042 import ( + from .group_1041 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) - from .group_1043 import ( + from .group_1042 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_1044 import ( + from .group_1043 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_1045 import ( + from .group_1044 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_1046 import ( + from .group_1045 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_1047 import ( + from .group_1046 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_1048 import ( + from .group_1047 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1049 import ( + from .group_1048 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_1050 import ( + from .group_1049 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_1050 import ( + from .group_1049 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_1051 import ( + from .group_1050 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_1052 import ( + from .group_1051 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1052 import ( + from .group_1051 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_1053 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1053 import ( + from .group_1052 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1052 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_1054 import ( + from .group_1053 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_1055 import ( + from .group_1054 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_1056 import ( + from .group_1055 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_1057 import ( + from .group_1056 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_1058 import ( + from .group_1057 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_1059 import ( + from .group_1058 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_1060 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_1060 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_1060 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_1061 import ( + from .group_1060 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1061 import ( + from .group_1060 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_1061 import ( + from .group_1060 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_1062 import ( + from .group_1061 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_1063 import DependabotSecret as DependabotSecret - from .group_1063 import ( + from .group_1062 import DependabotSecret as DependabotSecret + from .group_1062 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_1064 import ( + from .group_1063 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_1065 import ( + from .group_1064 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_1066 import ( + from .group_1065 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_1066 import ( + from .group_1065 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1067 import ( + from .group_1066 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1068 import ( + from .group_1067 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1069 import ( + from .group_1068 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1069 import ( + from .group_1068 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1070 import ( + from .group_1069 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1070 import ( + from .group_1069 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1071 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1071 import ( + from .group_1070 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1070 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_1072 import ( + from .group_1071 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_1073 import ( + from .group_1072 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_1074 import ( + from .group_1073 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) - from .group_1075 import ( + from .group_1074 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1076 import ( + from .group_1075 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) - from .group_1077 import ( + from .group_1076 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1078 import ( + from .group_1077 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_1079 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1080 import ( + from .group_1078 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_1079 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1081 import ( + from .group_1080 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1081 import ( + from .group_1080 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1081 import ( + from .group_1080 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1082 import ( + from .group_1081 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1083 import ( + from .group_1082 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1084 import ( + from .group_1083 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1084 import ( + from .group_1083 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1085 import ( + from .group_1084 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1085 import ( + from .group_1084 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1086 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1086 import ( + from .group_1085 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_1085 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1087 import ( + from .group_1086 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1088 import ( + from .group_1087 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1089 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1090 import ( + from .group_1088 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1089 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) - from .group_1091 import ( + from .group_1090 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1092 import ( + from .group_1091 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1093 import ( + from .group_1092 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1094 import ( + from .group_1093 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1095 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1095 import ( + from .group_1094 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1094 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1096 import ( + from .group_1095 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1097 import ( + from .group_1096 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1098 import ( + from .group_1097 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1098 import ( + from .group_1097 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1099 import ( + from .group_1098 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1100 import ( + from .group_1099 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1101 import ( + from .group_1100 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1102 import ( + from .group_1101 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1103 import ( + from .group_1102 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1103 import ( + from .group_1102 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_1104 import ( + from .group_1103 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1106 import ( + from .group_1105 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1106 import ( + from .group_1105 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) - from .group_1107 import ( + from .group_1106 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_1108 import ( + from .group_1107 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1109 import ( + from .group_1108 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1110 import ( + from .group_1109 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody, ) - from .group_1111 import ( + from .group_1110 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody, ) - from .group_1112 import ( + from .group_1111 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody, ) - from .group_1113 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1114 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1115 import ( + from .group_1112 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1113 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1114 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1116 import ( + from .group_1115 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1117 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1118 import ( + from .group_1116 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1117 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1119 import ( + from .group_1118 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1120 import ( + from .group_1119 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) - from .group_1121 import ( + from .group_1120 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1122 import ( + from .group_1121 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1123 import ( + from .group_1122 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1124 import ( + from .group_1123 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1125 import ( + from .group_1124 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1126 import ( + from .group_1125 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1127 import ( + from .group_1126 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1128 import ( + from .group_1127 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1129 import ( + from .group_1128 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1130 import ( + from .group_1129 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1132 import ( + from .group_1131 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1134 import ( + from .group_1133 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_1135 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1136 import ( + from .group_1134 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1135 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1137 import ( + from .group_1136 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) - from .group_1138 import ( + from .group_1137 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1139 import ( + from .group_1138 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1140 import ( + from .group_1139 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_1141 import ( + from .group_1140 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1142 import ( + from .group_1141 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1143 import ( + from .group_1142 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1144 import ( + from .group_1143 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1145 import ( + from .group_1144 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1146 import ( + from .group_1145 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1147 import ( + from .group_1146 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1148 import ( + from .group_1147 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1148 import ( + from .group_1147 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1149 import ( + from .group_1148 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) - from .group_1150 import ( + from .group_1149 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_1151 import ( + from .group_1150 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) - from .group_1152 import ( + from .group_1151 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1154 import ( + from .group_1153 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1155 import ( + from .group_1154 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1157 import ( + from .group_1156 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) - from .group_1158 import ( + from .group_1157 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_1159 import ( + from .group_1158 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1160 import ( + from .group_1159 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1161 import ( + from .group_1160 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1162 import ( + from .group_1161 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody, ) - from .group_1163 import ( + from .group_1162 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1164 import ( + from .group_1163 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) - from .group_1165 import ( + from .group_1164 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1166 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody - from .group_1167 import ( + from .group_1165 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_1166 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1168 import ( + from .group_1167 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_1169 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1170 import ( + from .group_1168 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1169 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) - from .group_1171 import ( + from .group_1170 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) - from .group_1172 import ( + from .group_1171 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1173 import ( + from .group_1172 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1174 import ( + from .group_1173 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1175 import ( + from .group_1174 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_1176 import ( + from .group_1175 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) - from .group_1177 import ( + from .group_1176 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1178 import ( + from .group_1177 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1179 import ( + from .group_1178 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) - from .group_1180 import UserPatchBody as UserPatchBody - from .group_1181 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1182 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1183 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1183 import ( + from .group_1179 import UserPatchBody as UserPatchBody + from .group_1180 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1181 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1182 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1182 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) - from .group_1184 import CodespacesSecret as CodespacesSecret - from .group_1184 import ( + from .group_1183 import CodespacesSecret as CodespacesSecret + from .group_1183 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) - from .group_1185 import ( + from .group_1184 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) - from .group_1186 import ( + from .group_1185 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1187 import ( + from .group_1186 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1188 import ( + from .group_1187 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) - from .group_1189 import ( + from .group_1188 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) - from .group_1190 import ( + from .group_1189 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) - from .group_1191 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1192 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 - from .group_1193 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1194 import UserGpgKeysPostBody as UserGpgKeysPostBody - from .group_1195 import ( + from .group_1190 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1191 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_1192 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1193 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_1194 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1196 import ( + from .group_1195 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_1197 import ( + from .group_1196 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) - from .group_1198 import UserKeysPostBody as UserKeysPostBody - from .group_1199 import ( + from .group_1197 import UserKeysPostBody as UserKeysPostBody + from .group_1198 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) - from .group_1200 import UserMigrationsPostBody as UserMigrationsPostBody - from .group_1201 import UserProjectsPostBody as UserProjectsPostBody - from .group_1202 import UserReposPostBody as UserReposPostBody - from .group_1203 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1204 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody - from .group_1205 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody - from .group_1206 import ( + from .group_1199 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_1200 import UserProjectsPostBody as UserProjectsPostBody + from .group_1201 import UserReposPostBody as UserReposPostBody + from .group_1202 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1203 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_1204 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_1205 import ( UsersUsernameAttestationsBulkListPostBody as UsersUsernameAttestationsBulkListPostBody, ) - from .group_1207 import ( + from .group_1206 import ( UsersUsernameAttestationsBulkListPostResponse200 as UsersUsernameAttestationsBulkListPostResponse200, ) - from .group_1207 import ( + from .group_1206 import ( UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests as UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests, ) - from .group_1207 import ( + from .group_1206 import ( UsersUsernameAttestationsBulkListPostResponse200PropPageInfo as UsersUsernameAttestationsBulkListPostResponse200PropPageInfo, ) - from .group_1208 import ( + from .group_1207 import ( UsersUsernameAttestationsDeleteRequestPostBodyOneof0 as UsersUsernameAttestationsDeleteRequestPostBodyOneof0, ) - from .group_1209 import ( + from .group_1208 import ( UsersUsernameAttestationsDeleteRequestPostBodyOneof1 as UsersUsernameAttestationsDeleteRequestPostBodyOneof1, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) else: @@ -8696,25 +8643,26 @@ "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0029": ("CodeScanningDefaultSetupOptions",), - ".group_0030": ("CodeSecurityDefaultConfigurationsItems",), - ".group_0031": ("SimpleRepository",), - ".group_0032": ("CodeSecurityConfigurationRepositories",), - ".group_0033": ("DependabotAlertPackage",), - ".group_0034": ( + ".group_0029": ("CodeScanningOptions",), + ".group_0030": ("CodeScanningDefaultSetupOptions",), + ".group_0031": ("CodeSecurityDefaultConfigurationsItems",), + ".group_0032": ("SimpleRepository",), + ".group_0033": ("CodeSecurityConfigurationRepositories",), + ".group_0034": ("DependabotAlertPackage",), + ".group_0035": ( "DependabotAlertSecurityVulnerability", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", ), - ".group_0035": ( + ".group_0036": ( "DependabotAlertSecurityAdvisory", "DependabotAlertSecurityAdvisoryPropCvss", "DependabotAlertSecurityAdvisoryPropCwesItems", "DependabotAlertSecurityAdvisoryPropIdentifiersItems", "DependabotAlertSecurityAdvisoryPropReferencesItems", ), - ".group_0036": ("DependabotAlertWithRepository",), - ".group_0037": ("DependabotAlertWithRepositoryPropDependency",), - ".group_0038": ( + ".group_0037": ("DependabotAlertWithRepository",), + ".group_0038": ("DependabotAlertWithRepositoryPropDependency",), + ".group_0039": ( "SecretScanningLocationCommit", "SecretScanningLocationWikiCommit", "SecretScanningLocationIssueBody", @@ -8723,77 +8671,77 @@ "SecretScanningLocationPullRequestBody", "SecretScanningLocationPullRequestReview", ), - ".group_0039": ( + ".group_0040": ( "SecretScanningLocationIssueTitle", "SecretScanningLocationIssueComment", "SecretScanningLocationPullRequestTitle", "SecretScanningLocationPullRequestReviewComment", ), - ".group_0040": ( + ".group_0041": ( "SecretScanningLocationDiscussionBody", "SecretScanningLocationPullRequestComment", ), - ".group_0041": ("OrganizationSecretScanningAlert",), - ".group_0042": ("Milestone",), - ".group_0043": ("IssueType",), - ".group_0044": ("ReactionRollup",), - ".group_0045": ( + ".group_0042": ("OrganizationSecretScanningAlert",), + ".group_0043": ("Milestone",), + ".group_0044": ("IssueType",), + ".group_0045": ("ReactionRollup",), + ".group_0046": ("SubIssuesSummary",), + ".group_0047": ( "Issue", - "SubIssuesSummary", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", ), - ".group_0046": ("IssueComment",), - ".group_0047": ( + ".group_0048": ("IssueComment",), + ".group_0049": ( "EventPropPayload", "EventPropPayloadPropPagesItems", "Event", "Actor", "EventPropRepo", ), - ".group_0048": ( + ".group_0050": ( "Feed", "FeedPropLinks", "LinkWithType", ), - ".group_0049": ( + ".group_0051": ( "BaseGist", "BaseGistPropFiles", ), - ".group_0050": ( + ".group_0052": ( "GistHistory", "GistHistoryPropChangeStatus", "GistSimplePropForkOf", "GistSimplePropForkOfPropFiles", ), - ".group_0051": ( + ".group_0053": ( "GistSimple", "GistSimplePropFiles", "GistSimplePropForksItems", "PublicUser", "PublicUserPropPlan", ), - ".group_0052": ("GistComment",), - ".group_0053": ( + ".group_0054": ("GistComment",), + ".group_0055": ( "GistCommit", "GistCommitPropChangeStatus", ), - ".group_0054": ("GitignoreTemplate",), - ".group_0055": ("License",), - ".group_0056": ("MarketplaceListingPlan",), - ".group_0057": ("MarketplacePurchase",), - ".group_0058": ( + ".group_0056": ("GitignoreTemplate",), + ".group_0057": ("License",), + ".group_0058": ("MarketplaceListingPlan",), + ".group_0059": ("MarketplacePurchase",), + ".group_0060": ( "MarketplacePurchasePropMarketplacePendingChange", "MarketplacePurchasePropMarketplacePurchase", ), - ".group_0059": ( + ".group_0061": ( "ApiOverview", "ApiOverviewPropSshKeyFingerprints", "ApiOverviewPropDomains", "ApiOverviewPropDomainsPropActionsInbound", "ApiOverviewPropDomainsPropArtifactAttestations", ), - ".group_0060": ( + ".group_0062": ( "SecurityAndAnalysis", "SecurityAndAnalysisPropAdvancedSecurity", "SecurityAndAnalysisPropCodeSecurity", @@ -8803,87 +8751,87 @@ "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", "SecurityAndAnalysisPropSecretScanningAiDetection", ), - ".group_0061": ( + ".group_0063": ( "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", "MinimalRepositoryPropCustomProperties", ), - ".group_0062": ( + ".group_0064": ( "Thread", "ThreadPropSubject", ), - ".group_0063": ("ThreadSubscription",), - ".group_0064": ("OrganizationSimple",), - ".group_0065": ("DependabotRepositoryAccessDetails",), - ".group_0066": ( + ".group_0065": ("ThreadSubscription",), + ".group_0066": ("OrganizationSimple",), + ".group_0067": ("DependabotRepositoryAccessDetails",), + ".group_0068": ( "BillingUsageReport", "BillingUsageReportPropUsageItemsItems", ), - ".group_0067": ( + ".group_0069": ( "OrganizationFull", "OrganizationFullPropPlan", ), - ".group_0068": ("ActionsCacheUsageOrgEnterprise",), - ".group_0069": ("ActionsHostedRunnerMachineSpec",), - ".group_0070": ( + ".group_0070": ("ActionsCacheUsageOrgEnterprise",), + ".group_0071": ("ActionsHostedRunnerMachineSpec",), + ".group_0072": ( "ActionsHostedRunner", "ActionsHostedRunnerPoolImage", "PublicIp", ), - ".group_0071": ("ActionsHostedRunnerImage",), - ".group_0072": ( + ".group_0073": ("ActionsHostedRunnerImage",), + ".group_0074": ( "ActionsHostedRunnerLimits", "ActionsHostedRunnerLimitsPropPublicIps", ), - ".group_0073": ("OidcCustomSub",), - ".group_0074": ("ActionsOrganizationPermissions",), - ".group_0075": ("SelectedActions",), - ".group_0076": ("ActionsGetDefaultWorkflowPermissions",), - ".group_0077": ("ActionsSetDefaultWorkflowPermissions",), - ".group_0078": ("RunnerLabel",), - ".group_0079": ("Runner",), - ".group_0080": ("RunnerApplication",), - ".group_0081": ( + ".group_0075": ("OidcCustomSub",), + ".group_0076": ("ActionsOrganizationPermissions",), + ".group_0077": ("SelectedActions",), + ".group_0078": ("ActionsGetDefaultWorkflowPermissions",), + ".group_0079": ("ActionsSetDefaultWorkflowPermissions",), + ".group_0080": ("RunnerLabel",), + ".group_0081": ("Runner",), + ".group_0082": ("RunnerApplication",), + ".group_0083": ( "AuthenticationToken", "AuthenticationTokenPropPermissions", ), - ".group_0082": ("ActionsPublicKey",), - ".group_0083": ("TeamSimple",), - ".group_0084": ( + ".group_0084": ("ActionsPublicKey",), + ".group_0085": ("TeamSimple",), + ".group_0086": ( "Team", "TeamPropPermissions", ), - ".group_0085": ( + ".group_0087": ( "CampaignSummary", "CampaignSummaryPropAlertStats", ), - ".group_0086": ("CodeScanningAlertRuleSummary",), - ".group_0087": ("CodeScanningAnalysisTool",), - ".group_0088": ( + ".group_0088": ("CodeScanningAlertRuleSummary",), + ".group_0089": ("CodeScanningAnalysisTool",), + ".group_0090": ( "CodeScanningAlertInstance", "CodeScanningAlertLocation", "CodeScanningAlertInstancePropMessage", ), - ".group_0089": ("CodeScanningOrganizationAlertItems",), - ".group_0090": ("CodespaceMachine",), - ".group_0091": ( + ".group_0091": ("CodeScanningOrganizationAlertItems",), + ".group_0092": ("CodespaceMachine",), + ".group_0093": ( "Codespace", "CodespacePropGitStatus", "CodespacePropRuntimeConstraints", ), - ".group_0092": ("CodespacesPublicKey",), - ".group_0093": ( + ".group_0094": ("CodespacesPublicKey",), + ".group_0095": ( "CopilotOrganizationDetails", "CopilotOrganizationSeatBreakdown", ), - ".group_0094": ( + ".group_0096": ( "CopilotSeatDetails", "EnterpriseTeam", "OrgsOrgCopilotBillingSeatsGetResponse200", ), - ".group_0095": ( + ".group_0097": ( "CopilotUsageMetricsDay", "CopilotDotcomChat", "CopilotDotcomChatPropModelsItems", @@ -8899,159 +8847,159 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", ), - ".group_0096": ("DependabotPublicKey",), - ".group_0097": ("Package",), - ".group_0098": ("OrganizationInvitation",), - ".group_0099": ( + ".group_0098": ("DependabotPublicKey",), + ".group_0099": ("Package",), + ".group_0100": ("OrganizationInvitation",), + ".group_0101": ( "OrgHook", "OrgHookPropConfig", ), - ".group_0100": ("ApiInsightsRouteStatsItems",), - ".group_0101": ("ApiInsightsSubjectStatsItems",), - ".group_0102": ("ApiInsightsSummaryStats",), - ".group_0103": ("ApiInsightsTimeStatsItems",), - ".group_0104": ("ApiInsightsUserStatsItems",), - ".group_0105": ("InteractionLimitResponse",), - ".group_0106": ("InteractionLimit",), - ".group_0107": ("OrganizationCreateIssueType",), - ".group_0108": ("OrganizationUpdateIssueType",), - ".group_0109": ( + ".group_0102": ("ApiInsightsRouteStatsItems",), + ".group_0103": ("ApiInsightsSubjectStatsItems",), + ".group_0104": ("ApiInsightsSummaryStats",), + ".group_0105": ("ApiInsightsTimeStatsItems",), + ".group_0106": ("ApiInsightsUserStatsItems",), + ".group_0107": ("InteractionLimitResponse",), + ".group_0108": ("InteractionLimit",), + ".group_0109": ("OrganizationCreateIssueType",), + ".group_0110": ("OrganizationUpdateIssueType",), + ".group_0111": ( "OrgMembership", "OrgMembershipPropPermissions", ), - ".group_0110": ("Migration",), - ".group_0111": ( + ".group_0112": ("Migration",), + ".group_0113": ( "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", ), - ".group_0112": ( + ".group_0114": ( "TeamRoleAssignment", "TeamRoleAssignmentPropPermissions", ), - ".group_0113": ("UserRoleAssignment",), - ".group_0114": ( + ".group_0115": ("UserRoleAssignment",), + ".group_0116": ( "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", "PackageVersionPropMetadataPropDocker", ), - ".group_0115": ( + ".group_0117": ( "OrganizationProgrammaticAccessGrantRequest", "OrganizationProgrammaticAccessGrantRequestPropPermissions", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", ), - ".group_0116": ( + ".group_0118": ( "OrganizationProgrammaticAccessGrant", "OrganizationProgrammaticAccessGrantPropPermissions", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", ), - ".group_0117": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), - ".group_0118": ("Project",), - ".group_0119": ("CustomProperty",), - ".group_0120": ("CustomPropertySetPayload",), - ".group_0121": ("CustomPropertyValue",), - ".group_0122": ("OrgRepoCustomPropertyValues",), - ".group_0123": ("CodeOfConductSimple",), - ".group_0124": ( + ".group_0119": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), + ".group_0120": ("Project",), + ".group_0121": ("CustomProperty",), + ".group_0122": ("CustomPropertySetPayload",), + ".group_0123": ("CustomPropertyValue",), + ".group_0124": ("OrgRepoCustomPropertyValues",), + ".group_0125": ("CodeOfConductSimple",), + ".group_0126": ( "FullRepository", "FullRepositoryPropPermissions", "FullRepositoryPropCustomProperties", ), - ".group_0125": ("RepositoryRulesetBypassActor",), - ".group_0126": ("RepositoryRulesetConditions",), - ".group_0127": ("RepositoryRulesetConditionsPropRefName",), - ".group_0128": ("RepositoryRulesetConditionsRepositoryNameTarget",), - ".group_0129": ( + ".group_0127": ("RepositoryRulesetBypassActor",), + ".group_0128": ("RepositoryRulesetConditions",), + ".group_0129": ("RepositoryRulesetConditionsPropRefName",), + ".group_0130": ("RepositoryRulesetConditionsRepositoryNameTarget",), + ".group_0131": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName", ), - ".group_0130": ("RepositoryRulesetConditionsRepositoryIdTarget",), - ".group_0131": ( + ".group_0132": ("RepositoryRulesetConditionsRepositoryIdTarget",), + ".group_0133": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId", ), - ".group_0132": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), - ".group_0133": ( + ".group_0134": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), + ".group_0135": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", "RepositoryRulesetConditionsRepositoryPropertySpec", ), - ".group_0134": ("OrgRulesetConditionsOneof0",), - ".group_0135": ("OrgRulesetConditionsOneof1",), - ".group_0136": ("OrgRulesetConditionsOneof2",), - ".group_0137": ( + ".group_0136": ("OrgRulesetConditionsOneof0",), + ".group_0137": ("OrgRulesetConditionsOneof1",), + ".group_0138": ("OrgRulesetConditionsOneof2",), + ".group_0139": ( "RepositoryRuleCreation", "RepositoryRuleDeletion", "RepositoryRuleRequiredSignatures", "RepositoryRuleNonFastForward", ), - ".group_0138": ("RepositoryRuleUpdate",), - ".group_0139": ("RepositoryRuleUpdatePropParameters",), - ".group_0140": ("RepositoryRuleRequiredLinearHistory",), - ".group_0141": ("RepositoryRuleMergeQueue",), - ".group_0142": ("RepositoryRuleMergeQueuePropParameters",), - ".group_0143": ("RepositoryRuleRequiredDeployments",), - ".group_0144": ("RepositoryRuleRequiredDeploymentsPropParameters",), - ".group_0145": ( + ".group_0140": ("RepositoryRuleUpdate",), + ".group_0141": ("RepositoryRuleUpdatePropParameters",), + ".group_0142": ("RepositoryRuleRequiredLinearHistory",), + ".group_0143": ("RepositoryRuleMergeQueue",), + ".group_0144": ("RepositoryRuleMergeQueuePropParameters",), + ".group_0145": ("RepositoryRuleRequiredDeployments",), + ".group_0146": ("RepositoryRuleRequiredDeploymentsPropParameters",), + ".group_0147": ( "RepositoryRuleParamsRequiredReviewerConfiguration", "RepositoryRuleParamsReviewer", ), - ".group_0146": ("RepositoryRulePullRequest",), - ".group_0147": ("RepositoryRulePullRequestPropParameters",), - ".group_0148": ("RepositoryRuleRequiredStatusChecks",), - ".group_0149": ( + ".group_0148": ("RepositoryRulePullRequest",), + ".group_0149": ("RepositoryRulePullRequestPropParameters",), + ".group_0150": ("RepositoryRuleRequiredStatusChecks",), + ".group_0151": ( "RepositoryRuleRequiredStatusChecksPropParameters", "RepositoryRuleParamsStatusCheckConfiguration", ), - ".group_0150": ("RepositoryRuleCommitMessagePattern",), - ".group_0151": ("RepositoryRuleCommitMessagePatternPropParameters",), - ".group_0152": ("RepositoryRuleCommitAuthorEmailPattern",), - ".group_0153": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), - ".group_0154": ("RepositoryRuleCommitterEmailPattern",), - ".group_0155": ("RepositoryRuleCommitterEmailPatternPropParameters",), - ".group_0156": ("RepositoryRuleBranchNamePattern",), - ".group_0157": ("RepositoryRuleBranchNamePatternPropParameters",), - ".group_0158": ("RepositoryRuleTagNamePattern",), - ".group_0159": ("RepositoryRuleTagNamePatternPropParameters",), - ".group_0160": ("RepositoryRuleFilePathRestriction",), - ".group_0161": ("RepositoryRuleFilePathRestrictionPropParameters",), - ".group_0162": ("RepositoryRuleMaxFilePathLength",), - ".group_0163": ("RepositoryRuleMaxFilePathLengthPropParameters",), - ".group_0164": ("RepositoryRuleFileExtensionRestriction",), - ".group_0165": ("RepositoryRuleFileExtensionRestrictionPropParameters",), - ".group_0166": ("RepositoryRuleMaxFileSize",), - ".group_0167": ("RepositoryRuleMaxFileSizePropParameters",), - ".group_0168": ("RepositoryRuleParamsRestrictedCommits",), - ".group_0169": ("RepositoryRuleWorkflows",), - ".group_0170": ( + ".group_0152": ("RepositoryRuleCommitMessagePattern",), + ".group_0153": ("RepositoryRuleCommitMessagePatternPropParameters",), + ".group_0154": ("RepositoryRuleCommitAuthorEmailPattern",), + ".group_0155": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), + ".group_0156": ("RepositoryRuleCommitterEmailPattern",), + ".group_0157": ("RepositoryRuleCommitterEmailPatternPropParameters",), + ".group_0158": ("RepositoryRuleBranchNamePattern",), + ".group_0159": ("RepositoryRuleBranchNamePatternPropParameters",), + ".group_0160": ("RepositoryRuleTagNamePattern",), + ".group_0161": ("RepositoryRuleTagNamePatternPropParameters",), + ".group_0162": ("RepositoryRuleFilePathRestriction",), + ".group_0163": ("RepositoryRuleFilePathRestrictionPropParameters",), + ".group_0164": ("RepositoryRuleMaxFilePathLength",), + ".group_0165": ("RepositoryRuleMaxFilePathLengthPropParameters",), + ".group_0166": ("RepositoryRuleFileExtensionRestriction",), + ".group_0167": ("RepositoryRuleFileExtensionRestrictionPropParameters",), + ".group_0168": ("RepositoryRuleMaxFileSize",), + ".group_0169": ("RepositoryRuleMaxFileSizePropParameters",), + ".group_0170": ("RepositoryRuleParamsRestrictedCommits",), + ".group_0171": ("RepositoryRuleWorkflows",), + ".group_0172": ( "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", ), - ".group_0171": ("RepositoryRuleCodeScanning",), - ".group_0172": ( + ".group_0173": ("RepositoryRuleCodeScanning",), + ".group_0174": ( "RepositoryRuleCodeScanningPropParameters", "RepositoryRuleParamsCodeScanningTool", ), - ".group_0173": ( + ".group_0175": ( "RepositoryRuleset", "RepositoryRulesetPropLinks", "RepositoryRulesetPropLinksPropSelf", "RepositoryRulesetPropLinksPropHtml", ), - ".group_0174": ("RuleSuitesItems",), - ".group_0175": ( + ".group_0176": ("RuleSuitesItems",), + ".group_0177": ( "RuleSuite", "RuleSuitePropRuleEvaluationsItems", "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ), - ".group_0176": ("RulesetVersion",), - ".group_0177": ("RulesetVersionPropActor",), - ".group_0178": ("RulesetVersionWithState",), - ".group_0179": ("RulesetVersionWithStateAllof1",), - ".group_0180": ("RulesetVersionWithStateAllof1PropState",), - ".group_0181": ("RepositoryAdvisoryCredit",), - ".group_0182": ( + ".group_0178": ("RulesetVersion",), + ".group_0179": ("RulesetVersionPropActor",), + ".group_0180": ("RulesetVersionWithState",), + ".group_0181": ("RulesetVersionWithStateAllof1",), + ".group_0182": ("RulesetVersionWithStateAllof1PropState",), + ".group_0183": ("RepositoryAdvisoryCredit",), + ".group_0184": ( "RepositoryAdvisory", "RepositoryAdvisoryPropIdentifiersItems", "RepositoryAdvisoryPropSubmission", @@ -9061,85 +9009,85 @@ "RepositoryAdvisoryVulnerability", "RepositoryAdvisoryVulnerabilityPropPackage", ), - ".group_0183": ( + ".group_0185": ( "ActionsBillingUsage", "ActionsBillingUsagePropMinutesUsedBreakdown", ), - ".group_0184": ("PackagesBillingUsage",), - ".group_0185": ("CombinedBillingUsage",), - ".group_0186": ("NetworkSettings",), - ".group_0187": ( + ".group_0186": ("PackagesBillingUsage",), + ".group_0187": ("CombinedBillingUsage",), + ".group_0188": ("NetworkSettings",), + ".group_0189": ( "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", ), - ".group_0188": ("TeamDiscussion",), - ".group_0189": ("TeamDiscussionComment",), - ".group_0190": ("Reaction",), - ".group_0191": ("TeamMembership",), - ".group_0192": ( + ".group_0190": ("TeamDiscussion",), + ".group_0191": ("TeamDiscussionComment",), + ".group_0192": ("Reaction",), + ".group_0193": ("TeamMembership",), + ".group_0194": ( "TeamProject", "TeamProjectPropPermissions", ), - ".group_0193": ( + ".group_0195": ( "TeamRepository", "TeamRepositoryPropPermissions", ), - ".group_0194": ("ProjectCard",), - ".group_0195": ("ProjectColumn",), - ".group_0196": ("ProjectCollaboratorPermission",), - ".group_0197": ("RateLimit",), - ".group_0198": ("RateLimitOverview",), - ".group_0199": ("RateLimitOverviewPropResources",), - ".group_0200": ( + ".group_0196": ("ProjectCard",), + ".group_0197": ("ProjectColumn",), + ".group_0198": ("ProjectCollaboratorPermission",), + ".group_0199": ("RateLimit",), + ".group_0200": ("RateLimitOverview",), + ".group_0201": ("RateLimitOverviewPropResources",), + ".group_0202": ( "Artifact", "ArtifactPropWorkflowRun", ), - ".group_0201": ( + ".group_0203": ( "ActionsCacheList", "ActionsCacheListPropActionsCachesItems", ), - ".group_0202": ( + ".group_0204": ( "Job", "JobPropStepsItems", ), - ".group_0203": ("OidcCustomSubRepo",), - ".group_0204": ("ActionsSecret",), - ".group_0205": ("ActionsVariable",), - ".group_0206": ("ActionsRepositoryPermissions",), - ".group_0207": ("ActionsWorkflowAccessToRepository",), - ".group_0208": ( + ".group_0205": ("OidcCustomSubRepo",), + ".group_0206": ("ActionsSecret",), + ".group_0207": ("ActionsVariable",), + ".group_0208": ("ActionsRepositoryPermissions",), + ".group_0209": ("ActionsWorkflowAccessToRepository",), + ".group_0210": ( "PullRequestMinimal", "PullRequestMinimalPropHead", "PullRequestMinimalPropHeadPropRepo", "PullRequestMinimalPropBase", "PullRequestMinimalPropBasePropRepo", ), - ".group_0209": ( + ".group_0211": ( "SimpleCommit", "SimpleCommitPropAuthor", "SimpleCommitPropCommitter", ), - ".group_0210": ( + ".group_0212": ( "WorkflowRun", "ReferencedWorkflow", ), - ".group_0211": ( + ".group_0213": ( "EnvironmentApprovals", "EnvironmentApprovalsPropEnvironmentsItems", ), - ".group_0212": ("ReviewCustomGatesCommentRequired",), - ".group_0213": ("ReviewCustomGatesStateRequired",), - ".group_0214": ( + ".group_0214": ("ReviewCustomGatesCommentRequired",), + ".group_0215": ("ReviewCustomGatesStateRequired",), + ".group_0216": ( "PendingDeploymentPropReviewersItems", "PendingDeployment", "PendingDeploymentPropEnvironment", ), - ".group_0215": ( + ".group_0217": ( "Deployment", "DeploymentPropPayloadOneof0", ), - ".group_0216": ( + ".group_0218": ( "WorkflowRunUsage", "WorkflowRunUsagePropBillable", "WorkflowRunUsagePropBillablePropUbuntu", @@ -9149,22 +9097,22 @@ "WorkflowRunUsagePropBillablePropWindows", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ), - ".group_0217": ( + ".group_0219": ( "WorkflowUsage", "WorkflowUsagePropBillable", "WorkflowUsagePropBillablePropUbuntu", "WorkflowUsagePropBillablePropMacos", "WorkflowUsagePropBillablePropWindows", ), - ".group_0218": ("Activity",), - ".group_0219": ("Autolink",), - ".group_0220": ("CheckAutomatedSecurityFixes",), - ".group_0221": ("ProtectedBranchPullRequestReview",), - ".group_0222": ( + ".group_0220": ("Activity",), + ".group_0221": ("Autolink",), + ".group_0222": ("CheckAutomatedSecurityFixes",), + ".group_0223": ("ProtectedBranchPullRequestReview",), + ".group_0224": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictions", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", ), - ".group_0223": ( + ".group_0225": ( "BranchRestrictionPolicy", "BranchRestrictionPolicyPropUsersItems", "BranchRestrictionPolicyPropTeamsItems", @@ -9172,7 +9120,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwner", "BranchRestrictionPolicyPropAppsItemsPropPermissions", ), - ".group_0224": ( + ".group_0226": ( "BranchProtection", "ProtectedBranchAdminEnforced", "BranchProtectionPropRequiredLinearHistory", @@ -9186,28 +9134,28 @@ "ProtectedBranchRequiredStatusCheck", "ProtectedBranchRequiredStatusCheckPropChecksItems", ), - ".group_0225": ( + ".group_0227": ( "ShortBranch", "ShortBranchPropCommit", ), - ".group_0226": ("GitUser",), - ".group_0227": ("Verification",), - ".group_0228": ("DiffEntry",), - ".group_0229": ( + ".group_0228": ("GitUser",), + ".group_0229": ("Verification",), + ".group_0230": ("DiffEntry",), + ".group_0231": ( "Commit", "EmptyObject", "CommitPropParentsItems", "CommitPropStats", ), - ".group_0230": ( + ".group_0232": ( "CommitPropCommit", "CommitPropCommitPropTree", ), - ".group_0231": ( + ".group_0233": ( "BranchWithProtection", "BranchWithProtectionPropLinks", ), - ".group_0232": ( + ".group_0234": ( "ProtectedBranch", "ProtectedBranchPropRequiredSignatures", "ProtectedBranchPropEnforceAdmins", @@ -9221,117 +9169,117 @@ "StatusCheckPolicy", "StatusCheckPolicyPropChecksItems", ), - ".group_0233": ("ProtectedBranchPropRequiredPullRequestReviews",), - ".group_0234": ( + ".group_0235": ("ProtectedBranchPropRequiredPullRequestReviews",), + ".group_0236": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ), - ".group_0235": ("DeploymentSimple",), - ".group_0236": ( + ".group_0237": ("DeploymentSimple",), + ".group_0238": ( "CheckRun", "CheckRunPropOutput", "CheckRunPropCheckSuite", ), - ".group_0237": ("CheckAnnotation",), - ".group_0238": ( + ".group_0239": ("CheckAnnotation",), + ".group_0240": ( "CheckSuite", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", ), - ".group_0239": ( + ".group_0241": ( "CheckSuitePreference", "CheckSuitePreferencePropPreferences", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ), - ".group_0240": ("CodeScanningAlertItems",), - ".group_0241": ( + ".group_0242": ("CodeScanningAlertItems",), + ".group_0243": ( "CodeScanningAlert", "CodeScanningAlertRule", ), - ".group_0242": ("CodeScanningAutofix",), - ".group_0243": ("CodeScanningAutofixCommits",), - ".group_0244": ("CodeScanningAutofixCommitsResponse",), - ".group_0245": ("CodeScanningAnalysis",), - ".group_0246": ("CodeScanningAnalysisDeletion",), - ".group_0247": ("CodeScanningCodeqlDatabase",), - ".group_0248": ("CodeScanningVariantAnalysisRepository",), - ".group_0249": ("CodeScanningVariantAnalysisSkippedRepoGroup",), - ".group_0250": ("CodeScanningVariantAnalysis",), - ".group_0251": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), - ".group_0252": ( + ".group_0244": ("CodeScanningAutofix",), + ".group_0245": ("CodeScanningAutofixCommits",), + ".group_0246": ("CodeScanningAutofixCommitsResponse",), + ".group_0247": ("CodeScanningAnalysis",), + ".group_0248": ("CodeScanningAnalysisDeletion",), + ".group_0249": ("CodeScanningCodeqlDatabase",), + ".group_0250": ("CodeScanningVariantAnalysisRepository",), + ".group_0251": ("CodeScanningVariantAnalysisSkippedRepoGroup",), + ".group_0252": ("CodeScanningVariantAnalysis",), + ".group_0253": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), + ".group_0254": ( "CodeScanningVariantAnalysisPropSkippedRepositories", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", ), - ".group_0253": ("CodeScanningVariantAnalysisRepoTask",), - ".group_0254": ("CodeScanningDefaultSetup",), - ".group_0255": ("CodeScanningDefaultSetupUpdate",), - ".group_0256": ("CodeScanningDefaultSetupUpdateResponse",), - ".group_0257": ("CodeScanningSarifsReceipt",), - ".group_0258": ("CodeScanningSarifsStatus",), - ".group_0259": ("CodeSecurityConfigurationForRepository",), - ".group_0260": ( + ".group_0255": ("CodeScanningVariantAnalysisRepoTask",), + ".group_0256": ("CodeScanningDefaultSetup",), + ".group_0257": ("CodeScanningDefaultSetupUpdate",), + ".group_0258": ("CodeScanningDefaultSetupUpdateResponse",), + ".group_0259": ("CodeScanningSarifsReceipt",), + ".group_0260": ("CodeScanningSarifsStatus",), + ".group_0261": ("CodeSecurityConfigurationForRepository",), + ".group_0262": ( "CodeownersErrors", "CodeownersErrorsPropErrorsItems", ), - ".group_0261": ("CodespacesPermissionsCheckForDevcontainer",), - ".group_0262": ("RepositoryInvitation",), - ".group_0263": ( + ".group_0263": ("CodespacesPermissionsCheckForDevcontainer",), + ".group_0264": ("RepositoryInvitation",), + ".group_0265": ( "RepositoryCollaboratorPermission", "Collaborator", "CollaboratorPropPermissions", ), - ".group_0264": ( + ".group_0266": ( "CommitComment", "TimelineCommitCommentedEvent", ), - ".group_0265": ( + ".group_0267": ( "BranchShort", "BranchShortPropCommit", ), - ".group_0266": ("Link",), - ".group_0267": ("AutoMerge",), - ".group_0268": ( + ".group_0268": ("Link",), + ".group_0269": ("AutoMerge",), + ".group_0270": ( "PullRequestSimple", "PullRequestSimplePropLabelsItems", ), - ".group_0269": ( + ".group_0271": ( "PullRequestSimplePropHead", "PullRequestSimplePropBase", ), - ".group_0270": ("PullRequestSimplePropLinks",), - ".group_0271": ( + ".group_0272": ("PullRequestSimplePropLinks",), + ".group_0273": ( "CombinedCommitStatus", "SimpleCommitStatus", ), - ".group_0272": ("Status",), - ".group_0273": ( + ".group_0274": ("Status",), + ".group_0275": ( "CommunityProfilePropFiles", "CommunityHealthFile", "CommunityProfile", ), - ".group_0274": ("CommitComparison",), - ".group_0275": ( + ".group_0276": ("CommitComparison",), + ".group_0277": ( "ContentTree", "ContentTreePropLinks", "ContentTreePropEntriesItems", "ContentTreePropEntriesItemsPropLinks", ), - ".group_0276": ( + ".group_0278": ( "ContentDirectoryItems", "ContentDirectoryItemsPropLinks", ), - ".group_0277": ( + ".group_0279": ( "ContentFile", "ContentFilePropLinks", ), - ".group_0278": ( + ".group_0280": ( "ContentSymlink", "ContentSymlinkPropLinks", ), - ".group_0279": ( + ".group_0281": ( "ContentSubmodule", "ContentSubmodulePropLinks", ), - ".group_0280": ( + ".group_0282": ( "FileCommit", "FileCommitPropContent", "FileCommitPropContentPropLinks", @@ -9342,20 +9290,20 @@ "FileCommitPropCommitPropParentsItems", "FileCommitPropCommitPropVerification", ), - ".group_0281": ( + ".group_0283": ( "RepositoryRuleViolationError", "RepositoryRuleViolationErrorPropMetadata", "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", ), - ".group_0282": ("Contributor",), - ".group_0283": ("DependabotAlert",), - ".group_0284": ("DependabotAlertPropDependency",), - ".group_0285": ( + ".group_0284": ("Contributor",), + ".group_0285": ("DependabotAlert",), + ".group_0286": ("DependabotAlertPropDependency",), + ".group_0287": ( "DependencyGraphDiffItems", "DependencyGraphDiffItemsPropVulnerabilitiesItems", ), - ".group_0286": ( + ".group_0288": ( "DependencyGraphSpdxSbom", "DependencyGraphSpdxSbomPropSbom", "DependencyGraphSpdxSbomPropSbomPropCreationInfo", @@ -9363,39 +9311,39 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItems", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", ), - ".group_0287": ("Metadata",), - ".group_0288": ("Dependency",), - ".group_0289": ( + ".group_0289": ("Metadata",), + ".group_0290": ("Dependency",), + ".group_0291": ( "Manifest", "ManifestPropFile", "ManifestPropResolved", ), - ".group_0290": ( + ".group_0292": ( "Snapshot", "SnapshotPropJob", "SnapshotPropDetector", "SnapshotPropManifests", ), - ".group_0291": ("DeploymentStatus",), - ".group_0292": ("DeploymentBranchPolicySettings",), - ".group_0293": ( + ".group_0293": ("DeploymentStatus",), + ".group_0294": ("DeploymentBranchPolicySettings",), + ".group_0295": ( "Environment", "EnvironmentPropProtectionRulesItemsAnyof0", "EnvironmentPropProtectionRulesItemsAnyof2", "ReposOwnerRepoEnvironmentsGetResponse200", ), - ".group_0294": ("EnvironmentPropProtectionRulesItemsAnyof1",), - ".group_0295": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), - ".group_0296": ("DeploymentBranchPolicyNamePatternWithType",), - ".group_0297": ("DeploymentBranchPolicyNamePattern",), - ".group_0298": ("CustomDeploymentRuleApp",), - ".group_0299": ( + ".group_0296": ("EnvironmentPropProtectionRulesItemsAnyof1",), + ".group_0297": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), + ".group_0298": ("DeploymentBranchPolicyNamePatternWithType",), + ".group_0299": ("DeploymentBranchPolicyNamePattern",), + ".group_0300": ("CustomDeploymentRuleApp",), + ".group_0301": ( "DeploymentProtectionRule", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ), - ".group_0300": ("ShortBlob",), - ".group_0301": ("Blob",), - ".group_0302": ( + ".group_0302": ("ShortBlob",), + ".group_0303": ("Blob",), + ".group_0304": ( "GitCommit", "GitCommitPropAuthor", "GitCommitPropCommitter", @@ -9403,28 +9351,28 @@ "GitCommitPropParentsItems", "GitCommitPropVerification", ), - ".group_0303": ( + ".group_0305": ( "GitRef", "GitRefPropObject", ), - ".group_0304": ( + ".group_0306": ( "GitTag", "GitTagPropTagger", "GitTagPropObject", ), - ".group_0305": ( + ".group_0307": ( "GitTree", "GitTreePropTreeItems", ), - ".group_0306": ("HookResponse",), - ".group_0307": ("Hook",), - ".group_0308": ( + ".group_0308": ("HookResponse",), + ".group_0309": ("Hook",), + ".group_0310": ( "Import", "ImportPropProjectChoicesItems", ), - ".group_0309": ("PorterAuthor",), - ".group_0310": ("PorterLargeFile",), - ".group_0311": ( + ".group_0311": ("PorterAuthor",), + ".group_0312": ("PorterLargeFile",), + ".group_0313": ( "IssueEvent", "IssueEventLabel", "IssueEventDismissedReview", @@ -9432,55 +9380,55 @@ "IssueEventProjectCard", "IssueEventRename", ), - ".group_0312": ( + ".group_0314": ( "LabeledIssueEvent", "LabeledIssueEventPropLabel", ), - ".group_0313": ( + ".group_0315": ( "UnlabeledIssueEvent", "UnlabeledIssueEventPropLabel", ), - ".group_0314": ("AssignedIssueEvent",), - ".group_0315": ("UnassignedIssueEvent",), - ".group_0316": ( + ".group_0316": ("AssignedIssueEvent",), + ".group_0317": ("UnassignedIssueEvent",), + ".group_0318": ( "MilestonedIssueEvent", "MilestonedIssueEventPropMilestone", ), - ".group_0317": ( + ".group_0319": ( "DemilestonedIssueEvent", "DemilestonedIssueEventPropMilestone", ), - ".group_0318": ( + ".group_0320": ( "RenamedIssueEvent", "RenamedIssueEventPropRename", ), - ".group_0319": ("ReviewRequestedIssueEvent",), - ".group_0320": ("ReviewRequestRemovedIssueEvent",), - ".group_0321": ( + ".group_0321": ("ReviewRequestedIssueEvent",), + ".group_0322": ("ReviewRequestRemovedIssueEvent",), + ".group_0323": ( "ReviewDismissedIssueEvent", "ReviewDismissedIssueEventPropDismissedReview", ), - ".group_0322": ("LockedIssueEvent",), - ".group_0323": ( + ".group_0324": ("LockedIssueEvent",), + ".group_0325": ( "AddedToProjectIssueEvent", "AddedToProjectIssueEventPropProjectCard", ), - ".group_0324": ( + ".group_0326": ( "MovedColumnInProjectIssueEvent", "MovedColumnInProjectIssueEventPropProjectCard", ), - ".group_0325": ( + ".group_0327": ( "RemovedFromProjectIssueEvent", "RemovedFromProjectIssueEventPropProjectCard", ), - ".group_0326": ( + ".group_0328": ( "ConvertedNoteToIssueIssueEvent", "ConvertedNoteToIssueIssueEventPropProjectCard", ), - ".group_0327": ("TimelineCommentEvent",), - ".group_0328": ("TimelineCrossReferencedEvent",), - ".group_0329": ("TimelineCrossReferencedEventPropSource",), - ".group_0330": ( + ".group_0329": ("TimelineCommentEvent",), + ".group_0330": ("TimelineCrossReferencedEvent",), + ".group_0331": ("TimelineCrossReferencedEventPropSource",), + ".group_0332": ( "TimelineCommittedEvent", "TimelineCommittedEventPropAuthor", "TimelineCommittedEventPropCommitter", @@ -9488,13 +9436,13 @@ "TimelineCommittedEventPropParentsItems", "TimelineCommittedEventPropVerification", ), - ".group_0331": ( + ".group_0333": ( "TimelineReviewedEvent", "TimelineReviewedEventPropLinks", "TimelineReviewedEventPropLinksPropHtml", "TimelineReviewedEventPropLinksPropPullRequest", ), - ".group_0332": ( + ".group_0334": ( "PullRequestReviewComment", "PullRequestReviewCommentPropLinks", "PullRequestReviewCommentPropLinksPropSelf", @@ -9502,157 +9450,156 @@ "PullRequestReviewCommentPropLinksPropPullRequest", "TimelineLineCommentedEvent", ), - ".group_0333": ("TimelineAssignedIssueEvent",), - ".group_0334": ("TimelineUnassignedIssueEvent",), - ".group_0335": ("StateChangeIssueEvent",), - ".group_0336": ("DeployKey",), - ".group_0337": ("Language",), - ".group_0338": ( + ".group_0335": ("TimelineAssignedIssueEvent",), + ".group_0336": ("TimelineUnassignedIssueEvent",), + ".group_0337": ("StateChangeIssueEvent",), + ".group_0338": ("DeployKey",), + ".group_0339": ("Language",), + ".group_0340": ( "LicenseContent", "LicenseContentPropLinks", ), - ".group_0339": ("MergedUpstream",), - ".group_0340": ( + ".group_0341": ("MergedUpstream",), + ".group_0342": ( "Page", "PagesSourceHash", "PagesHttpsCertificate", ), - ".group_0341": ( + ".group_0343": ( "PageBuild", "PageBuildPropError", ), - ".group_0342": ("PageBuildStatus",), - ".group_0343": ("PageDeployment",), - ".group_0344": ("PagesDeploymentStatus",), - ".group_0345": ( + ".group_0344": ("PageBuildStatus",), + ".group_0345": ("PageDeployment",), + ".group_0346": ("PagesDeploymentStatus",), + ".group_0347": ( "PagesHealthCheck", "PagesHealthCheckPropDomain", "PagesHealthCheckPropAltDomain", ), - ".group_0346": ("PullRequest",), - ".group_0347": ("PullRequestPropLabelsItems",), - ".group_0348": ( + ".group_0348": ("PullRequest",), + ".group_0349": ("PullRequestPropLabelsItems",), + ".group_0350": ( "PullRequestPropHead", "PullRequestPropBase", ), - ".group_0349": ("PullRequestPropLinks",), - ".group_0350": ("PullRequestMergeResult",), - ".group_0351": ("PullRequestReviewRequest",), - ".group_0352": ( + ".group_0351": ("PullRequestPropLinks",), + ".group_0352": ("PullRequestMergeResult",), + ".group_0353": ("PullRequestReviewRequest",), + ".group_0354": ( "PullRequestReview", "PullRequestReviewPropLinks", "PullRequestReviewPropLinksPropHtml", "PullRequestReviewPropLinksPropPullRequest", ), - ".group_0353": ("ReviewComment",), - ".group_0354": ("ReviewCommentPropLinks",), - ".group_0355": ("ReleaseAsset",), - ".group_0356": ("Release",), - ".group_0357": ("ReleaseNotesContent",), - ".group_0358": ("RepositoryRuleRulesetInfo",), - ".group_0359": ("RepositoryRuleDetailedOneof0",), - ".group_0360": ("RepositoryRuleDetailedOneof1",), - ".group_0361": ("RepositoryRuleDetailedOneof2",), - ".group_0362": ("RepositoryRuleDetailedOneof3",), - ".group_0363": ("RepositoryRuleDetailedOneof4",), - ".group_0364": ("RepositoryRuleDetailedOneof5",), - ".group_0365": ("RepositoryRuleDetailedOneof6",), - ".group_0366": ("RepositoryRuleDetailedOneof7",), - ".group_0367": ("RepositoryRuleDetailedOneof8",), - ".group_0368": ("RepositoryRuleDetailedOneof9",), - ".group_0369": ("RepositoryRuleDetailedOneof10",), - ".group_0370": ("RepositoryRuleDetailedOneof11",), - ".group_0371": ("RepositoryRuleDetailedOneof12",), - ".group_0372": ("RepositoryRuleDetailedOneof13",), - ".group_0373": ("RepositoryRuleDetailedOneof14",), - ".group_0374": ("RepositoryRuleDetailedOneof15",), - ".group_0375": ("RepositoryRuleDetailedOneof16",), - ".group_0376": ("RepositoryRuleDetailedOneof17",), - ".group_0377": ("RepositoryRuleDetailedOneof18",), - ".group_0378": ("RepositoryRuleDetailedOneof19",), - ".group_0379": ("RepositoryRuleDetailedOneof20",), - ".group_0380": ("SecretScanningAlert",), - ".group_0381": ("SecretScanningLocation",), - ".group_0382": ("SecretScanningPushProtectionBypass",), - ".group_0383": ( + ".group_0355": ("ReviewComment",), + ".group_0356": ("ReviewCommentPropLinks",), + ".group_0357": ("ReleaseAsset",), + ".group_0358": ("Release",), + ".group_0359": ("ReleaseNotesContent",), + ".group_0360": ("RepositoryRuleRulesetInfo",), + ".group_0361": ("RepositoryRuleDetailedOneof0",), + ".group_0362": ("RepositoryRuleDetailedOneof1",), + ".group_0363": ("RepositoryRuleDetailedOneof2",), + ".group_0364": ("RepositoryRuleDetailedOneof3",), + ".group_0365": ("RepositoryRuleDetailedOneof4",), + ".group_0366": ("RepositoryRuleDetailedOneof5",), + ".group_0367": ("RepositoryRuleDetailedOneof6",), + ".group_0368": ("RepositoryRuleDetailedOneof7",), + ".group_0369": ("RepositoryRuleDetailedOneof8",), + ".group_0370": ("RepositoryRuleDetailedOneof9",), + ".group_0371": ("RepositoryRuleDetailedOneof10",), + ".group_0372": ("RepositoryRuleDetailedOneof11",), + ".group_0373": ("RepositoryRuleDetailedOneof12",), + ".group_0374": ("RepositoryRuleDetailedOneof13",), + ".group_0375": ("RepositoryRuleDetailedOneof14",), + ".group_0376": ("RepositoryRuleDetailedOneof15",), + ".group_0377": ("RepositoryRuleDetailedOneof16",), + ".group_0378": ("RepositoryRuleDetailedOneof17",), + ".group_0379": ("RepositoryRuleDetailedOneof18",), + ".group_0380": ("RepositoryRuleDetailedOneof19",), + ".group_0381": ("RepositoryRuleDetailedOneof20",), + ".group_0382": ("SecretScanningAlert",), + ".group_0383": ("SecretScanningLocation",), + ".group_0384": ("SecretScanningPushProtectionBypass",), + ".group_0385": ( "SecretScanningScanHistory", "SecretScanningScan", "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", ), - ".group_0384": ( + ".group_0386": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1", ), - ".group_0385": ( + ".group_0387": ( "RepositoryAdvisoryCreate", "RepositoryAdvisoryCreatePropCreditsItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0386": ( + ".group_0388": ( "PrivateVulnerabilityReportCreate", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0387": ( + ".group_0389": ( "RepositoryAdvisoryUpdate", "RepositoryAdvisoryUpdatePropCreditsItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", ), - ".group_0388": ("Stargazer",), - ".group_0389": ("CommitActivity",), - ".group_0390": ( + ".group_0390": ("Stargazer",), + ".group_0391": ("CommitActivity",), + ".group_0392": ( "ContributorActivity", "ContributorActivityPropWeeksItems", ), - ".group_0391": ("ParticipationStats",), - ".group_0392": ("RepositorySubscription",), - ".group_0393": ( + ".group_0393": ("ParticipationStats",), + ".group_0394": ("RepositorySubscription",), + ".group_0395": ( "Tag", "TagPropCommit", ), - ".group_0394": ("TagProtection",), - ".group_0395": ("Topic",), - ".group_0396": ("Traffic",), - ".group_0397": ("CloneTraffic",), - ".group_0398": ("ContentTraffic",), - ".group_0399": ("ReferrerTraffic",), - ".group_0400": ("ViewTraffic",), - ".group_0401": ( + ".group_0396": ("TagProtection",), + ".group_0397": ("Topic",), + ".group_0398": ("Traffic",), + ".group_0399": ("CloneTraffic",), + ".group_0400": ("ContentTraffic",), + ".group_0401": ("ReferrerTraffic",), + ".group_0402": ("ViewTraffic",), + ".group_0403": ( "SearchResultTextMatchesItems", "SearchResultTextMatchesItemsPropMatchesItems", ), - ".group_0402": ( + ".group_0404": ( "CodeSearchResultItem", "SearchCodeGetResponse200", ), - ".group_0403": ( + ".group_0405": ( "CommitSearchResultItem", "CommitSearchResultItemPropParentsItems", "SearchCommitsGetResponse200", ), - ".group_0404": ( + ".group_0406": ( "CommitSearchResultItemPropCommit", "CommitSearchResultItemPropCommitPropAuthor", "CommitSearchResultItemPropCommitPropTree", ), - ".group_0405": ( + ".group_0407": ( "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropSubIssuesSummary", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", ), - ".group_0406": ( + ".group_0408": ( "LabelSearchResultItem", "SearchLabelsGetResponse200", ), - ".group_0407": ( + ".group_0409": ( "RepoSearchResultItem", "RepoSearchResultItemPropPermissions", "SearchRepositoriesGetResponse200", ), - ".group_0408": ( + ".group_0410": ( "TopicSearchResultItem", "TopicSearchResultItemPropRelatedItems", "TopicSearchResultItemPropRelatedItemsPropTopicRelation", @@ -9660,49 +9607,49 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelation", "SearchTopicsGetResponse200", ), - ".group_0409": ( + ".group_0411": ( "UserSearchResultItem", "SearchUsersGetResponse200", ), - ".group_0410": ( + ".group_0412": ( "PrivateUser", "PrivateUserPropPlan", ), - ".group_0411": ("CodespacesUserPublicKey",), - ".group_0412": ("CodespaceExportDetails",), - ".group_0413": ( + ".group_0413": ("CodespacesUserPublicKey",), + ".group_0414": ("CodespaceExportDetails",), + ".group_0415": ( "CodespaceWithFullRepository", "CodespaceWithFullRepositoryPropGitStatus", "CodespaceWithFullRepositoryPropRuntimeConstraints", ), - ".group_0414": ("Email",), - ".group_0415": ( + ".group_0416": ("Email",), + ".group_0417": ( "GpgKey", "GpgKeyPropEmailsItems", "GpgKeyPropSubkeysItems", "GpgKeyPropSubkeysItemsPropEmailsItems", ), - ".group_0416": ("Key",), - ".group_0417": ( + ".group_0418": ("Key",), + ".group_0419": ( "UserMarketplacePurchase", "MarketplaceAccount", ), - ".group_0418": ("SocialAccount",), - ".group_0419": ("SshSigningKey",), - ".group_0420": ("StarredRepository",), - ".group_0421": ( + ".group_0420": ("SocialAccount",), + ".group_0421": ("SshSigningKey",), + ".group_0422": ("StarredRepository",), + ".group_0423": ( "Hovercard", "HovercardPropContextsItems", ), - ".group_0422": ("KeySimple",), - ".group_0423": ( + ".group_0424": ("KeySimple",), + ".group_0425": ( "BillingUsageReportUser", "BillingUsageReportUserPropUsageItemsItems", ), - ".group_0424": ("EnterpriseWebhooks",), - ".group_0425": ("SimpleInstallation",), - ".group_0426": ("OrganizationSimpleWebhooks",), - ".group_0427": ( + ".group_0426": ("EnterpriseWebhooks",), + ".group_0427": ("SimpleInstallation",), + ".group_0428": ("OrganizationSimpleWebhooks",), + ".group_0429": ( "RepositoryWebhooks", "RepositoryWebhooksPropPermissions", "RepositoryWebhooksPropCustomProperties", @@ -9710,27 +9657,27 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), - ".group_0428": ("WebhooksRule",), - ".group_0429": ("SimpleCheckSuite",), - ".group_0430": ( + ".group_0430": ("WebhooksRule",), + ".group_0431": ("SimpleCheckSuite",), + ".group_0432": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0431": ("WebhooksDeployKey",), - ".group_0432": ("WebhooksWorkflow",), - ".group_0433": ( + ".group_0433": ("WebhooksDeployKey",), + ".group_0434": ("WebhooksWorkflow",), + ".group_0435": ( "WebhooksApprover", "WebhooksReviewersItems", "WebhooksReviewersItemsPropReviewer", ), - ".group_0434": ("WebhooksWorkflowJobRun",), - ".group_0435": ("WebhooksUser",), - ".group_0436": ( + ".group_0436": ("WebhooksWorkflowJobRun",), + ".group_0437": ("WebhooksUser",), + ".group_0438": ( "WebhooksAnswer", "WebhooksAnswerPropReactions", "WebhooksAnswerPropUser", ), - ".group_0437": ( + ".group_0439": ( "Discussion", "Label", "DiscussionPropAnswerChosenBy", @@ -9738,24 +9685,24 @@ "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0438": ( + ".group_0440": ( "WebhooksComment", "WebhooksCommentPropReactions", "WebhooksCommentPropUser", ), - ".group_0439": ("WebhooksLabel",), - ".group_0440": ("WebhooksRepositoriesItems",), - ".group_0441": ("WebhooksRepositoriesAddedItems",), - ".group_0442": ( + ".group_0441": ("WebhooksLabel",), + ".group_0442": ("WebhooksRepositoriesItems",), + ".group_0443": ("WebhooksRepositoriesAddedItems",), + ".group_0444": ( "WebhooksIssueComment", "WebhooksIssueCommentPropReactions", "WebhooksIssueCommentPropUser", ), - ".group_0443": ( + ".group_0445": ( "WebhooksChanges", "WebhooksChangesPropBody", ), - ".group_0444": ( + ".group_0446": ( "WebhooksIssue", "WebhooksIssuePropAssignee", "WebhooksIssuePropAssigneesItems", @@ -9767,14 +9714,13 @@ "WebhooksIssuePropPerformedViaGithubAppPropPermissions", "WebhooksIssuePropPullRequest", "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", "WebhooksIssuePropUser", ), - ".group_0445": ( + ".group_0447": ( "WebhooksMilestone", "WebhooksMilestonePropCreator", ), - ".group_0446": ( + ".group_0448": ( "WebhooksIssue2", "WebhooksIssue2PropAssignee", "WebhooksIssue2PropAssigneesItems", @@ -9786,34 +9732,33 @@ "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", "WebhooksIssue2PropPullRequest", "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", "WebhooksIssue2PropUser", ), - ".group_0447": ("WebhooksUserMannequin",), - ".group_0448": ( + ".group_0449": ("WebhooksUserMannequin",), + ".group_0450": ( "WebhooksMarketplacePurchase", "WebhooksMarketplacePurchasePropAccount", "WebhooksMarketplacePurchasePropPlan", ), - ".group_0449": ( + ".group_0451": ( "WebhooksPreviousMarketplacePurchase", "WebhooksPreviousMarketplacePurchasePropAccount", "WebhooksPreviousMarketplacePurchasePropPlan", ), - ".group_0450": ( + ".group_0452": ( "WebhooksTeam", "WebhooksTeamPropParent", ), - ".group_0451": ("MergeGroup",), - ".group_0452": ( + ".group_0453": ("MergeGroup",), + ".group_0454": ( "WebhooksMilestone3", "WebhooksMilestone3PropCreator", ), - ".group_0453": ( + ".group_0455": ( "WebhooksMembership", "WebhooksMembershipPropUser", ), - ".group_0454": ( + ".group_0456": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -9829,25 +9774,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0455": ( + ".group_0457": ( "WebhooksProjectCard", "WebhooksProjectCardPropCreator", ), - ".group_0456": ( + ".group_0458": ( "WebhooksProject", "WebhooksProjectPropCreator", ), - ".group_0457": ("WebhooksProjectColumn",), - ".group_0458": ("ProjectsV2",), - ".group_0459": ( + ".group_0459": ("WebhooksProjectColumn",), + ".group_0460": ("ProjectsV2",), + ".group_0461": ( "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", ), - ".group_0460": ("ProjectsV2Item",), - ".group_0461": ("ProjectsV2StatusUpdate",), - ".group_0462": ("PullRequestWebhook",), - ".group_0463": ("PullRequestWebhookAllof1",), - ".group_0464": ( + ".group_0462": ("ProjectsV2Item",), + ".group_0463": ("ProjectsV2StatusUpdate",), + ".group_0464": ("PullRequestWebhook",), + ".group_0465": ("PullRequestWebhookAllof1",), + ".group_0466": ( "WebhooksPullRequest5", "WebhooksPullRequest5PropAssignee", "WebhooksPullRequest5PropAssigneesItems", @@ -9885,7 +9830,7 @@ "WebhooksPullRequest5PropRequestedTeamsItems", "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", ), - ".group_0465": ( + ".group_0467": ( "WebhooksReviewComment", "WebhooksReviewCommentPropReactions", "WebhooksReviewCommentPropUser", @@ -9894,33 +9839,33 @@ "WebhooksReviewCommentPropLinksPropPullRequest", "WebhooksReviewCommentPropLinksPropSelf", ), - ".group_0466": ( + ".group_0468": ( "WebhooksReview", "WebhooksReviewPropUser", "WebhooksReviewPropLinks", "WebhooksReviewPropLinksPropHtml", "WebhooksReviewPropLinksPropPullRequest", ), - ".group_0467": ( + ".group_0469": ( "WebhooksRelease", "WebhooksReleasePropAuthor", "WebhooksReleasePropReactions", "WebhooksReleasePropAssetsItems", "WebhooksReleasePropAssetsItemsPropUploader", ), - ".group_0468": ( + ".group_0470": ( "WebhooksRelease1", "WebhooksRelease1PropAssetsItems", "WebhooksRelease1PropAssetsItemsPropUploader", "WebhooksRelease1PropAuthor", "WebhooksRelease1PropReactions", ), - ".group_0469": ( + ".group_0471": ( "WebhooksAlert", "WebhooksAlertPropDismisser", ), - ".group_0470": ("SecretScanningAlertWebhook",), - ".group_0471": ( + ".group_0472": ("SecretScanningAlertWebhook",), + ".group_0473": ( "WebhooksSecurityAdvisory", "WebhooksSecurityAdvisoryPropCvss", "WebhooksSecurityAdvisoryPropCwesItems", @@ -9930,27 +9875,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0472": ( + ".group_0474": ( "WebhooksSponsorship", "WebhooksSponsorshipPropMaintainer", "WebhooksSponsorshipPropSponsor", "WebhooksSponsorshipPropSponsorable", "WebhooksSponsorshipPropTier", ), - ".group_0473": ( + ".group_0475": ( "WebhooksChanges8", "WebhooksChanges8PropTier", "WebhooksChanges8PropTierPropFrom", ), - ".group_0474": ( + ".group_0476": ( "WebhooksTeam1", "WebhooksTeam1PropParent", ), - ".group_0475": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0476": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0477": ("WebhookBranchProtectionRuleCreated",), - ".group_0478": ("WebhookBranchProtectionRuleDeleted",), - ".group_0479": ( + ".group_0477": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0478": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0479": ("WebhookBranchProtectionRuleCreated",), + ".group_0480": ("WebhookBranchProtectionRuleDeleted",), + ".group_0481": ( "WebhookBranchProtectionRuleEdited", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", @@ -9965,18 +9910,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0480": ("WebhookCheckRunCompleted",), - ".group_0481": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0482": ("WebhookCheckRunCreated",), - ".group_0483": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0484": ( + ".group_0482": ("WebhookCheckRunCompleted",), + ".group_0483": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0484": ("WebhookCheckRunCreated",), + ".group_0485": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0486": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0485": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0486": ("WebhookCheckRunRerequested",), - ".group_0487": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0488": ( + ".group_0487": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0488": ("WebhookCheckRunRerequested",), + ".group_0489": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0490": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -9991,7 +9936,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0489": ( + ".group_0491": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -10006,7 +9951,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0490": ( + ".group_0492": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -10021,7 +9966,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0491": ( + ".group_0493": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -10031,7 +9976,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0492": ( + ".group_0494": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -10042,7 +9987,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", ), - ".group_0493": ( + ".group_0495": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -10051,7 +9996,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0494": ( + ".group_0496": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -10061,7 +10006,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0495": ( + ".group_0497": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -10071,7 +10016,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0496": ( + ".group_0498": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -10080,32 +10025,32 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0497": ( + ".group_0499": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0498": ("WebhookCreate",), - ".group_0499": ("WebhookCustomPropertyCreated",), - ".group_0500": ( + ".group_0500": ("WebhookCreate",), + ".group_0501": ("WebhookCustomPropertyCreated",), + ".group_0502": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0501": ("WebhookCustomPropertyPromotedToEnterprise",), - ".group_0502": ("WebhookCustomPropertyUpdated",), - ".group_0503": ("WebhookCustomPropertyValuesUpdated",), - ".group_0504": ("WebhookDelete",), - ".group_0505": ("WebhookDependabotAlertAutoDismissed",), - ".group_0506": ("WebhookDependabotAlertAutoReopened",), - ".group_0507": ("WebhookDependabotAlertCreated",), - ".group_0508": ("WebhookDependabotAlertDismissed",), - ".group_0509": ("WebhookDependabotAlertFixed",), - ".group_0510": ("WebhookDependabotAlertReintroduced",), - ".group_0511": ("WebhookDependabotAlertReopened",), - ".group_0512": ("WebhookDeployKeyCreated",), - ".group_0513": ("WebhookDeployKeyDeleted",), - ".group_0514": ( + ".group_0503": ("WebhookCustomPropertyPromotedToEnterprise",), + ".group_0504": ("WebhookCustomPropertyUpdated",), + ".group_0505": ("WebhookCustomPropertyValuesUpdated",), + ".group_0506": ("WebhookDelete",), + ".group_0507": ("WebhookDependabotAlertAutoDismissed",), + ".group_0508": ("WebhookDependabotAlertAutoReopened",), + ".group_0509": ("WebhookDependabotAlertCreated",), + ".group_0510": ("WebhookDependabotAlertDismissed",), + ".group_0511": ("WebhookDependabotAlertFixed",), + ".group_0512": ("WebhookDependabotAlertReintroduced",), + ".group_0513": ("WebhookDependabotAlertReopened",), + ".group_0514": ("WebhookDeployKeyCreated",), + ".group_0515": ("WebhookDeployKeyDeleted",), + ".group_0516": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropDeployment", "WebhookDeploymentCreatedPropDeploymentPropCreator", @@ -10127,8 +10072,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0515": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0516": ( + ".group_0517": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0518": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", "WebhookDeploymentReviewApprovedPropWorkflowRun", @@ -10146,7 +10091,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0517": ( + ".group_0519": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", "WebhookDeploymentReviewRejectedPropWorkflowRun", @@ -10164,7 +10109,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0518": ( + ".group_0520": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", "WebhookDeploymentReviewRequestedPropReviewersItems", @@ -10184,7 +10129,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0519": ( + ".group_0521": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropDeployment", @@ -10212,119 +10157,116 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0520": ("WebhookDiscussionAnswered",), - ".group_0521": ( + ".group_0522": ("WebhookDiscussionAnswered",), + ".group_0523": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0522": ("WebhookDiscussionClosed",), - ".group_0523": ("WebhookDiscussionCommentCreated",), - ".group_0524": ("WebhookDiscussionCommentDeleted",), - ".group_0525": ( + ".group_0524": ("WebhookDiscussionClosed",), + ".group_0525": ("WebhookDiscussionCommentCreated",), + ".group_0526": ("WebhookDiscussionCommentDeleted",), + ".group_0527": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", ), - ".group_0526": ("WebhookDiscussionCreated",), - ".group_0527": ("WebhookDiscussionDeleted",), - ".group_0528": ( + ".group_0528": ("WebhookDiscussionCreated",), + ".group_0529": ("WebhookDiscussionDeleted",), + ".group_0530": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0529": ("WebhookDiscussionLabeled",), - ".group_0530": ("WebhookDiscussionLocked",), - ".group_0531": ("WebhookDiscussionPinned",), - ".group_0532": ("WebhookDiscussionReopened",), - ".group_0533": ("WebhookDiscussionTransferred",), - ".group_0534": ("WebhookDiscussionTransferredPropChanges",), - ".group_0535": ("WebhookDiscussionUnanswered",), - ".group_0536": ("WebhookDiscussionUnlabeled",), - ".group_0537": ("WebhookDiscussionUnlocked",), - ".group_0538": ("WebhookDiscussionUnpinned",), - ".group_0539": ("WebhookFork",), - ".group_0540": ( + ".group_0531": ("WebhookDiscussionLabeled",), + ".group_0532": ("WebhookDiscussionLocked",), + ".group_0533": ("WebhookDiscussionPinned",), + ".group_0534": ("WebhookDiscussionReopened",), + ".group_0535": ("WebhookDiscussionTransferred",), + ".group_0536": ("WebhookDiscussionTransferredPropChanges",), + ".group_0537": ("WebhookDiscussionUnanswered",), + ".group_0538": ("WebhookDiscussionUnlabeled",), + ".group_0539": ("WebhookDiscussionUnlocked",), + ".group_0540": ("WebhookDiscussionUnpinned",), + ".group_0541": ("WebhookFork",), + ".group_0542": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0541": ( + ".group_0543": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0542": ("WebhookForkPropForkeeAllof0PropPermissions",), - ".group_0543": ( + ".group_0544": ("WebhookForkPropForkeeAllof0PropPermissions",), + ".group_0545": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0544": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0545": ( + ".group_0546": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0547": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0546": ("WebhookInstallationCreated",), - ".group_0547": ("WebhookInstallationDeleted",), - ".group_0548": ("WebhookInstallationNewPermissionsAccepted",), - ".group_0549": ( + ".group_0548": ("WebhookInstallationCreated",), + ".group_0549": ("WebhookInstallationDeleted",), + ".group_0550": ("WebhookInstallationNewPermissionsAccepted",), + ".group_0551": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ), - ".group_0550": ( + ".group_0552": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ), - ".group_0551": ("WebhookInstallationSuspend",), - ".group_0552": ( + ".group_0553": ("WebhookInstallationSuspend",), + ".group_0554": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0553": ("WebhookInstallationUnsuspend",), - ".group_0554": ("WebhookIssueCommentCreated",), - ".group_0555": ( + ".group_0555": ("WebhookInstallationUnsuspend",), + ".group_0556": ("WebhookIssueCommentCreated",), + ".group_0557": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0556": ( + ".group_0558": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0557": ( + ".group_0559": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0558": ( + ".group_0560": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0559": ( + ".group_0561": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0560": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0561": ( + ".group_0562": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0563": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0562": ( + ".group_0564": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0563": ( - "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary", - ), - ".group_0564": ( + ".group_0565": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -10334,41 +10276,38 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0565": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0566": ( + ".group_0566": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0567": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0567": ("WebhookIssueCommentDeleted",), - ".group_0568": ( + ".group_0568": ("WebhookIssueCommentDeleted",), + ".group_0569": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0569": ( + ".group_0570": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0570": ( + ".group_0571": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0571": ( + ".group_0572": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0572": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0573": ( + ".group_0573": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0574": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0574": ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", - ), ".group_0575": ( - "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), ".group_0576": ( "WebhookIssueCommentDeletedPropIssueAllof1", @@ -10414,9 +10353,6 @@ "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), ".group_0587": ( - "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary", - ), - ".group_0588": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -10426,13 +10362,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0589": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0590": ( + ".group_0588": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0589": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0591": ("WebhookIssuesAssigned",), - ".group_0592": ("WebhookIssuesClosed",), - ".group_0593": ( + ".group_0590": ("WebhookIssuesAssigned",), + ".group_0591": ("WebhookIssuesClosed",), + ".group_0592": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -10440,7 +10376,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0594": ( + ".group_0593": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -10448,18 +10384,15 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0595": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0596": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0597": ( + ".group_0594": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0595": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0596": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0598": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0597": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0598": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), ".group_0599": ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", - ), - ".group_0600": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -10469,10 +10402,10 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0601": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0602": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0603": ("WebhookIssuesDeleted",), - ".group_0604": ( + ".group_0600": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0601": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0602": ("WebhookIssuesDeleted",), + ".group_0603": ( "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", "WebhookIssuesDeletedPropIssuePropAssigneesItems", @@ -10484,11 +10417,10 @@ "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesDeletedPropIssuePropPullRequest", "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0605": ("WebhookIssuesDemilestoned",), - ".group_0606": ( + ".group_0604": ("WebhookIssuesDemilestoned",), + ".group_0605": ( "WebhookIssuesDemilestonedPropIssue", "WebhookIssuesDemilestonedPropIssuePropAssignee", "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", @@ -10500,16 +10432,15 @@ "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesDemilestonedPropIssuePropPullRequest", "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesDemilestonedPropIssuePropUser", ), - ".group_0607": ( + ".group_0606": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", "WebhookIssuesEditedPropChangesPropBody", "WebhookIssuesEditedPropChangesPropTitle", ), - ".group_0608": ( + ".group_0607": ( "WebhookIssuesEditedPropIssue", "WebhookIssuesEditedPropIssuePropAssignee", "WebhookIssuesEditedPropIssuePropAssigneesItems", @@ -10521,11 +10452,10 @@ "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesEditedPropIssuePropPullRequest", "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0609": ("WebhookIssuesLabeled",), - ".group_0610": ( + ".group_0608": ("WebhookIssuesLabeled",), + ".group_0609": ( "WebhookIssuesLabeledPropIssue", "WebhookIssuesLabeledPropIssuePropAssignee", "WebhookIssuesLabeledPropIssuePropAssigneesItems", @@ -10537,11 +10467,10 @@ "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesLabeledPropIssuePropPullRequest", "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0611": ("WebhookIssuesLocked",), - ".group_0612": ( + ".group_0610": ("WebhookIssuesLocked",), + ".group_0611": ( "WebhookIssuesLockedPropIssue", "WebhookIssuesLockedPropIssuePropAssignee", "WebhookIssuesLockedPropIssuePropAssigneesItems", @@ -10553,11 +10482,10 @@ "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesLockedPropIssuePropPullRequest", "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0613": ("WebhookIssuesMilestoned",), - ".group_0614": ( + ".group_0612": ("WebhookIssuesMilestoned",), + ".group_0613": ( "WebhookIssuesMilestonedPropIssue", "WebhookIssuesMilestonedPropIssuePropAssignee", "WebhookIssuesMilestonedPropIssuePropAssigneesItems", @@ -10569,11 +10497,10 @@ "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesMilestonedPropIssuePropPullRequest", "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesMilestonedPropIssuePropUser", ), - ".group_0615": ("WebhookIssuesOpened",), - ".group_0616": ( + ".group_0614": ("WebhookIssuesOpened",), + ".group_0615": ( "WebhookIssuesOpenedPropChanges", "WebhookIssuesOpenedPropChangesPropOldRepository", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", @@ -10581,7 +10508,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0617": ( + ".group_0616": ( "WebhookIssuesOpenedPropChangesPropOldIssue", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", @@ -10593,10 +10520,9 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", ), - ".group_0618": ( + ".group_0617": ( "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", "WebhookIssuesOpenedPropIssuePropAssigneesItems", @@ -10608,12 +10534,11 @@ "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesOpenedPropIssuePropPullRequest", "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropIssuePropUser", ), - ".group_0619": ("WebhookIssuesPinned",), - ".group_0620": ("WebhookIssuesReopened",), - ".group_0621": ( + ".group_0618": ("WebhookIssuesPinned",), + ".group_0619": ("WebhookIssuesReopened",), + ".group_0620": ( "WebhookIssuesReopenedPropIssue", "WebhookIssuesReopenedPropIssuePropAssignee", "WebhookIssuesReopenedPropIssuePropAssigneesItems", @@ -10625,11 +10550,10 @@ "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesReopenedPropIssuePropPullRequest", "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0622": ("WebhookIssuesTransferred",), - ".group_0623": ( + ".group_0621": ("WebhookIssuesTransferred",), + ".group_0622": ( "WebhookIssuesTransferredPropChanges", "WebhookIssuesTransferredPropChangesPropNewRepository", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", @@ -10637,7 +10561,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0624": ( + ".group_0623": ( "WebhookIssuesTransferredPropChangesPropNewIssue", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", @@ -10649,14 +10573,13 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", ), - ".group_0625": ("WebhookIssuesTyped",), - ".group_0626": ("WebhookIssuesUnassigned",), - ".group_0627": ("WebhookIssuesUnlabeled",), - ".group_0628": ("WebhookIssuesUnlocked",), - ".group_0629": ( + ".group_0624": ("WebhookIssuesTyped",), + ".group_0625": ("WebhookIssuesUnassigned",), + ".group_0626": ("WebhookIssuesUnlabeled",), + ".group_0627": ("WebhookIssuesUnlocked",), + ".group_0628": ( "WebhookIssuesUnlockedPropIssue", "WebhookIssuesUnlockedPropIssuePropAssignee", "WebhookIssuesUnlockedPropIssuePropAssigneesItems", @@ -10668,107 +10591,106 @@ "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", "WebhookIssuesUnlockedPropIssuePropPullRequest", "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", "WebhookIssuesUnlockedPropIssuePropUser", ), - ".group_0630": ("WebhookIssuesUnpinned",), - ".group_0631": ("WebhookIssuesUntyped",), - ".group_0632": ("WebhookLabelCreated",), - ".group_0633": ("WebhookLabelDeleted",), - ".group_0634": ( + ".group_0629": ("WebhookIssuesUnpinned",), + ".group_0630": ("WebhookIssuesUntyped",), + ".group_0631": ("WebhookLabelCreated",), + ".group_0632": ("WebhookLabelDeleted",), + ".group_0633": ( "WebhookLabelEdited", "WebhookLabelEditedPropChanges", "WebhookLabelEditedPropChangesPropColor", "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0635": ("WebhookMarketplacePurchaseCancelled",), - ".group_0636": ( + ".group_0634": ("WebhookMarketplacePurchaseCancelled",), + ".group_0635": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0637": ( + ".group_0636": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0638": ( + ".group_0637": ( "WebhookMarketplacePurchasePendingChangeCancelled", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ), - ".group_0639": ("WebhookMarketplacePurchasePurchased",), - ".group_0640": ( + ".group_0638": ("WebhookMarketplacePurchasePurchased",), + ".group_0639": ( "WebhookMemberAdded", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0641": ( + ".group_0640": ( "WebhookMemberEdited", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0642": ("WebhookMemberRemoved",), - ".group_0643": ( + ".group_0641": ("WebhookMemberRemoved",), + ".group_0642": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropSender", ), - ".group_0644": ( + ".group_0643": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropSender", ), - ".group_0645": ("WebhookMergeGroupChecksRequested",), - ".group_0646": ("WebhookMergeGroupDestroyed",), - ".group_0647": ( + ".group_0644": ("WebhookMergeGroupChecksRequested",), + ".group_0645": ("WebhookMergeGroupDestroyed",), + ".group_0646": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0648": ("WebhookMilestoneClosed",), - ".group_0649": ("WebhookMilestoneCreated",), - ".group_0650": ("WebhookMilestoneDeleted",), - ".group_0651": ( + ".group_0647": ("WebhookMilestoneClosed",), + ".group_0648": ("WebhookMilestoneCreated",), + ".group_0649": ("WebhookMilestoneDeleted",), + ".group_0650": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", "WebhookMilestoneEditedPropChangesPropDueOn", "WebhookMilestoneEditedPropChangesPropTitle", ), - ".group_0652": ("WebhookMilestoneOpened",), - ".group_0653": ("WebhookOrgBlockBlocked",), - ".group_0654": ("WebhookOrgBlockUnblocked",), - ".group_0655": ("WebhookOrganizationDeleted",), - ".group_0656": ("WebhookOrganizationMemberAdded",), - ".group_0657": ( + ".group_0651": ("WebhookMilestoneOpened",), + ".group_0652": ("WebhookOrgBlockBlocked",), + ".group_0653": ("WebhookOrgBlockUnblocked",), + ".group_0654": ("WebhookOrganizationDeleted",), + ".group_0655": ("WebhookOrganizationMemberAdded",), + ".group_0656": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0658": ("WebhookOrganizationMemberRemoved",), - ".group_0659": ( + ".group_0657": ("WebhookOrganizationMemberRemoved",), + ".group_0658": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", ), - ".group_0660": ( + ".group_0659": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0661": ("WebhookPackagePublished",), - ".group_0662": ( + ".group_0660": ("WebhookPackagePublished",), + ".group_0661": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0663": ( + ".group_0662": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -10800,13 +10722,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0664": ("WebhookPackageUpdated",), - ".group_0665": ( + ".group_0663": ("WebhookPackageUpdated",), + ".group_0664": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0666": ( + ".group_0665": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -10815,75 +10737,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0667": ( + ".group_0666": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0668": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0669": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0670": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0671": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0672": ("WebhookPing",), - ".group_0673": ( + ".group_0667": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0668": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0669": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0670": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0671": ("WebhookPing",), + ".group_0672": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0674": ("WebhookPingFormEncoded",), - ".group_0675": ( + ".group_0673": ("WebhookPingFormEncoded",), + ".group_0674": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", ), - ".group_0676": ("WebhookProjectCardCreated",), - ".group_0677": ( + ".group_0675": ("WebhookProjectCardCreated",), + ".group_0676": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0678": ( + ".group_0677": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", ), - ".group_0679": ( + ".group_0678": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0680": ( + ".group_0679": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0681": ( + ".group_0680": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0682": ("WebhookProjectClosed",), - ".group_0683": ("WebhookProjectColumnCreated",), - ".group_0684": ("WebhookProjectColumnDeleted",), - ".group_0685": ( + ".group_0681": ("WebhookProjectClosed",), + ".group_0682": ("WebhookProjectColumnCreated",), + ".group_0683": ("WebhookProjectColumnDeleted",), + ".group_0684": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0686": ("WebhookProjectColumnMoved",), - ".group_0687": ("WebhookProjectCreated",), - ".group_0688": ("WebhookProjectDeleted",), - ".group_0689": ( + ".group_0685": ("WebhookProjectColumnMoved",), + ".group_0686": ("WebhookProjectCreated",), + ".group_0687": ("WebhookProjectDeleted",), + ".group_0688": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", "WebhookProjectEditedPropChangesPropName", ), - ".group_0690": ("WebhookProjectReopened",), - ".group_0691": ("WebhookProjectsV2ProjectClosed",), - ".group_0692": ("WebhookProjectsV2ProjectCreated",), - ".group_0693": ("WebhookProjectsV2ProjectDeleted",), - ".group_0694": ( + ".group_0689": ("WebhookProjectReopened",), + ".group_0690": ("WebhookProjectsV2ProjectClosed",), + ".group_0691": ("WebhookProjectsV2ProjectCreated",), + ".group_0692": ("WebhookProjectsV2ProjectDeleted",), + ".group_0693": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -10891,15 +10813,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0695": ("WebhookProjectsV2ItemArchived",), - ".group_0696": ( + ".group_0694": ("WebhookProjectsV2ItemArchived",), + ".group_0695": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0697": ("WebhookProjectsV2ItemCreated",), - ".group_0698": ("WebhookProjectsV2ItemDeleted",), - ".group_0699": ( + ".group_0696": ("WebhookProjectsV2ItemCreated",), + ".group_0697": ("WebhookProjectsV2ItemDeleted",), + ".group_0698": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", @@ -10908,16 +10830,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0700": ( + ".group_0699": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0701": ("WebhookProjectsV2ItemRestored",), - ".group_0702": ("WebhookProjectsV2ProjectReopened",), - ".group_0703": ("WebhookProjectsV2StatusUpdateCreated",), - ".group_0704": ("WebhookProjectsV2StatusUpdateDeleted",), - ".group_0705": ( + ".group_0700": ("WebhookProjectsV2ItemRestored",), + ".group_0701": ("WebhookProjectsV2ProjectReopened",), + ".group_0702": ("WebhookProjectsV2StatusUpdateCreated",), + ".group_0703": ("WebhookProjectsV2StatusUpdateDeleted",), + ".group_0704": ( "WebhookProjectsV2StatusUpdateEdited", "WebhookProjectsV2StatusUpdateEditedPropChanges", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", @@ -10925,8 +10847,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", ), - ".group_0706": ("WebhookPublic",), - ".group_0707": ( + ".group_0705": ("WebhookPublic",), + ".group_0706": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", "WebhookPullRequestAssignedPropPullRequestPropAssignee", @@ -10965,7 +10887,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0708": ( + ".group_0707": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -11004,7 +10926,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0709": ( + ".group_0708": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -11043,10 +10965,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0710": ("WebhookPullRequestClosed",), - ".group_0711": ("WebhookPullRequestConvertedToDraft",), - ".group_0712": ("WebhookPullRequestDemilestoned",), - ".group_0713": ( + ".group_0709": ("WebhookPullRequestClosed",), + ".group_0710": ("WebhookPullRequestConvertedToDraft",), + ".group_0711": ("WebhookPullRequestDemilestoned",), + ".group_0712": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -11085,7 +11007,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0714": ( + ".group_0713": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -11094,7 +11016,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0715": ( + ".group_0714": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -11133,7 +11055,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0716": ( + ".group_0715": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropPullRequest", "WebhookPullRequestLabeledPropPullRequestPropAssignee", @@ -11172,7 +11094,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0717": ( + ".group_0716": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -11211,11 +11133,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0718": ("WebhookPullRequestMilestoned",), - ".group_0719": ("WebhookPullRequestOpened",), - ".group_0720": ("WebhookPullRequestReadyForReview",), - ".group_0721": ("WebhookPullRequestReopened",), - ".group_0722": ( + ".group_0717": ("WebhookPullRequestMilestoned",), + ".group_0718": ("WebhookPullRequestOpened",), + ".group_0719": ("WebhookPullRequestReadyForReview",), + ".group_0720": ("WebhookPullRequestReopened",), + ".group_0721": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -11260,7 +11182,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0723": ( + ".group_0722": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropPullRequest", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", @@ -11298,7 +11220,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0724": ( + ".group_0723": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropPullRequest", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", @@ -11336,7 +11258,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0725": ( + ".group_0724": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -11379,7 +11301,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0726": ( + ".group_0725": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -11419,7 +11341,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0727": ( + ".group_0726": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -11459,7 +11381,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0728": ( + ".group_0727": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -11500,7 +11422,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0729": ( + ".group_0728": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -11540,7 +11462,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0730": ( + ".group_0729": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -11581,7 +11503,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0731": ( + ".group_0730": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropPullRequest", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", @@ -11619,7 +11541,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0732": ( + ".group_0731": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -11665,7 +11587,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0733": ( + ".group_0732": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -11711,7 +11633,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0734": ( + ".group_0733": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -11750,7 +11672,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0735": ( + ".group_0734": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropPullRequest", "WebhookPullRequestUnassignedPropPullRequestPropAssignee", @@ -11789,7 +11711,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0736": ( + ".group_0735": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropPullRequest", "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", @@ -11828,7 +11750,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0737": ( + ".group_0736": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -11867,7 +11789,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0738": ( + ".group_0737": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -11882,13 +11804,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0739": ("WebhookRegistryPackagePublished",), - ".group_0740": ( + ".group_0738": ("WebhookRegistryPackagePublished",), + ".group_0739": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0741": ( + ".group_0740": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -11919,13 +11841,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0742": ("WebhookRegistryPackageUpdated",), - ".group_0743": ( + ".group_0741": ("WebhookRegistryPackageUpdated",), + ".group_0742": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0744": ( + ".group_0743": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -11934,9 +11856,9 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0745": ("WebhookReleaseCreated",), - ".group_0746": ("WebhookReleaseDeleted",), - ".group_0747": ( + ".group_0744": ("WebhookReleaseCreated",), + ".group_0745": ("WebhookReleaseDeleted",), + ".group_0746": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", @@ -11944,7 +11866,7 @@ "WebhookReleaseEditedPropChangesPropTagName", "WebhookReleaseEditedPropChangesPropMakeLatest", ), - ".group_0748": ( + ".group_0747": ( "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", "WebhookReleasePrereleasedPropReleasePropAssetsItems", @@ -11952,19 +11874,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthor", "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0749": ("WebhookReleasePublished",), - ".group_0750": ("WebhookReleaseReleased",), - ".group_0751": ("WebhookReleaseUnpublished",), - ".group_0752": ("WebhookRepositoryAdvisoryPublished",), - ".group_0753": ("WebhookRepositoryAdvisoryReported",), - ".group_0754": ("WebhookRepositoryArchived",), - ".group_0755": ("WebhookRepositoryCreated",), - ".group_0756": ("WebhookRepositoryDeleted",), - ".group_0757": ( + ".group_0748": ("WebhookReleasePublished",), + ".group_0749": ("WebhookReleaseReleased",), + ".group_0750": ("WebhookReleaseUnpublished",), + ".group_0751": ("WebhookRepositoryAdvisoryPublished",), + ".group_0752": ("WebhookRepositoryAdvisoryReported",), + ".group_0753": ("WebhookRepositoryArchived",), + ".group_0754": ("WebhookRepositoryCreated",), + ".group_0755": ("WebhookRepositoryDeleted",), + ".group_0756": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0758": ( + ".group_0757": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -11972,25 +11894,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0759": ("WebhookRepositoryImport",), - ".group_0760": ("WebhookRepositoryPrivatized",), - ".group_0761": ("WebhookRepositoryPublicized",), - ".group_0762": ( + ".group_0758": ("WebhookRepositoryImport",), + ".group_0759": ("WebhookRepositoryPrivatized",), + ".group_0760": ("WebhookRepositoryPublicized",), + ".group_0761": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0763": ("WebhookRepositoryRulesetCreated",), - ".group_0764": ("WebhookRepositoryRulesetDeleted",), - ".group_0765": ("WebhookRepositoryRulesetEdited",), - ".group_0766": ( + ".group_0762": ("WebhookRepositoryRulesetCreated",), + ".group_0763": ("WebhookRepositoryRulesetDeleted",), + ".group_0764": ("WebhookRepositoryRulesetEdited",), + ".group_0765": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0767": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0768": ( + ".group_0766": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0767": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -11998,15 +11920,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0769": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0770": ( + ".group_0768": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0769": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0771": ( + ".group_0770": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -12014,31 +11936,31 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0772": ("WebhookRepositoryUnarchived",), - ".group_0773": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0774": ( + ".group_0771": ("WebhookRepositoryUnarchived",), + ".group_0772": ("WebhookRepositoryVulnerabilityAlertCreate",), + ".group_0773": ( "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ), - ".group_0775": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0776": ( + ".group_0774": ("WebhookRepositoryVulnerabilityAlertReopen",), + ".group_0775": ( "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ), - ".group_0777": ("WebhookSecretScanningAlertCreated",), - ".group_0778": ("WebhookSecretScanningAlertLocationCreated",), - ".group_0779": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0780": ("WebhookSecretScanningAlertPubliclyLeaked",), - ".group_0781": ("WebhookSecretScanningAlertReopened",), - ".group_0782": ("WebhookSecretScanningAlertResolved",), - ".group_0783": ("WebhookSecretScanningAlertValidated",), - ".group_0784": ("WebhookSecretScanningScanCompleted",), - ".group_0785": ("WebhookSecurityAdvisoryPublished",), - ".group_0786": ("WebhookSecurityAdvisoryUpdated",), - ".group_0787": ("WebhookSecurityAdvisoryWithdrawn",), - ".group_0788": ( + ".group_0776": ("WebhookSecretScanningAlertCreated",), + ".group_0777": ("WebhookSecretScanningAlertLocationCreated",), + ".group_0778": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0779": ("WebhookSecretScanningAlertPubliclyLeaked",), + ".group_0780": ("WebhookSecretScanningAlertReopened",), + ".group_0781": ("WebhookSecretScanningAlertResolved",), + ".group_0782": ("WebhookSecretScanningAlertValidated",), + ".group_0783": ("WebhookSecretScanningScanCompleted",), + ".group_0784": ("WebhookSecurityAdvisoryPublished",), + ".group_0785": ("WebhookSecurityAdvisoryUpdated",), + ".group_0786": ("WebhookSecurityAdvisoryWithdrawn",), + ".group_0787": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", @@ -12048,22 +11970,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0789": ("WebhookSecurityAndAnalysis",), - ".group_0790": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0791": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0792": ("WebhookSponsorshipCancelled",), - ".group_0793": ("WebhookSponsorshipCreated",), - ".group_0794": ( + ".group_0788": ("WebhookSecurityAndAnalysis",), + ".group_0789": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0790": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0791": ("WebhookSponsorshipCancelled",), + ".group_0792": ("WebhookSponsorshipCreated",), + ".group_0793": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", ), - ".group_0795": ("WebhookSponsorshipPendingCancellation",), - ".group_0796": ("WebhookSponsorshipPendingTierChange",), - ".group_0797": ("WebhookSponsorshipTierChanged",), - ".group_0798": ("WebhookStarCreated",), - ".group_0799": ("WebhookStarDeleted",), - ".group_0800": ( + ".group_0794": ("WebhookSponsorshipPendingCancellation",), + ".group_0795": ("WebhookSponsorshipPendingTierChange",), + ".group_0796": ("WebhookSponsorshipTierChanged",), + ".group_0797": ("WebhookStarCreated",), + ".group_0798": ("WebhookStarDeleted",), + ".group_0799": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -12077,16 +11999,16 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0801": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0802": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0803": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0804": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0805": ("WebhookSubIssuesParentIssueAdded",), - ".group_0806": ("WebhookSubIssuesParentIssueRemoved",), - ".group_0807": ("WebhookSubIssuesSubIssueAdded",), - ".group_0808": ("WebhookSubIssuesSubIssueRemoved",), - ".group_0809": ("WebhookTeamAdd",), - ".group_0810": ( + ".group_0800": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0801": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0802": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0803": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0804": ("WebhookSubIssuesParentIssueAdded",), + ".group_0805": ("WebhookSubIssuesParentIssueRemoved",), + ".group_0806": ("WebhookSubIssuesSubIssueAdded",), + ".group_0807": ("WebhookSubIssuesSubIssueRemoved",), + ".group_0808": ("WebhookTeamAdd",), + ".group_0809": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -12094,7 +12016,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ), - ".group_0811": ( + ".group_0810": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -12102,7 +12024,7 @@ "WebhookTeamCreatedPropRepositoryPropOwner", "WebhookTeamCreatedPropRepositoryPropPermissions", ), - ".group_0812": ( + ".group_0811": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -12110,7 +12032,7 @@ "WebhookTeamDeletedPropRepositoryPropOwner", "WebhookTeamDeletedPropRepositoryPropPermissions", ), - ".group_0813": ( + ".group_0812": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -12126,7 +12048,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0814": ( + ".group_0813": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -12134,48 +12056,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ), - ".group_0815": ("WebhookWatchStarted",), - ".group_0816": ( + ".group_0814": ("WebhookWatchStarted",), + ".group_0815": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0817": ( + ".group_0816": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0818": ( + ".group_0817": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0819": ( + ".group_0818": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0820": ( + ".group_0819": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0821": ( + ".group_0820": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0822": ( + ".group_0821": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0823": ( + ".group_0822": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0824": ( + ".group_0823": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0825": ( + ".group_0824": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflowRun", "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", @@ -12194,7 +12116,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0826": ( + ".group_0825": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflowRun", "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", @@ -12213,7 +12135,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0827": ( + ".group_0826": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflowRun", "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", @@ -12232,284 +12154,284 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0828": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0829": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0830": ("AppHookConfigPatchBody",), - ".group_0831": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0832": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0833": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0834": ("ApplicationsClientIdTokenPostBody",), - ".group_0835": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0836": ("ApplicationsClientIdTokenPatchBody",), - ".group_0837": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0838": ("CredentialsRevokePostBody",), - ".group_0839": ("EmojisGetResponse200",), - ".group_0840": ( + ".group_0827": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0828": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0829": ("AppHookConfigPatchBody",), + ".group_0830": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0831": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0832": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0833": ("ApplicationsClientIdTokenPostBody",), + ".group_0834": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0835": ("ApplicationsClientIdTokenPatchBody",), + ".group_0836": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0837": ("CredentialsRevokePostBody",), + ".group_0838": ("EmojisGetResponse200",), + ".group_0839": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0841": ( + ".group_0840": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0842": ( + ".group_0841": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0843": ( + ".group_0842": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0844": ( + ".group_0843": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0845": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), - ".group_0846": ( + ".group_0844": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), + ".group_0845": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0847": ( + ".group_0846": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0848": ( + ".group_0847": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0849": ("GistsGistIdCommentsPostBody",), - ".group_0850": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0851": ("GistsGistIdStarGetResponse404",), - ".group_0852": ("InstallationRepositoriesGetResponse200",), - ".group_0853": ("MarkdownPostBody",), - ".group_0854": ("NotificationsPutBody",), - ".group_0855": ("NotificationsPutResponse202",), - ".group_0856": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0857": ("OrganizationsOrgDependabotRepositoryAccessPatchBody",), - ".group_0858": ( + ".group_0848": ("GistsGistIdCommentsPostBody",), + ".group_0849": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0850": ("GistsGistIdStarGetResponse404",), + ".group_0851": ("InstallationRepositoriesGetResponse200",), + ".group_0852": ("MarkdownPostBody",), + ".group_0853": ("NotificationsPutBody",), + ".group_0854": ("NotificationsPutResponse202",), + ".group_0855": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0856": ("OrganizationsOrgDependabotRepositoryAccessPatchBody",), + ".group_0857": ( "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody", ), - ".group_0859": ("OrgsOrgPatchBody",), - ".group_0860": ( + ".group_0858": ("OrgsOrgPatchBody",), + ".group_0859": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0861": ("OrgsOrgActionsHostedRunnersGetResponse200",), - ".group_0862": ( + ".group_0860": ("OrgsOrgActionsHostedRunnersGetResponse200",), + ".group_0861": ( "OrgsOrgActionsHostedRunnersPostBody", "OrgsOrgActionsHostedRunnersPostBodyPropImage", ), - ".group_0863": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), - ".group_0864": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), - ".group_0865": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), - ".group_0866": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), - ".group_0867": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), - ".group_0868": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0869": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0870": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0871": ( + ".group_0862": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), + ".group_0863": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), + ".group_0864": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), + ".group_0865": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), + ".group_0866": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), + ".group_0867": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0868": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0869": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0870": ( "OrgsOrgActionsRunnerGroupsGetResponse200", "RunnerGroupsOrg", ), - ".group_0872": ("OrgsOrgActionsRunnerGroupsPostBody",), - ".group_0873": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), - ".group_0874": ( + ".group_0871": ("OrgsOrgActionsRunnerGroupsPostBody",), + ".group_0872": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), + ".group_0873": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200", ), - ".group_0875": ( + ".group_0874": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", ), - ".group_0876": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), - ".group_0877": ( + ".group_0875": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), + ".group_0876": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0878": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), - ".group_0879": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0880": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0881": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), - ".group_0882": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), - ".group_0883": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0884": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0885": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), - ".group_0886": ( + ".group_0877": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), + ".group_0878": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0879": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0880": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), + ".group_0881": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), + ".group_0882": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0883": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0884": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), + ".group_0885": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_0887": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_0888": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_0889": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_0890": ( + ".group_0886": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_0887": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_0888": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_0889": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_0891": ("OrgsOrgActionsVariablesPostBody",), - ".group_0892": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_0893": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_0894": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_0895": ("OrgsOrgAttestationsBulkListPostBody",), - ".group_0896": ( + ".group_0890": ("OrgsOrgActionsVariablesPostBody",), + ".group_0891": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_0892": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_0893": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_0894": ("OrgsOrgAttestationsBulkListPostBody",), + ".group_0895": ( "OrgsOrgAttestationsBulkListPostResponse200", "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", ), - ".group_0897": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0",), - ".group_0898": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1",), - ".group_0899": ( + ".group_0896": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0",), + ".group_0897": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1",), + ".group_0898": ( "OrgsOrgAttestationsSubjectDigestGetResponse200", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_0900": ( + ".group_0899": ( "OrgsOrgCampaignsPostBody", "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", ), - ".group_0901": ("OrgsOrgCampaignsCampaignNumberPatchBody",), - ".group_0902": ( + ".group_0900": ("OrgsOrgCampaignsCampaignNumberPatchBody",), + ".group_0901": ( "OrgsOrgCodeSecurityConfigurationsPostBody", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0903": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), - ".group_0904": ( + ".group_0902": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), + ".group_0903": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0905": ( + ".group_0904": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0906": ( + ".group_0905": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0907": ( + ".group_0906": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0908": ("OrgsOrgCodespacesGetResponse200",), - ".group_0909": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0910": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0911": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0912": ( + ".group_0907": ("OrgsOrgCodespacesGetResponse200",), + ".group_0908": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0909": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0910": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0911": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0913": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0914": ( + ".group_0912": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0913": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0915": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0916": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0917": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0918": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0919": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0920": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0921": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0922": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0923": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0924": ( + ".group_0914": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0915": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0916": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0917": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0918": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0919": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0920": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0921": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0922": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0923": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0925": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0926": ( + ".group_0924": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0925": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0927": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0928": ( + ".group_0926": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0927": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0929": ( + ".group_0928": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0930": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0931": ("OrgsOrgInstallationsGetResponse200",), - ".group_0932": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0933": ("OrgsOrgInvitationsPostBody",), - ".group_0934": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0935": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0936": ("OrgsOrgMigrationsPostBody",), - ".group_0937": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0938": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0939": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0940": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0941": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0942": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0943": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0944": ( + ".group_0929": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0930": ("OrgsOrgInstallationsGetResponse200",), + ".group_0931": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0932": ("OrgsOrgInvitationsPostBody",), + ".group_0933": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0934": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0935": ("OrgsOrgMigrationsPostBody",), + ".group_0936": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0937": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0938": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0939": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0940": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0941": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0942": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0943": ( "OrgsOrgPrivateRegistriesGetResponse200", "OrgPrivateRegistryConfiguration", ), - ".group_0945": ("OrgsOrgPrivateRegistriesPostBody",), - ".group_0946": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), - ".group_0947": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), - ".group_0948": ("OrgsOrgProjectsPostBody",), - ".group_0949": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0950": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0951": ( + ".group_0944": ("OrgsOrgPrivateRegistriesPostBody",), + ".group_0945": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), + ".group_0946": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), + ".group_0947": ("OrgsOrgProjectsPostBody",), + ".group_0948": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0949": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0950": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0952": ("OrgsOrgRulesetsPostBody",), - ".group_0953": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0954": ( + ".group_0951": ("OrgsOrgRulesetsPostBody",), + ".group_0952": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_0953": ( "OrgsOrgSettingsNetworkConfigurationsGetResponse200", "NetworkConfiguration", ), - ".group_0955": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), - ".group_0956": ( + ".group_0954": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), + ".group_0955": ( "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody", ), - ".group_0957": ("OrgsOrgTeamsPostBody",), - ".group_0958": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0959": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0960": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0961": ( + ".group_0956": ("OrgsOrgTeamsPostBody",), + ".group_0957": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_0958": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_0959": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_0960": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0962": ( + ".group_0961": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0963": ( + ".group_0962": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0964": ( + ".group_0963": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0965": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0966": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0967": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0968": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0969": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0970": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0971": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0972": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0973": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0974": ( + ".group_0964": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_0965": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_0966": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_0967": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_0968": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_0969": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_0970": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_0971": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_0972": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_0973": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0975": ( + ".group_0974": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0976": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0977": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_0978": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_0979": ( + ".group_0975": ("ProjectsColumnsColumnIdPatchBody",), + ".group_0976": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_0977": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_0978": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_0980": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_0981": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_0982": ("ProjectsProjectIdDeleteResponse403",), - ".group_0983": ("ProjectsProjectIdPatchBody",), - ".group_0984": ("ProjectsProjectIdPatchResponse403",), - ".group_0985": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_0986": ("ProjectsProjectIdColumnsPostBody",), - ".group_0987": ("ReposOwnerRepoDeleteResponse403",), - ".group_0988": ( + ".group_0979": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_0980": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_0981": ("ProjectsProjectIdDeleteResponse403",), + ".group_0982": ("ProjectsProjectIdPatchBody",), + ".group_0983": ("ProjectsProjectIdPatchResponse403",), + ".group_0984": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_0985": ("ProjectsProjectIdColumnsPostBody",), + ".group_0986": ("ReposOwnerRepoDeleteResponse403",), + ".group_0987": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", @@ -12519,55 +12441,55 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", ), - ".group_0989": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_0990": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_0991": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_0992": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_0993": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_0994": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_0995": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_0996": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_0997": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_0998": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_0999": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_1000": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_1001": ( + ".group_0988": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_0989": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_0990": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_0991": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_0992": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_0993": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_0994": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_0995": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_0996": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_0997": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_0998": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_0999": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_1000": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_1002": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_1003": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_1004": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_1005": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_1006": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_1007": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_1008": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_1009": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_1010": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_1011": ( + ".group_1001": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_1002": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_1003": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_1004": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_1005": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_1006": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_1007": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_1008": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_1009": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_1010": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_1012": ( + ".group_1011": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_1013": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_1014": ( + ".group_1012": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_1013": ( "ReposOwnerRepoAttestationsPostBody", "ReposOwnerRepoAttestationsPostBodyPropBundle", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", ), - ".group_1015": ("ReposOwnerRepoAttestationsPostResponse201",), - ".group_1016": ( + ".group_1014": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_1015": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_1017": ("ReposOwnerRepoAutolinksPostBody",), - ".group_1018": ( + ".group_1016": ("ReposOwnerRepoAutolinksPostBody",), + ".group_1017": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -12576,344 +12498,344 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_1019": ( + ".group_1018": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_1020": ( + ".group_1019": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_1021": ( + ".group_1020": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_1022": ( + ".group_1021": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_1023": ( + ".group_1022": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_1024": ( + ".group_1023": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody", ), - ".group_1025": ( + ".group_1024": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody", ), - ".group_1026": ( + ".group_1025": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody", ), - ".group_1027": ( + ".group_1026": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_1028": ( + ".group_1027": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_1029": ( + ".group_1028": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_1030": ( + ".group_1029": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody", ), - ".group_1031": ( + ".group_1030": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody", ), - ".group_1032": ( + ".group_1031": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody", ), - ".group_1033": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_1034": ( + ".group_1032": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_1033": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_1035": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_1036": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_1037": ( + ".group_1034": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_1035": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_1036": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_1038": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_1039": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_1040": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_1041": ( + ".group_1037": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_1038": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_1039": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_1040": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_1042": ( + ".group_1041": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_1043": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_1044": ( + ".group_1042": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_1043": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_1045": ( + ".group_1044": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_1046": ( + ".group_1045": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_1047": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_1048": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_1049": ("ReposOwnerRepoCodespacesPostBody",), - ".group_1050": ( + ".group_1046": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_1047": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_1048": ("ReposOwnerRepoCodespacesPostBody",), + ".group_1049": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_1051": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_1052": ( + ".group_1050": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_1051": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_1053": ( + ".group_1052": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_1054": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_1055": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_1056": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_1057": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_1058": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_1059": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_1060": ( + ".group_1053": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_1054": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_1055": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_1056": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_1057": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_1058": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_1059": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_1061": ( + ".group_1060": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_1062": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_1063": ( + ".group_1061": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_1062": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_1064": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_1065": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_1066": ( + ".group_1063": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_1064": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_1065": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1067": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1068": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1069": ( + ".group_1066": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_1067": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_1068": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1070": ( + ".group_1069": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1071": ( + ".group_1070": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1072": ( + ".group_1071": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1073": ( + ".group_1072": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1074": ( + ".group_1073": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1075": ( + ".group_1074": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1076": ( + ".group_1075": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1077": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1078": ( + ".group_1076": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_1077": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1079": ("ReposOwnerRepoForksPostBody",), - ".group_1080": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1081": ( + ".group_1078": ("ReposOwnerRepoForksPostBody",), + ".group_1079": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_1080": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1082": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1083": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1084": ( + ".group_1081": ("ReposOwnerRepoGitRefsPostBody",), + ".group_1082": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_1083": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1085": ( + ".group_1084": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1086": ( + ".group_1085": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1087": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1088": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1089": ("ReposOwnerRepoImportPutBody",), - ".group_1090": ("ReposOwnerRepoImportPatchBody",), - ".group_1091": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1092": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1093": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1094": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1095": ( + ".group_1086": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_1087": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_1088": ("ReposOwnerRepoImportPutBody",), + ".group_1089": ("ReposOwnerRepoImportPatchBody",), + ".group_1090": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_1091": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_1092": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_1093": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_1094": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1096": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1097": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1098": ( + ".group_1095": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_1096": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_1097": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1099": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1100": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1101": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1102": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1103": ( + ".group_1098": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_1099": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_1100": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_1101": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_1102": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1104": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1105": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1106": ( + ".group_1103": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_1104": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_1105": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1107": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1108": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1109": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1110": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), - ".group_1111": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), - ".group_1112": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), - ".group_1113": ("ReposOwnerRepoKeysPostBody",), - ".group_1114": ("ReposOwnerRepoLabelsPostBody",), - ".group_1115": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1116": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1117": ("ReposOwnerRepoMergesPostBody",), - ".group_1118": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1119": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1120": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1121": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1122": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1123": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1124": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1125": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1126": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1127": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1128": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1129": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1130": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1131": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1132": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1133": ("ReposOwnerRepoProjectsPostBody",), - ".group_1134": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1135": ("ReposOwnerRepoPullsPostBody",), - ".group_1136": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1137": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1138": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1139": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1140": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1141": ( + ".group_1106": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_1107": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1108": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1109": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), + ".group_1110": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), + ".group_1111": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), + ".group_1112": ("ReposOwnerRepoKeysPostBody",), + ".group_1113": ("ReposOwnerRepoLabelsPostBody",), + ".group_1114": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1115": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1116": ("ReposOwnerRepoMergesPostBody",), + ".group_1117": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1118": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1119": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1120": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1121": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1122": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1123": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1124": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1125": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1126": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1127": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1128": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1129": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1130": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1131": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1132": ("ReposOwnerRepoProjectsPostBody",), + ".group_1133": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1134": ("ReposOwnerRepoPullsPostBody",), + ".group_1135": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1136": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1137": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1138": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1139": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1140": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1142": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1143": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1144": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1145": ( + ".group_1141": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1142": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1143": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1144": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1146": ( + ".group_1145": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1147": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1148": ( + ".group_1146": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1147": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1149": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1150": ( + ".group_1148": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1149": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1151": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1152": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1153": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1154": ("ReposOwnerRepoReleasesPostBody",), - ".group_1155": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1156": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1157": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1158": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1159": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1160": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1161": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1162": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), - ".group_1163": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1164": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1165": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1166": ("ReposOwnerRepoTopicsPutBody",), - ".group_1167": ("ReposOwnerRepoTransferPostBody",), - ".group_1168": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1169": ("TeamsTeamIdPatchBody",), - ".group_1170": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1171": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1172": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1173": ( + ".group_1150": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1151": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1152": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1153": ("ReposOwnerRepoReleasesPostBody",), + ".group_1154": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1155": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1156": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1157": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1158": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1159": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1160": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1161": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), + ".group_1162": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1163": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1164": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1165": ("ReposOwnerRepoTopicsPutBody",), + ".group_1166": ("ReposOwnerRepoTransferPostBody",), + ".group_1167": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1168": ("TeamsTeamIdPatchBody",), + ".group_1169": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1170": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1171": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1172": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1174": ( + ".group_1173": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1175": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1176": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1177": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1178": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1179": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1180": ("UserPatchBody",), - ".group_1181": ("UserCodespacesGetResponse200",), - ".group_1182": ("UserCodespacesPostBodyOneof0",), - ".group_1183": ( + ".group_1174": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1175": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1176": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1177": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1178": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1179": ("UserPatchBody",), + ".group_1180": ("UserCodespacesGetResponse200",), + ".group_1181": ("UserCodespacesPostBodyOneof0",), + ".group_1182": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1184": ( + ".group_1183": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1185": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1186": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1187": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1188": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1189": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1190": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1191": ("UserEmailVisibilityPatchBody",), - ".group_1192": ("UserEmailsPostBodyOneof0",), - ".group_1193": ("UserEmailsDeleteBodyOneof0",), - ".group_1194": ("UserGpgKeysPostBody",), - ".group_1195": ("UserInstallationsGetResponse200",), - ".group_1196": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1197": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1198": ("UserKeysPostBody",), - ".group_1199": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1200": ("UserMigrationsPostBody",), - ".group_1201": ("UserProjectsPostBody",), - ".group_1202": ("UserReposPostBody",), - ".group_1203": ("UserSocialAccountsPostBody",), - ".group_1204": ("UserSocialAccountsDeleteBody",), - ".group_1205": ("UserSshSigningKeysPostBody",), - ".group_1206": ("UsersUsernameAttestationsBulkListPostBody",), - ".group_1207": ( + ".group_1184": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1185": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1186": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1187": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1188": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1189": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1190": ("UserEmailVisibilityPatchBody",), + ".group_1191": ("UserEmailsPostBodyOneof0",), + ".group_1192": ("UserEmailsDeleteBodyOneof0",), + ".group_1193": ("UserGpgKeysPostBody",), + ".group_1194": ("UserInstallationsGetResponse200",), + ".group_1195": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1196": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1197": ("UserKeysPostBody",), + ".group_1198": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1199": ("UserMigrationsPostBody",), + ".group_1200": ("UserProjectsPostBody",), + ".group_1201": ("UserReposPostBody",), + ".group_1202": ("UserSocialAccountsPostBody",), + ".group_1203": ("UserSocialAccountsDeleteBody",), + ".group_1204": ("UserSshSigningKeysPostBody",), + ".group_1205": ("UsersUsernameAttestationsBulkListPostBody",), + ".group_1206": ( "UsersUsernameAttestationsBulkListPostResponse200", "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", "UsersUsernameAttestationsBulkListPostResponse200PropPageInfo", ), - ".group_1208": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",), - ".group_1209": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",), - ".group_1210": ( + ".group_1207": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",), + ".group_1208": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",), + ".group_1209": ( "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", diff --git a/githubkit/versions/v2022_11_28/models/group_0028.py b/githubkit/versions/v2022_11_28/models/group_0028.py index 5f96157cd..0d0db1bcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0028.py +++ b/githubkit/versions/v2022_11_28/models/group_0028.py @@ -165,6 +165,10 @@ class CodeSecurityConfigurationPropCodeScanningOptions(GitHubModel): Feature options for code scanning """ + allow_advanced: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether to allow repos which use advanced setup" + ) + class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions(GitHubModel): """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions diff --git a/githubkit/versions/v2022_11_28/models/group_0029.py b/githubkit/versions/v2022_11_28/models/group_0029.py index a49412509..f4c8c5941 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, Union +from typing import Union from pydantic import Field @@ -18,22 +18,17 @@ from githubkit.utils import UNSET -class CodeScanningDefaultSetupOptions(GitHubModel): - """CodeScanningDefaultSetupOptions +class CodeScanningOptions(GitHubModel): + """CodeScanningOptions - Feature options for code scanning default setup + Security Configuration feature options for code scanning """ - runner_type: Missing[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'.", + allow_advanced: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether to allow repos which use advanced setup" ) -model_rebuild(CodeScanningDefaultSetupOptions) +model_rebuild(CodeScanningOptions) -__all__ = ("CodeScanningDefaultSetupOptions",) +__all__ = ("CodeScanningOptions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0030.py b/githubkit/versions/v2022_11_28/models/group_0030.py index 39e215284..a49412509 100644 --- a/githubkit/versions/v2022_11_28/models/group_0030.py +++ b/githubkit/versions/v2022_11_28/models/group_0030.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_0028 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_0031.py b/githubkit/versions/v2022_11_28/models/group_0031.py index 919d352a4..39e215284 100644 --- a/githubkit/versions/v2022_11_28/models/group_0031.py +++ b/githubkit/versions/v2022_11_28/models/group_0031.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_0003 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_0032.py b/githubkit/versions/v2022_11_28/models/group_0032.py index 807348aa1..919d352a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0032.py +++ b/githubkit/versions/v2022_11_28/models/group_0032.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_0031 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_0033.py b/githubkit/versions/v2022_11_28/models/group_0033.py index ff820726e..00b80e5aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0033.py +++ b/githubkit/versions/v2022_11_28/models/group_0033.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_0032 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_0034.py b/githubkit/versions/v2022_11_28/models/group_0034.py index 4fb8a9514..ff820726e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0034.py +++ b/githubkit/versions/v2022_11_28/models/group_0034.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_0033 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_0035.py b/githubkit/versions/v2022_11_28/models/group_0035.py index e053f0362..d979473fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0035.py +++ b/githubkit/versions/v2022_11_28/models/group_0035.py @@ -9,123 +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_0002 import SecurityAdvisoryEpss -from .group_0034 import DependabotAlertSecurityVulnerability +from .group_0034 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) - 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: 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_0036.py b/githubkit/versions/v2022_11_28/models/group_0036.py index f46160bda..d35495bb8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0036.py +++ b/githubkit/versions/v2022_11_28/models/group_0036.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_0003 import SimpleUser -from .group_0031 import SimpleRepository -from .group_0034 import DependabotAlertSecurityVulnerability -from .group_0035 import DependabotAlertSecurityAdvisory -from .group_0037 import DependabotAlertWithRepositoryPropDependency +from .group_0001 import CvssSeverities +from .group_0002 import SecurityAdvisoryEpss +from .group_0035 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_0037.py b/githubkit/versions/v2022_11_28/models/group_0037.py index 678caa889..7b551c0b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0037.py +++ b/githubkit/versions/v2022_11_28/models/group_0037.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,33 +18,65 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0033 import DependabotAlertPackage +from .group_0003 import SimpleUser +from .group_0032 import SimpleRepository +from .group_0035 import DependabotAlertSecurityVulnerability +from .group_0036 import DependabotAlertSecurityAdvisory +from .group_0038 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( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", + 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`." ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - relationship: Missing[ - Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]] - ] = 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[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 vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', + 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(DependabotAlertWithRepositoryPropDependency) +model_rebuild(DependabotAlertWithRepository) -__all__ = ("DependabotAlertWithRepositoryPropDependency",) +__all__ = ("DependabotAlertWithRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0038.py b/githubkit/versions/v2022_11_28/models/group_0038.py index 33230057f..7c22a93b4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0038.py +++ b/githubkit/versions/v2022_11_28/models/group_0038.py @@ -9,141 +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_0034 import DependabotAlertPackage -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. - """ +class DependabotAlertWithRepositoryPropDependency(GitHubModel): + """DependabotAlertWithRepositoryPropDependency - 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. + Details for the vulnerable dependency. """ - 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" + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - 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." + manifest_path: Missing[str] = Field( + default=UNSET, + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - 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." + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) - 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 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 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 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 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 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." + relationship: Missing[ + Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]] + ] = Field( + default=UNSET, + description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', ) -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestReview) +model_rebuild(DependabotAlertWithRepositoryPropDependency) -__all__ = ( - "SecretScanningLocationCommit", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationWikiCommit", -) +__all__ = ("DependabotAlertWithRepositoryPropDependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0039.py b/githubkit/versions/v2022_11_28/models/group_0039.py index a6d3ca865..33230057f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0039.py +++ b/githubkit/versions/v2022_11_28/models/group_0039.py @@ -14,63 +14,136 @@ from githubkit.compat import GitHubModel, model_rebuild -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. """ - issue_title_url: str = Field( + 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 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 +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 SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. """ - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." ) -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody - 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. + 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_title_url: str = Field( + pull_request_body_url: str = Field( description="The API URL to get the pull request where the secret was detected." ) -class SecretScanningLocationPullRequestReviewComment(GitHubModel): - """SecretScanningLocationPullRequestReviewComment +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview - 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. + 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_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." ) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestReview) __all__ = ( - "SecretScanningLocationIssueComment", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationPullRequestReviewComment", - "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationCommit", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationWikiCommit", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0040.py b/githubkit/versions/v2022_11_28/models/group_0040.py index a909a64f7..a6d3ca865 100644 --- a/githubkit/versions/v2022_11_28/models/group_0040.py +++ b/githubkit/versions/v2022_11_28/models/group_0040.py @@ -14,34 +14,63 @@ from githubkit.compat import GitHubModel, model_rebuild -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. """ - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." ) -class SecretScanningLocationPullRequestComment(GitHubModel): - """SecretScanningLocationPullRequestComment +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment - 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. + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. """ - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." ) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationPullRequestComment) +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 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(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestReviewComment) __all__ = ( - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationPullRequestComment", + "SecretScanningLocationIssueComment", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationPullRequestReviewComment", + "SecretScanningLocationPullRequestTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0041.py b/githubkit/versions/v2022_11_28/models/group_0041.py index b49721e79..a909a64f7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0041.py +++ b/githubkit/versions/v2022_11_28/models/group_0041.py @@ -9,152 +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 - -from .group_0003 import SimpleUser -from .group_0031 import SimpleRepository -from .group_0038 import ( - SecretScanningLocationCommit, - SecretScanningLocationDiscussionComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestReview, - SecretScanningLocationWikiCommit, -) -from .group_0039 import ( - SecretScanningLocationIssueComment, - SecretScanningLocationIssueTitle, - SecretScanningLocationPullRequestReviewComment, - SecretScanningLocationPullRequestTitle, -) -from .group_0040 import ( - SecretScanningLocationDiscussionBody, - SecretScanningLocationPullRequestComment, -) -class OrganizationSecretScanningAlert(GitHubModel): - """OrganizationSecretScanningAlert""" +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." - ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", - ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( - default=UNSET - ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when reviewing a push protection bypass.", - ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when requesting a push protection bypass.", - ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment that was optionally added when this alert was closed", - ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the secret was publicly leaked." - ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", - ) - is_base64_encoded: Missing[Union[bool, None]] = Field( - default=UNSET, - description="A boolean value representing whether or not alert is base64 encoded", + 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." ) - first_location_detected: Missing[ - Union[ - None, - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - has_more_locations: Missing[bool] = Field( - default=UNSET, - description="A boolean value representing whether or not the token in the alert was detected in more than one location.", + + +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." ) -model_rebuild(OrganizationSecretScanningAlert) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationPullRequestComment) -__all__ = ("OrganizationSecretScanningAlert",) +__all__ = ( + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationPullRequestComment", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0042.py b/githubkit/versions/v2022_11_28/models/group_0042.py index 5c7ac6985..41ce0fc6f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0042.py +++ b/githubkit/versions/v2022_11_28/models/group_0042.py @@ -15,36 +15,146 @@ 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_0032 import SimpleRepository +from .group_0039 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0040 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0041 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -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.", + ) + is_base64_encoded: Missing[Union[bool, None]] = Field( + default=UNSET, + description="A boolean value representing whether or not alert is base64 encoded", + ) + first_location_detected: Missing[ + Union[ + None, + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + has_more_locations: Missing[bool] = Field( + default=UNSET, + description="A boolean value representing whether or not the token in the alert was detected in more than one location.", ) - 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_0043.py b/githubkit/versions/v2022_11_28/models/group_0043.py index 699a0740c..5c7ac6985 100644 --- a/githubkit/versions/v2022_11_28/models/group_0043.py +++ b/githubkit/versions/v2022_11_28/models/group_0043.py @@ -15,41 +15,36 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class IssueType(GitHubModel): - """Issue Type - The type of issue. +class Milestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ - id: int = Field(description="The unique identifier of the issue type.") - node_id: str = Field(description="The node identifier of the issue type.") - name: str = Field(description="The name of the issue type.") - description: Union[str, None] = Field( - description="The description of the issue type." - ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="The color of the issue type.") - created_at: Missing[datetime] = Field( - default=UNSET, description="The time the issue type created." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, description="The time the issue type last updated." - ) - is_enabled: Missing[bool] = Field( - default=UNSET, description="The enabled state of the issue type." + 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(IssueType) +model_rebuild(Milestone) -__all__ = ("IssueType",) +__all__ = ("Milestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0044.py b/githubkit/versions/v2022_11_28/models/group_0044.py index fd85f1373..699a0740c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0044.py +++ b/githubkit/versions/v2022_11_28/models/group_0044.py @@ -9,26 +9,47 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReactionRollup(GitHubModel): - """Reaction Rollup""" - - url: str = Field() - total_count: int = Field() - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - laugh: int = Field() - confused: int = Field() - heart: int = Field() - hooray: int = Field() - eyes: int = Field() - rocket: int = Field() - - -model_rebuild(ReactionRollup) - -__all__ = ("ReactionRollup",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class IssueType(GitHubModel): + """Issue Type + + The type of issue. + """ + + id: int = Field(description="The unique identifier of the issue type.") + node_id: str = Field(description="The node identifier of the issue type.") + name: str = Field(description="The name of the issue type.") + description: Union[str, None] = Field( + description="The description of the issue type." + ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="The color of the issue type.") + created_at: Missing[datetime] = Field( + default=UNSET, description="The time the issue type created." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, description="The time the issue type last updated." + ) + is_enabled: Missing[bool] = Field( + default=UNSET, description="The enabled state of the issue type." + ) + + +model_rebuild(IssueType) + +__all__ = ("IssueType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0045.py b/githubkit/versions/v2022_11_28/models/group_0045.py index e779867a4..fd85f1373 100644 --- a/githubkit/versions/v2022_11_28/models/group_0045.py +++ b/githubkit/versions/v2022_11_28/models/group_0045.py @@ -9,134 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0020 import Repository -from .group_0042 import Milestone -from .group_0043 import IssueType -from .group_0044 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", "duplicate"]] - ] = Field(default=UNSET, description="The reason for the current state") - title: str = Field(description="Title of the issue") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - user: Union[None, SimpleUser] = Field() - labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( - description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" - ) - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - milestone: Union[None, Milestone] = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - comments: int = Field() - pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - sub_issues_summary: Missing[SubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - - -class SubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class IssuePropLabelsItemsOneof1(GitHubModel): - """IssuePropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) -class IssuePropPullRequest(GitHubModel): - """IssuePropPullRequest""" +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_0046.py b/githubkit/versions/v2022_11_28/models/group_0046.py index e6059e474..f2cb2d719 100644 --- a/githubkit/versions/v2022_11_28/models/group_0046.py +++ b/githubkit/versions/v2022_11_28/models/group_0046.py @@ -9,58 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0044 import ReactionRollup - -class IssueComment(GitHubModel): - """Issue Comment - Comments provide a way for people to collaborate on an issue. - """ +class SubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - 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") + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(IssueComment) +model_rebuild(SubIssuesSummary) -__all__ = ("IssueComment",) +__all__ = ("SubIssuesSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0047.py b/githubkit/versions/v2022_11_28/models/group_0047.py index 63dff7cb1..0b0126f87 100644 --- a/githubkit/versions/v2022_11_28/models/group_0047.py +++ b/githubkit/versions/v2022_11_28/models/group_0047.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,116 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0045 import Issue -from .group_0046 import IssueComment +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0043 import Milestone +from .group_0044 import IssueType +from .group_0045 import ReactionRollup +from .group_0046 import SubIssuesSummary -class EventPropPayload(GitHubModel): - """EventPropPayload""" +class Issue(GitHubModel): + """Issue - 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 + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ - 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() - + id: int = Field() + node_id: str = Field() + url: str = Field(description="URL for the issue") + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() + events_url: str = Field() + html_url: str = Field() + number: int = Field( + description="Number uniquely identifying the issue within its repository" + ) + state: str = Field(description="State of the issue; either 'open' or 'closed'") + state_reason: Missing[ + Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] + ] = Field(default=UNSET, description="The reason for the current state") + title: str = Field(description="Title of the issue") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" + ) + user: Union[None, SimpleUser] = Field() + labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( + description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" + ) + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + milestone: Union[None, Milestone] = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + comments: int = Field() + pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) -class Actor(GitHubModel): - """Actor - Actor - """ +class IssuePropLabelsItemsOneof1(GitHubModel): + """IssuePropLabelsItemsOneof1""" - 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() + 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 EventPropRepo(GitHubModel): - """EventPropRepo""" +class IssuePropPullRequest(GitHubModel): + """IssuePropPullRequest""" - id: int = Field() - name: str = Field() - url: str = Field() + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -model_rebuild(EventPropPayload) -model_rebuild(EventPropPayloadPropPagesItems) -model_rebuild(Event) -model_rebuild(Actor) -model_rebuild(EventPropRepo) +model_rebuild(Issue) +model_rebuild(IssuePropLabelsItemsOneof1) +model_rebuild(IssuePropPullRequest) __all__ = ( - "Actor", - "Event", - "EventPropPayload", - "EventPropPayloadPropPagesItems", - "EventPropRepo", + "Issue", + "IssuePropLabelsItemsOneof1", + "IssuePropPullRequest", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0048.py b/githubkit/versions/v2022_11_28/models/group_0048.py index a40a69c97..43609ed64 100644 --- a/githubkit/versions/v2022_11_28/models/group_0048.py +++ b/githubkit/versions/v2022_11_28/models/group_0048.py @@ -9,86 +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 +from .group_0045 import ReactionRollup -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 IssueComment(GitHubModel): + """Issue Comment + Comments provide a way for people to collaborate on an issue. + """ -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" + 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" ) - current_user: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + 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.", ) - current_user_public: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - current_user_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() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(Feed) -model_rebuild(FeedPropLinks) -model_rebuild(LinkWithType) +model_rebuild(IssueComment) -__all__ = ( - "Feed", - "FeedPropLinks", - "LinkWithType", -) +__all__ = ("IssueComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0049.py b/githubkit/versions/v2022_11_28/models/group_0049.py index f2be178a2..5e5b6632f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0049.py +++ b/githubkit/versions/v2022_11_28/models/group_0049.py @@ -10,56 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0047 import Issue +from .group_0048 import IssueComment -class BaseGist(GitHubModel): - """Base Gist +class EventPropPayload(GitHubModel): + """EventPropPayload""" - Base Gist + 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 """ - 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() + type: Union[str, None] = Field() + actor: Actor = Field(title="Actor", description="Actor") + repo: EventPropRepo = Field() + org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") + payload: EventPropPayload = Field() public: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[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) + created_at: Union[datetime, None] = Field() + +class Actor(GitHubModel): + """Actor -class BaseGistPropFiles(ExtraGitHubModel): - """BaseGistPropFiles""" + 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(BaseGist) -model_rebuild(BaseGistPropFiles) +model_rebuild(EventPropPayload) +model_rebuild(EventPropPayloadPropPagesItems) +model_rebuild(Event) +model_rebuild(Actor) +model_rebuild(EventPropRepo) __all__ = ( - "BaseGist", - "BaseGistPropFiles", + "Actor", + "Event", + "EventPropPayload", + "EventPropPayloadPropPagesItems", + "EventPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0050.py b/githubkit/versions/v2022_11_28/models/group_0050.py index 825cce14c..a40a69c97 100644 --- a/githubkit/versions/v2022_11_28/models/group_0050.py +++ b/githubkit/versions/v2022_11_28/models/group_0050.py @@ -9,80 +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_0003 import SimpleUser - -class GistHistory(GitHubModel): - """Gist History +class Feed(GitHubModel): + """Feed - Gist History + Feed """ - 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) - + 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 LinkWithType(GitHubModel): + """Link With Type + + Hypermedia Link with Type + """ -class GistSimplePropForkOf(GitHubModel): - """Gist + href: str = Field() + type: str = Field() - Gist - """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() - node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() - html_url: str = Field() - files: GistSimplePropForkOfPropFiles = Field() - public: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[list[Any]] = Field(default=UNSET) - history: Missing[list[Any]] = Field(default=UNSET) - - -class GistSimplePropForkOfPropFiles(ExtraGitHubModel): - """GistSimplePropForkOfPropFiles""" - - -model_rebuild(GistHistory) -model_rebuild(GistHistoryPropChangeStatus) -model_rebuild(GistSimplePropForkOf) -model_rebuild(GistSimplePropForkOfPropFiles) +model_rebuild(Feed) +model_rebuild(FeedPropLinks) +model_rebuild(LinkWithType) __all__ = ( - "GistHistory", - "GistHistoryPropChangeStatus", - "GistSimplePropForkOf", - "GistSimplePropForkOfPropFiles", + "Feed", + "FeedPropLinks", + "LinkWithType", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0051.py b/githubkit/versions/v2022_11_28/models/group_0051.py index 91e899480..f2be178a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0051.py +++ b/githubkit/versions/v2022_11_28/models/group_0051.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 @@ -19,126 +19,47 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0050 import GistHistory, GistSimplePropForkOf -class GistSimple(GitHubModel): - """Gist Simple +class BaseGist(GitHubModel): + """Base Gist - Gist Simple + Base Gist """ - 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) + 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: Missing[Union[str, None]] = Field(default=UNSET) - comments_url: Missing[str] = 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 GistSimplePropFiles(ExtraGitHubModel): - """GistSimplePropFiles""" - - -class GistSimplePropForksItems(GitHubModel): - """GistSimplePropForksItems""" - - id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[PublicUser] = Field( - default=UNSET, title="Public User", description="Public User" - ) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - - -class PublicUser(GitHubModel): - """Public User - - Public User - """ - - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - plan: Missing[PublicUserPropPlan] = Field(default=UNSET) - private_gists: Missing[int] = Field(default=UNSET) - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - disk_usage: Missing[int] = Field(default=UNSET) - collaborators: Missing[int] = Field(default=UNSET) - - -class PublicUserPropPlan(GitHubModel): - """PublicUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() +class BaseGistPropFiles(ExtraGitHubModel): + """BaseGistPropFiles""" -model_rebuild(GistSimple) -model_rebuild(GistSimplePropFiles) -model_rebuild(GistSimplePropForksItems) -model_rebuild(PublicUser) -model_rebuild(PublicUserPropPlan) +model_rebuild(BaseGist) +model_rebuild(BaseGistPropFiles) __all__ = ( - "GistSimple", - "GistSimplePropFiles", - "GistSimplePropForksItems", - "PublicUser", - "PublicUserPropPlan", + "BaseGist", + "BaseGistPropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0052.py b/githubkit/versions/v2022_11_28/models/group_0052.py index 429704889..825cce14c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0052.py +++ b/githubkit/versions/v2022_11_28/models/group_0052.py @@ -10,43 +10,79 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Any, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser -class GistComment(GitHubModel): - """Gist Comment +class GistHistory(GitHubModel): + """Gist History - A comment made to a 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 """ - id: int = Field() - node_id: str = Field() url: str = Field() - body: str = Field(max_length=65535, description="The comment text.") - user: Union[None, SimpleUser] = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: GistSimplePropForkOfPropFiles = Field() + public: bool = Field() created_at: datetime = Field() updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - - -model_rebuild(GistComment) - -__all__ = ("GistComment",) + description: Union[str, None] = Field() + comments: int = Field() + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[list[Any]] = Field(default=UNSET) + history: Missing[list[Any]] = Field(default=UNSET) + + +class GistSimplePropForkOfPropFiles(ExtraGitHubModel): + """GistSimplePropForkOfPropFiles""" + + +model_rebuild(GistHistory) +model_rebuild(GistHistoryPropChangeStatus) +model_rebuild(GistSimplePropForkOf) +model_rebuild(GistSimplePropForkOfPropFiles) + +__all__ = ( + "GistHistory", + "GistHistoryPropChangeStatus", + "GistSimplePropForkOf", + "GistSimplePropForkOfPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0053.py b/githubkit/versions/v2022_11_28/models/group_0053.py index d417526bd..e3614e77a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0053.py +++ b/githubkit/versions/v2022_11_28/models/group_0053.py @@ -14,38 +14,131 @@ 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_0052 import GistHistory, GistSimplePropForkOf -class GistCommit(GitHubModel): - """Gist Commit +class GistSimple(GitHubModel): + """Gist Simple - Gist Commit + Gist Simple """ - 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) - + 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 + """ -model_rebuild(GistCommit) -model_rebuild(GistCommitPropChangeStatus) + 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__ = ( - "GistCommit", - "GistCommitPropChangeStatus", + "GistSimple", + "GistSimplePropFiles", + "GistSimplePropForksItems", + "PublicUser", + "PublicUserPropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0054.py b/githubkit/versions/v2022_11_28/models/group_0054.py index 68fca7a2b..429704889 100644 --- a/githubkit/versions/v2022_11_28/models/group_0054.py +++ b/githubkit/versions/v2022_11_28/models/group_0054.py @@ -9,21 +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_0003 import SimpleUser -class GitignoreTemplate(GitHubModel): - """Gitignore Template - - Gitignore Template - """ - name: str = Field() - source: str = Field() +class GistComment(GitHubModel): + """Gist Comment + A comment made to a gist. + """ -model_rebuild(GitignoreTemplate) - -__all__ = ("GitignoreTemplate",) + 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.", + ) + + +model_rebuild(GistComment) + +__all__ = ("GistComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0055.py b/githubkit/versions/v2022_11_28/models/group_0055.py index 783d62fbc..d417526bd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0055.py +++ b/githubkit/versions/v2022_11_28/models/group_0055.py @@ -9,34 +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 License(GitHubModel): - """License - License +class GistCommit(GitHubModel): + """Gist Commit + + Gist Commit """ - 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() + 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(License) +model_rebuild(GistCommit) +model_rebuild(GistCommitPropChangeStatus) -__all__ = ("License",) +__all__ = ( + "GistCommit", + "GistCommitPropChangeStatus", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0056.py b/githubkit/versions/v2022_11_28/models/group_0056.py index f13661e40..68fca7a2b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0056.py +++ b/githubkit/versions/v2022_11_28/models/group_0056.py @@ -9,34 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class MarketplaceListingPlan(GitHubModel): - """Marketplace Listing Plan +class GitignoreTemplate(GitHubModel): + """Gitignore Template - Marketplace Listing Plan + Gitignore Template """ - 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() + source: str = Field() -model_rebuild(MarketplaceListingPlan) +model_rebuild(GitignoreTemplate) -__all__ = ("MarketplaceListingPlan",) +__all__ = ("GitignoreTemplate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0057.py b/githubkit/versions/v2022_11_28/models/group_0057.py index 14054a30e..783d62fbc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0057.py +++ b/githubkit/versions/v2022_11_28/models/group_0057.py @@ -14,33 +14,29 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0058 import ( - MarketplacePurchasePropMarketplacePendingChange, - MarketplacePurchasePropMarketplacePurchase, -) +class License(GitHubModel): + """License -class MarketplacePurchase(GitHubModel): - """Marketplace Purchase - - Marketplace Purchase + License """ - 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() + 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(MarketplacePurchase) +model_rebuild(License) -__all__ = ("MarketplacePurchase",) +__all__ = ("License",) diff --git a/githubkit/versions/v2022_11_28/models/group_0058.py b/githubkit/versions/v2022_11_28/models/group_0058.py index 053a66c35..f13661e40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0058.py +++ b/githubkit/versions/v2022_11_28/models/group_0058.py @@ -9,52 +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_0056 import MarketplaceListingPlan - - -class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): - """MarketplacePurchasePropMarketplacePendingChange""" - - is_installed: Missing[bool] = Field(default=UNSET) - effective_date: Missing[str] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -class MarketplacePurchasePropMarketplacePurchase(GitHubModel): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: Missing[str] = Field(default=UNSET) - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - is_installed: Missing[bool] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - on_free_trial: Missing[bool] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -model_rebuild(MarketplacePurchasePropMarketplacePendingChange) -model_rebuild(MarketplacePurchasePropMarketplacePurchase) - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChange", - "MarketplacePurchasePropMarketplacePurchase", -) + + +class MarketplaceListingPlan(GitHubModel): + """Marketplace Listing Plan + + Marketplace Listing Plan + """ + + 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",) diff --git a/githubkit/versions/v2022_11_28/models/group_0059.py b/githubkit/versions/v2022_11_28/models/group_0059.py index b8030b113..bce5b381e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0059.py +++ b/githubkit/versions/v2022_11_28/models/group_0059.py @@ -9,89 +9,38 @@ 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_0060 import ( + MarketplacePurchasePropMarketplacePendingChange, + MarketplacePurchasePropMarketplacePurchase, +) -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""" - - 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 MarketplacePurchase(GitHubModel): + """Marketplace Purchase -class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): - """ApiOverviewPropDomainsPropArtifactAttestations""" + Marketplace Purchase + """ - trust_domain: Missing[str] = Field(default=UNSET) - services: Missing[list[str]] = Field(default=UNSET) + url: str = Field() + type: str = Field() + id: int = Field() + login: str = Field() + organization_billing_email: Missing[str] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + marketplace_pending_change: Missing[ + Union[MarketplacePurchasePropMarketplacePendingChange, None] + ] = Field(default=UNSET) + marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() -model_rebuild(ApiOverview) -model_rebuild(ApiOverviewPropSshKeyFingerprints) -model_rebuild(ApiOverviewPropDomains) -model_rebuild(ApiOverviewPropDomainsPropActionsInbound) -model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) +model_rebuild(MarketplacePurchase) -__all__ = ( - "ApiOverview", - "ApiOverviewPropDomains", - "ApiOverviewPropDomainsPropActionsInbound", - "ApiOverviewPropDomainsPropArtifactAttestations", - "ApiOverviewPropSshKeyFingerprints", -) +__all__ = ("MarketplacePurchase",) diff --git a/githubkit/versions/v2022_11_28/models/group_0060.py b/githubkit/versions/v2022_11_28/models/group_0060.py index a59ce48ac..2d99a88c0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0060.py +++ b/githubkit/versions/v2022_11_28/models/group_0060.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,98 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0058 import MarketplaceListingPlan -class SecurityAndAnalysis(GitHubModel): - """SecurityAndAnalysis""" - advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( - default=UNSET - ) - code_security: Missing[SecurityAndAnalysisPropCodeSecurity] = Field(default=UNSET) - dependabot_security_updates: Missing[ - SecurityAndAnalysisPropDependabotSecurityUpdates - ] = 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="Enable or disable Dependabot security updates for the repository.", - ) - secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( - default=UNSET + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", ) - secret_scanning_push_protection: Missing[ - SecurityAndAnalysisPropSecretScanningPushProtection - ] = Field(default=UNSET) - secret_scanning_non_provider_patterns: Missing[ - SecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field(default=UNSET) - secret_scanning_ai_detection: Missing[ - SecurityAndAnalysisPropSecretScanningAiDetection - ] = Field(default=UNSET) - - -class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -class SecurityAndAnalysisPropCodeSecurity(GitHubModel): - """SecurityAndAnalysisPropCodeSecurity""" +class MarketplacePurchasePropMarketplacePurchase(GitHubModel): + """MarketplacePurchasePropMarketplacePurchase""" - 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( + 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, - description="The enablement status of Dependabot security updates for the repository.", + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", ) -class SecurityAndAnalysisPropSecretScanning(GitHubModel): - """SecurityAndAnalysisPropSecretScanning""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): - """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningAiDetection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningAiDetection""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -model_rebuild(SecurityAndAnalysis) -model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(SecurityAndAnalysisPropCodeSecurity) -model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) -model_rebuild(SecurityAndAnalysisPropSecretScanning) -model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) -model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) -model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) +model_rebuild(MarketplacePurchasePropMarketplacePendingChange) +model_rebuild(MarketplacePurchasePropMarketplacePurchase) __all__ = ( - "SecurityAndAnalysis", - "SecurityAndAnalysisPropAdvancedSecurity", - "SecurityAndAnalysisPropCodeSecurity", - "SecurityAndAnalysisPropDependabotSecurityUpdates", - "SecurityAndAnalysisPropSecretScanning", - "SecurityAndAnalysisPropSecretScanningAiDetection", - "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "SecurityAndAnalysisPropSecretScanningPushProtection", + "MarketplacePurchasePropMarketplacePendingChange", + "MarketplacePurchasePropMarketplacePurchase", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0061.py b/githubkit/versions/v2022_11_28/models/group_0061.py index f6b904541..b8030b113 100644 --- a/githubkit/versions/v2022_11_28/models/group_0061.py +++ b/githubkit/versions/v2022_11_28/models/group_0061.py @@ -9,179 +9,89 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0060 import SecurityAndAnalysis - -class MinimalRepository(GitHubModel): - """Minimal Repository +class ApiOverview(GitHubModel): + """Api Overview - Minimal Repository + Api Overview """ - 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" + verifiable_password_authentication: bool = Field() + ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( + default=UNSET ) - 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( + 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 ) - custom_properties: Missing[MinimalRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( + Field(default=UNSET) ) -class CodeOfConduct(GitHubModel): - """Code Of Conduct - - Code Of Conduct - """ - - key: str = Field() - name: str = Field() - url: str = Field() - body: Missing[str] = Field(default=UNSET) - html_url: Union[str, None] = Field() - - -class MinimalRepositoryPropPermissions(GitHubModel): - """MinimalRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) +class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): + """ApiOverviewPropDomainsPropActionsInbound""" + full_domains: Missing[list[str]] = Field(default=UNSET) + wildcard_domains: Missing[list[str]] = Field(default=UNSET) -class MinimalRepositoryPropLicense(GitHubModel): - """MinimalRepositoryPropLicense""" - key: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - spdx_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) +class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): + """ApiOverviewPropDomainsPropArtifactAttestations""" - -class MinimalRepositoryPropCustomProperties(ExtraGitHubModel): - """MinimalRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + trust_domain: Missing[str] = Field(default=UNSET) + services: Missing[list[str]] = Field(default=UNSET) -model_rebuild(MinimalRepository) -model_rebuild(CodeOfConduct) -model_rebuild(MinimalRepositoryPropPermissions) -model_rebuild(MinimalRepositoryPropLicense) -model_rebuild(MinimalRepositoryPropCustomProperties) +model_rebuild(ApiOverview) +model_rebuild(ApiOverviewPropSshKeyFingerprints) +model_rebuild(ApiOverviewPropDomains) +model_rebuild(ApiOverviewPropDomainsPropActionsInbound) +model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) __all__ = ( - "CodeOfConduct", - "MinimalRepository", - "MinimalRepositoryPropCustomProperties", - "MinimalRepositoryPropLicense", - "MinimalRepositoryPropPermissions", + "ApiOverview", + "ApiOverviewPropDomains", + "ApiOverviewPropDomainsPropActionsInbound", + "ApiOverviewPropDomainsPropArtifactAttestations", + "ApiOverviewPropSshKeyFingerprints", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0062.py b/githubkit/versions/v2022_11_28/models/group_0062.py index b423a9b25..87a10ec0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0062.py +++ b/githubkit/versions/v2022_11_28/models/group_0062.py @@ -9,47 +9,113 @@ 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_0061 import MinimalRepository +class SecurityAndAnalysis(GitHubModel): + """SecurityAndAnalysis""" -class Thread(GitHubModel): - """Thread + advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( + default=UNSET, + description="Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n", + ) + code_security: Missing[SecurityAndAnalysisPropCodeSecurity] = Field(default=UNSET) + dependabot_security_updates: Missing[ + SecurityAndAnalysisPropDependabotSecurityUpdates + ] = Field( + default=UNSET, + description="Enable or disable Dependabot security updates for the repository.", + ) + secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( + default=UNSET + ) + secret_scanning_push_protection: Missing[ + SecurityAndAnalysisPropSecretScanningPushProtection + ] = Field(default=UNSET) + secret_scanning_non_provider_patterns: Missing[ + SecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field(default=UNSET) + secret_scanning_ai_detection: Missing[ + SecurityAndAnalysisPropSecretScanningAiDetection + ] = Field(default=UNSET) + + +class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """SecurityAndAnalysisPropAdvancedSecurity + + Enable or disable GitHub Advanced Security for the repository. - Thread + For standalone Code Scanning or Secret Protection products, this parameter + cannot be used. """ - id: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropCodeSecurity(GitHubModel): + """SecurityAndAnalysisPropCodeSecurity""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. + """ + + status: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, + description="The enablement status of Dependabot security updates for the 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""" +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""" - title: str = Field() - url: str = Field() - latest_comment_url: str = Field() - type: str = Field() + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -model_rebuild(Thread) -model_rebuild(ThreadPropSubject) +model_rebuild(SecurityAndAnalysis) +model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(SecurityAndAnalysisPropCodeSecurity) +model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) +model_rebuild(SecurityAndAnalysisPropSecretScanning) +model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) +model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) +model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) __all__ = ( - "Thread", - "ThreadPropSubject", + "SecurityAndAnalysis", + "SecurityAndAnalysisPropAdvancedSecurity", + "SecurityAndAnalysisPropCodeSecurity", + "SecurityAndAnalysisPropDependabotSecurityUpdates", + "SecurityAndAnalysisPropSecretScanning", + "SecurityAndAnalysisPropSecretScanningAiDetection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "SecurityAndAnalysisPropSecretScanningPushProtection", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0063.py b/githubkit/versions/v2022_11_28/models/group_0063.py index 3f78547c4..340443cf3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0063.py +++ b/githubkit/versions/v2022_11_28/models/group_0063.py @@ -14,26 +14,174 @@ 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_0062 import SecurityAndAnalysis -class ThreadSubscription(GitHubModel): - """Thread Subscription - Thread Subscription +class MinimalRepository(GitHubModel): + """Minimal Repository + + Minimal Repository """ - subscribed: bool = Field() - ignored: bool = Field() - reason: Union[str, None] = Field() - created_at: Union[datetime, 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() - thread_url: Missing[str] = Field(default=UNSET) - repository_url: Missing[str] = Field(default=UNSET) + 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 + ) + custom_properties: Missing[MinimalRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class CodeOfConduct(GitHubModel): + """Code Of Conduct + + Code Of Conduct + """ + + key: str = Field() + name: str = Field() + url: str = Field() + body: Missing[str] = Field(default=UNSET) + html_url: Union[str, None] = Field() + + +class MinimalRepositoryPropPermissions(GitHubModel): + """MinimalRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) + + +class MinimalRepositoryPropLicense(GitHubModel): + """MinimalRepositoryPropLicense""" + + key: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + spdx_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + + +class MinimalRepositoryPropCustomProperties(ExtraGitHubModel): + """MinimalRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -model_rebuild(ThreadSubscription) +model_rebuild(MinimalRepository) +model_rebuild(CodeOfConduct) +model_rebuild(MinimalRepositoryPropPermissions) +model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(MinimalRepositoryPropCustomProperties) -__all__ = ("ThreadSubscription",) +__all__ = ( + "CodeOfConduct", + "MinimalRepository", + "MinimalRepositoryPropCustomProperties", + "MinimalRepositoryPropLicense", + "MinimalRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0064.py b/githubkit/versions/v2022_11_28/models/group_0064.py index d86ab3170..3c93df6a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0064.py +++ b/githubkit/versions/v2022_11_28/models/group_0064.py @@ -15,27 +15,41 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0063 import MinimalRepository -class OrganizationSimple(GitHubModel): - """Organization Simple - A GitHub organization. +class Thread(GitHubModel): + """Thread + + Thread """ - login: str = Field() - id: int = Field() - node_id: str = 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() - 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() + latest_comment_url: str = Field() + type: str = Field() -model_rebuild(OrganizationSimple) +model_rebuild(Thread) +model_rebuild(ThreadPropSubject) -__all__ = ("OrganizationSimple",) +__all__ = ( + "Thread", + "ThreadPropSubject", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0065.py b/githubkit/versions/v2022_11_28/models/group_0065.py index 2b58774a8..3f78547c4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0065.py +++ b/githubkit/versions/v2022_11_28/models/group_0065.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,25 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0031 import SimpleRepository +class ThreadSubscription(GitHubModel): + """Thread Subscription -class DependabotRepositoryAccessDetails(GitHubModel): - """Dependabot Repository Access Details - - Information about repositories that Dependabot is able to access in an - organization + Thread Subscription """ - default_level: Missing[Union[None, Literal["public", "internal"]]] = Field( - default=UNSET, - description="The default repository access level for Dependabot updates.", - ) - accessible_repositories: Missing[list[Union[None, SimpleRepository]]] = Field( - default=UNSET - ) + 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(DependabotRepositoryAccessDetails) +model_rebuild(ThreadSubscription) -__all__ = ("DependabotRepositoryAccessDetails",) +__all__ = ("ThreadSubscription",) diff --git a/githubkit/versions/v2022_11_28/models/group_0066.py b/githubkit/versions/v2022_11_28/models/group_0066.py index 856ee3686..d86ab3170 100644 --- a/githubkit/versions/v2022_11_28/models/group_0066.py +++ b/githubkit/versions/v2022_11_28/models/group_0066.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_0067.py b/githubkit/versions/v2022_11_28/models/group_0067.py index b2ee9387a..1c6b4fa6f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0067.py +++ b/githubkit/versions/v2022_11_28/models/group_0067.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,131 +17,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0032 import SimpleRepository -class OrganizationFull(GitHubModel): - """Organization Full - Organization Full +class DependabotRepositoryAccessDetails(GitHubModel): + """Dependabot Repository Access Details + + Information about repositories that Dependabot is able to access in 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) - default_repository_branch: Missing[Union[str, None]] = Field( + default_level: Missing[Union[None, Literal["public", "internal"]]] = Field( default=UNSET, - description="The default branch for repositories created in this organization.", + description="The default repository access level for Dependabot updates.", ) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_delete_repositories: Missing[bool] = Field(default=UNSET) - members_can_change_repo_visibility: Missing[bool] = Field(default=UNSET) - members_can_invite_outside_collaborators: Missing[bool] = Field(default=UNSET) - members_can_delete_issues: Missing[bool] = Field(default=UNSET) - display_commenter_full_name_setting_enabled: Missing[bool] = Field(default=UNSET) - readers_can_create_discussions: Missing[bool] = Field(default=UNSET) - members_can_create_teams: Missing[bool] = Field(default=UNSET) - members_can_view_dependency_insights: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + accessible_repositories: Missing[list[Union[None, SimpleRepository]]] = Field( default=UNSET ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional URL string to display to contributors who are blocked from pushing a secret.", - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - deploy_keys_enabled_for_repositories: Missing[bool] = Field( - default=UNSET, - description="Controls whether or not deploy keys may be added and used for repositories in the organization.", - ) - - -class OrganizationFullPropPlan(GitHubModel): - """OrganizationFullPropPlan""" - - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) -model_rebuild(OrganizationFull) -model_rebuild(OrganizationFullPropPlan) +model_rebuild(DependabotRepositoryAccessDetails) -__all__ = ( - "OrganizationFull", - "OrganizationFullPropPlan", -) +__all__ = ("DependabotRepositoryAccessDetails",) diff --git a/githubkit/versions/v2022_11_28/models/group_0068.py b/githubkit/versions/v2022_11_28/models/group_0068.py index 0faeb8276..856ee3686 100644 --- a/githubkit/versions/v2022_11_28/models/group_0068.py +++ b/githubkit/versions/v2022_11_28/models/group_0068.py @@ -12,19 +12,52 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ActionsCacheUsageOrgEnterprise(GitHubModel): - """ActionsCacheUsageOrgEnterprise""" +class BillingUsageReport(GitHubModel): + """BillingUsageReport""" - total_active_caches_count: int = Field( - description="The count of active caches across all repositories of an enterprise or an organization." + usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" ) - 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." + + +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(ActionsCacheUsageOrgEnterprise) +model_rebuild(BillingUsageReport) +model_rebuild(BillingUsageReportPropUsageItemsItems) -__all__ = ("ActionsCacheUsageOrgEnterprise",) +__all__ = ( + "BillingUsageReport", + "BillingUsageReportPropUsageItemsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0069.py b/githubkit/versions/v2022_11_28/models/group_0069.py index 76b6d2db7..b2ee9387a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0069.py +++ b/githubkit/versions/v2022_11_28/models/group_0069.py @@ -9,27 +9,140 @@ 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 ActionsHostedRunnerMachineSpec(GitHubModel): - """Github-owned VM details. +class OrganizationFull(GitHubModel): + """Organization Full - Provides details of a particular machine spec. + Organization Full """ - id: str = Field( - description="The ID used for the `size` parameter when creating a new runner." + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field( + default=UNSET, + description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.", + ) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + default_repository_branch: Missing[Union[str, None]] = Field( + default=UNSET, + description="The default branch for repositories created in this organization.", + ) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_delete_repositories: Missing[bool] = Field(default=UNSET) + members_can_change_repo_visibility: Missing[bool] = Field(default=UNSET) + members_can_invite_outside_collaborators: Missing[bool] = Field(default=UNSET) + members_can_delete_issues: Missing[bool] = Field(default=UNSET) + display_commenter_full_name_setting_enabled: Missing[bool] = Field(default=UNSET) + readers_can_create_discussions: Missing[bool] = Field(default=UNSET) + members_can_create_teams: Missing[bool] = Field(default=UNSET) + members_can_view_dependency_insights: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET + ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - 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." + 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(ActionsHostedRunnerMachineSpec) +model_rebuild(OrganizationFull) +model_rebuild(OrganizationFullPropPlan) -__all__ = ("ActionsHostedRunnerMachineSpec",) +__all__ = ( + "OrganizationFull", + "OrganizationFullPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0070.py b/githubkit/versions/v2022_11_28/models/group_0070.py index 328820c9a..0faeb8276 100644 --- a/githubkit/versions/v2022_11_28/models/group_0070.py +++ b/githubkit/versions/v2022_11_28/models/group_0070.py @@ -9,95 +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_0069 import ActionsHostedRunnerMachineSpec - -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 ActionsCacheUsageOrgEnterprise(GitHubModel): + """ActionsCacheUsageOrgEnterprise""" - -class ActionsHostedRunnerPoolImage(GitHubModel): - """GitHub-hosted runner image details. - - Provides details of a hosted runner image - """ - - id: str = Field( - description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." - ) - size_gb: int = Field(description="Image size in GB.") - display_name: str = Field(description="Display name for this image.") - source: Literal["github", "partner", "custom"] = Field( - description="The image provider." - ) - - -class PublicIp(GitHubModel): - """Public IP for a GitHub-hosted larger runners. - - Provides details of Public IP for a GitHub-hosted larger runners - """ - - enabled: Missing[bool] = Field( - default=UNSET, description="Whether public IP is enabled." - ) - prefix: Missing[str] = Field( - default=UNSET, description="The prefix for the public IP." + total_active_caches_count: int = Field( + description="The count of active caches across all repositories of an enterprise or an organization." ) - length: Missing[int] = Field( - default=UNSET, description="The length of the IP prefix." + 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(ActionsHostedRunner) -model_rebuild(ActionsHostedRunnerPoolImage) -model_rebuild(PublicIp) +model_rebuild(ActionsCacheUsageOrgEnterprise) -__all__ = ( - "ActionsHostedRunner", - "ActionsHostedRunnerPoolImage", - "PublicIp", -) +__all__ = ("ActionsCacheUsageOrgEnterprise",) diff --git a/githubkit/versions/v2022_11_28/models/group_0071.py b/githubkit/versions/v2022_11_28/models/group_0071.py index c1d2acd07..76b6d2db7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0071.py +++ b/githubkit/versions/v2022_11_28/models/group_0071.py @@ -9,30 +9,27 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ActionsHostedRunnerImage(GitHubModel): - """GitHub-hosted runner image details. +class ActionsHostedRunnerMachineSpec(GitHubModel): + """Github-owned VM details. - Provides details of a hosted runner image + Provides details of a particular machine spec. """ id: str = Field( - description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." + description="The ID used for the `size` parameter when creating a new runner." ) - 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." + 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(ActionsHostedRunnerImage) +model_rebuild(ActionsHostedRunnerMachineSpec) -__all__ = ("ActionsHostedRunnerImage",) +__all__ = ("ActionsHostedRunnerMachineSpec",) diff --git a/githubkit/versions/v2022_11_28/models/group_0072.py b/githubkit/versions/v2022_11_28/models/group_0072.py index 423e6714f..4ebfa4549 100644 --- a/githubkit/versions/v2022_11_28/models/group_0072.py +++ b/githubkit/versions/v2022_11_28/models/group_0072.py @@ -9,38 +9,95 @@ 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_0071 import ActionsHostedRunnerMachineSpec + + +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 ActionsHostedRunnerLimits(GitHubModel): - """ActionsHostedRunnerLimits""" +class ActionsHostedRunnerPoolImage(GitHubModel): + """GitHub-hosted runner image details. - 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", + Provides details of a hosted runner image + """ + + id: str = Field( + description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." + ) + size_gb: int = Field(description="Image size in GB.") + display_name: str = Field(description="Display name for this image.") + source: Literal["github", "partner", "custom"] = Field( + description="The image provider." ) -class ActionsHostedRunnerLimitsPropPublicIps(GitHubModel): - """Static public IP Limits for GitHub-hosted Hosted Runners. +class PublicIp(GitHubModel): + """Public IP for a GitHub-hosted larger runners. - Provides details of static public IP limits for GitHub-hosted Hosted Runners + Provides details of Public IP for a GitHub-hosted larger runners """ - maximum: int = Field( - description="The maximum number of static public IP addresses that can be used for Hosted 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." ) - current_usage: int = Field( - description="The current number of static public IP addresses in use by Hosted Runners." + length: Missing[int] = Field( + default=UNSET, description="The length of the IP prefix." ) -model_rebuild(ActionsHostedRunnerLimits) -model_rebuild(ActionsHostedRunnerLimitsPropPublicIps) +model_rebuild(ActionsHostedRunner) +model_rebuild(ActionsHostedRunnerPoolImage) +model_rebuild(PublicIp) __all__ = ( - "ActionsHostedRunnerLimits", - "ActionsHostedRunnerLimitsPropPublicIps", + "ActionsHostedRunner", + "ActionsHostedRunnerPoolImage", + "PublicIp", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0073.py b/githubkit/versions/v2022_11_28/models/group_0073.py index e3255a143..c1d2acd07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0073.py +++ b/githubkit/versions/v2022_11_28/models/group_0073.py @@ -9,22 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OidcCustomSub(GitHubModel): - """Actions OIDC Subject customization +class ActionsHostedRunnerImage(GitHubModel): + """GitHub-hosted runner image details. - Actions OIDC Subject customization + Provides details of a hosted runner image """ - include_claim_keys: list[str] = Field( - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." + id: str = Field( + description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." + ) + 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(OidcCustomSub) +model_rebuild(ActionsHostedRunnerImage) -__all__ = ("OidcCustomSub",) +__all__ = ("ActionsHostedRunnerImage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0074.py b/githubkit/versions/v2022_11_28/models/group_0074.py index 3efa01ac1..423e6714f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0074.py +++ b/githubkit/versions/v2022_11_28/models/group_0074.py @@ -9,35 +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 ActionsOrganizationPermissions(GitHubModel): - """ActionsOrganizationPermissions""" +class ActionsHostedRunnerLimits(GitHubModel): + """ActionsHostedRunnerLimits""" - 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`.", + 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", ) - 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 ActionsHostedRunnerLimitsPropPublicIps(GitHubModel): + """Static public IP Limits for GitHub-hosted Hosted Runners. + + Provides details of static public IP limits for GitHub-hosted Hosted Runners + """ + + maximum: int = Field( + description="The maximum number of static public IP addresses that can be used for Hosted Runners." ) - 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`.", + current_usage: int = Field( + description="The current number of static public IP addresses in use by Hosted Runners." ) -model_rebuild(ActionsOrganizationPermissions) +model_rebuild(ActionsHostedRunnerLimits) +model_rebuild(ActionsHostedRunnerLimitsPropPublicIps) -__all__ = ("ActionsOrganizationPermissions",) +__all__ = ( + "ActionsHostedRunnerLimits", + "ActionsHostedRunnerLimitsPropPublicIps", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0075.py b/githubkit/versions/v2022_11_28/models/group_0075.py index 00b241299..e3255a143 100644 --- a/githubkit/versions/v2022_11_28/models/group_0075.py +++ b/githubkit/versions/v2022_11_28/models/group_0075.py @@ -12,27 +12,19 @@ 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 OidcCustomSub(GitHubModel): + """Actions OIDC Subject customization - github_owned_allowed: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.", - ) - verified_allowed: Missing[bool] = Field( - default=UNSET, - description="Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.", - ) - patterns_allowed: Missing[list[str]] = Field( - default=UNSET, - description="Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\n\n> [!NOTE]\n> The `patterns_allowed` setting only applies to public repositories.", + Actions OIDC Subject customization + """ + + include_claim_keys: list[str] = Field( + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." ) -model_rebuild(SelectedActions) +model_rebuild(OidcCustomSub) -__all__ = ("SelectedActions",) +__all__ = ("OidcCustomSub",) diff --git a/githubkit/versions/v2022_11_28/models/group_0076.py b/githubkit/versions/v2022_11_28/models/group_0076.py index 0ec430210..3efa01ac1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0076.py +++ b/githubkit/versions/v2022_11_28/models/group_0076.py @@ -14,19 +14,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ActionsGetDefaultWorkflowPermissions(GitHubModel): - """ActionsGetDefaultWorkflowPermissions""" +class ActionsOrganizationPermissions(GitHubModel): + """ActionsOrganizationPermissions""" - default_workflow_permissions: Literal["read", "write"] = Field( - description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." ) - can_approve_pull_request_reviews: bool = Field( - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." + 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`.", ) -model_rebuild(ActionsGetDefaultWorkflowPermissions) +model_rebuild(ActionsOrganizationPermissions) -__all__ = ("ActionsGetDefaultWorkflowPermissions",) +__all__ = ("ActionsOrganizationPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0077.py b/githubkit/versions/v2022_11_28/models/group_0077.py index b91f2faf0..00b241299 100644 --- a/githubkit/versions/v2022_11_28/models/group_0077.py +++ b/githubkit/versions/v2022_11_28/models/group_0077.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,23 @@ from githubkit.utils import UNSET -class ActionsSetDefaultWorkflowPermissions(GitHubModel): - """ActionsSetDefaultWorkflowPermissions""" +class SelectedActions(GitHubModel): + """SelectedActions""" - default_workflow_permissions: Missing[Literal["read", "write"]] = 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="The default workflow permissions granted to the GITHUB_TOKEN when running workflows.", + description="Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.", ) - can_approve_pull_request_reviews: Missing[bool] = Field( + patterns_allowed: Missing[list[str]] = Field( default=UNSET, - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.", + 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.", ) -model_rebuild(ActionsSetDefaultWorkflowPermissions) +model_rebuild(SelectedActions) -__all__ = ("ActionsSetDefaultWorkflowPermissions",) +__all__ = ("SelectedActions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0078.py b/githubkit/versions/v2022_11_28/models/group_0078.py index 305c99aaa..0ec430210 100644 --- a/githubkit/versions/v2022_11_28/models/group_0078.py +++ b/githubkit/versions/v2022_11_28/models/group_0078.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 RunnerLabel(GitHubModel): - """Self hosted runner label +class ActionsGetDefaultWorkflowPermissions(GitHubModel): + """ActionsGetDefaultWorkflowPermissions""" - A label for a self hosted runner - """ - - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the label." + default_workflow_permissions: Literal["read", "write"] = Field( + description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." ) - 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.", + can_approve_pull_request_reviews: bool = Field( + description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." ) -model_rebuild(RunnerLabel) +model_rebuild(ActionsGetDefaultWorkflowPermissions) -__all__ = ("RunnerLabel",) +__all__ = ("ActionsGetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0079.py b/githubkit/versions/v2022_11_28/models/group_0079.py index 48310da0e..b91f2faf0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0079.py +++ b/githubkit/versions/v2022_11_28/models/group_0079.py @@ -9,33 +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_0078 import RunnerLabel - -class Runner(GitHubModel): - """Self hosted runners +class ActionsSetDefaultWorkflowPermissions(GitHubModel): + """ActionsSetDefaultWorkflowPermissions""" - 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." + 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.", ) - name: str = Field(description="The name of the runner.") - os: str = Field(description="The Operating System of the runner.") - status: str = Field(description="The status of the runner.") - busy: bool = Field() - labels: list[RunnerLabel] = Field() - ephemeral: Missing[bool] = Field(default=UNSET) -model_rebuild(Runner) +model_rebuild(ActionsSetDefaultWorkflowPermissions) -__all__ = ("Runner",) +__all__ = ("ActionsSetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0080.py b/githubkit/versions/v2022_11_28/models/group_0080.py index c4eff90af..305c99aaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0080.py +++ b/githubkit/versions/v2022_11_28/models/group_0080.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,22 @@ from githubkit.utils import UNSET -class RunnerApplication(GitHubModel): - """Runner Application +class RunnerLabel(GitHubModel): + """Self hosted runner label - Runner Application + A label for a self hosted runner """ - os: str = Field() - architecture: str = Field() - download_url: str = Field() - filename: str = Field() - temp_download_token: Missing[str] = Field( + 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="A short lived bearer token used to download the runner, if needed.", + description="The type of label. Read-only labels are applied automatically when the runner is configured.", ) - sha256_checksum: Missing[str] = Field(default=UNSET) -model_rebuild(RunnerApplication) +model_rebuild(RunnerLabel) -__all__ = ("RunnerApplication",) +__all__ = ("RunnerLabel",) diff --git a/githubkit/versions/v2022_11_28/models/group_0081.py b/githubkit/versions/v2022_11_28/models/group_0081.py index bb8ab2b85..92f61fe21 100644 --- a/githubkit/versions/v2022_11_28/models/group_0081.py +++ b/githubkit/versions/v2022_11_28/models/group_0081.py @@ -9,49 +9,33 @@ 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_0020 import Repository +from .group_0080 import RunnerLabel -class AuthenticationToken(GitHubModel): - """Authentication Token +class Runner(GitHubModel): + """Self hosted runners - Authentication Token + A self hosted runner """ - 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", + id: int = Field(description="The ID of the runner.") + runner_group_id: Missing[int] = Field( + default=UNSET, description="The ID of the runner group." ) + name: str = Field(description="The name of the runner.") + os: str = Field(description="The Operating System of the runner.") + status: str = Field(description="The status of the runner.") + busy: bool = Field() + labels: list[RunnerLabel] = Field() + ephemeral: Missing[bool] = Field(default=UNSET) -class AuthenticationTokenPropPermissions(GitHubModel): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ - - -model_rebuild(AuthenticationToken) -model_rebuild(AuthenticationTokenPropPermissions) +model_rebuild(Runner) -__all__ = ( - "AuthenticationToken", - "AuthenticationTokenPropPermissions", -) +__all__ = ("Runner",) diff --git a/githubkit/versions/v2022_11_28/models/group_0082.py b/githubkit/versions/v2022_11_28/models/group_0082.py index 9d8938959..c4eff90af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0082.py +++ b/githubkit/versions/v2022_11_28/models/group_0082.py @@ -16,20 +16,23 @@ from githubkit.utils import UNSET -class ActionsPublicKey(GitHubModel): - """ActionsPublicKey +class RunnerApplication(GitHubModel): + """Runner Application - The public key used for setting Actions Secrets. + Runner Application """ - 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) + 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(ActionsPublicKey) +model_rebuild(RunnerApplication) -__all__ = ("ActionsPublicKey",) +__all__ = ("RunnerApplication",) diff --git a/githubkit/versions/v2022_11_28/models/group_0083.py b/githubkit/versions/v2022_11_28/models/group_0083.py index 51fd6a419..bb8ab2b85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0083.py +++ b/githubkit/versions/v2022_11_28/models/group_0083.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,37 +18,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0020 import Repository -class TeamSimple(GitHubModel): - """Team Simple - Groups of organization members that gives permissions on specified repositories. +class AuthenticationToken(GitHubModel): + """Authentication Token + + Authentication Token """ - 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" + 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" ) - 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( + single_file: Missing[Union[str, None]] = Field(default=UNSET) + repository_selection: Missing[Literal["all", "selected"]] = Field( default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", + description="Describe whether all repositories have been selected or there's a selection involved", ) -model_rebuild(TeamSimple) +class AuthenticationTokenPropPermissions(GitHubModel): + """AuthenticationTokenPropPermissions + + Examples: + {'issues': 'read', 'deployments': 'write'} + """ + + +model_rebuild(AuthenticationToken) +model_rebuild(AuthenticationTokenPropPermissions) -__all__ = ("TeamSimple",) +__all__ = ( + "AuthenticationToken", + "AuthenticationTokenPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0084.py b/githubkit/versions/v2022_11_28/models/group_0084.py index ae950348b..9d8938959 100644 --- a/githubkit/versions/v2022_11_28/models/group_0084.py +++ b/githubkit/versions/v2022_11_28/models/group_0084.py @@ -9,53 +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 -from .group_0083 import TeamSimple - -class Team(GitHubModel): - """Team +class ActionsPublicKey(GitHubModel): + """ActionsPublicKey - Groups of organization members that gives permissions on specified repositories. + The public key used for setting Actions Secrets. """ - 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", -) + 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_0085.py b/githubkit/versions/v2022_11_28/models/group_0085.py index a01a7893c..51fd6a419 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 datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,62 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0084 import Team +class TeamSimple(GitHubModel): + """Team Simple -class CampaignSummary(GitHubModel): - """Campaign summary - - The campaign metadata and alert stats. + Groups of organization members that gives permissions on specified repositories. """ - number: int = Field(description="The number of the newly created campaign") - created_at: datetime = Field( - description="The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - name: Missing[str] = Field(default=UNSET, description="The campaign name") - description: str = Field(description="The campaign description") - managers: list[SimpleUser] = Field(description="The campaign managers") - team_managers: Missing[list[Team]] = Field( - default=UNSET, description="The campaign team managers" - ) - published_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - ends_at: datetime = Field( - description="The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - closed_at: Missing[Union[datetime, None]] = Field( + 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="The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.", - ) - state: Literal["open", "closed"] = Field( - title="Campaign state", - description="Indicates whether a campaign is open or closed", - ) - contact_link: Union[str, None] = Field( - description="The contact link of the campaign." + description="Distinguished Name (DN) that team maps to within LDAP environment", ) - alert_stats: Missing[CampaignSummaryPropAlertStats] = Field(default=UNSET) - - -class CampaignSummaryPropAlertStats(GitHubModel): - """CampaignSummaryPropAlertStats""" - - open_count: int = Field(description="The number of open alerts") - closed_count: int = Field(description="The number of closed alerts") - in_progress_count: int = Field(description="The number of in-progress alerts") -model_rebuild(CampaignSummary) -model_rebuild(CampaignSummaryPropAlertStats) +model_rebuild(TeamSimple) -__all__ = ( - "CampaignSummary", - "CampaignSummaryPropAlertStats", -) +__all__ = ("TeamSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0086.py b/githubkit/versions/v2022_11_28/models/group_0086.py index 7aa158d05..d4f13bb01 100644 --- a/githubkit/versions/v2022_11_28/models/group_0086.py +++ b/githubkit/versions/v2022_11_28/models/group_0086.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,44 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0085 import TeamSimple -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 Team(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + 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", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0087.py b/githubkit/versions/v2022_11_28/models/group_0087.py index f49c4a62a..2e56655ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0087.py +++ b/githubkit/versions/v2022_11_28/models/group_0087.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,62 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0086 import Team -class CodeScanningAnalysisTool(GitHubModel): - """CodeScanningAnalysisTool""" - name: Missing[str] = Field( - default=UNSET, - description="The name of the tool used to generate the code scanning analysis.", +class CampaignSummary(GitHubModel): + """Campaign summary + + The campaign metadata and alert stats. + """ + + number: int = Field(description="The number of the newly created campaign") + created_at: datetime = Field( + description="The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - version: Missing[Union[str, None]] = Field( + updated_at: datetime = Field( + description="The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + name: Missing[str] = Field(default=UNSET, description="The campaign name") + description: str = Field(description="The campaign description") + managers: list[SimpleUser] = Field(description="The campaign managers") + team_managers: Missing[list[Team]] = Field( + default=UNSET, description="The campaign team managers" + ) + published_at: Missing[datetime] = Field( default=UNSET, - description="The version of the tool used to generate the code scanning analysis.", + description="The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + ends_at: datetime = Field( + description="The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - guid: Missing[Union[str, None]] = Field( + closed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.", + description="The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.", ) + state: Literal["open", "closed"] = Field( + title="Campaign state", + description="Indicates whether a campaign is open or closed", + ) + contact_link: Union[str, None] = Field( + description="The contact link of the campaign." + ) + alert_stats: Missing[CampaignSummaryPropAlertStats] = Field(default=UNSET) + + +class CampaignSummaryPropAlertStats(GitHubModel): + """CampaignSummaryPropAlertStats""" + + open_count: int = Field(description="The number of open alerts") + closed_count: int = Field(description="The number of closed alerts") + in_progress_count: int = Field(description="The number of in-progress alerts") -model_rebuild(CodeScanningAnalysisTool) +model_rebuild(CampaignSummary) +model_rebuild(CampaignSummaryPropAlertStats) -__all__ = ("CodeScanningAnalysisTool",) +__all__ = ( + "CampaignSummary", + "CampaignSummaryPropAlertStats", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0088.py b/githubkit/versions/v2022_11_28/models/group_0088.py index f0972b26d..7aa158d05 100644 --- a/githubkit/versions/v2022_11_28/models/group_0088.py +++ b/githubkit/versions/v2022_11_28/models/group_0088.py @@ -18,71 +18,43 @@ from githubkit.utils import UNSET -class CodeScanningAlertInstance(GitHubModel): - """CodeScanningAlertInstance""" +class CodeScanningAlertRuleSummary(GitHubModel): + """CodeScanningAlertRuleSummary""" - ref: Missing[str] = Field( + id: Missing[Union[str, None]] = Field( default=UNSET, - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``.", + description="A unique identifier for the rule used to detect the alert.", ) - 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.", + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." ) - 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.", + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." ) - category: Missing[str] = 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="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + description="A short description of the rule used to detect the alert.", ) - state: Missing[Union[None, Literal["open", "dismissed", "fixed"]]] = Field( - default=UNSET, description="State of a code scanning alert." + full_description: Missing[str] = Field( + default=UNSET, description="A description of the rule used to detect the 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." + tags: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." ) - html_url: Missing[str] = Field(default=UNSET) - classifications: Missing[ - list[ - Union[ - None, Literal["source", "generated", "test", "library", "documentation"] - ] - ] - ] = Field( + help_: Missing[Union[str, None]] = 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.", + 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.", ) -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(CodeScanningAlertInstance) -model_rebuild(CodeScanningAlertLocation) -model_rebuild(CodeScanningAlertInstancePropMessage) +model_rebuild(CodeScanningAlertRuleSummary) -__all__ = ( - "CodeScanningAlertInstance", - "CodeScanningAlertInstancePropMessage", - "CodeScanningAlertLocation", -) +__all__ = ("CodeScanningAlertRuleSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0089.py b/githubkit/versions/v2022_11_28/models/group_0089.py index 3963ff2a2..f49c4a62a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0089.py +++ b/githubkit/versions/v2022_11_28/models/group_0089.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,60 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0031 import SimpleRepository -from .group_0086 import CodeScanningAlertRuleSummary -from .group_0087 import CodeScanningAnalysisTool -from .group_0088 import CodeScanningAlertInstance +class CodeScanningAnalysisTool(GitHubModel): + """CodeScanningAnalysisTool""" -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`." - ) - updated_at: Missing[datetime] = Field( + name: Missing[str] = 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." + description="The name of the tool used to generate the code scanning analysis.", ) - fixed_at: Missing[Union[datetime, None]] = Field( + version: Missing[Union[str, 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`.", + description="The version of the tool used to generate the code scanning analysis.", ) - 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." + 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.", ) - dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -model_rebuild(CodeScanningOrganizationAlertItems) +model_rebuild(CodeScanningAnalysisTool) -__all__ = ("CodeScanningOrganizationAlertItems",) +__all__ = ("CodeScanningAnalysisTool",) diff --git a/githubkit/versions/v2022_11_28/models/group_0090.py b/githubkit/versions/v2022_11_28/models/group_0090.py index db250979c..f0972b26d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0090.py +++ b/githubkit/versions/v2022_11_28/models/group_0090.py @@ -14,31 +14,75 @@ 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 CodeScanningAlertInstance(GitHubModel): + """CodeScanningAlertInstance""" - A description of the machine powering a codespace. - """ - - name: str = Field(description="The name of the machine.") - display_name: str = Field( - description="The display name of the machine includes cores, memory, and storage." + 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.", ) - 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." + 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.", ) - memory_in_bytes: int = Field( - description="How much memory is available to the codespace." + state: Missing[Union[None, Literal["open", "dismissed", "fixed"]]] = Field( + default=UNSET, description="State of a code scanning alert." ) - 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.' + commit_sha: Missing[str] = Field(default=UNSET) + message: Missing[CodeScanningAlertInstancePropMessage] = Field(default=UNSET) + location: Missing[CodeScanningAlertLocation] = Field( + default=UNSET, description="Describe a region within a file for the alert." ) + html_url: Missing[str] = Field(default=UNSET) + classifications: Missing[ + list[ + Union[ + None, Literal["source", "generated", "test", "library", "documentation"] + ] + ] + ] = Field( + default=UNSET, + description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.", + ) + + +class CodeScanningAlertLocation(GitHubModel): + """CodeScanningAlertLocation + + Describe a region within a file for the alert. + """ + + 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(CodespaceMachine) +model_rebuild(CodeScanningAlertInstance) +model_rebuild(CodeScanningAlertLocation) +model_rebuild(CodeScanningAlertInstancePropMessage) -__all__ = ("CodespaceMachine",) +__all__ = ( + "CodeScanningAlertInstance", + "CodeScanningAlertInstancePropMessage", + "CodeScanningAlertLocation", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0091.py b/githubkit/versions/v2022_11_28/models/group_0091.py index ad4487be8..d174cc7ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0091.py +++ b/githubkit/versions/v2022_11_28/models/group_0091.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Annotated, Literal, Union from pydantic import Field @@ -19,156 +19,59 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0061 import MinimalRepository -from .group_0090 import CodespaceMachine +from .group_0032 import SimpleRepository +from .group_0088 import CodeScanningAlertRuleSummary +from .group_0089 import CodeScanningAnalysisTool +from .group_0090 import CodeScanningAlertInstance -class Codespace(GitHubModel): - """Codespace +class CodeScanningOrganizationAlertItems(GitHubModel): + """CodeScanningOrganizationAlertItems""" - 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." + 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`." ) - 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( + updated_at: Missing[datetime] = Field( default=UNSET, - description="API URL to publish this codespace to a new repository.", + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." + 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." ) - 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.", + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - 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", + 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`." ) - 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"', + 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." ) - 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.", + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) - - -class 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.", + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." ) + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -model_rebuild(Codespace) -model_rebuild(CodespacePropGitStatus) -model_rebuild(CodespacePropRuntimeConstraints) +model_rebuild(CodeScanningOrganizationAlertItems) -__all__ = ( - "Codespace", - "CodespacePropGitStatus", - "CodespacePropRuntimeConstraints", -) +__all__ = ("CodeScanningOrganizationAlertItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0092.py b/githubkit/versions/v2022_11_28/models/group_0092.py index 1a40b558a..db250979c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0092.py +++ b/githubkit/versions/v2022_11_28/models/group_0092.py @@ -9,27 +9,36 @@ 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 CodespacesPublicKey(GitHubModel): - """CodespacesPublicKey +class CodespaceMachine(GitHubModel): + """Codespace machine - The public key used for setting Codespaces 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.") - 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(CodespacesPublicKey) - -__all__ = ("CodespacesPublicKey",) + 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_0093.py b/githubkit/versions/v2022_11_28/models/group_0093.py index 5c75bf257..8838a440b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0093.py +++ b/githubkit/versions/v2022_11_28/models/group_0093.py @@ -9,85 +9,166 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0063 import MinimalRepository +from .group_0092 import CodespaceMachine -class CopilotOrganizationDetails(ExtraGitHubModel): - """Copilot Organization Details - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. +class Codespace(GitHubModel): + """Codespace + + A codespace. """ - seat_breakdown: CopilotOrganizationSeatBreakdown = Field( - title="Copilot Seat Breakdown", - description="The breakdown of Copilot Business seats for the organization.", + 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.", ) - public_code_suggestions: Literal["allow", "block", "unconfigured"] = Field( - description="The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)." + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." ) - ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = 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 organization policy for allowing or disallowing Copilot Chat in the IDE.", + 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." ) - platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) + pending_operation: Missing[Union[bool, None]] = Field( default=UNSET, - description="The organization policy for allowing or disallowing Copilot features on GitHub.com.", + 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.", ) - cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( default=UNSET, - description="The organization policy for allowing or disallowing Copilot in the CLI.", + description="Text to show user when codespace is disabled by a pending operation", ) - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] = Field(description="The mode of assigning new seats.") - plan_type: Missing[Literal["business", "enterprise"]] = Field( + idle_timeout_notice: Missing[Union[str, None]] = Field( default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + 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 CopilotOrganizationSeatBreakdown(GitHubModel): - """Copilot Seat Breakdown +class CodespacePropGitStatus(GitHubModel): + """CodespacePropGitStatus - The breakdown of Copilot Business seats for the organization. + Details about the codespace's git repository. """ - total: Missing[int] = Field( + ahead: Missing[int] = Field( default=UNSET, - description="The total number of seats being billed for the organization as of the current billing cycle.", + description="The number of commits the local repository is ahead of the remote.", ) - added_this_cycle: Missing[int] = Field( - default=UNSET, description="Seats added during the current billing cycle." - ) - pending_cancellation: Missing[int] = Field( + behind: Missing[int] = Field( default=UNSET, - description="The number of seats that are pending cancellation at the end of the current billing cycle.", + 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." ) - pending_invitation: Missing[int] = Field( + has_uncommitted_changes: Missing[bool] = Field( default=UNSET, - description="The number of users who have been invited to receive a Copilot seat through this organization.", + description="Whether the local repository has uncommitted changes.", ) - active_this_cycle: Missing[int] = Field( + ref: Missing[str] = Field( default=UNSET, - description="The number of seats that have used Copilot during the current billing cycle.", + description="The current branch (or SHA if in detached HEAD state) of the local repository.", ) - inactive_this_cycle: Missing[int] = Field( + + +class CodespacePropRuntimeConstraints(GitHubModel): + """CodespacePropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( default=UNSET, - description="The number of seats that have not used Copilot during the current billing cycle.", + description="The privacy settings a user can select from when forwarding a port.", ) -model_rebuild(CopilotOrganizationDetails) -model_rebuild(CopilotOrganizationSeatBreakdown) +model_rebuild(Codespace) +model_rebuild(CodespacePropGitStatus) +model_rebuild(CodespacePropRuntimeConstraints) __all__ = ( - "CopilotOrganizationDetails", - "CopilotOrganizationSeatBreakdown", + "Codespace", + "CodespacePropGitStatus", + "CodespacePropRuntimeConstraints", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0094.py b/githubkit/versions/v2022_11_28/models/group_0094.py index ef9354a7b..1a40b558a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0094.py +++ b/githubkit/versions/v2022_11_28/models/group_0094.py @@ -9,95 +9,27 @@ 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_0064 import OrganizationSimple -from .group_0084 import Team - - -class CopilotSeatDetails(GitHubModel): - """Copilot Business Seat Detail - - Information about a Copilot Business seat assignment for a user, team, or - organization. - """ - - assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) - assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( - default=UNSET, - description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", - ) - pending_cancellation_date: Missing[Union[date, None]] = Field( - default=UNSET, - description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", - ) - last_activity_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", - ) - last_activity_editor: Missing[Union[str, None]] = Field( - default=UNSET, - description="Last editor that was used by the user for a GitHub Copilot completion.", - ) - created_at: datetime = Field( - description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", - ) - plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( - default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", - ) - -class EnterpriseTeam(GitHubModel): - """Enterprise Team +class CodespacesPublicKey(GitHubModel): + """CodespacesPublicKey - Group of enterprise owners and/or members + The public key used for setting Codespaces secrets. """ - id: int = Field() - name: str = Field() - description: Missing[str] = Field(default=UNSET) - slug: str = Field() - url: str = Field() - sync_to_organizations: Missing[str] = Field(default=UNSET) - organization_selection_type: Missing[str] = Field(default=UNSET) - group_id: Missing[Union[str, None]] = Field(default=UNSET) - group_name: Missing[Union[str, None]] = Field(default=UNSET) - html_url: str = Field() - members_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - - -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: Missing[int] = Field( - default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", - ) - seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) + 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(CopilotSeatDetails) -model_rebuild(EnterpriseTeam) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(CodespacesPublicKey) -__all__ = ( - "CopilotSeatDetails", - "EnterpriseTeam", - "OrgsOrgCopilotBillingSeatsGetResponse200", -) +__all__ = ("CodespacesPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0095.py b/githubkit/versions/v2022_11_28/models/group_0095.py index b2ecce70b..5c75bf257 100644 --- a/githubkit/versions/v2022_11_28/models/group_0095.py +++ b/githubkit/versions/v2022_11_28/models/group_0095.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,340 +18,76 @@ from githubkit.utils import UNSET -class CopilotUsageMetricsDay(ExtraGitHubModel): - """Copilot Usage Metrics +class CopilotOrganizationDetails(ExtraGitHubModel): + """Copilot Organization Details - Copilot usage metrics for a given day. + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. """ - date: date = Field( - description="The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format." + seat_breakdown: CopilotOrganizationSeatBreakdown = Field( + title="Copilot Seat Breakdown", + description="The breakdown of Copilot Business seats for the organization.", ) - 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.", + public_code_suggestions: Literal["allow", "block", "unconfigured"] = Field( + description="The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)." ) - - -class CopilotDotcomChatPropModelsItems(GitHubModel): - """CopilotDotcomChatPropModelsItems""" - - name: Missing[str] = Field( + ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( default=UNSET, - description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.", + description="The organization policy for allowing or disallowing Copilot Chat in the IDE.", ) - 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( + platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( default=UNSET, - description="The training date for the custom model (if applicable).", + description="The organization policy for allowing or disallowing Copilot features on GitHub.com.", ) - total_engaged_users: Missing[int] = Field( + cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( default=UNSET, - description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", + description="The organization policy for allowing or disallowing Copilot in the CLI.", ) - total_chats: 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"]] = Field( default=UNSET, - description="Total number of chats initiated by users on github.com.", + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", ) -class CopilotIdeChat(ExtraGitHubModel): - """CopilotIdeChat +class CopilotOrganizationSeatBreakdown(GitHubModel): + """Copilot Seat Breakdown - Usage metrics for Copilot Chat in the IDE. + The breakdown of Copilot Business seats for the organization. """ - total_engaged_users: Missing[int] = Field( + total: Missing[int] = Field( default=UNSET, - description="Total number of users who prompted Copilot Chat in the IDE.", + description="The total number of seats being billed for the organization as of the current billing cycle.", ) - 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.", + added_this_cycle: Missing[int] = Field( + default=UNSET, description="Seats added during the current billing cycle." ) - models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( + pending_cancellation: Missing[int] = Field( default=UNSET, - description="List of model metrics for custom models and the default model.", + description="The number of seats that are pending cancellation at the end of the current billing cycle.", ) - - -class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeChatPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( + pending_invitation: Missing[int] = Field( default=UNSET, - description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." + description="The number of users who have been invited to receive a Copilot seat through this organization.", ) - 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( + active_this_cycle: 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.", + description="The number of seats that have used Copilot during the current billing cycle.", ) - total_chat_copy_events: Missing[int] = Field( + inactive_this_cycle: 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.", + description="The number of seats that have not used Copilot during the current billing cycle.", ) -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 pull request summaries. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." - ) - total_pr_summaries_created: Missing[int] = Field( - default=UNSET, - description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", - ) - - -class CopilotIdeCodeCompletions(ExtraGitHubModel): - """CopilotIdeCodeCompletions - - Usage metrics for Copilot editor code completions in the IDE. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances.", - ) - languages: Missing[list[CopilotIdeCodeCompletionsPropLanguagesItems]] = Field( - default=UNSET, description="Code completion metrics for active languages." - ) - editors: Missing[list[CopilotIdeCodeCompletionsPropEditorsItems]] = Field( - default=UNSET - ) - - -class CopilotIdeCodeCompletionsPropLanguagesItems(GitHubModel): - """CopilotIdeCodeCompletionsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: Missing[str] = Field( - default=UNSET, - description="Name of the language used for Copilot code completion suggestions.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances.", - ) - - -class CopilotIdeCodeCompletionsPropEditorsItems(ExtraGitHubModel): - """CopilotIdeCodeCompletionsPropEditorsItems - - Copilot code completion metrics for active editors. - """ - - name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances.", - ) - models: Missing[list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems]] = ( - Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", - ) - ) - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances.", - ) - languages: Missing[ - list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems] - ] = Field( - default=UNSET, - description="Code completion metrics for active languages, for the given editor.", - ) - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems( - GitHubModel -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: Missing[str] = Field( - default=UNSET, - description="Name of the language used for Copilot code completion suggestions, for the given editor.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances.", - ) - total_code_suggestions: Missing[int] = Field( - default=UNSET, - description="The number of Copilot code suggestions generated for the given editor, for the given language.", - ) - total_code_acceptances: Missing[int] = Field( - default=UNSET, - description="The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances.", - ) - total_code_lines_suggested: Missing[int] = Field( - default=UNSET, - description="The number of lines of code suggested by Copilot code completions for the given editor, for the given language.", - ) - total_code_lines_accepted: Missing[int] = Field( - default=UNSET, - description="The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language.", - ) - - -model_rebuild(CopilotUsageMetricsDay) -model_rebuild(CopilotDotcomChat) -model_rebuild(CopilotDotcomChatPropModelsItems) -model_rebuild(CopilotIdeChat) -model_rebuild(CopilotIdeChatPropEditorsItems) -model_rebuild(CopilotIdeChatPropEditorsItemsPropModelsItems) -model_rebuild(CopilotDotcomPullRequests) -model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItems) -model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems) -model_rebuild(CopilotIdeCodeCompletions) -model_rebuild(CopilotIdeCodeCompletionsPropLanguagesItems) -model_rebuild(CopilotIdeCodeCompletionsPropEditorsItems) -model_rebuild(CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems) -model_rebuild( - CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems -) +model_rebuild(CopilotOrganizationDetails) +model_rebuild(CopilotOrganizationSeatBreakdown) __all__ = ( - "CopilotDotcomChat", - "CopilotDotcomChatPropModelsItems", - "CopilotDotcomPullRequests", - "CopilotDotcomPullRequestsPropRepositoriesItems", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems", - "CopilotIdeChat", - "CopilotIdeChatPropEditorsItems", - "CopilotIdeChatPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletions", - "CopilotIdeCodeCompletionsPropEditorsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", - "CopilotIdeCodeCompletionsPropLanguagesItems", - "CopilotUsageMetricsDay", + "CopilotOrganizationDetails", + "CopilotOrganizationSeatBreakdown", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0096.py b/githubkit/versions/v2022_11_28/models/group_0096.py index a7dfe2e7d..ea60edbda 100644 --- a/githubkit/versions/v2022_11_28/models/group_0096.py +++ b/githubkit/versions/v2022_11_28/models/group_0096.py @@ -9,21 +9,95 @@ 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_0066 import OrganizationSimple +from .group_0086 import Team + + +class CopilotSeatDetails(GitHubModel): + """Copilot Business Seat Detail + + Information about a Copilot Business seat assignment for a user, team, or + organization. + """ + + assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) + assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( + default=UNSET, + description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", + ) + pending_cancellation_date: Missing[Union[date, None]] = Field( + default=UNSET, + description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", + ) + last_activity_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", + ) + last_activity_editor: Missing[Union[str, None]] = Field( + default=UNSET, + description="Last editor that was used by the user for a GitHub Copilot completion.", + ) + created_at: datetime = Field( + description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", + ) + plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( + default=UNSET, + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + ) -class DependabotPublicKey(GitHubModel): - """DependabotPublicKey +class EnterpriseTeam(GitHubModel): + """Enterprise Team - The public key used for setting Dependabot Secrets. + Group of enterprise owners and/or members """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + id: int = Field() + name: str = Field() + description: Missing[str] = Field(default=UNSET) + slug: str = Field() + url: str = Field() + sync_to_organizations: Missing[str] = Field(default=UNSET) + organization_selection_type: Missing[str] = Field(default=UNSET) + group_id: Missing[Union[str, None]] = Field(default=UNSET) + group_name: Missing[Union[str, None]] = Field(default=UNSET) + html_url: str = Field() + members_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + + +class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + + total_seats: Missing[int] = Field( + default=UNSET, + description="Total number of Copilot seats for the organization currently being billed.", + ) + seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(DependabotPublicKey) +model_rebuild(CopilotSeatDetails) +model_rebuild(EnterpriseTeam) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) -__all__ = ("DependabotPublicKey",) +__all__ = ( + "CopilotSeatDetails", + "EnterpriseTeam", + "OrgsOrgCopilotBillingSeatsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0097.py b/githubkit/versions/v2022_11_28/models/group_0097.py index cc7ce9f88..b2ecce70b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0097.py +++ b/githubkit/versions/v2022_11_28/models/group_0097.py @@ -9,40 +9,350 @@ from __future__ import annotations -from datetime import datetime -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_0003 import SimpleUser -from .group_0061 import MinimalRepository +class CopilotUsageMetricsDay(ExtraGitHubModel): + """Copilot Usage Metrics -class Package(GitHubModel): - """Package + 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 Chat. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, + description="The training date for the custom model (if applicable).", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", + ) + total_chats: Missing[int] = Field( + default=UNSET, + description="Total number of chats initiated by users on github.com.", + ) + + +class CopilotIdeChat(ExtraGitHubModel): + """CopilotIdeChat + + Usage metrics for Copilot Chat in the IDE. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat in the IDE.", + ) + editors: Missing[list[CopilotIdeChatPropEditorsItems]] = Field(default=UNSET) + + +class CopilotIdeChatPropEditorsItems(GitHubModel): + """CopilotIdeChatPropEditorsItems + + Copilot Chat metrics, for active editors. + """ + + name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the specified editor.", + ) + models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + + +class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): + """CopilotIdeChatPropEditorsItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the given editor and model.", + ) + total_chats: Missing[int] = Field( + default=UNSET, + description="The total number of chats initiated by users in the given editor and model.", + ) + total_chat_insertion_events: Missing[int] = Field( + default=UNSET, + description="The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor.", + ) + total_chat_copy_events: Missing[int] = Field( + default=UNSET, + description="The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor.", + ) + + +class CopilotDotcomPullRequests(ExtraGitHubModel): + """CopilotDotcomPullRequests + + Usage metrics for Copilot for pull requests. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once.", + ) + repositories: Missing[list[CopilotDotcomPullRequestsPropRepositoriesItems]] = Field( + default=UNSET, + description="Repositories in which users used Copilot for Pull Requests to generate pull request summaries", + ) + + +class CopilotDotcomPullRequestsPropRepositoriesItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItems""" + + name: Missing[str] = Field(default=UNSET, description="Repository name") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository.", + ) + models: Missing[ + list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems] + ] = Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + + +class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot pull request summaries. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_pr_summaries_created: Missing[int] = Field( + default=UNSET, + description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", + ) + + +class CopilotIdeCodeCompletions(ExtraGitHubModel): + """CopilotIdeCodeCompletions + + Usage metrics for Copilot editor code completions in the IDE. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances.", + ) + languages: Missing[list[CopilotIdeCodeCompletionsPropLanguagesItems]] = Field( + default=UNSET, description="Code completion metrics for active languages." + ) + editors: Missing[list[CopilotIdeCodeCompletionsPropEditorsItems]] = Field( + default=UNSET + ) + + +class CopilotIdeCodeCompletionsPropLanguagesItems(GitHubModel): + """CopilotIdeCodeCompletionsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: Missing[str] = Field( + default=UNSET, + description="Name of the language used for Copilot code completion suggestions.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances.", + ) + + +class CopilotIdeCodeCompletionsPropEditorsItems(ExtraGitHubModel): + """CopilotIdeCodeCompletionsPropEditorsItems + + Copilot code completion metrics for active editors. + """ + + name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances.", + ) + models: Missing[list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems]] = ( + Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + ) + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems(GitHubModel): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances.", + ) + languages: Missing[ + list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems] + ] = Field( + default=UNSET, + description="Code completion metrics for active languages, for the given editor.", + ) + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems( + GitHubModel +): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems - A software package + Usage metrics for a given language for the given editor for Copilot code + completions. """ - 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() + 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(Package) +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__ = ("Package",) +__all__ = ( + "CopilotDotcomChat", + "CopilotDotcomChatPropModelsItems", + "CopilotDotcomPullRequests", + "CopilotDotcomPullRequestsPropRepositoriesItems", + "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems", + "CopilotIdeChat", + "CopilotIdeChatPropEditorsItems", + "CopilotIdeChatPropEditorsItemsPropModelsItems", + "CopilotIdeCodeCompletions", + "CopilotIdeCodeCompletionsPropEditorsItems", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", + "CopilotIdeCodeCompletionsPropLanguagesItems", + "CopilotUsageMetricsDay", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0098.py b/githubkit/versions/v2022_11_28/models/group_0098.py index a7a2456e5..a7dfe2e7d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0098.py +++ b/githubkit/versions/v2022_11_28/models/group_0098.py @@ -9,37 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -class OrganizationInvitation(GitHubModel): - """Organization Invitation +class DependabotPublicKey(GitHubModel): + """DependabotPublicKey - Organization Invitation + The public key used for setting Dependabot Secrets. """ - 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) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(OrganizationInvitation) +model_rebuild(DependabotPublicKey) -__all__ = ("OrganizationInvitation",) +__all__ = ("DependabotPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0099.py b/githubkit/versions/v2022_11_28/models/group_0099.py index c07e88da1..23d21aea2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0099.py +++ b/githubkit/versions/v2022_11_28/models/group_0099.py @@ -10,6 +10,7 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,39 +18,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0063 import MinimalRepository -class OrgHook(GitHubModel): - """Org Hook - Org Hook +class Package(GitHubModel): + """Package + + A software package """ - id: int = Field() + id: int = Field(description="Unique identifier of the package.") + name: str = Field(description="The name of the package.") + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() url: str = Field() - 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() + 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() - type: str = Field() - - -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) + updated_at: datetime = Field() -model_rebuild(OrgHook) -model_rebuild(OrgHookPropConfig) +model_rebuild(Package) -__all__ = ( - "OrgHook", - "OrgHookPropConfig", -) +__all__ = ("Package",) diff --git a/githubkit/versions/v2022_11_28/models/group_0100.py b/githubkit/versions/v2022_11_28/models/group_0100.py index 0a96c6c73..a7a2456e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0100.py +++ b/githubkit/versions/v2022_11_28/models/group_0100.py @@ -17,26 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ApiInsightsRouteStatsItems(GitHubModel): - """ApiInsightsRouteStatsItems""" - http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") - api_route: Missing[str] = Field( - default=UNSET, description="The API path's route template" - ) - total_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests within the queried time period", - ) - rate_limited_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests that were rate limited within the queried time period", - ) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) +class OrganizationInvitation(GitHubModel): + """Organization Invitation + Organization Invitation + """ -model_rebuild(ApiInsightsRouteStatsItems) + 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__ = ("ApiInsightsRouteStatsItems",) + +model_rebuild(OrganizationInvitation) + +__all__ = ("OrganizationInvitation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0101.py b/githubkit/versions/v2022_11_28/models/group_0101.py index 4d268bc1d..c07e88da1 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 Union +from datetime import datetime from pydantic import Field @@ -18,18 +18,38 @@ from githubkit.utils import UNSET -class ApiInsightsSubjectStatsItems(GitHubModel): - """ApiInsightsSubjectStatsItems""" +class OrgHook(GitHubModel): + """Org Hook - 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) + 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(ApiInsightsSubjectStatsItems) -__all__ = ("ApiInsightsSubjectStatsItems",) +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_0102.py b/githubkit/versions/v2022_11_28/models/group_0102.py index 43562dec3..0a96c6c73 100644 --- a/githubkit/versions/v2022_11_28/models/group_0102.py +++ b/githubkit/versions/v2022_11_28/models/group_0102.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,12 +18,13 @@ from githubkit.utils import UNSET -class ApiInsightsSummaryStats(GitHubModel): - """Summary Stats - - API Insights usage summary stats for an organization - """ +class ApiInsightsRouteStatsItems(GitHubModel): + """ApiInsightsRouteStatsItems""" + http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") + api_route: Missing[str] = Field( + default=UNSET, description="The API path's route template" + ) total_request_count: Missing[int] = Field( default=UNSET, description="The total number of requests within the queried time period", @@ -30,8 +33,10 @@ class ApiInsightsSummaryStats(GitHubModel): default=UNSET, description="The total number of requests that were rate limited within the queried time period", ) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsSummaryStats) +model_rebuild(ApiInsightsRouteStatsItems) -__all__ = ("ApiInsightsSummaryStats",) +__all__ = ("ApiInsightsRouteStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0103.py b/githubkit/versions/v2022_11_28/models/group_0103.py index 1e53263ef..4d268bc1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0103.py +++ b/githubkit/versions/v2022_11_28/models/group_0103.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,14 +18,18 @@ from githubkit.utils import UNSET -class ApiInsightsTimeStatsItems(GitHubModel): - """ApiInsightsTimeStatsItems""" +class ApiInsightsSubjectStatsItems(GitHubModel): + """ApiInsightsSubjectStatsItems""" - timestamp: Missing[str] = Field(default=UNSET) + 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(ApiInsightsTimeStatsItems) +model_rebuild(ApiInsightsSubjectStatsItems) -__all__ = ("ApiInsightsTimeStatsItems",) +__all__ = ("ApiInsightsSubjectStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0104.py b/githubkit/versions/v2022_11_28/models/group_0104.py index 3b86770cc..43562dec3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0104.py +++ b/githubkit/versions/v2022_11_28/models/group_0104.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,20 +16,22 @@ from githubkit.utils import UNSET -class ApiInsightsUserStatsItems(GitHubModel): - """ApiInsightsUserStatsItems""" +class ApiInsightsSummaryStats(GitHubModel): + """Summary Stats + + API Insights usage summary stats for an organization + """ - 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) + 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(ApiInsightsUserStatsItems) +model_rebuild(ApiInsightsSummaryStats) -__all__ = ("ApiInsightsUserStatsItems",) +__all__ = ("ApiInsightsSummaryStats",) diff --git a/githubkit/versions/v2022_11_28/models/group_0105.py b/githubkit/versions/v2022_11_28/models/group_0105.py index 1f7c3f84d..1e53263ef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0105.py +++ b/githubkit/versions/v2022_11_28/models/group_0105.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 +from githubkit.typing import Missing +from githubkit.utils import UNSET -class InteractionLimitResponse(GitHubModel): - """Interaction Limits - - Interaction limit settings. - """ +class ApiInsightsTimeStatsItems(GitHubModel): + """ApiInsightsTimeStatsItems""" - 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() + 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(InteractionLimitResponse) +model_rebuild(ApiInsightsTimeStatsItems) -__all__ = ("InteractionLimitResponse",) +__all__ = ("ApiInsightsTimeStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0106.py b/githubkit/versions/v2022_11_28/models/group_0106.py index 341c1cb09..3b86770cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0106.py +++ b/githubkit/versions/v2022_11_28/models/group_0106.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 InteractionLimit(GitHubModel): - """Interaction Restrictions +class ApiInsightsUserStatsItems(GitHubModel): + """ApiInsightsUserStatsItems""" - Limit interactions to a specific type of user for a specified duration - """ + 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) - 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(ApiInsightsUserStatsItems) -model_rebuild(InteractionLimit) - -__all__ = ("InteractionLimit",) +__all__ = ("ApiInsightsUserStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0107.py b/githubkit/versions/v2022_11_28/models/group_0107.py index 427838689..1f7c3f84d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0107.py +++ b/githubkit/versions/v2022_11_28/models/group_0107.py @@ -9,35 +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 -class OrganizationCreateIssueType(GitHubModel): - """OrganizationCreateIssueType""" +class InteractionLimitResponse(GitHubModel): + """Interaction Limits - name: str = Field(description="Name of the issue type.") - is_enabled: bool = Field( - description="Whether or not the issue type is enabled at the organization level." - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the issue type." + 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." ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="Color for the issue type.") + origin: str = Field() + expires_at: datetime = Field() -model_rebuild(OrganizationCreateIssueType) +model_rebuild(InteractionLimitResponse) -__all__ = ("OrganizationCreateIssueType",) +__all__ = ("InteractionLimitResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0108.py b/githubkit/versions/v2022_11_28/models/group_0108.py index 35d9a70f4..341c1cb09 100644 --- a/githubkit/versions/v2022_11_28/models/group_0108.py +++ b/githubkit/versions/v2022_11_28/models/group_0108.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,23 @@ from githubkit.utils import UNSET -class OrganizationUpdateIssueType(GitHubModel): - """OrganizationUpdateIssueType""" +class InteractionLimit(GitHubModel): + """Interaction Restrictions - name: str = Field(description="Name of the issue type.") - is_enabled: bool = Field( - description="Whether or not the issue type is enabled at the organization level." + Limit interactions to a specific type of user for a specified duration + """ + + 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." ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the issue type." + 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`.", ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(OrganizationUpdateIssueType) +model_rebuild(InteractionLimit) -__all__ = ("OrganizationUpdateIssueType",) +__all__ = ("InteractionLimit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0109.py b/githubkit/versions/v2022_11_28/models/group_0109.py index 51d13246c..427838689 100644 --- a/githubkit/versions/v2022_11_28/models/group_0109.py +++ b/githubkit/versions/v2022_11_28/models/group_0109.py @@ -17,41 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0064 import OrganizationSimple +class OrganizationCreateIssueType(GitHubModel): + """OrganizationCreateIssueType""" -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." - ) - role: Literal["admin", "member", "billing_manager"] = Field( - description="The user's membership type in the organization." + name: str = Field(description="Name of the issue type.") + is_enabled: bool = Field( + description="Whether or not the issue type is enabled at the organization level." ) - organization_url: str = Field() - organization: OrganizationSimple = Field( - title="Organization Simple", description="A GitHub organization." + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the issue type." ) - user: Union[None, SimpleUser] = Field() - permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) - - -class OrgMembershipPropPermissions(GitHubModel): - """OrgMembershipPropPermissions""" - - can_create_repository: bool = Field() + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(OrgMembership) -model_rebuild(OrgMembershipPropPermissions) +model_rebuild(OrganizationCreateIssueType) -__all__ = ( - "OrgMembership", - "OrgMembershipPropPermissions", -) +__all__ = ("OrganizationCreateIssueType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0110.py b/githubkit/versions/v2022_11_28/models/group_0110.py index 64aae139a..35d9a70f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0110.py +++ b/githubkit/versions/v2022_11_28/models/group_0110.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,41 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository - - -class Migration(GitHubModel): - """Migration - - A migration. - """ - - id: int = Field() - owner: Union[None, SimpleUser] = Field() - guid: str = Field() - state: str = Field() - lock_repositories: bool = Field() - exclude_metadata: bool = Field() - exclude_git_data: bool = Field() - exclude_attachments: bool = Field() - exclude_releases: bool = Field() - exclude_owner_projects: bool = Field() - org_metadata_only: bool = Field() - repositories: list[Repository] = Field( - description="The repositories included in the migration. Only returned for export migrations." + +class OrganizationUpdateIssueType(GitHubModel): + """OrganizationUpdateIssueType""" + + name: str = Field(description="Name of the issue type.") + is_enabled: bool = Field( + description="Whether or not the issue type is enabled at the organization level." ) - 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"`.', + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the issue type." ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(Migration) +model_rebuild(OrganizationUpdateIssueType) -__all__ = ("Migration",) +__all__ = ("OrganizationUpdateIssueType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0111.py b/githubkit/versions/v2022_11_28/models/group_0111.py index c78f983ac..074da9238 100644 --- a/githubkit/versions/v2022_11_28/models/group_0111.py +++ b/githubkit/versions/v2022_11_28/models/group_0111.py @@ -9,69 +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.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0066 import OrganizationSimple -class OrganizationRole(GitHubModel): - """Organization Role +class OrgMembership(GitHubModel): + """Org Membership - Organization roles + Org Membership """ - 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.", + 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." ) - base_role: Missing[ - Union[None, Literal["read", "triage", "write", "maintain", "admin"]] - ] = Field( - default=UNSET, - description="The system role from which this role inherits permissions.", + role: Literal["admin", "member", "billing_manager"] = Field( + description="The user's membership type in the organization." ) - source: Missing[ - Union[None, Literal["Organization", "Enterprise", "Predefined"]] - ] = Field( + direct_membership: Missing[bool] = Field( default=UNSET, - description='Source answers the question, "where did this role come from?"', + description="Whether the user has direct membership in the organization.", ) - permissions: list[str] = Field( - description="A list of permissions included in this role." + enterprise_teams_providing_indirect_membership: Missing[list[str]] = Field( + max_length=100 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the enterprise teams providing the user with indirect membership in the organization.\nA limit of 100 enterprise team slugs is returned.", ) - 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." + 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 OrgsOrgOrganizationRolesGetResponse200(GitHubModel): - """OrgsOrgOrganizationRolesGetResponse200""" +class OrgMembershipPropPermissions(GitHubModel): + """OrgMembershipPropPermissions""" - 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.", - ) + can_create_repository: bool = Field() -model_rebuild(OrganizationRole) -model_rebuild(OrgsOrgOrganizationRolesGetResponse200) +model_rebuild(OrgMembership) +model_rebuild(OrgMembershipPropPermissions) __all__ = ( - "OrganizationRole", - "OrgsOrgOrganizationRolesGetResponse200", + "OrgMembership", + "OrgMembershipPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0112.py b/githubkit/versions/v2022_11_28/models/group_0112.py index be41f869c..64aae139a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0112.py +++ b/githubkit/versions/v2022_11_28/models/group_0112.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,49 +18,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0083 import TeamSimple +from .group_0003 import SimpleUser +from .group_0020 import Repository -class TeamRoleAssignment(GitHubModel): - """A Role Assignment for a Team +class Migration(GitHubModel): + """Migration - The Relationship a Team has with a role. + A migration. """ - 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) + 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() - 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() + 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(TeamRoleAssignment) -model_rebuild(TeamRoleAssignmentPropPermissions) +model_rebuild(Migration) -__all__ = ( - "TeamRoleAssignment", - "TeamRoleAssignmentPropPermissions", -) +__all__ = ("Migration",) diff --git a/githubkit/versions/v2022_11_28/models/group_0113.py b/githubkit/versions/v2022_11_28/models/group_0113.py index fb6a35820..c78f983ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0113.py +++ b/githubkit/versions/v2022_11_28/models/group_0113.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,46 +18,60 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0083 import TeamSimple +from .group_0003 import SimpleUser -class UserRoleAssignment(GitHubModel): - """A Role Assignment for a User +class OrganizationRole(GitHubModel): + """Organization Role - The Relationship a User has with a role. + Organization roles """ - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + id: int = Field(description="The unique identifier of the role.") + name: str = Field(description="The name of the role.") + description: Missing[Union[str, None]] = Field( default=UNSET, - description="Determines if the user has a direct, indirect, or mixed relationship to a role", + description="A short description about who this role is for or what permissions it grants.", ) - inherited_from: Missing[list[TeamSimple]] = Field( - default=UNSET, description="Team the user has gotten the role through" + base_role: Missing[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] + ] = Field( + default=UNSET, + description="The system role from which this role inherits permissions.", + ) + source: Missing[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] + ] = Field( + default=UNSET, + description='Source answers the question, "where did this role come from?"', + ) + permissions: list[str] = Field( + description="A list of permissions included in this role." ) - name: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - starred_at: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(UserRoleAssignment) - -__all__ = ("UserRoleAssignment",) + organization: Union[None, SimpleUser] = Field() + created_at: datetime = Field(description="The date and time the role was created.") + updated_at: datetime = Field( + description="The date and time the role was last updated." + ) + + +class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): + """OrgsOrgOrganizationRolesGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of organization roles available to the organization.", + ) + roles: Missing[list[OrganizationRole]] = Field( + default=UNSET, + description="The list of organization roles available to the organization.", + ) + + +model_rebuild(OrganizationRole) +model_rebuild(OrgsOrgOrganizationRolesGetResponse200) + +__all__ = ( + "OrganizationRole", + "OrgsOrgOrganizationRolesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0114.py b/githubkit/versions/v2022_11_28/models/group_0114.py index fe0d0f426..b0e2b3bf2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0114.py +++ b/githubkit/versions/v2022_11_28/models/group_0114.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,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0085 import TeamSimple -class PackageVersion(GitHubModel): - """Package Version - - A version of a software package - """ - - id: int = Field(description="Unique identifier of the package version.") - name: str = Field(description="The name of the package version.") - url: str = Field() - package_html_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - description: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) - metadata: Missing[PackageVersionPropMetadata] = Field( - default=UNSET, title="Package Version Metadata" - ) +class TeamRoleAssignment(GitHubModel): + """A Role Assignment for a Team -class PackageVersionPropMetadata(GitHubModel): - """Package Version Metadata""" + The Relationship a Team has with a role. + """ - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - container: Missing[PackageVersionPropMetadataPropContainer] = Field( - default=UNSET, title="Container Metadata" + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + default=UNSET, + description="Determines if the team has a direct, indirect, or mixed relationship to a role", ) - docker: Missing[PackageVersionPropMetadataPropDocker] = Field( - default=UNSET, title="Docker Metadata" - ) - - -class PackageVersionPropMetadataPropContainer(GitHubModel): - """Container Metadata""" - - tags: list[str] = 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 PackageVersionPropMetadataPropDocker(GitHubModel): - """Docker Metadata""" +class TeamRoleAssignmentPropPermissions(GitHubModel): + """TeamRoleAssignmentPropPermissions""" - tag: Missing[list[str]] = Field(default=UNSET) + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() -model_rebuild(PackageVersion) -model_rebuild(PackageVersionPropMetadata) -model_rebuild(PackageVersionPropMetadataPropContainer) -model_rebuild(PackageVersionPropMetadataPropDocker) +model_rebuild(TeamRoleAssignment) +model_rebuild(TeamRoleAssignmentPropPermissions) __all__ = ( - "PackageVersion", - "PackageVersionPropMetadata", - "PackageVersionPropMetadataPropContainer", - "PackageVersionPropMetadataPropDocker", + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0115.py b/githubkit/versions/v2022_11_28/models/group_0115.py index c7a2781c2..5704c8e02 100644 --- a/githubkit/versions/v2022_11_28/models/group_0115.py +++ b/githubkit/versions/v2022_11_28/models/group_0115.py @@ -13,99 +13,50 @@ 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_0085 import TeamSimple -class OrganizationProgrammaticAccessGrantRequest(GitHubModel): - """Simple Organization Programmatic Access Grant Request +class UserRoleAssignment(GitHubModel): + """A Role Assignment for a User - Minimal representation of an organization programmatic access grant request for - enumerations + The Relationship a User has with a role. """ - 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", -) + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + default=UNSET, + description="Determines if the user has a direct, indirect, or mixed relationship to a role", + ) + 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/v2022_11_28/models/group_0116.py b/githubkit/versions/v2022_11_28/models/group_0116.py index 9cc3f78de..fe0d0f426 100644 --- a/githubkit/versions/v2022_11_28/models/group_0116.py +++ b/githubkit/versions/v2022_11_28/models/group_0116.py @@ -9,100 +9,71 @@ 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 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 PackageVersion(GitHubModel): + """Package Version -class OrganizationProgrammaticAccessGrant(GitHubModel): - """Organization Programmatic Access Grant - - Minimal representation of an organization programmatic access grant for - enumerations + A version of a software package """ - 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." + 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" ) -class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissions +class PackageVersionPropMetadata(GitHubModel): + """Package Version Metadata""" - 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 + 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 OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" +class PackageVersionPropMetadataPropContainer(GitHubModel): + """Container Metadata""" + tags: list[str] = Field() -class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" +class PackageVersionPropMetadataPropDocker(GitHubModel): + """Docker Metadata""" -class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + tag: Missing[list[str]] = Field(default=UNSET) -model_rebuild(OrganizationProgrammaticAccessGrant) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) +model_rebuild(PackageVersion) +model_rebuild(PackageVersionPropMetadata) +model_rebuild(PackageVersionPropMetadataPropContainer) +model_rebuild(PackageVersionPropMetadataPropDocker) __all__ = ( - "OrganizationProgrammaticAccessGrant", - "OrganizationProgrammaticAccessGrantPropPermissions", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", + "PackageVersion", + "PackageVersionPropMetadata", + "PackageVersionPropMetadataPropContainer", + "PackageVersionPropMetadataPropDocker", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0117.py b/githubkit/versions/v2022_11_28/models/group_0117.py index a034d5582..c7a2781c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0117.py +++ b/githubkit/versions/v2022_11_28/models/group_0117.py @@ -9,41 +9,103 @@ 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 OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): - """Organization private registry - Private registry configuration for an organization +class OrganizationProgrammaticAccessGrantRequest(GitHubModel): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations """ - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( - description="The registry type." + 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." ) - username: Missing[str] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry.", + 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." ) - 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." + 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." ) - 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`.", + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." ) - created_at: datetime = Field() - updated_at: datetime = Field() + 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(OrgPrivateRegistryConfigurationWithSelectedRepositories) +model_rebuild(OrganizationProgrammaticAccessGrantRequest) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequest", + "OrganizationProgrammaticAccessGrantRequestPropPermissions", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0118.py b/githubkit/versions/v2022_11_28/models/group_0118.py index a7a52f64e..9cc3f78de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0118.py +++ b/githubkit/versions/v2022_11_28/models/group_0118.py @@ -9,47 +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.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -class Project(GitHubModel): - """Project +class OrganizationProgrammaticAccessGrant(GitHubModel): + """Organization Programmatic Access Grant - Projects are a way to organize columns and cards of work. + Minimal representation of an organization programmatic access grant for + enumerations """ - 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.", + 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." ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." ) + repositories_url: str = Field( + description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." + ) + permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( + description="Permissions requested, categorized by type of permission." + ) + access_granted_at: str = Field( + description="Date and time when the fine-grained personal access token was approved to access the organization." + ) + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." + ) + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( + default=UNSET + ) + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" -model_rebuild(Project) +model_rebuild(OrganizationProgrammaticAccessGrant) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) -__all__ = ("Project",) +__all__ = ( + "OrganizationProgrammaticAccessGrant", + "OrganizationProgrammaticAccessGrantPropPermissions", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0119.py b/githubkit/versions/v2022_11_28/models/group_0119.py index e7f7856d5..090bbd737 100644 --- a/githubkit/versions/v2022_11_28/models/group_0119.py +++ b/githubkit/versions/v2022_11_28/models/group_0119.py @@ -9,58 +9,55 @@ 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 OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): + """Organization private registry - Custom property defined on an organization + Private registry configuration for an organization """ - property_name: str = Field(description="The name of the property") - url: Missing[str] = Field( + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] = Field(description="The registry type.") + username: Missing[str] = Field( default=UNSET, - description="The URL that can be used to fetch, update, or delete info about this property via the API.", + description="The username to use when authenticating with the private registry.", ) - source_type: Missing[Literal["organization", "enterprise"]] = Field( - default=UNSET, description="The source type of the property" + 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." ) - 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( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", ) - 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") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(CustomProperty) +model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) -__all__ = ("CustomProperty",) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) diff --git a/githubkit/versions/v2022_11_28/models/group_0120.py b/githubkit/versions/v2022_11_28/models/group_0120.py index e20487da9..a7a52f64e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0120.py +++ b/githubkit/versions/v2022_11_28/models/group_0120.py @@ -9,50 +9,47 @@ 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_0003 import SimpleUser -class CustomPropertySetPayload(GitHubModel): - """Custom Property Set Payload - Custom property set payload +class Project(GitHubModel): + """Project + + Projects are a way to organize columns and cards of work. """ - 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" + 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.", ) - allowed_values: Missing[ - Union[ - Annotated[ - list[Annotated[str, Field(max_length=75)]], - Field(max_length=200 if PYDANTIC_V2 else None), - ], - None, - ] - ] = Field( + private: Missing[bool] = Field( default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", ) - values_editable_by: Missing[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] - ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(CustomPropertySetPayload) +model_rebuild(Project) -__all__ = ("CustomPropertySetPayload",) +__all__ = ("Project",) diff --git a/githubkit/versions/v2022_11_28/models/group_0121.py b/githubkit/versions/v2022_11_28/models/group_0121.py index 323c1ba32..e7f7856d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0121.py +++ b/githubkit/versions/v2022_11_28/models/group_0121.py @@ -9,25 +9,58 @@ from __future__ import annotations -from typing import Union +from typing import Annotated, Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CustomPropertyValue(GitHubModel): - """Custom Property Value +class CustomProperty(GitHubModel): + """Organization Custom Property - Custom property name and associated value + Custom property defined on an organization """ property_name: str = Field(description="The name of the property") - value: Union[str, list[str], None] = Field( - description="The value assigned to the property" + 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(CustomPropertyValue) +model_rebuild(CustomProperty) -__all__ = ("CustomPropertyValue",) +__all__ = ("CustomProperty",) diff --git a/githubkit/versions/v2022_11_28/models/group_0122.py b/githubkit/versions/v2022_11_28/models/group_0122.py index 94a427751..e20487da9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0122.py +++ b/githubkit/versions/v2022_11_28/models/group_0122.py @@ -9,27 +9,50 @@ from __future__ import annotations -from pydantic import Field +from typing import Annotated, Literal, Union -from githubkit.compat import GitHubModel, model_rebuild +from pydantic import Field -from .group_0121 import CustomPropertyValue +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgRepoCustomPropertyValues(GitHubModel): - """Organization Repository Custom Property Values +class CustomPropertySetPayload(GitHubModel): + """Custom Property Set Payload - List of custom property values for a repository + Custom property set payload """ - 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" + 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(OrgRepoCustomPropertyValues) +model_rebuild(CustomPropertySetPayload) -__all__ = ("OrgRepoCustomPropertyValues",) +__all__ = ("CustomPropertySetPayload",) diff --git a/githubkit/versions/v2022_11_28/models/group_0123.py b/githubkit/versions/v2022_11_28/models/group_0123.py index 35b60a16d..323c1ba32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0123.py +++ b/githubkit/versions/v2022_11_28/models/group_0123.py @@ -16,18 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodeOfConductSimple(GitHubModel): - """Code Of Conduct Simple +class CustomPropertyValue(GitHubModel): + """Custom Property Value - Code of Conduct Simple + Custom property name and associated value """ - url: str = Field() - key: str = Field() - name: str = Field() - html_url: Union[str, None] = Field() + property_name: str = Field(description="The name of the property") + value: Union[str, list[str], None] = Field( + description="The value assigned to the property" + ) -model_rebuild(CodeOfConductSimple) +model_rebuild(CustomPropertyValue) -__all__ = ("CodeOfConductSimple",) +__all__ = ("CustomPropertyValue",) diff --git a/githubkit/versions/v2022_11_28/models/group_0124.py b/githubkit/versions/v2022_11_28/models/group_0124.py index 72d37adfb..66b46e1ef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0124.py +++ b/githubkit/versions/v2022_11_28/models/group_0124.py @@ -9,196 +9,27 @@ 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_0003 import SimpleUser -from .group_0019 import LicenseSimple -from .group_0020 import Repository -from .group_0060 import SecurityAndAnalysis -from .group_0123 import CodeOfConductSimple +from .group_0123 import CustomPropertyValue -class FullRepository(GitHubModel): - """Full Repository +class OrgRepoCustomPropertyValues(GitHubModel): + """Organization Repository Custom Property Values - Full Repository + List of custom property values for a 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: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field() - open_issues_count: int = Field() - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: bool = Field() - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: datetime = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - subscribers_count: int = Field() - network_count: int = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - parent: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - source: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - forks: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, description="Whether anonymous git access is allowed." + 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" ) - 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(FullRepository) -model_rebuild(FullRepositoryPropPermissions) -model_rebuild(FullRepositoryPropCustomProperties) +model_rebuild(OrgRepoCustomPropertyValues) -__all__ = ( - "FullRepository", - "FullRepositoryPropCustomProperties", - "FullRepositoryPropPermissions", -) +__all__ = ("OrgRepoCustomPropertyValues",) diff --git a/githubkit/versions/v2022_11_28/models/group_0125.py b/githubkit/versions/v2022_11_28/models/group_0125.py index 72e9651e6..35b60a16d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0125.py +++ b/githubkit/versions/v2022_11_28/models/group_0125.py @@ -9,34 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRulesetBypassActor(GitHubModel): - """Repository Ruleset Bypass Actor +class CodeOfConductSimple(GitHubModel): + """Code Of Conduct Simple - An actor that can bypass rules in a ruleset + Code of Conduct Simple """ - 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.", - ) + url: str = Field() + key: str = Field() + name: str = Field() + html_url: Union[str, None] = Field() -model_rebuild(RepositoryRulesetBypassActor) +model_rebuild(CodeOfConductSimple) -__all__ = ("RepositoryRulesetBypassActor",) +__all__ = ("CodeOfConductSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0126.py b/githubkit/versions/v2022_11_28/models/group_0126.py index 93bfcd33e..9b5a715a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0126.py +++ b/githubkit/versions/v2022_11_28/models/group_0126.py @@ -9,24 +9,196 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0127 import RepositoryRulesetConditionsPropRefName +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0020 import Repository +from .group_0062 import SecurityAndAnalysis +from .group_0125 import CodeOfConductSimple -class RepositoryRulesetConditions(GitHubModel): - """Repository ruleset conditions for ref names +class FullRepository(GitHubModel): + """Full Repository - Parameters for a repository ruleset ref name condition + Full Repository """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field() + open_issues_count: int = Field() + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: bool = Field() + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: datetime = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + subscribers_count: int = Field() + network_count: int = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + parent: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + source: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + forks: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, description="Whether anonymous git access is allowed." + ) + code_of_conduct: Missing[CodeOfConductSimple] = Field( + default=UNSET, + title="Code Of Conduct Simple", + description="Code of Conduct Simple", + ) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class FullRepositoryPropPermissions(GitHubModel): + """FullRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class FullRepositoryPropCustomProperties(ExtraGitHubModel): + """FullRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -model_rebuild(RepositoryRulesetConditions) +model_rebuild(FullRepository) +model_rebuild(FullRepositoryPropPermissions) +model_rebuild(FullRepositoryPropCustomProperties) -__all__ = ("RepositoryRulesetConditions",) +__all__ = ( + "FullRepository", + "FullRepositoryPropCustomProperties", + "FullRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0127.py b/githubkit/versions/v2022_11_28/models/group_0127.py index 1ca843cd5..72e9651e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0127.py +++ b/githubkit/versions/v2022_11_28/models/group_0127.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,25 @@ from githubkit.utils import UNSET -class RepositoryRulesetConditionsPropRefName(GitHubModel): - """RepositoryRulesetConditionsPropRefName""" +class RepositoryRulesetBypassActor(GitHubModel): + """Repository Ruleset Bypass Actor + + An actor that can bypass rules in a ruleset + """ - include: Missing[list[str]] = Field( + actor_id: Missing[Union[int, None]] = 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.", + 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.", ) - exclude: Missing[list[str]] = Field( + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] = Field(description="The type of actor that can bypass a ruleset.") + bypass_mode: Missing[Literal["always", "pull_request"]] = Field( default=UNSET, - description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", + 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(RepositoryRulesetConditionsPropRefName) +model_rebuild(RepositoryRulesetBypassActor) -__all__ = ("RepositoryRulesetConditionsPropRefName",) +__all__ = ("RepositoryRulesetBypassActor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0128.py b/githubkit/versions/v2022_11_28/models/group_0128.py index 07f739fca..ea6b3e975 100644 --- a/githubkit/versions/v2022_11_28/models/group_0128.py +++ b/githubkit/versions/v2022_11_28/models/group_0128.py @@ -12,21 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0129 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) +from .group_0129 import RepositoryRulesetConditionsPropRefName -class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): - """Repository ruleset conditions for repository names +class RepositoryRulesetConditions(GitHubModel): + """Repository ruleset conditions for ref names - Parameters for a repository name condition + Parameters for a repository ruleset ref name condition """ - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) +model_rebuild(RepositoryRulesetConditions) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) +__all__ = ("RepositoryRulesetConditions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0129.py b/githubkit/versions/v2022_11_28/models/group_0129.py index 45d8e8310..1ca843cd5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0129.py +++ b/githubkit/versions/v2022_11_28/models/group_0129.py @@ -16,23 +16,19 @@ from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" +class RepositoryRulesetConditionsPropRefName(GitHubModel): + """RepositoryRulesetConditionsPropRefName""" 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.", + 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 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.", + description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) +model_rebuild(RepositoryRulesetConditionsPropRefName) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) +__all__ = ("RepositoryRulesetConditionsPropRefName",) diff --git a/githubkit/versions/v2022_11_28/models/group_0130.py b/githubkit/versions/v2022_11_28/models/group_0130.py index 2cc1a9a4e..0e7aac461 100644 --- a/githubkit/versions/v2022_11_28/models/group_0130.py +++ b/githubkit/versions/v2022_11_28/models/group_0130.py @@ -13,20 +13,20 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0131 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +from .group_0131 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) -class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): - """Repository ruleset conditions for repository IDs +class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): + """Repository ruleset conditions for repository names - Parameters for a repository ID condition + Parameters for a repository name condition """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() - ) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0131.py b/githubkit/versions/v2022_11_28/models/group_0131.py index fd9df3d90..45d8e8310 100644 --- a/githubkit/versions/v2022_11_28/models/group_0131.py +++ b/githubkit/versions/v2022_11_28/models/group_0131.py @@ -16,15 +16,23 @@ from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - repository_ids: Missing[list[int]] = Field( + include: Missing[list[str]] = Field( default=UNSET, - description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", + description="Array of 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.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) diff --git a/githubkit/versions/v2022_11_28/models/group_0132.py b/githubkit/versions/v2022_11_28/models/group_0132.py index 0fce04cd4..0255fb660 100644 --- a/githubkit/versions/v2022_11_28/models/group_0132.py +++ b/githubkit/versions/v2022_11_28/models/group_0132.py @@ -13,20 +13,20 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, -) +from .group_0133 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): - """Repository ruleset conditions for repository properties +class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): + """Repository ruleset conditions for repository IDs - Parameters for a repository property condition + Parameters for a repository ID condition """ - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() + ) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0133.py b/githubkit/versions/v2022_11_28/models/group_0133.py index de1e60e46..fd9df3d90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0133.py +++ b/githubkit/versions/v2022_11_28/models/group_0133.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,41 +16,15 @@ 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.", - ) - - -class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): - """Repository ruleset property targeting definition +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - Parameters for a targeting a repository property - """ - - name: str = Field(description="The name of the repository property to target") - property_values: list[str] = Field( - description="The values to match for the repository property" - ) - source: Missing[Literal["custom", "system"]] = Field( + repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The source of the repository property. Defaults to 'custom' if not specified.", + description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpec", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", -) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) diff --git a/githubkit/versions/v2022_11_28/models/group_0134.py b/githubkit/versions/v2022_11_28/models/group_0134.py index 32e2efdc1..690e6fc1a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0134.py +++ b/githubkit/versions/v2022_11_28/models/group_0134.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_0127 import RepositoryRulesetConditionsPropRefName -from .group_0129 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +from .group_0135 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) -class OrgRulesetConditionsOneof0(GitHubModel): - """repository_name_and_ref_name +class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): + """Repository ruleset conditions for repository properties - Conditions to target repositories by name and refs by name + Parameters for a repository property condition """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -model_rebuild(OrgRulesetConditionsOneof0) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) -__all__ = ("OrgRulesetConditionsOneof0",) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0135.py b/githubkit/versions/v2022_11_28/models/group_0135.py index 531b263c4..de1e60e46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0135.py +++ b/githubkit/versions/v2022_11_28/models/group_0135.py @@ -9,28 +9,50 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0127 import RepositoryRulesetConditionsPropRefName -from .group_0131 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId + +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 OrgRulesetConditionsOneof1(GitHubModel): - """repository_id_and_ref_name +class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): + """Repository ruleset property targeting definition - Conditions to target repositories by id and refs by name + Parameters for a targeting a repository property """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() + name: str = Field(description="The name of the repository property to target") + property_values: list[str] = Field( + description="The values to match for the repository property" + ) + source: Missing[Literal["custom", "system"]] = Field( + default=UNSET, + description="The source of the repository property. Defaults to 'custom' if not specified.", ) -model_rebuild(OrgRulesetConditionsOneof1) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) -__all__ = ("OrgRulesetConditionsOneof1",) +__all__ = ( + "RepositoryRulesetConditionsRepositoryPropertySpec", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0136.py b/githubkit/versions/v2022_11_28/models/group_0136.py index 11f6c424c..27259b2ef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0136.py +++ b/githubkit/versions/v2022_11_28/models/group_0136.py @@ -15,22 +15,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0127 import RepositoryRulesetConditionsPropRefName -from .group_0133 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +from .group_0129 import RepositoryRulesetConditionsPropRefName +from .group_0131 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) -class OrgRulesetConditionsOneof2(GitHubModel): - """repository_property_and_ref_name +class OrgRulesetConditionsOneof0(GitHubModel): + """repository_name_and_ref_name - Conditions to target repositories by property and refs by name + Conditions to target repositories by name and refs by name """ ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -model_rebuild(OrgRulesetConditionsOneof2) +model_rebuild(OrgRulesetConditionsOneof0) -__all__ = ("OrgRulesetConditionsOneof2",) +__all__ = ("OrgRulesetConditionsOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0137.py b/githubkit/versions/v2022_11_28/models/group_0137.py index d7ce200e3..1b73e2f73 100644 --- a/githubkit/versions/v2022_11_28/models/group_0137.py +++ b/githubkit/versions/v2022_11_28/models/group_0137.py @@ -9,57 +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 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() +from .group_0129 import RepositoryRulesetConditionsPropRefName +from .group_0133 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class RepositoryRuleNonFastForward(GitHubModel): - """non_fast_forward +class OrgRulesetConditionsOneof1(GitHubModel): + """repository_id_and_ref_name - Prevent users with push access from force pushing to refs. + Conditions to target repositories by id and refs by name """ - type: Literal["non_fast_forward"] = Field() + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() + ) -model_rebuild(RepositoryRuleCreation) -model_rebuild(RepositoryRuleDeletion) -model_rebuild(RepositoryRuleRequiredSignatures) -model_rebuild(RepositoryRuleNonFastForward) +model_rebuild(OrgRulesetConditionsOneof1) -__all__ = ( - "RepositoryRuleCreation", - "RepositoryRuleDeletion", - "RepositoryRuleNonFastForward", - "RepositoryRuleRequiredSignatures", -) +__all__ = ("OrgRulesetConditionsOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0138.py b/githubkit/versions/v2022_11_28/models/group_0138.py index 1cbf0ff8c..abcf27a6c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0138.py +++ b/githubkit/versions/v2022_11_28/models/group_0138.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_0139 import RepositoryRuleUpdatePropParameters +from .group_0129 import RepositoryRulesetConditionsPropRefName +from .group_0135 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class RepositoryRuleUpdate(GitHubModel): - """update +class OrgRulesetConditionsOneof2(GitHubModel): + """repository_property_and_ref_name - Only allow users with bypass permission to update matching refs. + Conditions to target repositories by property and refs by name """ - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -model_rebuild(RepositoryRuleUpdate) +model_rebuild(OrgRulesetConditionsOneof2) -__all__ = ("RepositoryRuleUpdate",) +__all__ = ("OrgRulesetConditionsOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0139.py b/githubkit/versions/v2022_11_28/models/group_0139.py index 24be869ac..d7ce200e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0139.py +++ b/githubkit/versions/v2022_11_28/models/group_0139.py @@ -9,19 +9,57 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleUpdatePropParameters(GitHubModel): - """RepositoryRuleUpdatePropParameters""" +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. + """ - update_allows_fetch_and_merge: bool = Field( - description="Branch can pull changes from its upstream repository" - ) + type: Literal["non_fast_forward"] = Field() -model_rebuild(RepositoryRuleUpdatePropParameters) +model_rebuild(RepositoryRuleCreation) +model_rebuild(RepositoryRuleDeletion) +model_rebuild(RepositoryRuleRequiredSignatures) +model_rebuild(RepositoryRuleNonFastForward) -__all__ = ("RepositoryRuleUpdatePropParameters",) +__all__ = ( + "RepositoryRuleCreation", + "RepositoryRuleDeletion", + "RepositoryRuleNonFastForward", + "RepositoryRuleRequiredSignatures", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0140.py b/githubkit/versions/v2022_11_28/models/group_0140.py index 5a1b53ca6..613ae8ae3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0140.py +++ b/githubkit/versions/v2022_11_28/models/group_0140.py @@ -14,17 +14,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0141 import RepositoryRuleUpdatePropParameters -class RepositoryRuleRequiredLinearHistory(GitHubModel): - """required_linear_history - Prevent merge commits from being pushed to matching refs. +class RepositoryRuleUpdate(GitHubModel): + """update + + Only allow users with bypass permission to update matching refs. """ - type: Literal["required_linear_history"] = Field() + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleRequiredLinearHistory) +model_rebuild(RepositoryRuleUpdate) -__all__ = ("RepositoryRuleRequiredLinearHistory",) +__all__ = ("RepositoryRuleUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0141.py b/githubkit/versions/v2022_11_28/models/group_0141.py index e97be87a8..24be869ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0141.py +++ b/githubkit/versions/v2022_11_28/models/group_0141.py @@ -9,27 +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_0142 import RepositoryRuleMergeQueuePropParameters - -class RepositoryRuleMergeQueue(GitHubModel): - """merge_queue - Merges must be performed via a merge queue. - """ +class RepositoryRuleUpdatePropParameters(GitHubModel): + """RepositoryRuleUpdatePropParameters""" - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) + update_allows_fetch_and_merge: bool = Field( + description="Branch can pull changes from its upstream repository" + ) -model_rebuild(RepositoryRuleMergeQueue) +model_rebuild(RepositoryRuleUpdatePropParameters) -__all__ = ("RepositoryRuleMergeQueue",) +__all__ = ("RepositoryRuleUpdatePropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0142.py b/githubkit/versions/v2022_11_28/models/group_0142.py index 152d1eb45..5a1b53ca6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0142.py +++ b/githubkit/versions/v2022_11_28/models/group_0142.py @@ -16,38 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleMergeQueuePropParameters(GitHubModel): - """RepositoryRuleMergeQueuePropParameters""" - - check_response_timeout_minutes: int = Field( - le=360.0, - ge=1.0, - description="Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed", - ) - grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] = Field( - description="When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." - ) - max_entries_to_build: int = Field( - le=100.0, - description="Limit the number of queued pull requests requesting checks and workflow runs at the same time.", - ) - max_entries_to_merge: int = Field( - le=100.0, - description="The maximum number of PRs that will be merged together in a group.", - ) - merge_method: Literal["MERGE", "SQUASH", "REBASE"] = Field( - description="Method to use when merging changes from queued pull requests." - ) - min_entries_to_merge: int = Field( - le=100.0, - description="The minimum number of PRs that will be merged together in a group.", - ) - min_entries_to_merge_wait_minutes: int = Field( - le=360.0, - description="The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.", - ) - - -model_rebuild(RepositoryRuleMergeQueuePropParameters) - -__all__ = ("RepositoryRuleMergeQueuePropParameters",) +class RepositoryRuleRequiredLinearHistory(GitHubModel): + """required_linear_history + + Prevent merge commits from being pushed to matching refs. + """ + + type: Literal["required_linear_history"] = Field() + + +model_rebuild(RepositoryRuleRequiredLinearHistory) + +__all__ = ("RepositoryRuleRequiredLinearHistory",) diff --git a/githubkit/versions/v2022_11_28/models/group_0143.py b/githubkit/versions/v2022_11_28/models/group_0143.py index 04e062929..c4dc7d706 100644 --- a/githubkit/versions/v2022_11_28/models/group_0143.py +++ b/githubkit/versions/v2022_11_28/models/group_0143.py @@ -17,22 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0144 import RepositoryRuleRequiredDeploymentsPropParameters +from .group_0144 import RepositoryRuleMergeQueuePropParameters -class RepositoryRuleRequiredDeployments(GitHubModel): - """required_deployments +class RepositoryRuleMergeQueue(GitHubModel): + """merge_queue - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + Merges must be performed via a merge queue. """ - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) + type: Literal["merge_queue"] = Field() + parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleRequiredDeployments) +model_rebuild(RepositoryRuleMergeQueue) -__all__ = ("RepositoryRuleRequiredDeployments",) +__all__ = ("RepositoryRuleMergeQueue",) diff --git a/githubkit/versions/v2022_11_28/models/group_0144.py b/githubkit/versions/v2022_11_28/models/group_0144.py index d174bdf82..152d1eb45 100644 --- a/githubkit/versions/v2022_11_28/models/group_0144.py +++ b/githubkit/versions/v2022_11_28/models/group_0144.py @@ -9,19 +9,45 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleMergeQueuePropParameters(GitHubModel): + """RepositoryRuleMergeQueuePropParameters""" - required_deployment_environments: list[str] = Field( - description="The environments that must be successfully deployed to before branches can be merged." + 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(RepositoryRuleRequiredDeploymentsPropParameters) +model_rebuild(RepositoryRuleMergeQueuePropParameters) -__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) +__all__ = ("RepositoryRuleMergeQueuePropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0145.py b/githubkit/versions/v2022_11_28/models/group_0145.py index ea8b1f632..565ef5c20 100644 --- a/githubkit/versions/v2022_11_28/models/group_0145.py +++ b/githubkit/versions/v2022_11_28/models/group_0145.py @@ -14,42 +14,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0146 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): - """RequiredReviewerConfiguration - A reviewing team, and file patterns describing which files they must approve - changes to. - """ - - file_patterns: list[str] = Field( - description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." - ) - minimum_approvals: int = Field( - description="Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional." - ) - reviewer: RepositoryRuleParamsReviewer = Field( - title="Reviewer", description="A required reviewing team" - ) - - -class RepositoryRuleParamsReviewer(GitHubModel): - """Reviewer +class RepositoryRuleRequiredDeployments(GitHubModel): + """required_deployments - A required reviewing team + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. """ - id: int = Field( - description="ID of the reviewer which must review changes to matching files." + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( + default=UNSET ) - type: Literal["Team"] = Field(description="The type of the reviewer") -model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) -model_rebuild(RepositoryRuleParamsReviewer) +model_rebuild(RepositoryRuleRequiredDeployments) -__all__ = ( - "RepositoryRuleParamsRequiredReviewerConfiguration", - "RepositoryRuleParamsReviewer", -) +__all__ = ("RepositoryRuleRequiredDeployments",) diff --git a/githubkit/versions/v2022_11_28/models/group_0146.py b/githubkit/versions/v2022_11_28/models/group_0146.py index e66183933..d174bdf82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0146.py +++ b/githubkit/versions/v2022_11_28/models/group_0146.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_0147 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 RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): + """RepositoryRuleRequiredDeploymentsPropParameters""" - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + required_deployment_environments: list[str] = Field( + description="The environments that must be successfully deployed to before branches can be merged." + ) -model_rebuild(RepositoryRulePullRequest) +model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) -__all__ = ("RepositoryRulePullRequest",) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0147.py b/githubkit/versions/v2022_11_28/models/group_0147.py index 6e5c94812..ea8b1f632 100644 --- a/githubkit/versions/v2022_11_28/models/group_0147.py +++ b/githubkit/versions/v2022_11_28/models/group_0147.py @@ -14,39 +14,42 @@ 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 RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): + """RequiredReviewerConfiguration - allowed_merge_methods: Missing[list[Literal["merge", "squash", "rebase"]]] = Field( - default=UNSET, - description="Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.", - ) - automatic_copilot_code_review_enabled: Missing[bool] = Field( - default=UNSET, - description="Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review.", - ) - dismiss_stale_reviews_on_push: bool = Field( - description="New, reviewable commits pushed will dismiss previous pull request review approvals." - ) - require_code_owner_review: bool = Field( - description="Require an approving review in pull requests that modify files that have a designated code owner." + A reviewing team, and file patterns describing which files they must approve + changes to. + """ + + file_patterns: list[str] = Field( + description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." ) - 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." + 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." ) - 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.", + reviewer: RepositoryRuleParamsReviewer = Field( + title="Reviewer", description="A required reviewing team" ) - required_review_thread_resolution: bool = Field( - description="All conversations on code must be resolved before a pull request can be merged." + + +class RepositoryRuleParamsReviewer(GitHubModel): + """Reviewer + + A required reviewing team + """ + + id: int = Field( + description="ID of the reviewer which must review changes to matching files." ) + type: Literal["Team"] = Field(description="The type of the reviewer") -model_rebuild(RepositoryRulePullRequestPropParameters) +model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) +model_rebuild(RepositoryRuleParamsReviewer) -__all__ = ("RepositoryRulePullRequestPropParameters",) +__all__ = ( + "RepositoryRuleParamsRequiredReviewerConfiguration", + "RepositoryRuleParamsReviewer", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0148.py b/githubkit/versions/v2022_11_28/models/group_0148.py index 938a4f3c4..225201244 100644 --- a/githubkit/versions/v2022_11_28/models/group_0148.py +++ b/githubkit/versions/v2022_11_28/models/group_0148.py @@ -17,22 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0149 import RepositoryRuleRequiredStatusChecksPropParameters +from .group_0149 import RepositoryRulePullRequestPropParameters -class RepositoryRuleRequiredStatusChecks(GitHubModel): - """required_status_checks +class RepositoryRulePullRequest(GitHubModel): + """pull_request - 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. + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. """ - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( - default=UNSET - ) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleRequiredStatusChecks) +model_rebuild(RepositoryRulePullRequest) -__all__ = ("RepositoryRuleRequiredStatusChecks",) +__all__ = ("RepositoryRulePullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0149.py b/githubkit/versions/v2022_11_28/models/group_0149.py index 83288089b..6e5c94812 100644 --- a/githubkit/versions/v2022_11_28/models/group_0149.py +++ b/githubkit/versions/v2022_11_28/models/group_0149.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,35 @@ from githubkit.utils import UNSET -class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRulePullRequestPropParameters(GitHubModel): + """RepositoryRulePullRequestPropParameters""" - do_not_enforce_on_create: Missing[bool] = Field( + allowed_merge_methods: Missing[list[Literal["merge", "squash", "rebase"]]] = Field( default=UNSET, - description="Allow repositories and branches to be created if a check would otherwise prohibit it.", + description="Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.", ) - required_status_checks: list[RepositoryRuleParamsStatusCheckConfiguration] = Field( - description="Status checks that are required." + automatic_copilot_code_review_enabled: Missing[bool] = Field( + default=UNSET, + description="Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review.", ) - 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." + dismiss_stale_reviews_on_push: bool = Field( + description="New, reviewable commits pushed will dismiss previous pull request review approvals." ) - - -class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): - """StatusCheckConfiguration - - Required status check - """ - - context: str = Field( - description="The status check context name that must be present on the commit." + require_code_owner_review: bool = Field( + description="Require an approving review in pull requests that modify files that have a designated code owner." ) - integration_id: Missing[int] = Field( - default=UNSET, - description="The optional integration ID that this status check must originate from.", + 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(RepositoryRuleRequiredStatusChecksPropParameters) -model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) +model_rebuild(RepositoryRulePullRequestPropParameters) -__all__ = ( - "RepositoryRuleParamsStatusCheckConfiguration", - "RepositoryRuleRequiredStatusChecksPropParameters", -) +__all__ = ("RepositoryRulePullRequestPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0150.py b/githubkit/versions/v2022_11_28/models/group_0150.py index 046edbf10..3bc7b5530 100644 --- a/githubkit/versions/v2022_11_28/models/group_0150.py +++ b/githubkit/versions/v2022_11_28/models/group_0150.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0151 import RepositoryRuleCommitMessagePatternPropParameters +from .group_0151 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleCommitMessagePattern(GitHubModel): - """commit_message_pattern +class RepositoryRuleRequiredStatusChecks(GitHubModel): + """required_status_checks - Parameters to be used for the commit_message_pattern rule + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. """ - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleCommitMessagePattern) +model_rebuild(RepositoryRuleRequiredStatusChecks) -__all__ = ("RepositoryRuleCommitMessagePattern",) +__all__ = ("RepositoryRuleRequiredStatusChecks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0151.py b/githubkit/versions/v2022_11_28/models/group_0151.py index 982c7c60e..83288089b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0151.py +++ b/githubkit/versions/v2022_11_28/models/group_0151.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,21 +16,40 @@ from githubkit.utils import UNSET -class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): - """RepositoryRuleCommitMessagePatternPropParameters""" +class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): + """RepositoryRuleRequiredStatusChecksPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." + do_not_enforce_on_create: Missing[bool] = Field( + default=UNSET, + description="Allow repositories and branches to be created if a check would otherwise prohibit it.", + ) + required_status_checks: list[RepositoryRuleParamsStatusCheckConfiguration] = Field( + description="Status checks that are required." ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." + strict_required_status_checks_policy: bool = Field( + description="Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled." + ) + + +class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): + """StatusCheckConfiguration + + Required status check + """ + + context: str = Field( + description="The status check context name that must be present on the commit." ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." + integration_id: Missing[int] = Field( + default=UNSET, + description="The optional integration ID that this status check must originate from.", ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) +model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) +model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) -__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) +__all__ = ( + "RepositoryRuleParamsStatusCheckConfiguration", + "RepositoryRuleRequiredStatusChecksPropParameters", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0152.py b/githubkit/versions/v2022_11_28/models/group_0152.py index b9f882998..a5686af50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0152.py +++ b/githubkit/versions/v2022_11_28/models/group_0152.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0153 import RepositoryRuleCommitAuthorEmailPatternPropParameters +from .group_0153 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): - """commit_author_email_pattern +class RepositoryRuleCommitMessagePattern(GitHubModel): + """commit_message_pattern - Parameters to be used for the commit_author_email_pattern rule + Parameters to be used for the commit_message_pattern rule """ - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleCommitAuthorEmailPattern) +model_rebuild(RepositoryRuleCommitMessagePattern) -__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) +__all__ = ("RepositoryRuleCommitMessagePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0153.py b/githubkit/versions/v2022_11_28/models/group_0153.py index a402d7764..982c7c60e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0153.py +++ b/githubkit/versions/v2022_11_28/models/group_0153.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" +class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): + """RepositoryRuleCommitMessagePatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) +model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0154.py b/githubkit/versions/v2022_11_28/models/group_0154.py index 8c03cee73..0faef0628 100644 --- a/githubkit/versions/v2022_11_28/models/group_0154.py +++ b/githubkit/versions/v2022_11_28/models/group_0154.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0155 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0155 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleCommitterEmailPattern(GitHubModel): - """committer_email_pattern +class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): + """commit_author_email_pattern - Parameters to be used for the committer_email_pattern rule + Parameters to be used for the commit_author_email_pattern rule """ - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleCommitterEmailPattern) +model_rebuild(RepositoryRuleCommitAuthorEmailPattern) -__all__ = ("RepositoryRuleCommitterEmailPattern",) +__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0155.py b/githubkit/versions/v2022_11_28/models/group_0155.py index 7652318a1..a402d7764 100644 --- a/githubkit/versions/v2022_11_28/models/group_0155.py +++ b/githubkit/versions/v2022_11_28/models/group_0155.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitterEmailPatternPropParameters""" +class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) +model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) -__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0156.py b/githubkit/versions/v2022_11_28/models/group_0156.py index 5306d4e01..9fdbe8f5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0156.py +++ b/githubkit/versions/v2022_11_28/models/group_0156.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0157 import RepositoryRuleBranchNamePatternPropParameters +from .group_0157 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleBranchNamePattern(GitHubModel): - """branch_name_pattern +class RepositoryRuleCommitterEmailPattern(GitHubModel): + """committer_email_pattern - Parameters to be used for the branch_name_pattern rule + Parameters to be used for the committer_email_pattern rule """ - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleBranchNamePattern) +model_rebuild(RepositoryRuleCommitterEmailPattern) -__all__ = ("RepositoryRuleBranchNamePattern",) +__all__ = ("RepositoryRuleCommitterEmailPattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0157.py b/githubkit/versions/v2022_11_28/models/group_0157.py index b85419b00..7652318a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0157.py +++ b/githubkit/versions/v2022_11_28/models/group_0157.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): - """RepositoryRuleBranchNamePatternPropParameters""" +class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitterEmailPatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleBranchNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) -__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0158.py b/githubkit/versions/v2022_11_28/models/group_0158.py index 57cbb725b..bce349bf8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0158.py +++ b/githubkit/versions/v2022_11_28/models/group_0158.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0159 import RepositoryRuleTagNamePatternPropParameters +from .group_0159 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryRuleTagNamePattern(GitHubModel): - """tag_name_pattern +class RepositoryRuleBranchNamePattern(GitHubModel): + """branch_name_pattern - Parameters to be used for the tag_name_pattern rule + Parameters to be used for the branch_name_pattern rule """ - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleTagNamePattern) +model_rebuild(RepositoryRuleBranchNamePattern) -__all__ = ("RepositoryRuleTagNamePattern",) +__all__ = ("RepositoryRuleBranchNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0159.py b/githubkit/versions/v2022_11_28/models/group_0159.py index c8e4fb0a0..b85419b00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0159.py +++ b/githubkit/versions/v2022_11_28/models/group_0159.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class RepositoryRuleTagNamePatternPropParameters(GitHubModel): - """RepositoryRuleTagNamePatternPropParameters""" +class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): + """RepositoryRuleBranchNamePatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleTagNamePatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePatternPropParameters) +model_rebuild(RepositoryRuleBranchNamePatternPropParameters) -__all__ = ("RepositoryRuleTagNamePatternPropParameters",) +__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0160.py b/githubkit/versions/v2022_11_28/models/group_0160.py index 890fd7c9d..72aebaf1a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0160.py +++ b/githubkit/versions/v2022_11_28/models/group_0160.py @@ -17,23 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0161 import RepositoryRuleFilePathRestrictionPropParameters +from .group_0161 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleFilePathRestriction(GitHubModel): - """file_path_restriction +class RepositoryRuleTagNamePattern(GitHubModel): + """tag_name_pattern - Prevent commits that include changes in specified file and folder paths from - being pushed to the commit graph. This includes absolute paths that contain file - names. + Parameters to be used for the tag_name_pattern rule """ - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleFilePathRestriction) +model_rebuild(RepositoryRuleTagNamePattern) -__all__ = ("RepositoryRuleFilePathRestriction",) +__all__ = ("RepositoryRuleTagNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0161.py b/githubkit/versions/v2022_11_28/models/group_0161.py index 3965a83fb..c8e4fb0a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0161.py +++ b/githubkit/versions/v2022_11_28/models/group_0161.py @@ -9,19 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleFilePathRestrictionPropParameters(GitHubModel): - """RepositoryRuleFilePathRestrictionPropParameters""" +class RepositoryRuleTagNamePatternPropParameters(GitHubModel): + """RepositoryRuleTagNamePatternPropParameters""" - restricted_file_paths: list[str] = Field( - description="The file paths that are restricted from being pushed to the commit graph." + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleFilePathRestrictionPropParameters) +model_rebuild(RepositoryRuleTagNamePatternPropParameters) -__all__ = ("RepositoryRuleFilePathRestrictionPropParameters",) +__all__ = ("RepositoryRuleTagNamePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0162.py b/githubkit/versions/v2022_11_28/models/group_0162.py index f802ef781..abef51efc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0162.py +++ b/githubkit/versions/v2022_11_28/models/group_0162.py @@ -17,22 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0163 import RepositoryRuleMaxFilePathLengthPropParameters +from .group_0163 import RepositoryRuleFilePathRestrictionPropParameters -class RepositoryRuleMaxFilePathLength(GitHubModel): - """max_file_path_length +class RepositoryRuleFilePathRestriction(GitHubModel): + """file_path_restriction - Prevent commits that include file paths that exceed the specified character - limit from being pushed to the commit graph. + Prevent commits that include changes in specified file and folder paths from + being pushed to the commit graph. This includes absolute paths that contain file + names. """ - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleMaxFilePathLength) +model_rebuild(RepositoryRuleFilePathRestriction) -__all__ = ("RepositoryRuleMaxFilePathLength",) +__all__ = ("RepositoryRuleFilePathRestriction",) diff --git a/githubkit/versions/v2022_11_28/models/group_0163.py b/githubkit/versions/v2022_11_28/models/group_0163.py index a30d74300..3965a83fb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0163.py +++ b/githubkit/versions/v2022_11_28/models/group_0163.py @@ -14,16 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleMaxFilePathLengthPropParameters(GitHubModel): - """RepositoryRuleMaxFilePathLengthPropParameters""" +class RepositoryRuleFilePathRestrictionPropParameters(GitHubModel): + """RepositoryRuleFilePathRestrictionPropParameters""" - max_file_path_length: int = Field( - le=32767.0, - ge=1.0, - description="The maximum amount of characters allowed in file paths.", + restricted_file_paths: list[str] = Field( + description="The file paths that are restricted from being pushed to the commit graph." ) -model_rebuild(RepositoryRuleMaxFilePathLengthPropParameters) +model_rebuild(RepositoryRuleFilePathRestrictionPropParameters) -__all__ = ("RepositoryRuleMaxFilePathLengthPropParameters",) +__all__ = ("RepositoryRuleFilePathRestrictionPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0164.py b/githubkit/versions/v2022_11_28/models/group_0164.py index 56efe1c8e..9ad43aa90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0164.py +++ b/githubkit/versions/v2022_11_28/models/group_0164.py @@ -17,22 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0165 import RepositoryRuleFileExtensionRestrictionPropParameters +from .group_0165 import RepositoryRuleMaxFilePathLengthPropParameters -class RepositoryRuleFileExtensionRestriction(GitHubModel): - """file_extension_restriction +class RepositoryRuleMaxFilePathLength(GitHubModel): + """max_file_path_length - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Prevent commits that include file paths that exceed the specified character + limit from being pushed to the commit graph. """ - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleFileExtensionRestriction) +model_rebuild(RepositoryRuleMaxFilePathLength) -__all__ = ("RepositoryRuleFileExtensionRestriction",) +__all__ = ("RepositoryRuleMaxFilePathLength",) diff --git a/githubkit/versions/v2022_11_28/models/group_0165.py b/githubkit/versions/v2022_11_28/models/group_0165.py index 9da9478a2..a30d74300 100644 --- a/githubkit/versions/v2022_11_28/models/group_0165.py +++ b/githubkit/versions/v2022_11_28/models/group_0165.py @@ -14,14 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleFileExtensionRestrictionPropParameters(GitHubModel): - """RepositoryRuleFileExtensionRestrictionPropParameters""" +class RepositoryRuleMaxFilePathLengthPropParameters(GitHubModel): + """RepositoryRuleMaxFilePathLengthPropParameters""" - restricted_file_extensions: list[str] = Field( - description="The file extensions that are restricted from being pushed to the commit graph." + max_file_path_length: int = Field( + le=32767.0, + ge=1.0, + description="The maximum amount of characters allowed in file paths.", ) -model_rebuild(RepositoryRuleFileExtensionRestrictionPropParameters) +model_rebuild(RepositoryRuleMaxFilePathLengthPropParameters) -__all__ = ("RepositoryRuleFileExtensionRestrictionPropParameters",) +__all__ = ("RepositoryRuleMaxFilePathLengthPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0166.py b/githubkit/versions/v2022_11_28/models/group_0166.py index 2a969a49e..2c4512e7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0166.py +++ b/githubkit/versions/v2022_11_28/models/group_0166.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0167 import RepositoryRuleMaxFileSizePropParameters +from .group_0167 import RepositoryRuleFileExtensionRestrictionPropParameters -class RepositoryRuleMaxFileSize(GitHubModel): - """max_file_size +class RepositoryRuleFileExtensionRestriction(GitHubModel): + """file_extension_restriction - Prevent commits with individual files that exceed the specified limit from being + Prevent commits that include files with specified file extensions from being pushed to the commit graph. """ - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleMaxFileSize) +model_rebuild(RepositoryRuleFileExtensionRestriction) -__all__ = ("RepositoryRuleMaxFileSize",) +__all__ = ("RepositoryRuleFileExtensionRestriction",) diff --git a/githubkit/versions/v2022_11_28/models/group_0167.py b/githubkit/versions/v2022_11_28/models/group_0167.py index b2a41a5e2..9da9478a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0167.py +++ b/githubkit/versions/v2022_11_28/models/group_0167.py @@ -14,16 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleMaxFileSizePropParameters(GitHubModel): - """RepositoryRuleMaxFileSizePropParameters""" +class RepositoryRuleFileExtensionRestrictionPropParameters(GitHubModel): + """RepositoryRuleFileExtensionRestrictionPropParameters""" - 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).", + restricted_file_extensions: list[str] = Field( + description="The file extensions that are restricted from being pushed to the commit graph." ) -model_rebuild(RepositoryRuleMaxFileSizePropParameters) +model_rebuild(RepositoryRuleFileExtensionRestrictionPropParameters) -__all__ = ("RepositoryRuleMaxFileSizePropParameters",) +__all__ = ("RepositoryRuleFileExtensionRestrictionPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0168.py b/githubkit/versions/v2022_11_28/models/group_0168.py index 2482237a7..2be6f6f70 100644 --- a/githubkit/versions/v2022_11_28/models/group_0168.py +++ b/githubkit/versions/v2022_11_28/models/group_0168.py @@ -9,23 +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_0169 import RepositoryRuleMaxFileSizePropParameters + -class RepositoryRuleParamsRestrictedCommits(GitHubModel): - """RestrictedCommits +class RepositoryRuleMaxFileSize(GitHubModel): + """max_file_size - Restricted commit + Prevent commits with individual files that exceed the specified limit from being + pushed to the commit graph. """ - oid: str = Field(description="Full or abbreviated commit hash to reject") - reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleParamsRestrictedCommits) +model_rebuild(RepositoryRuleMaxFileSize) -__all__ = ("RepositoryRuleParamsRestrictedCommits",) +__all__ = ("RepositoryRuleMaxFileSize",) diff --git a/githubkit/versions/v2022_11_28/models/group_0169.py b/githubkit/versions/v2022_11_28/models/group_0169.py index 9bc9446a0..b2a41a5e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0169.py +++ b/githubkit/versions/v2022_11_28/models/group_0169.py @@ -9,28 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0170 import RepositoryRuleWorkflowsPropParameters - -class RepositoryRuleWorkflows(GitHubModel): - """workflows - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. - """ +class RepositoryRuleMaxFileSizePropParameters(GitHubModel): + """RepositoryRuleMaxFileSizePropParameters""" - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + max_file_size: int = Field( + le=100.0, + ge=1.0, + description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", + ) -model_rebuild(RepositoryRuleWorkflows) +model_rebuild(RepositoryRuleMaxFileSizePropParameters) -__all__ = ("RepositoryRuleWorkflows",) +__all__ = ("RepositoryRuleMaxFileSizePropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0170.py b/githubkit/versions/v2022_11_28/models/group_0170.py index 56d86ff5b..2482237a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0170.py +++ b/githubkit/versions/v2022_11_28/models/group_0170.py @@ -16,40 +16,16 @@ from githubkit.utils import UNSET -class RepositoryRuleWorkflowsPropParameters(GitHubModel): - """RepositoryRuleWorkflowsPropParameters""" +class RepositoryRuleParamsRestrictedCommits(GitHubModel): + """RestrictedCommits - 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." - ) + Restricted commit + """ + oid: str = Field(description="Full or abbreviated commit hash to reject") + reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") -class RepositoryRuleParamsWorkflowFileReference(GitHubModel): - """WorkflowFileReference - A workflow that must run for this rule to pass - """ +model_rebuild(RepositoryRuleParamsRestrictedCommits) - path: str = Field(description="The path to the workflow file") - ref: Missing[str] = Field( - default=UNSET, description="The ref (branch or tag) of the workflow file to use" - ) - repository_id: int = Field( - description="The ID of the repository where the workflow is defined" - ) - sha: Missing[str] = Field( - default=UNSET, description="The commit SHA of the workflow file to use" - ) - - -model_rebuild(RepositoryRuleWorkflowsPropParameters) -model_rebuild(RepositoryRuleParamsWorkflowFileReference) - -__all__ = ( - "RepositoryRuleParamsWorkflowFileReference", - "RepositoryRuleWorkflowsPropParameters", -) +__all__ = ("RepositoryRuleParamsRestrictedCommits",) diff --git a/githubkit/versions/v2022_11_28/models/group_0171.py b/githubkit/versions/v2022_11_28/models/group_0171.py index b011c827b..308ec31e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0171.py +++ b/githubkit/versions/v2022_11_28/models/group_0171.py @@ -17,21 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0172 import RepositoryRuleCodeScanningPropParameters +from .group_0172 import RepositoryRuleWorkflowsPropParameters -class RepositoryRuleCodeScanning(GitHubModel): - """code_scanning +class RepositoryRuleWorkflows(GitHubModel): + """workflows - 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. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleCodeScanning) +model_rebuild(RepositoryRuleWorkflows) -__all__ = ("RepositoryRuleCodeScanning",) +__all__ = ("RepositoryRuleWorkflows",) diff --git a/githubkit/versions/v2022_11_28/models/group_0172.py b/githubkit/versions/v2022_11_28/models/group_0172.py index 7ef71df16..56d86ff5b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0172.py +++ b/githubkit/versions/v2022_11_28/models/group_0172.py @@ -9,42 +9,47 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleCodeScanningPropParameters(GitHubModel): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleWorkflowsPropParameters(GitHubModel): + """RepositoryRuleWorkflowsPropParameters""" - code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( - description="Tools that must provide code scanning results for this rule to pass." + 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 RepositoryRuleParamsCodeScanningTool(GitHubModel): - """CodeScanningTool +class RepositoryRuleParamsWorkflowFileReference(GitHubModel): + """WorkflowFileReference - A tool that must provide code scanning results for this rule to pass. + A workflow that must run 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)."' + 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" ) - 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)."' + sha: Missing[str] = Field( + default=UNSET, description="The commit SHA of the workflow file to use" ) - tool: str = Field(description="The name of a code scanning tool") -model_rebuild(RepositoryRuleCodeScanningPropParameters) -model_rebuild(RepositoryRuleParamsCodeScanningTool) +model_rebuild(RepositoryRuleWorkflowsPropParameters) +model_rebuild(RepositoryRuleParamsWorkflowFileReference) __all__ = ( - "RepositoryRuleCodeScanningPropParameters", - "RepositoryRuleParamsCodeScanningTool", + "RepositoryRuleParamsWorkflowFileReference", + "RepositoryRuleWorkflowsPropParameters", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0173.py b/githubkit/versions/v2022_11_28/models/group_0173.py index 20f4faf91..a430f9765 100644 --- a/githubkit/versions/v2022_11_28/models/group_0173.py +++ b/githubkit/versions/v2022_11_28/models/group_0173.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,137 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0125 import RepositoryRulesetBypassActor -from .group_0126 import RepositoryRulesetConditions -from .group_0134 import OrgRulesetConditionsOneof0 -from .group_0135 import OrgRulesetConditionsOneof1 -from .group_0136 import OrgRulesetConditionsOneof2 -from .group_0137 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0138 import RepositoryRuleUpdate -from .group_0140 import RepositoryRuleRequiredLinearHistory -from .group_0141 import RepositoryRuleMergeQueue -from .group_0143 import RepositoryRuleRequiredDeployments -from .group_0146 import RepositoryRulePullRequest -from .group_0148 import RepositoryRuleRequiredStatusChecks -from .group_0150 import RepositoryRuleCommitMessagePattern -from .group_0152 import RepositoryRuleCommitAuthorEmailPattern -from .group_0154 import RepositoryRuleCommitterEmailPattern -from .group_0156 import RepositoryRuleBranchNamePattern -from .group_0158 import RepositoryRuleTagNamePattern -from .group_0160 import RepositoryRuleFilePathRestriction -from .group_0162 import RepositoryRuleMaxFilePathLength -from .group_0164 import RepositoryRuleFileExtensionRestriction -from .group_0166 import RepositoryRuleMaxFileSize -from .group_0169 import RepositoryRuleWorkflows -from .group_0171 import RepositoryRuleCodeScanning +from .group_0174 import RepositoryRuleCodeScanningPropParameters -class RepositoryRuleset(GitHubModel): - """Repository ruleset +class RepositoryRuleCodeScanning(GitHubModel): + """code_scanning - A set of rules to apply when specified conditions are met. + 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. """ - id: int = Field(description="The ID of the ruleset") - name: str = Field(description="The name of the ruleset") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - source_type: Missing[Literal["Repository", "Organization", "Enterprise"]] = Field( - default=UNSET, description="The type of the source of the ruleset" - ) - source: str = Field(description="The name of the source") - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - current_user_can_bypass: Missing[ - Literal["always", "pull_requests_only", "never"] - ] = Field( - default=UNSET, - description="The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.", - ) - node_id: Missing[str] = Field(default=UNSET) - links: Missing[RepositoryRulesetPropLinks] = Field(default=UNSET, alias="_links") - conditions: Missing[ - Union[ - RepositoryRulesetConditions, - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - None, - ] - ] = Field(default=UNSET) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) -class RepositoryRulesetPropLinks(GitHubModel): - """RepositoryRulesetPropLinks""" +model_rebuild(RepositoryRuleCodeScanning) - 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__ = ("RepositoryRuleCodeScanning",) diff --git a/githubkit/versions/v2022_11_28/models/group_0174.py b/githubkit/versions/v2022_11_28/models/group_0174.py index a9156b530..7ef71df16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0174.py +++ b/githubkit/versions/v2022_11_28/models/group_0174.py @@ -9,56 +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 RuleSuitesItems(GitHubModel): - """RuleSuitesItems""" +class RepositoryRuleCodeScanningPropParameters(GitHubModel): + """RepositoryRuleCodeScanningPropParameters""" - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." + code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( + description="Tools that must provide code scanning results for this rule to pass." ) - 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.", + + +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)."' ) - 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`.", + 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(RuleSuitesItems) +model_rebuild(RepositoryRuleCodeScanningPropParameters) +model_rebuild(RepositoryRuleParamsCodeScanningTool) -__all__ = ("RuleSuitesItems",) +__all__ = ( + "RepositoryRuleCodeScanningPropParameters", + "RepositoryRuleParamsCodeScanningTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0175.py b/githubkit/versions/v2022_11_28/models/group_0175.py index 41bb0279e..ce1ab95f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0175.py +++ b/githubkit/versions/v2022_11_28/models/group_0175.py @@ -18,91 +18,137 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class RuleSuite(GitHubModel): - """Rule Suite - - Response +from .group_0127 import RepositoryRulesetBypassActor +from .group_0128 import RepositoryRulesetConditions +from .group_0136 import OrgRulesetConditionsOneof0 +from .group_0137 import OrgRulesetConditionsOneof1 +from .group_0138 import OrgRulesetConditionsOneof2 +from .group_0139 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0140 import RepositoryRuleUpdate +from .group_0142 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleMergeQueue +from .group_0145 import RepositoryRuleRequiredDeployments +from .group_0148 import RepositoryRulePullRequest +from .group_0150 import RepositoryRuleRequiredStatusChecks +from .group_0152 import RepositoryRuleCommitMessagePattern +from .group_0154 import RepositoryRuleCommitAuthorEmailPattern +from .group_0156 import RepositoryRuleCommitterEmailPattern +from .group_0158 import RepositoryRuleBranchNamePattern +from .group_0160 import RepositoryRuleTagNamePattern +from .group_0162 import RepositoryRuleFilePathRestriction +from .group_0164 import RepositoryRuleMaxFilePathLength +from .group_0166 import RepositoryRuleFileExtensionRestriction +from .group_0168 import RepositoryRuleMaxFileSize +from .group_0171 import RepositoryRuleWorkflows +from .group_0173 import RepositoryRuleCodeScanning + + +class RepositoryRuleset(GitHubModel): + """Repository ruleset + + A set of rules to apply when specified conditions are met. """ - 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." + 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" ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." + source_type: Missing[Literal["Repository", "Organization", "Enterprise"]] = Field( + default=UNSET, description="The type of the source of the ruleset" ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." + 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)." ) - repository_id: Missing[int] = Field( + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="The ID of the repository associated with the rule evaluation.", + description="The actors that can bypass the rules in this ruleset", ) - repository_name: Missing[str] = Field( + current_user_can_bypass: Missing[ + Literal["always", "pull_requests_only", "never"] + ] = 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." + description="The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.", + ) + node_id: Missing[str] = Field(default=UNSET) + links: Missing[RepositoryRulesetPropLinks] = Field(default=UNSET, alias="_links") + conditions: Missing[ + Union[ + RepositoryRulesetConditions, + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + None, + ] + ] = Field(default=UNSET) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class RepositoryRulesetPropLinks(GitHubModel): + """RepositoryRulesetPropLinks""" + + self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( + default=UNSET, alias="self" + ) + html: Missing[Union[RepositoryRulesetPropLinksPropHtml, None]] = Field( + default=UNSET ) -class RuleSuitePropRuleEvaluationsItems(GitHubModel): - """RuleSuitePropRuleEvaluationsItems""" +class RepositoryRulesetPropLinksPropSelf(GitHubModel): + """RepositoryRulesetPropLinksPropSelf""" - 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.", - ) + href: Missing[str] = Field(default=UNSET, description="The URL of the ruleset") -class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" +class RepositoryRulesetPropLinksPropHtml(GitHubModel): + """RepositoryRulesetPropLinksPropHtml""" - 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." - ) + href: Missing[str] = Field(default=UNSET, description="The html URL of the ruleset") -model_rebuild(RuleSuite) -model_rebuild(RuleSuitePropRuleEvaluationsItems) -model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) +model_rebuild(RepositoryRuleset) +model_rebuild(RepositoryRulesetPropLinks) +model_rebuild(RepositoryRulesetPropLinksPropSelf) +model_rebuild(RepositoryRulesetPropLinksPropHtml) __all__ = ( - "RuleSuite", - "RuleSuitePropRuleEvaluationsItems", - "RuleSuitePropRuleEvaluationsItemsPropRuleSource", + "RepositoryRuleset", + "RepositoryRulesetPropLinks", + "RepositoryRulesetPropLinksPropHtml", + "RepositoryRulesetPropLinksPropSelf", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0176.py b/githubkit/versions/v2022_11_28/models/group_0176.py index 43182ea6e..a9156b530 100644 --- a/githubkit/versions/v2022_11_28/models/group_0176.py +++ b/githubkit/versions/v2022_11_28/models/group_0176.py @@ -10,27 +10,55 @@ from __future__ import annotations from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0177 import RulesetVersionPropActor +class RuleSuitesItems(GitHubModel): + """RuleSuitesItems""" -class RulesetVersion(GitHubModel): - """Ruleset version - - The historical version of a ruleset - """ - - version_id: int = Field(description="The ID of the previous version of the ruleset") - actor: RulesetVersionPropActor = Field( - description="The actor who updated the ruleset" + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[int] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[str] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", + ) + evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", ) - updated_at: datetime = Field() -model_rebuild(RulesetVersion) +model_rebuild(RuleSuitesItems) -__all__ = ("RulesetVersion",) +__all__ = ("RuleSuitesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0177.py b/githubkit/versions/v2022_11_28/models/group_0177.py index e9dbd595b..41bb0279e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0177.py +++ b/githubkit/versions/v2022_11_28/models/group_0177.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,16 +19,90 @@ from githubkit.utils import UNSET -class RulesetVersionPropActor(GitHubModel): - """RulesetVersionPropActor +class RuleSuite(GitHubModel): + """Rule Suite - The actor who updated the ruleset + Response """ - id: Missing[int] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + 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(RulesetVersionPropActor) +model_rebuild(RuleSuite) +model_rebuild(RuleSuitePropRuleEvaluationsItems) +model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) -__all__ = ("RulesetVersionPropActor",) +__all__ = ( + "RuleSuite", + "RuleSuitePropRuleEvaluationsItems", + "RuleSuitePropRuleEvaluationsItemsPropRuleSource", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0178.py b/githubkit/versions/v2022_11_28/models/group_0178.py index 1af8a9d95..4c79f51c9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0178.py +++ b/githubkit/versions/v2022_11_28/models/group_0178.py @@ -15,23 +15,22 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0177 import RulesetVersionPropActor -from .group_0180 import RulesetVersionWithStateAllof1PropState +from .group_0179 import RulesetVersionPropActor -class RulesetVersionWithState(GitHubModel): - """RulesetVersionWithState""" +class RulesetVersion(GitHubModel): + """Ruleset version + + The historical version of a ruleset + """ version_id: int = Field(description="The ID of the previous version of the ruleset") actor: RulesetVersionPropActor = Field( description="The actor who updated the ruleset" ) updated_at: datetime = Field() - state: RulesetVersionWithStateAllof1PropState = Field( - description="The state of the ruleset version" - ) -model_rebuild(RulesetVersionWithState) +model_rebuild(RulesetVersion) -__all__ = ("RulesetVersionWithState",) +__all__ = ("RulesetVersion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0179.py b/githubkit/versions/v2022_11_28/models/group_0179.py index c2c64978e..e9dbd595b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0179.py +++ b/githubkit/versions/v2022_11_28/models/group_0179.py @@ -12,18 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0180 import RulesetVersionWithStateAllof1PropState +class RulesetVersionPropActor(GitHubModel): + """RulesetVersionPropActor -class RulesetVersionWithStateAllof1(GitHubModel): - """RulesetVersionWithStateAllof1""" + The actor who updated the ruleset + """ - state: RulesetVersionWithStateAllof1PropState = Field( - description="The state of the ruleset version" - ) + id: Missing[int] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) -model_rebuild(RulesetVersionWithStateAllof1) +model_rebuild(RulesetVersionPropActor) -__all__ = ("RulesetVersionWithStateAllof1",) +__all__ = ("RulesetVersionPropActor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0180.py b/githubkit/versions/v2022_11_28/models/group_0180.py index 004126d69..1fceb395c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0180.py +++ b/githubkit/versions/v2022_11_28/models/group_0180.py @@ -9,16 +9,29 @@ from __future__ import annotations +from datetime import datetime + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from .group_0179 import RulesetVersionPropActor +from .group_0182 import RulesetVersionWithStateAllof1PropState + -class RulesetVersionWithStateAllof1PropState(GitHubModel): - """RulesetVersionWithStateAllof1PropState +class RulesetVersionWithState(GitHubModel): + """RulesetVersionWithState""" - The state of the ruleset version - """ + version_id: int = Field(description="The ID of the previous version of the ruleset") + actor: RulesetVersionPropActor = Field( + description="The actor who updated the ruleset" + ) + updated_at: datetime = Field() + state: RulesetVersionWithStateAllof1PropState = Field( + description="The state of the ruleset version" + ) -model_rebuild(RulesetVersionWithStateAllof1PropState) +model_rebuild(RulesetVersionWithState) -__all__ = ("RulesetVersionWithStateAllof1PropState",) +__all__ = ("RulesetVersionWithState",) diff --git a/githubkit/versions/v2022_11_28/models/group_0181.py b/githubkit/versions/v2022_11_28/models/group_0181.py index 6eb920317..85f054e68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0181.py +++ b/githubkit/versions/v2022_11_28/models/group_0181.py @@ -9,39 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser - - -class RepositoryAdvisoryCredit(GitHubModel): - """RepositoryAdvisoryCredit - - A credit given to a user for a repository security advisory. - """ - - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - state: Literal["accepted", "declined", "pending"] = Field( - description="The state of the user's acceptance of the credit." +from .group_0182 import RulesetVersionWithStateAllof1PropState + + +class RulesetVersionWithStateAllof1(GitHubModel): + """RulesetVersionWithStateAllof1""" + + state: RulesetVersionWithStateAllof1PropState = Field( + description="The state of the ruleset version" ) -model_rebuild(RepositoryAdvisoryCredit) +model_rebuild(RulesetVersionWithStateAllof1) -__all__ = ("RepositoryAdvisoryCredit",) +__all__ = ("RulesetVersionWithStateAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0182.py b/githubkit/versions/v2022_11_28/models/group_0182.py index 18d05d9db..004126d69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0182.py +++ b/githubkit/versions/v2022_11_28/models/group_0182.py @@ -9,200 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0001 import CvssSeverities -from .group_0003 import SimpleUser -from .group_0084 import Team -from .group_0181 import RepositoryAdvisoryCredit +class RulesetVersionWithStateAllof1PropState(GitHubModel): + """RulesetVersionWithStateAllof1PropState -class RepositoryAdvisory(GitHubModel): - """RepositoryAdvisory - - A repository security advisory. + The state of the ruleset version """ - 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. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Union[str, None] = Field( - description="The unique package name within its ecosystem." - ) - -model_rebuild(RepositoryAdvisory) -model_rebuild(RepositoryAdvisoryPropIdentifiersItems) -model_rebuild(RepositoryAdvisoryPropSubmission) -model_rebuild(RepositoryAdvisoryPropCvss) -model_rebuild(RepositoryAdvisoryPropCwesItems) -model_rebuild(RepositoryAdvisoryPropCreditsItems) -model_rebuild(RepositoryAdvisoryVulnerability) -model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) +model_rebuild(RulesetVersionWithStateAllof1PropState) -__all__ = ( - "RepositoryAdvisory", - "RepositoryAdvisoryPropCreditsItems", - "RepositoryAdvisoryPropCvss", - "RepositoryAdvisoryPropCwesItems", - "RepositoryAdvisoryPropIdentifiersItems", - "RepositoryAdvisoryPropSubmission", - "RepositoryAdvisoryVulnerability", - "RepositoryAdvisoryVulnerabilityPropPackage", -) +__all__ = ("RulesetVersionWithStateAllof1PropState",) diff --git a/githubkit/versions/v2022_11_28/models/group_0183.py b/githubkit/versions/v2022_11_28/models/group_0183.py index 6546dd05e..6eb920317 100644 --- a/githubkit/versions/v2022_11_28/models/group_0183.py +++ b/githubkit/versions/v2022_11_28/models/group_0183.py @@ -9,99 +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 ActionsBillingUsage(GitHubModel): - """ActionsBillingUsage""" +from .group_0003 import SimpleUser - 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 RepositoryAdvisoryCredit(GitHubModel): + """RepositoryAdvisoryCredit -class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): - """ActionsBillingUsagePropMinutesUsedBreakdown""" + A credit given to a user for a repository security advisory. + """ - 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." + 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(ActionsBillingUsage) -model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) +model_rebuild(RepositoryAdvisoryCredit) -__all__ = ( - "ActionsBillingUsage", - "ActionsBillingUsagePropMinutesUsedBreakdown", -) +__all__ = ("RepositoryAdvisoryCredit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0184.py b/githubkit/versions/v2022_11_28/models/group_0184.py index b7be403af..e4c3c92eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0184.py +++ b/githubkit/versions/v2022_11_28/models/group_0184.py @@ -9,25 +9,200 @@ from __future__ import annotations +from datetime import datetime +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0001 import CvssSeverities +from .group_0003 import SimpleUser +from .group_0086 import Team +from .group_0183 import RepositoryAdvisoryCredit + +class RepositoryAdvisory(GitHubModel): + """RepositoryAdvisory -class PackagesBillingUsage(GitHubModel): - """PackagesBillingUsage""" + A repository security advisory. + """ - total_gigabytes_bandwidth_used: int = Field( - description="Sum of the free and paid storage space (GB) for GitHuub Packages." + 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." ) - total_paid_gigabytes_bandwidth_used: int = Field( - description="Total paid storage space (GB) for GitHuub Packages." + 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" ) - included_gigabytes_bandwidth: int = Field( - description="Free storage space (GB) for GitHub Packages." + 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." ) -model_rebuild(PackagesBillingUsage) +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__ = ("PackagesBillingUsage",) +__all__ = ( + "RepositoryAdvisory", + "RepositoryAdvisoryPropCreditsItems", + "RepositoryAdvisoryPropCvss", + "RepositoryAdvisoryPropCwesItems", + "RepositoryAdvisoryPropIdentifiersItems", + "RepositoryAdvisoryPropSubmission", + "RepositoryAdvisoryVulnerability", + "RepositoryAdvisoryVulnerabilityPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0185.py b/githubkit/versions/v2022_11_28/models/group_0185.py index 7f2b2b444..6546dd05e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0185.py +++ b/githubkit/versions/v2022_11_28/models/group_0185.py @@ -12,22 +12,96 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CombinedBillingUsage(GitHubModel): - """CombinedBillingUsage""" +class ActionsBillingUsage(GitHubModel): + """ActionsBillingUsage""" - days_left_in_billing_cycle: int = Field( - description="Numbers of days left in billing cycle." + total_minutes_used: int = Field( + description="The sum of the free and paid GitHub Actions minutes used." ) - estimated_paid_storage_for_month: int = Field( - description="Estimated storage space (GB) used in billing cycle." + total_paid_minutes_used: int = Field( + description="The total paid GitHub Actions minutes used." ) - estimated_storage_for_month: int = Field( - description="Estimated sum of free and paid storage space (GB) used in billing cycle." + included_minutes: int = Field( + description="The amount of free GitHub Actions minutes available." ) + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() -model_rebuild(CombinedBillingUsage) +class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): + """ActionsBillingUsagePropMinutesUsedBreakdown""" -__all__ = ("CombinedBillingUsage",) + 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/v2022_11_28/models/group_0186.py b/githubkit/versions/v2022_11_28/models/group_0186.py index cd1bede75..b7be403af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0186.py +++ b/githubkit/versions/v2022_11_28/models/group_0186.py @@ -12,32 +12,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class NetworkSettings(GitHubModel): - """Hosted compute network settings resource +class PackagesBillingUsage(GitHubModel): + """PackagesBillingUsage""" - A hosted compute network settings resource. - """ - - id: str = Field( - description="The unique identifier of the network settings resource." - ) - network_configuration_id: Missing[str] = Field( - default=UNSET, - description="The identifier of the network configuration that is using this settings resource.", + total_gigabytes_bandwidth_used: int = Field( + description="Sum of the free and paid storage space (GB) for GitHuub Packages." ) - 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." + total_paid_gigabytes_bandwidth_used: int = Field( + description="Total paid storage space (GB) for GitHuub Packages." ) - region: str = Field( - description="The location of the subnet this network settings resource is configured for." + included_gigabytes_bandwidth: int = Field( + description="Free storage space (GB) for GitHub Packages." ) -model_rebuild(NetworkSettings) +model_rebuild(PackagesBillingUsage) -__all__ = ("NetworkSettings",) +__all__ = ("PackagesBillingUsage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0187.py b/githubkit/versions/v2022_11_28/models/group_0187.py index 6ad2e2dec..7f2b2b444 100644 --- a/githubkit/versions/v2022_11_28/models/group_0187.py +++ b/githubkit/versions/v2022_11_28/models/group_0187.py @@ -9,131 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0083 import TeamSimple - -class TeamFull(GitHubModel): - """Full Team - Groups of organization members that gives permissions on specified repositories. - """ +class CombinedBillingUsage(GitHubModel): + """CombinedBillingUsage""" - 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" + days_left_in_billing_cycle: int = Field( + description="Numbers of days left in billing cycle." ) - 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" + estimated_paid_storage_for_month: int = Field( + description="Estimated storage space (GB) used in billing cycle." ) - 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 + estimated_storage_for_month: int = Field( + description="Estimated sum of free and paid storage space (GB) used in billing cycle." ) - 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(CombinedBillingUsage) -__all__ = ( - "TeamFull", - "TeamOrganization", - "TeamOrganizationPropPlan", -) +__all__ = ("CombinedBillingUsage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0188.py b/githubkit/versions/v2022_11_28/models/group_0188.py index fdecd711f..cd1bede75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0188.py +++ b/githubkit/versions/v2022_11_28/models/group_0188.py @@ -9,52 +9,35 @@ 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_0044 import ReactionRollup - -class TeamDiscussion(GitHubModel): - """Team Discussion +class NetworkSettings(GitHubModel): + """Hosted compute network settings resource - A team discussion is a persistent record of a free-form conversation within a - team. + A hosted compute network settings resource. """ - 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." + id: str = Field( + description="The unique identifier of the network settings resource." + ) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of the network configuration that is using this settings resource.", ) - 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." + 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." ) - private: bool = Field( - description="Whether or not this discussion should be restricted to team members and organization owners." + region: str = Field( + description="The location of the subnet this network settings resource is configured for." ) - 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(NetworkSettings) -__all__ = ("TeamDiscussion",) +__all__ = ("NetworkSettings",) diff --git a/githubkit/versions/v2022_11_28/models/group_0189.py b/githubkit/versions/v2022_11_28/models/group_0189.py index ff0160e36..7a9147d5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0189.py +++ b/githubkit/versions/v2022_11_28/models/group_0189.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,122 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0044 import ReactionRollup +from .group_0085 import TeamSimple -class TeamDiscussionComment(GitHubModel): - """Team Discussion Comment +class TeamFull(GitHubModel): + """Full Team - A reply to a discussion within a team. + Groups of organization members that gives permissions on specified repositories. """ - 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: 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() - last_edited_at: Union[datetime, None] = Field() - discussion_url: str = Field() - html_url: str = 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() - number: int = Field( - description="The unique sequence number of a team discussion comment." + 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() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + 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(TeamDiscussionComment) +model_rebuild(TeamFull) +model_rebuild(TeamOrganization) +model_rebuild(TeamOrganizationPropPlan) -__all__ = ("TeamDiscussionComment",) +__all__ = ( + "TeamFull", + "TeamOrganization", + "TeamOrganizationPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0190.py b/githubkit/versions/v2022_11_28/models/group_0190.py index b14e4e21d..b1ee847bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0190.py +++ b/githubkit/versions/v2022_11_28/models/group_0190.py @@ -10,31 +10,51 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0045 import ReactionRollup -class Reaction(GitHubModel): - """Reaction +class TeamDiscussion(GitHubModel): + """Team Discussion - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + A team discussion is a persistent record of a free-form conversation within a + team. """ - 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") + 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() - - -model_rebuild(Reaction) - -__all__ = ("Reaction",) + last_edited_at: Union[datetime, None] = Field() + html_url: str = Field() + node_id: str = Field() + number: int = Field(description="The unique sequence number of a team discussion.") + pinned: bool = Field( + description="Whether or not this discussion should be pinned for easy retrieval." + ) + private: bool = Field( + description="Whether or not this discussion should be restricted to team members and organization owners." + ) + team_url: str = Field() + title: str = Field(description="The title of the discussion.") + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +model_rebuild(TeamDiscussion) + +__all__ = ("TeamDiscussion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0191.py b/githubkit/versions/v2022_11_28/models/group_0191.py index bf5d392cb..2d9e91e30 100644 --- a/githubkit/versions/v2022_11_28/models/group_0191.py +++ b/githubkit/versions/v2022_11_28/models/group_0191.py @@ -9,28 +9,44 @@ 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 +from .group_0003 import SimpleUser +from .group_0045 import ReactionRollup -class TeamMembership(GitHubModel): - """Team Membership - Team Membership +class TeamDiscussionComment(GitHubModel): + """Team Discussion Comment + + A reply to a discussion within a team. """ - url: str = Field() - role: Literal["member", "maintainer"] = Field( - default="member", description="The role of the user in the 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." ) - state: Literal["active", "pending"] = Field( - description="The state of the user's membership in the team." + 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(TeamMembership) +model_rebuild(TeamDiscussionComment) -__all__ = ("TeamMembership",) +__all__ = ("TeamDiscussionComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0192.py b/githubkit/versions/v2022_11_28/models/group_0192.py index 0c9701f5f..b14e4e21d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0192.py +++ b/githubkit/versions/v2022_11_28/models/group_0192.py @@ -9,59 +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 githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -class TeamProject(GitHubModel): - """Team Project +class Reaction(GitHubModel): + """Reaction - A team's access to a project. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - 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() + 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() -class TeamProjectPropPermissions(GitHubModel): - """TeamProjectPropPermissions""" +model_rebuild(Reaction) - read: bool = Field() - write: bool = Field() - admin: bool = Field() - - -model_rebuild(TeamProject) -model_rebuild(TeamProjectPropPermissions) - -__all__ = ( - "TeamProject", - "TeamProjectPropPermissions", -) +__all__ = ("Reaction",) diff --git a/githubkit/versions/v2022_11_28/models/group_0193.py b/githubkit/versions/v2022_11_28/models/group_0193.py index 640d1e96a..bf5d392cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0193.py +++ b/githubkit/versions/v2022_11_28/models/group_0193.py @@ -9,163 +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 -from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple +class TeamMembership(GitHubModel): + """Team Membership -class TeamRepository(GitHubModel): - """Team Repository - - A team's access to a repository. + Team 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." + role: Literal["member", "maintainer"] = Field( + default="member", description="The role of the user in the 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." + state: Literal["active", "pending"] = Field( + description="The state of the user's membership in the team." ) - 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) +model_rebuild(TeamMembership) -__all__ = ( - "TeamRepository", - "TeamRepositoryPropPermissions", -) +__all__ = ("TeamMembership",) diff --git a/githubkit/versions/v2022_11_28/models/group_0194.py b/githubkit/versions/v2022_11_28/models/group_0194.py index 8cdb479b9..0c9701f5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0194.py +++ b/githubkit/versions/v2022_11_28/models/group_0194.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -21,29 +20,48 @@ from .group_0003 import SimpleUser -class ProjectCard(GitHubModel): - """Project Card +class TeamProject(GitHubModel): + """Team Project - Project cards represent a scope of work. + A team's access to a project. """ + owner_url: str = Field() url: str = Field() - id: int = Field(description="The project card's ID") + html_url: str = Field() + columns_url: str = Field() + id: int = Field() 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" + 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.", ) - 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() + 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(ProjectCard) +model_rebuild(TeamProject) +model_rebuild(TeamProjectPropPermissions) -__all__ = ("ProjectCard",) +__all__ = ( + "TeamProject", + "TeamProjectPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0195.py b/githubkit/versions/v2022_11_28/models/group_0195.py index 08e6fd84f..640d1e96a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0195.py +++ b/githubkit/versions/v2022_11_28/models/group_0195.py @@ -10,28 +10,162 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class ProjectColumn(GitHubModel): - """Project Column - Project columns contain cards of work. +class TeamRepository(GitHubModel): + """Team Repository + + A team's access to a repository. """ - url: str = Field() - project_url: str = Field() - cards_url: str = Field() - id: int = Field(description="The unique identifier of the project column") + id: int = Field(description="Unique identifier of the repository") node_id: str = Field() - name: str = Field(description="Name of the project column") - created_at: datetime = 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") + forks: int = Field() + permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + owner: Union[None, SimpleUser] = Field() + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field() + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + + +class 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(ProjectColumn) +model_rebuild(TeamRepository) +model_rebuild(TeamRepositoryPropPermissions) -__all__ = ("ProjectColumn",) +__all__ = ( + "TeamRepository", + "TeamRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0196.py b/githubkit/versions/v2022_11_28/models/group_0196.py index 8665206a9..8cdb479b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0196.py +++ b/githubkit/versions/v2022_11_28/models/group_0196.py @@ -9,25 +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 ProjectCollaboratorPermission(GitHubModel): - """Project Collaborator Permission +class ProjectCard(GitHubModel): + """Project Card - Project Collaborator Permission + Project cards represent a scope of work. """ - permission: str = Field() - user: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectCollaboratorPermission) - -__all__ = ("ProjectCollaboratorPermission",) + url: str = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" + ) + column_name: Missing[str] = Field(default=UNSET) + project_id: Missing[str] = Field(default=UNSET) + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + project_url: str = Field() + + +model_rebuild(ProjectCard) + +__all__ = ("ProjectCard",) diff --git a/githubkit/versions/v2022_11_28/models/group_0197.py b/githubkit/versions/v2022_11_28/models/group_0197.py index 335b1a1b9..08e6fd84f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0197.py +++ b/githubkit/versions/v2022_11_28/models/group_0197.py @@ -9,20 +9,29 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class RateLimit(GitHubModel): - """Rate Limit""" +class ProjectColumn(GitHubModel): + """Project Column + + Project columns contain cards of work. + """ - limit: int = Field() - remaining: int = Field() - reset: int = Field() - used: int = Field() + url: str = Field() + project_url: str = Field() + cards_url: str = Field() + id: int = Field(description="The unique identifier of the project column") + node_id: str = Field() + name: str = Field(description="Name of the project column") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(RateLimit) +model_rebuild(ProjectColumn) -__all__ = ("RateLimit",) +__all__ = ("ProjectColumn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0198.py b/githubkit/versions/v2022_11_28/models/group_0198.py index 5ff5c5493..8665206a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0198.py +++ b/githubkit/versions/v2022_11_28/models/group_0198.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_0197 import RateLimit -from .group_0199 import RateLimitOverviewPropResources +from .group_0003 import SimpleUser -class RateLimitOverview(GitHubModel): - """Rate Limit Overview +class ProjectCollaboratorPermission(GitHubModel): + """Project Collaborator Permission - Rate Limit Overview + Project Collaborator Permission """ - resources: RateLimitOverviewPropResources = Field() - rate: RateLimit = Field(title="Rate Limit") + permission: str = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(RateLimitOverview) +model_rebuild(ProjectCollaboratorPermission) -__all__ = ("RateLimitOverview",) +__all__ = ("ProjectCollaboratorPermission",) diff --git a/githubkit/versions/v2022_11_28/models/group_0199.py b/githubkit/versions/v2022_11_28/models/group_0199.py index 5e3cc2eb5..335b1a1b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0199.py +++ b/githubkit/versions/v2022_11_28/models/group_0199.py @@ -12,31 +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_0197 import RateLimit +class RateLimit(GitHubModel): + """Rate Limit""" -class RateLimitOverviewPropResources(GitHubModel): - """RateLimitOverviewPropResources""" + limit: int = Field() + remaining: int = Field() + reset: int = Field() + used: int = Field() - 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") - dependency_sbom: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") +model_rebuild(RateLimit) -model_rebuild(RateLimitOverviewPropResources) - -__all__ = ("RateLimitOverviewPropResources",) +__all__ = ("RateLimit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0200.py b/githubkit/versions/v2022_11_28/models/group_0200.py index 5d2abd8b6..27dd0feb3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0200.py +++ b/githubkit/versions/v2022_11_28/models/group_0200.py @@ -9,53 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0199 import RateLimit +from .group_0201 import RateLimitOverviewPropResources -class Artifact(GitHubModel): - """Artifact +class RateLimitOverview(GitHubModel): + """Rate Limit Overview - An artifact + Rate Limit Overview """ - id: int = Field() - node_id: str = Field() - name: str = Field(description="The name of the artifact.") - size_in_bytes: int = Field(description="The size in bytes of the artifact.") - url: str = Field() - archive_download_url: str = Field() - expired: bool = Field(description="Whether or not the artifact has expired.") - created_at: Union[datetime, None] = Field() - expires_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - digest: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", - ) - workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) - - -class ArtifactPropWorkflowRun(GitHubModel): - """ArtifactPropWorkflowRun""" - - id: Missing[int] = Field(default=UNSET) - repository_id: Missing[int] = Field(default=UNSET) - head_repository_id: Missing[int] = Field(default=UNSET) - head_branch: Missing[str] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - - -model_rebuild(Artifact) -model_rebuild(ArtifactPropWorkflowRun) - -__all__ = ( - "Artifact", - "ArtifactPropWorkflowRun", -) + resources: RateLimitOverviewPropResources = Field() + rate: RateLimit = Field(title="Rate Limit") + + +model_rebuild(RateLimitOverview) + +__all__ = ("RateLimitOverview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0201.py b/githubkit/versions/v2022_11_28/models/group_0201.py index e8023d141..f005ddfe5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0201.py +++ b/githubkit/versions/v2022_11_28/models/group_0201.py @@ -9,43 +9,34 @@ 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_0199 import RateLimit -class ActionsCacheList(GitHubModel): - """Repository actions caches - Repository actions caches - """ +class RateLimitOverviewPropResources(GitHubModel): + """RateLimitOverviewPropResources""" - total_count: int = Field(description="Total number of caches") - actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( - description="Array of caches" + 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") + dependency_sbom: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") -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(RateLimitOverviewPropResources) -__all__ = ( - "ActionsCacheList", - "ActionsCacheListPropActionsCachesItems", -) +__all__ = ("RateLimitOverviewPropResources",) diff --git a/githubkit/versions/v2022_11_28/models/group_0202.py b/githubkit/versions/v2022_11_28/models/group_0202.py index 2a7eb2be6..5d2abd8b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0202.py +++ b/githubkit/versions/v2022_11_28/models/group_0202.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,92 +19,43 @@ from githubkit.utils import UNSET -class Job(GitHubModel): - """Job +class Artifact(GitHubModel): + """Artifact - Information of a job execution in a workflow run + An artifact """ - 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.", - ) + id: int = Field() node_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being run.") + 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() - 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.)" + archive_download_url: str = Field() + expired: bool = Field(description="Whether or not the artifact has expired.") + created_at: Union[datetime, None] = Field() + expires_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + digest: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", ) - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) -class JobPropStepsItems(GitHubModel): - """JobPropStepsItems""" +class ArtifactPropWorkflowRun(GitHubModel): + """ArtifactPropWorkflowRun""" - 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." - ) + 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(Job) -model_rebuild(JobPropStepsItems) +model_rebuild(Artifact) +model_rebuild(ArtifactPropWorkflowRun) __all__ = ( - "Job", - "JobPropStepsItems", + "Artifact", + "ArtifactPropWorkflowRun", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0203.py b/githubkit/versions/v2022_11_28/models/group_0203.py index cceb6bb55..e8023d141 100644 --- a/githubkit/versions/v2022_11_28/models/group_0203.py +++ b/githubkit/versions/v2022_11_28/models/group_0203.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,21 +18,34 @@ from githubkit.utils import UNSET -class OidcCustomSubRepo(GitHubModel): - """Actions OIDC subject customization for a repository +class ActionsCacheList(GitHubModel): + """Repository actions caches - Actions OIDC subject customization for a repository + Repository actions caches """ - 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.", + total_count: int = Field(description="Total number of caches") + actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( + description="Array of caches" ) -model_rebuild(OidcCustomSubRepo) +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__ = ("OidcCustomSubRepo",) +__all__ = ( + "ActionsCacheList", + "ActionsCacheListPropActionsCachesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0204.py b/githubkit/versions/v2022_11_28/models/group_0204.py index 4e5c3a572..2a7eb2be6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0204.py +++ b/githubkit/versions/v2022_11_28/models/group_0204.py @@ -10,23 +10,101 @@ 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 ActionsSecret(GitHubModel): - """Actions Secret +class Job(GitHubModel): + """Job - Set secrets for GitHub Actions. + Information of a job execution in a workflow run """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = 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() + 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.") -model_rebuild(ActionsSecret) +class JobPropStepsItems(GitHubModel): + """JobPropStepsItems""" -__all__ = ("ActionsSecret",) + 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(Job) +model_rebuild(JobPropStepsItems) + +__all__ = ( + "Job", + "JobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0205.py b/githubkit/versions/v2022_11_28/models/group_0205.py index cb0c0f09c..cceb6bb55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0205.py +++ b/githubkit/versions/v2022_11_28/models/group_0205.py @@ -9,26 +9,28 @@ 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 OidcCustomSubRepo(GitHubModel): + """Actions OIDC subject customization for a repository -class ActionsVariable(GitHubModel): - """Actions Variable""" + Actions OIDC subject customization for a repository + """ - 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." + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." ) - 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." + 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(ActionsVariable) +model_rebuild(OidcCustomSubRepo) -__all__ = ("ActionsVariable",) +__all__ = ("OidcCustomSubRepo",) diff --git a/githubkit/versions/v2022_11_28/models/group_0206.py b/githubkit/versions/v2022_11_28/models/group_0206.py index 5079bcff0..4e5c3a572 100644 --- a/githubkit/versions/v2022_11_28/models/group_0206.py +++ b/githubkit/versions/v2022_11_28/models/group_0206.py @@ -9,31 +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 ActionsRepositoryPermissions(GitHubModel): - """ActionsRepositoryPermissions""" +class ActionsSecret(GitHubModel): + """Actions Secret - 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`.", - ) + Set secrets for GitHub Actions. + """ + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ActionsRepositoryPermissions) -__all__ = ("ActionsRepositoryPermissions",) +model_rebuild(ActionsSecret) + +__all__ = ("ActionsSecret",) diff --git a/githubkit/versions/v2022_11_28/models/group_0207.py b/githubkit/versions/v2022_11_28/models/group_0207.py index 3a917b352..cb0c0f09c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0207.py +++ b/githubkit/versions/v2022_11_28/models/group_0207.py @@ -9,21 +9,26 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ActionsWorkflowAccessToRepository(GitHubModel): - """ActionsWorkflowAccessToRepository""" +class ActionsVariable(GitHubModel): + """Actions Variable""" - 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." + 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." ) -model_rebuild(ActionsWorkflowAccessToRepository) +model_rebuild(ActionsVariable) -__all__ = ("ActionsWorkflowAccessToRepository",) +__all__ = ("ActionsVariable",) diff --git a/githubkit/versions/v2022_11_28/models/group_0208.py b/githubkit/versions/v2022_11_28/models/group_0208.py index 7ce075884..5079bcff0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0208.py +++ b/githubkit/versions/v2022_11_28/models/group_0208.py @@ -9,63 +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 PullRequestMinimal(GitHubModel): - """Pull Request Minimal""" - - id: int = Field() - number: int = Field() - url: str = Field() - head: PullRequestMinimalPropHead = Field() - base: PullRequestMinimalPropBase = Field() - - -class PullRequestMinimalPropHead(GitHubModel): - """PullRequestMinimalPropHead""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropHeadPropRepo = Field() - - -class PullRequestMinimalPropHeadPropRepo(GitHubModel): - """PullRequestMinimalPropHeadPropRepo""" - - id: int = Field() - url: str = Field() - name: str = Field() - - -class PullRequestMinimalPropBase(GitHubModel): - """PullRequestMinimalPropBase""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropBasePropRepo = Field() - - -class PullRequestMinimalPropBasePropRepo(GitHubModel): - """PullRequestMinimalPropBasePropRepo""" +class ActionsRepositoryPermissions(GitHubModel): + """ActionsRepositoryPermissions""" - id: int = Field() - url: str = Field() - name: str = 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.", + ) + 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(PullRequestMinimal) -model_rebuild(PullRequestMinimalPropHead) -model_rebuild(PullRequestMinimalPropHeadPropRepo) -model_rebuild(PullRequestMinimalPropBase) -model_rebuild(PullRequestMinimalPropBasePropRepo) +model_rebuild(ActionsRepositoryPermissions) -__all__ = ( - "PullRequestMinimal", - "PullRequestMinimalPropBase", - "PullRequestMinimalPropBasePropRepo", - "PullRequestMinimalPropHead", - "PullRequestMinimalPropHeadPropRepo", -) +__all__ = ("ActionsRepositoryPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0209.py b/githubkit/versions/v2022_11_28/models/group_0209.py index 29f15097a..3a917b352 100644 --- a/githubkit/versions/v2022_11_28/models/group_0209.py +++ b/githubkit/versions/v2022_11_28/models/group_0209.py @@ -9,58 +9,21 @@ 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 -class SimpleCommit(GitHubModel): - """Simple Commit +class ActionsWorkflowAccessToRepository(GitHubModel): + """ActionsWorkflowAccessToRepository""" - A commit. - """ - - id: str = Field(description="SHA for the commit") - tree_id: str = Field(description="SHA for the commit's tree") - message: str = Field(description="Message describing the purpose of the commit") - timestamp: datetime = Field(description="Timestamp of the commit") - author: Union[SimpleCommitPropAuthor, None] = Field( - description="Information about the Git author" - ) - committer: Union[SimpleCommitPropCommitter, None] = Field( - description="Information about the Git committer" + 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." ) -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(ActionsWorkflowAccessToRepository) -__all__ = ( - "SimpleCommit", - "SimpleCommitPropAuthor", - "SimpleCommitPropCommitter", -) +__all__ = ("ActionsWorkflowAccessToRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0210.py b/githubkit/versions/v2022_11_28/models/group_0210.py index 56a6959f5..7ce075884 100644 --- a/githubkit/versions/v2022_11_28/models/group_0210.py +++ b/githubkit/versions/v2022_11_28/models/group_0210.py @@ -9,116 +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.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0061 import MinimalRepository -from .group_0208 import PullRequestMinimal -from .group_0209 import SimpleCommit - - -class WorkflowRun(GitHubModel): - """Workflow Run - - An invocation of a workflow - """ - - id: int = Field(description="The ID of the workflow run.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow run." - ) - node_id: str = Field() - check_suite_id: Missing[int] = Field( - default=UNSET, description="The ID of the associated check suite." - ) - check_suite_node_id: Missing[str] = Field( - default=UNSET, description="The node ID of the associated check suite." - ) - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that points to the version of the workflow being run." - ) - 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 ReferencedWorkflow(GitHubModel): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str = Field() + + +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() - ref: Missing[str] = Field(default=UNSET) + repo: PullRequestMinimalPropHeadPropRepo = Field() + + +class PullRequestMinimalPropHeadPropRepo(GitHubModel): + """PullRequestMinimalPropHeadPropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() + + +class PullRequestMinimalPropBase(GitHubModel): + """PullRequestMinimalPropBase""" + + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropBasePropRepo = Field() + + +class PullRequestMinimalPropBasePropRepo(GitHubModel): + """PullRequestMinimalPropBasePropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() -model_rebuild(WorkflowRun) -model_rebuild(ReferencedWorkflow) +model_rebuild(PullRequestMinimal) +model_rebuild(PullRequestMinimalPropHead) +model_rebuild(PullRequestMinimalPropHeadPropRepo) +model_rebuild(PullRequestMinimalPropBase) +model_rebuild(PullRequestMinimalPropBasePropRepo) __all__ = ( - "ReferencedWorkflow", - "WorkflowRun", + "PullRequestMinimal", + "PullRequestMinimalPropBase", + "PullRequestMinimalPropBasePropRepo", + "PullRequestMinimalPropHead", + "PullRequestMinimalPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0211.py b/githubkit/versions/v2022_11_28/models/group_0211.py index f9c274d60..29f15097a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0211.py +++ b/githubkit/versions/v2022_11_28/models/group_0211.py @@ -10,57 +10,57 @@ 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 -from .group_0003 import SimpleUser +class SimpleCommit(GitHubModel): + """Simple Commit -class EnvironmentApprovals(GitHubModel): - """Environment Approval - - An entry in the reviews log for environment deployments + A commit. """ - environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( - description="The list of environments that were approved or rejected" + 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" ) - state: Literal["approved", "rejected", "pending"] = Field( - description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" + committer: Union[SimpleCommitPropCommitter, None] = Field( + description="Information about the Git committer" ) - 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""" +class SimpleCommitPropAuthor(GitHubModel): + """SimpleCommitPropAuthor - 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.", - ) + 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(EnvironmentApprovals) -model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) +model_rebuild(SimpleCommit) +model_rebuild(SimpleCommitPropAuthor) +model_rebuild(SimpleCommitPropCommitter) __all__ = ( - "EnvironmentApprovals", - "EnvironmentApprovalsPropEnvironmentsItems", + "SimpleCommit", + "SimpleCommitPropAuthor", + "SimpleCommitPropCommitter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0212.py b/githubkit/versions/v2022_11_28/models/group_0212.py index 831ca354e..dc0c6b547 100644 --- a/githubkit/versions/v2022_11_28/models/group_0212.py +++ b/githubkit/versions/v2022_11_28/models/group_0212.py @@ -9,22 +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_0063 import MinimalRepository +from .group_0210 import PullRequestMinimal +from .group_0211 import SimpleCommit + +class WorkflowRun(GitHubModel): + """Workflow Run -class ReviewCustomGatesCommentRequired(GitHubModel): - """ReviewCustomGatesCommentRequired""" + An invocation of a workflow + """ - environment_name: str = Field( - description="The name of the environment to approve or reject." + 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." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - comment: str = Field( - description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" + 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(ReviewCustomGatesCommentRequired) +model_rebuild(WorkflowRun) +model_rebuild(ReferencedWorkflow) -__all__ = ("ReviewCustomGatesCommentRequired",) +__all__ = ( + "ReferencedWorkflow", + "WorkflowRun", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0213.py b/githubkit/versions/v2022_11_28/models/group_0213.py index 382e4485a..f9c274d60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0213.py +++ b/githubkit/versions/v2022_11_28/models/group_0213.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -17,21 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ReviewCustomGatesStateRequired(GitHubModel): - """ReviewCustomGatesStateRequired""" - environment_name: str = Field( - description="The name of the environment to approve or reject." +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." ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." + 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.", ) - comment: Missing[str] = Field( - default=UNSET, description="Optional comment to include with the review." + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was last updated, in ISO 8601 format.", ) -model_rebuild(ReviewCustomGatesStateRequired) +model_rebuild(EnvironmentApprovals) +model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) -__all__ = ("ReviewCustomGatesStateRequired",) +__all__ = ( + "EnvironmentApprovals", + "EnvironmentApprovalsPropEnvironmentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0214.py b/githubkit/versions/v2022_11_28/models/group_0214.py index e81f1b74d..831ca354e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0214.py +++ b/githubkit/versions/v2022_11_28/models/group_0214.py @@ -9,65 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0084 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 PendingDeployment(GitHubModel): - """Pending Deployment +class ReviewCustomGatesCommentRequired(GitHubModel): + """ReviewCustomGatesCommentRequired""" - 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." + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - - -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." + comment: str = Field( + description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) -model_rebuild(PendingDeploymentPropReviewersItems) -model_rebuild(PendingDeployment) -model_rebuild(PendingDeploymentPropEnvironment) +model_rebuild(ReviewCustomGatesCommentRequired) -__all__ = ( - "PendingDeployment", - "PendingDeploymentPropEnvironment", - "PendingDeploymentPropReviewersItems", -) +__all__ = ("ReviewCustomGatesCommentRequired",) diff --git a/githubkit/versions/v2022_11_28/models/group_0215.py b/githubkit/versions/v2022_11_28/models/group_0215.py index 37c49059f..382e4485a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0215.py +++ b/githubkit/versions/v2022_11_28/models/group_0215.py @@ -9,63 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration +class ReviewCustomGatesStateRequired(GitHubModel): + """ReviewCustomGatesStateRequired""" -class Deployment(GitHubModel): - """Deployment - - A request for a specific ref(branch,sha,tag) to be deployed - """ - - 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.", + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + comment: Missing[str] = Field( + default=UNSET, description="Optional comment to include with the review." ) -class DeploymentPropPayloadOneof0(ExtraGitHubModel): - """DeploymentPropPayloadOneof0""" - - -model_rebuild(Deployment) -model_rebuild(DeploymentPropPayloadOneof0) +model_rebuild(ReviewCustomGatesStateRequired) -__all__ = ( - "Deployment", - "DeploymentPropPayloadOneof0", -) +__all__ = ("ReviewCustomGatesStateRequired",) diff --git a/githubkit/versions/v2022_11_28/models/group_0216.py b/githubkit/versions/v2022_11_28/models/group_0216.py index c81b4fcb7..b4ea16910 100644 --- a/githubkit/versions/v2022_11_28/models/group_0216.py +++ b/githubkit/versions/v2022_11_28/models/group_0216.py @@ -9,104 +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 - -class WorkflowRunUsage(GitHubModel): - """Workflow Run Usage - - Workflow Run Usage - """ - - billable: WorkflowRunUsagePropBillable = Field() - run_duration_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowRunUsagePropBillable(GitHubModel): - """WorkflowRunUsagePropBillable""" - - ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" - ) - macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" - ) - windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" - ) +from .group_0003 import SimpleUser +from .group_0086 import Team -class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntu""" +class PendingDeploymentPropReviewersItems(GitHubModel): + """PendingDeploymentPropReviewersItems""" - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( - Field(default=UNSET) + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" +class PendingDeployment(GitHubModel): + """Pending Deployment - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropMacos(GitHubModel): - """WorkflowRunUsagePropBillablePropMacos""" + Details of a deployment that is waiting for protection rules to pass + """ - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( - Field(default=UNSET) + 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." ) - - -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) + 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 WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" +class PendingDeploymentPropEnvironment(GitHubModel): + """PendingDeploymentPropEnvironment""" - job_id: int = Field() - duration_ms: int = Field() + 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(WorkflowRunUsage) -model_rebuild(WorkflowRunUsagePropBillable) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropMacos) -model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropWindows) -model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) +model_rebuild(PendingDeploymentPropReviewersItems) +model_rebuild(PendingDeployment) +model_rebuild(PendingDeploymentPropEnvironment) __all__ = ( - "WorkflowRunUsage", - "WorkflowRunUsagePropBillable", - "WorkflowRunUsagePropBillablePropMacos", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", - "WorkflowRunUsagePropBillablePropUbuntu", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", - "WorkflowRunUsagePropBillablePropWindows", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", + "PendingDeployment", + "PendingDeploymentPropEnvironment", + "PendingDeploymentPropReviewersItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0217.py b/githubkit/versions/v2022_11_28/models/group_0217.py index f5831c47a..37c49059f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0217.py +++ b/githubkit/versions/v2022_11_28/models/group_0217.py @@ -9,64 +9,63 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class WorkflowUsage(GitHubModel): - """Workflow Usage - - Workflow Usage - """ - - billable: WorkflowUsagePropBillable = Field() +class Deployment(GitHubModel): + """Deployment -class WorkflowUsagePropBillable(GitHubModel): - """WorkflowUsagePropBillable""" + A request for a specific ref(branch,sha,tag) to be deployed + """ - ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" + 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." ) - macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + 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.", ) - windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" + 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 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) +class DeploymentPropPayloadOneof0(ExtraGitHubModel): + """DeploymentPropPayloadOneof0""" -model_rebuild(WorkflowUsage) -model_rebuild(WorkflowUsagePropBillable) -model_rebuild(WorkflowUsagePropBillablePropUbuntu) -model_rebuild(WorkflowUsagePropBillablePropMacos) -model_rebuild(WorkflowUsagePropBillablePropWindows) +model_rebuild(Deployment) +model_rebuild(DeploymentPropPayloadOneof0) __all__ = ( - "WorkflowUsage", - "WorkflowUsagePropBillable", - "WorkflowUsagePropBillablePropMacos", - "WorkflowUsagePropBillablePropUbuntu", - "WorkflowUsagePropBillablePropWindows", + "Deployment", + "DeploymentPropPayloadOneof0", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0218.py b/githubkit/versions/v2022_11_28/models/group_0218.py index 49966c29c..c81b4fcb7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0218.py +++ b/githubkit/versions/v2022_11_28/models/group_0218.py @@ -9,41 +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 .group_0003 import SimpleUser +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Activity(GitHubModel): - """Activity +class WorkflowRunUsage(GitHubModel): + """Workflow Run Usage - Activity + Workflow Run Usage """ - 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/`." + billable: WorkflowRunUsagePropBillable = Field() + run_duration_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowRunUsagePropBillable(GitHubModel): + """WorkflowRunUsagePropBillable""" + + ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" + ) + windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" + ) + + +class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropMacos(GitHubModel): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +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) ) - 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) +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__ = ("Activity",) +__all__ = ( + "WorkflowRunUsage", + "WorkflowRunUsagePropBillable", + "WorkflowRunUsagePropBillablePropMacos", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", + "WorkflowRunUsagePropBillablePropUbuntu", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", + "WorkflowRunUsagePropBillablePropWindows", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0219.py b/githubkit/versions/v2022_11_28/models/group_0219.py index 245d14611..f5831c47a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0219.py +++ b/githubkit/versions/v2022_11_28/models/group_0219.py @@ -12,24 +12,61 @@ 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 +class WorkflowUsage(GitHubModel): + """Workflow Usage - An autolink reference. + Workflow Usage """ - 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." + billable: WorkflowUsagePropBillable = Field() + + +class WorkflowUsagePropBillable(GitHubModel): + """WorkflowUsagePropBillable""" + + ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - is_alphanumeric: bool = Field( - description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." + windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) -model_rebuild(Autolink) +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__ = ("Autolink",) +__all__ = ( + "WorkflowUsage", + "WorkflowUsagePropBillable", + "WorkflowUsagePropBillablePropMacos", + "WorkflowUsagePropBillablePropUbuntu", + "WorkflowUsagePropBillablePropWindows", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0220.py b/githubkit/versions/v2022_11_28/models/group_0220.py index 481ac164d..49966c29c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0220.py +++ b/githubkit/versions/v2022_11_28/models/group_0220.py @@ -9,25 +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 .group_0003 import SimpleUser + -class CheckAutomatedSecurityFixes(GitHubModel): - """Check Dependabot security updates +class Activity(GitHubModel): + """Activity - Check Dependabot security updates + Activity """ - 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." + id: int = Field() + node_id: str = Field() + before: str = Field(description="The SHA of the commit before the activity.") + after: str = Field(description="The SHA of the commit after the activity.") + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." ) + timestamp: datetime = Field(description="The time when the activity occurred.") + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] = Field(description="The type of the activity that was performed.") + actor: Union[None, SimpleUser] = Field() -model_rebuild(CheckAutomatedSecurityFixes) +model_rebuild(Activity) -__all__ = ("CheckAutomatedSecurityFixes",) +__all__ = ("Activity",) diff --git a/githubkit/versions/v2022_11_28/models/group_0221.py b/githubkit/versions/v2022_11_28/models/group_0221.py index 7f7815e28..245d14611 100644 --- a/githubkit/versions/v2022_11_28/models/group_0221.py +++ b/githubkit/versions/v2022_11_28/models/group_0221.py @@ -12,40 +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_0222 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, - ProtectedBranchPullRequestReviewPropDismissalRestrictions, -) +class Autolink(GitHubModel): + """Autolink reference -class ProtectedBranchPullRequestReview(GitHubModel): - """Protected Branch Pull Request Review - - Protected Branch Pull Request Review + An autolink reference. """ - 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.", + 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." ) - 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.", + is_alphanumeric: bool = Field( + description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." ) -model_rebuild(ProtectedBranchPullRequestReview) +model_rebuild(Autolink) -__all__ = ("ProtectedBranchPullRequestReview",) +__all__ = ("Autolink",) diff --git a/githubkit/versions/v2022_11_28/models/group_0222.py b/githubkit/versions/v2022_11_28/models/group_0222.py index f27d82d2f..481ac164d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0222.py +++ b/githubkit/versions/v2022_11_28/models/group_0222.py @@ -9,60 +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 -from .group_0010 import Integration -from .group_0084 import Team -class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class CheckAutomatedSecurityFixes(GitHubModel): + """Check Dependabot security updates - 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. + Check Dependabot security updates """ - 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.", + enabled: bool = Field( + description="Whether Dependabot security updates are enabled for the repository." ) - apps: Missing[list[Union[Integration, None]]] = Field( - default=UNSET, - description="The list of apps allowed to bypass pull request requirements.", + paused: bool = Field( + description="Whether Dependabot security updates are paused for the repository." ) -model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) -model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) +model_rebuild(CheckAutomatedSecurityFixes) -__all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", - "ProtectedBranchPullRequestReviewPropDismissalRestrictions", -) +__all__ = ("CheckAutomatedSecurityFixes",) diff --git a/githubkit/versions/v2022_11_28/models/group_0223.py b/githubkit/versions/v2022_11_28/models/group_0223.py index b02082cc4..e09d0f6f5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0223.py +++ b/githubkit/versions/v2022_11_28/models/group_0223.py @@ -9,142 +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_0224 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, + ProtectedBranchPullRequestReviewPropDismissalRestrictions, +) -class BranchRestrictionPolicy(GitHubModel): - """Branch Restriction Policy - - Branch Restriction Policy - """ - - url: str = Field() - users_url: str = Field() - teams_url: str = Field() - apps_url: str = Field() - users: list[BranchRestrictionPolicyPropUsersItems] = Field() - teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() - apps: list[BranchRestrictionPolicyPropAppsItems] = Field() - - -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 ProtectedBranchPullRequestReview(GitHubModel): + """Protected Branch Pull Request Review -class BranchRestrictionPolicyPropTeamsItems(GitHubModel): - """BranchRestrictionPolicyPropTeamsItems""" + Protected Branch Pull Request Review + """ - 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 + 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.", ) - events: Missing[list[str]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: Missing[str] = Field(default=UNSET) - contents: Missing[str] = Field(default=UNSET) - issues: Missing[str] = Field(default=UNSET) - single_file: Missing[str] = Field(default=UNSET) -model_rebuild(BranchRestrictionPolicy) -model_rebuild(BranchRestrictionPolicyPropUsersItems) -model_rebuild(BranchRestrictionPolicyPropTeamsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) +model_rebuild(ProtectedBranchPullRequestReview) -__all__ = ( - "BranchRestrictionPolicy", - "BranchRestrictionPolicyPropAppsItems", - "BranchRestrictionPolicyPropAppsItemsPropOwner", - "BranchRestrictionPolicyPropAppsItemsPropPermissions", - "BranchRestrictionPolicyPropTeamsItems", - "BranchRestrictionPolicyPropUsersItems", -) +__all__ = ("ProtectedBranchPullRequestReview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0224.py b/githubkit/versions/v2022_11_28/models/group_0224.py index 810587e3e..3478155e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0224.py +++ b/githubkit/versions/v2022_11_28/models/group_0224.py @@ -17,176 +17,52 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0221 import ProtectedBranchPullRequestReview -from .group_0223 import BranchRestrictionPolicy +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0086 import Team -class BranchProtection(GitHubModel): - """Branch Protection +class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" - 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", + users: Missing[list[SimpleUser]] = Field( + default=UNSET, description="The list of users with review dismissal access." ) - enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( - default=UNSET, - title="Protected Branch Admin Enforced", - description="Protected Branch Admin Enforced", + teams: Missing[list[Team]] = Field( + default=UNSET, description="The list of teams with review dismissal access." ) - required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( - default=UNSET, - title="Protected Branch Pull Request Review", - description="Protected Branch Pull Request Review", + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, description="The list of apps with review dismissal access." ) - restrictions: Missing[BranchRestrictionPolicy] = Field( + 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. + """ + + users: Missing[list[SimpleUser]] = 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 + description="The list of users allowed to bypass pull request requirements.", ) - lock_branch: Missing[BranchProtectionPropLockBranch] = Field( + teams: Missing[list[Team]] = 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.", + description="The list of teams allowed to bypass pull request requirements.", ) - allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( + apps: Missing[list[Union[Integration, None]]] = 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.", + description="The list of apps allowed to bypass pull request requirements.", ) -class ProtectedBranchAdminEnforced(GitHubModel): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced - """ - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropRequiredLinearHistory(GitHubModel): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForcePushes(GitHubModel): - """BranchProtectionPropAllowForcePushes""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowDeletions(GitHubModel): - """BranchProtectionPropAllowDeletions""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropBlockCreations(GitHubModel): - """BranchProtectionPropBlockCreations""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredConversationResolution(GitHubModel): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredSignatures(GitHubModel): - """BranchProtectionPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropLockBranch(GitHubModel): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForkSyncing(GitHubModel): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheck(GitHubModel): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: Missing[str] = Field(default=UNSET) - enforcement_level: Missing[str] = Field(default=UNSET) - contexts: list[str] = Field() - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() - contexts_url: Missing[str] = Field(default=UNSET) - strict: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() - - -model_rebuild(BranchProtection) -model_rebuild(ProtectedBranchAdminEnforced) -model_rebuild(BranchProtectionPropRequiredLinearHistory) -model_rebuild(BranchProtectionPropAllowForcePushes) -model_rebuild(BranchProtectionPropAllowDeletions) -model_rebuild(BranchProtectionPropBlockCreations) -model_rebuild(BranchProtectionPropRequiredConversationResolution) -model_rebuild(BranchProtectionPropRequiredSignatures) -model_rebuild(BranchProtectionPropLockBranch) -model_rebuild(BranchProtectionPropAllowForkSyncing) -model_rebuild(ProtectedBranchRequiredStatusCheck) -model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) +model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) +model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) __all__ = ( - "BranchProtection", - "BranchProtectionPropAllowDeletions", - "BranchProtectionPropAllowForcePushes", - "BranchProtectionPropAllowForkSyncing", - "BranchProtectionPropBlockCreations", - "BranchProtectionPropLockBranch", - "BranchProtectionPropRequiredConversationResolution", - "BranchProtectionPropRequiredLinearHistory", - "BranchProtectionPropRequiredSignatures", - "ProtectedBranchAdminEnforced", - "ProtectedBranchRequiredStatusCheck", - "ProtectedBranchRequiredStatusCheckPropChecksItems", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", + "ProtectedBranchPullRequestReviewPropDismissalRestrictions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0225.py b/githubkit/versions/v2022_11_28/models/group_0225.py index 2708ad81d..b02082cc4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0225.py +++ b/githubkit/versions/v2022_11_28/models/group_0225.py @@ -9,41 +9,142 @@ 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_0224 import BranchProtection - -class ShortBranch(GitHubModel): - """Short Branch +class BranchRestrictionPolicy(GitHubModel): + """Branch Restriction Policy - Short Branch + Branch Restriction Policy """ - name: str = Field() - commit: ShortBranchPropCommit = Field() - protected: bool = Field() - protection: Missing[BranchProtection] = Field( - default=UNSET, title="Branch Protection", description="Branch Protection" - ) - protection_url: Missing[str] = Field(default=UNSET) - - -class ShortBranchPropCommit(GitHubModel): - """ShortBranchPropCommit""" - - sha: str = Field() url: str = Field() - - -model_rebuild(ShortBranch) -model_rebuild(ShortBranchPropCommit) + 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__ = ( - "ShortBranch", - "ShortBranchPropCommit", + "BranchRestrictionPolicy", + "BranchRestrictionPolicyPropAppsItems", + "BranchRestrictionPolicyPropAppsItemsPropOwner", + "BranchRestrictionPolicyPropAppsItemsPropPermissions", + "BranchRestrictionPolicyPropTeamsItems", + "BranchRestrictionPolicyPropUsersItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0226.py b/githubkit/versions/v2022_11_28/models/group_0226.py index 1a688a15a..5807c1d6b 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 datetime import datetime +from typing import Union from pydantic import Field @@ -17,18 +17,176 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0223 import ProtectedBranchPullRequestReview +from .group_0225 import BranchRestrictionPolicy -class GitUser(GitHubModel): - """Git User - Metaproperties for Git author/committer information. +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) - email: Missing[str] = Field(default=UNSET) - date: Missing[datetime] = 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() -model_rebuild(GitUser) +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__ = ("GitUser",) +__all__ = ( + "BranchProtection", + "BranchProtectionPropAllowDeletions", + "BranchProtectionPropAllowForcePushes", + "BranchProtectionPropAllowForkSyncing", + "BranchProtectionPropBlockCreations", + "BranchProtectionPropLockBranch", + "BranchProtectionPropRequiredConversationResolution", + "BranchProtectionPropRequiredLinearHistory", + "BranchProtectionPropRequiredSignatures", + "ProtectedBranchAdminEnforced", + "ProtectedBranchRequiredStatusCheck", + "ProtectedBranchRequiredStatusCheckPropChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0227.py b/githubkit/versions/v2022_11_28/models/group_0227.py index b177fcee6..81b6d7f89 100644 --- a/githubkit/versions/v2022_11_28/models/group_0227.py +++ b/githubkit/versions/v2022_11_28/models/group_0227.py @@ -9,25 +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_0226 import BranchProtection + + +class ShortBranch(GitHubModel): + """Short Branch + + Short Branch + """ + + name: str = Field() + commit: ShortBranchPropCommit = Field() + protected: bool = Field() + protection: Missing[BranchProtection] = Field( + default=UNSET, title="Branch Protection", description="Branch Protection" + ) + protection_url: Missing[str] = Field(default=UNSET) + -class Verification(GitHubModel): - """Verification""" +class ShortBranchPropCommit(GitHubModel): + """ShortBranchPropCommit""" - 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) + sha: str = Field() + url: str = Field() -model_rebuild(Verification) +model_rebuild(ShortBranch) +model_rebuild(ShortBranchPropCommit) -__all__ = ("Verification",) +__all__ = ( + "ShortBranch", + "ShortBranchPropCommit", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0228.py b/githubkit/versions/v2022_11_28/models/group_0228.py index 3625474ad..1a688a15a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0228.py +++ b/githubkit/versions/v2022_11_28/models/group_0228.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from pydantic import Field @@ -18,27 +18,17 @@ from githubkit.utils import UNSET -class DiffEntry(GitHubModel): - """Diff Entry +class GitUser(GitHubModel): + """Git User - Diff Entry + Metaproperties for Git author/committer information. """ - sha: Union[str, None] = Field() - filename: str = Field() - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] = Field() - additions: int = Field() - deletions: int = Field() - changes: int = Field() - blob_url: Union[str, None] = Field() - raw_url: Union[str, None] = Field() - contents_url: str = Field() - patch: Missing[str] = Field(default=UNSET) - previous_filename: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) -model_rebuild(DiffEntry) +model_rebuild(GitUser) -__all__ = ("DiffEntry",) +__all__ = ("GitUser",) diff --git a/githubkit/versions/v2022_11_28/models/group_0229.py b/githubkit/versions/v2022_11_28/models/group_0229.py index 2557d7fb6..b177fcee6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0229.py +++ b/githubkit/versions/v2022_11_28/models/group_0229.py @@ -17,61 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0228 import DiffEntry -from .group_0230 import CommitPropCommit +class Verification(GitHubModel): + """Verification""" -class Commit(GitHubModel): - """Commit + 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) - 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) +model_rebuild(Verification) - -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", -) +__all__ = ("Verification",) diff --git a/githubkit/versions/v2022_11_28/models/group_0230.py b/githubkit/versions/v2022_11_28/models/group_0230.py index cd87ef2cc..3625474ad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0230.py +++ b/githubkit/versions/v2022_11_28/models/group_0230.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,33 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0226 import GitUser -from .group_0227 import Verification +class DiffEntry(GitHubModel): + """Diff Entry -class CommitPropCommit(GitHubModel): - """CommitPropCommit""" + Diff Entry + """ - 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") + sha: Union[str, None] = Field() + filename: str = Field() + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] = Field() + additions: int = Field() + deletions: int = Field() + changes: int = Field() + blob_url: Union[str, None] = Field() + raw_url: Union[str, None] = Field() + contents_url: str = Field() + patch: Missing[str] = Field(default=UNSET) + previous_filename: Missing[str] = Field(default=UNSET) -class CommitPropCommitPropTree(GitHubModel): - """CommitPropCommitPropTree""" +model_rebuild(DiffEntry) - sha: str = Field() - url: str = Field() - - -model_rebuild(CommitPropCommit) -model_rebuild(CommitPropCommitPropTree) - -__all__ = ( - "CommitPropCommit", - "CommitPropCommitPropTree", -) +__all__ = ("DiffEntry",) diff --git a/githubkit/versions/v2022_11_28/models/group_0231.py b/githubkit/versions/v2022_11_28/models/group_0231.py index 7f39de866..d11dde8c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0231.py +++ b/githubkit/versions/v2022_11_28/models/group_0231.py @@ -9,45 +9,69 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0224 import BranchProtection -from .group_0229 import Commit +from .group_0003 import SimpleUser +from .group_0230 import DiffEntry +from .group_0232 import CommitPropCommit + + +class Commit(GitHubModel): + """Commit + + 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) -class BranchWithProtection(GitHubModel): - """Branch With Protection +class EmptyObject(GitHubModel): + """Empty Object - Branch With Protection + An object without any properties. """ - 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 CommitPropParentsItems(GitHubModel): + """CommitPropParentsItems""" + + sha: str = Field() + url: str = Field() + html_url: Missing[str] = Field(default=UNSET) -class BranchWithProtectionPropLinks(GitHubModel): - """BranchWithProtectionPropLinks""" +class CommitPropStats(GitHubModel): + """CommitPropStats""" - html: str = Field() - self_: str = Field(alias="self") + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + total: Missing[int] = Field(default=UNSET) -model_rebuild(BranchWithProtection) -model_rebuild(BranchWithProtectionPropLinks) +model_rebuild(Commit) +model_rebuild(EmptyObject) +model_rebuild(CommitPropParentsItems) +model_rebuild(CommitPropStats) __all__ = ( - "BranchWithProtection", - "BranchWithProtectionPropLinks", + "Commit", + "CommitPropParentsItems", + "CommitPropStats", + "EmptyObject", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0232.py b/githubkit/versions/v2022_11_28/models/group_0232.py index ad4bbe521..2dafa5cae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0232.py +++ b/githubkit/versions/v2022_11_28/models/group_0232.py @@ -17,161 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0223 import BranchRestrictionPolicy -from .group_0233 import ProtectedBranchPropRequiredPullRequestReviews +from .group_0228 import GitUser +from .group_0229 import Verification -class ProtectedBranch(GitHubModel): - """Protected Branch - - Branch protections protect branches - """ - - url: str = Field() - required_status_checks: Missing[StatusCheckPolicy] = Field( - default=UNSET, title="Status Check Policy", description="Status Check Policy" - ) - required_pull_request_reviews: Missing[ - ProtectedBranchPropRequiredPullRequestReviews - ] = Field(default=UNSET) - required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( - default=UNSET - ) - enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) - required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( - default=UNSET - ) - allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_conversation_resolution: Missing[ - ProtectedBranchPropRequiredConversationResolution - ] = Field(default=UNSET) - block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) - lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchPropRequiredSignatures(GitHubModel): - """ProtectedBranchPropRequiredSignatures""" +class CommitPropCommit(GitHubModel): + """CommitPropCommit""" 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() - + 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 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 CommitPropCommitPropTree(GitHubModel): + """CommitPropCommitPropTree""" + 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(CommitPropCommit) +model_rebuild(CommitPropCommitPropTree) __all__ = ( - "ProtectedBranch", - "ProtectedBranchPropAllowDeletions", - "ProtectedBranchPropAllowForcePushes", - "ProtectedBranchPropAllowForkSyncing", - "ProtectedBranchPropBlockCreations", - "ProtectedBranchPropEnforceAdmins", - "ProtectedBranchPropLockBranch", - "ProtectedBranchPropRequiredConversationResolution", - "ProtectedBranchPropRequiredLinearHistory", - "ProtectedBranchPropRequiredSignatures", - "StatusCheckPolicy", - "StatusCheckPolicyPropChecksItems", + "CommitPropCommit", + "CommitPropCommitPropTree", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0233.py b/githubkit/versions/v2022_11_28/models/group_0233.py index 2cee6eba0..290976769 100644 --- a/githubkit/versions/v2022_11_28/models/group_0233.py +++ b/githubkit/versions/v2022_11_28/models/group_0233.py @@ -15,31 +15,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0234 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, -) +from .group_0226 import BranchProtection +from .group_0231 import Commit -class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): - """ProtectedBranchPropRequiredPullRequestReviews""" +class BranchWithProtection(GitHubModel): + """Branch With Protection - 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.", + Branch With Protection + """ + + name: str = Field() + commit: Commit = Field(title="Commit", description="Commit") + links: BranchWithProtectionPropLinks = Field(alias="_links") + protected: bool = Field() + protection: BranchProtection = Field( + title="Branch Protection", description="Branch Protection" ) - dismissal_restrictions: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field(default=UNSET) + protection_url: str = Field() + pattern: Missing[str] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) -model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) +class BranchWithProtectionPropLinks(GitHubModel): + """BranchWithProtectionPropLinks""" -__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) + html: str = Field() + self_: str = Field(alias="self") + + +model_rebuild(BranchWithProtection) +model_rebuild(BranchWithProtectionPropLinks) + +__all__ = ( + "BranchWithProtection", + "BranchWithProtectionPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0234.py b/githubkit/versions/v2022_11_28/models/group_0234.py index 43ac5351d..d2abebc80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0234.py +++ b/githubkit/versions/v2022_11_28/models/group_0234.py @@ -17,40 +17,161 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0084 import Team +from .group_0225 import BranchRestrictionPolicy +from .group_0235 import ProtectedBranchPropRequiredPullRequestReviews -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class ProtectedBranch(GitHubModel): + """Protected Branch + + Branch protections protect branches + """ 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) + 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 ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) +class ProtectedBranchPropEnforceAdmins(GitHubModel): + """ProtectedBranchPropEnforceAdmins""" + url: str = Field() + enabled: bool = Field() -model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) -model_rebuild( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) + +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() + + +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__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ProtectedBranch", + "ProtectedBranchPropAllowDeletions", + "ProtectedBranchPropAllowForcePushes", + "ProtectedBranchPropAllowForkSyncing", + "ProtectedBranchPropBlockCreations", + "ProtectedBranchPropEnforceAdmins", + "ProtectedBranchPropLockBranch", + "ProtectedBranchPropRequiredConversationResolution", + "ProtectedBranchPropRequiredLinearHistory", + "ProtectedBranchPropRequiredSignatures", + "StatusCheckPolicy", + "StatusCheckPolicyPropChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0235.py b/githubkit/versions/v2022_11_28/models/group_0235.py index 7a0f9e876..847eab76e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0235.py +++ b/githubkit/versions/v2022_11_28/models/group_0235.py @@ -9,49 +9,37 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration - +from .group_0236 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, +) -class DeploymentSimple(GitHubModel): - """Deployment - A deployment created as the result of an Actions check run from a workflow that - references an environment - """ +class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): + """ProtectedBranchPropRequiredPullRequestReviews""" 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( + 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="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 + 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(DeploymentSimple) +model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) -__all__ = ("DeploymentSimple",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) diff --git a/githubkit/versions/v2022_11_28/models/group_0236.py b/githubkit/versions/v2022_11_28/models/group_0236.py index 5fc111335..e3e339590 100644 --- a/githubkit/versions/v2022_11_28/models/group_0236.py +++ b/githubkit/versions/v2022_11_28/models/group_0236.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,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0208 import PullRequestMinimal -from .group_0235 import DeploymentSimple +from .group_0086 import Team -class CheckRun(GitHubModel): - """CheckRun +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - 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." - ) - 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) + 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__ = ( - "CheckRun", - "CheckRunPropCheckSuite", - "CheckRunPropOutput", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0237.py b/githubkit/versions/v2022_11_28/models/group_0237.py index 2dfb0cd0e..7a0f9e876 100644 --- a/githubkit/versions/v2022_11_28/models/group_0237.py +++ b/githubkit/versions/v2022_11_28/models/group_0237.py @@ -9,31 +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_0010 import Integration -class CheckAnnotation(GitHubModel): - """Check Annotation - Check Annotation - """ - - path: str = Field() - start_line: int = Field() - end_line: int = Field() - start_column: Union[int, None] = Field() - end_column: Union[int, None] = Field() - annotation_level: Union[str, None] = Field() - title: Union[str, None] = Field() - message: Union[str, None] = Field() - raw_details: Union[str, None] = Field() - blob_href: str = Field() +class DeploymentSimple(GitHubModel): + """Deployment + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ -model_rebuild(CheckAnnotation) - -__all__ = ("CheckAnnotation",) + 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",) diff --git a/githubkit/versions/v2022_11_28/models/group_0238.py b/githubkit/versions/v2022_11_28/models/group_0238.py index 183f2ec3d..bb4033ffd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0238.py +++ b/githubkit/versions/v2022_11_28/models/group_0238.py @@ -19,30 +19,27 @@ from githubkit.utils import UNSET from .group_0010 import Integration -from .group_0061 import MinimalRepository -from .group_0208 import PullRequestMinimal -from .group_0209 import SimpleCommit +from .group_0210 import PullRequestMinimal +from .group_0237 import DeploymentSimple -class CheckSuite(GitHubModel): - """CheckSuite +class CheckRun(GitHubModel): + """CheckRun - A suite of checks performed on the code of a given code change + A check performed on the code of a given code change """ - id: int = Field() + 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() - 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" - ], + 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 suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." + 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, @@ -54,38 +51,46 @@ class CheckSuite(GitHubModel): "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() + 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() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + 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." ) - 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) + 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 ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" - total_count: int = Field() - check_suites: list[CheckSuite] = Field() +class CheckRunPropCheckSuite(GitHubModel): + """CheckRunPropCheckSuite""" + + id: int = Field() -model_rebuild(CheckSuite) -model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) +model_rebuild(CheckRun) +model_rebuild(CheckRunPropOutput) +model_rebuild(CheckRunPropCheckSuite) __all__ = ( - "CheckSuite", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", + "CheckRun", + "CheckRunPropCheckSuite", + "CheckRunPropOutput", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0239.py b/githubkit/versions/v2022_11_28/models/group_0239.py index a9b887288..2dfb0cd0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0239.py +++ b/githubkit/versions/v2022_11_28/models/group_0239.py @@ -9,48 +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 - -from .group_0061 import MinimalRepository -class CheckSuitePreference(GitHubModel): - """Check Suite Preference +class CheckAnnotation(GitHubModel): + """Check Annotation - Check suite configuration preferences for a repository. + Check Annotation """ - preferences: CheckSuitePreferencePropPreferences = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - - -class CheckSuitePreferencePropPreferences(GitHubModel): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: Missing[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] - ] = Field(default=UNSET) - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int = Field() - setting: bool = Field() + 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(CheckSuitePreference) -model_rebuild(CheckSuitePreferencePropPreferences) -model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) +model_rebuild(CheckAnnotation) -__all__ = ( - "CheckSuitePreference", - "CheckSuitePreferencePropPreferences", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", -) +__all__ = ("CheckAnnotation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0240.py b/githubkit/versions/v2022_11_28/models/group_0240.py index 1086ec034..44a7da2fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0240.py +++ b/githubkit/versions/v2022_11_28/models/group_0240.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,56 +18,74 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0086 import CodeScanningAlertRuleSummary -from .group_0087 import CodeScanningAnalysisTool -from .group_0088 import CodeScanningAlertInstance +from .group_0010 import Integration +from .group_0063 import MinimalRepository +from .group_0210 import PullRequestMinimal +from .group_0211 import SimpleCommit -class CodeScanningAlertItems(GitHubModel): - """CodeScanningAlertItems""" +class CheckSuite(GitHubModel): + """CheckSuite - 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`." + 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." ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + 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." ) - 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.", - ) + 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" ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - dismissal_approved_by: Missing[Union[None, SimpleUser]] = 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) + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int = Field() + check_suites: list[CheckSuite] = Field() -model_rebuild(CodeScanningAlertItems) +model_rebuild(CheckSuite) +model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) -__all__ = ("CodeScanningAlertItems",) +__all__ = ( + "CheckSuite", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0241.py b/githubkit/versions/v2022_11_28/models/group_0241.py index 37922a3fa..80836c7b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0241.py +++ b/githubkit/versions/v2022_11_28/models/group_0241.py @@ -9,105 +9,48 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0087 import CodeScanningAnalysisTool -from .group_0088 import CodeScanningAlertInstance +from .group_0063 import MinimalRepository -class CodeScanningAlert(GitHubModel): - """CodeScanningAlert""" +class CheckSuitePreference(GitHubModel): + """Check Suite Preference - 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.", - ) + Check suite configuration preferences for a repository. + """ + + preferences: CheckSuitePreferencePropPreferences = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - rule: CodeScanningAlertRule = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -class CodeScanningAlertRule(GitHubModel): - """CodeScanningAlertRule""" +class CheckSuitePreferencePropPreferences(GitHubModel): + """CheckSuitePreferencePropPreferences""" - 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.", - ) + auto_trigger_checks: Missing[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] + ] = Field(default=UNSET) + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int = Field() + setting: bool = Field() -model_rebuild(CodeScanningAlert) -model_rebuild(CodeScanningAlertRule) +model_rebuild(CheckSuitePreference) +model_rebuild(CheckSuitePreferencePropPreferences) +model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) __all__ = ( - "CodeScanningAlert", - "CodeScanningAlertRule", + "CheckSuitePreference", + "CheckSuitePreferencePropPreferences", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0242.py b/githubkit/versions/v2022_11_28/models/group_0242.py index 9ae48ea96..f9c7234e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0242.py +++ b/githubkit/versions/v2022_11_28/models/group_0242.py @@ -10,25 +10,64 @@ 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 GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0088 import CodeScanningAlertRuleSummary +from .group_0089 import CodeScanningAnalysisTool +from .group_0090 import CodeScanningAlertInstance -class CodeScanningAutofix(GitHubModel): - """CodeScanningAutofix""" - status: Literal["pending", "error", "success", "outdated"] = Field( - description="The status of an autofix." +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." ) - 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`." + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -model_rebuild(CodeScanningAutofix) +model_rebuild(CodeScanningAlertItems) -__all__ = ("CodeScanningAutofix",) +__all__ = ("CodeScanningAlertItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0243.py b/githubkit/versions/v2022_11_28/models/group_0243.py index c0777bd5b..82c2d7f1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0243.py +++ b/githubkit/versions/v2022_11_28/models/group_0243.py @@ -9,28 +9,105 @@ from __future__ import annotations +from datetime import datetime +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0089 import CodeScanningAnalysisTool +from .group_0090 import CodeScanningAlertInstance -class CodeScanningAutofixCommits(GitHubModel): - """CodeScanningAutofixCommits - Commit an autofix for a code scanning alert - """ +class CodeScanningAlert(GitHubModel): + """CodeScanningAlert""" - target_ref: Missing[str] = Field( + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." + ) + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description='The Git reference of target branch for the commit. 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.', + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - message: Missing[str] = Field( - default=UNSET, description="Commit message to be used." + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRule = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + + +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(CodeScanningAutofixCommits) +model_rebuild(CodeScanningAlert) +model_rebuild(CodeScanningAlertRule) -__all__ = ("CodeScanningAutofixCommits",) +__all__ = ( + "CodeScanningAlert", + "CodeScanningAlertRule", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0244.py b/githubkit/versions/v2022_11_28/models/group_0244.py index 02e796aba..9ae48ea96 100644 --- a/githubkit/versions/v2022_11_28/models/group_0244.py +++ b/githubkit/versions/v2022_11_28/models/group_0244.py @@ -9,23 +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 -class CodeScanningAutofixCommitsResponse(GitHubModel): - """CodeScanningAutofixCommitsResponse""" +class CodeScanningAutofix(GitHubModel): + """CodeScanningAutofix""" - 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.', + 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`." ) - sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") -model_rebuild(CodeScanningAutofixCommitsResponse) +model_rebuild(CodeScanningAutofix) -__all__ = ("CodeScanningAutofixCommitsResponse",) +__all__ = ("CodeScanningAutofix",) diff --git a/githubkit/versions/v2022_11_28/models/group_0245.py b/githubkit/versions/v2022_11_28/models/group_0245.py index d60923de9..c0777bd5b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0245.py +++ b/githubkit/versions/v2022_11_28/models/group_0245.py @@ -9,57 +9,28 @@ 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_0087 import CodeScanningAnalysisTool +class CodeScanningAutofixCommits(GitHubModel): + """CodeScanningAutofixCommits -class CodeScanningAnalysis(GitHubModel): - """CodeScanningAnalysis""" + Commit an autofix for a code scanning alert + """ - 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( + target_ref: 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." + 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.', ) - rules_count: int = Field( - description="The total number of rules used in the analysis." + message: Missing[str] = Field( + default=UNSET, description="Commit message to be used." ) - 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) +model_rebuild(CodeScanningAutofixCommits) -__all__ = ("CodeScanningAnalysis",) +__all__ = ("CodeScanningAutofixCommits",) diff --git a/githubkit/versions/v2022_11_28/models/group_0246.py b/githubkit/versions/v2022_11_28/models/group_0246.py index d589823d8..02e796aba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0246.py +++ b/githubkit/versions/v2022_11_28/models/group_0246.py @@ -9,27 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodeScanningAnalysisDeletion(GitHubModel): - """Analysis deletion - - Successful deletion of a code scanning analysis - """ +class CodeScanningAutofixCommitsResponse(GitHubModel): + """CodeScanningAutofixCommitsResponse""" - 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" + 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.") -model_rebuild(CodeScanningAnalysisDeletion) +model_rebuild(CodeScanningAutofixCommitsResponse) -__all__ = ("CodeScanningAnalysisDeletion",) +__all__ = ("CodeScanningAutofixCommitsResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0247.py b/githubkit/versions/v2022_11_28/models/group_0247.py index 03bb03a35..c92d40e34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0247.py +++ b/githubkit/versions/v2022_11_28/models/group_0247.py @@ -10,7 +10,6 @@ from __future__ import annotations from datetime import datetime -from typing import Union from pydantic import Field @@ -18,36 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0089 import CodeScanningAnalysisTool -class CodeScanningCodeqlDatabase(GitHubModel): - """CodeQL Database +class CodeScanningAnalysis(GitHubModel): + """CodeScanningAnalysis""" - 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." + ref: str = Field( + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." ) - 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." + 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.", ) - 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." + 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." ) - commit_oid: Missing[Union[str, None]] = Field( + 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="The commit SHA of the repository at the time the CodeQL database was created.", + 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(CodeScanningCodeqlDatabase) +model_rebuild(CodeScanningAnalysis) -__all__ = ("CodeScanningCodeqlDatabase",) +__all__ = ("CodeScanningAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0248.py b/githubkit/versions/v2022_11_28/models/group_0248.py index 4561ffbb1..d589823d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0248.py +++ b/githubkit/versions/v2022_11_28/models/group_0248.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -17,22 +16,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodeScanningVariantAnalysisRepository(GitHubModel): - """Repository Identifier +class CodeScanningAnalysisDeletion(GitHubModel): + """Analysis deletion - Repository Identifier + Successful deletion of a code scanning 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." + 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" ) - private: bool = Field(description="Whether the repository is private.") - stargazers_count: int = Field() - updated_at: Union[datetime, None] = Field() -model_rebuild(CodeScanningVariantAnalysisRepository) +model_rebuild(CodeScanningAnalysisDeletion) -__all__ = ("CodeScanningVariantAnalysisRepository",) +__all__ = ("CodeScanningAnalysisDeletion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0249.py b/githubkit/versions/v2022_11_28/models/group_0249.py index cf74b95d2..03bb03a35 100644 --- a/githubkit/versions/v2022_11_28/models/group_0249.py +++ b/githubkit/versions/v2022_11_28/models/group_0249.py @@ -9,24 +9,45 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser -from .group_0248 import CodeScanningVariantAnalysisRepository +class CodeScanningCodeqlDatabase(GitHubModel): + """CodeQL Database -class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): - """CodeScanningVariantAnalysisSkippedRepoGroup""" + A CodeQL database. + """ - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + id: int = Field(description="The ID of the CodeQL database.") + name: str = Field(description="The name of the CodeQL database.") + language: str = Field(description="The language of the CodeQL database.") + uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") + content_type: str = Field(description="The MIME type of the CodeQL database file.") + size: int = Field(description="The size of the CodeQL database file in bytes.") + created_at: datetime = Field( + description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + url: str = Field( + description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." ) - 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." + 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(CodeScanningVariantAnalysisSkippedRepoGroup) +model_rebuild(CodeScanningCodeqlDatabase) -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) +__all__ = ("CodeScanningCodeqlDatabase",) diff --git a/githubkit/versions/v2022_11_28/models/group_0250.py b/githubkit/versions/v2022_11_28/models/group_0250.py index b7abb7524..4561ffbb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0250.py +++ b/githubkit/versions/v2022_11_28/models/group_0250.py @@ -10,69 +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 -from .group_0003 import SimpleUser -from .group_0031 import SimpleRepository -from .group_0251 import CodeScanningVariantAnalysisPropScannedRepositoriesItems -from .group_0252 import CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningVariantAnalysisRepository(GitHubModel): + """Repository Identifier -class CodeScanningVariantAnalysis(GitHubModel): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Repository Identifier """ - id: int = Field(description="The ID of the variant analysis.") - controller_repo: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack_url: str = Field(description="The download url for the query pack.") - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", - ) - status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() - actions_workflow_run_id: Missing[int] = Field( - default=UNSET, - description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", - ) - failure_reason: Missing[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] = Field( - default=UNSET, - description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", - ) - 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.", + 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(CodeScanningVariantAnalysis) +model_rebuild(CodeScanningVariantAnalysisRepository) -__all__ = ("CodeScanningVariantAnalysis",) +__all__ = ("CodeScanningVariantAnalysisRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0251.py b/githubkit/versions/v2022_11_28/models/group_0251.py index a5200b0f6..bc0da9b6f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0251.py +++ b/githubkit/versions/v2022_11_28/models/group_0251.py @@ -9,42 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0248 import CodeScanningVariantAnalysisRepository +from .group_0250 import CodeScanningVariantAnalysisRepository -class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - 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.", + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - 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.", + 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(CodeScanningVariantAnalysisPropScannedRepositoriesItems) +model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0252.py b/githubkit/versions/v2022_11_28/models/group_0252.py index bfcecc9b6..a3cacd3bb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0252.py +++ b/githubkit/versions/v2022_11_28/models/group_0252.py @@ -9,41 +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_0249 import CodeScanningVariantAnalysisSkippedRepoGroup +from .group_0003 import SimpleUser +from .group_0032 import SimpleRepository +from .group_0253 import CodeScanningVariantAnalysisPropScannedRepositoriesItems +from .group_0254 import CodeScanningVariantAnalysisPropSkippedRepositories -class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningVariantAnalysis(GitHubModel): + """Variant Analysis - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + A run of a CodeQL query against one or more repositories. """ - 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." + id: int = Field(description="The ID of the variant analysis.") + controller_repo: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack_url: str = Field(description="The download url for the query pack.") + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", + ) + status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() + actions_workflow_run_id: Missing[int] = Field( + default=UNSET, + description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", + ) + failure_reason: Missing[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] = Field( + default=UNSET, + description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", ) - 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." + 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(CodeScanningVariantAnalysisPropSkippedRepositories) -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) +model_rebuild(CodeScanningVariantAnalysis) -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositories", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", -) +__all__ = ("CodeScanningVariantAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0253.py b/githubkit/versions/v2022_11_28/models/group_0253.py index cd4b0204d..d0d8240d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0253.py +++ b/githubkit/versions/v2022_11_28/models/group_0253.py @@ -17,46 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0031 import SimpleRepository +from .group_0250 import CodeScanningVariantAnalysisRepository -class CodeScanningVariantAnalysisRepoTask(GitHubModel): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." + 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." ) - 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( + artifact_size_in_bytes: Missing[int] = Field( default=UNSET, - description="The source location prefix to use. This is only available for successful analyses.", + description="The size of the artifact. This is only available for successful analyses.", ) - artifact_url: Missing[str] = Field( + failure_message: Missing[str] = Field( default=UNSET, - description="The URL of the artifact. This is only available for successful analyses.", + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", ) -model_rebuild(CodeScanningVariantAnalysisRepoTask) +model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) -__all__ = ("CodeScanningVariantAnalysisRepoTask",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0254.py b/githubkit/versions/v2022_11_28/models/group_0254.py index 3bf43d51a..c84e20d46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0254.py +++ b/githubkit/versions/v2022_11_28/models/group_0254.py @@ -9,65 +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_0251 import CodeScanningVariantAnalysisSkippedRepoGroup -class CodeScanningDefaultSetup(GitHubModel): - """CodeScanningDefaultSetup +class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositories - Configuration for code scanning default setup. + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - 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." - ) - threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( - default=UNSET, - description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", - ) - updated_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Timestamp of latest configuration update." + 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." ) - schedule: Missing[Union[None, Literal["weekly"]]] = Field( - default=UNSET, description="The frequency of the periodic 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." ) -model_rebuild(CodeScanningDefaultSetup) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) -__all__ = ("CodeScanningDefaultSetup",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositories", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0255.py b/githubkit/versions/v2022_11_28/models/group_0255.py index 05b0b46a3..3bc1d511c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0255.py +++ b/githubkit/versions/v2022_11_28/models/group_0255.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,47 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0032 import SimpleRepository -class CodeScanningDefaultSetupUpdate(GitHubModel): - """CodeScanningDefaultSetupUpdate - Configuration for code scanning default setup. - """ +class CodeScanningVariantAnalysisRepoTask(GitHubModel): + """CodeScanningVariantAnalysisRepoTask""" - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, description="The desired state of code scanning default setup." + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." ) - runner_type: Missing[Literal["standard", "labeled"]] = Field( - default=UNSET, description="Runner type to be used." + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." ) - runner_label: Missing[Union[str, None]] = Field( + artifact_size_in_bytes: Missing[int] = Field( default=UNSET, - description="Runner label to be used if the runner type is labeled.", + description="The size of the artifact. This is only available for successful analyses.", ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + 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.", ) - threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( + database_commit_sha: Missing[str] = Field( default=UNSET, - description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", - ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] - ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") - - -model_rebuild(CodeScanningDefaultSetupUpdate) - -__all__ = ("CodeScanningDefaultSetupUpdate",) + 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(CodeScanningVariantAnalysisRepoTask) + +__all__ = ("CodeScanningVariantAnalysisRepoTask",) diff --git a/githubkit/versions/v2022_11_28/models/group_0256.py b/githubkit/versions/v2022_11_28/models/group_0256.py index 4bb252bf7..3bf43d51a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0256.py +++ b/githubkit/versions/v2022_11_28/models/group_0256.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,22 +19,55 @@ from githubkit.utils import UNSET -class CodeScanningDefaultSetupUpdateResponse(GitHubModel): - """CodeScanningDefaultSetupUpdateResponse +class CodeScanningDefaultSetup(GitHubModel): + """CodeScanningDefaultSetup - 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. + Configuration for code scanning default setup. """ - run_id: Missing[int] = Field( - default=UNSET, description="ID of the corresponding run." + 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." + ) + threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( + default=UNSET, + description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", + ) + updated_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Timestamp of latest configuration update." ) - run_url: Missing[str] = Field( - default=UNSET, description="URL of the corresponding run." + schedule: Missing[Union[None, Literal["weekly"]]] = Field( + default=UNSET, description="The frequency of the periodic analysis." ) -model_rebuild(CodeScanningDefaultSetupUpdateResponse) +model_rebuild(CodeScanningDefaultSetup) -__all__ = ("CodeScanningDefaultSetupUpdateResponse",) +__all__ = ("CodeScanningDefaultSetup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0257.py b/githubkit/versions/v2022_11_28/models/group_0257.py index a7508c529..05b0b46a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0257.py +++ b/githubkit/versions/v2022_11_28/models/group_0257.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,16 +18,46 @@ from githubkit.utils import UNSET -class CodeScanningSarifsReceipt(GitHubModel): - """CodeScanningSarifsReceipt""" +class CodeScanningDefaultSetupUpdate(GitHubModel): + """CodeScanningDefaultSetupUpdate + + Configuration for code scanning default setup. + """ - id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") - url: Missing[str] = Field( + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, description="The desired state of code scanning default setup." + ) + runner_type: Missing[Literal["standard", "labeled"]] = Field( + default=UNSET, description="Runner type to be used." + ) + runner_label: Missing[Union[str, None]] = Field( default=UNSET, - description="The REST API URL for checking the status of the upload.", + description="Runner label to be used if the runner type is labeled.", ) - - -model_rebuild(CodeScanningSarifsReceipt) - -__all__ = ("CodeScanningSarifsReceipt",) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." + ) + threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( + default=UNSET, + description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", + ) + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") + + +model_rebuild(CodeScanningDefaultSetupUpdate) + +__all__ = ("CodeScanningDefaultSetupUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0258.py b/githubkit/versions/v2022_11_28/models/group_0258.py index 525bd5e50..4bb252bf7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0258.py +++ b/githubkit/versions/v2022_11_28/models/group_0258.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,23 +16,22 @@ from githubkit.utils import UNSET -class CodeScanningSarifsStatus(GitHubModel): - """CodeScanningSarifsStatus""" +class CodeScanningDefaultSetupUpdateResponse(GitHubModel): + """CodeScanningDefaultSetupUpdateResponse - 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.", + 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: Missing[int] = Field( + default=UNSET, description="ID of the corresponding run." ) - errors: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="Any errors that ocurred during processing of the delivery.", + run_url: Missing[str] = Field( + default=UNSET, description="URL of the corresponding run." ) -model_rebuild(CodeScanningSarifsStatus) +model_rebuild(CodeScanningDefaultSetupUpdateResponse) -__all__ = ("CodeScanningSarifsStatus",) +__all__ = ("CodeScanningDefaultSetupUpdateResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0259.py b/githubkit/versions/v2022_11_28/models/group_0259.py index a6444ae1e..a7508c529 100644 --- a/githubkit/versions/v2022_11_28/models/group_0259.py +++ b/githubkit/versions/v2022_11_28/models/group_0259.py @@ -9,43 +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_0028 import CodeSecurityConfiguration - -class CodeSecurityConfigurationForRepository(GitHubModel): - """CodeSecurityConfigurationForRepository +class CodeScanningSarifsReceipt(GitHubModel): + """CodeScanningSarifsReceipt""" - Code security configuration associated with a repository and attachment status - """ - - status: Missing[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] = Field( + id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") + url: Missing[str] = 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" + description="The REST API URL for checking the status of the upload.", ) -model_rebuild(CodeSecurityConfigurationForRepository) +model_rebuild(CodeScanningSarifsReceipt) -__all__ = ("CodeSecurityConfigurationForRepository",) +__all__ = ("CodeScanningSarifsReceipt",) diff --git a/githubkit/versions/v2022_11_28/models/group_0260.py b/githubkit/versions/v2022_11_28/models/group_0260.py index b356aafc8..525bd5e50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0260.py +++ b/githubkit/versions/v2022_11_28/models/group_0260.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,38 +18,23 @@ from githubkit.utils import UNSET -class CodeownersErrors(GitHubModel): - """CODEOWNERS errors +class CodeScanningSarifsStatus(GitHubModel): + """CodeScanningSarifsStatus""" - A list of errors found in a repo's CODEOWNERS file - """ - - 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." + 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.", ) - kind: str = Field(description="The type of error.") - suggestion: Missing[Union[str, None]] = Field( + analyses_url: 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="The REST API URL for getting the analyses associated with the upload.", ) - 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)." + errors: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="Any errors that ocurred during processing of the delivery.", ) - path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CodeownersErrors) -model_rebuild(CodeownersErrorsPropErrorsItems) +model_rebuild(CodeScanningSarifsStatus) -__all__ = ( - "CodeownersErrors", - "CodeownersErrorsPropErrorsItems", -) +__all__ = ("CodeScanningSarifsStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0261.py b/githubkit/versions/v2022_11_28/models/group_0261.py index de6f0cf08..a6444ae1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0261.py +++ b/githubkit/versions/v2022_11_28/models/group_0261.py @@ -9,22 +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 CodespacesPermissionsCheckForDevcontainer(GitHubModel): - """Codespaces Permissions Check +class CodeSecurityConfigurationForRepository(GitHubModel): + """CodeSecurityConfigurationForRepository - Permission check result for a given devcontainer config. + Code security configuration associated with a repository and attachment status """ - accepted: bool = Field( - description="Whether the user has accepted the permissions defined by the devcontainer config" + 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(CodespacesPermissionsCheckForDevcontainer) +model_rebuild(CodeSecurityConfigurationForRepository) -__all__ = ("CodespacesPermissionsCheckForDevcontainer",) +__all__ = ("CodeSecurityConfigurationForRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0262.py b/githubkit/versions/v2022_11_28/models/group_0262.py index 56e9d6086..b356aafc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0262.py +++ b/githubkit/versions/v2022_11_28/models/group_0262.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,34 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0061 import MinimalRepository +class CodeownersErrors(GitHubModel): + """CODEOWNERS errors -class RepositoryInvitation(GitHubModel): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. + A list of errors found in a repo's CODEOWNERS file """ - id: int = Field(description="Unique identifier of the repository invitation.") - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + 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." ) - 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." + 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.", ) - created_at: datetime = Field() - expired: Missing[bool] = Field( - default=UNSET, description="Whether or not the invitation has expired" + 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)." ) - url: str = Field(description="URL for the repository invitation") - html_url: str = Field() - node_id: str = Field() + path: str = Field(description="The path of the file where the error occured.") -model_rebuild(RepositoryInvitation) +model_rebuild(CodeownersErrors) +model_rebuild(CodeownersErrorsPropErrorsItems) -__all__ = ("RepositoryInvitation",) +__all__ = ( + "CodeownersErrors", + "CodeownersErrorsPropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0263.py b/githubkit/versions/v2022_11_28/models/group_0263.py index ba71473fc..de6f0cf08 100644 --- a/githubkit/versions/v2022_11_28/models/group_0263.py +++ b/githubkit/versions/v2022_11_28/models/group_0263.py @@ -9,73 +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 RepositoryCollaboratorPermission(GitHubModel): - """Repository Collaborator Permission +class CodespacesPermissionsCheckForDevcontainer(GitHubModel): + """Codespaces Permissions Check - Repository Collaborator Permission + Permission check result for a given devcontainer config. """ - 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() + accepted: bool = Field( + description="Whether the user has accepted the permissions defined by the devcontainer config" + ) -model_rebuild(RepositoryCollaboratorPermission) -model_rebuild(Collaborator) -model_rebuild(CollaboratorPropPermissions) +model_rebuild(CodespacesPermissionsCheckForDevcontainer) -__all__ = ( - "Collaborator", - "CollaboratorPropPermissions", - "RepositoryCollaboratorPermission", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainer",) diff --git a/githubkit/versions/v2022_11_28/models/group_0264.py b/githubkit/versions/v2022_11_28/models/group_0264.py index abe3c19d6..51eb5334b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0264.py +++ b/githubkit/versions/v2022_11_28/models/group_0264.py @@ -19,59 +19,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0044 import ReactionRollup +from .group_0063 import MinimalRepository -class CommitComment(GitHubModel): - """Commit Comment +class RepositoryInvitation(GitHubModel): + """Repository Invitation - Commit Comment + Repository invitations let you manage who you collaborate with. """ - 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() + 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() - 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.", + expired: Missing[bool] = Field( + default=UNSET, description="Whether or not the invitation has expired" ) - 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) + url: str = Field(description="URL for the repository invitation") + html_url: str = Field() + node_id: str = Field() -model_rebuild(CommitComment) -model_rebuild(TimelineCommitCommentedEvent) +model_rebuild(RepositoryInvitation) -__all__ = ( - "CommitComment", - "TimelineCommitCommentedEvent", -) +__all__ = ("RepositoryInvitation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0265.py b/githubkit/versions/v2022_11_28/models/group_0265.py index 1899117e7..ba71473fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0265.py +++ b/githubkit/versions/v2022_11_28/models/group_0265.py @@ -9,33 +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 BranchShort(GitHubModel): - """Branch Short +class RepositoryCollaboratorPermission(GitHubModel): + """Repository Collaborator Permission - Branch Short + Repository Collaborator Permission """ - name: str = Field() - commit: BranchShortPropCommit = Field() - protected: bool = Field() - + permission: str = Field() + role_name: str = Field() + user: Union[None, Collaborator] = Field() -class BranchShortPropCommit(GitHubModel): - """BranchShortPropCommit""" - sha: str = Field() - url: str = Field() +class Collaborator(GitHubModel): + """Collaborator + Collaborator + """ -model_rebuild(BranchShort) -model_rebuild(BranchShortPropCommit) + 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__ = ( - "BranchShort", - "BranchShortPropCommit", + "Collaborator", + "CollaboratorPropPermissions", + "RepositoryCollaboratorPermission", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0266.py b/githubkit/versions/v2022_11_28/models/group_0266.py index b537858f8..607904645 100644 --- a/githubkit/versions/v2022_11_28/models/group_0266.py +++ b/githubkit/versions/v2022_11_28/models/group_0266.py @@ -9,20 +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_0045 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") -class Link(GitHubModel): - """Link +class TimelineCommitCommentedEvent(GitHubModel): + """Timeline Commit Commented Event - Hypermedia Link + Timeline Commit Commented Event """ - href: str = Field() + 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(Link) +model_rebuild(CommitComment) +model_rebuild(TimelineCommitCommentedEvent) -__all__ = ("Link",) +__all__ = ( + "CommitComment", + "TimelineCommitCommentedEvent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0267.py b/githubkit/versions/v2022_11_28/models/group_0267.py index 48491e4bb..1899117e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0267.py +++ b/githubkit/versions/v2022_11_28/models/group_0267.py @@ -9,33 +9,33 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser - -class AutoMerge(GitHubModel): - """Auto merge +class BranchShort(GitHubModel): + """Branch Short - The status of auto merging a pull request. + Branch Short """ - 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." - ) + name: str = Field() + commit: BranchShortPropCommit = Field() + protected: bool = Field() + + +class BranchShortPropCommit(GitHubModel): + """BranchShortPropCommit""" + + sha: str = Field() + url: str = Field() -model_rebuild(AutoMerge) +model_rebuild(BranchShort) +model_rebuild(BranchShortPropCommit) -__all__ = ("AutoMerge",) +__all__ = ( + "BranchShort", + "BranchShortPropCommit", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0268.py b/githubkit/versions/v2022_11_28/models/group_0268.py index ea622022b..b537858f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0268.py +++ b/githubkit/versions/v2022_11_28/models/group_0268.py @@ -9,100 +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 - -from .group_0003 import SimpleUser -from .group_0042 import Milestone -from .group_0084 import Team -from .group_0267 import AutoMerge -from .group_0269 import PullRequestSimplePropBase, PullRequestSimplePropHead -from .group_0270 import PullRequestSimplePropLinks -class PullRequestSimple(GitHubModel): - """Pull Request Simple +class Link(GitHubModel): + """Link - Pull Request Simple + Hypermedia Link """ - 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.", - ) - - -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() + href: str = Field() -model_rebuild(PullRequestSimple) -model_rebuild(PullRequestSimplePropLabelsItems) +model_rebuild(Link) -__all__ = ( - "PullRequestSimple", - "PullRequestSimplePropLabelsItems", -) +__all__ = ("Link",) diff --git a/githubkit/versions/v2022_11_28/models/group_0269.py b/githubkit/versions/v2022_11_28/models/group_0269.py index f7a7c23e6..48491e4bb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0269.py +++ b/githubkit/versions/v2022_11_28/models/group_0269.py @@ -9,40 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from .group_0003 import SimpleUser -from .group_0020 import Repository -class PullRequestSimplePropHead(GitHubModel): - """PullRequestSimplePropHead""" +class AutoMerge(GitHubModel): + """Auto merge - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() + The status of auto merging a pull request. + """ + 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." + ) -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(AutoMerge) - -model_rebuild(PullRequestSimplePropHead) -model_rebuild(PullRequestSimplePropBase) - -__all__ = ( - "PullRequestSimplePropBase", - "PullRequestSimplePropHead", -) +__all__ = ("AutoMerge",) diff --git a/githubkit/versions/v2022_11_28/models/group_0270.py b/githubkit/versions/v2022_11_28/models/group_0270.py index 94fa7c3c2..f09bb7f5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0270.py +++ b/githubkit/versions/v2022_11_28/models/group_0270.py @@ -9,26 +9,100 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0043 import Milestone +from .group_0086 import Team +from .group_0269 import AutoMerge +from .group_0271 import PullRequestSimplePropBase, PullRequestSimplePropHead +from .group_0272 import PullRequestSimplePropLinks + + +class PullRequestSimple(GitHubModel): + """Pull Request Simple + + Pull Request Simple + """ -from .group_0266 import Link + 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.", + ) -class PullRequestSimplePropLinks(GitHubModel): - """PullRequestSimplePropLinks""" +class PullRequestSimplePropLabelsItems(GitHubModel): + """PullRequestSimplePropLabelsItems""" - 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: 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(PullRequestSimplePropLinks) +model_rebuild(PullRequestSimple) +model_rebuild(PullRequestSimplePropLabelsItems) -__all__ = ("PullRequestSimplePropLinks",) +__all__ = ( + "PullRequestSimple", + "PullRequestSimplePropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0271.py b/githubkit/versions/v2022_11_28/models/group_0271.py index 24078af6a..f7a7c23e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0271.py +++ b/githubkit/versions/v2022_11_28/models/group_0271.py @@ -9,55 +9,40 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0061 import MinimalRepository +from .group_0003 import SimpleUser +from .group_0020 import Repository -class CombinedCommitStatus(GitHubModel): - """Combined Commit Status +class PullRequestSimplePropHead(GitHubModel): + """PullRequestSimplePropHead""" - Combined Commit Status - """ - - state: str = Field() - statuses: list[SimpleCommitStatus] = Field() + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() sha: str = Field() - total_count: int = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - commit_url: str = Field() - url: str = Field() + user: Union[None, SimpleUser] = Field() -class SimpleCommitStatus(GitHubModel): - """Simple Commit Status""" +class PullRequestSimplePropBase(GitHubModel): + """PullRequestSimplePropBase""" - 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() + 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(CombinedCommitStatus) -model_rebuild(SimpleCommitStatus) +model_rebuild(PullRequestSimplePropHead) +model_rebuild(PullRequestSimplePropBase) __all__ = ( - "CombinedCommitStatus", - "SimpleCommitStatus", + "PullRequestSimplePropBase", + "PullRequestSimplePropHead", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0272.py b/githubkit/versions/v2022_11_28/models/group_0272.py index d233ecff0..21a2cee16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0272.py +++ b/githubkit/versions/v2022_11_28/models/group_0272.py @@ -9,34 +9,26 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser - +from .group_0268 import Link -class Status(GitHubModel): - """Status - The status of a commit. - """ +class PullRequestSimplePropLinks(GitHubModel): + """PullRequestSimplePropLinks""" - 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() + 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(Status) +model_rebuild(PullRequestSimplePropLinks) -__all__ = ("Status",) +__all__ = ("PullRequestSimplePropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0273.py b/githubkit/versions/v2022_11_28/models/group_0273.py index 1282b54d5..f1563117d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0273.py +++ b/githubkit/versions/v2022_11_28/models/group_0273.py @@ -18,49 +18,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0019 import LicenseSimple -from .group_0123 import CodeOfConductSimple +from .group_0063 import MinimalRepository -class CommunityProfilePropFiles(GitHubModel): - """CommunityProfilePropFiles""" +class CombinedCommitStatus(GitHubModel): + """Combined Commit Status - 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""" + Combined Commit Status + """ + 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() - html_url: str = Field() -class CommunityProfile(GitHubModel): - """Community Profile +class SimpleCommitStatus(GitHubModel): + """Simple Commit Status""" - Community Profile - """ - - health_percentage: int = Field() description: Union[str, None] = Field() - documentation: Union[str, None] = Field() - files: CommunityProfilePropFiles = Field() - updated_at: Union[datetime, None] = Field() - content_reports_enabled: Missing[bool] = Field(default=UNSET) + 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(CommunityProfilePropFiles) -model_rebuild(CommunityHealthFile) -model_rebuild(CommunityProfile) +model_rebuild(CombinedCommitStatus) +model_rebuild(SimpleCommitStatus) __all__ = ( - "CommunityHealthFile", - "CommunityProfile", - "CommunityProfilePropFiles", + "CombinedCommitStatus", + "SimpleCommitStatus", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0274.py b/githubkit/versions/v2022_11_28/models/group_0274.py index 1de2e6135..d233ecff0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0274.py +++ b/githubkit/versions/v2022_11_28/models/group_0274.py @@ -9,39 +9,34 @@ 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_0228 import DiffEntry -from .group_0229 import Commit +from .group_0003 import SimpleUser -class CommitComparison(GitHubModel): - """Commit Comparison +class Status(GitHubModel): + """Status - Commit Comparison + The status of a commit. """ 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(CommitComparison) - -__all__ = ("CommitComparison",) + 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) + +__all__ = ("Status",) diff --git a/githubkit/versions/v2022_11_28/models/group_0275.py b/githubkit/versions/v2022_11_28/models/group_0275.py index 95b9b271c..c071fb5c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0275.py +++ b/githubkit/versions/v2022_11_28/models/group_0275.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -17,67 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0019 import LicenseSimple +from .group_0125 import CodeOfConductSimple -class ContentTree(GitHubModel): - """Content Tree - - Content Tree - """ - - 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) - encoding: Missing[str] = Field(default=UNSET) - links: ContentTreePropLinks = Field(alias="_links") +class CommunityProfilePropFiles(GitHubModel): + """CommunityProfilePropFiles""" -class ContentTreePropLinks(GitHubModel): - """ContentTreePropLinks""" + 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() - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") +class CommunityHealthFile(GitHubModel): + """Community Health File""" -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") + html_url: str = Field() + +class CommunityProfile(GitHubModel): + """Community Profile -class ContentTreePropEntriesItemsPropLinks(GitHubModel): - """ContentTreePropEntriesItemsPropLinks""" + 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(ContentTree) -model_rebuild(ContentTreePropLinks) -model_rebuild(ContentTreePropEntriesItems) -model_rebuild(ContentTreePropEntriesItemsPropLinks) +model_rebuild(CommunityProfilePropFiles) +model_rebuild(CommunityHealthFile) +model_rebuild(CommunityProfile) __all__ = ( - "ContentTree", - "ContentTreePropEntriesItems", - "ContentTreePropEntriesItemsPropLinks", - "ContentTreePropLinks", + "CommunityHealthFile", + "CommunityProfile", + "CommunityProfilePropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0276.py b/githubkit/versions/v2022_11_28/models/group_0276.py index b3b3e9366..67b459595 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 Literal, Union +from typing import Literal from pydantic import Field @@ -17,35 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0230 import DiffEntry +from .group_0231 import Commit -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""" +class CommitComparison(GitHubModel): + """Commit Comparison - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + Commit Comparison + """ - -model_rebuild(ContentDirectoryItems) -model_rebuild(ContentDirectoryItemsPropLinks) - -__all__ = ( - "ContentDirectoryItems", - "ContentDirectoryItemsPropLinks", -) + 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(CommitComparison) + +__all__ = ("CommitComparison",) diff --git a/githubkit/versions/v2022_11_28/models/group_0277.py b/githubkit/versions/v2022_11_28/models/group_0277.py index 15cd134fc..95b9b271c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0277.py +++ b/githubkit/versions/v2022_11_28/models/group_0277.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,40 +18,66 @@ from githubkit.utils import UNSET -class ContentFile(GitHubModel): - """Content File +class ContentTree(GitHubModel): + """Content Tree - Content File + Content Tree """ - type: Literal["file"] = Field() - encoding: str = Field() + type: str = Field() size: int = Field() name: str = Field() path: str = Field() - content: str = Field() sha: str = Field() + content: Missing[str] = Field(default=UNSET) url: str = Field() git_url: Union[str, None] = Field() html_url: Union[str, None] = Field() download_url: Union[str, None] = Field() - links: ContentFilePropLinks = Field(alias="_links") - target: Missing[str] = Field(default=UNSET) - submodule_git_url: Missing[str] = Field(default=UNSET) + entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) + encoding: Missing[str] = Field(default=UNSET) + links: ContentTreePropLinks = Field(alias="_links") -class ContentFilePropLinks(GitHubModel): - """ContentFilePropLinks""" +class ContentTreePropLinks(GitHubModel): + """ContentTreePropLinks""" git: Union[str, None] = Field() html: Union[str, None] = Field() self_: str = Field(alias="self") -model_rebuild(ContentFile) -model_rebuild(ContentFilePropLinks) +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__ = ( - "ContentFile", - "ContentFilePropLinks", + "ContentTree", + "ContentTreePropEntriesItems", + "ContentTreePropEntriesItemsPropLinks", + "ContentTreePropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0278.py b/githubkit/versions/v2022_11_28/models/group_0278.py index bc90348f6..b3b3e9366 100644 --- a/githubkit/versions/v2022_11_28/models/group_0278.py +++ b/githubkit/versions/v2022_11_28/models/group_0278.py @@ -14,39 +14,38 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ContentSymlink(GitHubModel): - """Symlink Content +class ContentDirectoryItems(GitHubModel): + """ContentDirectoryItems""" - An object describing a symlink - """ - - type: Literal["symlink"] = Field() - target: str = Field() + 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: ContentSymlinkPropLinks = Field(alias="_links") + links: ContentDirectoryItemsPropLinks = Field(alias="_links") -class ContentSymlinkPropLinks(GitHubModel): - """ContentSymlinkPropLinks""" +class ContentDirectoryItemsPropLinks(GitHubModel): + """ContentDirectoryItemsPropLinks""" git: Union[str, None] = Field() html: Union[str, None] = Field() self_: str = Field(alias="self") -model_rebuild(ContentSymlink) -model_rebuild(ContentSymlinkPropLinks) +model_rebuild(ContentDirectoryItems) +model_rebuild(ContentDirectoryItemsPropLinks) __all__ = ( - "ContentSymlink", - "ContentSymlinkPropLinks", + "ContentDirectoryItems", + "ContentDirectoryItemsPropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0279.py b/githubkit/versions/v2022_11_28/models/group_0279.py index 99580ae80..15cd134fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0279.py +++ b/githubkit/versions/v2022_11_28/models/group_0279.py @@ -14,39 +14,44 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ContentSubmodule(GitHubModel): - """Submodule Content +class ContentFile(GitHubModel): + """Content File - An object describing a submodule + Content File """ - type: Literal["submodule"] = Field() - submodule_git_url: str = Field() + 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: ContentSubmodulePropLinks = Field(alias="_links") + links: ContentFilePropLinks = Field(alias="_links") + target: Missing[str] = Field(default=UNSET) + submodule_git_url: Missing[str] = Field(default=UNSET) -class ContentSubmodulePropLinks(GitHubModel): - """ContentSubmodulePropLinks""" +class ContentFilePropLinks(GitHubModel): + """ContentFilePropLinks""" git: Union[str, None] = Field() html: Union[str, None] = Field() self_: str = Field(alias="self") -model_rebuild(ContentSubmodule) -model_rebuild(ContentSubmodulePropLinks) +model_rebuild(ContentFile) +model_rebuild(ContentFilePropLinks) __all__ = ( - "ContentSubmodule", - "ContentSubmodulePropLinks", + "ContentFile", + "ContentFilePropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0280.py b/githubkit/versions/v2022_11_28/models/group_0280.py index 446b6612c..bc90348f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0280.py +++ b/githubkit/versions/v2022_11_28/models/group_0280.py @@ -9,124 +9,44 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class FileCommit(GitHubModel): - """File Commit +class ContentSymlink(GitHubModel): + """Symlink Content - File Commit + An object describing a symlink """ - content: Union[FileCommitPropContent, None] = Field() - commit: FileCommitPropCommit = Field() + 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 FileCommitPropContent(GitHubModel): - """FileCommitPropContent""" +class ContentSymlinkPropLinks(GitHubModel): + """ContentSymlinkPropLinks""" - 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" - ) + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -class FileCommitPropContentPropLinks(GitHubModel): - """FileCommitPropContentPropLinks""" - - self_: Missing[str] = Field(default=UNSET, alias="self") - git: Missing[str] = Field(default=UNSET) - html: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommit(GitHubModel): - """FileCommitPropCommit""" - - sha: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) - committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) - parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) - verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) - - -class FileCommitPropCommitPropAuthor(GitHubModel): - """FileCommitPropCommitPropAuthor""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropCommitter(GitHubModel): - """FileCommitPropCommitPropCommitter""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropTree(GitHubModel): - """FileCommitPropCommitPropTree""" - - url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropParentsItems(GitHubModel): - """FileCommitPropCommitPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropVerification(GitHubModel): - """FileCommitPropCommitPropVerification""" - - verified: Missing[bool] = Field(default=UNSET) - reason: Missing[str] = Field(default=UNSET) - signature: Missing[Union[str, None]] = Field(default=UNSET) - payload: Missing[Union[str, None]] = Field(default=UNSET) - verified_at: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(FileCommit) -model_rebuild(FileCommitPropContent) -model_rebuild(FileCommitPropContentPropLinks) -model_rebuild(FileCommitPropCommit) -model_rebuild(FileCommitPropCommitPropAuthor) -model_rebuild(FileCommitPropCommitPropCommitter) -model_rebuild(FileCommitPropCommitPropTree) -model_rebuild(FileCommitPropCommitPropParentsItems) -model_rebuild(FileCommitPropCommitPropVerification) +model_rebuild(ContentSymlink) +model_rebuild(ContentSymlinkPropLinks) __all__ = ( - "FileCommit", - "FileCommitPropCommit", - "FileCommitPropCommitPropAuthor", - "FileCommitPropCommitPropCommitter", - "FileCommitPropCommitPropParentsItems", - "FileCommitPropCommitPropTree", - "FileCommitPropCommitPropVerification", - "FileCommitPropContent", - "FileCommitPropContentPropLinks", + "ContentSymlink", + "ContentSymlinkPropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0281.py b/githubkit/versions/v2022_11_28/models/group_0281.py index 97c97b542..99580ae80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0281.py +++ b/githubkit/versions/v2022_11_28/models/group_0281.py @@ -9,67 +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 RepositoryRuleViolationError(GitHubModel): - """RepositoryRuleViolationError +class ContentSubmodule(GitHubModel): + """Submodule Content - Repository rule violation was detected + An object describing a submodule """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) - - -class RepositoryRuleViolationErrorPropMetadata(GitHubModel): - """RepositoryRuleViolationErrorPropMetadata""" + type: Literal["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") - secret_scanning: Missing[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanning - ] = Field(default=UNSET) +class ContentSubmodulePropLinks(GitHubModel): + """ContentSubmodulePropLinks""" -class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") - bypass_placeholders: Missing[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems - ] - ] = Field(default=UNSET) - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( - GitHubModel -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ - - placeholder_id: Missing[str] = Field( - default=UNSET, - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", - ) - token_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(RepositoryRuleViolationError) -model_rebuild(RepositoryRuleViolationErrorPropMetadata) -model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) -model_rebuild( - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems -) +model_rebuild(ContentSubmodule) +model_rebuild(ContentSubmodulePropLinks) __all__ = ( - "RepositoryRuleViolationError", - "RepositoryRuleViolationErrorPropMetadata", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", + "ContentSubmodule", + "ContentSubmodulePropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0282.py b/githubkit/versions/v2022_11_28/models/group_0282.py index fcc5e341f..446b6612c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0282.py +++ b/githubkit/versions/v2022_11_28/models/group_0282.py @@ -18,36 +18,115 @@ from githubkit.utils import UNSET -class Contributor(GitHubModel): - """Contributor +class FileCommit(GitHubModel): + """File Commit - Contributor + File Commit """ - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) + 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) - 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() + 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) - user_view_type: 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(Contributor) +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__ = ("Contributor",) +__all__ = ( + "FileCommit", + "FileCommitPropCommit", + "FileCommitPropCommitPropAuthor", + "FileCommitPropCommitPropCommitter", + "FileCommitPropCommitPropParentsItems", + "FileCommitPropCommitPropTree", + "FileCommitPropCommitPropVerification", + "FileCommitPropContent", + "FileCommitPropContentPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0283.py b/githubkit/versions/v2022_11_28/models/group_0283.py index 0d4a7fad7..97c97b542 100644 --- a/githubkit/versions/v2022_11_28/models/group_0283.py +++ b/githubkit/versions/v2022_11_28/models/group_0283.py @@ -9,70 +9,67 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0034 import DependabotAlertSecurityVulnerability -from .group_0035 import DependabotAlertSecurityAdvisory -from .group_0284 import DependabotAlertPropDependency +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 DependabotAlert(GitHubModel): - """DependabotAlert - A Dependabot alert. +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( + GitHubModel +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items """ - 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( + placeholder_id: Missing[str] = Field( default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + 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(DependabotAlert) +model_rebuild(RepositoryRuleViolationError) +model_rebuild(RepositoryRuleViolationErrorPropMetadata) +model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) +model_rebuild( + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems +) -__all__ = ("DependabotAlert",) +__all__ = ( + "RepositoryRuleViolationError", + "RepositoryRuleViolationErrorPropMetadata", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0284.py b/githubkit/versions/v2022_11_28/models/group_0284.py index 07187e12b..fcc5e341f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0284.py +++ b/githubkit/versions/v2022_11_28/models/group_0284.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,33 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0033 import DependabotAlertPackage +class Contributor(GitHubModel): + """Contributor -class DependabotAlertPropDependency(GitHubModel): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + Contributor """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." - ) - manifest_path: Missing[str] = Field( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", - ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." - ) - relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = ( - Field( - default=UNSET, - description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', - ) - ) - - -model_rebuild(DependabotAlertPropDependency) - -__all__ = ("DependabotAlertPropDependency",) + 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_0285.py b/githubkit/versions/v2022_11_28/models/group_0285.py index 9f05df69c..2c56dadb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0285.py +++ b/githubkit/versions/v2022_11_28/models/group_0285.py @@ -9,43 +9,70 @@ from __future__ import annotations -from typing import Literal, 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_0035 import DependabotAlertSecurityVulnerability +from .group_0036 import DependabotAlertSecurityAdvisory +from .group_0286 import DependabotAlertPropDependency -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 DependabotAlert(GitHubModel): + """DependabotAlert -class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" + A Dependabot alert. + """ - severity: str = Field() - advisory_ghsa_id: str = Field() - advisory_summary: str = Field() - advisory_url: str = 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: 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(DependencyGraphDiffItems) -model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) +model_rebuild(DependabotAlert) -__all__ = ( - "DependencyGraphDiffItems", - "DependencyGraphDiffItemsPropVulnerabilitiesItems", -) +__all__ = ("DependabotAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0286.py b/githubkit/versions/v2022_11_28/models/group_0286.py index b7506354d..639dbca9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0286.py +++ b/githubkit/versions/v2022_11_28/models/group_0286.py @@ -9,160 +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_0034 import DependabotAlertPackage -class DependencyGraphSpdxSbom(GitHubModel): - """Dependency Graph SPDX SBOM - - A schema for the SPDX JSON format returned by the Dependency Graph. - """ - - 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 DependabotAlertPropDependency(GitHubModel): + """DependabotAlertPropDependency -class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + Details for the vulnerable dependency. + """ - 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.", + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - license_declared: Missing[str] = Field( + manifest_path: 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.", + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - reference_locator: str = Field( - alias="referenceLocator", - description="A locator for the particular external resource this reference refers to.", + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) - reference_type: str = Field( - alias="referenceType", - description="The category of reference to an external resource this reference refers to.", + relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = ( + Field( + default=UNSET, + description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', + ) ) -model_rebuild(DependencyGraphSpdxSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) +model_rebuild(DependabotAlertPropDependency) -__all__ = ( - "DependencyGraphSpdxSbom", - "DependencyGraphSpdxSbomPropSbom", - "DependencyGraphSpdxSbomPropSbomPropCreationInfo", - "DependencyGraphSpdxSbomPropSbomPropPackagesItems", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", -) +__all__ = ("DependabotAlertPropDependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0287.py b/githubkit/versions/v2022_11_28/models/group_0287.py index ffac1fb50..9f05df69c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0287.py +++ b/githubkit/versions/v2022_11_28/models/group_0287.py @@ -9,17 +9,43 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Literal, Union +from pydantic import Field -class Metadata(ExtraGitHubModel): - """metadata +from githubkit.compat import GitHubModel, model_rebuild - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class DependencyGraphDiffItems(GitHubModel): + """DependencyGraphDiffItems""" -model_rebuild(Metadata) + 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." + ) -__all__ = ("Metadata",) + +class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" + + severity: str = Field() + advisory_ghsa_id: str = Field() + advisory_summary: str = Field() + advisory_url: str = Field() + + +model_rebuild(DependencyGraphDiffItems) +model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) + +__all__ = ( + "DependencyGraphDiffItems", + "DependencyGraphDiffItemsPropVulnerabilitiesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0288.py b/githubkit/versions/v2022_11_28/models/group_0288.py index a1966631d..b7506354d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0288.py +++ b/githubkit/versions/v2022_11_28/models/group_0288.py @@ -9,44 +9,160 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0287 import Metadata + +class DependencyGraphSpdxSbom(GitHubModel): + """Dependency Graph SPDX SBOM + + A schema for the SPDX JSON format returned by the Dependency Graph. + """ + + 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 Dependency(GitHubModel): - """Dependency""" +class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - package_url: Missing[str] = Field( - pattern="^pkg", + spdxid: Missing[str] = Field( default=UNSET, - description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", + alias="SPDXID", + description="A unique SPDX identifier for the package.", ) - metadata: Missing[Metadata] = Field( + name: Missing[str] = Field(default=UNSET, description="The name of the package.") + version_info: Missing[str] = Field( default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + alias="versionInfo", + description="The version of the package. If the package does not have an exact version specified,\na version range is given.", ) - relationship: Missing[Literal["direct", "indirect"]] = Field( + download_location: Missing[str] = Field( default=UNSET, - description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + alias="downloadLocation", + description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", ) - scope: Missing[Literal["runtime", "development"]] = Field( + files_analyzed: Missing[bool] = 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.", + alias="filesAnalyzed", + description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", ) - dependencies: Missing[list[str]] = Field( + license_concluded: Missing[str] = Field( default=UNSET, - description="Array of package-url (PURLs) of direct child dependencies.", + 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(Dependency) +model_rebuild(DependencyGraphSpdxSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) -__all__ = ("Dependency",) +__all__ = ( + "DependencyGraphSpdxSbom", + "DependencyGraphSpdxSbomPropSbom", + "DependencyGraphSpdxSbomPropSbomPropCreationInfo", + "DependencyGraphSpdxSbomPropSbomPropPackagesItems", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0289.py b/githubkit/versions/v2022_11_28/models/group_0289.py index 2b9a7665e..ffac1fb50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0289.py +++ b/githubkit/versions/v2022_11_28/models/group_0289.py @@ -9,52 +9,17 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0287 import Metadata +class Metadata(ExtraGitHubModel): + """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""" - - 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. + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. """ -model_rebuild(Manifest) -model_rebuild(ManifestPropFile) -model_rebuild(ManifestPropResolved) +model_rebuild(Metadata) -__all__ = ( - "Manifest", - "ManifestPropFile", - "ManifestPropResolved", -) +__all__ = ("Metadata",) diff --git a/githubkit/versions/v2022_11_28/models/group_0290.py b/githubkit/versions/v2022_11_28/models/group_0290.py index 334abec72..947ae2bff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0290.py +++ b/githubkit/versions/v2022_11_28/models/group_0290.py @@ -9,88 +9,44 @@ from __future__ import annotations -from datetime import datetime +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_0287 import Metadata +from .group_0289 import Metadata -class Snapshot(GitHubModel): - """snapshot +class Dependency(GitHubModel): + """Dependency""" - 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." + 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.", ) - manifests: Missing[SnapshotPropManifests] = Field( + relationship: Missing[Literal["direct", "indirect"]] = 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.", + description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another 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." + 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.", ) - 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(Dependency) -__all__ = ( - "Snapshot", - "SnapshotPropDetector", - "SnapshotPropJob", - "SnapshotPropManifests", -) +__all__ = ("Dependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0291.py b/githubkit/versions/v2022_11_28/models/group_0291.py index 38a74a74a..e5abd883b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0291.py +++ b/githubkit/versions/v2022_11_28/models/group_0291.py @@ -9,58 +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.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration - +from .group_0289 import Metadata -class DeploymentStatus(GitHubModel): - """Deployment Status - The status of a deployment. - """ +class Manifest(GitHubModel): + """Manifest""" - 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( + name: str = Field(description="The name of the manifest.") + file: Missing[ManifestPropFile] = Field(default=UNSET) + metadata: Missing[Metadata] = Field( default=UNSET, - description="The environment of the deployment that the status is for.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - target_url: str = Field( - default="", - description="Closing down notice: the URL to associate with this status.", + resolved: Missing[ManifestPropResolved] = Field( + default=UNSET, description="A collection of resolved package dependencies." ) - 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 + + +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.", ) -model_rebuild(DeploymentStatus) +class ManifestPropResolved(ExtraGitHubModel): + """ManifestPropResolved + + A collection of resolved package dependencies. + """ + + +model_rebuild(Manifest) +model_rebuild(ManifestPropFile) +model_rebuild(ManifestPropResolved) -__all__ = ("DeploymentStatus",) +__all__ = ( + "Manifest", + "ManifestPropFile", + "ManifestPropResolved", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0292.py b/githubkit/versions/v2022_11_28/models/group_0292.py index 2969bea8b..6f0067fef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0292.py +++ b/githubkit/versions/v2022_11_28/models/group_0292.py @@ -9,26 +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_0289 import Metadata -class DeploymentBranchPolicySettings(GitHubModel): - """DeploymentBranchPolicySettings +class Snapshot(GitHubModel): + """snapshot - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. + Create a new snapshot of a repository's dependencies. """ - 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`." + 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." ) - 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`." + 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(DeploymentBranchPolicySettings) +model_rebuild(Snapshot) +model_rebuild(SnapshotPropJob) +model_rebuild(SnapshotPropDetector) +model_rebuild(SnapshotPropManifests) -__all__ = ("DeploymentBranchPolicySettings",) +__all__ = ( + "Snapshot", + "SnapshotPropDetector", + "SnapshotPropJob", + "SnapshotPropManifests", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0293.py b/githubkit/versions/v2022_11_28/models/group_0293.py index 099d9ff35..38a74a74a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0293.py +++ b/githubkit/versions/v2022_11_28/models/group_0293.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,84 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0292 import DeploymentBranchPolicySettings -from .group_0294 import EnvironmentPropProtectionRulesItemsAnyof1 +from .group_0003 import SimpleUser +from .group_0010 import Integration -class Environment(GitHubModel): - """Environment +class DeploymentStatus(GitHubModel): + """Deployment Status - Details of a deployment environment + The status of a deployment. """ - 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." + 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." ) - protection_rules: Missing[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0, - EnvironmentPropProtectionRulesItemsAnyof1, - EnvironmentPropProtectionRulesItemsAnyof2, - ] - ] - ] = Field( + environment: Missing[str] = Field( default=UNSET, - description="Built-in deployment protection rules for the environment.", + description="The environment of the deployment that the status is 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`.", - ) + target_url: str = Field( + default="", + description="Closing down notice: the URL to associate with this status.", ) - - -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).", + 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." ) - - -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" + 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 ) - environments: Missing[list[Environment]] = Field(default=UNSET) -model_rebuild(Environment) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) -model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) +model_rebuild(DeploymentStatus) -__all__ = ( - "Environment", - "EnvironmentPropProtectionRulesItemsAnyof0", - "EnvironmentPropProtectionRulesItemsAnyof2", - "ReposOwnerRepoEnvironmentsGetResponse200", -) +__all__ = ("DeploymentStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0294.py b/githubkit/versions/v2022_11_28/models/group_0294.py index 9374acfec..2969bea8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0294.py +++ b/githubkit/versions/v2022_11_28/models/group_0294.py @@ -12,30 +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_0295 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems +class DeploymentBranchPolicySettings(GitHubModel): + """DeploymentBranchPolicySettings -class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1""" + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ - 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.", + protected_branches: bool = Field( + description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." ) - type: 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.", + 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(EnvironmentPropProtectionRulesItemsAnyof1) +model_rebuild(DeploymentBranchPolicySettings) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) +__all__ = ("DeploymentBranchPolicySettings",) diff --git a/githubkit/versions/v2022_11_28/models/group_0295.py b/githubkit/versions/v2022_11_28/models/group_0295.py index 77c5e09b1..4670bb0ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0295.py +++ b/githubkit/versions/v2022_11_28/models/group_0295.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,19 +18,84 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0084 import Team +from .group_0294 import DeploymentBranchPolicySettings +from .group_0296 import EnvironmentPropProtectionRulesItemsAnyof1 -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class Environment(GitHubModel): + """Environment - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + Details of a deployment environment + """ + + id: int = Field(description="The id of the environment.") + node_id: str = Field() + name: str = Field(description="The name of the environment.") + url: str = Field() + html_url: str = Field() + created_at: datetime = Field( + description="The time that the environment was created, in ISO 8601 format." + ) + updated_at: datetime = Field( + description="The time that the environment was last updated, in ISO 8601 format." + ) + protection_rules: Missing[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0, + EnvironmentPropProtectionRulesItemsAnyof1, + EnvironmentPropProtectionRulesItemsAnyof2, + ] + ] + ] = Field( + default=UNSET, + description="Built-in deployment protection rules for the environment.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + wait_timer: Missing[int] = Field( + default=UNSET, + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + ) + + +class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + + +class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, description="The number of environments in this repository" ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) + environments: Missing[list[Environment]] = Field(default=UNSET) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) +model_rebuild(Environment) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) +model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) +__all__ = ( + "Environment", + "EnvironmentPropProtectionRulesItemsAnyof0", + "EnvironmentPropProtectionRulesItemsAnyof2", + "ReposOwnerRepoEnvironmentsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0296.py b/githubkit/versions/v2022_11_28/models/group_0296.py index 2e5fcc0db..66c6a83bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0296.py +++ b/githubkit/versions/v2022_11_28/models/group_0296.py @@ -9,26 +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_0297 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems + -class DeploymentBranchPolicyNamePatternWithType(GitHubModel): - """Deployment branch and tag policy name pattern""" +class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1""" - 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)." + 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: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag" + 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(DeploymentBranchPolicyNamePatternWithType) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) -__all__ = ("DeploymentBranchPolicyNamePatternWithType",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0297.py b/githubkit/versions/v2022_11_28/models/group_0297.py index 11e46307f..3ce0a7a71 100644 --- a/githubkit/versions/v2022_11_28/models/group_0297.py +++ b/githubkit/versions/v2022_11_28/models/group_0297.py @@ -9,19 +9,27 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0086 import Team -class DeploymentBranchPolicyNamePattern(GitHubModel): - """Deployment branch policy name pattern""" +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - 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)." + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(DeploymentBranchPolicyNamePattern) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) -__all__ = ("DeploymentBranchPolicyNamePattern",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0298.py b/githubkit/versions/v2022_11_28/models/group_0298.py index ec57f6950..2e5fcc0db 100644 --- a/githubkit/versions/v2022_11_28/models/group_0298.py +++ b/githubkit/versions/v2022_11_28/models/group_0298.py @@ -9,31 +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 CustomDeploymentRuleApp(GitHubModel): - """Custom deployment protection rule app - - A GitHub App that is providing a custom deployment protection rule. - """ +class DeploymentBranchPolicyNamePatternWithType(GitHubModel): + """Deployment branch and tag policy name pattern""" - 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." + 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)." ) - node_id: str = Field( - description="The node ID for the deployment protection rule integration." + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag" ) -model_rebuild(CustomDeploymentRuleApp) +model_rebuild(DeploymentBranchPolicyNamePatternWithType) -__all__ = ("CustomDeploymentRuleApp",) +__all__ = ("DeploymentBranchPolicyNamePatternWithType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0299.py b/githubkit/versions/v2022_11_28/models/group_0299.py index 13febd9a8..11e46307f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0299.py +++ b/githubkit/versions/v2022_11_28/models/group_0299.py @@ -12,55 +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_0298 import CustomDeploymentRuleApp +class DeploymentBranchPolicyNamePattern(GitHubModel): + """Deployment branch policy name pattern""" -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'} - """ - - 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 + name: str = Field( + description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." ) -model_rebuild(DeploymentProtectionRule) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -) +model_rebuild(DeploymentBranchPolicyNamePattern) -__all__ = ( - "DeploymentProtectionRule", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", -) +__all__ = ("DeploymentBranchPolicyNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0300.py b/githubkit/versions/v2022_11_28/models/group_0300.py index 23227f8fe..ec57f6950 100644 --- a/githubkit/versions/v2022_11_28/models/group_0300.py +++ b/githubkit/versions/v2022_11_28/models/group_0300.py @@ -14,16 +14,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ShortBlob(GitHubModel): - """Short Blob +class CustomDeploymentRuleApp(GitHubModel): + """Custom deployment protection rule app - Short Blob + A GitHub App that is providing a custom deployment protection rule. """ - url: str = Field() - sha: 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(ShortBlob) +model_rebuild(CustomDeploymentRuleApp) -__all__ = ("ShortBlob",) +__all__ = ("CustomDeploymentRuleApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0301.py b/githubkit/versions/v2022_11_28/models/group_0301.py index 048d8d3ff..67905327c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0301.py +++ b/githubkit/versions/v2022_11_28/models/group_0301.py @@ -9,30 +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_0300 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 Blob(GitHubModel): - """Blob +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - Blob + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} """ - 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) + 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(Blob) +model_rebuild(DeploymentProtectionRule) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +) -__all__ = ("Blob",) +__all__ = ( + "DeploymentProtectionRule", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0302.py b/githubkit/versions/v2022_11_28/models/group_0302.py index 36b9120b4..23227f8fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0302.py +++ b/githubkit/versions/v2022_11_28/models/group_0302.py @@ -9,95 +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 -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") - +class ShortBlob(GitHubModel): + """Short Blob -class GitCommitPropCommitter(GitHubModel): - """GitCommitPropCommitter - - Identifying information for the git-user + Short Blob """ - 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() + sha: str = Field() -class GitCommitPropParentsItems(GitHubModel): - """GitCommitPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class GitCommitPropVerification(GitHubModel): - """GitCommitPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Union[str, None] = Field() - - -model_rebuild(GitCommit) -model_rebuild(GitCommitPropAuthor) -model_rebuild(GitCommitPropCommitter) -model_rebuild(GitCommitPropTree) -model_rebuild(GitCommitPropParentsItems) -model_rebuild(GitCommitPropVerification) +model_rebuild(ShortBlob) -__all__ = ( - "GitCommit", - "GitCommitPropAuthor", - "GitCommitPropCommitter", - "GitCommitPropParentsItems", - "GitCommitPropTree", - "GitCommitPropVerification", -) +__all__ = ("ShortBlob",) diff --git a/githubkit/versions/v2022_11_28/models/group_0303.py b/githubkit/versions/v2022_11_28/models/group_0303.py index ee31507d1..048d8d3ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0303.py +++ b/githubkit/versions/v2022_11_28/models/group_0303.py @@ -9,35 +9,30 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class GitRef(GitHubModel): - """Git Reference +class Blob(GitHubModel): + """Blob - Git references within a repository + Blob """ - ref: str = Field() - node_id: str = Field() - url: str = Field() - object_: GitRefPropObject = Field(alias="object") - - -class GitRefPropObject(GitHubModel): - """GitRefPropObject""" - - type: str = Field() - sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") + 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) -model_rebuild(GitRef) -model_rebuild(GitRefPropObject) +model_rebuild(Blob) -__all__ = ( - "GitRef", - "GitRefPropObject", -) +__all__ = ("Blob",) diff --git a/githubkit/versions/v2022_11_28/models/group_0304.py b/githubkit/versions/v2022_11_28/models/group_0304.py index a11262c83..36b9120b4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0304.py +++ b/githubkit/versions/v2022_11_28/models/group_0304.py @@ -9,53 +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_0227 import Verification -class GitTag(GitHubModel): - """Git Tag +class GitCommit(GitHubModel): + """Git Commit - Metadata for a Git tag + Low-level Git commit operations within a repository """ + sha: str = Field(description="SHA for the commit") 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") + 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") + + +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 GitTagPropTagger(GitHubModel): - """GitTagPropTagger""" - date: str = Field() - email: str = Field() - name: str = Field() +class GitCommitPropTree(GitHubModel): + """GitCommitPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() -class GitTagPropObject(GitHubModel): - """GitTagPropObject""" +class GitCommitPropParentsItems(GitHubModel): + """GitCommitPropParentsItems""" - sha: str = Field() - type: str = Field() + 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(GitTag) -model_rebuild(GitTagPropTagger) -model_rebuild(GitTagPropObject) +model_rebuild(GitCommit) +model_rebuild(GitCommitPropAuthor) +model_rebuild(GitCommitPropCommitter) +model_rebuild(GitCommitPropTree) +model_rebuild(GitCommitPropParentsItems) +model_rebuild(GitCommitPropVerification) __all__ = ( - "GitTag", - "GitTagPropObject", - "GitTagPropTagger", + "GitCommit", + "GitCommitPropAuthor", + "GitCommitPropCommitter", + "GitCommitPropParentsItems", + "GitCommitPropTree", + "GitCommitPropVerification", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0305.py b/githubkit/versions/v2022_11_28/models/group_0305.py index a5ca2832d..ee31507d1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0305.py +++ b/githubkit/versions/v2022_11_28/models/group_0305.py @@ -12,39 +12,32 @@ 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 GitRef(GitHubModel): + """Git Reference - The hierarchy between files in a Git repository. + Git references within a repository """ - sha: str = Field() - url: Missing[str] = Field(default=UNSET) - truncated: bool = Field() - tree: list[GitTreePropTreeItems] = Field( - description="Objects specifying a tree structure" - ) + ref: str = Field() + node_id: str = Field() + url: str = Field() + object_: GitRefPropObject = Field(alias="object") -class GitTreePropTreeItems(GitHubModel): - """GitTreePropTreeItems""" +class GitRefPropObject(GitHubModel): + """GitRefPropObject""" - path: str = Field() - mode: str = Field() type: str = Field() - sha: str = Field() - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") + url: str = Field() -model_rebuild(GitTree) -model_rebuild(GitTreePropTreeItems) +model_rebuild(GitRef) +model_rebuild(GitRefPropObject) __all__ = ( - "GitTree", - "GitTreePropTreeItems", + "GitRef", + "GitRefPropObject", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0306.py b/githubkit/versions/v2022_11_28/models/group_0306.py index 544751a06..5c4a7c7dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0306.py +++ b/githubkit/versions/v2022_11_28/models/group_0306.py @@ -9,21 +9,53 @@ 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_0229 import Verification + + +class GitTag(GitHubModel): + """Git Tag + + 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") + + +class GitTagPropTagger(GitHubModel): + """GitTagPropTagger""" + + date: str = Field() + email: str = Field() + name: str = Field() -class HookResponse(GitHubModel): - """Hook Response""" +class GitTagPropObject(GitHubModel): + """GitTagPropObject""" - code: Union[int, None] = Field() - status: Union[str, None] = Field() - message: Union[str, None] = Field() + sha: str = Field() + type: str = Field() + url: str = Field() -model_rebuild(HookResponse) +model_rebuild(GitTag) +model_rebuild(GitTagPropTagger) +model_rebuild(GitTagPropObject) -__all__ = ("HookResponse",) +__all__ = ( + "GitTag", + "GitTagPropObject", + "GitTagPropTagger", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0307.py b/githubkit/versions/v2022_11_28/models/group_0307.py index b60a3006f..a5ca2832d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0307.py +++ b/githubkit/versions/v2022_11_28/models/group_0307.py @@ -9,47 +9,42 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0011 import WebhookConfig -from .group_0306 import HookResponse - -class Hook(GitHubModel): - """Webhook +class GitTree(GitHubModel): + """Git Tree - Webhooks for repositories. + The hierarchy between files in a Git repository. """ - 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']." + sha: str = Field() + url: Missing[str] = Field(default=UNSET) + truncated: bool = Field() + tree: list[GitTreePropTreeItems] = Field( + description="Objects specifying a tree structure" ) - 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(Hook) +class GitTreePropTreeItems(GitHubModel): + """GitTreePropTreeItems""" + + path: str = Field() + mode: str = Field() + type: str = Field() + sha: str = Field() + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(GitTree) +model_rebuild(GitTreePropTreeItems) -__all__ = ("Hook",) +__all__ = ( + "GitTree", + "GitTreePropTreeItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0308.py b/githubkit/versions/v2022_11_28/models/group_0308.py index dc0d94e75..544751a06 100644 --- a/githubkit/versions/v2022_11_28/models/group_0308.py +++ b/githubkit/versions/v2022_11_28/models/group_0308.py @@ -9,75 +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 githubkit.typing import Missing -from githubkit.utils import UNSET -class Import(GitHubModel): - """Import +class HookResponse(GitHubModel): + """Hook Response""" - A repository import from an external source. - """ + code: Union[int, None] = Field() + status: Union[str, None] = Field() + message: Union[str, None] = 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() - html_url: str = Field() - authors_url: str = Field() - repository_url: str = Field() - svn_root: Missing[str] = Field(default=UNSET) +model_rebuild(HookResponse) -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", -) +__all__ = ("HookResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0309.py b/githubkit/versions/v2022_11_28/models/group_0309.py index 7ed1d272d..01d04215c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0309.py +++ b/githubkit/versions/v2022_11_28/models/group_0309.py @@ -9,26 +9,47 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0011 import WebhookConfig +from .group_0308 import HookResponse -class PorterAuthor(GitHubModel): - """Porter Author +class Hook(GitHubModel): + """Webhook - Porter Author + Webhooks for repositories. """ - id: int = Field() - remote_id: str = Field() - remote_name: str = Field() - email: str = Field() - name: 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() - import_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(PorterAuthor) +model_rebuild(Hook) -__all__ = ("PorterAuthor",) +__all__ = ("Hook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0310.py b/githubkit/versions/v2022_11_28/models/group_0310.py index c54f24120..dc0d94e75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0310.py +++ b/githubkit/versions/v2022_11_28/models/group_0310.py @@ -9,23 +9,75 @@ 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 PorterLargeFile(GitHubModel): - """Porter Large File +class Import(GitHubModel): + """Import - Porter Large File + A repository import from an external source. """ - ref_name: str = Field() - path: str = Field() - oid: str = Field() - size: int = 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() + 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(PorterLargeFile) +model_rebuild(Import) +model_rebuild(ImportPropProjectChoicesItems) -__all__ = ("PorterLargeFile",) +__all__ = ( + "Import", + "ImportPropProjectChoicesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0311.py b/githubkit/versions/v2022_11_28/models/group_0311.py index 1b6f8aa80..7ed1d272d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0311.py +++ b/githubkit/versions/v2022_11_28/models/group_0311.py @@ -9,150 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0045 import Issue -from .group_0084 import Team -class IssueEvent(GitHubModel): - """Issue Event +class PorterAuthor(GitHubModel): + """Porter Author - 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: 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) - - -class IssueEventMilestone(GitHubModel): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str = Field() - - -class IssueEventProjectCard(GitHubModel): - """Issue Event Project Card - - Issue Event Project Card - """ - - url: str = Field() - id: int = Field() - project_url: str = Field() - project_id: int = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -class IssueEventRename(GitHubModel): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str = Field(alias="from") - to: str = Field() + import_url: str = Field() -model_rebuild(IssueEvent) -model_rebuild(IssueEventLabel) -model_rebuild(IssueEventDismissedReview) -model_rebuild(IssueEventMilestone) -model_rebuild(IssueEventProjectCard) -model_rebuild(IssueEventRename) +model_rebuild(PorterAuthor) -__all__ = ( - "IssueEvent", - "IssueEventDismissedReview", - "IssueEventLabel", - "IssueEventMilestone", - "IssueEventProjectCard", - "IssueEventRename", -) +__all__ = ("PorterAuthor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0312.py b/githubkit/versions/v2022_11_28/models/group_0312.py index 3ec22fb63..c54f24120 100644 --- a/githubkit/versions/v2022_11_28/models/group_0312.py +++ b/githubkit/versions/v2022_11_28/models/group_0312.py @@ -9,45 +9,23 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0010 import Integration - -class LabeledIssueEvent(GitHubModel): - """Labeled Issue Event +class PorterLargeFile(GitHubModel): + """Porter Large File - Labeled 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["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() - - -class LabeledIssueEventPropLabel(GitHubModel): - """LabeledIssueEventPropLabel""" - - name: str = Field() - color: str = Field() + ref_name: str = Field() + path: str = Field() + oid: str = Field() + size: int = Field() -model_rebuild(LabeledIssueEvent) -model_rebuild(LabeledIssueEventPropLabel) +model_rebuild(PorterLargeFile) -__all__ = ( - "LabeledIssueEvent", - "LabeledIssueEventPropLabel", -) +__all__ = ("PorterLargeFile",) diff --git a/githubkit/versions/v2022_11_28/models/group_0313.py b/githubkit/versions/v2022_11_28/models/group_0313.py index 695ea4a4e..9d6a9cbc1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0313.py +++ b/githubkit/versions/v2022_11_28/models/group_0313.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_0003 import SimpleUser from .group_0010 import Integration +from .group_0047 import Issue +from .group_0086 import Team -class UnlabeledIssueEvent(GitHubModel): - """Unlabeled Issue Event +class IssueEvent(GitHubModel): + """Issue Event - Unlabeled 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["unlabeled"] = 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() - label: UnlabeledIssueEventPropLabel = 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 UnlabeledIssueEventPropLabel(GitHubModel): - """UnlabeledIssueEventPropLabel""" +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 + """ - name: str = Field() - color: str = Field() + from_: str = Field(alias="from") + to: str = Field() -model_rebuild(UnlabeledIssueEvent) -model_rebuild(UnlabeledIssueEventPropLabel) +model_rebuild(IssueEvent) +model_rebuild(IssueEventLabel) +model_rebuild(IssueEventDismissedReview) +model_rebuild(IssueEventMilestone) +model_rebuild(IssueEventProjectCard) +model_rebuild(IssueEventRename) __all__ = ( - "UnlabeledIssueEvent", - "UnlabeledIssueEventPropLabel", + "IssueEvent", + "IssueEventDismissedReview", + "IssueEventLabel", + "IssueEventMilestone", + "IssueEventProjectCard", + "IssueEventRename", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0314.py b/githubkit/versions/v2022_11_28/models/group_0314.py index 34f35669c..3ec22fb63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0314.py +++ b/githubkit/versions/v2022_11_28/models/group_0314.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,28 +19,35 @@ from .group_0010 import Integration -class AssignedIssueEvent(GitHubModel): - """Assigned Issue Event +class LabeledIssueEvent(GitHubModel): + """Labeled Issue Event - Assigned 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: str = 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[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.") + performed_via_github_app: Union[None, Integration, None] = Field() + label: LabeledIssueEventPropLabel = Field() -model_rebuild(AssignedIssueEvent) +class LabeledIssueEventPropLabel(GitHubModel): + """LabeledIssueEventPropLabel""" -__all__ = ("AssignedIssueEvent",) + name: str = Field() + color: str = Field() + + +model_rebuild(LabeledIssueEvent) +model_rebuild(LabeledIssueEventPropLabel) + +__all__ = ( + "LabeledIssueEvent", + "LabeledIssueEventPropLabel", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0315.py b/githubkit/versions/v2022_11_28/models/group_0315.py index d36e83286..695ea4a4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0315.py +++ b/githubkit/versions/v2022_11_28/models/group_0315.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,25 +19,35 @@ from .group_0010 import Integration -class UnassignedIssueEvent(GitHubModel): - """Unassigned Issue Event +class UnlabeledIssueEvent(GitHubModel): + """Unlabeled Issue Event - Unassigned 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: str = 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() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + label: UnlabeledIssueEventPropLabel = Field() -model_rebuild(UnassignedIssueEvent) +class UnlabeledIssueEventPropLabel(GitHubModel): + """UnlabeledIssueEventPropLabel""" -__all__ = ("UnassignedIssueEvent",) + 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_0316.py b/githubkit/versions/v2022_11_28/models/group_0316.py index 734796d8a..34f35669c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0316.py +++ b/githubkit/versions/v2022_11_28/models/group_0316.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,34 +19,28 @@ from .group_0010 import Integration -class MilestonedIssueEvent(GitHubModel): - """Milestoned Issue Event +class AssignedIssueEvent(GitHubModel): + """Assigned Issue Event - Milestoned 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["milestoned"] = 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: MilestonedIssueEventPropMilestone = 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 MilestonedIssueEventPropMilestone(GitHubModel): - """MilestonedIssueEventPropMilestone""" +model_rebuild(AssignedIssueEvent) - title: str = Field() - - -model_rebuild(MilestonedIssueEvent) -model_rebuild(MilestonedIssueEventPropMilestone) - -__all__ = ( - "MilestonedIssueEvent", - "MilestonedIssueEventPropMilestone", -) +__all__ = ("AssignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0317.py b/githubkit/versions/v2022_11_28/models/group_0317.py index 1b03cd99a..d36e83286 100644 --- a/githubkit/versions/v2022_11_28/models/group_0317.py +++ b/githubkit/versions/v2022_11_28/models/group_0317.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,34 +19,25 @@ from .group_0010 import Integration -class DemilestonedIssueEvent(GitHubModel): - """Demilestoned Issue Event +class UnassignedIssueEvent(GitHubModel): + """Unassigned Issue Event - Demilestoned 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["demilestoned"] = 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() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class DemilestonedIssueEventPropMilestone(GitHubModel): - """DemilestonedIssueEventPropMilestone""" +model_rebuild(UnassignedIssueEvent) - title: str = Field() - - -model_rebuild(DemilestonedIssueEvent) -model_rebuild(DemilestonedIssueEventPropMilestone) - -__all__ = ( - "DemilestonedIssueEvent", - "DemilestonedIssueEventPropMilestone", -) +__all__ = ("UnassignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0318.py b/githubkit/versions/v2022_11_28/models/group_0318.py index 234895caf..734796d8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0318.py +++ b/githubkit/versions/v2022_11_28/models/group_0318.py @@ -19,35 +19,34 @@ from .group_0010 import Integration -class RenamedIssueEvent(GitHubModel): - """Renamed Issue Event +class MilestonedIssueEvent(GitHubModel): + """Milestoned Issue Event - Renamed 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["renamed"] = 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() - rename: RenamedIssueEventPropRename = Field() + milestone: MilestonedIssueEventPropMilestone = Field() -class RenamedIssueEventPropRename(GitHubModel): - """RenamedIssueEventPropRename""" +class MilestonedIssueEventPropMilestone(GitHubModel): + """MilestonedIssueEventPropMilestone""" - from_: str = Field(alias="from") - to: str = Field() + title: str = Field() -model_rebuild(RenamedIssueEvent) -model_rebuild(RenamedIssueEventPropRename) +model_rebuild(MilestonedIssueEvent) +model_rebuild(MilestonedIssueEventPropMilestone) __all__ = ( - "RenamedIssueEvent", - "RenamedIssueEventPropRename", + "MilestonedIssueEvent", + "MilestonedIssueEventPropMilestone", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0319.py b/githubkit/versions/v2022_11_28/models/group_0319.py index b069dd8f9..1b03cd99a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0319.py +++ b/githubkit/versions/v2022_11_28/models/group_0319.py @@ -14,42 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0084 import Team -class ReviewRequestedIssueEvent(GitHubModel): - """Review Requested Issue Event +class DemilestonedIssueEvent(GitHubModel): + """Demilestoned Issue Event - Review Requested Issue Event + Demilestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_requested"] = 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() - 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",) + milestone: DemilestonedIssueEventPropMilestone = Field() + + +class DemilestonedIssueEventPropMilestone(GitHubModel): + """DemilestonedIssueEventPropMilestone""" + + title: str = Field() + + +model_rebuild(DemilestonedIssueEvent) +model_rebuild(DemilestonedIssueEventPropMilestone) + +__all__ = ( + "DemilestonedIssueEvent", + "DemilestonedIssueEventPropMilestone", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0320.py b/githubkit/versions/v2022_11_28/models/group_0320.py index a092d3c1c..234895caf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0320.py +++ b/githubkit/versions/v2022_11_28/models/group_0320.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_0003 import SimpleUser from .group_0010 import Integration -from .group_0084 import Team -class ReviewRequestRemovedIssueEvent(GitHubModel): - """Review Request Removed Issue Event +class RenamedIssueEvent(GitHubModel): + """Renamed Issue Event - Review Request Removed 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["review_request_removed"] = 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() - 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",) + rename: RenamedIssueEventPropRename = Field() + + +class RenamedIssueEventPropRename(GitHubModel): + """RenamedIssueEventPropRename""" + + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(RenamedIssueEvent) +model_rebuild(RenamedIssueEventPropRename) + +__all__ = ( + "RenamedIssueEvent", + "RenamedIssueEventPropRename", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0321.py b/githubkit/versions/v2022_11_28/models/group_0321.py index bc686e09d..4188c5e03 100644 --- a/githubkit/versions/v2022_11_28/models/group_0321.py +++ b/githubkit/versions/v2022_11_28/models/group_0321.py @@ -19,39 +19,37 @@ from .group_0003 import SimpleUser from .group_0010 import Integration +from .group_0086 import Team -class ReviewDismissedIssueEvent(GitHubModel): - """Review Dismissed Issue Event +class ReviewRequestedIssueEvent(GitHubModel): + """Review Requested Issue Event - Review Dismissed 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["review_dismissed"] = 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() - 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", -) + 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",) diff --git a/githubkit/versions/v2022_11_28/models/group_0322.py b/githubkit/versions/v2022_11_28/models/group_0322.py index e0130f152..450a5c5c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0322.py +++ b/githubkit/versions/v2022_11_28/models/group_0322.py @@ -14,29 +14,42 @@ 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_0086 import Team -class LockedIssueEvent(GitHubModel): - """Locked Issue Event +class ReviewRequestRemovedIssueEvent(GitHubModel): + """Review Request Removed Issue Event - Locked 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["locked"] = Field() + event: Literal["review_request_removed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - lock_reason: Union[str, None] = Field() - - -model_rebuild(LockedIssueEvent) - -__all__ = ("LockedIssueEvent",) + 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",) diff --git a/githubkit/versions/v2022_11_28/models/group_0323.py b/githubkit/versions/v2022_11_28/models/group_0323.py index cf2b6b5f8..bc686e09d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0323.py +++ b/githubkit/versions/v2022_11_28/models/group_0323.py @@ -21,41 +21,37 @@ from .group_0010 import Integration -class AddedToProjectIssueEvent(GitHubModel): - """Added to Project Issue Event +class ReviewDismissedIssueEvent(GitHubModel): + """Review Dismissed Issue Event - Added to Project Issue Event + Review Dismissed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["added_to_project"] = Field() + event: Literal["review_dismissed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() -class AddedToProjectIssueEventPropProjectCard(GitHubModel): - """AddedToProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[str] = Field(default=UNSET) -model_rebuild(AddedToProjectIssueEvent) -model_rebuild(AddedToProjectIssueEventPropProjectCard) +model_rebuild(ReviewDismissedIssueEvent) +model_rebuild(ReviewDismissedIssueEventPropDismissedReview) __all__ = ( - "AddedToProjectIssueEvent", - "AddedToProjectIssueEventPropProjectCard", + "ReviewDismissedIssueEvent", + "ReviewDismissedIssueEventPropDismissedReview", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0324.py b/githubkit/versions/v2022_11_28/models/group_0324.py index 5d2b15f17..e0130f152 100644 --- a/githubkit/versions/v2022_11_28/models/group_0324.py +++ b/githubkit/versions/v2022_11_28/models/group_0324.py @@ -14,48 +14,29 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -class MovedColumnInProjectIssueEvent(GitHubModel): - """Moved Column in Project Issue Event +class LockedIssueEvent(GitHubModel): + """Locked Issue Event - Moved Column in Project Issue Event + Locked Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["moved_columns_in_project"] = Field() + event: Literal["locked"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + lock_reason: Union[str, None] = Field() -class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): - """MovedColumnInProjectIssueEventPropProjectCard""" +model_rebuild(LockedIssueEvent) - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(MovedColumnInProjectIssueEvent) -model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) - -__all__ = ( - "MovedColumnInProjectIssueEvent", - "MovedColumnInProjectIssueEventPropProjectCard", -) +__all__ = ("LockedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0325.py b/githubkit/versions/v2022_11_28/models/group_0325.py index 3bd6fbf40..cf2b6b5f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0325.py +++ b/githubkit/versions/v2022_11_28/models/group_0325.py @@ -21,28 +21,28 @@ from .group_0010 import Integration -class RemovedFromProjectIssueEvent(GitHubModel): - """Removed from Project Issue Event +class AddedToProjectIssueEvent(GitHubModel): + """Added to Project Issue Event - Removed from Project Issue Event + Added to Project 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["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[RemovedFromProjectIssueEventPropProjectCard] = Field( + project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( default=UNSET ) -class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): - """RemovedFromProjectIssueEventPropProjectCard""" +class AddedToProjectIssueEventPropProjectCard(GitHubModel): + """AddedToProjectIssueEventPropProjectCard""" id: int = Field() url: str = Field() @@ -52,10 +52,10 @@ class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): previous_column_name: Missing[str] = Field(default=UNSET) -model_rebuild(RemovedFromProjectIssueEvent) -model_rebuild(RemovedFromProjectIssueEventPropProjectCard) +model_rebuild(AddedToProjectIssueEvent) +model_rebuild(AddedToProjectIssueEventPropProjectCard) __all__ = ( - "RemovedFromProjectIssueEvent", - "RemovedFromProjectIssueEventPropProjectCard", + "AddedToProjectIssueEvent", + "AddedToProjectIssueEventPropProjectCard", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0326.py b/githubkit/versions/v2022_11_28/models/group_0326.py index d4894ad61..5d2b15f17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0326.py +++ b/githubkit/versions/v2022_11_28/models/group_0326.py @@ -21,31 +21,28 @@ from .group_0010 import Integration -class ConvertedNoteToIssueIssueEvent(GitHubModel): - """Converted Note to Issue Issue Event +class MovedColumnInProjectIssueEvent(GitHubModel): + """Moved Column in Project Issue Event - Converted Note to Issue Issue Event + Moved Column in Project 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["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[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( + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( default=UNSET ) -class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): - """ConvertedNoteToIssueIssueEventPropProjectCard""" +class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): + """MovedColumnInProjectIssueEventPropProjectCard""" id: int = Field() url: str = Field() @@ -55,10 +52,10 @@ class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): previous_column_name: Missing[str] = Field(default=UNSET) -model_rebuild(ConvertedNoteToIssueIssueEvent) -model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) +model_rebuild(MovedColumnInProjectIssueEvent) +model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) __all__ = ( - "ConvertedNoteToIssueIssueEvent", - "ConvertedNoteToIssueIssueEventPropProjectCard", + "MovedColumnInProjectIssueEvent", + "MovedColumnInProjectIssueEventPropProjectCard", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0327.py b/githubkit/versions/v2022_11_28/models/group_0327.py index 376537058..3bd6fbf40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0327.py +++ b/githubkit/versions/v2022_11_28/models/group_0327.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -20,49 +19,43 @@ from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0044 import ReactionRollup -class TimelineCommentEvent(GitHubModel): - """Timeline Comment Event +class RemovedFromProjectIssueEvent(GitHubModel): + """Removed from Project Issue Event - Timeline Comment Event + Removed from Project Issue Event """ - event: Literal["commented"] = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - id: int = Field(description="Unique identifier of the issue comment") + id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" - ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["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 ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TimelineCommentEvent) +class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(RemovedFromProjectIssueEvent) +model_rebuild(RemovedFromProjectIssueEventPropProjectCard) -__all__ = ("TimelineCommentEvent",) +__all__ = ( + "RemovedFromProjectIssueEvent", + "RemovedFromProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0328.py b/githubkit/versions/v2022_11_28/models/group_0328.py index eb75f7098..d4894ad61 100644 --- a/githubkit/versions/v2022_11_28/models/group_0328.py +++ b/githubkit/versions/v2022_11_28/models/group_0328.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,24 +18,47 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0329 import TimelineCrossReferencedEventPropSource +from .group_0010 import Integration -class TimelineCrossReferencedEvent(GitHubModel): - """Timeline Cross Referenced Event +class ConvertedNoteToIssueIssueEvent(GitHubModel): + """Converted Note to Issue Issue Event - Timeline Cross Referenced Event + Converted Note to Issue Issue Event """ - event: Literal["cross-referenced"] = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["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.", ) - created_at: datetime = Field() - updated_at: datetime = Field() - source: TimelineCrossReferencedEventPropSource = Field() + project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( + default=UNSET + ) + + +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(TimelineCrossReferencedEvent) +model_rebuild(ConvertedNoteToIssueIssueEvent) +model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) -__all__ = ("TimelineCrossReferencedEvent",) +__all__ = ( + "ConvertedNoteToIssueIssueEvent", + "ConvertedNoteToIssueIssueEventPropProjectCard", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0329.py b/githubkit/versions/v2022_11_28/models/group_0329.py index a3f25ecea..143fbec78 100644 --- a/githubkit/versions/v2022_11_28/models/group_0329.py +++ b/githubkit/versions/v2022_11_28/models/group_0329.py @@ -9,26 +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_0045 import Issue +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0045 import ReactionRollup + +class TimelineCommentEvent(GitHubModel): + """Timeline Comment Event -class TimelineCrossReferencedEventPropSource(GitHubModel): - """TimelineCrossReferencedEventPropSource""" + Timeline Comment 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.", + event: Literal["commented"] = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + id: int = Field(description="Unique identifier of the issue comment") + node_id: str = Field() + 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(TimelineCrossReferencedEventPropSource) +model_rebuild(TimelineCommentEvent) -__all__ = ("TimelineCrossReferencedEventPropSource",) +__all__ = ("TimelineCommentEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0330.py b/githubkit/versions/v2022_11_28/models/group_0330.py index 3333d74a0..8f76113c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0330.py +++ b/githubkit/versions/v2022_11_28/models/group_0330.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,89 +18,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0331 import TimelineCrossReferencedEventPropSource -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 +class TimelineCrossReferencedEvent(GitHubModel): + """Timeline Cross Referenced Event - Identifying information for the git-user + Timeline Cross Referenced Event """ - 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() + 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(TimelineCommittedEvent) -model_rebuild(TimelineCommittedEventPropAuthor) -model_rebuild(TimelineCommittedEventPropCommitter) -model_rebuild(TimelineCommittedEventPropTree) -model_rebuild(TimelineCommittedEventPropParentsItems) -model_rebuild(TimelineCommittedEventPropVerification) +model_rebuild(TimelineCrossReferencedEvent) -__all__ = ( - "TimelineCommittedEvent", - "TimelineCommittedEventPropAuthor", - "TimelineCommittedEventPropCommitter", - "TimelineCommittedEventPropParentsItems", - "TimelineCommittedEventPropTree", - "TimelineCommittedEventPropVerification", -) +__all__ = ("TimelineCrossReferencedEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0331.py b/githubkit/versions/v2022_11_28/models/group_0331.py index a6060bb80..bbdc992a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0331.py +++ b/githubkit/versions/v2022_11_28/models/group_0331.py @@ -9,79 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser - +from .group_0047 import Issue -class TimelineReviewedEvent(GitHubModel): - """Timeline Reviewed Event - Timeline Reviewed Event - """ +class TimelineCrossReferencedEventPropSource(GitHubModel): + """TimelineCrossReferencedEventPropSource""" - 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.", + 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.", ) -class TimelineReviewedEventPropLinks(GitHubModel): - """TimelineReviewedEventPropLinks""" - - html: TimelineReviewedEventPropLinksPropHtml = Field() - pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() - - -class TimelineReviewedEventPropLinksPropHtml(GitHubModel): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str = Field() - - -class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str = Field() - - -model_rebuild(TimelineReviewedEvent) -model_rebuild(TimelineReviewedEventPropLinks) -model_rebuild(TimelineReviewedEventPropLinksPropHtml) -model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) +model_rebuild(TimelineCrossReferencedEventPropSource) -__all__ = ( - "TimelineReviewedEvent", - "TimelineReviewedEventPropLinks", - "TimelineReviewedEventPropLinksPropHtml", - "TimelineReviewedEventPropLinksPropPullRequest", -) +__all__ = ("TimelineCrossReferencedEventPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_0332.py b/githubkit/versions/v2022_11_28/models/group_0332.py index f8d6191b1..3333d74a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0332.py +++ b/githubkit/versions/v2022_11_28/models/group_0332.py @@ -18,150 +18,89 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0044 import ReactionRollup +class TimelineCommittedEvent(GitHubModel): + """Timeline Committed Event -class PullRequestReviewComment(GitHubModel): - """Pull Request Review Comment - - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Committed 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(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.", + 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" ) - 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.", + committer: TimelineCommittedEventPropCommitter = Field( + description="Identifying information for the git-user" ) - 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) + 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 PullRequestReviewCommentPropLinks(GitHubModel): - """PullRequestReviewCommentPropLinks""" +class TimelineCommittedEventPropAuthor(GitHubModel): + """TimelineCommittedEventPropAuthor - self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") - html: PullRequestReviewCommentPropLinksPropHtml = Field() - pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + 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 PullRequestReviewCommentPropLinksPropSelf(GitHubModel): - """PullRequestReviewCommentPropLinksPropSelf""" - href: str = Field() +class TimelineCommittedEventPropCommitter(GitHubModel): + """TimelineCommittedEventPropCommitter + Identifying information for the git-user + """ -class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): - """PullRequestReviewCommentPropLinksPropHtml""" + 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") - href: str = Field() +class TimelineCommittedEventPropTree(GitHubModel): + """TimelineCommittedEventPropTree""" -class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewCommentPropLinksPropPullRequest""" + sha: str = Field(description="SHA for the commit") + url: str = Field() - href: str = Field() +class TimelineCommittedEventPropParentsItems(GitHubModel): + """TimelineCommittedEventPropParentsItems""" -class TimelineLineCommentedEvent(GitHubModel): - """Timeline Line Commented Event + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() - Timeline Line Commented Event - """ - event: Missing[Literal["line_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) +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(PullRequestReviewComment) -model_rebuild(PullRequestReviewCommentPropLinks) -model_rebuild(PullRequestReviewCommentPropLinksPropSelf) -model_rebuild(PullRequestReviewCommentPropLinksPropHtml) -model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) -model_rebuild(TimelineLineCommentedEvent) +model_rebuild(TimelineCommittedEvent) +model_rebuild(TimelineCommittedEventPropAuthor) +model_rebuild(TimelineCommittedEventPropCommitter) +model_rebuild(TimelineCommittedEventPropTree) +model_rebuild(TimelineCommittedEventPropParentsItems) +model_rebuild(TimelineCommittedEventPropVerification) __all__ = ( - "PullRequestReviewComment", - "PullRequestReviewCommentPropLinks", - "PullRequestReviewCommentPropLinksPropHtml", - "PullRequestReviewCommentPropLinksPropPullRequest", - "PullRequestReviewCommentPropLinksPropSelf", - "TimelineLineCommentedEvent", + "TimelineCommittedEvent", + "TimelineCommittedEventPropAuthor", + "TimelineCommittedEventPropCommitter", + "TimelineCommittedEventPropParentsItems", + "TimelineCommittedEventPropTree", + "TimelineCommittedEventPropVerification", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0333.py b/githubkit/versions/v2022_11_28/models/group_0333.py index c45a39f8c..a6060bb80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0333.py +++ b/githubkit/versions/v2022_11_28/models/group_0333.py @@ -9,34 +9,79 @@ 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 TimelineAssignedIssueEvent(GitHubModel): - """Timeline Assigned Issue Event +class TimelineReviewedEvent(GitHubModel): + """Timeline Reviewed Event - Timeline Assigned Issue Event + Timeline Reviewed Event """ - id: int = Field() + event: Literal["reviewed"] = Field() + id: int = Field(description="Unique identifier of the review") node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: 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.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: TimelineReviewedEventPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: str = Field(description="A commit SHA for the review.") + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) -model_rebuild(TimelineAssignedIssueEvent) +class TimelineReviewedEventPropLinks(GitHubModel): + """TimelineReviewedEventPropLinks""" -__all__ = ("TimelineAssignedIssueEvent",) + html: TimelineReviewedEventPropLinksPropHtml = Field() + pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() + + +class TimelineReviewedEventPropLinksPropHtml(GitHubModel): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str = Field() + + +class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(TimelineReviewedEvent) +model_rebuild(TimelineReviewedEventPropLinks) +model_rebuild(TimelineReviewedEventPropLinksPropHtml) +model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) + +__all__ = ( + "TimelineReviewedEvent", + "TimelineReviewedEventPropLinks", + "TimelineReviewedEventPropLinksPropHtml", + "TimelineReviewedEventPropLinksPropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0334.py b/githubkit/versions/v2022_11_28/models/group_0334.py index 420f91c26..8e83427de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0334.py +++ b/githubkit/versions/v2022_11_28/models/group_0334.py @@ -9,34 +9,159 @@ 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_0045 import ReactionRollup -class TimelineUnassignedIssueEvent(GitHubModel): - """Timeline Unassigned Issue Event +class PullRequestReviewComment(GitHubModel): + """Pull Request Review Comment - Timeline Unassigned Issue Event + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. """ - 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.") + 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) -model_rebuild(TimelineUnassignedIssueEvent) +class PullRequestReviewCommentPropLinks(GitHubModel): + """PullRequestReviewCommentPropLinks""" -__all__ = ("TimelineUnassignedIssueEvent",) + self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") + html: PullRequestReviewCommentPropLinksPropHtml = Field() + pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + + +class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str = Field() + + +class TimelineLineCommentedEvent(GitHubModel): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ + + event: Missing[Literal["line_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) + + +model_rebuild(PullRequestReviewComment) +model_rebuild(PullRequestReviewCommentPropLinks) +model_rebuild(PullRequestReviewCommentPropLinksPropSelf) +model_rebuild(PullRequestReviewCommentPropLinksPropHtml) +model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) +model_rebuild(TimelineLineCommentedEvent) + +__all__ = ( + "PullRequestReviewComment", + "PullRequestReviewCommentPropLinks", + "PullRequestReviewCommentPropLinksPropHtml", + "PullRequestReviewCommentPropLinksPropPullRequest", + "PullRequestReviewCommentPropLinksPropSelf", + "TimelineLineCommentedEvent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0335.py b/githubkit/versions/v2022_11_28/models/group_0335.py index 799278e56..c45a39f8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0335.py +++ b/githubkit/versions/v2022_11_28/models/group_0335.py @@ -9,36 +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_0003 import SimpleUser from .group_0010 import Integration -class StateChangeIssueEvent(GitHubModel): - """State Change Issue Event +class TimelineAssignedIssueEvent(GitHubModel): + """Timeline Assigned Issue Event - State Change Issue Event + Timeline Assigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() + 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() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(StateChangeIssueEvent) +model_rebuild(TimelineAssignedIssueEvent) -__all__ = ("StateChangeIssueEvent",) +__all__ = ("TimelineAssignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0336.py b/githubkit/versions/v2022_11_28/models/group_0336.py index 25f7eb3a3..420f91c26 100644 --- a/githubkit/versions/v2022_11_28/models/group_0336.py +++ b/githubkit/versions/v2022_11_28/models/group_0336.py @@ -9,33 +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_0003 import SimpleUser +from .group_0010 import Integration -class DeployKey(GitHubModel): - """Deploy Key - An SSH key granting access to a single repository. +class TimelineUnassignedIssueEvent(GitHubModel): + """Timeline Unassigned Issue Event + + Timeline Unassigned Issue Event """ id: int = Field() - key: str = Field() + node_id: str = Field() url: str = Field() - title: str = Field() - verified: bool = 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() - 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) + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(DeployKey) +model_rebuild(TimelineUnassignedIssueEvent) -__all__ = ("DeployKey",) +__all__ = ("TimelineUnassignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0337.py b/githubkit/versions/v2022_11_28/models/group_0337.py index 58247c327..799278e56 100644 --- a/githubkit/versions/v2022_11_28/models/group_0337.py +++ b/githubkit/versions/v2022_11_28/models/group_0337.py @@ -9,16 +9,36 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import 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 +from .group_0010 import Integration + + +class StateChangeIssueEvent(GitHubModel): + """State Change Issue Event + + State Change Issue 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) + -model_rebuild(Language) +model_rebuild(StateChangeIssueEvent) -__all__ = ("Language",) +__all__ = ("StateChangeIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0338.py b/githubkit/versions/v2022_11_28/models/group_0338.py index 5f83fdf69..8d8a67244 100644 --- a/githubkit/versions/v2022_11_28/models/group_0338.py +++ b/githubkit/versions/v2022_11_28/models/group_0338.py @@ -9,48 +9,34 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0019 import LicenseSimple +class DeployKey(GitHubModel): + """Deploy Key -class LicenseContent(GitHubModel): - """License Content - - License Content + An SSH key granting access to a single repository. """ - name: str = Field() - path: str = Field() - sha: str = Field() - size: int = Field() + id: int = Field() + key: str = Field() url: str = Field() - html_url: Union[str, None] = Field() - git_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - type: str = Field() - content: str = Field() - encoding: str = Field() - links: LicenseContentPropLinks = Field(alias="_links") - license_: Union[None, LicenseSimple] = Field(alias="license") - - -class LicenseContentPropLinks(GitHubModel): - """LicenseContentPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + 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[datetime, None]] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(LicenseContent) -model_rebuild(LicenseContentPropLinks) +model_rebuild(DeployKey) -__all__ = ( - "LicenseContent", - "LicenseContentPropLinks", -) +__all__ = ("DeployKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0339.py b/githubkit/versions/v2022_11_28/models/group_0339.py index 21374a5f3..58247c327 100644 --- a/githubkit/versions/v2022_11_28/models/group_0339.py +++ b/githubkit/versions/v2022_11_28/models/group_0339.py @@ -9,26 +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 - -class MergedUpstream(GitHubModel): - """Merged upstream - - Results of a successful merge upstream request + Language """ - 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(MergedUpstream) +model_rebuild(Language) -__all__ = ("MergedUpstream",) +__all__ = ("Language",) diff --git a/githubkit/versions/v2022_11_28/models/group_0340.py b/githubkit/versions/v2022_11_28/models/group_0340.py index 771963487..5f83fdf69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0340.py +++ b/githubkit/versions/v2022_11_28/models/group_0340.py @@ -9,92 +9,48 @@ from __future__ import annotations -from datetime import date, 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_0019 import LicenseSimple -class Page(GitHubModel): - """GitHub Pages - The configuration for GitHub Pages for a repository. +class LicenseContent(GitHubModel): + """License Content + + License Content """ - 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""" - - branch: str = Field() + 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") -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) +model_rebuild(LicenseContent) +model_rebuild(LicenseContentPropLinks) __all__ = ( - "Page", - "PagesHttpsCertificate", - "PagesSourceHash", + "LicenseContent", + "LicenseContentPropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0341.py b/githubkit/versions/v2022_11_28/models/group_0341.py index c05e5b837..21374a5f3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0341.py +++ b/githubkit/versions/v2022_11_28/models/group_0341.py @@ -9,42 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class MergedUpstream(GitHubModel): + """Merged upstream -class PageBuild(GitHubModel): - """Page Build - - Page Build + Results of a successful merge upstream request """ - url: str = Field() - status: str = Field() - error: PageBuildPropError = Field() - pusher: Union[None, SimpleUser] = Field() - commit: str = Field() - duration: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - - -class PageBuildPropError(GitHubModel): - """PageBuildPropError""" - - message: Union[str, None] = Field() + 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(PageBuild) -model_rebuild(PageBuildPropError) +model_rebuild(MergedUpstream) -__all__ = ( - "PageBuild", - "PageBuildPropError", -) +__all__ = ("MergedUpstream",) diff --git a/githubkit/versions/v2022_11_28/models/group_0342.py b/githubkit/versions/v2022_11_28/models/group_0342.py index 4b54230bc..771963487 100644 --- a/githubkit/versions/v2022_11_28/models/group_0342.py +++ b/githubkit/versions/v2022_11_28/models/group_0342.py @@ -9,21 +9,92 @@ 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 -class PageBuildStatus(GitHubModel): - """Page Build Status +class Page(GitHubModel): + """GitHub Pages - Page Build Status + The configuration for GitHub Pages for a repository. """ - url: str = Field() - status: str = Field() + 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""" + + 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(PageBuildStatus) +model_rebuild(Page) +model_rebuild(PagesSourceHash) +model_rebuild(PagesHttpsCertificate) -__all__ = ("PageBuildStatus",) +__all__ = ( + "Page", + "PagesHttpsCertificate", + "PagesSourceHash", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0343.py b/githubkit/versions/v2022_11_28/models/group_0343.py index c3d88e76b..c05e5b837 100644 --- a/githubkit/versions/v2022_11_28/models/group_0343.py +++ b/githubkit/versions/v2022_11_28/models/group_0343.py @@ -9,33 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class PageDeployment(GitHubModel): - """GitHub Pages - The GitHub Pages deployment status. +class PageBuild(GitHubModel): + """Page Build + + Page Build """ - 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." - ) + url: str = Field() + status: str = Field() + error: PageBuildPropError = Field() + pusher: Union[None, SimpleUser] = Field() + commit: str = Field() + duration: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + + +class PageBuildPropError(GitHubModel): + """PageBuildPropError""" + + message: Union[str, None] = Field() -model_rebuild(PageDeployment) +model_rebuild(PageBuild) +model_rebuild(PageBuildPropError) -__all__ = ("PageDeployment",) +__all__ = ( + "PageBuild", + "PageBuildPropError", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0344.py b/githubkit/versions/v2022_11_28/models/group_0344.py index f79d28414..4b54230bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0344.py +++ b/githubkit/versions/v2022_11_28/models/group_0344.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 -class PagesDeploymentStatus(GitHubModel): - """GitHub Pages deployment status""" +class PageBuildStatus(GitHubModel): + """Page Build Status + + Page Build 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.") + url: str = Field() + status: str = Field() -model_rebuild(PagesDeploymentStatus) +model_rebuild(PageBuildStatus) -__all__ = ("PagesDeploymentStatus",) +__all__ = ("PageBuildStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0345.py b/githubkit/versions/v2022_11_28/models/group_0345.py index b7d3c727b..c3d88e76b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0345.py +++ b/githubkit/versions/v2022_11_28/models/group_0345.py @@ -18,94 +18,24 @@ from githubkit.utils import UNSET -class PagesHealthCheck(GitHubModel): - """Pages Health Check Status +class PageDeployment(GitHubModel): + """GitHub Pages - Pages Health Check Status + The GitHub Pages deployment status. """ - domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) - alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( - default=UNSET + id: Union[int, str] = Field( + description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." ) - - -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 + status_url: str = Field( + description="The URI to monitor GitHub Pages deployment status." ) - 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 + 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." ) - 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) +model_rebuild(PageDeployment) -__all__ = ( - "PagesHealthCheck", - "PagesHealthCheckPropAltDomain", - "PagesHealthCheckPropDomain", -) +__all__ = ("PageDeployment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0346.py b/githubkit/versions/v2022_11_28/models/group_0346.py index 36cef3b24..f79d28414 100644 --- a/githubkit/versions/v2022_11_28/models/group_0346.py +++ b/githubkit/versions/v2022_11_28/models/group_0346.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,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0042 import Milestone -from .group_0083 import TeamSimple -from .group_0267 import AutoMerge -from .group_0347 import PullRequestPropLabelsItems -from .group_0348 import PullRequestPropBase, PullRequestPropHead -from .group_0349 import PullRequestPropLinks +class PagesDeploymentStatus(GitHubModel): + """GitHub Pages deployment status""" -class PullRequest(GitHubModel): - """Pull Request + 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.") - 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() - 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() +model_rebuild(PagesDeploymentStatus) - -model_rebuild(PullRequest) - -__all__ = ("PullRequest",) +__all__ = ("PagesDeploymentStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0347.py b/githubkit/versions/v2022_11_28/models/group_0347.py index cf1d160e5..b7d3c727b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0347.py +++ b/githubkit/versions/v2022_11_28/models/group_0347.py @@ -14,20 +14,98 @@ 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 PagesHealthCheck(GitHubModel): + """Pages Health Check Status - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + Pages Health Check Status + """ + domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) + alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( + default=UNSET + ) -model_rebuild(PullRequestPropLabelsItems) -__all__ = ("PullRequestPropLabelsItems",) +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__ = ( + "PagesHealthCheck", + "PagesHealthCheckPropAltDomain", + "PagesHealthCheckPropDomain", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0348.py b/githubkit/versions/v2022_11_28/models/group_0348.py index 825d35e04..9c29ca702 100644 --- a/githubkit/versions/v2022_11_28/models/group_0348.py +++ b/githubkit/versions/v2022_11_28/models/group_0348.py @@ -9,40 +9,106 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0020 import Repository - - -class PullRequestPropHead(GitHubModel): - """PullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() - - -class PullRequestPropBase(GitHubModel): - """PullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() +from .group_0043 import Milestone +from .group_0085 import TeamSimple +from .group_0269 import AutoMerge +from .group_0349 import PullRequestPropLabelsItems +from .group_0350 import PullRequestPropBase, PullRequestPropHead +from .group_0351 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. + """ + + 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.") - - -model_rebuild(PullRequestPropHead) -model_rebuild(PullRequestPropBase) - -__all__ = ( - "PullRequestPropBase", - "PullRequestPropHead", -) + 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() + + +model_rebuild(PullRequest) + +__all__ = ("PullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0349.py b/githubkit/versions/v2022_11_28/models/group_0349.py index 9421e1f62..cf1d160e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0349.py +++ b/githubkit/versions/v2022_11_28/models/group_0349.py @@ -9,26 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0266 import Link - -class PullRequestPropLinks(GitHubModel): - """PullRequestPropLinks""" +class PullRequestPropLabelsItems(GitHubModel): + """PullRequestPropLabelsItems""" - 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: 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(PullRequestPropLinks) +model_rebuild(PullRequestPropLabelsItems) -__all__ = ("PullRequestPropLinks",) +__all__ = ("PullRequestPropLabelsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0350.py b/githubkit/versions/v2022_11_28/models/group_0350.py index da433b3b8..825d35e04 100644 --- a/githubkit/versions/v2022_11_28/models/group_0350.py +++ b/githubkit/versions/v2022_11_28/models/group_0350.py @@ -9,22 +9,40 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser +from .group_0020 import Repository + + +class PullRequestPropHead(GitHubModel): + """PullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() + sha: str = Field() + user: Union[None, SimpleUser] = Field() -class PullRequestMergeResult(GitHubModel): - """Pull Request Merge Result - Pull Request Merge Result - """ +class PullRequestPropBase(GitHubModel): + """PullRequestPropBase""" + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") sha: str = Field() - merged: bool = Field() - message: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(PullRequestMergeResult) +model_rebuild(PullRequestPropHead) +model_rebuild(PullRequestPropBase) -__all__ = ("PullRequestMergeResult",) +__all__ = ( + "PullRequestPropBase", + "PullRequestPropHead", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0351.py b/githubkit/versions/v2022_11_28/models/group_0351.py index d0496a939..ce8754b68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0351.py +++ b/githubkit/versions/v2022_11_28/models/group_0351.py @@ -13,20 +13,22 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0084 import Team +from .group_0268 import Link -class PullRequestReviewRequest(GitHubModel): - """Pull Request Review Request +class PullRequestPropLinks(GitHubModel): + """PullRequestPropLinks""" - Pull Request Review Request - """ + 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") - users: list[SimpleUser] = Field() - teams: list[Team] = Field() +model_rebuild(PullRequestPropLinks) -model_rebuild(PullRequestReviewRequest) - -__all__ = ("PullRequestReviewRequest",) +__all__ = ("PullRequestPropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0352.py b/githubkit/versions/v2022_11_28/models/group_0352.py index d7938b075..da433b3b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0352.py +++ b/githubkit/versions/v2022_11_28/models/group_0352.py @@ -9,80 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -class PullRequestReview(GitHubModel): - """Pull Request Review +class PullRequestMergeResult(GitHubModel): + """Pull Request Merge Result - Pull Request Reviews are reviews on pull requests. + Pull Request Merge Result """ - 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.", - ) - - -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() + sha: str = Field() + merged: bool = Field() + message: str = Field() -model_rebuild(PullRequestReview) -model_rebuild(PullRequestReviewPropLinks) -model_rebuild(PullRequestReviewPropLinksPropHtml) -model_rebuild(PullRequestReviewPropLinksPropPullRequest) +model_rebuild(PullRequestMergeResult) -__all__ = ( - "PullRequestReview", - "PullRequestReviewPropLinks", - "PullRequestReviewPropLinksPropHtml", - "PullRequestReviewPropLinksPropPullRequest", -) +__all__ = ("PullRequestMergeResult",) diff --git a/githubkit/versions/v2022_11_28/models/group_0353.py b/githubkit/versions/v2022_11_28/models/group_0353.py index a840fde1d..8a0ffde90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0353.py +++ b/githubkit/versions/v2022_11_28/models/group_0353.py @@ -9,90 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0044 import ReactionRollup -from .group_0354 import ReviewCommentPropLinks +from .group_0086 import Team -class ReviewComment(GitHubModel): - """Legacy Review Comment +class PullRequestReviewRequest(GitHubModel): + """Pull Request Review Request - Legacy Review Comment + Pull Request Review Request """ - 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.", - ) - 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.", - ) + users: list[SimpleUser] = Field() + teams: list[Team] = Field() -model_rebuild(ReviewComment) +model_rebuild(PullRequestReviewRequest) -__all__ = ("ReviewComment",) +__all__ = ("PullRequestReviewRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0354.py b/githubkit/versions/v2022_11_28/models/group_0354.py index 04228fcf4..d7938b075 100644 --- a/githubkit/versions/v2022_11_28/models/group_0354.py +++ b/githubkit/versions/v2022_11_28/models/group_0354.py @@ -9,21 +9,80 @@ 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 + + +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`." + ) + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + + +class PullRequestReviewPropLinks(GitHubModel): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtml = Field() + pull_request: PullRequestReviewPropLinksPropPullRequest = Field() + + +class PullRequestReviewPropLinksPropHtml(GitHubModel): + """PullRequestReviewPropLinksPropHtml""" -from .group_0266 import Link + href: str = Field() -class ReviewCommentPropLinks(GitHubModel): - """ReviewCommentPropLinks""" +class PullRequestReviewPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewPropLinksPropPullRequest""" - 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") + href: str = Field() -model_rebuild(ReviewCommentPropLinks) +model_rebuild(PullRequestReview) +model_rebuild(PullRequestReviewPropLinks) +model_rebuild(PullRequestReviewPropLinksPropHtml) +model_rebuild(PullRequestReviewPropLinksPropPullRequest) -__all__ = ("ReviewCommentPropLinks",) +__all__ = ( + "PullRequestReview", + "PullRequestReviewPropLinks", + "PullRequestReviewPropLinksPropHtml", + "PullRequestReviewPropLinksPropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0355.py b/githubkit/versions/v2022_11_28/models/group_0355.py index 1f2efa2a0..5bfec616c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0355.py +++ b/githubkit/versions/v2022_11_28/models/group_0355.py @@ -15,34 +15,84 @@ 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_0045 import ReactionRollup +from .group_0356 import ReviewCommentPropLinks -class ReleaseAsset(GitHubModel): - """Release Asset +class ReviewComment(GitHubModel): + """Legacy Review Comment - Data related to a release. + Legacy Review Comment """ url: str = Field() - browser_download_url: str = Field() + pull_request_review_id: Union[int, None] = Field() id: int = Field() node_id: str = Field() - name: str = Field(description="The file name of the asset.") - label: Union[str, None] = Field() - state: Literal["uploaded", "open"] = Field( - description="State of the release asset." - ) - content_type: str = Field() - size: int = Field() - digest: Union[str, None] = Field() - download_count: int = Field() + 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() - uploader: Union[None, SimpleUser] = 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.", + ) + 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.", + ) -model_rebuild(ReleaseAsset) +model_rebuild(ReviewComment) -__all__ = ("ReleaseAsset",) +__all__ = ("ReviewComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0356.py b/githubkit/versions/v2022_11_28/models/group_0356.py index 4a6e294cf..5b13a0aa1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0356.py +++ b/githubkit/versions/v2022_11_28/models/group_0356.py @@ -9,59 +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_0003 import SimpleUser -from .group_0044 import ReactionRollup -from .group_0355 import ReleaseAsset +from .group_0268 import Link -class Release(GitHubModel): - """Release - A release. - """ +class ReviewCommentPropLinks(GitHubModel): + """ReviewCommentPropLinks""" - 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") + 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(Release) +model_rebuild(ReviewCommentPropLinks) -__all__ = ("Release",) +__all__ = ("ReviewCommentPropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0357.py b/githubkit/versions/v2022_11_28/models/group_0357.py index e30bd3be3..1f2efa2a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0357.py +++ b/githubkit/versions/v2022_11_28/models/group_0357.py @@ -9,23 +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 .group_0003 import SimpleUser + -class ReleaseNotesContent(GitHubModel): - """Generated Release Notes Content +class ReleaseAsset(GitHubModel): + """Release Asset - Generated name and body describing a release + Data related to a release. """ - name: str = Field(description="The generated name of the release") - body: str = Field( - description="The generated body describing the contents of the release supporting markdown formatting" + url: str = Field() + browser_download_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="The file name of the asset.") + label: Union[str, None] = Field() + state: Literal["uploaded", "open"] = Field( + description="State of the release asset." ) + content_type: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + download_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + uploader: Union[None, SimpleUser] = Field() -model_rebuild(ReleaseNotesContent) +model_rebuild(ReleaseAsset) -__all__ = ("ReleaseNotesContent",) +__all__ = ("ReleaseAsset",) diff --git a/githubkit/versions/v2022_11_28/models/group_0358.py b/githubkit/versions/v2022_11_28/models/group_0358.py index 0e31221c5..9337be39d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0358.py +++ b/githubkit/versions/v2022_11_28/models/group_0358.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,53 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0045 import ReactionRollup +from .group_0357 import ReleaseAsset -class RepositoryRuleRulesetInfo(GitHubModel): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +class Release(GitHubModel): + """Release + + A release. """ - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", + 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." ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + immutable: Missing[bool] = Field( + default=UNSET, description="Whether or not the release is immutable." ) - 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(RepositoryRuleRulesetInfo) +model_rebuild(Release) -__all__ = ("RepositoryRuleRulesetInfo",) +__all__ = ("Release",) diff --git a/githubkit/versions/v2022_11_28/models/group_0359.py b/githubkit/versions/v2022_11_28/models/group_0359.py index 7929bea32..e30bd3be3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0359.py +++ b/githubkit/versions/v2022_11_28/models/group_0359.py @@ -9,32 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof0(GitHubModel): - """RepositoryRuleDetailedOneof0""" +class ReleaseNotesContent(GitHubModel): + """Generated Release Notes Content - type: Literal["creation"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + Generated name and body describing a release + """ + + name: str = Field(description="The generated name of the release") + body: str = Field( + description="The generated body describing the contents of the release supporting markdown formatting" ) -model_rebuild(RepositoryRuleDetailedOneof0) +model_rebuild(ReleaseNotesContent) -__all__ = ("RepositoryRuleDetailedOneof0",) +__all__ = ("ReleaseNotesContent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0360.py b/githubkit/versions/v2022_11_28/models/group_0360.py index a0a673ea5..0e31221c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0360.py +++ b/githubkit/versions/v2022_11_28/models/group_0360.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0139 import RepositoryRuleUpdatePropParameters +class RepositoryRuleRulesetInfo(GitHubModel): + """repository ruleset data for rule -class RepositoryRuleDetailedOneof1(GitHubModel): - """RepositoryRuleDetailedOneof1""" + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - 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 RepositoryRuleDetailedOneof1(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof1) +model_rebuild(RepositoryRuleRulesetInfo) -__all__ = ("RepositoryRuleDetailedOneof1",) +__all__ = ("RepositoryRuleRulesetInfo",) diff --git a/githubkit/versions/v2022_11_28/models/group_0361.py b/githubkit/versions/v2022_11_28/models/group_0361.py index ff93ecfb1..7929bea32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0361.py +++ b/githubkit/versions/v2022_11_28/models/group_0361.py @@ -18,10 +18,10 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof2(GitHubModel): - """RepositoryRuleDetailedOneof2""" +class RepositoryRuleDetailedOneof0(GitHubModel): + """RepositoryRuleDetailedOneof0""" - type: Literal["deletion"] = 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 RepositoryRuleDetailedOneof2(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof2) +model_rebuild(RepositoryRuleDetailedOneof0) -__all__ = ("RepositoryRuleDetailedOneof2",) +__all__ = ("RepositoryRuleDetailedOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0362.py b/githubkit/versions/v2022_11_28/models/group_0362.py index 7db86577f..05669f898 100644 --- a/githubkit/versions/v2022_11_28/models/group_0362.py +++ b/githubkit/versions/v2022_11_28/models/group_0362.py @@ -17,11 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0141 import RepositoryRuleUpdatePropParameters -class RepositoryRuleDetailedOneof3(GitHubModel): - """RepositoryRuleDetailedOneof3""" - type: Literal["required_linear_history"] = Field() +class RepositoryRuleDetailedOneof1(GitHubModel): + """RepositoryRuleDetailedOneof1""" + + 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.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof3(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof3) +model_rebuild(RepositoryRuleDetailedOneof1) -__all__ = ("RepositoryRuleDetailedOneof3",) +__all__ = ("RepositoryRuleDetailedOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0363.py b/githubkit/versions/v2022_11_28/models/group_0363.py index 92b5529ff..ff93ecfb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0363.py +++ b/githubkit/versions/v2022_11_28/models/group_0363.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0142 import RepositoryRuleMergeQueuePropParameters +class RepositoryRuleDetailedOneof2(GitHubModel): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof4(GitHubModel): - """RepositoryRuleDetailedOneof4""" - - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = 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.", @@ -38,6 +35,6 @@ class RepositoryRuleDetailedOneof4(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof4) +model_rebuild(RepositoryRuleDetailedOneof2) -__all__ = ("RepositoryRuleDetailedOneof4",) +__all__ = ("RepositoryRuleDetailedOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0364.py b/githubkit/versions/v2022_11_28/models/group_0364.py index 3fdbb147f..7db86577f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0364.py +++ b/githubkit/versions/v2022_11_28/models/group_0364.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0144 import RepositoryRuleRequiredDeploymentsPropParameters +class RepositoryRuleDetailedOneof3(GitHubModel): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof5(GitHubModel): - """RepositoryRuleDetailedOneof5""" - - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = 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 RepositoryRuleDetailedOneof5(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof5) +model_rebuild(RepositoryRuleDetailedOneof3) -__all__ = ("RepositoryRuleDetailedOneof5",) +__all__ = ("RepositoryRuleDetailedOneof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_0365.py b/githubkit/versions/v2022_11_28/models/group_0365.py index e9b15495d..b03dadfa7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0365.py +++ b/githubkit/versions/v2022_11_28/models/group_0365.py @@ -17,11 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0144 import RepositoryRuleMergeQueuePropParameters -class RepositoryRuleDetailedOneof6(GitHubModel): - """RepositoryRuleDetailedOneof6""" - type: Literal["required_signatures"] = Field() +class RepositoryRuleDetailedOneof4(GitHubModel): + """RepositoryRuleDetailedOneof4""" + + 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.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof6(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof6) +model_rebuild(RepositoryRuleDetailedOneof4) -__all__ = ("RepositoryRuleDetailedOneof6",) +__all__ = ("RepositoryRuleDetailedOneof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_0366.py b/githubkit/versions/v2022_11_28/models/group_0366.py index 077ea6a90..90eaa22c9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0366.py +++ b/githubkit/versions/v2022_11_28/models/group_0366.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0147 import RepositoryRulePullRequestPropParameters +from .group_0146 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleDetailedOneof7(GitHubModel): - """RepositoryRuleDetailedOneof7""" +class RepositoryRuleDetailedOneof5(GitHubModel): + """RepositoryRuleDetailedOneof5""" - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + 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.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof7(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof7) +model_rebuild(RepositoryRuleDetailedOneof5) -__all__ = ("RepositoryRuleDetailedOneof7",) +__all__ = ("RepositoryRuleDetailedOneof5",) diff --git a/githubkit/versions/v2022_11_28/models/group_0367.py b/githubkit/versions/v2022_11_28/models/group_0367.py index 3bd299985..e9b15495d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0367.py +++ b/githubkit/versions/v2022_11_28/models/group_0367.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0149 import RepositoryRuleRequiredStatusChecksPropParameters +class RepositoryRuleDetailedOneof6(GitHubModel): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof8(GitHubModel): - """RepositoryRuleDetailedOneof8""" - - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = 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 RepositoryRuleDetailedOneof8(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof8) +model_rebuild(RepositoryRuleDetailedOneof6) -__all__ = ("RepositoryRuleDetailedOneof8",) +__all__ = ("RepositoryRuleDetailedOneof6",) diff --git a/githubkit/versions/v2022_11_28/models/group_0368.py b/githubkit/versions/v2022_11_28/models/group_0368.py index 3f83e7bc3..82438e847 100644 --- a/githubkit/versions/v2022_11_28/models/group_0368.py +++ b/githubkit/versions/v2022_11_28/models/group_0368.py @@ -17,11 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0149 import RepositoryRulePullRequestPropParameters -class RepositoryRuleDetailedOneof9(GitHubModel): - """RepositoryRuleDetailedOneof9""" - type: Literal["non_fast_forward"] = Field() +class RepositoryRuleDetailedOneof7(GitHubModel): + """RepositoryRuleDetailedOneof7""" + + 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.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof9(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof9) +model_rebuild(RepositoryRuleDetailedOneof7) -__all__ = ("RepositoryRuleDetailedOneof9",) +__all__ = ("RepositoryRuleDetailedOneof7",) diff --git a/githubkit/versions/v2022_11_28/models/group_0369.py b/githubkit/versions/v2022_11_28/models/group_0369.py index 8b18825e7..ba07ea23e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0369.py +++ b/githubkit/versions/v2022_11_28/models/group_0369.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0151 import RepositoryRuleCommitMessagePatternPropParameters +from .group_0151 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleDetailedOneof10(GitHubModel): - """RepositoryRuleDetailedOneof10""" +class RepositoryRuleDetailedOneof8(GitHubModel): + """RepositoryRuleDetailedOneof8""" - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = 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 RepositoryRuleDetailedOneof10(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof10) +model_rebuild(RepositoryRuleDetailedOneof8) -__all__ = ("RepositoryRuleDetailedOneof10",) +__all__ = ("RepositoryRuleDetailedOneof8",) diff --git a/githubkit/versions/v2022_11_28/models/group_0370.py b/githubkit/versions/v2022_11_28/models/group_0370.py index 476cdfdc4..3f83e7bc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0370.py +++ b/githubkit/versions/v2022_11_28/models/group_0370.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0153 import RepositoryRuleCommitAuthorEmailPatternPropParameters +class RepositoryRuleDetailedOneof9(GitHubModel): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof11(GitHubModel): - """RepositoryRuleDetailedOneof11""" - - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET - ) + type: Literal["non_fast_forward"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof11(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof11) +model_rebuild(RepositoryRuleDetailedOneof9) -__all__ = ("RepositoryRuleDetailedOneof11",) +__all__ = ("RepositoryRuleDetailedOneof9",) diff --git a/githubkit/versions/v2022_11_28/models/group_0371.py b/githubkit/versions/v2022_11_28/models/group_0371.py index 398b462a1..0f85a9742 100644 --- a/githubkit/versions/v2022_11_28/models/group_0371.py +++ b/githubkit/versions/v2022_11_28/models/group_0371.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0155 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0153 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleDetailedOneof12(GitHubModel): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof10(GitHubModel): + """RepositoryRuleDetailedOneof10""" - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof12(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof12) +model_rebuild(RepositoryRuleDetailedOneof10) -__all__ = ("RepositoryRuleDetailedOneof12",) +__all__ = ("RepositoryRuleDetailedOneof10",) diff --git a/githubkit/versions/v2022_11_28/models/group_0372.py b/githubkit/versions/v2022_11_28/models/group_0372.py index c27e4f023..c3d7c8406 100644 --- a/githubkit/versions/v2022_11_28/models/group_0372.py +++ b/githubkit/versions/v2022_11_28/models/group_0372.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0157 import RepositoryRuleBranchNamePatternPropParameters +from .group_0155 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleDetailedOneof13(GitHubModel): - """RepositoryRuleDetailedOneof13""" +class RepositoryRuleDetailedOneof11(GitHubModel): + """RepositoryRuleDetailedOneof11""" - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof13(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof13) +model_rebuild(RepositoryRuleDetailedOneof11) -__all__ = ("RepositoryRuleDetailedOneof13",) +__all__ = ("RepositoryRuleDetailedOneof11",) diff --git a/githubkit/versions/v2022_11_28/models/group_0373.py b/githubkit/versions/v2022_11_28/models/group_0373.py index c2d73d8f9..1278eef4d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0373.py +++ b/githubkit/versions/v2022_11_28/models/group_0373.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0159 import RepositoryRuleTagNamePatternPropParameters +from .group_0157 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleDetailedOneof14(GitHubModel): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof12(GitHubModel): + """RepositoryRuleDetailedOneof12""" - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof14(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof14) +model_rebuild(RepositoryRuleDetailedOneof12) -__all__ = ("RepositoryRuleDetailedOneof14",) +__all__ = ("RepositoryRuleDetailedOneof12",) diff --git a/githubkit/versions/v2022_11_28/models/group_0374.py b/githubkit/versions/v2022_11_28/models/group_0374.py index 76dad258a..060809e6a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0374.py +++ b/githubkit/versions/v2022_11_28/models/group_0374.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0161 import RepositoryRuleFilePathRestrictionPropParameters +from .group_0159 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryRuleDetailedOneof15(GitHubModel): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof13(GitHubModel): + """RepositoryRuleDetailedOneof13""" - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof15(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof15) +model_rebuild(RepositoryRuleDetailedOneof13) -__all__ = ("RepositoryRuleDetailedOneof15",) +__all__ = ("RepositoryRuleDetailedOneof13",) diff --git a/githubkit/versions/v2022_11_28/models/group_0375.py b/githubkit/versions/v2022_11_28/models/group_0375.py index c55fe7153..1671e092d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0375.py +++ b/githubkit/versions/v2022_11_28/models/group_0375.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0163 import RepositoryRuleMaxFilePathLengthPropParameters +from .group_0161 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleDetailedOneof16(GitHubModel): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof14(GitHubModel): + """RepositoryRuleDetailedOneof14""" - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof16(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof16) +model_rebuild(RepositoryRuleDetailedOneof14) -__all__ = ("RepositoryRuleDetailedOneof16",) +__all__ = ("RepositoryRuleDetailedOneof14",) diff --git a/githubkit/versions/v2022_11_28/models/group_0376.py b/githubkit/versions/v2022_11_28/models/group_0376.py index 32889d488..79b199fcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0376.py +++ b/githubkit/versions/v2022_11_28/models/group_0376.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0165 import RepositoryRuleFileExtensionRestrictionPropParameters +from .group_0163 import RepositoryRuleFilePathRestrictionPropParameters -class RepositoryRuleDetailedOneof17(GitHubModel): - """RepositoryRuleDetailedOneof17""" +class RepositoryRuleDetailedOneof15(GitHubModel): + """RepositoryRuleDetailedOneof15""" - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof17(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof17) +model_rebuild(RepositoryRuleDetailedOneof15) -__all__ = ("RepositoryRuleDetailedOneof17",) +__all__ = ("RepositoryRuleDetailedOneof15",) diff --git a/githubkit/versions/v2022_11_28/models/group_0377.py b/githubkit/versions/v2022_11_28/models/group_0377.py index 3277a9dc9..3bad02bd7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0377.py +++ b/githubkit/versions/v2022_11_28/models/group_0377.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0167 import RepositoryRuleMaxFileSizePropParameters +from .group_0165 import RepositoryRuleMaxFilePathLengthPropParameters -class RepositoryRuleDetailedOneof18(GitHubModel): - """RepositoryRuleDetailedOneof18""" +class RepositoryRuleDetailedOneof16(GitHubModel): + """RepositoryRuleDetailedOneof16""" - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof18(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof18) +model_rebuild(RepositoryRuleDetailedOneof16) -__all__ = ("RepositoryRuleDetailedOneof18",) +__all__ = ("RepositoryRuleDetailedOneof16",) diff --git a/githubkit/versions/v2022_11_28/models/group_0378.py b/githubkit/versions/v2022_11_28/models/group_0378.py index b65911914..f71a74a8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0378.py +++ b/githubkit/versions/v2022_11_28/models/group_0378.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0170 import RepositoryRuleWorkflowsPropParameters +from .group_0167 import RepositoryRuleFileExtensionRestrictionPropParameters -class RepositoryRuleDetailedOneof19(GitHubModel): - """RepositoryRuleDetailedOneof19""" +class RepositoryRuleDetailedOneof17(GitHubModel): + """RepositoryRuleDetailedOneof17""" - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof19(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof19) +model_rebuild(RepositoryRuleDetailedOneof17) -__all__ = ("RepositoryRuleDetailedOneof19",) +__all__ = ("RepositoryRuleDetailedOneof17",) diff --git a/githubkit/versions/v2022_11_28/models/group_0379.py b/githubkit/versions/v2022_11_28/models/group_0379.py index 7807e13bf..19b396e9f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0379.py +++ b/githubkit/versions/v2022_11_28/models/group_0379.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0172 import RepositoryRuleCodeScanningPropParameters +from .group_0169 import RepositoryRuleMaxFileSizePropParameters -class RepositoryRuleDetailedOneof20(GitHubModel): - """RepositoryRuleDetailedOneof20""" +class RepositoryRuleDetailedOneof18(GitHubModel): + """RepositoryRuleDetailedOneof18""" - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +38,6 @@ class RepositoryRuleDetailedOneof20(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof20) +model_rebuild(RepositoryRuleDetailedOneof18) -__all__ = ("RepositoryRuleDetailedOneof20",) +__all__ = ("RepositoryRuleDetailedOneof18",) diff --git a/githubkit/versions/v2022_11_28/models/group_0380.py b/githubkit/versions/v2022_11_28/models/group_0380.py index 8f13d7caa..9550687c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0380.py +++ b/githubkit/versions/v2022_11_28/models/group_0380.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,138 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0038 import ( - SecretScanningLocationCommit, - SecretScanningLocationDiscussionComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestReview, - SecretScanningLocationWikiCommit, -) -from .group_0039 import ( - SecretScanningLocationIssueComment, - SecretScanningLocationIssueTitle, - SecretScanningLocationPullRequestReviewComment, - SecretScanningLocationPullRequestTitle, -) -from .group_0040 import ( - SecretScanningLocationDiscussionBody, - SecretScanningLocationPullRequestComment, -) +from .group_0172 import RepositoryRuleWorkflowsPropParameters -class SecretScanningAlert(GitHubModel): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof19(GitHubModel): + """RepositoryRuleDetailedOneof19""" - 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( + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = 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." + description="The type of source for the ruleset that includes this rule.", ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + description="The name of the source of the ruleset that includes this rule.", ) - 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.", - ) - is_base64_encoded: Missing[Union[bool, None]] = Field( - default=UNSET, - description="A boolean value representing whether or not alert is base64 encoded", - ) - first_location_detected: Missing[ - Union[ - None, - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - has_more_locations: Missing[bool] = Field( - default=UNSET, - description="A boolean value representing whether or not the token in the alert was detected in more than one location.", + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningAlert) +model_rebuild(RepositoryRuleDetailedOneof19) -__all__ = ("SecretScanningAlert",) +__all__ = ("RepositoryRuleDetailedOneof19",) diff --git a/githubkit/versions/v2022_11_28/models/group_0381.py b/githubkit/versions/v2022_11_28/models/group_0381.py index 6e4fde1e0..a4af0bde6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0381.py +++ b/githubkit/versions/v2022_11_28/models/group_0381.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,69 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0038 import ( - SecretScanningLocationCommit, - SecretScanningLocationDiscussionComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestReview, - SecretScanningLocationWikiCommit, -) -from .group_0039 import ( - SecretScanningLocationIssueComment, - SecretScanningLocationIssueTitle, - SecretScanningLocationPullRequestReviewComment, - SecretScanningLocationPullRequestTitle, -) -from .group_0040 import ( - SecretScanningLocationDiscussionBody, - SecretScanningLocationPullRequestComment, -) +from .group_0174 import RepositoryRuleCodeScanningPropParameters -class SecretScanningLocation(GitHubModel): - """SecretScanningLocation""" +class RepositoryRuleDetailedOneof20(GitHubModel): + """RepositoryRuleDetailedOneof20""" - 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( + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = 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.", + 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." ) - details: Missing[ - Union[ - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) -model_rebuild(SecretScanningLocation) +model_rebuild(RepositoryRuleDetailedOneof20) -__all__ = ("SecretScanningLocation",) +__all__ = ("RepositoryRuleDetailedOneof20",) diff --git a/githubkit/versions/v2022_11_28/models/group_0382.py b/githubkit/versions/v2022_11_28/models/group_0382.py index fa37297f6..828bf9d40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0382.py +++ b/githubkit/versions/v2022_11_28/models/group_0382.py @@ -18,22 +18,138 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0039 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0040 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0041 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -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 SecretScanningAlert(GitHubModel): + """SecretScanningAlert""" + + 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`.", ) - expire_at: Missing[Union[datetime, None]] = Field( + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( default=UNSET, - description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - token_type: Missing[str] = Field( - default=UNSET, description="The token type this bypass is for." + 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( + 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.", + ) + is_base64_encoded: Missing[Union[bool, None]] = Field( + default=UNSET, + description="A boolean value representing whether or not alert is base64 encoded", + ) + first_location_detected: Missing[ + Union[ + None, + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + has_more_locations: Missing[bool] = Field( + default=UNSET, + description="A boolean value representing whether or not the token in the alert was detected in more than one location.", ) -model_rebuild(SecretScanningPushProtectionBypass) +model_rebuild(SecretScanningAlert) -__all__ = ("SecretScanningPushProtectionBypass",) +__all__ = ("SecretScanningAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0383.py b/githubkit/versions/v2022_11_28/models/group_0383.py index 11ebab9e4..600b783db 100644 --- a/githubkit/versions/v2022_11_28/models/group_0383.py +++ b/githubkit/versions/v2022_11_28/models/group_0383.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,70 +17,69 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0039 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0040 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0041 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -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 SecretScanningScan(GitHubModel): - """SecretScanningScan - - Information on a single scan performed by secret scanning on the repository - """ - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( - default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", - ) - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", - ) - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( +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 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"', + 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) -model_rebuild(SecretScanningScanHistory) -model_rebuild(SecretScanningScan) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) +model_rebuild(SecretScanningLocation) -__all__ = ( - "SecretScanningScan", - "SecretScanningScanHistory", - "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", -) +__all__ = ("SecretScanningLocation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0384.py b/githubkit/versions/v2022_11_28/models/group_0384.py index 947f5d932..fa37297f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0384.py +++ b/githubkit/versions/v2022_11_28/models/group_0384.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,18 +19,21 @@ from githubkit.utils import UNSET -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" +class SecretScanningPushProtectionBypass(GitHubModel): + """SecretScanningPushProtectionBypass""" - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" + reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( + Field(default=UNSET, description="The reason for bypassing push protection.") ) - pattern_scope: Missing[str] = Field( + expire_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + 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(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) +model_rebuild(SecretScanningPushProtectionBypass) -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) +__all__ = ("SecretScanningPushProtectionBypass",) diff --git a/githubkit/versions/v2022_11_28/models/group_0385.py b/githubkit/versions/v2022_11_28/models/group_0385.py index b09ea6fff..11ebab9e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0385.py +++ b/githubkit/versions/v2022_11_28/models/group_0385.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,119 +19,69 @@ from githubkit.utils import UNSET -class RepositoryAdvisoryCreate(GitHubModel): - """RepositoryAdvisoryCreate""" +class SecretScanningScanHistory(GitHubModel): + """SecretScanningScanHistory""" - 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`.", - ) + 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 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"', ) - cvss_vector_string: Missing[Union[str, None]] = Field( + completed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + description="The time that the scan was completed. Empty if the scan is running", ) - start_private_fork: Missing[bool] = Field( + started_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + description="The time that the scan was started. Empty if the scan is pending", ) -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 SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" -class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." + 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"', ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + completed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The time that the scan was completed. Empty if the scan is running", ) - patched_versions: Missing[Union[str, None]] = Field( + started_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", + description="The time that the scan was started. Empty if the scan is pending", ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" ) - - -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." + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', ) -model_rebuild(RepositoryAdvisoryCreate) -model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(SecretScanningScanHistory) +model_rebuild(SecretScanningScan) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) __all__ = ( - "RepositoryAdvisoryCreate", - "RepositoryAdvisoryCreatePropCreditsItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", + "SecretScanningScan", + "SecretScanningScanHistory", + "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0386.py b/githubkit/versions/v2022_11_28/models/group_0386.py index db0858ff6..947f5d932 100644 --- a/githubkit/versions/v2022_11_28/models/group_0386.py +++ b/githubkit/versions/v2022_11_28/models/group_0386.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,92 +16,18 @@ 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""" +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( - Field(description="The name of the package affected by the vulnerability.") + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + pattern_scope: Missing[str] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", - ) - patched_versions: Missing[Union[str, None]] = Field( - default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', ) -model_rebuild(PrivateVulnerabilityReportCreate) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) -__all__ = ( - "PrivateVulnerabilityReportCreate", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0387.py b/githubkit/versions/v2022_11_28/models/group_0387.py index b379d895d..b09ea6fff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0387.py +++ b/githubkit/versions/v2022_11_28/models/group_0387.py @@ -18,30 +18,26 @@ from githubkit.utils import UNSET -class RepositoryAdvisoryUpdate(GitHubModel): - """RepositoryAdvisoryUpdate""" +class RepositoryAdvisoryCreate(GitHubModel): + """RepositoryAdvisoryCreate""" - summary: Missing[str] = Field( - max_length=1024, default=UNSET, description="A short summary of the advisory." + summary: str = Field( + max_length=1024, description="A short summary of the advisory." ) - description: Missing[str] = Field( + description: 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.", - ) + 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[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( + credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( Field( default=UNSET, alias="credits", @@ -58,21 +54,14 @@ class RepositoryAdvisoryUpdate(GitHubModel): 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( + start_private_fork: Missing[bool] = Field( default=UNSET, - description="A list of team slugs which have been granted write access to the advisory.", + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", ) -class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryUpdatePropCreditsItems""" +class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryCreatePropCreditsItems""" login: str = Field(description="The username of the user credited.") type: Literal[ @@ -89,10 +78,10 @@ class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): ] = Field(description="The type of credit the user is receiving.") -class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" +class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( description="The name of the package affected by the vulnerability." ) vulnerable_version_range: Missing[Union[str, None]] = Field( @@ -108,8 +97,8 @@ class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): ) -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage The name of the package affected by the vulnerability. """ @@ -134,14 +123,14 @@ class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): ) -model_rebuild(RepositoryAdvisoryUpdate) -model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryAdvisoryCreate) +model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) __all__ = ( - "RepositoryAdvisoryUpdate", - "RepositoryAdvisoryUpdatePropCreditsItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", + "RepositoryAdvisoryCreate", + "RepositoryAdvisoryCreatePropCreditsItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0388.py b/githubkit/versions/v2022_11_28/models/group_0388.py index e8f958a86..db0858ff6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0388.py +++ b/githubkit/versions/v2022_11_28/models/group_0388.py @@ -9,26 +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 -from .group_0003 import SimpleUser +class PrivateVulnerabilityReportCreate(GitHubModel): + """PrivateVulnerabilityReportCreate""" -class Stargazer(GitHubModel): - """Stargazer + 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.", + ) - Stargazer + +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. """ - starred_at: datetime = Field() - user: Union[None, SimpleUser] = 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(Stargazer) +model_rebuild(PrivateVulnerabilityReportCreate) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) -__all__ = ("Stargazer",) +__all__ = ( + "PrivateVulnerabilityReportCreate", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0389.py b/githubkit/versions/v2022_11_28/models/group_0389.py index 9fc28af36..b379d895d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0389.py +++ b/githubkit/versions/v2022_11_28/models/group_0389.py @@ -9,22 +9,139 @@ 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 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 CommitActivity(GitHubModel): - """Commit Activity +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - Commit Activity + The name of the package affected by the vulnerability. """ - days: list[int] = Field() - total: int = Field() - week: 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(CommitActivity) +model_rebuild(RepositoryAdvisoryUpdate) +model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) -__all__ = ("CommitActivity",) +__all__ = ( + "RepositoryAdvisoryUpdate", + "RepositoryAdvisoryUpdatePropCreditsItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0390.py b/githubkit/versions/v2022_11_28/models/group_0390.py index 60311444a..e8f958a86 100644 --- a/githubkit/versions/v2022_11_28/models/group_0390.py +++ b/githubkit/versions/v2022_11_28/models/group_0390.py @@ -9,41 +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 ContributorActivity(GitHubModel): - """Contributor Activity +class Stargazer(GitHubModel): + """Stargazer - Contributor Activity + Stargazer """ - author: Union[None, SimpleUser] = Field() - total: int = Field() - weeks: list[ContributorActivityPropWeeksItems] = Field() + starred_at: datetime = Field() + user: Union[None, SimpleUser] = Field() -class ContributorActivityPropWeeksItems(GitHubModel): - """ContributorActivityPropWeeksItems""" +model_rebuild(Stargazer) - 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", -) +__all__ = ("Stargazer",) diff --git a/githubkit/versions/v2022_11_28/models/group_0391.py b/githubkit/versions/v2022_11_28/models/group_0391.py index 43efe1baa..9fc28af36 100644 --- a/githubkit/versions/v2022_11_28/models/group_0391.py +++ b/githubkit/versions/v2022_11_28/models/group_0391.py @@ -14,13 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ParticipationStats(GitHubModel): - """Participation Stats""" +class CommitActivity(GitHubModel): + """Commit Activity - all_: list[int] = Field(alias="all") - owner: list[int] = Field() + Commit Activity + """ + days: list[int] = Field() + total: int = Field() + week: int = Field() -model_rebuild(ParticipationStats) -__all__ = ("ParticipationStats",) +model_rebuild(CommitActivity) + +__all__ = ("CommitActivity",) diff --git a/githubkit/versions/v2022_11_28/models/group_0392.py b/githubkit/versions/v2022_11_28/models/group_0392.py index 146a849ce..60311444a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0392.py +++ b/githubkit/versions/v2022_11_28/models/group_0392.py @@ -9,32 +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 RepositorySubscription(GitHubModel): - """Repository Invitation - Repository invitations let you manage who you collaborate with. +class ContributorActivity(GitHubModel): + """Contributor Activity + + Contributor Activity """ - 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() + 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(RepositorySubscription) +model_rebuild(ContributorActivity) +model_rebuild(ContributorActivityPropWeeksItems) -__all__ = ("RepositorySubscription",) +__all__ = ( + "ContributorActivity", + "ContributorActivityPropWeeksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0393.py b/githubkit/versions/v2022_11_28/models/group_0393.py index c5f394186..43efe1baa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0393.py +++ b/githubkit/versions/v2022_11_28/models/group_0393.py @@ -14,30 +14,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class Tag(GitHubModel): - """Tag +class ParticipationStats(GitHubModel): + """Participation Stats""" - Tag - """ + all_: list[int] = Field(alias="all") + owner: list[int] = Field() - name: str = Field() - commit: TagPropCommit = Field() - zipball_url: str = Field() - tarball_url: str = Field() - node_id: str = Field() +model_rebuild(ParticipationStats) -class TagPropCommit(GitHubModel): - """TagPropCommit""" - - sha: str = Field() - url: str = Field() - - -model_rebuild(Tag) -model_rebuild(TagPropCommit) - -__all__ = ( - "Tag", - "TagPropCommit", -) +__all__ = ("ParticipationStats",) diff --git a/githubkit/versions/v2022_11_28/models/group_0394.py b/githubkit/versions/v2022_11_28/models/group_0394.py index 527c8ec3d..146a849ce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0394.py +++ b/githubkit/versions/v2022_11_28/models/group_0394.py @@ -9,26 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class TagProtection(GitHubModel): - """Tag protection +class RepositorySubscription(GitHubModel): + """Repository Invitation - Tag protection + Repository invitations let you manage who you collaborate with. """ - 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() + 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(TagProtection) +model_rebuild(RepositorySubscription) -__all__ = ("TagProtection",) +__all__ = ("RepositorySubscription",) diff --git a/githubkit/versions/v2022_11_28/models/group_0395.py b/githubkit/versions/v2022_11_28/models/group_0395.py index 72e23363a..c5f394186 100644 --- a/githubkit/versions/v2022_11_28/models/group_0395.py +++ b/githubkit/versions/v2022_11_28/models/group_0395.py @@ -14,15 +14,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class Topic(GitHubModel): - """Topic +class Tag(GitHubModel): + """Tag - A topic aggregates entities that are related to a subject. + Tag """ - names: list[str] = Field() + name: str = Field() + commit: TagPropCommit = Field() + zipball_url: str = Field() + tarball_url: str = Field() + node_id: str = Field() -model_rebuild(Topic) +class TagPropCommit(GitHubModel): + """TagPropCommit""" -__all__ = ("Topic",) + 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_0396.py b/githubkit/versions/v2022_11_28/models/group_0396.py index 8f9d3f9f8..527c8ec3d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0396.py +++ b/githubkit/versions/v2022_11_28/models/group_0396.py @@ -9,21 +9,26 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class TagProtection(GitHubModel): + """Tag protection -class Traffic(GitHubModel): - """Traffic""" + Tag protection + """ - timestamp: datetime = Field() - uniques: int = Field() - count: int = Field() + id: Missing[int] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + pattern: str = Field() -model_rebuild(Traffic) +model_rebuild(TagProtection) -__all__ = ("Traffic",) +__all__ = ("TagProtection",) diff --git a/githubkit/versions/v2022_11_28/models/group_0397.py b/githubkit/versions/v2022_11_28/models/group_0397.py index 31e4f48eb..72e23363a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0397.py +++ b/githubkit/versions/v2022_11_28/models/group_0397.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0396 import Traffic +class Topic(GitHubModel): + """Topic -class CloneTraffic(GitHubModel): - """Clone Traffic - - Clone Traffic + A topic aggregates entities that are related to a subject. """ - count: int = Field() - uniques: int = Field() - clones: list[Traffic] = Field() + names: list[str] = Field() -model_rebuild(CloneTraffic) +model_rebuild(Topic) -__all__ = ("CloneTraffic",) +__all__ = ("Topic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0398.py b/githubkit/versions/v2022_11_28/models/group_0398.py index 97ab65074..8f9d3f9f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0398.py +++ b/githubkit/versions/v2022_11_28/models/group_0398.py @@ -9,23 +9,21 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ContentTraffic(GitHubModel): - """Content Traffic - - Content Traffic - """ +class Traffic(GitHubModel): + """Traffic""" - path: str = Field() - title: str = Field() - count: int = Field() + timestamp: datetime = Field() uniques: int = Field() + count: int = Field() -model_rebuild(ContentTraffic) +model_rebuild(Traffic) -__all__ = ("ContentTraffic",) +__all__ = ("Traffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0399.py b/githubkit/versions/v2022_11_28/models/group_0399.py index 7ced93dd8..ca9b88d2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0399.py +++ b/githubkit/versions/v2022_11_28/models/group_0399.py @@ -13,18 +13,20 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0398 import Traffic -class ReferrerTraffic(GitHubModel): - """Referrer Traffic - Referrer Traffic +class CloneTraffic(GitHubModel): + """Clone Traffic + + Clone Traffic """ - referrer: str = Field() count: int = Field() uniques: int = Field() + clones: list[Traffic] = Field() -model_rebuild(ReferrerTraffic) +model_rebuild(CloneTraffic) -__all__ = ("ReferrerTraffic",) +__all__ = ("CloneTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0400.py b/githubkit/versions/v2022_11_28/models/group_0400.py index 80afd3cae..97ab65074 100644 --- a/githubkit/versions/v2022_11_28/models/group_0400.py +++ b/githubkit/versions/v2022_11_28/models/group_0400.py @@ -13,20 +13,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0396 import Traffic +class ContentTraffic(GitHubModel): + """Content Traffic -class ViewTraffic(GitHubModel): - """View Traffic - - View Traffic + Content Traffic """ + path: str = Field() + title: str = Field() count: int = Field() uniques: int = Field() - views: list[Traffic] = Field() -model_rebuild(ViewTraffic) +model_rebuild(ContentTraffic) -__all__ = ("ViewTraffic",) +__all__ = ("ContentTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0401.py b/githubkit/versions/v2022_11_28/models/group_0401.py index 46d30061f..7ced93dd8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0401.py +++ b/githubkit/versions/v2022_11_28/models/group_0401.py @@ -9,38 +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 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 ReferrerTraffic(GitHubModel): + """Referrer Traffic -class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): - """SearchResultTextMatchesItemsPropMatchesItems""" + Referrer Traffic + """ - text: Missing[str] = Field(default=UNSET) - indices: Missing[list[int]] = Field(default=UNSET) + referrer: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(SearchResultTextMatchesItems) -model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) +model_rebuild(ReferrerTraffic) -__all__ = ( - "SearchResultTextMatchesItems", - "SearchResultTextMatchesItemsPropMatchesItems", -) +__all__ = ("ReferrerTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0402.py b/githubkit/versions/v2022_11_28/models/group_0402.py index 9706c8ba6..8bf6dfb60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0402.py +++ b/githubkit/versions/v2022_11_28/models/group_0402.py @@ -9,56 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0061 import MinimalRepository -from .group_0401 import SearchResultTextMatchesItems +from .group_0398 import Traffic -class CodeSearchResultItem(GitHubModel): - """Code Search Result Item +class ViewTraffic(GitHubModel): + """View Traffic - Code Search Result Item + View Traffic """ - name: str = Field() - path: str = Field() - sha: str = Field() - url: str = Field() - git_url: str = Field() - html_url: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - file_size: Missing[int] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - last_modified_at: Missing[datetime] = Field(default=UNSET) - line_numbers: Missing[list[str]] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - - -class SearchCodeGetResponse200(GitHubModel): - """SearchCodeGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CodeSearchResultItem] = Field() + count: int = Field() + uniques: int = Field() + views: list[Traffic] = Field() -model_rebuild(CodeSearchResultItem) -model_rebuild(SearchCodeGetResponse200) +model_rebuild(ViewTraffic) -__all__ = ( - "CodeSearchResultItem", - "SearchCodeGetResponse200", -) +__all__ = ("ViewTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0403.py b/githubkit/versions/v2022_11_28/models/group_0403.py index 694eca4c3..46d30061f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0403.py +++ b/githubkit/versions/v2022_11_28/models/group_0403.py @@ -17,59 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0061 import MinimalRepository -from .group_0226 import GitUser -from .group_0401 import SearchResultTextMatchesItems -from .group_0404 import CommitSearchResultItemPropCommit - - -class CommitSearchResultItem(GitHubModel): - """Commit Search Result Item - - Commit Search Result Item - """ - - url: str = Field() - sha: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitSearchResultItemPropCommit = Field() - author: Union[None, SimpleUser] = Field() - committer: Union[None, GitUser] = Field() - parents: list[CommitSearchResultItemPropParentsItems] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - node_id: str = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) +class SearchResultTextMatchesItems(GitHubModel): + """SearchResultTextMatchesItems""" -class CommitSearchResultItemPropParentsItems(GitHubModel): - """CommitSearchResultItemPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = 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 SearchCommitsGetResponse200(GitHubModel): - """SearchCommitsGetResponse200""" +class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): + """SearchResultTextMatchesItemsPropMatchesItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CommitSearchResultItem] = Field() + text: Missing[str] = Field(default=UNSET) + indices: Missing[list[int]] = Field(default=UNSET) -model_rebuild(CommitSearchResultItem) -model_rebuild(CommitSearchResultItemPropParentsItems) -model_rebuild(SearchCommitsGetResponse200) +model_rebuild(SearchResultTextMatchesItems) +model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) __all__ = ( - "CommitSearchResultItem", - "CommitSearchResultItemPropParentsItems", - "SearchCommitsGetResponse200", + "SearchResultTextMatchesItems", + "SearchResultTextMatchesItemsPropMatchesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0404.py b/githubkit/versions/v2022_11_28/models/group_0404.py index 68f4da517..949cf711f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0404.py +++ b/githubkit/versions/v2022_11_28/models/group_0404.py @@ -18,43 +18,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0226 import GitUser -from .group_0227 import Verification +from .group_0063 import MinimalRepository +from .group_0403 import SearchResultTextMatchesItems -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 CodeSearchResultItem(GitHubModel): + """Code Search Result Item - -class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): - """CommitSearchResultItemPropCommitPropAuthor""" + Code Search Result Item + """ name: str = Field() - email: str = Field() - date: datetime = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: str = Field() + html_url: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + score: float = Field() + file_size: Missing[int] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + last_modified_at: Missing[datetime] = Field(default=UNSET) + line_numbers: Missing[list[str]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) -class CommitSearchResultItemPropCommitPropTree(GitHubModel): - """CommitSearchResultItemPropCommitPropTree""" +class SearchCodeGetResponse200(GitHubModel): + """SearchCodeGetResponse200""" - sha: str = Field() - url: str = Field() + total_count: int = Field() + incomplete_results: bool = Field() + items: list[CodeSearchResultItem] = Field() -model_rebuild(CommitSearchResultItemPropCommit) -model_rebuild(CommitSearchResultItemPropCommitPropAuthor) -model_rebuild(CommitSearchResultItemPropCommitPropTree) +model_rebuild(CodeSearchResultItem) +model_rebuild(SearchCodeGetResponse200) __all__ = ( - "CommitSearchResultItemPropCommit", - "CommitSearchResultItemPropCommitPropAuthor", - "CommitSearchResultItemPropCommitPropTree", + "CodeSearchResultItem", + "SearchCodeGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0405.py b/githubkit/versions/v2022_11_28/models/group_0405.py index 92b66d73e..5ff802d72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0405.py +++ b/githubkit/versions/v2022_11_28/models/group_0405.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,129 +18,58 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0020 import Repository -from .group_0042 import Milestone -from .group_0043 import IssueType -from .group_0044 import ReactionRollup -from .group_0401 import SearchResultTextMatchesItems +from .group_0063 import MinimalRepository +from .group_0228 import GitUser +from .group_0403 import SearchResultTextMatchesItems +from .group_0406 import CommitSearchResultItemPropCommit -class IssueSearchResultItem(GitHubModel): - """Issue Search Result Item +class CommitSearchResultItem(GitHubModel): + """Commit Search Result Item - Issue Search Result Item + Commit Search Result Item """ url: str = Field() - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() + sha: 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" + 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" ) - 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() + score: float = Field() + node_id: str = Field() text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) - body: Missing[str] = Field(default=UNSET) - score: float = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - draft: Missing[bool] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -class IssueSearchResultItemPropLabelsItems(GitHubModel): - """IssueSearchResultItemPropLabelsItems""" +class CommitSearchResultItemPropParentsItems(GitHubModel): + """CommitSearchResultItemPropParentsItems""" - 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() + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) -class SearchIssuesGetResponse200(GitHubModel): - """SearchIssuesGetResponse200""" +class SearchCommitsGetResponse200(GitHubModel): + """SearchCommitsGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[IssueSearchResultItem] = Field() + items: list[CommitSearchResultItem] = Field() -model_rebuild(IssueSearchResultItem) -model_rebuild(IssueSearchResultItemPropLabelsItems) -model_rebuild(IssueSearchResultItemPropSubIssuesSummary) -model_rebuild(IssueSearchResultItemPropPullRequest) -model_rebuild(SearchIssuesGetResponse200) +model_rebuild(CommitSearchResultItem) +model_rebuild(CommitSearchResultItemPropParentsItems) +model_rebuild(SearchCommitsGetResponse200) __all__ = ( - "IssueSearchResultItem", - "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropPullRequest", - "IssueSearchResultItemPropSubIssuesSummary", - "SearchIssuesGetResponse200", + "CommitSearchResultItem", + "CommitSearchResultItemPropParentsItems", + "SearchCommitsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0406.py b/githubkit/versions/v2022_11_28/models/group_0406.py index 3d783c396..025caad58 100644 --- a/githubkit/versions/v2022_11_28/models/group_0406.py +++ b/githubkit/versions/v2022_11_28/models/group_0406.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -17,40 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0401 import SearchResultTextMatchesItems +from .group_0228 import GitUser +from .group_0229 import Verification -class LabelSearchResultItem(GitHubModel): - """Label Search Result Item +class CommitSearchResultItemPropCommit(GitHubModel): + """CommitSearchResultItemPropCommit""" - Label Search Result Item - """ - - id: int = Field() - node_id: str = Field() + 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() - 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" - ) + email: str = Field() + date: datetime = Field() -class SearchLabelsGetResponse200(GitHubModel): - """SearchLabelsGetResponse200""" +class CommitSearchResultItemPropCommitPropTree(GitHubModel): + """CommitSearchResultItemPropCommitPropTree""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[LabelSearchResultItem] = Field() + sha: str = Field() + url: str = Field() -model_rebuild(LabelSearchResultItem) -model_rebuild(SearchLabelsGetResponse200) +model_rebuild(CommitSearchResultItemPropCommit) +model_rebuild(CommitSearchResultItemPropCommitPropAuthor) +model_rebuild(CommitSearchResultItemPropCommitPropTree) __all__ = ( - "LabelSearchResultItem", - "SearchLabelsGetResponse200", + "CommitSearchResultItemPropCommit", + "CommitSearchResultItemPropCommitPropAuthor", + "CommitSearchResultItemPropCommitPropTree", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0407.py b/githubkit/versions/v2022_11_28/models/group_0407.py index a0cf5c01c..13026f6b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0407.py +++ b/githubkit/versions/v2022_11_28/models/group_0407.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,138 +19,120 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple -from .group_0401 import SearchResultTextMatchesItems +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0043 import Milestone +from .group_0044 import IssueType +from .group_0045 import ReactionRollup +from .group_0046 import SubIssuesSummary +from .group_0403 import SearchResultTextMatchesItems -class RepoSearchResultItem(GitHubModel): - """Repo Search Result Item +class IssueSearchResultItem(GitHubModel): + """Issue Search Result Item - Repo 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() - 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() + 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[SubIssuesSummary] = 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() - 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() + 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() - 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." + 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.", ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + draft: Missing[bool] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." ) - 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" + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - 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) + 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 RepoSearchResultItemPropPermissions(GitHubModel): - """RepoSearchResultItemPropPermissions""" +class IssueSearchResultItemPropPullRequest(GitHubModel): + """IssueSearchResultItemPropPullRequest""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -class SearchRepositoriesGetResponse200(GitHubModel): - """SearchRepositoriesGetResponse200""" +class SearchIssuesGetResponse200(GitHubModel): + """SearchIssuesGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[RepoSearchResultItem] = Field() + items: list[IssueSearchResultItem] = Field() -model_rebuild(RepoSearchResultItem) -model_rebuild(RepoSearchResultItemPropPermissions) -model_rebuild(SearchRepositoriesGetResponse200) +model_rebuild(IssueSearchResultItem) +model_rebuild(IssueSearchResultItemPropLabelsItems) +model_rebuild(IssueSearchResultItemPropPullRequest) +model_rebuild(SearchIssuesGetResponse200) __all__ = ( - "RepoSearchResultItem", - "RepoSearchResultItemPropPermissions", - "SearchRepositoriesGetResponse200", + "IssueSearchResultItem", + "IssueSearchResultItemPropLabelsItems", + "IssueSearchResultItemPropPullRequest", + "SearchIssuesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0408.py b/githubkit/versions/v2022_11_28/models/group_0408.py index ce6b5c7b5..ba16cb961 100644 --- a/githubkit/versions/v2022_11_28/models/group_0408.py +++ b/githubkit/versions/v2022_11_28/models/group_0408.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,93 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0401 import SearchResultTextMatchesItems +from .group_0403 import SearchResultTextMatchesItems -class TopicSearchResultItem(GitHubModel): - """Topic Search Result Item +class LabelSearchResultItem(GitHubModel): + """Label Search Result Item - Topic Search Result Item + Label Search Result Item """ + id: int = Field() + node_id: str = Field() + url: str = Field() name: str = Field() - display_name: Union[str, None] = Field() - short_description: Union[str, None] = Field() + color: str = Field() + default: bool = 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""" +class SearchLabelsGetResponse200(GitHubModel): + """SearchLabelsGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[TopicSearchResultItem] = Field() + items: list[LabelSearchResultItem] = Field() -model_rebuild(TopicSearchResultItem) -model_rebuild(TopicSearchResultItemPropRelatedItems) -model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) -model_rebuild(TopicSearchResultItemPropAliasesItems) -model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) -model_rebuild(SearchTopicsGetResponse200) +model_rebuild(LabelSearchResultItem) +model_rebuild(SearchLabelsGetResponse200) __all__ = ( - "SearchTopicsGetResponse200", - "TopicSearchResultItem", - "TopicSearchResultItemPropAliasesItems", - "TopicSearchResultItemPropAliasesItemsPropTopicRelation", - "TopicSearchResultItemPropRelatedItems", - "TopicSearchResultItemPropRelatedItemsPropTopicRelation", + "LabelSearchResultItem", + "SearchLabelsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0409.py b/githubkit/versions/v2022_11_28/models/group_0409.py index 634ee5a7b..468e209e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0409.py +++ b/githubkit/versions/v2022_11_28/models/group_0409.py @@ -18,66 +18,139 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0401 import SearchResultTextMatchesItems +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0403 import SearchResultTextMatchesItems -class UserSearchResultItem(GitHubModel): - """User Search Result Item +class RepoSearchResultItem(GitHubModel): + """Repo Search Result Item - User Search Result Item + Repo 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() + name: str = Field() + full_name: str = Field() + owner: Union[None, SimpleUser] = Field() + private: 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() + 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() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = 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() - 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) + 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" ) - 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) + 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 SearchUsersGetResponse200(GitHubModel): - """SearchUsersGetResponse200""" +class SearchRepositoriesGetResponse200(GitHubModel): + """SearchRepositoriesGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[UserSearchResultItem] = Field() + items: list[RepoSearchResultItem] = Field() -model_rebuild(UserSearchResultItem) -model_rebuild(SearchUsersGetResponse200) +model_rebuild(RepoSearchResultItem) +model_rebuild(RepoSearchResultItemPropPermissions) +model_rebuild(SearchRepositoriesGetResponse200) __all__ = ( - "SearchUsersGetResponse200", - "UserSearchResultItem", + "RepoSearchResultItem", + "RepoSearchResultItemPropPermissions", + "SearchRepositoriesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0410.py b/githubkit/versions/v2022_11_28/models/group_0410.py index c4b785265..f400613ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0410.py +++ b/githubkit/versions/v2022_11_28/models/group_0410.py @@ -18,71 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0403 import SearchResultTextMatchesItems -class PrivateUser(GitHubModel): - """Private User - Private User +class TopicSearchResultItem(GitHubModel): + """Topic Search Result Item + + Topic Search Result Item """ - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - 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() + 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() - 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) + 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 PrivateUserPropPlan(GitHubModel): - """PrivateUserPropPlan""" +class TopicSearchResultItemPropRelatedItems(GitHubModel): + """TopicSearchResultItemPropRelatedItems""" - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() + 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(PrivateUser) -model_rebuild(PrivateUserPropPlan) +model_rebuild(TopicSearchResultItem) +model_rebuild(TopicSearchResultItemPropRelatedItems) +model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) +model_rebuild(TopicSearchResultItemPropAliasesItems) +model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) +model_rebuild(SearchTopicsGetResponse200) __all__ = ( - "PrivateUser", - "PrivateUserPropPlan", + "SearchTopicsGetResponse200", + "TopicSearchResultItem", + "TopicSearchResultItemPropAliasesItems", + "TopicSearchResultItemPropAliasesItemsPropTopicRelation", + "TopicSearchResultItemPropRelatedItems", + "TopicSearchResultItemPropRelatedItemsPropTopicRelation", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0411.py b/githubkit/versions/v2022_11_28/models/group_0411.py index f6bee6e63..b5b81fc0b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0411.py +++ b/githubkit/versions/v2022_11_28/models/group_0411.py @@ -9,21 +9,75 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0403 import SearchResultTextMatchesItems -class CodespacesUserPublicKey(GitHubModel): - """CodespacesUserPublicKey +class UserSearchResultItem(GitHubModel): + """User Search Result Item - The public key used for setting user Codespaces' Secrets. + User Search Result Item """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + received_events_url: str = Field() + type: str = Field() + score: float = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + events_url: str = Field() + public_repos: Missing[int] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + bio: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + site_admin: bool = Field() + hireable: Missing[Union[bool, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + blog: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class SearchUsersGetResponse200(GitHubModel): + """SearchUsersGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[UserSearchResultItem] = Field() -model_rebuild(CodespacesUserPublicKey) +model_rebuild(UserSearchResultItem) +model_rebuild(SearchUsersGetResponse200) -__all__ = ("CodespacesUserPublicKey",) +__all__ = ( + "SearchUsersGetResponse200", + "UserSearchResultItem", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0412.py b/githubkit/versions/v2022_11_28/models/group_0412.py index 48a2ada39..c4b785265 100644 --- a/githubkit/versions/v2022_11_28/models/group_0412.py +++ b/githubkit/versions/v2022_11_28/models/group_0412.py @@ -19,34 +19,70 @@ from githubkit.utils import UNSET -class CodespaceExportDetails(GitHubModel): - """Fetches information about an export of a codespace. +class PrivateUser(GitHubModel): + """Private User - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest + Private User """ - 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",) + 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() + 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__ = ( + "PrivateUser", + "PrivateUserPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0413.py b/githubkit/versions/v2022_11_28/models/group_0413.py index 0b7471f78..f6bee6e63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0413.py +++ b/githubkit/versions/v2022_11_28/models/group_0413.py @@ -9,164 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0090 import CodespaceMachine -from .group_0124 import FullRepository - - -class CodespaceWithFullRepository(GitHubModel): - """Codespace - - A codespace. - """ - - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespaceWithFullRepositoryPropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( - Field(default=UNSET) - ) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) -class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): - """CodespaceWithFullRepositoryPropGitStatus +class CodespacesUserPublicKey(GitHubModel): + """CodespacesUserPublicKey - Details about the codespace's git repository. + The public key used for setting user Codespaces' Secrets. """ - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", - ) - - -class 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.", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(CodespaceWithFullRepository) -model_rebuild(CodespaceWithFullRepositoryPropGitStatus) -model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) +model_rebuild(CodespacesUserPublicKey) -__all__ = ( - "CodespaceWithFullRepository", - "CodespaceWithFullRepositoryPropGitStatus", - "CodespaceWithFullRepositoryPropRuntimeConstraints", -) +__all__ = ("CodespacesUserPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0414.py b/githubkit/versions/v2022_11_28/models/group_0414.py index 1fb1f3941..48a2ada39 100644 --- a/githubkit/versions/v2022_11_28/models/group_0414.py +++ b/githubkit/versions/v2022_11_28/models/group_0414.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 -class Email(GitHubModel): - """Email +class CodespaceExportDetails(GitHubModel): + """Fetches information about an export of a codespace. - Email + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - email: str = Field() - primary: bool = Field() - verified: bool = Field() - visibility: Union[str, None] = Field() - - -model_rebuild(Email) - -__all__ = ("Email",) + 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_0415.py b/githubkit/versions/v2022_11_28/models/group_0415.py index f58661fe1..f963ceb04 100644 --- a/githubkit/versions/v2022_11_28/models/group_0415.py +++ b/githubkit/versions/v2022_11_28/models/group_0415.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Literal, Union from pydantic import Field @@ -18,71 +18,155 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0092 import CodespaceMachine +from .group_0126 import FullRepository -class GpgKey(GitHubModel): - """GPG Key - A unique encryption key +class CodespaceWithFullRepository(GitHubModel): + """Codespace + + A codespace. """ 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(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() - 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) - + 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. + """ -model_rebuild(GpgKey) -model_rebuild(GpgKeyPropEmailsItems) -model_rebuild(GpgKeyPropSubkeysItems) -model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) + 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__ = ( - "GpgKey", - "GpgKeyPropEmailsItems", - "GpgKeyPropSubkeysItems", - "GpgKeyPropSubkeysItemsPropEmailsItems", + "CodespaceWithFullRepository", + "CodespaceWithFullRepositoryPropGitStatus", + "CodespaceWithFullRepositoryPropRuntimeConstraints", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0416.py b/githubkit/versions/v2022_11_28/models/group_0416.py index f75f4e54d..1fb1f3941 100644 --- a/githubkit/versions/v2022_11_28/models/group_0416.py +++ b/githubkit/versions/v2022_11_28/models/group_0416.py @@ -9,28 +9,25 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Key(GitHubModel): - """Key +class Email(GitHubModel): + """Email - Key + Email """ - key: str = Field() - id: int = Field() - url: str = Field() - title: str = Field() - created_at: datetime = Field() + email: str = Field() + primary: bool = Field() verified: bool = Field() - read_only: bool = Field() + visibility: Union[str, None] = Field() -model_rebuild(Key) +model_rebuild(Email) -__all__ = ("Key",) +__all__ = ("Email",) diff --git a/githubkit/versions/v2022_11_28/models/group_0417.py b/githubkit/versions/v2022_11_28/models/group_0417.py index 1f39560ef..f58661fe1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0417.py +++ b/githubkit/versions/v2022_11_28/models/group_0417.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,43 +18,71 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0056 import MarketplaceListingPlan +class GpgKey(GitHubModel): + """GPG Key -class UserMarketplacePurchase(GitHubModel): - """User Marketplace Purchase - - User Marketplace Purchase + A unique encryption key """ - 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) + 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__ = ( - "MarketplaceAccount", - "UserMarketplacePurchase", + "GpgKey", + "GpgKeyPropEmailsItems", + "GpgKeyPropSubkeysItems", + "GpgKeyPropSubkeysItemsPropEmailsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0418.py b/githubkit/versions/v2022_11_28/models/group_0418.py index cae25bb86..e54756b2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0418.py +++ b/githubkit/versions/v2022_11_28/models/group_0418.py @@ -9,21 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class SocialAccount(GitHubModel): - """Social account +class Key(GitHubModel): + """Key - Social media account + Key """ - provider: str = Field() + key: str = Field() + id: int = Field() url: str = Field() + title: str = Field() + created_at: datetime = Field() + verified: bool = Field() + read_only: bool = Field() + last_used: Missing[Union[datetime, None]] = Field(default=UNSET) -model_rebuild(SocialAccount) +model_rebuild(Key) -__all__ = ("SocialAccount",) +__all__ = ("Key",) diff --git a/githubkit/versions/v2022_11_28/models/group_0419.py b/githubkit/versions/v2022_11_28/models/group_0419.py index e6313b836..330db2a23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0419.py +++ b/githubkit/versions/v2022_11_28/models/group_0419.py @@ -10,24 +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_0058 import MarketplaceListingPlan -class SshSigningKey(GitHubModel): - """SSH Signing Key - A public SSH key used to sign Git commits +class UserMarketplacePurchase(GitHubModel): + """User Marketplace Purchase + + User Marketplace Purchase """ - key: str = 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() + 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() - title: str = Field() - created_at: datetime = 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(SshSigningKey) +model_rebuild(UserMarketplacePurchase) +model_rebuild(MarketplaceAccount) -__all__ = ("SshSigningKey",) +__all__ = ( + "MarketplaceAccount", + "UserMarketplacePurchase", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0420.py b/githubkit/versions/v2022_11_28/models/group_0420.py index 3c3baecb3..cae25bb86 100644 --- a/githubkit/versions/v2022_11_28/models/group_0420.py +++ b/githubkit/versions/v2022_11_28/models/group_0420.py @@ -9,25 +9,21 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0020 import Repository - -class StarredRepository(GitHubModel): - """Starred Repository +class SocialAccount(GitHubModel): + """Social account - Starred Repository + Social media account """ - starred_at: datetime = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") + provider: str = Field() + url: str = Field() -model_rebuild(StarredRepository) +model_rebuild(SocialAccount) -__all__ = ("StarredRepository",) +__all__ = ("SocialAccount",) diff --git a/githubkit/versions/v2022_11_28/models/group_0421.py b/githubkit/versions/v2022_11_28/models/group_0421.py index 2258e2d95..e6313b836 100644 --- a/githubkit/versions/v2022_11_28/models/group_0421.py +++ b/githubkit/versions/v2022_11_28/models/group_0421.py @@ -9,31 +9,25 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Hovercard(GitHubModel): - """Hovercard +class SshSigningKey(GitHubModel): + """SSH Signing Key - Hovercard + A public SSH key used to sign Git commits """ - contexts: list[HovercardPropContextsItems] = Field() - - -class HovercardPropContextsItems(GitHubModel): - """HovercardPropContextsItems""" - - message: str = Field() - octicon: str = Field() + key: str = Field() + id: int = Field() + title: str = Field() + created_at: datetime = Field() -model_rebuild(Hovercard) -model_rebuild(HovercardPropContextsItems) +model_rebuild(SshSigningKey) -__all__ = ( - "Hovercard", - "HovercardPropContextsItems", -) +__all__ = ("SshSigningKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0422.py b/githubkit/versions/v2022_11_28/models/group_0422.py index 6bc9f3b7d..3c3baecb3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0422.py +++ b/githubkit/versions/v2022_11_28/models/group_0422.py @@ -14,21 +14,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 KeySimple(GitHubModel): - """Key Simple - Key Simple +class StarredRepository(GitHubModel): + """Starred Repository + + Starred Repository """ - id: int = Field() - key: str = Field() - created_at: Missing[datetime] = Field(default=UNSET) + starred_at: datetime = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") -model_rebuild(KeySimple) +model_rebuild(StarredRepository) -__all__ = ("KeySimple",) +__all__ = ("StarredRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0423.py b/githubkit/versions/v2022_11_28/models/group_0423.py index 563a88dd0..2258e2d95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0423.py +++ b/githubkit/versions/v2022_11_28/models/group_0423.py @@ -12,49 +12,28 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class BillingUsageReportUser(GitHubModel): - """BillingUsageReportUser""" - - usage_items: Missing[list[BillingUsageReportUserPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" - ) - - -class BillingUsageReportUserPropUsageItemsItems(GitHubModel): - """BillingUsageReportUserPropUsageItemsItems""" - - date: str = Field(description="Date of the usage line item.") - product: str = Field(description="Product name.") - sku: str = Field(description="SKU name.") - quantity: int = Field(description="Quantity of the usage line item.") - unit_type: str = Field( - alias="unitType", description="Unit type of the usage line item." - ) - price_per_unit: float = Field( - alias="pricePerUnit", description="Price per unit of the usage line item." - ) - gross_amount: float = Field( - alias="grossAmount", description="Gross amount of the usage line item." - ) - discount_amount: float = Field( - alias="discountAmount", description="Discount amount of the usage line item." - ) - net_amount: float = Field( - alias="netAmount", description="Net amount of the usage line item." - ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." - ) - - -model_rebuild(BillingUsageReportUser) -model_rebuild(BillingUsageReportUserPropUsageItemsItems) + + +class Hovercard(GitHubModel): + """Hovercard + + Hovercard + """ + + contexts: list[HovercardPropContextsItems] = Field() + + +class HovercardPropContextsItems(GitHubModel): + """HovercardPropContextsItems""" + + message: str = Field() + octicon: str = Field() + + +model_rebuild(Hovercard) +model_rebuild(HovercardPropContextsItems) __all__ = ( - "BillingUsageReportUser", - "BillingUsageReportUserPropUsageItemsItems", + "Hovercard", + "HovercardPropContextsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0424.py b/githubkit/versions/v2022_11_28/models/group_0424.py index 0ac8d891b..01282a17e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0424.py +++ b/githubkit/versions/v2022_11_28/models/group_0424.py @@ -19,33 +19,18 @@ from githubkit.utils import UNSET -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 KeySimple(GitHubModel): + """Key Simple + + Key Simple """ - 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",) + id: int = Field() + key: str = Field() + created_at: Missing[datetime] = Field(default=UNSET) + last_used: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(KeySimple) + +__all__ = ("KeySimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0425.py b/githubkit/versions/v2022_11_28/models/group_0425.py index 8f356bd76..563a88dd0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0425.py +++ b/githubkit/versions/v2022_11_28/models/group_0425.py @@ -12,22 +12,49 @@ from pydantic import Field 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)." - """ - - id: int = Field(description="The ID of the installation.") - node_id: str = Field(description="The global node ID of the installation.") - - -model_rebuild(SimpleInstallation) - -__all__ = ("SimpleInstallation",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class BillingUsageReportUser(GitHubModel): + """BillingUsageReportUser""" + + usage_items: Missing[list[BillingUsageReportUserPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" + ) + + +class BillingUsageReportUserPropUsageItemsItems(GitHubModel): + """BillingUsageReportUserPropUsageItemsItems""" + + date: str = Field(description="Date of the usage line item.") + product: str = Field(description="Product name.") + sku: str = Field(description="SKU name.") + quantity: int = Field(description="Quantity of the usage line item.") + unit_type: str = Field( + alias="unitType", description="Unit type of the usage line item." + ) + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." + ) + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." + ) + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." + ) + net_amount: float = Field( + alias="netAmount", description="Net amount of the usage line item." + ) + repository_name: Missing[str] = Field( + default=UNSET, alias="repositoryName", description="Name of the repository." + ) + + +model_rebuild(BillingUsageReportUser) +model_rebuild(BillingUsageReportUserPropUsageItemsItems) + +__all__ = ( + "BillingUsageReportUser", + "BillingUsageReportUserPropUsageItemsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0426.py b/githubkit/versions/v2022_11_28/models/group_0426.py index 29be5dd8a..0ac8d891b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0426.py +++ b/githubkit/versions/v2022_11_28/models/group_0426.py @@ -9,36 +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 -class OrganizationSimpleWebhooks(GitHubModel): - """Organization Simple +class EnterpriseWebhooks(GitHubModel): + """Enterprise - 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. + 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)." """ - login: str = Field() - id: int = Field() + 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() - 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() + 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() - description: Union[str, None] = Field() -model_rebuild(OrganizationSimpleWebhooks) +model_rebuild(EnterpriseWebhooks) -__all__ = ("OrganizationSimpleWebhooks",) +__all__ = ("EnterpriseWebhooks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0427.py b/githubkit/versions/v2022_11_28/models/group_0427.py index e9224aa34..8f356bd76 100644 --- a/githubkit/versions/v2022_11_28/models/group_0427.py +++ b/githubkit/versions/v2022_11_28/models/group_0427.py @@ -9,372 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple - - -class RepositoryWebhooks(GitHubModel): - """Repository - - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. - """ - - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - forks: int = Field() - permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - template_repository: Missing[ - Union[RepositoryWebhooksPropTemplateRepository, None] - ] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - starred_at: Missing[str] = Field(default=UNSET) - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether anonymous git access is enabled for this repository", - ) - - -class RepositoryWebhooksPropPermissions(GitHubModel): - """RepositoryWebhooksPropPermissions""" +from githubkit.compat import GitHubModel, model_rebuild - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) +class SimpleInstallation(GitHubModel): + """Simple Installation -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. + 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 RepositoryWebhooksPropTemplateRepository(GitHubModel): - """RepositoryWebhooksPropTemplateRepository""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( - default=UNSET - ) - private: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - language: Missing[str] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + id: int = Field(description="The ID of the installation.") + node_id: str = Field(description="The global node ID of the installation.") -model_rebuild(RepositoryWebhooks) -model_rebuild(RepositoryWebhooksPropPermissions) -model_rebuild(RepositoryWebhooksPropCustomProperties) -model_rebuild(RepositoryWebhooksPropTemplateRepository) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) +model_rebuild(SimpleInstallation) -__all__ = ( - "RepositoryWebhooks", - "RepositoryWebhooksPropCustomProperties", - "RepositoryWebhooksPropPermissions", - "RepositoryWebhooksPropTemplateRepository", - "RepositoryWebhooksPropTemplateRepositoryPropOwner", - "RepositoryWebhooksPropTemplateRepositoryPropPermissions", -) +__all__ = ("SimpleInstallation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0428.py b/githubkit/versions/v2022_11_28/models/group_0428.py index 25b8ec63a..29be5dd8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0428.py +++ b/githubkit/versions/v2022_11_28/models/group_0428.py @@ -9,81 +9,36 @@ 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 WebhooksRule(GitHubModel): - """branch protection rule +class OrganizationSimpleWebhooks(GitHubModel): + """Organization Simple - 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. + 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. """ - 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() + login: str = 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() + 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(WebhooksRule) +model_rebuild(OrganizationSimpleWebhooks) -__all__ = ("WebhooksRule",) +__all__ = ("OrganizationSimpleWebhooks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0429.py b/githubkit/versions/v2022_11_28/models/group_0429.py index e27e6098b..e9224aa34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0429.py +++ b/githubkit/versions/v2022_11_28/models/group_0429.py @@ -14,62 +14,367 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration -from .group_0061 import MinimalRepository -from .group_0208 import PullRequestMinimal +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite +class RepositoryWebhooks(GitHubModel): + """Repository - A suite of checks performed on the code of a given code change + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. """ - after: Missing[Union[str, None]] = Field(default=UNSET) - app: Missing[Union[Integration, None]] = 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") + 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, - 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", - ], - ] + 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) - 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." + 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) - pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) - repository: Missing[MinimalRepository] = Field( - default=UNSET, title="Minimal Repository", description="Minimal Repository" + name: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( + default=UNSET ) - status: Missing[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] = Field(default=UNSET) - updated_at: Missing[datetime] = 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(SimpleCheckSuite) +model_rebuild(RepositoryWebhooks) +model_rebuild(RepositoryWebhooksPropPermissions) +model_rebuild(RepositoryWebhooksPropCustomProperties) +model_rebuild(RepositoryWebhooksPropTemplateRepository) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) -__all__ = ("SimpleCheckSuite",) +__all__ = ( + "RepositoryWebhooks", + "RepositoryWebhooksPropCustomProperties", + "RepositoryWebhooksPropPermissions", + "RepositoryWebhooksPropTemplateRepository", + "RepositoryWebhooksPropTemplateRepositoryPropOwner", + "RepositoryWebhooksPropTemplateRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0430.py b/githubkit/versions/v2022_11_28/models/group_0430.py index c16dbea8b..25b8ec63a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0430.py +++ b/githubkit/versions/v2022_11_28/models/group_0430.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,77 +18,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration -from .group_0208 import PullRequestMinimal -from .group_0235 import DeploymentSimple -from .group_0429 import SimpleCheckSuite +class WebhooksRule(GitHubModel): + """branch protection rule -class CheckRunWithSimpleCheckSuite(GitHubModel): - """CheckRun - - A check performed on the code of a given code change + 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. """ - 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.", + admin_enforced: bool = Field() + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], + 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() - deployment: Missing[DeploymentSimple] = 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, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", ) - 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." + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() + name: str = Field() + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - 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() + 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(CheckRunWithSimpleCheckSuite) -model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) +model_rebuild(WebhooksRule) -__all__ = ( - "CheckRunWithSimpleCheckSuite", - "CheckRunWithSimpleCheckSuitePropOutput", -) +__all__ = ("WebhooksRule",) diff --git a/githubkit/versions/v2022_11_28/models/group_0431.py b/githubkit/versions/v2022_11_28/models/group_0431.py index 63a38edef..f836b6860 100644 --- a/githubkit/versions/v2022_11_28/models/group_0431.py +++ b/githubkit/versions/v2022_11_28/models/group_0431.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,26 +18,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0063 import MinimalRepository +from .group_0210 import PullRequestMinimal -class WebhooksDeployKey(GitHubModel): - """WebhooksDeployKey - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite + + A suite of checks performed on the code of a given code change """ - 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) + after: Missing[Union[str, None]] = Field(default=UNSET) + app: Missing[Union[Integration, None]] = Field( + default=UNSET, + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." + ) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksDeployKey) +model_rebuild(SimpleCheckSuite) -__all__ = ("WebhooksDeployKey",) +__all__ = ("SimpleCheckSuite",) diff --git a/githubkit/versions/v2022_11_28/models/group_0432.py b/githubkit/versions/v2022_11_28/models/group_0432.py index 8e1eed602..38df13771 100644 --- a/githubkit/versions/v2022_11_28/models/group_0432.py +++ b/githubkit/versions/v2022_11_28/models/group_0432.py @@ -10,27 +10,85 @@ 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_0210 import PullRequestMinimal +from .group_0237 import DeploymentSimple +from .group_0431 import SimpleCheckSuite -class WebhooksWorkflow(GitHubModel): - """Workflow""" - badge_url: str = Field() - created_at: datetime = Field() +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun + + A check performed on the code of a given code change + """ + + 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.", + ) + 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() - name: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = 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() -model_rebuild(WebhooksWorkflow) +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__ = ("WebhooksWorkflow",) +__all__ = ( + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0433.py b/githubkit/versions/v2022_11_28/models/group_0433.py index a9b088555..63a38edef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0433.py +++ b/githubkit/versions/v2022_11_28/models/group_0433.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,71 +18,25 @@ from githubkit.utils import UNSET -class WebhooksApprover(GitHubModel): - """WebhooksApprover""" +class WebhooksDeployKey(GitHubModel): + """WebhooksDeployKey - 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 [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ - -class WebhooksReviewersItems(GitHubModel): - """WebhooksReviewersItems""" - - reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( - default=UNSET, title="User" - ) - type: Missing[Literal["User"]] = Field(default=UNSET) - - -class WebhooksReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + added_by: Missing[Union[str, None]] = Field(default=UNSET) + created_at: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() + title: str = Field() + url: str = Field() + verified: bool = Field() + enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhooksApprover) -model_rebuild(WebhooksReviewersItems) -model_rebuild(WebhooksReviewersItemsPropReviewer) +model_rebuild(WebhooksDeployKey) -__all__ = ( - "WebhooksApprover", - "WebhooksReviewersItems", - "WebhooksReviewersItemsPropReviewer", -) +__all__ = ("WebhooksDeployKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0434.py b/githubkit/versions/v2022_11_28/models/group_0434.py index 291bcddcd..8e1eed602 100644 --- a/githubkit/versions/v2022_11_28/models/group_0434.py +++ b/githubkit/versions/v2022_11_28/models/group_0434.py @@ -9,24 +9,28 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksWorkflowJobRun(GitHubModel): - """WebhooksWorkflowJobRun""" +class WebhooksWorkflow(GitHubModel): + """Workflow""" - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() + badge_url: str = Field() + created_at: datetime = Field() html_url: str = Field() id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() + name: str = Field() + node_id: str = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhooksWorkflowJobRun) +model_rebuild(WebhooksWorkflow) -__all__ = ("WebhooksWorkflowJobRun",) +__all__ = ("WebhooksWorkflow",) diff --git a/githubkit/versions/v2022_11_28/models/group_0435.py b/githubkit/versions/v2022_11_28/models/group_0435.py index 13da347fc..a9b088555 100644 --- a/githubkit/versions/v2022_11_28/models/group_0435.py +++ b/githubkit/versions/v2022_11_28/models/group_0435.py @@ -18,7 +18,40 @@ from githubkit.utils import UNSET -class WebhooksUser(GitHubModel): +class WebhooksApprover(GitHubModel): + """WebhooksApprover""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewersItems(GitHubModel): + """WebhooksReviewersItems""" + + reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( + default=UNSET, title="User" + ) + type: Missing[Literal["User"]] = Field(default=UNSET) + + +class WebhooksReviewersItemsPropReviewer(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -42,9 +75,14 @@ class WebhooksUser(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksUser) +model_rebuild(WebhooksApprover) +model_rebuild(WebhooksReviewersItems) +model_rebuild(WebhooksReviewersItemsPropReviewer) -__all__ = ("WebhooksUser",) +__all__ = ( + "WebhooksApprover", + "WebhooksReviewersItems", + "WebhooksReviewersItemsPropReviewer", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0436.py b/githubkit/versions/v2022_11_28/models/group_0436.py index ff2aa46c5..291bcddcd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0436.py +++ b/githubkit/versions/v2022_11_28/models/group_0436.py @@ -9,96 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksAnswer(GitHubModel): - """WebhooksAnswer""" +class WebhooksWorkflowJobRun(GitHubModel): + """WebhooksWorkflowJobRun""" - author_association: 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() + conclusion: None = Field() + created_at: str = Field() + environment: str = 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) + name: None = Field() + status: str = Field() + updated_at: str = Field() -model_rebuild(WebhooksAnswer) -model_rebuild(WebhooksAnswerPropReactions) -model_rebuild(WebhooksAnswerPropUser) +model_rebuild(WebhooksWorkflowJobRun) -__all__ = ( - "WebhooksAnswer", - "WebhooksAnswerPropReactions", - "WebhooksAnswerPropUser", -) +__all__ = ("WebhooksWorkflowJobRun",) diff --git a/githubkit/versions/v2022_11_28/models/group_0437.py b/githubkit/versions/v2022_11_28/models/group_0437.py index 3c0d2a361..13da347fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0437.py +++ b/githubkit/versions/v2022_11_28/models/group_0437.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,135 +18,7 @@ from githubkit.utils import UNSET -class Discussion(GitHubModel): - """Discussion - - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") - answer_html_url: Union[str, None] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - category: DiscussionPropCategory = Field() - comments: int = Field() - 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). - """ - - 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): +class WebhooksUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -174,18 +45,6 @@ class DiscussionPropUser(GitHubModel): 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(WebhooksUser) -__all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", - "Label", -) +__all__ = ("WebhooksUser",) diff --git a/githubkit/versions/v2022_11_28/models/group_0438.py b/githubkit/versions/v2022_11_28/models/group_0438.py index 2e01fc5dd..ff2aa46c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0438.py +++ b/githubkit/versions/v2022_11_28/models/group_0438.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,8 +19,8 @@ from githubkit.utils import UNSET -class WebhooksComment(GitHubModel): - """WebhooksComment""" +class WebhooksAnswer(GitHubModel): + """WebhooksAnswer""" author_association: Literal[ "COLLABORATOR", @@ -36,19 +37,21 @@ class WebhooksComment(GitHubModel): ) body: str = Field() child_comment_count: int = Field() - created_at: str = Field() + created_at: datetime = 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") + parent_id: None = Field() + reactions: Missing[WebhooksAnswerPropReactions] = Field( + default=UNSET, title="Reactions" + ) repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhooksCommentPropUser, None] = Field(title="User") + updated_at: datetime = Field() + user: Union[WebhooksAnswerPropUser, None] = Field(title="User") -class WebhooksCommentPropReactions(GitHubModel): +class WebhooksAnswerPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -63,7 +66,7 @@ class WebhooksCommentPropReactions(GitHubModel): url: str = Field() -class WebhooksCommentPropUser(GitHubModel): +class WebhooksAnswerPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -90,12 +93,12 @@ class WebhooksCommentPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksComment) -model_rebuild(WebhooksCommentPropReactions) -model_rebuild(WebhooksCommentPropUser) +model_rebuild(WebhooksAnswer) +model_rebuild(WebhooksAnswerPropReactions) +model_rebuild(WebhooksAnswerPropUser) __all__ = ( - "WebhooksComment", - "WebhooksCommentPropReactions", - "WebhooksCommentPropUser", + "WebhooksAnswer", + "WebhooksAnswerPropReactions", + "WebhooksAnswerPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0439.py b/githubkit/versions/v2022_11_28/models/group_0439.py index 6e6effd19..3c0d2a361 100644 --- a/githubkit/versions/v2022_11_28/models/group_0439.py +++ b/githubkit/versions/v2022_11_28/models/group_0439.py @@ -9,27 +9,183 @@ 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 -class WebhooksLabel(GitHubModel): - """Label""" +class Discussion(GitHubModel): + """Discussion - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + A Discussion in a repository. + """ + + active_lock_reason: Union[str, None] = Field() + answer_chosen_at: Union[str, None] = Field() + answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") + answer_html_url: Union[str, None] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - default: bool = Field() - description: Union[str, None] = Field() + body: str = Field() + category: DiscussionPropCategory = Field() + comments: int = Field() + created_at: datetime = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + 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). + """ + + 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(WebhooksLabel) +model_rebuild(Discussion) +model_rebuild(Label) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) -__all__ = ("WebhooksLabel",) +__all__ = ( + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", + "Label", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0440.py b/githubkit/versions/v2022_11_28/models/group_0440.py index ba770b6b0..2e01fc5dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0440.py +++ b/githubkit/versions/v2022_11_28/models/group_0440.py @@ -9,21 +9,93 @@ 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 WebhooksRepositoriesItems(GitHubModel): - """WebhooksRepositoriesItems""" +class WebhooksComment(GitHubModel): + """WebhooksComment""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + parent_id: Union[int, None] = Field() + reactions: WebhooksCommentPropReactions = Field(title="Reactions") + repository_url: str = Field() + updated_at: str = Field() + user: Union[WebhooksCommentPropUser, None] = Field(title="User") + + +class WebhooksCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRepositoriesItems) +model_rebuild(WebhooksComment) +model_rebuild(WebhooksCommentPropReactions) +model_rebuild(WebhooksCommentPropUser) -__all__ = ("WebhooksRepositoriesItems",) +__all__ = ( + "WebhooksComment", + "WebhooksCommentPropReactions", + "WebhooksCommentPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0441.py b/githubkit/versions/v2022_11_28/models/group_0441.py index f17279ee4..6e6effd19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0441.py +++ b/githubkit/versions/v2022_11_28/models/group_0441.py @@ -9,21 +9,27 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRepositoriesAddedItems(GitHubModel): - """WebhooksRepositoriesAddedItems""" +class WebhooksLabel(GitHubModel): + """Label""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") + 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() - private: bool = Field(description="Whether the repository is private or public.") + url: str = Field(description="URL for the label") -model_rebuild(WebhooksRepositoriesAddedItems) +model_rebuild(WebhooksLabel) -__all__ = ("WebhooksRepositoriesAddedItems",) +__all__ = ("WebhooksLabel",) diff --git a/githubkit/versions/v2022_11_28/models/group_0442.py b/githubkit/versions/v2022_11_28/models/group_0442.py index c81ac8eaa..ba770b6b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0442.py +++ b/githubkit/versions/v2022_11_28/models/group_0442.py @@ -9,104 +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_0010 import Integration - -class WebhooksIssueComment(GitHubModel): - """issue comment - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ +class WebhooksRepositoriesItems(GitHubModel): + """WebhooksRepositoriesItems""" - author_association: 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() + 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() - 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() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksIssueComment) -model_rebuild(WebhooksIssueCommentPropReactions) -model_rebuild(WebhooksIssueCommentPropUser) +model_rebuild(WebhooksRepositoriesItems) -__all__ = ( - "WebhooksIssueComment", - "WebhooksIssueCommentPropReactions", - "WebhooksIssueCommentPropUser", -) +__all__ = ("WebhooksRepositoriesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0443.py b/githubkit/versions/v2022_11_28/models/group_0443.py index 9e7b45276..f17279ee4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0443.py +++ b/githubkit/versions/v2022_11_28/models/group_0443.py @@ -12,29 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksChanges(GitHubModel): - """WebhooksChanges +class WebhooksRepositoriesAddedItems(GitHubModel): + """WebhooksRepositoriesAddedItems""" - The changes to the comment. - """ + 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.") - body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) +model_rebuild(WebhooksRepositoriesAddedItems) -class WebhooksChangesPropBody(GitHubModel): - """WebhooksChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -model_rebuild(WebhooksChanges) -model_rebuild(WebhooksChangesPropBody) - -__all__ = ( - "WebhooksChanges", - "WebhooksChangesPropBody", -) +__all__ = ("WebhooksRepositoriesAddedItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0444.py b/githubkit/versions/v2022_11_28/models/group_0444.py index afdd4ed43..c81ac8eaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0444.py +++ b/githubkit/versions/v2022_11_28/models/group_0444.py @@ -18,22 +18,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0010 import Integration -class WebhooksIssue(GitHubModel): - """Issue +class WebhooksIssueComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + 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", @@ -47,294 +41,23 @@ 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() + body: str = Field(description="Contents of the issue comment") 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.", - ) + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", + 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.", ) - pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssuePropUser, None] = Field(title="User") - - -class WebhooksIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") + reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") -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): +class WebhooksIssueCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -349,15 +72,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 WebhooksIssueCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -386,32 +101,12 @@ class WebhooksIssuePropUser(GitHubModel): 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(WebhooksIssueComment) +model_rebuild(WebhooksIssueCommentPropReactions) +model_rebuild(WebhooksIssueCommentPropUser) __all__ = ( - "WebhooksIssue", - "WebhooksIssuePropAssignee", - "WebhooksIssuePropAssigneesItems", - "WebhooksIssuePropLabelsItems", - "WebhooksIssuePropMilestone", - "WebhooksIssuePropMilestonePropCreator", - "WebhooksIssuePropPerformedViaGithubApp", - "WebhooksIssuePropPerformedViaGithubAppPropOwner", - "WebhooksIssuePropPerformedViaGithubAppPropPermissions", - "WebhooksIssuePropPullRequest", - "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", - "WebhooksIssuePropUser", + "WebhooksIssueComment", + "WebhooksIssueCommentPropReactions", + "WebhooksIssueCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0445.py b/githubkit/versions/v2022_11_28/models/group_0445.py index c66b591f6..9e7b45276 100644 --- a/githubkit/versions/v2022_11_28/models/group_0445.py +++ b/githubkit/versions/v2022_11_28/models/group_0445.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,63 +16,25 @@ from githubkit.utils import UNSET -class WebhooksMilestone(GitHubModel): - """Milestone +class WebhooksChanges(GitHubModel): + """WebhooksChanges - A collection of related issues and pull requests. + The changes to the comment. """ - 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 - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksMilestone) -model_rebuild(WebhooksMilestonePropCreator) + 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__ = ( - "WebhooksMilestone", - "WebhooksMilestonePropCreator", + "WebhooksChanges", + "WebhooksChangesPropBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0446.py b/githubkit/versions/v2022_11_28/models/group_0446.py index e1110bf38..acd0284d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0446.py +++ b/githubkit/versions/v2022_11_28/models/group_0446.py @@ -18,10 +18,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhooksIssue2(GitHubModel): +class WebhooksIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -30,10 +31,10 @@ class WebhooksIssue2(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( + assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() + assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -56,26 +57,26 @@ class WebhooksIssue2(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) + labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssue2PropMilestone, None] = Field( + 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[WebhooksIssue2PropPerformedViaGithubApp, None] + 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[WebhooksIssue2PropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssue2PropReactions = Field(title="Reactions") + pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( + sub_issues_summary: Missing[SubIssuesSummary] = Field( default=UNSET, title="Sub-issues Summary" ) state: Missing[Literal["open", "closed"]] = Field( @@ -89,10 +90,10 @@ class WebhooksIssue2(GitHubModel): ) updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + user: Union[WebhooksIssuePropUser, None] = Field(title="User") -class WebhooksIssue2PropAssignee(GitHubModel): +class WebhooksIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -114,12 +115,14 @@ class WebhooksIssue2PropAssignee(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 WebhooksIssue2PropAssigneesItems(GitHubModel): +class WebhooksIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -141,12 +144,14 @@ class WebhooksIssue2PropAssigneesItems(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 WebhooksIssue2PropLabelsItems(GitHubModel): +class WebhooksIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -160,7 +165,7 @@ class WebhooksIssue2PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhooksIssue2PropMilestone(GitHubModel): +class WebhooksIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -169,7 +174,7 @@ class WebhooksIssue2PropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") + creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -184,7 +189,7 @@ class WebhooksIssue2PropMilestone(GitHubModel): url: str = Field() -class WebhooksIssue2PropMilestonePropCreator(GitHubModel): +class WebhooksIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -206,12 +211,14 @@ class WebhooksIssue2PropMilestonePropCreator(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 WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): +class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -230,11 +237,11 @@ class actors within GitHub. 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( + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( title="User" ) - permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( - Field(default=UNSET, description="The set of permissions for the GitHub app") + 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" @@ -242,7 +249,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -269,8 +276,8 @@ class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions +class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -294,7 +301,9 @@ class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): 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 @@ -316,8 +325,8 @@ class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhooksIssue2PropPullRequest(GitHubModel): - """WebhooksIssue2PropPullRequest""" +class WebhooksIssuePropPullRequest(GitHubModel): + """WebhooksIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -326,7 +335,7 @@ class WebhooksIssue2PropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhooksIssue2PropReactions(GitHubModel): +class WebhooksIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -341,15 +350,7 @@ class WebhooksIssue2PropReactions(GitHubModel): url: str = Field() -class WebhooksIssue2PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssue2PropUser(GitHubModel): +class WebhooksIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -371,37 +372,37 @@ class WebhooksIssue2PropUser(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(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(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(WebhooksIssuePropUser) __all__ = ( - "WebhooksIssue2", - "WebhooksIssue2PropAssignee", - "WebhooksIssue2PropAssigneesItems", - "WebhooksIssue2PropLabelsItems", - "WebhooksIssue2PropMilestone", - "WebhooksIssue2PropMilestonePropCreator", - "WebhooksIssue2PropPerformedViaGithubApp", - "WebhooksIssue2PropPerformedViaGithubAppPropOwner", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", - "WebhooksIssue2PropPullRequest", - "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", - "WebhooksIssue2PropUser", + "WebhooksIssue", + "WebhooksIssuePropAssignee", + "WebhooksIssuePropAssigneesItems", + "WebhooksIssuePropLabelsItems", + "WebhooksIssuePropMilestone", + "WebhooksIssuePropMilestonePropCreator", + "WebhooksIssuePropPerformedViaGithubApp", + "WebhooksIssuePropPerformedViaGithubAppPropOwner", + "WebhooksIssuePropPerformedViaGithubAppPropPermissions", + "WebhooksIssuePropPullRequest", + "WebhooksIssuePropReactions", + "WebhooksIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0447.py b/githubkit/versions/v2022_11_28/models/group_0447.py index 6db58fe17..c66b591f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0447.py +++ b/githubkit/versions/v2022_11_28/models/group_0447.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,7 +19,31 @@ from githubkit.utils import UNSET -class WebhooksUserMannequin(GitHubModel): +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() + 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) @@ -47,6 +72,10 @@ class WebhooksUserMannequin(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksUserMannequin) +model_rebuild(WebhooksMilestone) +model_rebuild(WebhooksMilestonePropCreator) -__all__ = ("WebhooksUserMannequin",) +__all__ = ( + "WebhooksMilestone", + "WebhooksMilestonePropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0448.py b/githubkit/versions/v2022_11_28/models/group_0448.py index f78d27107..d9d99a118 100644 --- a/githubkit/versions/v2022_11_28/models/group_0448.py +++ b/githubkit/versions/v2022_11_28/models/group_0448.py @@ -9,55 +9,390 @@ 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_0044 import IssueType +from .group_0046 import SubIssuesSummary -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 WebhooksIssue2(GitHubModel): + """Issue + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ -class WebhooksMarketplacePurchasePropAccount(GitHubModel): - """WebhooksMarketplacePurchasePropAccount""" + 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[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + + +class WebhooksIssue2PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropAssigneesItems(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + url: str = Field(description="URL for the label") + +class WebhooksIssue2PropMilestone(GitHubModel): + """Milestone -class WebhooksMarketplacePurchasePropPlan(GitHubModel): - """WebhooksMarketplacePurchasePropPlan""" + A collection of related issues and pull requests. + """ - bullets: list[Union[str, None]] = Field() - description: str = Field() - has_free_trial: bool = Field() + 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() - 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() + 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 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(WebhooksMarketplacePurchase) -model_rebuild(WebhooksMarketplacePurchasePropAccount) -model_rebuild(WebhooksMarketplacePurchasePropPlan) +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(WebhooksIssue2PropUser) __all__ = ( - "WebhooksMarketplacePurchase", - "WebhooksMarketplacePurchasePropAccount", - "WebhooksMarketplacePurchasePropPlan", + "WebhooksIssue2", + "WebhooksIssue2PropAssignee", + "WebhooksIssue2PropAssigneesItems", + "WebhooksIssue2PropLabelsItems", + "WebhooksIssue2PropMilestone", + "WebhooksIssue2PropMilestonePropCreator", + "WebhooksIssue2PropPerformedViaGithubApp", + "WebhooksIssue2PropPerformedViaGithubAppPropOwner", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", + "WebhooksIssue2PropPullRequest", + "WebhooksIssue2PropReactions", + "WebhooksIssue2PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0449.py b/githubkit/versions/v2022_11_28/models/group_0449.py index 94a837d69..6db58fe17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0449.py +++ b/githubkit/versions/v2022_11_28/models/group_0449.py @@ -18,48 +18,35 @@ 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""" - +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() - 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__ = ( - "WebhooksPreviousMarketplacePurchase", - "WebhooksPreviousMarketplacePurchasePropAccount", - "WebhooksPreviousMarketplacePurchasePropPlan", -) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + 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",) diff --git a/githubkit/versions/v2022_11_28/models/group_0450.py b/githubkit/versions/v2022_11_28/models/group_0450.py index 7c9805f89..f78d27107 100644 --- a/githubkit/versions/v2022_11_28/models/group_0450.py +++ b/githubkit/versions/v2022_11_28/models/group_0450.py @@ -14,66 +14,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhooksTeam(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[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") + + +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() 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) + 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__ = ( - "WebhooksTeam", - "WebhooksTeamPropParent", + "WebhooksMarketplacePurchase", + "WebhooksMarketplacePurchasePropAccount", + "WebhooksMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0451.py b/githubkit/versions/v2022_11_28/models/group_0451.py index 371032761..94a837d69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0451.py +++ b/githubkit/versions/v2022_11_28/models/group_0451.py @@ -9,28 +9,57 @@ 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 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() + -from .group_0209 import SimpleCommit +class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropAccount""" + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -class MergeGroup(GitHubModel): - """Merge Group - A group of pull requests that the merge queue has grouped together to be merged. - """ +class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropPlan""" - 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.") + 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(MergeGroup) +model_rebuild(WebhooksPreviousMarketplacePurchase) +model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) +model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) -__all__ = ("MergeGroup",) +__all__ = ( + "WebhooksPreviousMarketplacePurchase", + "WebhooksPreviousMarketplacePurchasePropAccount", + "WebhooksPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0452.py b/githubkit/versions/v2022_11_28/models/group_0452.py index 39a630595..7c9805f89 100644 --- a/githubkit/versions/v2022_11_28/models/group_0452.py +++ b/githubkit/versions/v2022_11_28/models/group_0452.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,61 +18,62 @@ from githubkit.utils import UNSET -class WebhooksMilestone3(GitHubModel): - """Milestone +class WebhooksTeam(GitHubModel): + """Team - A collection of related issues and pull requests. + Groups of organization members that gives permissions on specified repositories. """ - 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) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksMilestone3) -model_rebuild(WebhooksMilestone3PropCreator) + parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeamPropParent(GitHubModel): + """WebhooksTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhooksTeam) +model_rebuild(WebhooksTeamPropParent) __all__ = ( - "WebhooksMilestone3", - "WebhooksMilestone3PropCreator", + "WebhooksTeam", + "WebhooksTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0453.py b/githubkit/versions/v2022_11_28/models/group_0453.py index 7099fbbc2..cae58352b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0453.py +++ b/githubkit/versions/v2022_11_28/models/group_0453.py @@ -9,60 +9,28 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhooksMembership(GitHubModel): - """Membership +from .group_0211 import SimpleCommit - 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 MergeGroup(GitHubModel): + """Merge Group + A group of pull requests that the merge queue has grouped together to be merged. + """ -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) + 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(WebhooksMembership) -model_rebuild(WebhooksMembershipPropUser) +model_rebuild(MergeGroup) -__all__ = ( - "WebhooksMembership", - "WebhooksMembershipPropUser", -) +__all__ = ("MergeGroup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0454.py b/githubkit/versions/v2022_11_28/models/group_0454.py index 37f106c1b..39a630595 100644 --- a/githubkit/versions/v2022_11_28/models/group_0454.py +++ b/githubkit/versions/v2022_11_28/models/group_0454.py @@ -9,196 +9,71 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksMilestone3(GitHubModel): + """Milestone -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. + A collection of related issues and pull requests. """ - 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.") + 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() - 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(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) + 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__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropRepositoriesItems", + "WebhooksMilestone3", + "WebhooksMilestone3PropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0455.py b/githubkit/versions/v2022_11_28/models/group_0455.py index 39eabd49e..314b845f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0455.py +++ b/githubkit/versions/v2022_11_28/models/group_0455.py @@ -9,35 +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.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class WebhooksProjectCard(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() +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() + direct_membership: Missing[bool] = Field( + default=UNSET, + description="Whether the user has direct membership in the organization.", + ) + enterprise_teams_providing_indirect_membership: Missing[list[str]] = Field( + max_length=100 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the enterprise teams providing the user with indirect membership in the organization.\nA limit of 100 enterprise team slugs is returned.", + ) + state: str = Field() url: str = Field() + user: Union[WebhooksMembershipPropUser, None] = Field(title="User") -class WebhooksProjectCardPropCreator(GitHubModel): +class WebhooksMembershipPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -64,10 +68,10 @@ class WebhooksProjectCardPropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksProjectCard) -model_rebuild(WebhooksProjectCardPropCreator) +model_rebuild(WebhooksMembership) +model_rebuild(WebhooksMembershipPropUser) __all__ = ( - "WebhooksProjectCard", - "WebhooksProjectCardPropCreator", + "WebhooksMembership", + "WebhooksMembershipPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0456.py b/githubkit/versions/v2022_11_28/models/group_0456.py index d39e38c67..37f106c1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0456.py +++ b/githubkit/versions/v2022_11_28/models/group_0456.py @@ -9,67 +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 -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") +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() - 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(WebhooksProject) -model_rebuild(WebhooksProjectPropCreator) + 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(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__ = ( - "WebhooksProject", - "WebhooksProjectPropCreator", + "PersonalAccessTokenRequest", + "PersonalAccessTokenRequestPropPermissionsAdded", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsAddedPropOther", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", + "PersonalAccessTokenRequestPropPermissionsResult", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", + "PersonalAccessTokenRequestPropPermissionsResultPropOther", + "PersonalAccessTokenRequestPropPermissionsResultPropRepository", + "PersonalAccessTokenRequestPropPermissionsUpgraded", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", + "PersonalAccessTokenRequestPropRepositoriesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0457.py b/githubkit/versions/v2022_11_28/models/group_0457.py index be718a05d..39eabd49e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0457.py +++ b/githubkit/versions/v2022_11_28/models/group_0457.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,20 +19,55 @@ from githubkit.utils import UNSET -class WebhooksProjectColumn(GitHubModel): - """Project Column""" +class WebhooksProjectCard(GitHubModel): + """Project Card""" after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = 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() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") + 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() -model_rebuild(WebhooksProjectColumn) +class WebhooksProjectCardPropCreator(GitHubModel): + """User""" -__all__ = ("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"]] = 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/v2022_11_28/models/group_0458.py b/githubkit/versions/v2022_11_28/models/group_0458.py index 46e0ef291..d39e38c67 100644 --- a/githubkit/versions/v2022_11_28/models/group_0458.py +++ b/githubkit/versions/v2022_11_28/models/group_0458.py @@ -10,37 +10,66 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksProject(GitHubModel): + """Project""" -class ProjectsV2(GitHubModel): - """Projects v2 Project - - A projects v2 project - """ - - id: float = Field() - node_id: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() - closed_at: Union[datetime, None] = Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() created_at: datetime = Field() - updated_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() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = 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(ProjectsV2) +model_rebuild(WebhooksProject) +model_rebuild(WebhooksProjectPropCreator) -__all__ = ("ProjectsV2",) +__all__ = ( + "WebhooksProject", + "WebhooksProjectPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0459.py b/githubkit/versions/v2022_11_28/models/group_0459.py index 7daaba6aa..be718a05d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0459.py +++ b/githubkit/versions/v2022_11_28/models/group_0459.py @@ -19,23 +19,20 @@ from githubkit.utils import UNSET -class WebhooksProjectChanges(GitHubModel): - """WebhooksProjectChanges""" +class WebhooksProjectColumn(GitHubModel): + """Project Column""" - archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -class WebhooksProjectChangesPropArchivedAt(GitHubModel): - """WebhooksProjectChangesPropArchivedAt""" +model_rebuild(WebhooksProjectColumn) - 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__ = ( - "WebhooksProjectChanges", - "WebhooksProjectChangesPropArchivedAt", -) +__all__ = ("WebhooksProjectColumn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0460.py b/githubkit/versions/v2022_11_28/models/group_0460.py index 02415cbc5..46e0ef291 100644 --- a/githubkit/versions/v2022_11_28/models/group_0460.py +++ b/githubkit/versions/v2022_11_28/models/group_0460.py @@ -10,39 +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 ProjectsV2Item(GitHubModel): - """Projects v2 Item +class ProjectsV2(GitHubModel): + """Projects v2 Project - An item belonging to a project + A projects v2 project """ 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", - ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + 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() - archived_at: Union[datetime, None] = Field() + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() -model_rebuild(ProjectsV2Item) +model_rebuild(ProjectsV2) -__all__ = ("ProjectsV2Item",) +__all__ = ("ProjectsV2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0461.py b/githubkit/versions/v2022_11_28/models/group_0461.py index da927dd7b..7daaba6aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0461.py +++ b/githubkit/versions/v2022_11_28/models/group_0461.py @@ -9,8 +9,8 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -18,33 +18,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksProjectChanges(GitHubModel): + """WebhooksProjectChanges""" -class ProjectsV2StatusUpdate(GitHubModel): - """Projects v2 Status Update + archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) - 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." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - status: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET) - start_date: Missing[date] = Field(default=UNSET) - target_date: Missing[date] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the status update" - ) +class WebhooksProjectChangesPropArchivedAt(GitHubModel): + """WebhooksProjectChangesPropArchivedAt""" + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) -model_rebuild(ProjectsV2StatusUpdate) -__all__ = ("ProjectsV2StatusUpdate",) +model_rebuild(WebhooksProjectChanges) +model_rebuild(WebhooksProjectChangesPropArchivedAt) + +__all__ = ( + "WebhooksProjectChanges", + "WebhooksProjectChangesPropArchivedAt", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0462.py b/githubkit/versions/v2022_11_28/models/group_0462.py index 89d88a8ed..02415cbc5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0462.py +++ b/githubkit/versions/v2022_11_28/models/group_0462.py @@ -19,125 +19,30 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0042 import Milestone -from .group_0083 import TeamSimple -from .group_0267 import AutoMerge -from .group_0347 import PullRequestPropLabelsItems -from .group_0348 import PullRequestPropBase, PullRequestPropHead -from .group_0349 import PullRequestPropLinks -class PullRequestWebhook(GitHubModel): - """PullRequestWebhook""" +class ProjectsV2Item(GitHubModel): + """Projects v2 Item - 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." + An item belonging to a project + """ + + 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", ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - 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.**", - ) + archived_at: Union[datetime, None] = Field() -model_rebuild(PullRequestWebhook) +model_rebuild(ProjectsV2Item) -__all__ = ("PullRequestWebhook",) +__all__ = ("ProjectsV2Item",) diff --git a/githubkit/versions/v2022_11_28/models/group_0463.py b/githubkit/versions/v2022_11_28/models/group_0463.py index 9e409ec85..da927dd7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0463.py +++ b/githubkit/versions/v2022_11_28/models/group_0463.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date, datetime +from typing import Literal, Union from pydantic import Field @@ -17,47 +18,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -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).", - ) +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." ) - 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.**", + created_at: datetime = Field() + updated_at: datetime = Field() + status: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + start_date: Missing[date] = Field(default=UNSET) + target_date: Missing[date] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the status update" ) -model_rebuild(PullRequestWebhookAllof1) +model_rebuild(ProjectsV2StatusUpdate) -__all__ = ("PullRequestWebhookAllof1",) +__all__ = ("ProjectsV2StatusUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0464.py b/githubkit/versions/v2022_11_28/models/group_0464.py index 3c34b7ef5..6af62a4e1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0464.py +++ b/githubkit/versions/v2022_11_28/models/group_0464.py @@ -18,17 +18,55 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0043 import Milestone +from .group_0085 import TeamSimple +from .group_0269 import AutoMerge +from .group_0349 import PullRequestPropLabelsItems +from .group_0350 import PullRequestPropBase, PullRequestPropHead +from .group_0351 import PullRequestPropLinks -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() +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) + 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", @@ -39,1042 +77,67 @@ class WebhooksPullRequest5(GitHubModel): "NONE", "OWNER", ] = Field( - title="AuthorAssociation", + title="author_association", 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.", + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", 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( + draft: 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." + description="Indicates whether or not the pull request is a draft.", ) - patch_url: str = Field() + merged: bool = Field() + mergeable: Union[bool, None] = Field() rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - 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 - """ - + 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_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( + allow_update_branch: Missing[bool] = 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." + description="Whether to allow updating the pull request's branch.", ) - 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." + description="Whether to delete head branches when pull requests are merged.", ) - 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.", + 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\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" + 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").', ) - 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.", + 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\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:\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" + 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.**", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhooksPullRequest5) -model_rebuild(WebhooksPullRequest5PropAssignee) -model_rebuild(WebhooksPullRequest5PropAssigneesItems) -model_rebuild(WebhooksPullRequest5PropAutoMerge) -model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) -model_rebuild(WebhooksPullRequest5PropLabelsItems) -model_rebuild(WebhooksPullRequest5PropMergedBy) -model_rebuild(WebhooksPullRequest5PropMilestone) -model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) -model_rebuild(WebhooksPullRequest5PropUser) -model_rebuild(WebhooksPullRequest5PropLinks) -model_rebuild(WebhooksPullRequest5PropLinksPropComments) -model_rebuild(WebhooksPullRequest5PropLinksPropCommits) -model_rebuild(WebhooksPullRequest5PropLinksPropHtml) -model_rebuild(WebhooksPullRequest5PropLinksPropIssue) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) -model_rebuild(WebhooksPullRequest5PropLinksPropSelf) -model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) -model_rebuild(WebhooksPullRequest5PropBase) -model_rebuild(WebhooksPullRequest5PropBasePropUser) -model_rebuild(WebhooksPullRequest5PropBasePropRepo) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropHead) -model_rebuild(WebhooksPullRequest5PropHeadPropUser) -model_rebuild(WebhooksPullRequest5PropHeadPropRepo) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) +model_rebuild(PullRequestWebhook) -__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__ = ("PullRequestWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0465.py b/githubkit/versions/v2022_11_28/models/group_0465.py index ae7bc5edf..9e409ec85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0465.py +++ b/githubkit/versions/v2022_11_28/models/group_0465.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,170 +18,46 @@ from githubkit.utils import UNSET -class WebhooksReviewComment(GitHubModel): - """Pull Request Review Comment +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" - 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." + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - 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." + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." + 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.", ) - 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." + 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").', ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." + 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.", ) - 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.", + 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).", + ) ) - subject_type: Missing[Literal["line", "file"]] = Field( + use_squash_pr_title_as_default: Missing[bool] = Field( default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", + 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.**", ) - 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) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ( - "WebhooksReviewComment", - "WebhooksReviewCommentPropLinks", - "WebhooksReviewCommentPropLinksPropHtml", - "WebhooksReviewCommentPropLinksPropPullRequest", - "WebhooksReviewCommentPropLinksPropSelf", - "WebhooksReviewCommentPropReactions", - "WebhooksReviewCommentPropUser", -) +__all__ = ("PullRequestWebhookAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0466.py b/githubkit/versions/v2022_11_28/models/group_0466.py index 1c451c68e..3c34b7ef5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0466.py +++ b/githubkit/versions/v2022_11_28/models/group_0466.py @@ -19,13 +19,16 @@ from githubkit.utils import UNSET -class WebhooksReview(GitHubModel): - """WebhooksReview +class WebhooksPullRequest5(GitHubModel): + """Pull Request""" - The review that was affected. - """ - - links: WebhooksReviewPropLinks = Field(alias="_links") + 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", @@ -39,18 +42,151 @@ class WebhooksReview(GitHubModel): 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.") + 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(description="Unique identifier of the review") + 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() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhooksReviewPropUser, None] = Field(title="User") + 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 WebhooksReviewPropUser(GitHubModel): +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) @@ -77,35 +213,868 @@ class WebhooksReviewPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksReviewPropLinks(GitHubModel): - """WebhooksReviewPropLinks""" +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 - html: WebhooksReviewPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") + 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 WebhooksReviewPropLinksPropHtml(GitHubModel): +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 WebhooksReviewPropLinksPropPullRequest(GitHubModel): +class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -model_rebuild(WebhooksReview) -model_rebuild(WebhooksReviewPropUser) -model_rebuild(WebhooksReviewPropLinks) -model_rebuild(WebhooksReviewPropLinksPropHtml) -model_rebuild(WebhooksReviewPropLinksPropPullRequest) +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__ = ( - "WebhooksReview", - "WebhooksReviewPropLinks", - "WebhooksReviewPropLinksPropHtml", - "WebhooksReviewPropLinksPropPullRequest", - "WebhooksReviewPropUser", + "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_0467.py b/githubkit/versions/v2022_11_28/models/group_0467.py index c65e4fdb4..ae7bc5edf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0467.py +++ b/githubkit/versions/v2022_11_28/models/group_0467.py @@ -19,69 +19,89 @@ from githubkit.utils import UNSET -class WebhooksRelease(GitHubModel): - """Release +class WebhooksReviewComment(GitHubModel): + """Pull Request Review Comment - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ - 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." + 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.", ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksReleasePropReactions] = Field( - default=UNSET, title="Reactions" + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." ) - 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." + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." ) - 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) + 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 WebhooksReleasePropReactions(GitHubModel): +class WebhooksReviewCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -96,31 +116,7 @@ class WebhooksReleasePropReactions(GitHubModel): url: str = Field() -class WebhooksReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - digest: Union[str, None] = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" - ) - url: str = Field() - - -class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): +class WebhooksReviewCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -144,18 +140,49 @@ class WebhooksReleasePropAssetsItemsPropUploader(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 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(WebhooksRelease) -model_rebuild(WebhooksReleasePropAuthor) -model_rebuild(WebhooksReleasePropReactions) -model_rebuild(WebhooksReleasePropAssetsItems) -model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) +model_rebuild(WebhooksReviewComment) +model_rebuild(WebhooksReviewCommentPropReactions) +model_rebuild(WebhooksReviewCommentPropUser) +model_rebuild(WebhooksReviewCommentPropLinks) +model_rebuild(WebhooksReviewCommentPropLinksPropHtml) +model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) +model_rebuild(WebhooksReviewCommentPropLinksPropSelf) __all__ = ( - "WebhooksRelease", - "WebhooksReleasePropAssetsItems", - "WebhooksReleasePropAssetsItemsPropUploader", - "WebhooksReleasePropAuthor", - "WebhooksReleasePropReactions", + "WebhooksReviewComment", + "WebhooksReviewCommentPropLinks", + "WebhooksReviewCommentPropLinksPropHtml", + "WebhooksReviewCommentPropLinksPropPullRequest", + "WebhooksReviewCommentPropLinksPropSelf", + "WebhooksReviewCommentPropReactions", + "WebhooksReviewCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0468.py b/githubkit/versions/v2022_11_28/models/group_0468.py index 205978bfc..1c451c68e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0468.py +++ b/githubkit/versions/v2022_11_28/models/group_0468.py @@ -19,66 +19,38 @@ from githubkit.utils import UNSET -class WebhooksRelease1(GitHubModel): - """Release +class WebhooksReview(GitHubModel): + """WebhooksReview - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. + The review that was affected. """ - assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() - assets_url: str = Field() - author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksRelease1PropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + 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.", ) - 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.") + 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() - size: int = Field() - digest: Union[str, None] = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" - ) - url: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhooksReviewPropUser, None] = Field(title="User") -class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): +class WebhooksReviewPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -102,60 +74,38 @@ class WebhooksRelease1PropAssetsItemsPropUploader(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 WebhooksRelease1PropAuthor(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 WebhooksReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() -class WebhooksRelease1PropReactions(GitHubModel): - """Reactions""" +class WebhooksReviewPropLinksPropPullRequest(GitHubModel): + """Link""" - 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() + href: str = Field() -model_rebuild(WebhooksRelease1) -model_rebuild(WebhooksRelease1PropAssetsItems) -model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) -model_rebuild(WebhooksRelease1PropAuthor) -model_rebuild(WebhooksRelease1PropReactions) +model_rebuild(WebhooksReview) +model_rebuild(WebhooksReviewPropUser) +model_rebuild(WebhooksReviewPropLinks) +model_rebuild(WebhooksReviewPropLinksPropHtml) +model_rebuild(WebhooksReviewPropLinksPropPullRequest) __all__ = ( - "WebhooksRelease1", - "WebhooksRelease1PropAssetsItems", - "WebhooksRelease1PropAssetsItemsPropUploader", - "WebhooksRelease1PropAuthor", - "WebhooksRelease1PropReactions", + "WebhooksReview", + "WebhooksReviewPropLinks", + "WebhooksReviewPropLinksPropHtml", + "WebhooksReviewPropLinksPropPullRequest", + "WebhooksReviewPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0469.py b/githubkit/versions/v2022_11_28/models/group_0469.py index 25a628f6d..1ce3173ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0469.py +++ b/githubkit/versions/v2022_11_28/models/group_0469.py @@ -19,34 +19,109 @@ from githubkit.utils import UNSET -class WebhooksAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class WebhooksRelease(GitHubModel): + """Release - The security alert of the vulnerable dependency. + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ - 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" + 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() + immutable: bool = Field(description="Whether or not the release is immutable.") + 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" + ) + 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." ) - 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() + 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() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() -class WebhooksAlertPropDismisser(GitHubModel): +class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -72,10 +147,16 @@ class WebhooksAlertPropDismisser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksAlert) -model_rebuild(WebhooksAlertPropDismisser) +model_rebuild(WebhooksRelease) +model_rebuild(WebhooksReleasePropAuthor) +model_rebuild(WebhooksReleasePropReactions) +model_rebuild(WebhooksReleasePropAssetsItems) +model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhooksAlert", - "WebhooksAlertPropDismisser", + "WebhooksRelease", + "WebhooksReleasePropAssetsItems", + "WebhooksReleasePropAssetsItemsPropUploader", + "WebhooksReleasePropAuthor", + "WebhooksReleasePropReactions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0470.py b/githubkit/versions/v2022_11_28/models/group_0470.py index fd365af9e..f5f2c3658 100644 --- a/githubkit/versions/v2022_11_28/models/group_0470.py +++ b/githubkit/versions/v2022_11_28/models/group_0470.py @@ -18,93 +18,145 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksRelease1(GitHubModel): + """Release -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ - 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, - 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.", - ) + 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() + immutable: bool = Field(description="Whether or not the release is immutable.") + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksRelease1PropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class 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() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() + + +class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -model_rebuild(SecretScanningAlertWebhook) +model_rebuild(WebhooksRelease1) +model_rebuild(WebhooksRelease1PropAssetsItems) +model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) +model_rebuild(WebhooksRelease1PropAuthor) +model_rebuild(WebhooksRelease1PropReactions) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ( + "WebhooksRelease1", + "WebhooksRelease1PropAssetsItems", + "WebhooksRelease1PropAssetsItemsPropUploader", + "WebhooksRelease1PropAuthor", + "WebhooksRelease1PropReactions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0471.py b/githubkit/versions/v2022_11_28/models/group_0471.py index 70a0fad38..25a628f6d 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 Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,100 +18,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +class WebhooksAlert(GitHubModel): + """Repository Vulnerability Alert Alert -class WebhooksSecurityAdvisory(GitHubModel): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The security alert of the vulnerable dependency. """ - cvss: WebhooksSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() - description: str = Field() + 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() - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() - published_at: str = Field() - references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() + id: int = Field() + node_id: str = Field() + number: int = 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) + 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) __all__ = ( - "WebhooksSecurityAdvisory", - "WebhooksSecurityAdvisoryPropCvss", - "WebhooksSecurityAdvisoryPropCwesItems", - "WebhooksSecurityAdvisoryPropIdentifiersItems", - "WebhooksSecurityAdvisoryPropReferencesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "WebhooksAlert", + "WebhooksAlertPropDismisser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0472.py b/githubkit/versions/v2022_11_28/models/group_0472.py index 86866d0b1..fd365af9e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0472.py +++ b/githubkit/versions/v2022_11_28/models/group_0472.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,129 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -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.", - ) - - -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 SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" -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() + 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, + 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.", + ) -model_rebuild(WebhooksSponsorship) -model_rebuild(WebhooksSponsorshipPropMaintainer) -model_rebuild(WebhooksSponsorshipPropSponsor) -model_rebuild(WebhooksSponsorshipPropSponsorable) -model_rebuild(WebhooksSponsorshipPropTier) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ( - "WebhooksSponsorship", - "WebhooksSponsorshipPropMaintainer", - "WebhooksSponsorshipPropSponsor", - "WebhooksSponsorshipPropSponsorable", - "WebhooksSponsorshipPropTier", -) +__all__ = ("SecretScanningAlertWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0473.py b/githubkit/versions/v2022_11_28/models/group_0473.py index d4236992a..70a0fad38 100644 --- a/githubkit/versions/v2022_11_28/models/group_0473.py +++ b/githubkit/versions/v2022_11_28/models/group_0473.py @@ -9,54 +9,108 @@ 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_0001 import CvssSeverities + -class WebhooksChanges8(GitHubModel): - """WebhooksChanges8""" +class WebhooksSecurityAdvisory(GitHubModel): + """WebhooksSecurityAdvisory - tier: WebhooksChanges8PropTier = Field() + 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 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 WebhooksSecurityAdvisoryPropCvss(GitHubModel): + """WebhooksSecurityAdvisoryPropCvss""" + score: float = Field() + vector_string: Union[str, None] = Field() -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 WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropCwesItems""" - 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() + 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() - node_id: str = Field() -model_rebuild(WebhooksChanges8) -model_rebuild(WebhooksChanges8PropTier) -model_rebuild(WebhooksChanges8PropTierPropFrom) +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__ = ( - "WebhooksChanges8", - "WebhooksChanges8PropTier", - "WebhooksChanges8PropTierPropFrom", + "WebhooksSecurityAdvisory", + "WebhooksSecurityAdvisoryPropCvss", + "WebhooksSecurityAdvisoryPropCwesItems", + "WebhooksSecurityAdvisoryPropIdentifiersItems", + "WebhooksSecurityAdvisoryPropReferencesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0474.py b/githubkit/versions/v2022_11_28/models/group_0474.py index b1c86817a..86866d0b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0474.py +++ b/githubkit/versions/v2022_11_28/models/group_0474.py @@ -18,65 +18,128 @@ from githubkit.utils import UNSET -class WebhooksTeam1(GitHubModel): - """Team +class WebhooksSponsorship(GitHubModel): + """WebhooksSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ + 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""" + + 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) - 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(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[WebhooksTeam1PropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", - ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksTeam1PropParent(GitHubModel): - """WebhooksTeam1PropParent""" +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. + """ - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") + 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() - 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(WebhooksTeam1) -model_rebuild(WebhooksTeam1PropParent) +model_rebuild(WebhooksSponsorship) +model_rebuild(WebhooksSponsorshipPropMaintainer) +model_rebuild(WebhooksSponsorshipPropSponsor) +model_rebuild(WebhooksSponsorshipPropSponsorable) +model_rebuild(WebhooksSponsorshipPropTier) __all__ = ( - "WebhooksTeam1", - "WebhooksTeam1PropParent", + "WebhooksSponsorship", + "WebhooksSponsorshipPropMaintainer", + "WebhooksSponsorshipPropSponsor", + "WebhooksSponsorshipPropSponsorable", + "WebhooksSponsorshipPropTier", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0475.py b/githubkit/versions/v2022_11_28/models/group_0475.py index ff593e03d..d4236992a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0475.py +++ b/githubkit/versions/v2022_11_28/models/group_0475.py @@ -9,47 +9,54 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +class WebhooksChanges8(GitHubModel): + """WebhooksChanges8""" -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" + tier: WebhooksChanges8PropTier = Field() - 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.", + +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(WebhookBranchProtectionConfigurationDisabled) +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__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ( + "WebhooksChanges8", + "WebhooksChanges8PropTier", + "WebhooksChanges8PropTierPropFrom", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0476.py b/githubkit/versions/v2022_11_28/models/group_0476.py index f51bb3820..b1c86817a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0476.py +++ b/githubkit/versions/v2022_11_28/models/group_0476.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,39 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +class WebhooksTeam1(GitHubModel): + """Team -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" + Groups of organization members that gives permissions on specified repositories. + """ - 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)."', + 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", + ) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeam1PropParent(GitHubModel): + """WebhooksTeam1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) - 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(WebhookBranchProtectionConfigurationEnabled) +model_rebuild(WebhooksTeam1) +model_rebuild(WebhooksTeam1PropParent) -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) +__all__ = ( + "WebhooksTeam1", + "WebhooksTeam1PropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0477.py b/githubkit/versions/v2022_11_28/models/group_0477.py index 139a242f6..0e9b5bfbf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0477.py +++ b/githubkit/versions/v2022_11_28/models/group_0477.py @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0428 import WebhooksRule +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule 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", @@ -48,13 +47,9 @@ class WebhookBranchProtectionRuleCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionRuleCreated) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ("WebhookBranchProtectionRuleCreated",) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0478.py b/githubkit/versions/v2022_11_28/models/group_0478.py index 9c8de3bc0..10d456d16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0478.py +++ b/githubkit/versions/v2022_11_28/models/group_0478.py @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0428 import WebhooksRule +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - action: Literal["deleted"] = Field() + action: Literal["enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,13 +47,9 @@ class WebhookBranchProtectionRuleDeleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionRuleDeleted) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ("WebhookBranchProtectionRuleDeleted",) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0479.py b/githubkit/versions/v2022_11_28/models/group_0479.py index 7648639f7..ac62e23de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0479.py +++ b/githubkit/versions/v2022_11_28/models/group_0479.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,21 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0428 import WebhooksRule +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0430 import WebhooksRule -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", - ) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -59,167 +55,6 @@ class WebhookBranchProtectionRuleEdited(GitHubModel): 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(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(WebhookBranchProtectionRuleCreated) -__all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", -) +__all__ = ("WebhookBranchProtectionRuleCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0480.py b/githubkit/versions/v2022_11_28/models/group_0480.py index cdbe8f0f3..cfa6c707b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0480.py +++ b/githubkit/versions/v2022_11_28/models/group_0480.py @@ -18,19 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0430 import CheckRunWithSimpleCheckSuite +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0430 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/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/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/v2022_11_28/models/group_0481.py b/githubkit/versions/v2022_11_28/models/group_0481.py index 15f0118a0..5a383a6ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0481.py +++ b/githubkit/versions/v2022_11_28/models/group_0481.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_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0430 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/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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(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/v2022_11_28/models/group_0482.py b/githubkit/versions/v2022_11_28/models/group_0482.py index 8813798e6..a97bc6906 100644 --- a/githubkit/versions/v2022_11_28/models/group_0482.py +++ b/githubkit/versions/v2022_11_28/models/group_0482.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0430 import CheckRunWithSimpleCheckSuite +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0432 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - action: Literal["created"] = 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 WebhookCheckRunCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreated) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ("WebhookCheckRunCompleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0483.py b/githubkit/versions/v2022_11_28/models/group_0483.py index 2a3f094c3..15f0118a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0483.py +++ b/githubkit/versions/v2022_11_28/models/group_0483.py @@ -14,17 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event - The check_run.created 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.created 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(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0484.py b/githubkit/versions/v2022_11_28/models/group_0484.py index 279994da0..e50a37bc9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0484.py +++ b/githubkit/versions/v2022_11_28/models/group_0484.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0430 import CheckRunWithSimpleCheckSuite +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0432 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - action: Literal["requested_action"] = Field() + action: Literal["created"] = Field() check_run: CheckRunWithSimpleCheckSuite = Field( title="CheckRun", description="A check performed on the code of a given code change", @@ -46,28 +46,9 @@ 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.") - ) 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(WebhookCheckRunCreated) -__all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", -) +__all__ = ("WebhookCheckRunCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0485.py b/githubkit/versions/v2022_11_28/models/group_0485.py index ccf1a4c5f..2a3f094c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0485.py +++ b/githubkit/versions/v2022_11_28/models/group_0485.py @@ -14,17 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event - The check_run.requested_action webhook encoded with URL encoding + The check_run.created webhook encoded with URL encoding """ payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0486.py b/githubkit/versions/v2022_11_28/models/group_0486.py index c8209810d..f68af45bb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0486.py +++ b/githubkit/versions/v2022_11_28/models/group_0486.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0430 import CheckRunWithSimpleCheckSuite +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0432 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" - action: Literal["rerequested"] = Field() + action: Literal["requested_action"] = Field() check_run: CheckRunWithSimpleCheckSuite = Field( title="CheckRun", description="A check performed on the code of a given code change", @@ -46,9 +46,28 @@ class WebhookCheckRunRerequested(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.") + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRerequested) +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) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ( + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0487.py b/githubkit/versions/v2022_11_28/models/group_0487.py index a44f5cc13..ccf1a4c5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0487.py +++ b/githubkit/versions/v2022_11_28/models/group_0487.py @@ -14,17 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event - The check_run.rerequested webhook encoded with URL encoding + The check_run.requested_action 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.requested_action JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0488.py b/githubkit/versions/v2022_11_28/models/group_0488.py index 9fc4aa2b7..c66c29e5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0488.py +++ b/githubkit/versions/v2022_11_28/models/group_0488.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,23 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0432 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested 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["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, @@ -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(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRerequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0489.py b/githubkit/versions/v2022_11_28/models/group_0489.py index e39716b92..a44f5cc13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0489.py +++ b/githubkit/versions/v2022_11_28/models/group_0489.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_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 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 WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app + The check_run.rerequested 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.rerequested 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(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0490.py b/githubkit/versions/v2022_11_28/models/group_0490.py index 1571ae5e7..a0c5ab65a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0490.py +++ b/githubkit/versions/v2022_11_28/models/group_0490.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + 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( @@ -54,14 +54,14 @@ class WebhookCheckSuiteRerequested(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite +class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuite The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ after: Union[str, None] = Field() - app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = 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.", ) @@ -77,15 +77,17 @@ class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): "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." + 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( + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( title="SimpleCommit" ) head_sha: str = Field( @@ -95,22 +97,22 @@ class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): latest_check_runs_count: int = Field() node_id: str = Field() pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + 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"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) + 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 WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -128,15 +130,15 @@ class actors within GitHub. 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" + 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[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( Field(title="User") ) permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + 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" @@ -144,7 +146,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -171,8 +173,8 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions The set of permissions for the GitHub app """ @@ -222,14 +224,14 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubMod workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): """SimpleCommit""" - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( title="Committer", description="Metaproperties for Git author/committer information.", ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( Field( title="Committer", description="Metaproperties for Git author/committer information.", @@ -241,7 +243,7 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): tree_id: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): """Committer Metaproperties for Git author/committer information. @@ -253,9 +255,7 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubM username: Missing[str] = Field(default=UNSET) -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): """Committer Metaproperties for Git author/committer information. @@ -267,13 +267,13 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( username: Missing[str] = Field(default=UNSET) -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( Field() ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( Field() ) id: int = Field() @@ -281,19 +281,19 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubMode url: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -303,19 +303,19 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePro url: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( GitHubModel ): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -325,36 +325,36 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPro 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(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( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0491.py b/githubkit/versions/v2022_11_28/models/group_0491.py index 7c0ea4b47..97be627e1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0491.py +++ b/githubkit/versions/v2022_11_28/models/group_0491.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + 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 WebhookCodeScanningAlertAppearedInBranch(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,51 +54,98 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +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[datetime, 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" + ) + 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." ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - 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() + 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 WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -131,106 +172,188 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" +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 ) - 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[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = 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 WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion +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 WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - text: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" - description: str = Field( - description="A short description of the rule used to detect the alert." + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - 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." + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" +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(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +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( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0492.py b/githubkit/versions/v2022_11_28/models/group_0492.py index 9f00ffb88..e20bcd17a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0492.py +++ b/githubkit/versions/v2022_11_28/models/group_0492.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested 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." + 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 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,53 +54,97 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert +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." + ) + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + head_sha: str = Field( + description="The SHA of the head commit that is being checked." ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: Union[ - 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`.", + 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" ) - 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." + 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" ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() - dismissal_approved_by: Missing[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, None - ] - ] = Field(default=UNSET, title="User") + 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 WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -133,138 +171,190 @@ class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - 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[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = 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 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 WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( GitHubModel ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + """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 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.", +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy(GitHubModel): - """User""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertClosedByUser) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +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( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy) __all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0493.py b/githubkit/versions/v2022_11_28/models/group_0493.py index 0cdbefe95..4b769ebe1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0493.py +++ b/githubkit/versions/v2022_11_28/models/group_0493.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -60,49 +60,80 @@ class WebhookCodeScanningAlertCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ - created_at: Union[datetime, None] = Field( + created_at: datetime = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - dismissed_at: None = Field( + dismissed_at: Union[datetime, None] = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - dismissed_by: None = Field() + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( Field( default=UNSET, description="The dismissal comment associated with the dismissal of the alert.", ) ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") fixed_at: Missing[None] = Field( default=UNSET, description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) 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] + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, + 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( + 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: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() url: str = Field() - dismissal_approved_by: Missing[None] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): +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( @@ -118,10 +149,10 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel 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 + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -131,10 +162,12 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel ) -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -143,40 +176,33 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" 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""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - 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." ) @@ -185,22 +211,26 @@ class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation +) model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0494.py b/githubkit/versions/v2022_11_28/models/group_0494.py index 003f658d2..d2f1730ce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0494.py +++ b/githubkit/versions/v2022_11_28/models/group_0494.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -60,8 +60,8 @@ class WebhookCodeScanningAlertFixed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert The code scanning alert involved in the event. """ @@ -69,12 +69,12 @@ class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): 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( + dismissed_at: datetime = 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_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( Field( default=UNSET, @@ -89,20 +89,24 @@ class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): 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] + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, 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." + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( + description="State of a code scanning alert." ) - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() url: str = Field() + dismissal_approved_by: Missing[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, None + ] + ] = Field(default=UNSET, title="User") -class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -129,7 +133,7 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): """Alert Instance""" analysis_key: str = Field( @@ -145,10 +149,10 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): 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 + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -158,10 +162,10 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): ) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -170,16 +174,16 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." @@ -200,8 +204,8 @@ class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): tags: Missing[Union[list[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( @@ -212,22 +216,55 @@ class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy) __all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0495.py b/githubkit/versions/v2022_11_28/models/group_0495.py index d14563665..9cb5c9fee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0495.py +++ b/githubkit/versions/v2022_11_28/models/group_0495.py @@ -19,20 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + action: Literal["created"] = Field() + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( description="The code scanning alert involved in the event." ) - commit_oid: Union[str, None] = Field( + 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( @@ -50,7 +50,7 @@ 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( + 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( @@ -60,28 +60,26 @@ class WebhookCodeScanningAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert The code scanning alert involved in the event. """ - created_at: datetime = Field( + 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: Union[str, None] = Field( + dismissed_at: 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_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: Union[str, None] = Field( + 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( @@ -89,23 +87,22 @@ class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): 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[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, 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( + 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: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) url: str = Field() + dismissal_approved_by: Missing[None] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - - -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): """Alert Instance""" analysis_key: str = Field( @@ -121,10 +118,10 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubMode 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 + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -134,10 +131,10 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubMode ) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -146,16 +143,16 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocatio start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." @@ -176,8 +173,8 @@ class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): tags: Missing[Union[list[str], None]] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" guid: Missing[Union[str, None]] = Field(default=UNSET) name: str = Field( @@ -188,26 +185,22 @@ class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation -) +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0496.py b/githubkit/versions/v2022_11_28/models/group_0496.py index 9b0f16a5a..617daa633 100644 --- a/githubkit/versions/v2022_11_28/models/group_0496.py +++ b/githubkit/versions/v2022_11_28/models/group_0496.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -60,8 +60,8 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert The code scanning alert involved in the event. """ @@ -69,41 +69,67 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): created_at: datetime = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - dismissed_at: None = Field( + dismissed_at: Union[datetime, None] = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - dismissed_by: None = Field() + dismissed_by: Union[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: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") fixed_at: Missing[None] = Field( default=UNSET, description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None - ] + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() - state: Union[None, Literal["open", "fixed"]] = Field( + rule: 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: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( - GitHubModel -): +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( @@ -119,10 +145,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -132,12 +158,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n - """ + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" end_column: Missing[int] = Field(default=UNSET) end_line: Missing[int] = Field(default=UNSET) @@ -146,31 +170,40 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +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 WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +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." ) @@ -179,24 +212,22 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) +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__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0497.py b/githubkit/versions/v2022_11_28/models/group_0497.py index aef1e4908..d5360bd4d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0497.py +++ b/githubkit/versions/v2022_11_28/models/group_0497.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,20 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = 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: 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, @@ -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: 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.", @@ -55,104 +60,154 @@ class WebhookCommitCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" - ) - updated_at: str = Field() + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: 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() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + + +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 WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" - 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() + 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 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() +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) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=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) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0498.py b/githubkit/versions/v2022_11_28/models/group_0498.py index c71433182..8b27ad0bd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0498.py +++ b/githubkit/versions/v2022_11_28/models/group_0498.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,17 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" - description: Union[str, None] = Field( - description="The repository's current description." + 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, @@ -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,143 @@ class WebhookCreate(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCreate) +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__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0499.py b/githubkit/versions/v2022_11_28/models/group_0499.py index 018815d01..505a43c24 100644 --- a/githubkit/versions/v2022_11_28/models/group_0499.py +++ b/githubkit/versions/v2022_11_28/models/group_0499.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0119 import CustomProperty -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" - action: Literal["created"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +48,111 @@ class 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." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: str = Field() + html_url: str = Field() + id: int = Field(description="The ID of the commit comment.") + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the commit comment.") + path: Union[str, None] = Field( + description="The relative path of the file to which the comment applies." ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( + default=UNSET, title="Reactions" + ) + updated_at: str = Field() + url: str = Field() + user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCustomPropertyCreated) +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0500.py b/githubkit/versions/v2022_11_28/models/group_0500.py index 2f9dd835e..bd12a13f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0500.py +++ b/githubkit/versions/v2022_11_28/models/group_0500.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,16 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCreate(GitHubModel): + """create event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + description: Union[str, None] = Field( + description="The repository's current description." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,26 +40,30 @@ class WebhookCustomPropertyDeleted(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.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." ) + 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", + description="The repository on GitHub where the event occurred. Webhook 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 WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" - - property_name: str = Field(description="The name of the property that was deleted.") - - -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +model_rebuild(WebhookCreate) -__all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", -) +__all__ = ("WebhookCreate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0501.py b/githubkit/versions/v2022_11_28/models/group_0501.py index e96ef170e..f719fc8ea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0501.py +++ b/githubkit/versions/v2022_11_28/models/group_0501.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0119 import CustomProperty -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks +from .group_0121 import CustomProperty +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks -class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): - """custom property promoted to business event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" - action: Literal["promote_to_enterprise"] = Field() + action: Literal["created"] = Field() definition: CustomProperty = Field( title="Organization Custom Property", description="Custom property defined on an organization", @@ -52,6 +52,6 @@ class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): ) -model_rebuild(WebhookCustomPropertyPromotedToEnterprise) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookCustomPropertyPromotedToEnterprise",) +__all__ = ("WebhookCustomPropertyCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0502.py b/githubkit/versions/v2022_11_28/models/group_0502.py index 62e1931e4..924b5aec1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0502.py +++ b/githubkit/versions/v2022_11_28/models/group_0502.py @@ -18,20 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0119 import CustomProperty -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" - action: Literal["updated"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", - ) + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,6 +48,16 @@ class WebhookCustomPropertyUpdated(GitHubModel): ) -model_rebuild(WebhookCustomPropertyUpdated) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookCustomPropertyUpdated",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0503.py b/githubkit/versions/v2022_11_28/models/group_0503.py index b00c9b6c2..b5db9f0d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0503.py +++ b/githubkit/versions/v2022_11_28/models/group_0503.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0121 import CustomPropertyValue -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0121 import CustomProperty +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): + """custom property promoted to business event""" - action: Literal["updated"] = Field() + action: Literal["promote_to_enterprise"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +42,16 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - 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." - ) -model_rebuild(WebhookCustomPropertyValuesUpdated) +model_rebuild(WebhookCustomPropertyPromotedToEnterprise) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ("WebhookCustomPropertyPromotedToEnterprise",) diff --git a/githubkit/versions/v2022_11_28/models/group_0504.py b/githubkit/versions/v2022_11_28/models/group_0504.py index 084b79d0e..241f10a31 100644 --- a/githubkit/versions/v2022_11_28/models/group_0504.py +++ b/githubkit/versions/v2022_11_28/models/group_0504.py @@ -18,15 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0121 import CustomProperty +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" + 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", @@ -42,22 +47,11 @@ class WebhookDelete(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDelete) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDelete",) +__all__ = ("WebhookCustomPropertyUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0505.py b/githubkit/versions/v2022_11_28/models/group_0505.py index 319b34681..a8322329f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0505.py +++ b/githubkit/versions/v2022_11_28/models/group_0505.py @@ -18,40 +18,46 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0283 import DependabotAlert -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0123 import CustomPropertyValue +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + new_property_values: list[CustomPropertyValue] = Field( + description="The new custom property values for the repository." + ) + old_property_values: list[CustomPropertyValue] = Field( + description="The old custom property values for the repository." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoDismissed) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0506.py b/githubkit/versions/v2022_11_28/models/group_0506.py index 086accc4b..1123f7e8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0506.py +++ b/githubkit/versions/v2022_11_28/models/group_0506.py @@ -18,18 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0283 import DependabotAlert -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["auto_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/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,10 +42,14 @@ 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)."', + 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 WebhookDependabotAlertAutoReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoReopened) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ("WebhookDelete",) diff --git a/githubkit/versions/v2022_11_28/models/group_0507.py b/githubkit/versions/v2022_11_28/models/group_0507.py index 1771dbdf6..3785f0482 100644 --- a/githubkit/versions/v2022_11_28/models/group_0507.py +++ b/githubkit/versions/v2022_11_28/models/group_0507.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0283 import DependabotAlert -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0285 import DependabotAlert +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["created"] = Field() + action: Literal["auto_dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertCreated) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0508.py b/githubkit/versions/v2022_11_28/models/group_0508.py index 0353296d5..fb76437d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0508.py +++ b/githubkit/versions/v2022_11_28/models/group_0508.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0283 import DependabotAlert -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0285 import DependabotAlert +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["dismissed"] = Field() + action: Literal["auto_reopened"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertDismissed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertDismissed) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ("WebhookDependabotAlertAutoReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0509.py b/githubkit/versions/v2022_11_28/models/group_0509.py index cc52ecf74..19074a16f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0509.py +++ b/githubkit/versions/v2022_11_28/models/group_0509.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0283 import DependabotAlert -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0285 import DependabotAlert +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" - action: Literal["fixed"] = Field() + action: Literal["created"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertFixed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertFixed) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookDependabotAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0510.py b/githubkit/versions/v2022_11_28/models/group_0510.py index 2ba412cf7..b329a9b19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0510.py +++ b/githubkit/versions/v2022_11_28/models/group_0510.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0283 import DependabotAlert -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0285 import DependabotAlert +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["reintroduced"] = Field() + action: Literal["dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertReintroduced(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookDependabotAlertDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0511.py b/githubkit/versions/v2022_11_28/models/group_0511.py index fc881d059..d18df62bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0511.py +++ b/githubkit/versions/v2022_11_28/models/group_0511.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0283 import DependabotAlert -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0285 import DependabotAlert +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["reopened"] = Field() + action: Literal["fixed"] = 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(WebhookDependabotAlertFixed) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDependabotAlertFixed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0512.py b/githubkit/versions/v2022_11_28/models/group_0512.py index ea7f3cf2a..775c861dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0512.py +++ b/githubkit/versions/v2022_11_28/models/group_0512.py @@ -18,35 +18,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0431 import WebhooksDeployKey +from .group_0285 import DependabotAlert +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced 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["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)."', ) - 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(WebhookDependabotAlertReintroduced) -__all__ = ("WebhookDeployKeyCreated",) +__all__ = ("WebhookDependabotAlertReintroduced",) diff --git a/githubkit/versions/v2022_11_28/models/group_0513.py b/githubkit/versions/v2022_11_28/models/group_0513.py index 761d7cd3a..ef429cfb0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0513.py +++ b/githubkit/versions/v2022_11_28/models/group_0513.py @@ -18,35 +18,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0431 import WebhooksDeployKey +from .group_0285 import DependabotAlert +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert 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/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)."', ) - 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(WebhookDependabotAlertReopened) -__all__ = ("WebhookDeployKeyDeleted",) +__all__ = ("WebhookDependabotAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0514.py b/githubkit/versions/v2022_11_28/models/group_0514.py index 024fa1396..5e50ab22e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0514.py +++ b/githubkit/versions/v2022_11_28/models/group_0514.py @@ -9,31 +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_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0432 import WebhooksWorkflow +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0433 import WebhooksDeployKey -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key created 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", @@ -44,6 +39,9 @@ class WebhookDeploymentCreated(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", @@ -54,567 +52,8 @@ class WebhookDeploymentCreated(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(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(WebhookDeployKeyCreated) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeployKeyCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0515.py b/githubkit/versions/v2022_11_28/models/group_0515.py index 65dd95507..7d06b7984 100644 --- a/githubkit/versions/v2022_11_28/models/group_0515.py +++ b/githubkit/versions/v2022_11_28/models/group_0515.py @@ -18,54 +18,42 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0215 import Deployment -from .group_0346 import PullRequest -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0433 import WebhooksDeployKey -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The name of the environment that has the deployment protection rule.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - 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( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - 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.", + 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.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook 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(WebhookDeployKeyDeleted) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ("WebhookDeployKeyDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0516.py b/githubkit/versions/v2022_11_28/models/group_0516.py index b15738c2d..3741402c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0516.py +++ b/githubkit/versions/v2022_11_28/models/group_0516.py @@ -14,25 +14,26 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0433 import WebhooksApprover, WebhooksReviewersItems -from .group_0434 import WebhooksWorkflowJobRun +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0434 import WebhooksWorkflow -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" - action: Literal["approved"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) + 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", @@ -43,7 +44,8 @@ class WebhookDeploymentReviewApproved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,35 +53,194 @@ class WebhookDeploymentReviewApproved(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( + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( title="Deployment Workflow Run" ) -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" +class WebhookDeploymentCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) + 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: 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) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + 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 WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): + +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[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -103,11 +264,9 @@ class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): display_title: str = Field() event: str = Field() head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) + head_commit: Missing[None] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -117,21 +276,19 @@ class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): name: str = Field() node_id: str = Field() path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + previous_attempt_url: Missing[None] = Field(default=UNSET) pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], + list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], None, ] ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( + default=UNSET + ) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() run_number: int = Field() @@ -139,16 +296,16 @@ class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") + triggering_actor: Missing[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] + ] = Field(default=UNSET, title="User") updated_at: datetime = Field() url: str = Field() workflow_id: int = Field() workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -175,21 +332,15 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -216,8 +367,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -230,7 +381,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubMod 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) + 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) @@ -254,7 +405,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubMod node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -269,10 +420,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -292,11 +441,10 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( 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""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -309,7 +457,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): 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) + 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) @@ -332,9 +480,9 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): 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) + 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) @@ -348,10 +496,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -371,32 +517,29 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( 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): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -406,19 +549,17 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBas url: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -428,48 +569,52 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHea 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(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + 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( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", + "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_0517.py b/githubkit/versions/v2022_11_28/models/group_0517.py index 80f03ef22..a4f4edaf1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0517.py +++ b/githubkit/versions/v2022_11_28/models/group_0517.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,457 +18,54 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0433 import WebhooksApprover, WebhooksReviewersItems -from .group_0434 import WebhooksWorkflowJobRun +from .group_0217 import Deployment +from .group_0348 import PullRequest +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["requested"] = Field() + environment: 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 name of the environment that has the deployment protection rule.", ) - installation: Missing[SimpleInstallation] = Field( + event: 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="The event that triggered the deployment protection rule.", ) - 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.", + 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", ) - repository: RepositoryWebhooks = Field( + 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.", ) - 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() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - 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" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - 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(WebhookDeploymentProtectionRuleRequested) -__all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0518.py b/githubkit/versions/v2022_11_28/models/group_0518.py index dce6f5ad7..4af938e4a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0518.py +++ b/githubkit/versions/v2022_11_28/models/group_0518.py @@ -19,23 +19,25 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0435 import WebhooksApprover, WebhooksReviewersItems +from .group_0436 import WebhooksWorkflowJobRun -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["requested"] = Field() + 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)."', ) - environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -49,70 +51,36 @@ 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() + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") since: str = Field() - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = 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 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""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + 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: 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) + 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 WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( - Field(title="User") + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) cancel_url: Missing[str] = Field(default=UNSET) @@ -132,13 +100,14 @@ class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): ], ] = Field() created_at: datetime = Field() + display_title: str = Field() event: str = Field() head_branch: str = Field() head_commit: Missing[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] ] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -150,18 +119,18 @@ class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): path: str = Field() previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository ] = Field(default=UNSET) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() @@ -171,16 +140,15 @@ class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): "requested", "in_progress", "completed", "queued", "waiting", "pending" ] = Field() triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, 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): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -207,21 +175,21 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -248,8 +216,8 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -286,7 +254,7 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubMo node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -301,10 +269,10 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -327,8 +295,8 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -365,7 +333,7 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel) node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -380,10 +348,10 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -406,29 +374,29 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -438,19 +406,19 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBa url: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -460,54 +428,48 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHe 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(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems ) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase ) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead ) model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", + "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_0519.py b/githubkit/versions/v2022_11_28/models/group_0519.py index d9ee1a2e9..46227abcf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0519.py +++ b/githubkit/versions/v2022_11_28/models/group_0519.py @@ -14,32 +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_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0432 import WebhooksWorkflow +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0435 import WebhooksApprover, WebhooksReviewersItems +from .group_0436 import WebhooksWorkflowJobRun -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - 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["rejected"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,8 +43,7 @@ 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)."', ) - 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.", ) @@ -59,414 +51,35 @@ class WebhookDeploymentStatusCreated(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.") - 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" + 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" ) - updated_at: Union[datetime, None] = Field() -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + 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: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: 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 WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -484,16 +97,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): "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_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -503,38 +116,39 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): name: str = Field() node_id: str = Field() path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - 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", "pending" - ] = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() + ) triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + 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 WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -561,17 +175,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -598,8 +216,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -612,7 +230,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode 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) + 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) @@ -636,7 +254,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -651,10 +269,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -674,10 +292,11 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( 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 WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -690,7 +309,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): 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) + 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) @@ -714,7 +333,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -729,8 +348,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -750,35 +371,32 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHu 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 WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -788,19 +406,19 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -810,76 +428,48 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems ) -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(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead ) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __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", + "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_0520.py b/githubkit/versions/v2022_11_28/models/group_0520.py index d22892fdf..0f9491a98 100644 --- a/githubkit/versions/v2022_11_28/models/group_0520.py +++ b/githubkit/versions/v2022_11_28/models/group_0520.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,34 +19,29 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0436 import WebhooksAnswer -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["answered"] = Field() - answer: WebhooksAnswer = 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 WebhookDiscussionAnswered(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(WebhookDiscussionAnswered) +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__ = ("WebhookDiscussionAnswered",) +__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_0521.py b/githubkit/versions/v2022_11_28/models/group_0521.py index 9bb52c2ea..b0aa2a234 100644 --- a/githubkit/versions/v2022_11_28/models/group_0521.py +++ b/githubkit/versions/v2022_11_28/models/group_0521.py @@ -10,29 +10,35 @@ 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 -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0434 import WebhooksWorkflow -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status 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() + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,45 +60,826 @@ 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: 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 WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" +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) - category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions -class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + The set of permissions for the GitHub app + """ - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( - alias="from" + 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 WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +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() - 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[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = 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[ + 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) - 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 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""" -model_rebuild(WebhookDiscussionCategoryChanged) -model_rebuild(WebhookDiscussionCategoryChangedPropChanges) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + 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__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", + "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_0522.py b/githubkit/versions/v2022_11_28/models/group_0522.py index 010312c46..ae868746f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0522.py +++ b/githubkit/versions/v2022_11_28/models/group_0522.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0438 import WebhooksAnswer +from .group_0439 import Discussion -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["closed"] = Field() + action: Literal["answered"] = Field() + answer: WebhooksAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,6 @@ class WebhookDiscussionClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDiscussionAnswered) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ("WebhookDiscussionAnswered",) diff --git a/githubkit/versions/v2022_11_28/models/group_0523.py b/githubkit/versions/v2022_11_28/models/group_0523.py index 5763ff827..b46232ca6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0523.py +++ b/githubkit/versions/v2022_11_28/models/group_0523.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,19 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion -from .group_0438 import WebhooksComment +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["created"] = Field() - comment: WebhooksComment = Field() + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -56,6 +56,43 @@ class WebhookDiscussionCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionCommentCreated) +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" -__all__ = ("WebhookDiscussionCommentCreated",) + 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_0524.py b/githubkit/versions/v2022_11_28/models/group_0524.py index d4ee351ca..3c6b7259e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0524.py +++ b/githubkit/versions/v2022_11_28/models/group_0524.py @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion -from .group_0438 import WebhooksComment +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["deleted"] = Field() - comment: WebhooksComment = Field() + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -56,6 +54,6 @@ class WebhookDiscussionCommentDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDiscussionClosed) -__all__ = ("WebhookDiscussionCommentDeleted",) +__all__ = ("WebhookDiscussionClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0525.py b/githubkit/versions/v2022_11_28/models/group_0525.py index ed4f8ba85..efa4186b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0525.py +++ b/githubkit/versions/v2022_11_28/models/group_0525.py @@ -18,19 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion -from .group_0438 import WebhooksComment +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion +from .group_0440 import WebhooksComment -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() + action: Literal["created"] = Field() comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." @@ -57,24 +56,6 @@ class WebhookDiscussionCommentEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" +model_rebuild(WebhookDiscussionCommentCreated) - body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() - - -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) - -__all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", -) +__all__ = ("WebhookDiscussionCommentCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0526.py b/githubkit/versions/v2022_11_28/models/group_0526.py index b0e3ae295..c4fb16d00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0526.py +++ b/githubkit/versions/v2022_11_28/models/group_0526.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion +from .group_0440 import WebhooksComment -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksComment = 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(WebhookDiscussionCommentDeleted) -__all__ = ("WebhookDiscussionCreated",) +__all__ = ("WebhookDiscussionCommentDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0527.py b/githubkit/versions/v2022_11_28/models/group_0527.py index f46c43f2d..4d8cef5ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0527.py +++ b/githubkit/versions/v2022_11_28/models/group_0527.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion +from .group_0440 import WebhooksComment -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" - action: Literal["deleted"] = 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 WebhookDiscussionDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionDeleted) +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" -__all__ = ("WebhookDiscussionDeleted",) + 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_0528.py b/githubkit/versions/v2022_11_28/models/group_0528.py index 73cebb650..fbdcf569d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0528.py +++ b/githubkit/versions/v2022_11_28/models/group_0528.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["created"] = 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(WebhookDiscussionCreated) - 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__ = ("WebhookDiscussionCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0529.py b/githubkit/versions/v2022_11_28/models/group_0529.py index 2251ed994..ab8a96765 100644 --- a/githubkit/versions/v2022_11_28/models/group_0529.py +++ b/githubkit/versions/v2022_11_28/models/group_0529.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion -from .group_0439 import WebhooksLabel +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - action: Literal["labeled"] = Field() + action: Literal["deleted"] = 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/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(WebhookDiscussionDeleted) -__all__ = ("WebhookDiscussionLabeled",) +__all__ = ("WebhookDiscussionDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0530.py b/githubkit/versions/v2022_11_28/models/group_0530.py index b38eb27ea..d0d93abc5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0530.py +++ b/githubkit/versions/v2022_11_28/models/group_0530.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - action: Literal["locked"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +55,33 @@ class WebhookDiscussionLocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLocked) +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" -__all__ = ("WebhookDiscussionLocked",) + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) + +__all__ = ( + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0531.py b/githubkit/versions/v2022_11_28/models/group_0531.py index 994232a3f..0c73c8cd9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0531.py +++ b/githubkit/versions/v2022_11_28/models/group_0531.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion +from .group_0441 import WebhooksLabel -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - action: Literal["pinned"] = Field() + action: Literal["labeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,6 +43,7 @@ class WebhookDiscussionPinned(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", @@ -54,6 +56,6 @@ class WebhookDiscussionPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionPinned) +model_rebuild(WebhookDiscussionLabeled) -__all__ = ("WebhookDiscussionPinned",) +__all__ = ("WebhookDiscussionLabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0532.py b/githubkit/versions/v2022_11_28/models/group_0532.py index c242d02ea..621b514b2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0532.py +++ b/githubkit/versions/v2022_11_28/models/group_0532.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["reopened"] = Field() + action: Literal["locked"] = 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(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionReopened",) +__all__ = ("WebhookDiscussionLocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0533.py b/githubkit/versions/v2022_11_28/models/group_0533.py index 6769897ec..8748f63bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0533.py +++ b/githubkit/versions/v2022_11_28/models/group_0533.py @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion -from .group_0534 import WebhookDiscussionTransferredPropChanges +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["pinned"] = 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(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionTransferred",) +__all__ = ("WebhookDiscussionPinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0534.py b/githubkit/versions/v2022_11_28/models/group_0534.py index a5975516b..232fde3de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0534.py +++ b/githubkit/versions/v2022_11_28/models/group_0534.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_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" - new_discussion: Discussion = Field( + action: Literal["reopened"] = Field() + discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - new_repository: RepositoryWebhooks = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` 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(WebhookDiscussionReopened) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ("WebhookDiscussionReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0535.py b/githubkit/versions/v2022_11_28/models/group_0535.py index b80834a2f..995e624d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0535.py +++ b/githubkit/versions/v2022_11_28/models/group_0535.py @@ -18,20 +18,32 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0436 import WebhooksAnswer -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion +from .group_0536 import WebhookDiscussionTransferredPropChanges -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" - action: Literal["unanswered"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhooksAnswer = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -41,11 +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(WebhookDiscussionTransferred) -__all__ = ("WebhookDiscussionUnanswered",) +__all__ = ("WebhookDiscussionTransferred",) diff --git a/githubkit/versions/v2022_11_28/models/group_0536.py b/githubkit/versions/v2022_11_28/models/group_0536.py index 771d21213..f5b4edaa1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0536.py +++ b/githubkit/versions/v2022_11_28/models/group_0536.py @@ -9,53 +9,26 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion -from .group_0439 import WebhooksLabel +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - action: Literal["unlabeled"] = Field() - discussion: Discussion = Field( + new_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( + new_repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ("WebhookDiscussionUnlabeled",) +__all__ = ("WebhookDiscussionTransferredPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0537.py b/githubkit/versions/v2022_11_28/models/group_0537.py index 1ecb28507..5ec19fe57 100644 --- a/githubkit/versions/v2022_11_28/models/group_0537.py +++ b/githubkit/versions/v2022_11_28/models/group_0537.py @@ -18,30 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0438 import WebhooksAnswer +from .group_0439 import Discussion -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" - action: Literal["unlocked"] = Field() + action: Literal["unanswered"] = 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)."', - ) + old_answer: WebhooksAnswer = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -51,9 +41,11 @@ class WebhookDiscussionUnlocked(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(WebhookDiscussionUnlocked) +model_rebuild(WebhookDiscussionUnanswered) -__all__ = ("WebhookDiscussionUnlocked",) +__all__ = ("WebhookDiscussionUnanswered",) diff --git a/githubkit/versions/v2022_11_28/models/group_0538.py b/githubkit/versions/v2022_11_28/models/group_0538.py index 52b7bb060..d70759e5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0538.py +++ b/githubkit/versions/v2022_11_28/models/group_0538.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0437 import Discussion +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion +from .group_0441 import WebhooksLabel -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" - action: Literal["unpinned"] = Field() + action: Literal["unlabeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -42,6 +43,7 @@ class WebhookDiscussionUnpinned(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", @@ -54,6 +56,6 @@ class WebhookDiscussionUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionUnlabeled) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionUnlabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0539.py b/githubkit/versions/v2022_11_28/models/group_0539.py index 40f089e0c..ca94e1070 100644 --- a/githubkit/versions/v2022_11_28/models/group_0539.py +++ b/githubkit/versions/v2022_11_28/models/group_0539.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,25 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0540 import WebhookForkPropForkee - +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookFork(GitHubModel): - """fork event - A user forks a repository. - """ +class WebhookDiscussionUnlocked(GitHubModel): + """discussion unlocked event""" + action: Literal["unlocked"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - 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 +54,6 @@ class WebhookFork(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookFork) +model_rebuild(WebhookDiscussionUnlocked) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionUnlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0540.py b/githubkit/versions/v2022_11_28/models/group_0540.py index 69105388f..4237cc0c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0540.py +++ b/githubkit/versions/v2022_11_28/models/group_0540.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,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0542 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0439 import Discussion -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned event""" - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + action: Literal["unpinned"] = 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/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/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(WebhookDiscussionUnpinned) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookDiscussionUnpinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0541.py b/githubkit/versions/v2022_11_28/models/group_0541.py index c567d900a..7c47e2208 100644 --- a/githubkit/versions/v2022_11_28/models/group_0541.py +++ b/githubkit/versions/v2022_11_28/models/group_0541.py @@ -9,187 +9,51 @@ 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_0542 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0542 import WebhookForkPropForkee -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository +class WebhookFork(GitHubModel): + """fork event - A git repository + A user forks a 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( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - has_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." + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource." ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookFork) -__all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", -) +__all__ = ("WebhookFork",) diff --git a/githubkit/versions/v2022_11_28/models/group_0542.py b/githubkit/versions/v2022_11_28/models/group_0542.py index f8d13642f..fba5af2a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0542.py +++ b/githubkit/versions/v2022_11_28/models/group_0542.py @@ -9,23 +9,186 @@ 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 WebhookForkPropForkeeAllof0PropPermissions + + +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee + + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + 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." + ) + 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." + ) + 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 WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = 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) -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) -__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) +__all__ = ( + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0543.py b/githubkit/versions/v2022_11_28/models/group_0543.py index 18554f9e3..436201d9c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0543.py +++ b/githubkit/versions/v2022_11_28/models/group_0543.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,108 +18,160 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0544 import WebhookForkPropForkeeAllof0PropPermissions -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) + +class WebhookForkPropForkeeAllof0(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: 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" + 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" ) - 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) + 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: 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) + 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 WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): - """WebhookForkPropForkeeAllof1PropOwner""" + +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: 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) @@ -126,16 +179,17 @@ class WebhookForkPropForkeeAllof1PropOwner(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"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) __all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0544.py b/githubkit/versions/v2022_11_28/models/group_0544.py index 2a852bdcc..f8d13642f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0544.py +++ b/githubkit/versions/v2022_11_28/models/group_0544.py @@ -9,22 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0003 import SimpleUser +from githubkit.typing import Missing +from githubkit.utils import UNSET -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" - action: Literal["revoked"] = Field() - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0545.py b/githubkit/versions/v2022_11_28/models/group_0545.py index aa22f92c4..18554f9e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0545.py +++ b/githubkit/versions/v2022_11_28/models/group_0545.py @@ -17,58 +17,125 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks - -class WebhookGollum(GitHubModel): - """gollum 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.", - ) - 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.", +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" ) - 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) + 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__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0546.py b/githubkit/versions/v2022_11_28/models/group_0546.py index 324ce9aaf..2a852bdcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0546.py +++ b/githubkit/versions/v2022_11_28/models/group_0546.py @@ -9,51 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0424 import EnterpriseWebhooks -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser -from .group_0440 import WebhooksRepositoriesItems - - -class WebhookInstallationCreated(GitHubModel): - """installation 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: 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[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + + +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" + + action: Literal["revoked"] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationCreated) +model_rebuild(WebhookGithubAppAuthorizationRevoked) -__all__ = ("WebhookInstallationCreated",) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0547.py b/githubkit/versions/v2022_11_28/models/group_0547.py index 7fc971174..887205cff 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 @@ -18,41 +18,57 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0424 import EnterpriseWebhooks -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0440 import WebhooksRepositoriesItems +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" +class WebhookGollum(GitHubModel): + """gollum event""" - action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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(WebhookInstallationDeleted) +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__ = ("WebhookInstallationDeleted",) +__all__ = ( + "WebhookGollum", + "WebhookGollumPropPagesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0548.py b/githubkit/versions/v2022_11_28/models/group_0548.py index e8bc55700..2cfb1367d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0548.py +++ b/githubkit/versions/v2022_11_28/models/group_0548.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,16 +19,17 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0424 import EnterpriseWebhooks -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0440 import WebhooksRepositoriesItems +from .group_0426 import EnterpriseWebhooks +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser +from .group_0442 import WebhooksRepositoriesItems -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - action: Literal["new_permissions_accepted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +50,10 @@ class WebhookInstallationNewPermissionsAccepted(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(WebhookInstallationNewPermissionsAccepted) +model_rebuild(WebhookInstallationCreated) -__all__ = ("WebhookInstallationNewPermissionsAccepted",) +__all__ = ("WebhookInstallationCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0549.py b/githubkit/versions/v2022_11_28/models/group_0549.py index 5cba274fc..ce4fde1ae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0549.py +++ b/githubkit/versions/v2022_11_28/models/group_0549.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +19,16 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0424 import EnterpriseWebhooks -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser -from .group_0441 import WebhooksRepositoriesAddedItems +from .group_0426 import EnterpriseWebhooks +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0442 import WebhooksRepositoriesItems -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - action: Literal["added"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,44 +40,19 @@ class WebhookInstallationRepositoriesAdded(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.", ) - 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." + 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.", ) - 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") + requester: Missing[None] = Field(default=UNSET) 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" - ) - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - node_id: Missing[str] = Field(default=UNSET) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private or public." - ) - - -model_rebuild(WebhookInstallationRepositoriesAdded) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) +model_rebuild(WebhookInstallationDeleted) -__all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookInstallationDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0550.py b/githubkit/versions/v2022_11_28/models/group_0550.py index 6c93ddae5..a97de43bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0550.py +++ b/githubkit/versions/v2022_11_28/models/group_0550.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +19,16 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0424 import EnterpriseWebhooks -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser -from .group_0441 import WebhooksRepositoriesAddedItems +from .group_0426 import EnterpriseWebhooks +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0442 import WebhooksRepositoriesItems -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - action: Literal["removed"] = Field() + action: Literal["new_permissions_accepted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,40 +40,19 @@ class WebhookInstallationRepositoriesRemoved(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.", ) - 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." + 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.", ) - 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") + requester: Missing[None] = Field(default=UNSET) 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) +model_rebuild(WebhookInstallationNewPermissionsAccepted) -__all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookInstallationNewPermissionsAccepted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0551.py b/githubkit/versions/v2022_11_28/models/group_0551.py index 02cac1fe5..c4f4a0e1a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0551.py +++ b/githubkit/versions/v2022_11_28/models/group_0551.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,16 +19,17 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0424 import EnterpriseWebhooks -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0440 import WebhooksRepositoriesItems +from .group_0426 import EnterpriseWebhooks +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser +from .group_0443 import WebhooksRepositoriesAddedItems -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" - action: Literal["suspend"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,19 +41,44 @@ class WebhookInstallationSuspend(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.", ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + 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.", ) - requester: Missing[None] = Field(default=UNSET) + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + requester: Union[WebhooksUser, None] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationSuspend) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" + ) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + node_id: Missing[str] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." + ) + + +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) -__all__ = ("WebhookInstallationSuspend",) +__all__ = ( + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0552.py b/githubkit/versions/v2022_11_28/models/group_0552.py index 15bac630d..a928188e0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0552.py +++ b/githubkit/versions/v2022_11_28/models/group_0552.py @@ -18,118 +18,63 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0018 import Installation +from .group_0426 import EnterpriseWebhooks +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser +from .group_0443 import WebhooksRepositoriesAddedItems -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - 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_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.", ) - 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 + 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 WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str = Field(alias="from") - +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") + 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(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) __all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0553.py b/githubkit/versions/v2022_11_28/models/group_0553.py index c70580faf..8ad8aa065 100644 --- a/githubkit/versions/v2022_11_28/models/group_0553.py +++ b/githubkit/versions/v2022_11_28/models/group_0553.py @@ -19,16 +19,16 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0424 import EnterpriseWebhooks -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0440 import WebhooksRepositoriesItems +from .group_0426 import EnterpriseWebhooks +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0442 import WebhooksRepositoriesItems -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - action: Literal["unsuspend"] = Field() + action: Literal["suspend"] = 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(WebhookInstallationSuspend) -__all__ = ("WebhookInstallationUnsuspend",) +__all__ = ("WebhookInstallationSuspend",) diff --git a/githubkit/versions/v2022_11_28/models/group_0554.py b/githubkit/versions/v2022_11_28/models/group_0554.py index 398c9f69c..6b9281c2f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0554.py +++ b/githubkit/versions/v2022_11_28/models/group_0554.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,47 +18,118 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0555 import WebhookIssueCommentCreatedPropComment -from .group_0556 import WebhookIssueCommentCreatedPropIssue +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" - 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.", - ) + 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: 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)."', ) - 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( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook 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." + ) + 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") -model_rebuild(WebhookIssueCommentCreated) +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ( + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0555.py b/githubkit/versions/v2022_11_28/models/group_0555.py index 05bbc8cba..7edb8b029 100644 --- a/githubkit/versions/v2022_11_28/models/group_0555.py +++ b/githubkit/versions/v2022_11_28/models/group_0555.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_0010 import Integration +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0426 import EnterpriseWebhooks +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0442 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend 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", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + 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)."', ) - 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(WebhookInstallationUnsuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", -) +__all__ = ("WebhookInstallationUnsuspend",) diff --git a/githubkit/versions/v2022_11_28/models/group_0556.py b/githubkit/versions/v2022_11_28/models/group_0556.py index 717da3d8e..fcf9bd2c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0556.py +++ b/githubkit/versions/v2022_11_28/models/group_0556.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,165 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType -from .group_0558 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0563 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary -from .group_0565 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0566 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0557 import WebhookIssueCommentCreatedPropComment +from .group_0558 import WebhookIssueCommentCreatedPropIssue -class WebhookIssueCommentCreatedPropIssue(GitHubModel): - """WebhookIssueCommentCreatedPropIssue +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + 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.", ) - 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) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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: 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'" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." ) - 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 + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class 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: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentCreated) -__all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0557.py b/githubkit/versions/v2022_11_28/models/group_0557.py index d0d0b9694..05bbc8cba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0557.py +++ b/githubkit/versions/v2022_11_28/models/group_0557.py @@ -18,34 +18,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType -from .group_0558 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0560 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0562 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0563 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary +from .group_0010 import Integration -class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + 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", @@ -59,91 +41,24 @@ class WebhookIssueCommentCreatedPropIssueAllof0(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() + body: str = Field(description="Contents of the issue comment") 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.", - ) - ) + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() 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( + performed_via_github_app: Union[None, Integration, None] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( title="Reactions" ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, 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): +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -158,7 +73,7 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -180,21 +95,17 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropUser(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(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0558.py b/githubkit/versions/v2022_11_28/models/group_0558.py index fda7ebaae..08762b112 100644 --- a/githubkit/versions/v2022_11_28/models/group_0558.py +++ b/githubkit/versions/v2022_11_28/models/group_0558.py @@ -18,9 +18,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary +from .group_0560 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) +from .group_0566 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0567 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentCreatedPropIssue(GitHubModel): + """WebhookIssueCommentCreatedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() + -class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -48,36 +125,58 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - 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") + 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 WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" - diff_url: 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) - 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) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0559.py b/githubkit/versions/v2022_11_28/models/group_0559.py index 3775a89ee..f138ec7c0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0559.py +++ b/githubkit/versions/v2022_11_28/models/group_0559.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,8 +18,147 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary +from .group_0560 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) +from .group_0562 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0564 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + +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[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,6 +187,14 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0560.py b/githubkit/versions/v2022_11_28/models/group_0560.py index 0e37b3432..fda7ebaae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0560.py +++ b/githubkit/versions/v2022_11_28/models/group_0560.py @@ -15,38 +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_0559 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 WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +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") + +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) + 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) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0561.py b/githubkit/versions/v2022_11_28/models/group_0561.py index 9a58db044..3775a89ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0561.py +++ b/githubkit/versions/v2022_11_28/models/group_0561.py @@ -18,9 +18,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -42,73 +40,13 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - 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( + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "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) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0562.py b/githubkit/versions/v2022_11_28/models/group_0562.py index 43e8018ca..3e90ee57f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0562.py +++ b/githubkit/versions/v2022_11_28/models/group_0562.py @@ -10,52 +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_0561 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + A collection of related issues and pull requests. """ - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - 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(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0563.py b/githubkit/versions/v2022_11_28/models/group_0563.py index bdfcb7cc4..9a58db044 100644 --- a/githubkit/versions/v2022_11_28/models/group_0563.py +++ b/githubkit/versions/v2022_11_28/models/group_0563.py @@ -9,19 +9,106 @@ 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 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 WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" + The set of permissions for the GitHub app + """ - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + 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(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0564.py b/githubkit/versions/v2022_11_28/models/group_0564.py index 7371c113a..e10a3ef5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0564.py +++ b/githubkit/versions/v2022_11_28/models/group_0564.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,162 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0563 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -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) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + 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() - 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) + 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(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0565.py b/githubkit/versions/v2022_11_28/models/group_0565.py index 0f398dddb..7371c113a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0565.py +++ b/githubkit/versions/v2022_11_28/models/group_0565.py @@ -9,41 +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_0559 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +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) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" -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") +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() - 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 WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) +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__ = ( + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0566.py b/githubkit/versions/v2022_11_28/models/group_0566.py index 2a8fdd0b3..234446e0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0566.py +++ b/githubkit/versions/v2022_11_28/models/group_0566.py @@ -10,46 +10,40 @@ 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_0561 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - created_at: Union[datetime, None] = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - 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(WebhookIssueCommentCreatedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0567.py b/githubkit/versions/v2022_11_28/models/group_0567.py index 722ef2087..13cd4db19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0567.py +++ b/githubkit/versions/v2022_11_28/models/group_0567.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,48 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0442 import WebhooksIssueComment -from .group_0568 import WebhookIssueCommentDeletedPropIssue +from .group_0563 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - 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.", + 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" ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + 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" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentDeletedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeleted) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeleted",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0568.py b/githubkit/versions/v2022_11_28/models/group_0568.py index f4c63fa2c..673827896 100644 --- a/githubkit/versions/v2022_11_28/models/group_0568.py +++ b/githubkit/versions/v2022_11_28/models/group_0568.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,165 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType -from .group_0570 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) -from .group_0575 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary -from .group_0577 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0578 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0444 import WebhooksIssueComment +from .group_0569 import WebhookIssueCommentDeletedPropIssue -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[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.", + 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.", ) - 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) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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: 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'" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + issue: WebhookIssueCommentDeletedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." ) - 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 + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class 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 + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentDeleted) -__all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0569.py b/githubkit/versions/v2022_11_28/models/group_0569.py index bd28a93ec..d6f1aa365 100644 --- a/githubkit/versions/v2022_11_28/models/group_0569.py +++ b/githubkit/versions/v2022_11_28/models/group_0569.py @@ -18,34 +18,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType -from .group_0570 import ( +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary +from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) -from .group_0572 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0574 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0575 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary +from .group_0577 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0578 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp -class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ 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] + 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", @@ -59,7 +56,7 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") + 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() @@ -68,38 +65,25 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() 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.", - ) - ) + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() 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.", - ) + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( Field(default=UNSET) ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() 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'" + sub_issues_summary: Missing[SubIssuesSummary] = 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) @@ -109,13 +93,11 @@ class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): ) updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" - ) + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -143,8 +125,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -158,8 +140,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -187,14 +169,14 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0570.py b/githubkit/versions/v2022_11_28/models/group_0570.py index 79014e43a..08d7d67f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0570.py +++ b/githubkit/versions/v2022_11_28/models/group_0570.py @@ -18,8 +18,103 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary +from .group_0571 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) +from .group_0573 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0575 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) + + +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[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -48,36 +143,58 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - 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") + 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 WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" - diff_url: 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) - 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) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0571.py b/githubkit/versions/v2022_11_28/models/group_0571.py index 132940878..79014e43a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0571.py +++ b/githubkit/versions/v2022_11_28/models/group_0571.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,7 +19,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,6 +48,36 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) + 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""" + + 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/v2022_11_28/models/group_0572.py b/githubkit/versions/v2022_11_28/models/group_0572.py index 84755c958..132940878 100644 --- a/githubkit/versions/v2022_11_28/models/group_0572.py +++ b/githubkit/versions/v2022_11_28/models/group_0572.py @@ -9,44 +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_0571 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(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[ - 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(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + 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_0573.py b/githubkit/versions/v2022_11_28/models/group_0573.py index c6044c9aa..64c64eb6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0573.py +++ b/githubkit/versions/v2022_11_28/models/group_0573.py @@ -9,102 +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 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) +from .group_0572 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - 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) + 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( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0574.py b/githubkit/versions/v2022_11_28/models/group_0574.py index 0525822d2..c6044c9aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0574.py +++ b/githubkit/versions/v2022_11_28/models/group_0574.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,44 +17,94 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0573 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user 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 set of permissions for the GitHub app """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0575.py b/githubkit/versions/v2022_11_28/models/group_0575.py index f0a05c54f..3222d1ed5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0575.py +++ b/githubkit/versions/v2022_11_28/models/group_0575.py @@ -9,19 +9,53 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0574 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(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[ + 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(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0577.py b/githubkit/versions/v2022_11_28/models/group_0577.py index 76f32c102..06b0ac7d3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0577.py +++ b/githubkit/versions/v2022_11_28/models/group_0577.py @@ -16,7 +16,7 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0571 import ( +from .group_0572 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) diff --git a/githubkit/versions/v2022_11_28/models/group_0578.py b/githubkit/versions/v2022_11_28/models/group_0578.py index 2509c6c75..b69a70612 100644 --- a/githubkit/versions/v2022_11_28/models/group_0578.py +++ b/githubkit/versions/v2022_11_28/models/group_0578.py @@ -18,7 +18,7 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0573 import ( +from .group_0574 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) diff --git a/githubkit/versions/v2022_11_28/models/group_0579.py b/githubkit/versions/v2022_11_28/models/group_0579.py index 4e6de8e9f..9a0dfea95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0579.py +++ b/githubkit/versions/v2022_11_28/models/group_0579.py @@ -18,12 +18,12 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0442 import WebhooksIssueComment -from .group_0443 import WebhooksChanges +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0444 import WebhooksIssueComment +from .group_0445 import WebhooksChanges from .group_0580 import WebhookIssueCommentEditedPropIssue diff --git a/githubkit/versions/v2022_11_28/models/group_0580.py b/githubkit/versions/v2022_11_28/models/group_0580.py index 5e611b597..fc6bd7a8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0580.py +++ b/githubkit/versions/v2022_11_28/models/group_0580.py @@ -18,15 +18,15 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) -from .group_0587 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary -from .group_0589 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0590 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp +from .group_0588 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0589 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp class WebhookIssueCommentEditedPropIssue(GitHubModel): @@ -79,9 +79,9 @@ class WebhookIssueCommentEditedPropIssue(GitHubModel): ) reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) state: Literal["open", "closed"] = Field( description="State of the issue; either 'open' or 'closed'" ) diff --git a/githubkit/versions/v2022_11_28/models/group_0581.py b/githubkit/versions/v2022_11_28/models/group_0581.py index 1743b9ffe..f013bfb0a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0581.py +++ b/githubkit/versions/v2022_11_28/models/group_0581.py @@ -18,7 +18,8 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, @@ -28,7 +29,6 @@ from .group_0586 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) -from .group_0587 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): @@ -95,9 +95,9 @@ class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): title="Reactions" ) repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) diff --git a/githubkit/versions/v2022_11_28/models/group_0587.py b/githubkit/versions/v2022_11_28/models/group_0587.py index 2d17d8ee7..7d03e33d0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0587.py +++ b/githubkit/versions/v2022_11_28/models/group_0587.py @@ -9,19 +9,170 @@ 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 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) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class 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 WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + 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(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) +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__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0588.py b/githubkit/versions/v2022_11_28/models/group_0588.py index 7d03e33d0..9b2d3652e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0588.py +++ b/githubkit/versions/v2022_11_28/models/group_0588.py @@ -9,170 +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 +from .group_0583 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -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 WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") - - -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) + 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(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0589.py b/githubkit/versions/v2022_11_28/models/group_0589.py index 9b2d3652e..8a04e1b07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0589.py +++ b/githubkit/versions/v2022_11_28/models/group_0589.py @@ -10,38 +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_0583 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0585 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - 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[ + 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(WebhookIssueCommentEditedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0590.py b/githubkit/versions/v2022_11_28/models/group_0590.py index 8a04e1b07..b242e474d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0590.py +++ b/githubkit/versions/v2022_11_28/models/group_0590.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,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0585 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser +from .group_0446 import WebhooksIssue -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" - 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/admin/overview/about-enterprise-accounts)."', ) - 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesAssigned) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssuesAssigned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0591.py b/githubkit/versions/v2022_11_28/models/group_0591.py index 460d76a0f..f0b3a0b16 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 @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser -from .group_0444 import WebhooksIssue +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0592 import WebhookIssuesClosedPropIssue -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" - action: Literal["assigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + action: Literal["closed"] = Field(description="The action that was performed.") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,9 +39,8 @@ class WebhookIssuesAssigned(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( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + issue: WebhookIssuesClosedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, @@ -57,6 +54,6 @@ class WebhookIssuesAssigned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesAssigned) +model_rebuild(WebhookIssuesClosed) -__all__ = ("WebhookIssuesAssigned",) +__all__ = ("WebhookIssuesClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0592.py b/githubkit/versions/v2022_11_28/models/group_0592.py index 06372d7fe..4b47aabee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0592.py +++ b/githubkit/versions/v2022_11_28/models/group_0592.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,43 +18,209 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0593 import WebhookIssuesClosedPropIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary +from .group_0598 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0600 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0601 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue - 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)."', + 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[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." + 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 ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + 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 ) - 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(WebhookIssuesClosed) +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) -__all__ = ("WebhookIssuesClosed",) +__all__ = ( + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0593.py b/githubkit/versions/v2022_11_28/models/group_0593.py index b8e2e1762..4876a0847 100644 --- a/githubkit/versions/v2022_11_28/models/group_0593.py +++ b/githubkit/versions/v2022_11_28/models/group_0593.py @@ -18,28 +18,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType -from .group_0599 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) -from .group_0601 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0602 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary +from .group_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0597 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +from .group_0598 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue 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 + None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -53,7 +53,7 @@ class WebhookIssuesClosedPropIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") + body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() comments: int = Field() comments_url: str = Field() @@ -62,27 +62,36 @@ class WebhookIssuesClosedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( + labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( default=UNSET ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() + 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[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) + 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: WebhookIssuesClosedPropIssueMergedReactions = Field() + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) 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'" + sub_issues_summary: Missing[SubIssuesSummary] = 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) @@ -92,11 +101,11 @@ class WebhookIssuesClosedPropIssue(GitHubModel): ) updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: WebhookIssuesClosedPropIssueMergedUser = Field() + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") -class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignee""" +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -124,8 +133,8 @@ class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -153,8 +162,8 @@ class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -167,8 +176,8 @@ class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" plus_one: int = Field(alias="+1") minus_one: int = Field(alias="-1") @@ -182,8 +191,8 @@ class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): url: str = Field() -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -211,18 +220,18 @@ class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0594.py b/githubkit/versions/v2022_11_28/models/group_0594.py index ac4b9e501..038d97dfc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0594.py +++ b/githubkit/versions/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,182 +17,8 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType -from .group_0596 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0598 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -from .group_0599 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) - -class WebhookIssuesClosedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") - - -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: 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): +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -222,18 +47,6 @@ class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): 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(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0595.py b/githubkit/versions/v2022_11_28/models/group_0595.py index 038d97dfc..96fa09128 100644 --- a/githubkit/versions/v2022_11_28/models/group_0595.py +++ b/githubkit/versions/v2022_11_28/models/group_0595.py @@ -9,44 +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 - - -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 + +from .group_0594 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator + + +class WebhookIssuesClosedPropIssueAllof0PropMilestone(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[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = 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() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0596.py b/githubkit/versions/v2022_11_28/models/group_0596.py index e561e3775..52dd00063 100644 --- a/githubkit/versions/v2022_11_28/models/group_0596.py +++ b/githubkit/versions/v2022_11_28/models/group_0596.py @@ -9,42 +9,99 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + 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 - A collection of related issues and pull requests. + The set of permissions for the GitHub app """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") + 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 ) - 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() + 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) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0597.py b/githubkit/versions/v2022_11_28/models/group_0597.py index 52dd00063..3546b0265 100644 --- a/githubkit/versions/v2022_11_28/models/group_0597.py +++ b/githubkit/versions/v2022_11_28/models/group_0597.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,43 @@ 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) +from .group_0596 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The set of permissions for the 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. """ - 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[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - organization_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(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0598.py b/githubkit/versions/v2022_11_28/models/group_0598.py index af7a2658d..47fa9ebee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0598.py +++ b/githubkit/versions/v2022_11_28/models/group_0598.py @@ -18,43 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0597 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(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[ - 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() - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) + +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) + + +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0599.py b/githubkit/versions/v2022_11_28/models/group_0599.py index ada7003bc..abefecf23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0599.py +++ b/githubkit/versions/v2022_11_28/models/group_0599.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,28 +18,125 @@ from githubkit.utils import UNSET -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( + Field(default=UNSET) + ) + assignees: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) + ) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["closed", "open"] = Field() + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) +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__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0600.py b/githubkit/versions/v2022_11_28/models/group_0600.py index abefecf23..f11daecb3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0600.py +++ b/githubkit/versions/v2022_11_28/models/group_0600.py @@ -9,134 +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 +from .group_0594 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) - ) - assignees: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) - ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", -) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) + +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0601.py b/githubkit/versions/v2022_11_28/models/group_0601.py index d40500315..b6356aa12 100644 --- a/githubkit/versions/v2022_11_28/models/group_0601.py +++ b/githubkit/versions/v2022_11_28/models/group_0601.py @@ -10,38 +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_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0596 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - 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[ + 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() -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0602.py b/githubkit/versions/v2022_11_28/models/group_0602.py index 1ccb1ebcd..e6cfcfe02 100644 --- a/githubkit/versions/v2022_11_28/models/group_0602.py +++ b/githubkit/versions/v2022_11_28/models/group_0602.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,37 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0597 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0603 import WebhookIssuesDeletedPropIssue -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - 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() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() + 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.") -model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesDeleted) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssuesDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0603.py b/githubkit/versions/v2022_11_28/models/group_0603.py index 68ca61555..3f10b595a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0603.py +++ b/githubkit/versions/v2022_11_28/models/group_0603.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,391 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0604 import WebhookIssuesDeletedPropIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" +class WebhookIssuesDeletedPropIssue(GitHubModel): + """Issue - 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)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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[ + 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" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 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(WebhookIssuesDeletedPropIssuePropUser) -__all__ = ("WebhookIssuesDeleted",) +__all__ = ( + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0604.py b/githubkit/versions/v2022_11_28/models/group_0604.py index fa015e299..b74bd1f7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0604.py +++ b/githubkit/versions/v2022_11_28/models/group_0604.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,400 +17,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0447 import WebhooksMilestone +from .group_0605 import WebhookIssuesDemilestonedPropIssue -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() + action: Literal["demilestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET + issue: WebhookIssuesDemilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( + milestone: Missing[WebhooksMilestone] = Field( + default=UNSET, title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[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") + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository: RepositoryWebhooks = Field( + title="Repository", + 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") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -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(WebhookIssuesDemilestoned) -__all__ = ( - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", - "WebhookIssuesDeletedPropIssuePropUser", -) +__all__ = ("WebhookIssuesDemilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0605.py b/githubkit/versions/v2022_11_28/models/group_0605.py index 2767769d0..75027899b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0605.py +++ b/githubkit/versions/v2022_11_28/models/group_0605.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,50 +18,403 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0445 import WebhooksMilestone -from .group_0606 import WebhookIssuesDemilestonedPropIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" +class WebhookIssuesDemilestonedPropIssue(GitHubModel): + """Issue - 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)."', + 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") ) - issue: WebhookIssuesDemilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + 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.", ) - milestone: Missing[WebhooksMilestone] = 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[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + 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 ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class 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 WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(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(WebhookIssuesDemilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesDemilestoned",) +__all__ = ( + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0606.py b/githubkit/versions/v2022_11_28/models/group_0606.py index 5f3faa379..05dbf4e50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0606.py +++ b/githubkit/versions/v2022_11_28/models/group_0606.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,412 +17,79 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0441 import WebhooksLabel +from .group_0607 import WebhookIssuesEditedPropIssue -class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """Issue +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[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.", + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - 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'" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - 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") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: 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 + issue: WebhookIssuesEditedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - 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" + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - 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" + repository: RepositoryWebhooks = Field( + title="Repository", + 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() - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app + The changes to the issue. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "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""" + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) - 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 WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" -class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" + from_: str = Field(alias="from", description="The previous version of the body.") - 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 WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" + from_: str = Field(alias="from", description="The previous version of the title.") - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - -class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDemilestonedPropIssue) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesEdited) +model_rebuild(WebhookIssuesEditedPropChanges) +model_rebuild(WebhookIssuesEditedPropChangesPropBody) +model_rebuild(WebhookIssuesEditedPropChangesPropTitle) __all__ = ( - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssuePropAssignee", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", - "WebhookIssuesDemilestonedPropIssuePropLabelsItems", - "WebhookIssuesDemilestonedPropIssuePropMilestone", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssuePropPullRequest", - "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesDemilestonedPropIssuePropUser", + "WebhookIssuesEdited", + "WebhookIssuesEditedPropChanges", + "WebhookIssuesEditedPropChangesPropBody", + "WebhookIssuesEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0607.py b/githubkit/versions/v2022_11_28/models/group_0607.py index 716458c2e..72f204612 100644 --- a/githubkit/versions/v2022_11_28/models/group_0607.py +++ b/githubkit/versions/v2022_11_28/models/group_0607.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,79 +18,398 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0439 import WebhooksLabel -from .group_0608 import WebhookIssuesEditedPropIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" +class WebhookIssuesEditedPropIssue(GitHubModel): + """Issue - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the 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" ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + Field() ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - issue: WebhookIssuesEditedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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 WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges +class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): + """Milestone - The changes to the issue. + A collection of related issues and pull requests. """ - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) + 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""" -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - from_: str = Field(alias="from", description="The previous version of the body.") +class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - from_: str = Field(alias="from", description="The previous version of the title.") + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class 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(WebhookIssuesEditedPropIssuePropUser) __all__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", + "WebhookIssuesEditedPropIssue", + "WebhookIssuesEditedPropIssuePropAssignee", + "WebhookIssuesEditedPropIssuePropAssigneesItems", + "WebhookIssuesEditedPropIssuePropLabelsItems", + "WebhookIssuesEditedPropIssuePropMilestone", + "WebhookIssuesEditedPropIssuePropMilestonePropCreator", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesEditedPropIssuePropPullRequest", + "WebhookIssuesEditedPropIssuePropReactions", + "WebhookIssuesEditedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0608.py b/githubkit/versions/v2022_11_28/models/group_0608.py index 6e0648abe..0118ee986 100644 --- a/githubkit/versions/v2022_11_28/models/group_0608.py +++ b/githubkit/versions/v2022_11_28/models/group_0608.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,407 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0441 import WebhooksLabel +from .group_0609 import WebhookIssuesLabeledPropIssue -class WebhookIssuesEditedPropIssue(GitHubModel): - """Issue +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + action: Literal["labeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + issue: WebhookIssuesLabeledPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesEditedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesEditedPropIssue) -model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) -model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesEditedPropIssuePropReactions) -model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesEditedPropIssuePropUser) +model_rebuild(WebhookIssuesLabeled) -__all__ = ( - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", - "WebhookIssuesEditedPropIssuePropUser", -) +__all__ = ("WebhookIssuesLabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0609.py b/githubkit/versions/v2022_11_28/models/group_0609.py index a9c760c5e..7259e1b4c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0609.py +++ b/githubkit/versions/v2022_11_28/models/group_0609.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,46 +18,400 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0439 import WebhooksLabel -from .group_0610 import WebhookIssuesLabeledPropIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" +class WebhookIssuesLabeledPropIssue(GitHubModel): + """Issue - action: Literal["labeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesLabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + 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 WebhookIssuesLabeledPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(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(WebhookIssuesLabeledPropIssuePropUser) -__all__ = ("WebhookIssuesLabeled",) +__all__ = ( + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0610.py b/githubkit/versions/v2022_11_28/models/group_0610.py index 139456b0a..c1eb1ed1d 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,409 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0611 import WebhookIssuesLockedPropIssue -class WebhookIssuesLabeledPropIssue(GitHubModel): - """Issue +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: 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( + action: Literal["locked"] = 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[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - updated_at: Union[datetime, None] = Field() - - -class 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 + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + issue: WebhookIssuesLockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLabeledPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesLabeledPropIssue) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLabeledPropIssuePropUser) +model_rebuild(WebhookIssuesLocked) -__all__ = ( - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", - "WebhookIssuesLabeledPropIssuePropUser", -) +__all__ = ("WebhookIssuesLocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0611.py b/githubkit/versions/v2022_11_28/models/group_0611.py index 63a890f07..f597bb79a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0611.py +++ b/githubkit/versions/v2022_11_28/models/group_0611.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,389 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0612 import WebhookIssuesLockedPropIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" +class WebhookIssuesLockedPropIssue(GitHubModel): + """Issue - action: Literal["locked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[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.", ) - issue: WebhookIssuesLockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( + Field(default=UNSET) ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + 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="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[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" ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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[ + 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" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 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(WebhookIssuesLockedPropIssuePropUser) -__all__ = ("WebhookIssuesLocked",) +__all__ = ( + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0612.py b/githubkit/versions/v2022_11_28/models/group_0612.py index 54cfe7c45..a7e77ed0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0612.py +++ b/githubkit/versions/v2022_11_28/models/group_0612.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,398 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0447 import WebhooksMilestone +from .group_0613 import WebhookIssuesMilestonedPropIssue -class WebhookIssuesLockedPropIssue(GitHubModel): - """Issue +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( - Field() + action: Literal["milestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( - Field(default=UNSET) + issue: WebhookIssuesMilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( + milestone: WebhooksMilestone = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[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) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") - - -class 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 + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class 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) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -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(WebhookIssuesMilestoned) -__all__ = ( - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssuePropAssignee", - "WebhookIssuesLockedPropIssuePropAssigneesItems", - "WebhookIssuesLockedPropIssuePropLabelsItems", - "WebhookIssuesLockedPropIssuePropMilestone", - "WebhookIssuesLockedPropIssuePropMilestonePropCreator", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssuePropPullRequest", - "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", - "WebhookIssuesLockedPropIssuePropUser", -) +__all__ = ("WebhookIssuesMilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0613.py b/githubkit/versions/v2022_11_28/models/group_0613.py index c4ba25f39..91de6637b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0613.py +++ b/githubkit/versions/v2022_11_28/models/group_0613.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,49 +18,393 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0445 import WebhooksMilestone -from .group_0614 import WebhookIssuesMilestonedPropIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" +class WebhookIssuesMilestonedPropIssue(GitHubModel): + """Issue - action: Literal["milestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + Field() ) - issue: WebhookIssuesMilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - milestone: WebhooksMilestone = Field( + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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 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" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 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(WebhookIssuesMilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesMilestoned",) +__all__ = ( + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0614.py b/githubkit/versions/v2022_11_28/models/group_0614.py index 3b5451f4c..c6309d80f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0614.py +++ b/githubkit/versions/v2022_11_28/models/group_0614.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,402 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0615 import WebhookIssuesOpenedPropChanges +from .group_0617 import WebhookIssuesOpenedPropIssue -class WebhookIssuesMilestonedPropIssue(GitHubModel): - """Issue +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + issue: WebhookIssuesOpenedPropIssue = 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) - - -class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesMilestonedPropIssue) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesOpened) -__all__ = ( - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssuePropAssignee", - "WebhookIssuesMilestonedPropIssuePropAssigneesItems", - "WebhookIssuesMilestonedPropIssuePropLabelsItems", - "WebhookIssuesMilestonedPropIssuePropMilestone", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssuePropPullRequest", - "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesMilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0615.py b/githubkit/versions/v2022_11_28/models/group_0615.py index 9cf31491c..3b248ebd6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0615.py +++ b/githubkit/versions/v2022_11_28/models/group_0615.py @@ -9,54 +9,236 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0616 import WebhookIssuesOpenedPropChanges -from .group_0618 import WebhookIssuesOpenedPropIssue +from .group_0616 import WebhookIssuesOpenedPropChangesPropOldIssue -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - installation: Missing[SimpleInstallation] = Field( + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to delete head branches when pull requests are merged", ) - issue: WebhookIssuesOpenedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_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") ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + 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." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesOpened) +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) -__all__ = ("WebhookIssuesOpened",) +__all__ = ( + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0616.py b/githubkit/versions/v2022_11_28/models/group_0616.py index 0fb742f67..ad2fd47be 100644 --- a/githubkit/versions/v2022_11_28/models/group_0616.py +++ b/githubkit/versions/v2022_11_28/models/group_0616.py @@ -14,183 +14,259 @@ 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_0617 import WebhookIssuesOpenedPropChangesPropOldIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - 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 + active_lock_reason: Missing[ + Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + ] = Field(default=UNSET) + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: Missing[ + list[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] ] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + closed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] + ] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: Missing[str] = Field(default=UNSET) + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: Missing[str] = Field(default=UNSET) + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET, description="Title of the issue") + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the issue") + user: Missing[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None]] = ( + Field(default=UNSET, title="User") + ) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - deployments_url: str = Field() + default: bool = 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() + 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(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() + id: int = Field() labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - 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() + number: int = Field(description="The number of the milestone.") open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[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() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." - ) -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties +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) - 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 WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): + """App -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - key: str = Field() - name: str = 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() - spdx_id: str = Field() - url: Union[str, None] = 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 WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -217,28 +293,136 @@ class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" +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) - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) + 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 WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(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(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) __all__ = ( - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0617.py b/githubkit/versions/v2022_11_28/models/group_0617.py index eee89e1e7..5b87119b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0617.py +++ b/githubkit/versions/v2022_11_28/models/group_0617.py @@ -18,99 +18,88 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): +class WebhookIssuesOpenedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - active_lock_reason: Missing[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] - ] = Field(default=UNSET) - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: Missing[ - list[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[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( - default=UNSET, title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - closed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() draft: Missing[bool] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( - Field(default=UNSET) + labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - labels_url: Missing[str] = Field(default=UNSET) + labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] - ] = Field( - default=UNSET, + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + Union[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[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + default=UNSET ) - reactions: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropReactions] = Field( - default=UNSET, title="Reactions" + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" ) - repository_url: Missing[str] = Field(default=UNSET) - sub_issues_summary: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET, description="Title of the issue") - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the issue") - user: Missing[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None]] = ( - Field(default=UNSET, title="User") - ) + title: str = Field(description="Title of the issue") type: Missing[Union[IssueType, None]] = Field( default=UNSET, title="Issue Type", description="The type of issue." ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -137,7 +126,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -164,7 +153,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -178,7 +167,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -187,9 +176,9 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -204,7 +193,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -226,12 +215,14 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(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"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -251,11 +242,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + 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" @@ -263,9 +253,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -292,11 +280,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -320,7 +305,9 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer 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 @@ -342,8 +329,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -352,7 +339,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -367,15 +354,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): +class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -402,36 +381,30 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(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(WebhookIssuesOpenedPropIssuePropUser) __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0618.py b/githubkit/versions/v2022_11_28/models/group_0618.py index e96e52049..7e168743e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0618.py +++ b/githubkit/versions/v2022_11_28/models/group_0618.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,402 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0448 import WebhooksIssue2 -class WebhookIssuesOpenedPropIssue(GitHubModel): - """Issue +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[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( + action: Literal["pinned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( - title="User" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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: 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() - - -class 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 + issue: WebhooksIssue2 = 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) - - -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesPinned) -__all__ = ( - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropIssuePropUser", -) +__all__ = ("WebhookIssuesPinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0619.py b/githubkit/versions/v2022_11_28/models/group_0619.py index 2ebf341ac..b376fe9e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0619.py +++ b/githubkit/versions/v2022_11_28/models/group_0619.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0446 import WebhooksIssue2 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0620 import WebhookIssuesReopenedPropIssue -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["pinned"] = Field() + action: Literal["reopened"] = 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/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesReopenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) @@ -55,6 +55,6 @@ class WebhookIssuesPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesPinned) +model_rebuild(WebhookIssuesReopened) -__all__ = ("WebhookIssuesPinned",) +__all__ = ("WebhookIssuesReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0620.py b/githubkit/versions/v2022_11_28/models/group_0620.py index 4ec470e85..a55a9913c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0620.py +++ b/githubkit/versions/v2022_11_28/models/group_0620.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,399 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0621 import WebhookIssuesReopenedPropIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookIssuesReopenedPropIssue(GitHubModel): + """Issue - 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)."', + 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" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[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.", ) - issue: WebhookIssuesReopenedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + + +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - 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() + + +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 WebhookIssuesReopenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(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(WebhookIssuesReopenedPropIssuePropUser) -__all__ = ("WebhookIssuesReopened",) +__all__ = ( + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0621.py b/githubkit/versions/v2022_11_28/models/group_0621.py index b54544a5f..8e4d54277 100644 --- a/githubkit/versions/v2022_11_28/models/group_0621.py +++ b/githubkit/versions/v2022_11_28/models/group_0621.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,408 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0448 import WebhooksIssue2 +from .group_0622 import WebhookIssuesTransferredPropChanges -class WebhookIssuesReopenedPropIssue(GitHubModel): - """Issue +class WebhookIssuesTransferred(GitHubModel): + """issues transferred 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[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( + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = 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[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - - -class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class 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 + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - 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 + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - 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 + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(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(WebhookIssuesTransferred) -__all__ = ( - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssuePropAssignee", - "WebhookIssuesReopenedPropIssuePropAssigneesItems", - "WebhookIssuesReopenedPropIssuePropLabelsItems", - "WebhookIssuesReopenedPropIssuePropMilestone", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssuePropPullRequest", - "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", - "WebhookIssuesReopenedPropIssuePropUser", -) +__all__ = ("WebhookIssuesTransferred",) diff --git a/githubkit/versions/v2022_11_28/models/group_0622.py b/githubkit/versions/v2022_11_28/models/group_0622.py index b57a8992b..8c54aef33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0622.py +++ b/githubkit/versions/v2022_11_28/models/group_0622.py @@ -9,54 +9,237 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0446 import WebhooksIssue2 -from .group_0623 import WebhookIssuesTransferredPropChanges +from .group_0623 import WebhookIssuesTransferredPropChangesPropNewIssue -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - installation: Missing[SimpleInstallation] = Field( + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to delete head branches when pull requests are merged", ) - issue: WebhooksIssue2 = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTransferred) +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) -__all__ = ("WebhookIssuesTransferred",) +__all__ = ( + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0623.py b/githubkit/versions/v2022_11_28/models/group_0623.py index 579bb6988..830cc6245 100644 --- a/githubkit/versions/v2022_11_28/models/group_0623.py +++ b/githubkit/versions/v2022_11_28/models/group_0623.py @@ -14,184 +14,260 @@ 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_0624 import WebhookIssuesTransferredPropChangesPropNewIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): + """Issue - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - 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." + 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.", ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = 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 + 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( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="Milestone", + description="A collection of related issues and pull requests.", ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] + ] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + 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.", ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" ) - 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_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" ) - 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." + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() + 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(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() + id: int = Field() labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() + number: int = Field(description="The number of the milestone.") open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel ): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=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 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 WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( + GitHubModel +): + """App -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - key: str = Field() - name: str = 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() - spdx_id: str = Field() - url: Union[str, None] = 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 WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,28 +294,136 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" +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() - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) +class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): + """User""" -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=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(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(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) __all__ = ( - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0624.py b/githubkit/versions/v2022_11_28/models/group_0624.py index 7de98684a..b4fccde02 100644 --- a/githubkit/versions/v2022_11_28/models/group_0624.py +++ b/githubkit/versions/v2022_11_28/models/group_0624.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,421 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0044 import IssueType +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0446 import WebhooksIssue -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): - """Issue +class WebhookIssuesTyped(GitHubModel): + """issues typed event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] - ] = Field( + action: Literal["typed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - updated_at: 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - 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" + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - 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" + type: Union[IssueType, None] = Field( + title="Issue Type", description="The type of issue." ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesTyped) -__all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", -) +__all__ = ("WebhookIssuesTyped",) diff --git a/githubkit/versions/v2022_11_28/models/group_0625.py b/githubkit/versions/v2022_11_28/models/group_0625.py index c7f6e4a23..86563a712 100644 --- a/githubkit/versions/v2022_11_28/models/group_0625.py +++ b/githubkit/versions/v2022_11_28/models/group_0625.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0043 import IssueType -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0444 import WebhooksIssue +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0446 import WebhooksIssue +from .group_0449 import WebhooksUserMannequin -class WebhookIssuesTyped(GitHubModel): - """issues typed event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["typed"] = Field() + action: Literal["unassigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,9 +47,6 @@ class WebhookIssuesTyped(GitHubModel): title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - type: Union[IssueType, None] = Field( - title="Issue Type", description="The type of issue." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +59,6 @@ class WebhookIssuesTyped(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTyped) +model_rebuild(WebhookIssuesUnassigned) -__all__ = ("WebhookIssuesTyped",) +__all__ = ("WebhookIssuesUnassigned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0626.py b/githubkit/versions/v2022_11_28/models/group_0626.py index eb47453dc..300a016a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0626.py +++ b/githubkit/versions/v2022_11_28/models/group_0626.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,21 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0444 import WebhooksIssue -from .group_0447 import WebhooksUserMannequin +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0441 import WebhooksLabel +from .group_0446 import WebhooksIssue -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,6 +44,7 @@ class WebhookIssuesUnassigned(GitHubModel): 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", @@ -59,6 +57,6 @@ class WebhookIssuesUnassigned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnassigned) +model_rebuild(WebhookIssuesUnlabeled) -__all__ = ("WebhookIssuesUnassigned",) +__all__ = ("WebhookIssuesUnlabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0627.py b/githubkit/versions/v2022_11_28/models/group_0627.py index 6eff4cd99..500ec3268 100644 --- a/githubkit/versions/v2022_11_28/models/group_0627.py +++ b/githubkit/versions/v2022_11_28/models/group_0627.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0439 import WebhooksLabel -from .group_0444 import WebhooksIssue +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0628 import WebhookIssuesUnlockedPropIssue -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" - action: Literal["unlabeled"] = Field() + action: Literal["unlocked"] = 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/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesUnlockedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,6 +55,6 @@ class WebhookIssuesUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnlabeled) +model_rebuild(WebhookIssuesUnlocked) -__all__ = ("WebhookIssuesUnlabeled",) +__all__ = ("WebhookIssuesUnlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0628.py b/githubkit/versions/v2022_11_28/models/group_0628.py index 5f3ac040b..761663561 100644 --- a/githubkit/versions/v2022_11_28/models/group_0628.py +++ b/githubkit/versions/v2022_11_28/models/group_0628.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,391 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0629 import WebhookIssuesUnlockedPropIssue +from .group_0044 import IssueType +from .group_0046 import SubIssuesSummary -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookIssuesUnlockedPropIssue(GitHubModel): + """Issue - 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)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[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.", ) - issue: WebhookIssuesUnlockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[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.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[SubIssuesSummary] = 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: RepositoryWebhooks = Field( - title="Repository", - 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") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") + + +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() + 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 +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(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(WebhookIssuesUnlockedPropIssuePropUser) -__all__ = ("WebhookIssuesUnlocked",) +__all__ = ( + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0629.py b/githubkit/versions/v2022_11_28/models/group_0629.py index 7dabc60ba..0fed676e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0629.py +++ b/githubkit/versions/v2022_11_28/models/group_0629.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,400 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0043 import IssueType +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0448 import WebhooksIssue2 -class WebhookIssuesUnlockedPropIssue(GitHubModel): - """Issue +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned 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[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( + action: Literal["unpinned"] = 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[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") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") - - -class 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" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class 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" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - 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" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - updated_at: Union[datetime, None] = Field() - - -class 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 -): - """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: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -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(WebhookIssuesUnpinned) -__all__ = ( - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssuePropAssignee", - "WebhookIssuesUnlockedPropIssuePropAssigneesItems", - "WebhookIssuesUnlockedPropIssuePropLabelsItems", - "WebhookIssuesUnlockedPropIssuePropMilestone", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssuePropPullRequest", - "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", - "WebhookIssuesUnlockedPropIssuePropUser", -) +__all__ = ("WebhookIssuesUnpinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0630.py b/githubkit/versions/v2022_11_28/models/group_0630.py index bb7463315..c536f9efd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0630.py +++ b/githubkit/versions/v2022_11_28/models/group_0630.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0446 import WebhooksIssue2 +from .group_0044 import IssueType +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0446 import WebhooksIssue -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookIssuesUntyped(GitHubModel): + """issues untyped event""" - action: Literal["unpinned"] = Field() + action: Literal["untyped"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,13 @@ class WebhookIssuesUnpinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhooksIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + type: Union[IssueType, None] = Field( + title="Issue Type", description="The type of issue." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +59,6 @@ class WebhookIssuesUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnpinned) +model_rebuild(WebhookIssuesUntyped) -__all__ = ("WebhookIssuesUnpinned",) +__all__ = ("WebhookIssuesUntyped",) diff --git a/githubkit/versions/v2022_11_28/models/group_0631.py b/githubkit/versions/v2022_11_28/models/group_0631.py index 5b67ad7d2..552bcdd9d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0631.py +++ b/githubkit/versions/v2022_11_28/models/group_0631.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0043 import IssueType -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0444 import WebhooksIssue +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0441 import WebhooksLabel -class WebhookIssuesUntyped(GitHubModel): - """issues untyped event""" +class WebhookLabelCreated(GitHubModel): + """label created event""" - action: Literal["untyped"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,13 +39,7 @@ class WebhookIssuesUntyped(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( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - type: Union[IssueType, None] = Field( - title="Issue Type", description="The type of issue." - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,9 +49,11 @@ class WebhookIssuesUntyped(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(WebhookIssuesUntyped) +model_rebuild(WebhookLabelCreated) -__all__ = ("WebhookIssuesUntyped",) +__all__ = ("WebhookLabelCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0632.py b/githubkit/versions/v2022_11_28/models/group_0632.py index d85a6e38a..aa77ca8eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0632.py +++ b/githubkit/versions/v2022_11_28/models/group_0632.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0439 import WebhooksLabel +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0441 import WebhooksLabel -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +49,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(WebhookLabelDeleted) -__all__ = ("WebhookLabelCreated",) +__all__ = ("WebhookLabelDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0633.py b/githubkit/versions/v2022_11_28/models/group_0633.py index 67d658e94..5de5985fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0633.py +++ b/githubkit/versions/v2022_11_28/models/group_0633.py @@ -18,17 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0439 import WebhooksLabel +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0441 import WebhooksLabel -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" +class WebhookLabelEdited(GitHubModel): + """label edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,6 +56,56 @@ class WebhookLabelDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookLabelDeleted) +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) -__all__ = ("WebhookLabelDeleted",) +__all__ = ( + "WebhookLabelEdited", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0634.py b/githubkit/versions/v2022_11_28/models/group_0634.py index bc6202ea9..5eb444d2c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0634.py +++ b/githubkit/versions/v2022_11_28/models/group_0634.py @@ -18,21 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0439 import WebhooksLabel +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0450 import WebhooksMarketplacePurchase +from .group_0451 import WebhooksPreviousMarketplacePurchase -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", - ) + action: Literal["cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,69 +41,25 @@ 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") + 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 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(WebhookMarketplacePurchaseCancelled) -__all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", -) +__all__ = ("WebhookMarketplacePurchaseCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0635.py b/githubkit/versions/v2022_11_28/models/group_0635.py index e9f9be8db..f49f0c55e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0635.py +++ b/githubkit/versions/v2022_11_28/models/group_0635.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0448 import WebhooksMarketplacePurchase -from .group_0449 import WebhooksPreviousMarketplacePurchase +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0450 import WebhooksMarketplacePurchase -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" - action: Literal["cancelled"] = Field() + action: Literal["changed"] = Field() effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -49,9 +48,9 @@ class WebhookMarketplacePurchaseCancelled(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.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -60,6 +59,58 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchaseCancelled) +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__ = ("WebhookMarketplacePurchaseCancelled",) +__all__ = ( + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0636.py b/githubkit/versions/v2022_11_28/models/group_0636.py index ce0ce0b05..994f68071 100644 --- a/githubkit/versions/v2022_11_28/models/group_0636.py +++ b/githubkit/versions/v2022_11_28/models/group_0636.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0448 import WebhooksMarketplacePurchase +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0450 import WebhooksMarketplacePurchase -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - action: Literal["changed"] = Field() + action: Literal["pending_change"] = Field() effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -49,7 +49,7 @@ class WebhookMarketplacePurchaseChanged(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.", ) previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase ] = Field(default=UNSET, title="Marketplace Purchase") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, @@ -59,24 +59,26 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): """Marketplace Purchase""" - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + 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: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() unit_count: int = Field() -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( GitHubModel ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ id: int = Field() login: str = Field() @@ -85,10 +87,10 @@ class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccoun type: str = Field() -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( GitHubModel ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" bullets: list[str] = Field() description: str = Field() @@ -101,16 +103,18 @@ class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( yearly_price_in_cents: int = Field() -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan ) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0637.py b/githubkit/versions/v2022_11_28/models/group_0637.py index 0dfc546c8..906e7ed07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0637.py +++ b/githubkit/versions/v2022_11_28/models/group_0637.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0448 import WebhooksMarketplacePurchase +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0451 import WebhooksPreviousMarketplacePurchase -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["pending_change"] = Field() + action: Literal["pending_change_cancelled"] = Field() effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,7 +40,7 @@ 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( + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( title="Marketplace Purchase" ) organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -48,9 +48,9 @@ class WebhookMarketplacePurchasePendingChange(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.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -59,25 +59,25 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( GitHubModel ): """Marketplace Purchase""" - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() unit_count: int = Field() -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( GitHubModel ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt """ id: int = Field() @@ -87,10 +87,10 @@ class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseProp type: str = Field() -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( GitHubModel ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" bullets: list[str] = Field() description: str = Field() @@ -103,18 +103,18 @@ class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseProp yearly_price_in_cents: int = Field() -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount ) model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan ) __all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0638.py b/githubkit/versions/v2022_11_28/models/group_0638.py index df87c2dc9..ef2c26a15 100644 --- a/githubkit/versions/v2022_11_28/models/group_0638.py +++ b/githubkit/versions/v2022_11_28/models/group_0638.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0449 import WebhooksPreviousMarketplacePurchase +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0450 import WebhooksMarketplacePurchase +from .group_0451 import WebhooksPreviousMarketplacePurchase -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["pending_change_cancelled"] = Field() + action: Literal["purchased"] = Field() effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,7 +41,7 @@ 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( + marketplace_purchase: WebhooksMarketplacePurchase = Field( title="Marketplace Purchase" ) organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -59,62 +60,6 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" +model_rebuild(WebhookMarketplacePurchasePurchased) - 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 -) - -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", -) +__all__ = ("WebhookMarketplacePurchasePurchased",) diff --git a/githubkit/versions/v2022_11_28/models/group_0639.py b/githubkit/versions/v2022_11_28/models/group_0639.py index 22fa87dc5..30ef928d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0639.py +++ b/githubkit/versions/v2022_11_28/models/group_0639.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0448 import WebhooksMarketplacePurchase -from .group_0449 import WebhooksPreviousMarketplacePurchase +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +40,63 @@ 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" - ) + 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.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchasePurchased) +class WebhookMemberAddedPropChanges(GitHubModel): + """WebhookMemberAddedPropChanges""" + + permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( + default=UNSET, + description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", + ) + role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( + default=UNSET, description="The role assigned to the collaborator." + ) + + +class WebhookMemberAddedPropChangesPropPermission(GitHubModel): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] = Field() + + +class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str = Field() + + +model_rebuild(WebhookMemberAdded) +model_rebuild(WebhookMemberAddedPropChanges) +model_rebuild(WebhookMemberAddedPropChangesPropPermission) +model_rebuild(WebhookMemberAddedPropChangesPropRoleName) -__all__ = ("WebhookMarketplacePurchasePurchased",) +__all__ = ( + "WebhookMemberAdded", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0640.py b/githubkit/versions/v2022_11_28/models/group_0640.py index 4ceb9cbcb..265f33f01 100644 --- a/githubkit/versions/v2022_11_28/models/group_0640.py +++ b/githubkit/versions/v2022_11_28/models/group_0640.py @@ -18,18 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookMemberEdited(GitHubModel): + """member edited event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,50 +55,44 @@ class WebhookMemberAdded(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges - 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.", + The changes to the collaborator permissions + """ + + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + default=UNSET ) -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 WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - The role assigned to the collaborator. - """ +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" - to: str = Field() + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) __all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", + "WebhookMemberEdited", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0641.py b/githubkit/versions/v2022_11_28/models/group_0641.py index 8f11ca6c5..4e287daee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0641.py +++ b/githubkit/versions/v2022_11_28/models/group_0641.py @@ -18,20 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookMemberRemoved(GitHubModel): + """member removed event""" - action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" - ) + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,44 +52,6 @@ class WebhookMemberEdited(GitHubModel): 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(WebhookMemberRemoved) -__all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", -) +__all__ = ("WebhookMemberRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0642.py b/githubkit/versions/v2022_11_28/models/group_0642.py index e34882214..bea5ba8e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0642.py +++ b/githubkit/versions/v2022_11_28/models/group_0642.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser +from .group_0452 import WebhooksTeam -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookMembershipAdded(GitHubModel): + """membership added event""" - action: Literal["removed"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,18 +40,56 @@ class WebhookMemberRemoved(GitHubModel): description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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, + 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(WebhookMemberRemoved) +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropSender) -__all__ = ("WebhookMemberRemoved",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropSender", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0643.py b/githubkit/versions/v2022_11_28/models/group_0643.py index 304c2d6f9..6a3c0cc55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0643.py +++ b/githubkit/versions/v2022_11_28/models/group_0643.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser -from .group_0450 import WebhooksTeam +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser +from .group_0452 import WebhooksTeam -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" - action: Literal["added"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,17 +49,17 @@ class WebhookMembershipAdded(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.", ) - scope: Literal["team"] = Field( + scope: Literal["team", "organization"] = Field( description="The scope of the membership. Currently, can only be `team`." ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") team: WebhooksTeam = Field( title="Team", description="Groups of organization members that gives permissions on specified repositories.", ) -class WebhookMembershipAddedPropSender(GitHubModel): +class WebhookMembershipRemovedPropSender(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -86,10 +86,10 @@ class WebhookMembershipAddedPropSender(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropSender) +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropSender) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropSender", + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropSender", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0644.py b/githubkit/versions/v2022_11_28/models/group_0644.py index 1bf7b19cb..ca4cd8a50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0644.py +++ b/githubkit/versions/v2022_11_28/models/group_0644.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,30 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser -from .group_0450 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0453 import MergeGroup -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - 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)."', - ) + 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)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - 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,47 +47,11 @@ class WebhookMembershipRemoved(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.", ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - 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(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropSender) +model_rebuild(WebhookMergeGroupChecksRequested) -__all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropSender", -) +__all__ = ("WebhookMergeGroupChecksRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0645.py b/githubkit/versions/v2022_11_28/models/group_0645.py index 9cbbe18f9..a45eff679 100644 --- a/githubkit/versions/v2022_11_28/models/group_0645.py +++ b/githubkit/versions/v2022_11_28/models/group_0645.py @@ -18,16 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0451 import MergeGroup +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0453 import MergeGroup -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - action: Literal["checks_requested"] = Field() + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = 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).", + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -52,6 +56,6 @@ class WebhookMergeGroupChecksRequested(GitHubModel): ) -model_rebuild(WebhookMergeGroupChecksRequested) +model_rebuild(WebhookMergeGroupDestroyed) -__all__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ("WebhookMergeGroupDestroyed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0646.py b/githubkit/versions/v2022_11_28/models/group_0646.py index a88a10400..8332fa29a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0646.py +++ b/githubkit/versions/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 @@ -18,44 +18,73 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0451 import MergeGroup +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + action: Literal["deleted"] = 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/admin/overview/about-enterprise-accounts)."', ) + hook: WebhookMetaDeletedPropHook = Field( + description="The deleted 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)."', ) - 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: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - 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." ) -model_rebuild(WebhookMergeGroupDestroyed) +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook + + The deleted 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(description="") + 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__ = ("WebhookMergeGroupDestroyed",) +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0647.py b/githubkit/versions/v2022_11_28/models/group_0647.py index 34f2af2d2..c10f450e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0647.py +++ b/githubkit/versions/v2022_11_28/models/group_0647.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,73 +18,43 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0447 import WebhooksMilestone -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["deleted"] = Field() + 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)."', ) - hook: WebhookMetaDeletedPropHook = Field( - description="The deleted webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + milestone: 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[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook - - The deleted 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(description="") - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() - - -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() - - -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) +model_rebuild(WebhookMilestoneClosed) -__all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", -) +__all__ = ("WebhookMilestoneClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0648.py b/githubkit/versions/v2022_11_28/models/group_0648.py index f77cb2a15..7d4c16a4c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0648.py +++ b/githubkit/versions/v2022_11_28/models/group_0648.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0445 import WebhooksMilestone +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0454 import WebhooksMilestone3 -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["closed"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +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( + milestone: WebhooksMilestone3 = Field( title="Milestone", description="A collection of related issues and pull requests.", ) @@ -55,6 +55,6 @@ class WebhookMilestoneClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneClosed) +model_rebuild(WebhookMilestoneCreated) -__all__ = ("WebhookMilestoneClosed",) +__all__ = ("WebhookMilestoneCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0649.py b/githubkit/versions/v2022_11_28/models/group_0649.py index 13865cf97..2912c9c7f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0649.py +++ b/githubkit/versions/v2022_11_28/models/group_0649.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0452 import WebhooksMilestone3 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0447 import WebhooksMilestone -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +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/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( + milestone: WebhooksMilestone = Field( title="Milestone", description="A collection of related issues and pull requests.", ) @@ -55,6 +55,6 @@ class WebhookMilestoneCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneCreated) +model_rebuild(WebhookMilestoneDeleted) -__all__ = ("WebhookMilestoneCreated",) +__all__ = ("WebhookMilestoneDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0650.py b/githubkit/versions/v2022_11_28/models/group_0650.py index 4f14c84a7..3a427dc3c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0650.py +++ b/githubkit/versions/v2022_11_28/models/group_0650.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0445 import WebhooksMilestone +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0447 import WebhooksMilestone -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - action: Literal["deleted"] = 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", @@ -55,6 +58,56 @@ class WebhookMilestoneDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneDeleted) +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__ = ("WebhookMilestoneDeleted",) +__all__ = ( + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0651.py b/githubkit/versions/v2022_11_28/models/group_0651.py index 76c958b4c..8b3882c4f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0651.py +++ b/githubkit/versions/v2022_11_28/models/group_0651.py @@ -18,20 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0445 import WebhooksMilestone +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0454 import WebhooksMilestone3 -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,7 +39,7 @@ 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/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( + milestone: WebhooksMilestone3 = Field( title="Milestone", description="A collection of related issues and pull requests.", ) @@ -58,56 +55,6 @@ class WebhookMilestoneEdited(GitHubModel): 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`.", - ) - - -model_rebuild(WebhookMilestoneEdited) -model_rebuild(WebhookMilestoneEditedPropChanges) -model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) -model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) -model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) +model_rebuild(WebhookMilestoneOpened) -__all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", -) +__all__ = ("WebhookMilestoneOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0652.py b/githubkit/versions/v2022_11_28/models/group_0652.py index a329e9a1d..9e07e4130 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 +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0452 import WebhooksMilestone3 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" - action: Literal["opened"] = Field() + action: Literal["blocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +40,18 @@ class WebhookMilestoneOpened(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, + 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.") -model_rebuild(WebhookMilestoneOpened) +model_rebuild(WebhookOrgBlockBlocked) -__all__ = ("WebhookMilestoneOpened",) +__all__ = ("WebhookOrgBlockBlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0653.py b/githubkit/versions/v2022_11_28/models/group_0653.py index 51c9640a6..6a9af8d26 100644 --- a/githubkit/versions/v2022_11_28/models/group_0653.py +++ b/githubkit/versions/v2022_11_28/models/group_0653.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" - action: Literal["blocked"] = Field() + action: Literal["unblocked"] = Field() blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookOrgBlockBlocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockBlocked) +model_rebuild(WebhookOrgBlockUnblocked) -__all__ = ("WebhookOrgBlockBlocked",) +__all__ = ("WebhookOrgBlockUnblocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0654.py b/githubkit/versions/v2022_11_28/models/group_0654.py index f37b61cd8..c61555753 100644 --- a/githubkit/versions/v2022_11_28/models/group_0654.py +++ b/githubkit/versions/v2022_11_28/models/group_0654.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0455 import WebhooksMembership -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookOrganizationDeleted(GitHubModel): + """organization 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", @@ -40,6 +39,11 @@ 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)."', ) + 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.", @@ -52,6 +56,6 @@ class WebhookOrgBlockUnblocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockUnblocked) +model_rebuild(WebhookOrganizationDeleted) -__all__ = ("WebhookOrgBlockUnblocked",) +__all__ = ("WebhookOrganizationDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0655.py b/githubkit/versions/v2022_11_28/models/group_0655.py index 822e2409c..d099a2df3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0655.py +++ b/githubkit/versions/v2022_11_28/models/group_0655.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0453 import WebhooksMembership +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0455 import WebhooksMembership -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" - action: Literal["deleted"] = Field() + action: Literal["member_added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,8 +39,7 @@ 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, + membership: WebhooksMembership = Field( title="Membership", description="The membership between the user and the organization. Not present when the action is `member_invited`.", ) @@ -56,6 +55,6 @@ class WebhookOrganizationDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookOrganizationMemberAdded) -__all__ = ("WebhookOrganizationDeleted",) +__all__ = ("WebhookOrganizationMemberAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0656.py b/githubkit/versions/v2022_11_28/models/group_0656.py index 168fdb0c8..00fbec1ea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0656.py +++ b/githubkit/versions/v2022_11_28/models/group_0656.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0453 import WebhooksMembership +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" - action: Literal["member_added"] = Field() + action: Literal["member_invited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,9 +40,8 @@ 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`.", + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", @@ -53,8 +53,64 @@ class WebhookOrganizationMemberAdded(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.") + user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") -model_rebuild(WebhookOrganizationMemberAdded) +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation -__all__ = ("WebhookOrganizationMemberAdded",) + 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) + +__all__ = ( + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0657.py b/githubkit/versions/v2022_11_28/models/group_0657.py index 3289c3f11..d3d01f95a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0657.py +++ b/githubkit/versions/v2022_11_28/models/group_0657.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0455 import WebhooksMembership -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" - action: Literal["member_invited"] = Field() + action: Literal["member_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,8 +39,9 @@ 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`." + 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", @@ -53,64 +53,8 @@ class WebhookOrganizationMemberInvited(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.") - user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation +model_rebuild(WebhookOrganizationMemberRemoved) - 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) - -__all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", -) +__all__ = ("WebhookOrganizationMemberRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0658.py b/githubkit/versions/v2022_11_28/models/group_0658.py index ec8b441d5..9b0535c7c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0658.py +++ b/githubkit/versions/v2022_11_28/models/group_0658.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0453 import WebhooksMembership +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0455 import WebhooksMembership -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" - action: Literal["member_removed"] = Field() + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +40,8 @@ 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( + 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`.", ) @@ -55,6 +57,26 @@ class WebhookOrganizationMemberRemoved(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberRemoved) +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__ = ("WebhookOrganizationMemberRemoved",) +__all__ = ( + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0659.py b/githubkit/versions/v2022_11_28/models/group_0659.py index a966a9f06..2c926e7e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0659.py +++ b/githubkit/versions/v2022_11_28/models/group_0659.py @@ -9,74 +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_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0453 import WebhooksMembership - -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" - 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.", + 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 WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: Missing[str] = Field(default=UNSET) - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( - default=UNSET - ) +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" - from_: Missing[str] = Field(default=UNSET, alias="from") +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) __all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropVersionInfo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0660.py b/githubkit/versions/v2022_11_28/models/group_0660.py index 2c926e7e7..6fe8abee2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0660.py +++ b/githubkit/versions/v2022_11_28/models/group_0660.py @@ -9,52 +9,52 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookRubygemsMetadata(GitHubModel): - """Ruby Gems metadata""" - - name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) - platform: Missing[str] = Field(default=UNSET) - metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) - repo: Missing[str] = Field(default=UNSET) - dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( - default=UNSET - ) - commit_oid: Missing[str] = Field(default=UNSET) - - -class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): - """WebhookRubygemsMetadataPropVersionInfo""" - - version: Missing[str] = Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0661 import WebhookPackagePublishedPropPackage -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" + 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.", + ) + 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(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) +model_rebuild(WebhookPackagePublished) -__all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropVersionInfo", -) +__all__ = ("WebhookPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0661.py b/githubkit/versions/v2022_11_28/models/group_0661.py index 103c542b2..fc9603993 100644 --- a/githubkit/versions/v2022_11_28/models/group_0661.py +++ b/githubkit/versions/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,44 +17,76 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0662 import WebhookPackagePublishedPropPackage +from .group_0662 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - 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.", - ) - 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.", + 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" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub 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(WebhookPackagePublished) +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) -__all__ = ("WebhookPackagePublished",) +__all__ = ( + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0662.py b/githubkit/versions/v2022_11_28/models/group_0662.py index e24b6592b..fb8cf9544 100644 --- a/githubkit/versions/v2022_11_28/models/group_0662.py +++ b/githubkit/versions/v2022_11_28/models/group_0662.py @@ -13,38 +13,75 @@ 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_0663 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0659 import WebhookRubygemsMetadata -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - Information about the package. - """ - - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + 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() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" - ) - package_type: str = Field() - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersion, None + npm_metadata: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems ] = Field() - registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() - updated_at: Union[str, None] = 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 WebhookPackagePublishedPropPackagePropOwner(GitHubModel): +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -71,22 +108,465 @@ class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" +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 + """ + - about_url: str = Field() +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() - type: 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() - vendor: str = Field() -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) +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__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", + "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_0663.py b/githubkit/versions/v2022_11_28/models/group_0663.py index 5a99913ba..d02675896 100644 --- a/githubkit/versions/v2022_11_28/models/group_0663.py +++ b/githubkit/versions/v2022_11_28/models/group_0663.py @@ -9,564 +9,51 @@ 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_0660 import WebhookRubygemsMetadata - - -class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersion""" - - author: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] - ] = Field(default=UNSET, title="User") - body: Missing[ - Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, - None, - ] - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems - ] - ] = Field(default=UNSET) - contributors: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems - ] - ] = Field(default=UNSET) - engines: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: Missing[Union[int, str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersion", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0664 import WebhookPackageUpdatedPropPackage + + +class WebhookPackageUpdated(GitHubModel): + """package updated 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/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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(WebhookPackageUpdated) + +__all__ = ("WebhookPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0664.py b/githubkit/versions/v2022_11_28/models/group_0664.py index 3a563caa1..bb6fd835b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0664.py +++ b/githubkit/versions/v2022_11_28/models/group_0664.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,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0665 import WebhookPackageUpdatedPropPackage - - -class WebhookPackageUpdated(GitHubModel): - """package updated 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/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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(WebhookPackageUpdated) - -__all__ = ("WebhookPackageUpdated",) +from .group_0665 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_0665.py b/githubkit/versions/v2022_11_28/models/group_0665.py index 3f19af78c..c6a2b5d60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0665.py +++ b/githubkit/versions/v2022_11_28/models/group_0665.py @@ -13,34 +13,54 @@ 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_0666 import WebhookPackageUpdatedPropPackagePropPackageVersion +from .group_0659 import WebhookRubygemsMetadata -class WebhookPackageUpdatedPropPackage(GitHubModel): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() created_at: str = Field() - description: Union[str, None] = Field() - ecosystem: 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() - namespace: str = Field() - owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") - package_type: str = Field() - package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() - registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = 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 WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -67,22 +87,99 @@ class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - about_url: str = Field() + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() name: str = Field() - type: 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() - vendor: str = Field() -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) +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) __all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0666.py b/githubkit/versions/v2022_11_28/models/group_0666.py index 4a9309967..e6a8fd25d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0666.py +++ b/githubkit/versions/v2022_11_28/models/group_0666.py @@ -13,133 +13,70 @@ 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_0660 import WebhookRubygemsMetadata +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPageBuild(GitHubModel): + """page_build event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None - ] = Field(title="User") - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) + build: WebhookPageBuildPropBuild = Field( + description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - 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) - + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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 WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" +class WebhookPageBuildPropBuild(GitHubModel): + """WebhookPageBuildPropBuild -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- + github-pages-builds) itself. + """ - content_type: str = Field() + commit: Union[str, None] = 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() + duration: int = Field() + error: WebhookPageBuildPropBuildPropError = Field() + pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") + status: str = Field() updated_at: str = Field() + url: str = Field() -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" +class WebhookPageBuildPropBuildPropError(GitHubModel): + """WebhookPageBuildPropBuildPropError""" - 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() + message: Union[str, None] = Field() -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): +class WebhookPageBuildPropBuildPropPusher(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -166,20 +103,14 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( 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) +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0667.py b/githubkit/versions/v2022_11_28/models/group_0667.py index ead44d70c..0ac7872da 100644 --- a/githubkit/versions/v2022_11_28/models/group_0667.py +++ b/githubkit/versions/v2022_11_28/models/group_0667.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,99 +18,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0456 import PersonalAccessTokenRequest -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." + 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)."', ) - id: int = Field() - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + 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.", - ) 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 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(WebhookPersonalAccessTokenRequestApproved) -__all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", -) +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0668.py b/githubkit/versions/v2022_11_28/models/group_0668.py index 9e65fb331..1e246c228 100644 --- a/githubkit/versions/v2022_11_28/models/group_0668.py +++ b/githubkit/versions/v2022_11_28/models/group_0668.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0454 import PersonalAccessTokenRequest +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0456 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" - action: Literal["approved"] = Field() + action: Literal["cancelled"] = Field() personal_access_token_request: PersonalAccessTokenRequest = Field( title="Personal Access Token Request", description="Details of a Personal Access Token Request.", @@ -48,6 +48,6 @@ class WebhookPersonalAccessTokenRequestApproved(GitHubModel): ) -model_rebuild(WebhookPersonalAccessTokenRequestApproved) +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0669.py b/githubkit/versions/v2022_11_28/models/group_0669.py index bede32aa4..388c2bb61 100644 --- a/githubkit/versions/v2022_11_28/models/group_0669.py +++ b/githubkit/versions/v2022_11_28/models/group_0669.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0454 import PersonalAccessTokenRequest +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0456 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" - action: Literal["cancelled"] = Field() + action: Literal["created"] = Field() personal_access_token_request: PersonalAccessTokenRequest = Field( title="Personal Access Token Request", description="Details of a Personal Access Token Request.", @@ -42,12 +42,13 @@ class WebhookPersonalAccessTokenRequestCancelled(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.", ) 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/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) -model_rebuild(WebhookPersonalAccessTokenRequestCancelled) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0670.py b/githubkit/versions/v2022_11_28/models/group_0670.py index 528c408b3..bf517d409 100644 --- a/githubkit/versions/v2022_11_28/models/group_0670.py +++ b/githubkit/versions/v2022_11_28/models/group_0670.py @@ -18,37 +18,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0454 import PersonalAccessTokenRequest +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0456 import PersonalAccessTokenRequest -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied event""" - action: Literal["created"] = Field() + action: Literal["denied"] = Field() personal_access_token_request: PersonalAccessTokenRequest = Field( title="Personal Access Token Request", description="Details of a Personal Access Token Request.", ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - 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, + 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(WebhookPersonalAccessTokenRequestCreated) +model_rebuild(WebhookPersonalAccessTokenRequestDenied) -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) diff --git a/githubkit/versions/v2022_11_28/models/group_0671.py b/githubkit/versions/v2022_11_28/models/group_0671.py index 238056c1d..314dc7a06 100644 --- a/githubkit/versions/v2022_11_28/models/group_0671.py +++ b/githubkit/versions/v2022_11_28/models/group_0671.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,36 +16,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0454 import PersonalAccessTokenRequest +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0672 import WebhookPingPropHook -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", + 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: 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( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + title="Repository", + description="The repository on GitHub where the event occurred. Webhook 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)."', + 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(WebhookPersonalAccessTokenRequestDenied) +model_rebuild(WebhookPing) -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +__all__ = ("WebhookPing",) diff --git a/githubkit/versions/v2022_11_28/models/group_0672.py b/githubkit/versions/v2022_11_28/models/group_0672.py index a739c9d83..015bd59a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0672.py +++ b/githubkit/versions/v2022_11_28/models/group_0672.py @@ -9,43 +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_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0673 import WebhookPingPropHook +from .group_0308 import HookResponse + +class WebhookPingPropHook(GitHubModel): + """Webhook -class WebhookPing(GitHubModel): - """WebhookPing""" + The webhook that is being pinged + """ - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="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.", ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." + 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']." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + 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) + + +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" + + content_type: 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="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - repository: Missing[RepositoryWebhooks] = Field( + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( default=UNSET, - title="Repository", - 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="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).", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -model_rebuild(WebhookPing) +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) -__all__ = ("WebhookPing",) +__all__ = ( + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0673.py b/githubkit/versions/v2022_11_28/models/group_0673.py index a9529594c..fac71cc70 100644 --- a/githubkit/versions/v2022_11_28/models/group_0673.py +++ b/githubkit/versions/v2022_11_28/models/group_0673.py @@ -9,70 +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_0306 import HookResponse -class WebhookPingPropHook(GitHubModel): - """Webhook +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded - The webhook that is being pinged + The webhooks ping payload encoded with URL encoding. """ - 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'." - ) - ping_url: Missing[str] = Field(default=UNSET) - test_url: Missing[str] = Field(default=UNSET) - type: str = Field() - updated_at: datetime = Field() - url: Missing[str] = Field(default=UNSET) - - -class WebhookPingPropHookPropConfig(GitHubModel): - """WebhookPingPropHookPropConfig""" - - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", -) +__all__ = ("WebhookPingFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0674.py b/githubkit/versions/v2022_11_28/models/group_0674.py index fac71cc70..eea0a88a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0674.py +++ b/githubkit/versions/v2022_11_28/models/group_0674.py @@ -9,22 +9,69 @@ from __future__ import annotations +from 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_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0457 import WebhooksProjectCard -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + 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(WebhookPingFormEncoded) +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ( + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0675.py b/githubkit/versions/v2022_11_28/models/group_0675.py index 0c1d725d7..ac9c24e1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0675.py +++ b/githubkit/versions/v2022_11_28/models/group_0675.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0455 import WebhooksProjectCard +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0457 import WebhooksProjectCard -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -54,24 +53,6 @@ class WebhookProjectCardConverted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" +model_rebuild(WebhookProjectCardCreated) - 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", -) +__all__ = ("WebhookProjectCardCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0676.py b/githubkit/versions/v2022_11_28/models/group_0676.py index 8730cd0f5..08af55b6b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0676.py +++ b/githubkit/versions/v2022_11_28/models/group_0676.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0455 import WebhooksProjectCard +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookProjectCardCreated(GitHubModel): - """project_card 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,15 +44,66 @@ class WebhookProjectCardCreated(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_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.", - ) + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectCardCreated) +class WebhookProjectCardDeletedPropProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: Union[int, None] = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) -__all__ = ("WebhookProjectCardCreated",) +__all__ = ( + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0677.py b/githubkit/versions/v2022_11_28/models/group_0677.py index 6467c7be4..dd4b29074 100644 --- a/githubkit/versions/v2022_11_28/models/group_0677.py +++ b/githubkit/versions/v2022_11_28/models/group_0677.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,16 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0457 import WebhooksProjectCard -class WebhookProjectCardDeleted(GitHubModel): - """project_card 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,66 +45,33 @@ class WebhookProjectCardDeleted(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_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + project_card: WebhooksProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectCardDeletedPropProjectCard(GitHubModel): - """Project Card""" +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" - 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) + note: WebhookProjectCardEditedPropChangesPropNote = Field() + + +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) __all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0678.py b/githubkit/versions/v2022_11_28/models/group_0678.py index e402bd48d..77c223a56 100644 --- a/githubkit/versions/v2022_11_28/models/group_0678.py +++ b/githubkit/versions/v2022_11_28/models/group_0678.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,18 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0455 import WebhooksProjectCard +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() + action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,7 +45,7 @@ class WebhookProjectCardEdited(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_card: WebhooksProjectCard = Field(title="Project Card") + project_card: WebhookProjectCardMovedPropProjectCard = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -54,24 +54,75 @@ class WebhookProjectCardEdited(GitHubModel): 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") +class WebhookProjectCardMovedPropChanges(GitHubModel): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() + + +class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int = Field(alias="from") + + +class WebhookProjectCardMovedPropProjectCard(GitHubModel): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] = Field() + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[Union[str, None], None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) __all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0679.py b/githubkit/versions/v2022_11_28/models/group_0679.py index 9fdfc6e76..698d7933a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0679.py +++ b/githubkit/versions/v2022_11_28/models/group_0679.py @@ -18,74 +18,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks - - -class WebhookProjectCardMoved(GitHubModel): - """project_card moved event""" - - action: Literal["moved"] = Field() - changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_card: WebhookProjectCardMovedPropProjectCard = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" - -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int = Field(alias="from") - - -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] = Field() + 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[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( + Field(title="User") + ) id: int = Field(description="The project card's ID") node_id: str = Field() - note: Union[Union[str, None], None] = Field() + note: Union[str, None] = Field() project_url: str = Field() updated_at: datetime = Field() url: str = Field() -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -113,16 +68,10 @@ class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): 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(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) __all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0680.py b/githubkit/versions/v2022_11_28/models/group_0680.py index 698d7933a..0afeec58f 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 Union from pydantic import Field @@ -19,41 +18,37 @@ from githubkit.utils import UNSET -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" - 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() + 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 WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): - """User""" +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: 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) @@ -61,17 +56,14 @@ class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(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(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0681.py b/githubkit/versions/v2022_11_28/models/group_0681.py index 0afeec58f..cec0e2a4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0681.py +++ b/githubkit/versions/v2022_11_28/models/group_0681.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,53 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] = Field() - archived: Missing[bool] = Field(default=UNSET) - column_id: Missing[int] = Field(default=UNSET) - column_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - creator: Missing[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] - ] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - note: Missing[Union[str, None]] = Field(default=UNSET) - project_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", -) +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0458 import WebhooksProject + + +class WebhookProjectClosed(GitHubModel): + """project closed 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)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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(WebhookProjectClosed) + +__all__ = ("WebhookProjectClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0682.py b/githubkit/versions/v2022_11_28/models/group_0682.py index 52dddb040..9f3e7db01 100644 --- a/githubkit/versions/v2022_11_28/models/group_0682.py +++ b/githubkit/versions/v2022_11_28/models/group_0682.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0456 import WebhooksProject +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0459 import WebhooksProjectColumn -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" - action: Literal["closed"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +44,17 @@ 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_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(WebhookProjectClosed) +model_rebuild(WebhookProjectColumnCreated) -__all__ = ("WebhookProjectClosed",) +__all__ = ("WebhookProjectColumnCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0683.py b/githubkit/versions/v2022_11_28/models/group_0683.py index b4b62ac16..2a28e733f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0683.py +++ b/githubkit/versions/v2022_11_28/models/group_0683.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0457 import WebhooksProjectColumn +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0459 import WebhooksProjectColumn -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,16 +45,12 @@ class WebhookProjectColumnCreated(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_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.", - ) + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookProjectColumnCreated) +model_rebuild(WebhookProjectColumnDeleted) -__all__ = ("WebhookProjectColumnCreated",) +__all__ = ("WebhookProjectColumnDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0684.py b/githubkit/versions/v2022_11_28/models/group_0684.py index 880b9f6dd..68d710358 100644 --- a/githubkit/versions/v2022_11_28/models/group_0684.py +++ b/githubkit/versions/v2022_11_28/models/group_0684.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0457 import WebhooksProjectColumn +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0459 import WebhooksProjectColumn -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,12 +46,34 @@ class WebhookProjectColumnDeleted(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_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[Union[None, RepositoryWebhooks]] = 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." ) -model_rebuild(WebhookProjectColumnDeleted) +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__ = ("WebhookProjectColumnDeleted",) +__all__ = ( + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0685.py b/githubkit/versions/v2022_11_28/models/group_0685.py index 871fc8b97..b92c00e52 100644 --- a/githubkit/versions/v2022_11_28/models/group_0685.py +++ b/githubkit/versions/v2022_11_28/models/group_0685.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0457 import WebhooksProjectColumn +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0459 import WebhooksProjectColumn -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" - action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() + action: Literal["moved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,29 +50,9 @@ class WebhookProjectColumnEdited(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 WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" - - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str = Field(alias="from") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) +model_rebuild(WebhookProjectColumnMoved) -__all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", -) +__all__ = ("WebhookProjectColumnMoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0686.py b/githubkit/versions/v2022_11_28/models/group_0686.py index d55103a23..e53745954 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.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0457 import WebhooksProjectColumn +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0458 import WebhooksProject -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" +class WebhookProjectCreated(GitHubModel): + """project created event""" - action: Literal["moved"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,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: WebhooksProject = Field(title="Project") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -53,6 +53,6 @@ class WebhookProjectColumnMoved(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectColumnMoved) +model_rebuild(WebhookProjectCreated) -__all__ = ("WebhookProjectColumnMoved",) +__all__ = ("WebhookProjectCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0687.py b/githubkit/versions/v2022_11_28/models/group_0687.py index e5f2e0c4f..3b8b8f657 100644 --- a/githubkit/versions/v2022_11_28/models/group_0687.py +++ b/githubkit/versions/v2022_11_28/models/group_0687.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0456 import WebhooksProject +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0458 import WebhooksProject -class WebhookProjectCreated(GitHubModel): - """project created event""" +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,14 +45,12 @@ class WebhookProjectCreated(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[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - 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(WebhookProjectCreated) +model_rebuild(WebhookProjectDeleted) -__all__ = ("WebhookProjectCreated",) +__all__ = ("WebhookProjectDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0688.py b/githubkit/versions/v2022_11_28/models/group_0688.py index 3ea584d67..966c00dad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0688.py +++ b/githubkit/versions/v2022_11_28/models/group_0688.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0456 import WebhooksProject +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0458 import WebhooksProject -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" +class WebhookProjectEdited(GitHubModel): + """project edited event""" - action: Literal["deleted"] = 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", @@ -45,12 +49,52 @@ 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) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookProjectDeleted) +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) -__all__ = ("WebhookProjectDeleted",) +__all__ = ( + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0689.py b/githubkit/versions/v2022_11_28/models/group_0689.py index 02097b1b2..cc23d424b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0689.py +++ b/githubkit/versions/v2022_11_28/models/group_0689.py @@ -18,21 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0456 import WebhooksProject +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0458 import WebhooksProject -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["reopened"] = 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(WebhookProjectReopened) -__all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", -) +__all__ = ("WebhookProjectReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0690.py b/githubkit/versions/v2022_11_28/models/group_0690.py index b845bfe88..793fb2df3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0690.py +++ b/githubkit/versions/v2022_11_28/models/group_0690.py @@ -18,41 +18,30 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0456 import WebhooksProject +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2 -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" - 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)."', - ) + action: Literal["closed"] = 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.", ) - 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.", + 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(WebhookProjectReopened) +model_rebuild(WebhookProjectsV2ProjectClosed) -__all__ = ("WebhookProjectReopened",) +__all__ = ("WebhookProjectsV2ProjectClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0691.py b/githubkit/versions/v2022_11_28/models/group_0691.py index eb5d9bfc8..786cb5f94 100644 --- a/githubkit/versions/v2022_11_28/models/group_0691.py +++ b/githubkit/versions/v2022_11_28/models/group_0691.py @@ -18,15 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0458 import ProjectsV2 +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2 -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated - action: Literal["closed"] = Field() + A project was created + """ + + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,6 +45,6 @@ class WebhookProjectsV2ProjectClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectClosed) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ("WebhookProjectsV2ProjectCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0692.py b/githubkit/versions/v2022_11_28/models/group_0692.py index d35388286..43dc3361e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0692.py +++ b/githubkit/versions/v2022_11_28/models/group_0692.py @@ -18,18 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0458 import ProjectsV2 +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2 -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" - A project was created - """ - - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -45,6 +42,6 @@ class WebhookProjectsV2ProjectCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectCreated) +model_rebuild(WebhookProjectsV2ProjectDeleted) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ("WebhookProjectsV2ProjectDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0693.py b/githubkit/versions/v2022_11_28/models/group_0693.py index f39d9dfef..a1d897ac3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0693.py +++ b/githubkit/versions/v2022_11_28/models/group_0693.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,15 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0458 import ProjectsV2 +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2 -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,6 +43,63 @@ class WebhookProjectsV2ProjectDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectDeleted) +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" -__all__ = ("WebhookProjectsV2ProjectDeleted",) + 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/v2022_11_28/models/group_0694.py b/githubkit/versions/v2022_11_28/models/group_0694.py index 240f30d62..03614fb00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0694.py +++ b/githubkit/versions/v2022_11_28/models/group_0694.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0458 import ProjectsV2 +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0461 import WebhooksProjectChanges +from .group_0462 import ProjectsV2Item -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + action: Literal["archived"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -37,69 +38,12 @@ class WebhookProjectsV2ProjectEdited(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.") -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" +model_rebuild(WebhookProjectsV2ItemArchived) - 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", -) +__all__ = ("WebhookProjectsV2ItemArchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0695.py b/githubkit/versions/v2022_11_28/models/group_0695.py index 2880cfc2e..512694ff5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0695.py +++ b/githubkit/versions/v2022_11_28/models/group_0695.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0459 import WebhooksProjectChanges -from .group_0460 import ProjectsV2Item +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0462 import ProjectsV2Item -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["archived"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,6 +43,27 @@ class WebhookProjectsV2ItemArchived(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemArchived) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" -__all__ = ("WebhookProjectsV2ItemArchived",) + 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_0696.py b/githubkit/versions/v2022_11_28/models/group_0696.py index bbc6ff6d2..4f302cbb4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0696.py +++ b/githubkit/versions/v2022_11_28/models/group_0696.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0460 import ProjectsV2Item +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0462 import ProjectsV2Item -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created Event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,27 +42,6 @@ class WebhookProjectsV2ItemConverted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" +model_rebuild(WebhookProjectsV2ItemCreated) - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) - -__all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", -) +__all__ = ("WebhookProjectsV2ItemCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0697.py b/githubkit/versions/v2022_11_28/models/group_0697.py index 9a20e3821..f12692af6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0697.py +++ b/githubkit/versions/v2022_11_28/models/group_0697.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0460 import ProjectsV2Item +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0462 import ProjectsV2Item -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted Event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,6 +42,6 @@ class WebhookProjectsV2ItemCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookProjectsV2ItemDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0698.py b/githubkit/versions/v2022_11_28/models/group_0698.py index 37dd62eda..07f9187b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0698.py +++ b/githubkit/versions/v2022_11_28/models/group_0698.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,15 +18,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0460 import ProjectsV2Item +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0462 import ProjectsV2Item -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field( + default=UNSET, + description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,6 +51,78 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemDeleted) +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__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ( + "ProjectsV2IterationSetting", + "ProjectsV2SingleSelectOption", + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0699.py b/githubkit/versions/v2022_11_28/models/group_0699.py index 6e38888a0..9bbf6feeb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0699.py +++ b/githubkit/versions/v2022_11_28/models/group_0699.py @@ -18,24 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0460 import ProjectsV2Item +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0462 import ProjectsV2Item -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered 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["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -51,78 +43,29 @@ class WebhookProjectsV2ItemEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() - +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" -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] + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId ] = 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""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( + GitHubModel +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" 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(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) __all__ = ( - "ProjectsV2IterationSetting", - "ProjectsV2SingleSelectOption", - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0700.py b/githubkit/versions/v2022_11_28/models/group_0700.py index 393e650d2..06d781949 100644 --- a/githubkit/versions/v2022_11_28/models/group_0700.py +++ b/githubkit/versions/v2022_11_28/models/group_0700.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0460 import ProjectsV2Item +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0461 import WebhooksProjectChanges +from .group_0462 import ProjectsV2Item -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored Event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["restored"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,29 +44,6 @@ class WebhookProjectsV2ItemReordered(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" +model_rebuild(WebhookProjectsV2ItemRestored) - 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__ = ("WebhookProjectsV2ItemRestored",) diff --git a/githubkit/versions/v2022_11_28/models/group_0701.py b/githubkit/versions/v2022_11_28/models/group_0701.py index 8ce12533c..74b394db6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0701.py +++ b/githubkit/versions/v2022_11_28/models/group_0701.py @@ -18,17 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0459 import WebhooksProjectChanges -from .group_0460 import ProjectsV2Item +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2 -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened Event""" - action: Literal["restored"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -38,12 +36,12 @@ 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) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ("WebhookProjectsV2ItemRestored",) +__all__ = ("WebhookProjectsV2ProjectReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0702.py b/githubkit/versions/v2022_11_28/models/group_0702.py index 7c9641d7b..92fa3cdfd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0702.py +++ b/githubkit/versions/v2022_11_28/models/group_0702.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0458 import ProjectsV2 +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0463 import ProjectsV2StatusUpdate -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2StatusUpdateCreated(GitHubModel): + """Projects v2 Status Update Created Event""" - action: Literal["reopened"] = Field() + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,12 +36,13 @@ 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_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(WebhookProjectsV2ProjectReopened) +model_rebuild(WebhookProjectsV2StatusUpdateCreated) -__all__ = ("WebhookProjectsV2ProjectReopened",) +__all__ = ("WebhookProjectsV2StatusUpdateCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0703.py b/githubkit/versions/v2022_11_28/models/group_0703.py index 3ea59866d..2f273fc9b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0703.py +++ b/githubkit/versions/v2022_11_28/models/group_0703.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0461 import ProjectsV2StatusUpdate +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0463 import ProjectsV2StatusUpdate -class WebhookProjectsV2StatusUpdateCreated(GitHubModel): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): + """Projects v2 Status Update Deleted Event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,6 +43,6 @@ class WebhookProjectsV2StatusUpdateCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateCreated) +model_rebuild(WebhookProjectsV2StatusUpdateDeleted) -__all__ = ("WebhookProjectsV2StatusUpdateCreated",) +__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0704.py b/githubkit/versions/v2022_11_28/models/group_0704.py index 670025583..522280e4f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0704.py +++ b/githubkit/versions/v2022_11_28/models/group_0704.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from pydantic import Field @@ -18,15 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0461 import ProjectsV2StatusUpdate +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0463 import ProjectsV2StatusUpdate -class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2StatusUpdateEdited(GitHubModel): + """Projects v2 Status Update Edited Event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( + default=UNSET + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,6 +47,67 @@ class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateDeleted) +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__ = ("WebhookProjectsV2StatusUpdateDeleted",) +__all__ = ( + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0705.py b/githubkit/versions/v2022_11_28/models/group_0705.py index d0629d7de..0972cf09d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0705.py +++ b/githubkit/versions/v2022_11_28/models/group_0705.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import date -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,95 +16,37 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0461 import ProjectsV2StatusUpdate +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookProjectsV2StatusUpdateEdited(GitHubModel): - """Projects v2 Status Update Edited Event""" +class WebhookPublic(GitHubModel): + """public event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( - default=UNSET + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: 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_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook 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 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(WebhookPublic) -__all__ = ( - "WebhookProjectsV2StatusUpdateEdited", - "WebhookProjectsV2StatusUpdateEditedPropChanges", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", -) +__all__ = ("WebhookPublic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0706.py b/githubkit/versions/v2022_11_28/models/group_0706.py index 6704d1a93..711de6b82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0706.py +++ b/githubkit/versions/v2022_11_28/models/group_0706.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,15 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0437 import WebhooksUser -class WebhookPublic(GitHubModel): - """public event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" + action: Literal["assigned"] = Field() + assignee: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -35,11 +41,15 @@ class WebhookPublic(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: 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.", @@ -47,6 +57,1121 @@ class WebhookPublic(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPublic) +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 +) -__all__ = ("WebhookPublic",) +__all__ = ( + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAssignedPropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0707.py b/githubkit/versions/v2022_11_28/models/group_0707.py index 56b3f77ee..2f3daedd6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0707.py +++ b/githubkit/versions/v2022_11_28/models/group_0707.py @@ -19,18 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0435 import WebhooksUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhooksUser, None] = Field(title="User") + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,15 +39,16 @@ class WebhookPullRequestAssigned(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: WebhookPullRequestAssignedPropPullRequest = 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.", @@ -57,19 +56,23 @@ class WebhookPullRequestAssigned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAssignedPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestAssignedPropPullRequestPropLinks = 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[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -84,13 +87,13 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): 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.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +107,13 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,13 +125,13 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, 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( @@ -136,13 +141,13 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +159,12 @@ class WebhookPullRequestAssignedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,14 +186,12 @@ class WebhookPullRequestAssignedPropPullRequestPropAssignee(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 WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,14 +213,11 @@ class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(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 WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -230,14 +230,17 @@ class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -264,7 +267,7 @@ class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -278,7 +281,7 @@ class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -305,7 +308,7 @@ class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -315,7 +318,7 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -331,7 +334,9 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -353,14 +358,12 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(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 WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -391,7 +394,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -420,98 +423,108 @@ class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -538,7 +551,7 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -600,14 +613,14 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(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() @@ -621,7 +634,8 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, 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( @@ -642,10 +656,11 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -693,7 +708,9 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -703,7 +720,9 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -730,10 +749,12 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -742,21 +763,48 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): +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 @@ -839,7 +887,8 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, 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( @@ -860,10 +909,11 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -911,7 +961,9 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -921,7 +973,9 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -948,10 +1002,12 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -960,34 +1016,7 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( 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( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1004,7 +1033,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1017,11 +1046,11 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1039,7 +1068,9 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1056,7 +1087,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1070,10 +1101,12 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1090,88 +1123,108 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent 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(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( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ) -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 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0708.py b/githubkit/versions/v2022_11_28/models/group_0708.py index 4746f11fe..1af47074e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0708.py +++ b/githubkit/versions/v2022_11_28/models/group_0708.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["auto_merge_disabled"] = Field() + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,10 +45,10 @@ class WebhookPullRequestAutoMergeDisabled(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: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( title="Pull Request" ) - reason: str = Field() + 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.", @@ -56,10 +56,10 @@ class WebhookPullRequestAutoMergeDisabled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ @@ -67,12 +67,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): ] = Field() additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -88,12 +86,12 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -107,11 +105,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( Field() ) locked: bool = Field() @@ -125,10 +123,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -141,13 +139,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -159,12 +157,12 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -191,7 +189,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -217,7 +215,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -230,7 +228,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubMode description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -238,7 +236,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubMode ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -267,7 +265,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabled user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -281,7 +279,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubMo url: str = Field(description="URL for the label") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -308,7 +306,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -318,7 +316,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubMode closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -334,7 +332,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubMode url: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -358,12 +356,14 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator site_admin: Missing[bool] = Field(default=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 WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -394,7 +394,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -423,36 +423,36 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( Field(title="Link") ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -460,7 +460,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -468,19 +468,19 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -488,7 +488,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComme href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -496,13 +496,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComme href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -510,21 +510,21 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -551,7 +551,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -613,14 +613,14 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubM 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() @@ -634,7 +634,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubM language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -656,11 +656,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubM open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -708,7 +707,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubM ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -720,7 +719,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLice url: Union[str, None] = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -749,12 +748,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwne user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -763,21 +760,21 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPerm triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -804,7 +801,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -887,7 +884,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubM language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -909,11 +906,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubM open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -961,7 +957,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubM ) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -973,7 +969,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLice url: Union[str, None] = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1002,12 +998,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwne user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1016,7 +1010,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPerm triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1033,7 +1027,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1046,11 +1040,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt url: str = Field(description="URL for the team") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1068,7 +1062,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt url: str = Field(description="URL for the team") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1087,7 +1081,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1101,11 +1095,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -1123,108 +1117,106 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsP 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(WebhookPullRequestAutoMergeEnabled) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0709.py b/githubkit/versions/v2022_11_28/models/group_0709.py index 55741ff04..bc9dedef6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0709.py +++ b/githubkit/versions/v2022_11_28/models/group_0709.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0464 import PullRequestWebhook -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["auto_merge_enabled"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +39,13 @@ class WebhookPullRequestAutoMergeEnabled(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: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) + 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.", @@ -56,1167 +53,6 @@ class WebhookPullRequestAutoMergeEnabled(GitHubModel): 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(WebhookPullRequestClosed) -__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__ = ("WebhookPullRequestClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0710.py b/githubkit/versions/v2022_11_28/models/group_0710.py index 3e4c7eb00..26faa6b02 100644 --- a/githubkit/versions/v2022_11_28/models/group_0710.py +++ b/githubkit/versions/v2022_11_28/models/group_0710.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0462 import PullRequestWebhook +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0464 import PullRequestWebhook -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["closed"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookPullRequestClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestClosed) +model_rebuild(WebhookPullRequestConvertedToDraft) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ("WebhookPullRequestConvertedToDraft",) diff --git a/githubkit/versions/v2022_11_28/models/group_0711.py b/githubkit/versions/v2022_11_28/models/group_0711.py index 5f724890a..ddffa6cad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0711.py +++ b/githubkit/versions/v2022_11_28/models/group_0711.py @@ -18,26 +18,26 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0462 import PullRequestWebhook +from .group_0043 import Milestone +from .group_0426 import EnterpriseWebhooks +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0466 import WebhooksPullRequest5 -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["converted_to_draft"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -45,14 +45,16 @@ class WebhookPullRequestConvertedToDraft(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(WebhookPullRequestConvertedToDraft) +model_rebuild(WebhookPullRequestDemilestoned) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ("WebhookPullRequestDemilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0712.py b/githubkit/versions/v2022_11_28/models/group_0712.py index cbee8372d..4e3c830a6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0712.py +++ b/githubkit/versions/v2022_11_28/models/group_0712.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,43 +19,1167 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0042 import Milestone -from .group_0424 import EnterpriseWebhooks -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0464 import WebhooksPullRequest5 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["demilestoned"] = Field() + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") + pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + title="Pull Request" + ) + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestDemilestoned) +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__ = ("WebhookPullRequestDemilestoned",) +__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_0713.py b/githubkit/versions/v2022_11_28/models/group_0713.py index ff86bf8c6..d175e91c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0713.py +++ b/githubkit/versions/v2022_11_28/models/group_0713.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0464 import PullRequestWebhook -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["dequeued"] = 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", @@ -39,1147 +42,84 @@ 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( - 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() + 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: 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") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub 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 WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository + The changes to the comment if the action was `edited`. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - 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) + base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) + body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" +class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) - 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 WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" -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." + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", ) - 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""" +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() -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 WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + from_: str = Field(alias="from") -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 WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team + from_: str = Field(alias="from") - 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(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) __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", + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0714.py b/githubkit/versions/v2022_11_28/models/group_0714.py index 5b2a0cef2..8614b1e82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0714.py +++ b/githubkit/versions/v2022_11_28/models/group_0714.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,20 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0462 import PullRequestWebhook +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestEditedPropChanges = Field( - description="The changes to the comment if the action was `edited`." - ) + action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,84 +39,1133 @@ 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: 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.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges +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) + - The changes to the comment if the action was `edited`. +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository """ - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + 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 WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", + 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 WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", +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 WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" +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") - from_: str = Field(alias="from") +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 WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - from_: str = Field(alias="from") +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) + 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__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", + "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_0715.py b/githubkit/versions/v2022_11_28/models/group_0715.py index 790576d4b..f4c730e32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0715.py +++ b/githubkit/versions/v2022_11_28/models/group_0715.py @@ -19,16 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0441 import WebhooksLabel -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled event""" - action: Literal["enqueued"] = Field() + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +40,14 @@ class WebhookPullRequestEnqueued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() + 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: WebhookPullRequestEnqueuedPropPullRequest = Field( - title="Pull Request" - ) + 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.", @@ -55,19 +55,19 @@ class WebhookPullRequestEnqueued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( - Field(title="User") + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" ) assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,13 +82,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) ) - base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -102,11 +102,11 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -118,9 +118,9 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -134,13 +134,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -152,12 +152,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( + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -179,12 +179,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(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 WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -206,11 +208,13 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(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 WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -223,14 +227,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -257,7 +261,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -271,7 +275,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -293,12 +297,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(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 WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -308,7 +314,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -324,7 +330,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -353,7 +359,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -377,12 +383,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 WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -411,98 +419,98 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" ) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -529,7 +537,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -612,7 +620,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, 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( @@ -633,10 +641,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -684,7 +692,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -694,7 +702,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -721,10 +729,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -733,48 +741,21 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, 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): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -857,7 +838,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, 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( @@ -878,10 +859,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -929,7 +910,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -939,7 +920,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -966,10 +947,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -978,7 +959,34 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( +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 @@ -987,35 +995,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, + 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 WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] = Field(description="Description of the team") @@ -1033,7 +1038,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1050,7 +1055,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1064,10 +1069,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1084,88 +1089,82 @@ 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( - 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(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( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __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", + "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_0716.py b/githubkit/versions/v2022_11_28/models/group_0716.py index 874916b58..a16399d4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0716.py +++ b/githubkit/versions/v2022_11_28/models/group_0716.py @@ -19,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0439 import WebhooksLabel +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["labeled"] = Field() + action: Literal["locked"] = 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: 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.", @@ -55,19 +53,19 @@ class WebhookPullRequestLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): +class WebhookPullRequestLockedPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( title="User" ) assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,13 +80,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -102,11 +100,11 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestLockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -118,9 +116,9 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -134,13 +132,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -152,12 +150,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( + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -179,14 +177,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 WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -214,7 +210,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -227,14 +223,14 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -261,7 +257,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -275,7 +271,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -304,7 +300,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +310,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +326,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,14 +348,12 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubMod site_admin: Missing[bool] = Field(default=UNSET) 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 WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -390,7 +384,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -419,98 +413,96 @@ class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( title="Link" ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( title="User" ) -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -537,7 +529,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -620,7 +612,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, 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( @@ -641,10 +633,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -692,7 +684,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -702,7 +694,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -729,10 +721,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -741,21 +733,21 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( title="User" ) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -838,7 +830,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, 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( @@ -859,10 +851,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -910,7 +902,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -920,7 +912,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -947,10 +939,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -959,7 +951,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -986,7 +978,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1003,7 +995,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1016,11 +1008,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -1038,7 +1030,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1055,7 +1047,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1069,10 +1061,10 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1089,82 +1081,82 @@ 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(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( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __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", + "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_0717.py b/githubkit/versions/v2022_11_28/models/group_0717.py index 15506dfc2..71738b6d0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0717.py +++ b/githubkit/versions/v2022_11_28/models/group_0717.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,25 +18,26 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0043 import Milestone +from .group_0426 import EnterpriseWebhooks +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0466 import WebhooksPullRequest5 -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - action: Literal["locked"] = Field() + action: Literal["milestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -45,1118 +45,16 @@ class WebhookPullRequestLocked(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPullRequestLockedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestLocked) -model_rebuild(WebhookPullRequestLockedPropPullRequest) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookPullRequestMilestoned) -__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__ = ("WebhookPullRequestMilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0718.py b/githubkit/versions/v2022_11_28/models/group_0718.py index fcc72a3c1..2c4b19f8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0718.py +++ b/githubkit/versions/v2022_11_28/models/group_0718.py @@ -18,26 +18,26 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0042 import Milestone -from .group_0424 import EnterpriseWebhooks -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0464 import WebhooksPullRequest5 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0464 import PullRequestWebhook -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" - action: Literal["milestoned"] = Field() + 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/admin/overview/about-enterprise-accounts)."', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -45,16 +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(WebhookPullRequestOpened) -__all__ = ("WebhookPullRequestMilestoned",) +__all__ = ("WebhookPullRequestOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0719.py b/githubkit/versions/v2022_11_28/models/group_0719.py index a6fd31df8..24f2c1fd3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0719.py +++ b/githubkit/versions/v2022_11_28/models/group_0719.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0462 import PullRequestWebhook +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0464 import PullRequestWebhook -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["opened"] = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookPullRequestOpened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestOpened) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ("WebhookPullRequestReadyForReview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0720.py b/githubkit/versions/v2022_11_28/models/group_0720.py index 356a5c94d..6c7e93132 100644 --- a/githubkit/versions/v2022_11_28/models/group_0720.py +++ b/githubkit/versions/v2022_11_28/models/group_0720.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0462 import PullRequestWebhook +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0464 import PullRequestWebhook -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" - action: Literal["ready_for_review"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookPullRequestReadyForReview(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReadyForReview) +model_rebuild(WebhookPullRequestReopened) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ("WebhookPullRequestReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0721.py b/githubkit/versions/v2022_11_28/models/group_0721.py index ed6370e0a..15bba2f48 100644 --- a/githubkit/versions/v2022_11_28/models/group_0721.py +++ b/githubkit/versions/v2022_11_28/models/group_0721.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0462 import PullRequestWebhook +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - action: Literal["reopened"] = 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,13 +43,12 @@ 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.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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: 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.", @@ -53,6 +56,1332 @@ class WebhookPullRequestReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReopened) +class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + 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" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, + 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[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] + ] = Field( + default=UNSET, + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = 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: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + 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.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + ] = 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[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + ] = 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( + 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: Missing[bool] = Field( + default=UNSET, 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + ] = 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + 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( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + 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") + + +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( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestReopened",) +__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", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0722.py b/githubkit/versions/v2022_11_28/models/group_0722.py index eaad2adc3..7ae3ab72a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0722.py +++ b/githubkit/versions/v2022_11_28/models/group_0722.py @@ -19,17 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0467 import WebhooksReviewComment -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = 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.", ) @@ -48,7 +49,7 @@ class WebhookPullRequestReviewCommentCreated(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: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() + 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.", @@ -56,185 +57,21 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): - """Pull Request Review Comment +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - 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) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - 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( + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -252,13 +89,13 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] ] = Field( default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -266,18 +103,18 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -287,13 +124,13 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -302,12 +139,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -329,14 +166,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( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -360,13 +195,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -379,7 +212,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -387,7 +220,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -416,7 +249,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -430,7 +263,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -440,7 +273,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -457,7 +290,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -481,14 +314,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -512,14 +343,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -548,36 +377,36 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -585,7 +414,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -593,7 +422,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -601,7 +430,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -609,7 +438,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -617,7 +446,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -625,7 +454,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -633,7 +462,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -641,21 +470,21 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -684,7 +513,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -769,7 +598,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -791,11 +620,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -843,7 +672,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -855,7 +684,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -884,10 +713,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss ions """ @@ -898,21 +727,21 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -981,8 +810,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,7 +826,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -1019,11 +848,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1071,7 +900,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1083,7 +912,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1112,10 +941,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss ions """ @@ -1126,7 +955,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -1155,7 +984,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1164,31 +993,34 @@ 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, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems Oneof1PropParent """ @@ -1207,7 +1039,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1226,7 +1058,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1240,10 +1072,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp Parent """ @@ -1262,126 +1094,112 @@ 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(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0723.py b/githubkit/versions/v2022_11_28/models/group_0723.py index 56fcc3ffc..bd4080d7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0723.py +++ b/githubkit/versions/v2022_11_28/models/group_0723.py @@ -19,17 +19,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0465 import WebhooksReviewComment +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0445 import WebhooksChanges +from .group_0467 import WebhooksReviewComment -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["deleted"] = 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.", @@ -49,7 +51,7 @@ class WebhookPullRequestReviewCommentDeleted(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: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() + 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.", @@ -57,22 +59,21 @@ class WebhookPullRequestReviewCommentDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None ] ] = Field() author_association: Literal[ @@ -89,13 +90,13 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] ] = Field( default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -103,18 +104,18 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -124,13 +125,13 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -139,12 +140,12 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -171,7 +172,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -197,9 +198,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -212,7 +214,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -220,7 +222,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -249,7 +251,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -263,7 +265,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -273,7 +275,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -290,7 +292,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -314,12 +316,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 WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -348,7 +352,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -373,40 +377,40 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -414,7 +418,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -422,7 +426,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -430,7 +434,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -438,7 +442,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -446,7 +450,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -454,7 +458,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -462,7 +466,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -470,23 +474,21 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -513,9 +515,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -598,7 +598,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -620,11 +620,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -672,7 +672,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -684,7 +684,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -713,11 +713,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool = Field() @@ -727,23 +727,21 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -826,7 +824,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -848,11 +846,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -900,7 +898,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -912,7 +910,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -941,11 +939,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool = Field() @@ -955,9 +953,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -984,7 +980,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1003,7 +999,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1017,11 +1013,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1039,7 +1035,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1058,7 +1054,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1072,11 +1068,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1094,112 +1090,108 @@ 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(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0724.py b/githubkit/versions/v2022_11_28/models/group_0724.py index 450691178..ade78c9fd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0724.py +++ b/githubkit/versions/v2022_11_28/models/group_0724.py @@ -19,23 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0443 import WebhooksChanges -from .group_0465 import WebhooksReviewComment +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed 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["dismissed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,30 +44,118 @@ class WebhookPullRequestReviewCommentEdited(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: WebhookPullRequestReviewCommentEditedPropPullRequest = 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: WebhookPullRequestReviewDismissedPropReview = Field( + description="The review that was affected." + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +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""" - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( + 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[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,33 +170,32 @@ class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] + auto_merge: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None ] = Field( - default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() + 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: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -125,13 +205,13 @@ class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -140,12 +220,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -167,14 +247,14 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubMod site_admin: Missing[bool] = Field(default=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 WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -196,12 +276,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 WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -214,15 +295,14 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubMo description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -251,7 +331,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -265,7 +345,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHub url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -275,8 +355,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -292,7 +371,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo url: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -316,14 +395,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 WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,12 +424,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 WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -377,40 +456,40 @@ 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 WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -418,31 +497,25 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -450,7 +523,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -458,15 +531,13 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -474,21 +545,21 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -515,7 +586,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -598,7 +669,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -620,11 +691,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -672,7 +742,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -684,7 +754,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -713,12 +783,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -727,21 +795,21 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -824,7 +892,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -846,11 +914,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -898,7 +965,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -910,7 +977,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -939,12 +1006,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -953,7 +1018,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -980,7 +1045,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -989,35 +1054,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, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1035,7 +1097,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1054,7 +1116,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1068,11 +1130,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] = Field(description="Description of the team") @@ -1090,108 +1152,110 @@ 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(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( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0725.py b/githubkit/versions/v2022_11_28/models/group_0725.py index 81b45cb6c..602c741d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0725.py +++ b/githubkit/versions/v2022_11_28/models/group_0725.py @@ -19,16 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0468 import WebhooksReview -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["dismissed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,118 +46,48 @@ class WebhookPullRequestReviewDismissed(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: WebhookPullRequestReviewDismissedPropPullRequest = 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.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) + review: WebhooksReview = 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. - """ +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" - 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( + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: list[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -171,12 +103,12 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -184,18 +116,16 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -205,13 +135,13 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -220,12 +150,12 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -254,7 +184,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -282,7 +212,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -295,14 +225,14 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -331,7 +261,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -345,7 +275,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -355,7 +285,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -371,7 +301,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -395,12 +325,14 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( site_admin: Missing[bool] = Field(default=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 WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -431,7 +363,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -460,62 +392,60 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( + title="Link" ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( Field(title="Link") ) -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -523,7 +453,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -531,35 +461,33 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -586,7 +514,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -653,9 +581,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -669,18 +594,9 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -691,10 +607,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -703,18 +619,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -729,20 +633,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -754,7 +650,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -783,10 +679,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -795,21 +691,21 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -876,9 +772,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -892,18 +785,9 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -914,10 +798,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -926,18 +810,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -952,20 +824,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -977,7 +841,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1006,10 +870,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1018,7 +882,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1045,7 +909,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1062,7 +926,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1075,11 +939,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1097,9 +961,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1116,7 +978,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1130,12 +992,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1152,110 +1012,94 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPro 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(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( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) +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( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0726.py b/githubkit/versions/v2022_11_28/models/group_0726.py index 984bb6873..9ff1677ae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0726.py +++ b/githubkit/versions/v2022_11_28/models/group_0726.py @@ -19,18 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0466 import WebhooksReview +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,53 +39,70 @@ 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: 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.", ) - review: WebhooksReview = Field(description="The review that was affected.") + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(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"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -103,59 +118,88 @@ class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = 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: WebhookPullRequestReviewEditedPropPullRequestPropHead = 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[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = 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() - 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[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, 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[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems + 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[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -177,14 +221,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(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 WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -206,13 +250,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(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", "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 WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -225,14 +270,15 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -261,7 +307,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -275,7 +323,38 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(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. @@ -285,7 +364,8 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -301,7 +381,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -325,14 +405,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( site_admin: Missing[bool] = Field(default=UNSET) 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 WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -356,14 +434,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn site_admin: Missing[bool] = Field(default=UNSET) 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 WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -385,67 +461,73 @@ class WebhookPullRequestReviewEditedPropPullRequestPropUser(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 WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( + title="Link" ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( + title="Link" ) -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -453,7 +535,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -461,33 +543,40 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -514,7 +603,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -581,6 +672,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel) 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() @@ -594,9 +688,18 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel) language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, 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( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -607,10 +710,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel) open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -619,6 +723,18 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(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.", + ) + 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() @@ -633,12 +749,20 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(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() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -650,7 +774,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -679,10 +803,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -691,21 +817,53 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissio triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): +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 @@ -772,6 +930,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel) 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() @@ -785,9 +946,18 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel) language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, 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.\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() @@ -798,10 +968,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel) open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -810,6 +981,18 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(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() @@ -824,12 +1007,20 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(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() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -841,7 +1032,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -870,10 +1061,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -882,34 +1075,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissio 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( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -926,7 +1092,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -939,11 +1105,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str = Field(description="URL for the team") -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -961,41 +1127,42 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str = Field(description="URL for the team") -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(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[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, + 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 WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1012,94 +1179,136 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropPa 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(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( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner ) -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 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0727.py b/githubkit/versions/v2022_11_28/models/group_0727.py index 917b8bb76..14152a390 100644 --- a/githubkit/versions/v2022_11_28/models/group_0727.py +++ b/githubkit/versions/v2022_11_28/models/group_0727.py @@ -19,14 +19,14 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -45,50 +45,72 @@ 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( + 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_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="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 WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): - """User""" +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: 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 WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): +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: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ @@ -96,11 +118,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): ] = Field() additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -118,12 +140,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -137,12 +159,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( @@ -156,12 +178,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): merged_at: Union[datetime, None] = Field() merged_by: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, None, ] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -174,13 +196,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -193,11 +215,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): updated_at: datetime = Field() url: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( GitHubModel ): """User""" @@ -226,7 +248,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -255,7 +277,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesIt user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( GitHubModel ): """PullRequestAutoMerge @@ -270,7 +292,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -278,7 +300,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -307,7 +329,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( GitHubModel ): """Label""" @@ -323,7 +345,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( GitHubModel ): """User""" @@ -352,7 +374,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( GitHubModel ): """Milestone @@ -364,7 +386,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -381,7 +403,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( url: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -410,7 +432,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -439,7 +461,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -466,36 +488,36 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -503,7 +525,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -511,7 +533,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -519,7 +541,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -527,7 +549,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIs href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -535,7 +557,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -543,7 +565,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -551,7 +573,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -559,22 +581,22 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, None, ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -603,7 +625,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -688,7 +710,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -710,11 +732,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -727,12 +749,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] = Field( default=UNSET, - description="The default value for a squash merge commit message.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( Field( default=UNSET, - description="The default value for a squash merge commit title.", + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", ) ) ssh_url: str = Field() @@ -762,7 +784,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -774,7 +796,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -803,10 +825,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP ermissions """ @@ -817,22 +839,22 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, None, ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -861,7 +883,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -946,7 +968,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -968,11 +990,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1020,7 +1042,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1032,7 +1054,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1061,10 +1083,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP ermissions """ @@ -1075,7 +1097,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1092,7 +1114,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1105,10 +1127,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer sItemsOneof1PropParent """ @@ -1127,7 +1149,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1144,7 +1166,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1157,10 +1179,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte msPropParent """ @@ -1179,136 +1201,138 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0728.py b/githubkit/versions/v2022_11_28/models/group_0728.py index d052c98d5..9ee037bf8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0728.py +++ b/githubkit/versions/v2022_11_28/models/group_0728.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["review_request_removed"] = Field() + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,72 +45,52 @@ 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( + 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_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(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" - ) - 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" + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + 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() - 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) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ @@ -118,11 +98,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): ] = Field() additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -140,12 +120,12 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -159,12 +139,12 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( @@ -177,13 +157,10 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -196,13 +173,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -215,13 +192,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): updated_at: datetime = Field() url: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -243,12 +218,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -272,14 +249,14 @@ 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -292,7 +269,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -300,7 +277,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -329,7 +306,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( GitHubModel ): """Label""" @@ -345,9 +322,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -374,9 +349,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -386,7 +359,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -403,7 +376,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( url: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -427,12 +400,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -461,7 +436,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,41 +458,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -525,7 +502,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -533,7 +510,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -541,7 +518,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -549,7 +526,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -557,7 +534,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -565,7 +542,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -573,7 +550,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -581,22 +558,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -625,7 +601,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -710,7 +686,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -732,11 +708,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -784,7 +760,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -796,7 +772,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -825,11 +801,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions """ admin: bool = Field() @@ -839,22 +815,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -883,7 +858,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -968,7 +943,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -990,11 +965,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1042,7 +1017,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1054,7 +1029,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1083,11 +1058,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions """ admin: bool = Field() @@ -1097,7 +1072,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1114,7 +1089,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1127,11 +1102,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1149,7 +1124,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1158,32 +1133,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, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1201,138 +1179,118 @@ 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(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0729.py b/githubkit/versions/v2022_11_28/models/group_0729.py index 34cc4541a..6eb9af3cf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0729.py +++ b/githubkit/versions/v2022_11_28/models/group_0729.py @@ -19,14 +19,14 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -45,52 +45,70 @@ class WebhookPullRequestReviewRequestedOneof0(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: WebhookPullRequestReviewRequestedOneof0PropPullRequest = 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_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): - """User""" +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = 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", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +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 WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ @@ -98,11 +116,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): ] = Field() additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -120,12 +138,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -139,12 +157,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( @@ -157,10 +175,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -173,13 +191,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -192,11 +210,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): updated_at: datetime = Field() url: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -225,7 +243,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -256,7 +274,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -269,7 +287,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -277,7 +295,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -306,7 +324,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( GitHubModel ): """Label""" @@ -322,7 +340,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -349,7 +367,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -359,7 +377,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -376,7 +394,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -407,7 +425,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -436,7 +454,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -465,36 +483,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -502,7 +520,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -510,7 +528,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -518,7 +536,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -526,7 +544,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -534,7 +552,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -542,7 +560,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -550,7 +568,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -558,21 +576,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -601,7 +619,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -686,7 +704,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -708,11 +726,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -760,7 +778,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -772,7 +790,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -801,10 +819,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis sions """ @@ -815,21 +833,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -858,7 +876,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -943,7 +961,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -965,11 +983,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1017,7 +1035,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1029,7 +1047,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1058,10 +1076,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis sions """ @@ -1072,7 +1090,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1081,31 +1099,34 @@ 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, + 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem sOneof1PropParent """ @@ -1124,7 +1145,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1143,7 +1164,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1157,10 +1178,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro pParent """ @@ -1179,118 +1200,120 @@ 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(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0730.py b/githubkit/versions/v2022_11_28/models/group_0730.py index 5ff968b7c..05b45237e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0730.py +++ b/githubkit/versions/v2022_11_28/models/group_0730.py @@ -19,16 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0468 import WebhooksReview -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - action: Literal["review_requested"] = Field() + action: Literal["submitted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,90 +40,36 @@ 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: 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.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + review: WebhooksReview = Field(description="The review that was affected.") 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 WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: 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: 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -138,83 +85,61 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", + labels: list[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[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -243,9 +168,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -271,10 +194,9 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( default=UNSET ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -287,15 +209,14 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -324,9 +245,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -340,34 +259,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 WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -377,8 +269,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -394,7 +285,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -425,7 +316,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -449,12 +340,14 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,36 +376,36 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -520,31 +413,25 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -552,7 +439,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -560,15 +447,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -576,23 +461,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -619,9 +502,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -704,7 +585,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -726,11 +607,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -778,7 +658,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -790,7 +670,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -819,12 +699,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -833,52 +711,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, 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 WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -961,7 +808,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -983,11 +830,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1035,7 +881,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1047,7 +893,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1076,12 +922,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1090,7 +934,34 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +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 @@ -1099,35 +970,32 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1145,7 +1013,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1164,7 +1032,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1178,11 +1046,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] = Field(description="Description of the team") @@ -1200,120 +1068,100 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof1) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0731.py b/githubkit/versions/v2022_11_28/models/group_0731.py index 93561682a..ff126fac5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0731.py +++ b/githubkit/versions/v2022_11_28/models/group_0731.py @@ -19,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0466 import WebhooksReview +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" - action: Literal["submitted"] = Field() + action: Literal["resolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,31 +44,36 @@ 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: 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.", ) - review: WebhooksReview = Field(description="The review that was affected.") - 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 WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +89,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -98,18 +102,18 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -119,13 +123,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -134,12 +138,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -161,14 +165,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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -190,13 +194,11 @@ 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) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -209,14 +211,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -245,7 +248,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -259,7 +262,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -269,7 +272,8 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -285,7 +289,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -309,14 +313,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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,7 +349,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,36 +378,36 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -413,25 +415,31 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -439,7 +447,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -447,13 +455,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -461,21 +471,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -502,7 +514,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -585,18 +599,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -607,10 +613,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -619,18 +626,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -645,10 +640,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -658,7 +649,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -670,7 +661,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -699,10 +690,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -711,21 +704,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" label: Union[str, None] = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -808,18 +803,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -830,10 +817,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -842,18 +830,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -868,10 +844,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -881,7 +853,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -893,7 +865,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -922,10 +894,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -934,7 +908,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -961,7 +937,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -978,7 +954,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -991,11 +967,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1013,7 +989,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1032,7 +1008,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1046,11 +1022,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1068,100 +1044,323 @@ 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) +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( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf ) __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", + "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_0732.py b/githubkit/versions/v2022_11_28/models/group_0732.py index 283041775..47cf0c2ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0732.py +++ b/githubkit/versions/v2022_11_28/models/group_0732.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" - action: Literal["resolved"] = Field() + action: Literal["unresolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ 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: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( @@ -54,24 +54,24 @@ class WebhookPullRequestReviewThreadResolved(GitHubModel): sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -89,12 +89,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -102,18 +102,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -123,13 +123,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -138,12 +138,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -170,7 +170,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -198,7 +198,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -207,11 +207,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM 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." - ) + commit_title: str = Field(description="Title for the merge commit message.") enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -219,7 +217,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -248,7 +246,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -262,7 +262,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -272,7 +272,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +289,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -318,7 +318,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -342,14 +342,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -371,43 +369,41 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel) site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -415,7 +411,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -423,7 +419,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -431,7 +427,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -439,7 +435,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -447,7 +443,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -455,7 +451,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -463,7 +459,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -471,21 +467,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -514,7 +510,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -599,7 +595,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -613,11 +609,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -649,7 +645,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -661,7 +657,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -690,11 +686,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions """ admin: bool = Field() @@ -704,21 +700,50 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( +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 @@ -803,7 +828,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -817,11 +842,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -853,7 +878,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -865,7 +890,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -894,11 +919,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions """ admin: bool = Field() @@ -908,36 +933,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -946,32 +942,35 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer """ 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[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, 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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -989,7 +988,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1008,7 +1007,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1022,11 +1021,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1044,23 +1043,23 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" +class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems ] = Field() node_id: str = Field() -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): +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: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( + links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( alias="_links" ) author_association: Literal[ @@ -1096,7 +1095,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubMo original_commit_id: str = Field( description="The SHA of the original commit to which the comment applies." ) - original_line: Union[int, None] = Field( + 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( @@ -1117,7 +1116,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubMo pull_request_url: str = Field( description="URL for the pull request that the review comment belongs to." ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( title="Reactions" ) side: Literal["LEFT", "RIGHT"] = Field( @@ -1137,11 +1136,12 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubMo updated_at: datetime = Field() url: str = Field(description="URL for the pull request review comment") user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( GitHubModel ): """Reactions""" @@ -1158,7 +1158,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReact url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( GitHubModel ): """User""" @@ -1182,30 +1182,28 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( site_admin: Missing[bool] = Field(default=UNSET) 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 WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( title="Link" ) - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( alias="self", title="Link" ) -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( GitHubModel ): """Link""" @@ -1213,7 +1211,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( GitHubModel ): """Link""" @@ -1221,7 +1219,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( GitHubModel ): """Link""" @@ -1229,138 +1227,142 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str = Field() -model_rebuild(WebhookPullRequestReviewThreadResolved) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +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( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf ) __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", + "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_0733.py b/githubkit/versions/v2022_11_28/models/group_0733.py index 214c0ddf8..62bf7c170 100644 --- a/githubkit/versions/v2022_11_28/models/group_0733.py +++ b/githubkit/versions/v2022_11_28/models/group_0733.py @@ -19,16 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" - action: Literal["unresolved"] = Field() + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,41 +41,35 @@ 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: 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: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: list[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,61 +85,81 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestSynchronizePropPullRequestPropBase = 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: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems - ] = 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() - 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[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + WebhookPullRequestSynchronizePropPullRequestPropMilestone, 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, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems ] = 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 - ] = Field(title="User") + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -165,14 +181,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 WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -194,11 +210,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 WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -207,17 +225,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, + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,9 +265,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -262,7 +279,34 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): +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. @@ -272,8 +316,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -289,9 +332,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -313,12 +354,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 WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -342,12 +385,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 WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -369,73 +414,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 WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -443,7 +482,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -451,39 +490,33 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -510,9 +543,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -595,10 +626,17 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, - None, + 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() @@ -609,11 +647,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -622,6 +659,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -636,6 +685,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 +698,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -657,7 +710,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -686,12 +739,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -700,23 +751,21 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -743,9 +792,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -828,10 +875,15 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, - None, + 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() @@ -842,11 +894,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -855,6 +906,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 +932,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 +945,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -890,7 +957,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -919,12 +986,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -933,7 +998,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -942,35 +1007,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, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, 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 WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent """ description: Union[str, None] = Field(description="Description of the team") @@ -988,9 +1050,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1007,7 +1067,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1021,12 +1081,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1043,326 +1101,92 @@ 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( - 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(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( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions + 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( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0734.py b/githubkit/versions/v2022_11_28/models/group_0734.py index e1ff4f23c..d99047f2c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0734.py +++ b/githubkit/versions/v2022_11_28/models/group_0734.py @@ -19,18 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0449 import WebhooksUserMannequin -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,29 +49,31 @@ 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: 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 WebhookPullRequestSynchronizePropPullRequest(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +89,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +108,11 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,13 +124,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[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() number: int = Field( @@ -136,13 +140,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +158,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,7 +192,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -216,7 +220,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +233,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -265,7 +269,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -279,7 +283,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -301,12 +305,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(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 WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -316,7 +322,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -332,7 +338,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -361,7 +367,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -392,7 +398,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -421,60 +427,60 @@ class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -482,7 +488,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -490,33 +496,33 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -543,7 +549,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -626,7 +632,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + 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( @@ -647,10 +653,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -698,7 +704,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -710,9 +716,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -739,10 +743,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -751,48 +755,21 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -875,14 +852,16 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + 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." + 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 +873,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -945,7 +924,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -957,9 +936,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -986,10 +963,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -998,7 +975,34 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( +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 @@ -1015,7 +1019,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1028,11 +1032,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1050,7 +1054,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1067,7 +1071,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1081,10 +1085,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1101,92 +1105,92 @@ 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(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( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 ) -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(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( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0735.py b/githubkit/versions/v2022_11_28/models/group_0735.py index 3f15d30ae..8f881908e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0735.py +++ b/githubkit/versions/v2022_11_28/models/group_0735.py @@ -19,20 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0447 import WebhooksUserMannequin +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0441 import WebhooksLabel -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,37 +40,36 @@ class WebhookPullRequestUnassigned(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: WebhookPullRequestUnassignedPropPullRequest = Field( + 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: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -88,13 +84,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): 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.", + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -108,11 +104,11 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -124,9 +120,9 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -140,13 +136,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -158,12 +154,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( + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -192,7 +188,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -220,7 +216,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,16 +229,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -269,7 +263,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -283,7 +277,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -305,14 +299,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 WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -322,7 +314,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -338,7 +330,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -367,7 +359,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -398,7 +390,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -427,68 +419,66 @@ class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -496,33 +486,33 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -549,7 +539,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -632,7 +622,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + 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( @@ -653,10 +643,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -704,7 +694,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -716,7 +706,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -743,10 +733,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -755,21 +745,21 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -852,16 +842,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + 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.\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.", + 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 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).", + default=UNSET, description="The default value for a merge commit message title." ) merges_url: str = Field() milestones_url: str = Field() @@ -873,10 +861,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -924,7 +912,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -936,7 +924,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -963,10 +951,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -975,7 +963,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1002,7 +990,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1019,7 +1007,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1032,11 +1020,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1054,7 +1042,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1071,7 +1059,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1085,10 +1073,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1105,92 +1093,88 @@ 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( - 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(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( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) +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( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0736.py b/githubkit/versions/v2022_11_28/models/group_0736.py index 50380412a..9d0f73ac8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0736.py +++ b/githubkit/versions/v2022_11_28/models/group_0736.py @@ -19,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0439 import WebhooksLabel +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" - action: Literal["unlabeled"] = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +39,13 @@ 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: WebhookPullRequestUnlockedPropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( @@ -57,19 +55,19 @@ class WebhookPullRequestUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + 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[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -84,13 +82,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +102,11 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,9 +118,9 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -136,13 +134,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +152,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( + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,14 +179,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(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 WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,13 +206,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(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 WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -225,18 +219,16 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): 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." - ) + commit_title: str = Field(description="Title for the merge commit message.") enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -263,7 +255,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -277,7 +269,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -304,7 +296,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +306,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +322,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,14 +344,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(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 WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -383,14 +373,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 WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -412,107 +400,103 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUser(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 WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -539,7 +523,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -622,7 +606,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + 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( @@ -643,10 +627,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -694,9 +678,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -706,7 +688,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -733,10 +715,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -745,21 +727,21 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -842,14 +824,16 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + 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." + 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 +845,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -912,9 +896,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -924,7 +906,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -951,10 +933,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -963,7 +945,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -990,7 +972,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -999,32 +981,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, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, 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 WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] = Field(description="Description of the team") @@ -1042,7 +1027,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1059,7 +1044,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1073,10 +1058,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1093,88 +1078,88 @@ 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(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( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 ) -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(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( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent ) __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", + "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_0737.py b/githubkit/versions/v2022_11_28/models/group_0737.py index e6ad758f2..ef6f38157 100644 --- a/githubkit/versions/v2022_11_28/models/group_0737.py +++ b/githubkit/versions/v2022_11_28/models/group_0737.py @@ -14,734 +14,190 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" +class WebhookPush(GitHubModel): + """push 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 WebhookPullRequestUnlockedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: str = Field(description="Title for the merge commit message.") - enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." ) - 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" + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." + 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." ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + 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." ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + 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)."', ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." + 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)."', ) - 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( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + pusher: WebhookPushPropPusher = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - 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." + ref: str = Field( + description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - 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.", + + +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, description="An array of files added in the commit." ) - 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).", + author: WebhookPushPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - 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.", + committer: WebhookPushPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - 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).", - ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." ) - 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.", + 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." ) - 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", + 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 WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = 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 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 WebhookPushPropHeadCommitPropCommitter(GitHubModel): + """Committer + Metaproperties for Git author/committer information. + """ -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + 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) - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = 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 WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") +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.", ) - sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") + 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 WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + +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 @@ -778,6 +234,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(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, @@ -823,18 +283,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): 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).", + 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() @@ -844,12 +296,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): 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) + 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() @@ -857,18 +307,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -883,10 +321,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -896,7 +330,16 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(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): """License""" key: str = Field() @@ -906,7 +349,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPushPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,10 +376,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -945,221 +386,32 @@ 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( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent -) +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__ = ( - "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", + "WebhookPush", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0738.py b/githubkit/versions/v2022_11_28/models/group_0738.py index 083c1ed37..4356cf943 100644 --- a/githubkit/versions/v2022_11_28/models/group_0738.py +++ b/githubkit/versions/v2022_11_28/models/group_0738.py @@ -9,46 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0739 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookPush(GitHubModel): - """push event""" +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" - 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["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)."', ) - 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,359 +44,15 @@ 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.", - ) - ref: str = Field( - description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." - ) - repository: WebhookPushPropRepository = Field( - title="Repository", description="A git repository" - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookPushPropHeadCommit(GitHubModel): - """Commit""" - - added: Missing[list[str]] = Field( - default=UNSET, description="An array of files added in the commit." - ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookPushPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." - ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, description="An array of files modified by the commit." - ) - removed: Missing[list[str]] = Field( - default=UNSET, description="An array of files removed in the commit." - ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") - - -class WebhookPushPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropPusher(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" - - added: Missing[list[str]] = Field( - default=UNSET, - description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", - ) - author: WebhookPushPropCommitsItemsPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookPushPropCommitsItemsPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." - ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, - description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", - ) - removed: Missing[list[str]] = Field( + registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - 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) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -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) +model_rebuild(WebhookRegistryPackagePublished) -__all__ = ( - "WebhookPush", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", -) +__all__ = ("WebhookRegistryPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0739.py b/githubkit/versions/v2022_11_28/models/group_0739.py index acb9b68bf..c162e0d7d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0739.py +++ b/githubkit/versions/v2022_11_28/models/group_0739.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,42 +17,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0740 import WebhookRegistryPackagePublishedPropRegistryPackage - - -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRegistryPackagePublished) - -__all__ = ("WebhookRegistryPackagePublished",) +from .group_0740 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_0740.py b/githubkit/versions/v2022_11_28/models/group_0740.py index d59a27b24..918e4e3bb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0740.py +++ b/githubkit/versions/v2022_11_28/models/group_0740.py @@ -13,38 +13,80 @@ 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_0741 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0659 import WebhookRubygemsMetadata -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + 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() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + 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() - updated_at: Union[str, None] = 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 WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" avatar_url: str = Field() events_url: str = Field() @@ -67,22 +109,508 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +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 + """ - about_url: Missing[str] = Field(default=UNSET) 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) - vendor: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) +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__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "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_0741.py b/githubkit/versions/v2022_11_28/models/group_0741.py index 4c3d28f40..e6d165ae9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0741.py +++ b/githubkit/versions/v2022_11_28/models/group_0741.py @@ -9,608 +9,50 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0660 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, - ] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[list[str]] = Field(default=UNSET) - contributors: Missing[list[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ - - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ - - id: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, - None, - ] - ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Missing[str] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) - -__all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0742 import WebhookRegistryPackageUpdatedPropRegistryPackage + + +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" + + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + 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: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRegistryPackageUpdated) + +__all__ = ("WebhookRegistryPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0742.py b/githubkit/versions/v2022_11_28/models/group_0742.py index 656601cf9..ed4a4e409 100644 --- a/githubkit/versions/v2022_11_28/models/group_0742.py +++ b/githubkit/versions/v2022_11_28/models/group_0742.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,42 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0743 import WebhookRegistryPackageUpdatedPropRegistryPackage - - -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" - - action: Literal["updated"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - 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: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRegistryPackageUpdated) - -__all__ = ("WebhookRegistryPackageUpdated",) +from .group_0743 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_0743.py b/githubkit/versions/v2022_11_28/models/group_0743.py index 65ad942e8..c1e76f4b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0743.py +++ b/githubkit/versions/v2022_11_28/models/group_0743.py @@ -13,36 +13,59 @@ 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_0744 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0659 import WebhookRubygemsMetadata -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() + body: str = Field() + body_html: str = Field() created_at: str = Field() - description: None = Field() - ecosystem: 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() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + 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 WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" avatar_url: str = Field() events_url: str = Field() @@ -65,16 +88,116 @@ class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +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(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0744.py b/githubkit/versions/v2022_11_28/models/group_0744.py index 9aeaf4886..d77488d04 100644 --- a/githubkit/versions/v2022_11_28/models/group_0744.py +++ b/githubkit/versions/v2022_11_28/models/group_0744.py @@ -9,195 +9,52 @@ 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_0660 import WebhookRubygemsMetadata - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - md5: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - sha1: Missing[Union[str, None]] = Field(default=UNSET) - sha256: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0469 import WebhooksRelease + + +class WebhookReleaseCreated(GitHubModel): + """release created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookReleaseCreated) + +__all__ = ("WebhookReleaseCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0745.py b/githubkit/versions/v2022_11_28/models/group_0745.py index ec1ccce26..0cca5f428 100644 --- a/githubkit/versions/v2022_11_28/models/group_0745.py +++ b/githubkit/versions/v2022_11_28/models/group_0745.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0467 import WebhooksRelease +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0469 import WebhooksRelease -class WebhookReleaseCreated(GitHubModel): - """release created event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,6 +55,6 @@ class WebhookReleaseCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseCreated) +model_rebuild(WebhookReleaseDeleted) -__all__ = ("WebhookReleaseCreated",) +__all__ = ("WebhookReleaseDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0746.py b/githubkit/versions/v2022_11_28/models/group_0746.py index 390fadce3..d17b4c787 100644 --- a/githubkit/versions/v2022_11_28/models/group_0746.py +++ b/githubkit/versions/v2022_11_28/models/group_0746.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0467 import WebhooksRelease +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0469 import WebhooksRelease -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" +class WebhookReleaseEdited(GitHubModel): + """release edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookReleaseEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,9 +53,69 @@ class WebhookReleaseDeleted(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 WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + tag_name: Missing[WebhookReleaseEditedPropChangesPropTagName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropTagName(GitHubModel): + """WebhookReleaseEditedPropChangesPropTagName""" + + from_: str = Field( + alias="from", + description="The previous version of the tag_name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) -model_rebuild(WebhookReleaseDeleted) +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropTagName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -__all__ = ("WebhookReleaseDeleted",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropMakeLatest", + "WebhookReleaseEditedPropChangesPropName", + "WebhookReleaseEditedPropChangesPropTagName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0747.py b/githubkit/versions/v2022_11_28/models/group_0747.py index 9c2c1cc5c..e4962caef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0747.py +++ b/githubkit/versions/v2022_11_28/models/group_0747.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0467 import WebhooksRelease +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookReleaseEdited(GitHubModel): - """release edited event""" +class WebhookReleasePrereleased(GitHubModel): + """release prereleased event""" - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() + action: Literal["prereleased"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,7 +44,7 @@ class WebhookReleaseEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( + release: WebhookReleasePrereleasedPropRelease = Field( title="Release", description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", ) @@ -58,64 +57,150 @@ class WebhookReleaseEdited(GitHubModel): ) -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" - - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - tag_name: Missing[WebhookReleaseEditedPropChangesPropTagName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET - ) +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ -class WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( + Field() ) - - -class WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", + assets_url: str = Field() + author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( + title="User" ) - - -class WebhookReleaseEditedPropChangesPropTagName(GitHubModel): - """WebhookReleaseEditedPropChangesPropTagName""" - - from_: str = Field( - alias="from", - description="The previous version of the tag_name if the action was `edited`.", + 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() + immutable: bool = Field(description="Whether or not the release is immutable.") + 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." ) - - -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" ) - - -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropTagName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookReleasePrereleasedPropRelease) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) +model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) __all__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropMakeLatest", - "WebhookReleaseEditedPropChangesPropName", - "WebhookReleaseEditedPropChangesPropTagName", + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0748.py b/githubkit/versions/v2022_11_28/models/group_0748.py index 5235dc94d..cfc13a1bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0748.py +++ b/githubkit/versions/v2022_11_28/models/group_0748.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0470 import WebhooksRelease1 -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: Literal["prereleased"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ 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( + release: WebhooksRelease1 = Field( title="Release", description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", ) @@ -57,149 +57,6 @@ class WebhookReleasePrereleased(GitHubModel): ) -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """Release +model_rebuild(WebhookReleasePublished) - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( - Field() - ) - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - digest: Union[str, None] = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -model_rebuild(WebhookReleasePrereleased) -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) -model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) - -__all__ = ( - "WebhookReleasePrereleased", - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleasePropAssetsItems", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleasePropAuthor", - "WebhookReleasePrereleasedPropReleasePropReactions", -) +__all__ = ("WebhookReleasePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0749.py b/githubkit/versions/v2022_11_28/models/group_0749.py index 79b1c8632..9a068caf2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0749.py +++ b/githubkit/versions/v2022_11_28/models/group_0749.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0468 import WebhooksRelease1 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0469 import WebhooksRelease -class WebhookReleasePublished(GitHubModel): - """release published event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" - action: Literal["published"] = Field() + action: Literal["released"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ 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( + release: WebhooksRelease = Field( title="Release", description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", ) @@ -57,6 +57,6 @@ class WebhookReleasePublished(GitHubModel): ) -model_rebuild(WebhookReleasePublished) +model_rebuild(WebhookReleaseReleased) -__all__ = ("WebhookReleasePublished",) +__all__ = ("WebhookReleaseReleased",) diff --git a/githubkit/versions/v2022_11_28/models/group_0750.py b/githubkit/versions/v2022_11_28/models/group_0750.py index ab5528baf..18cb46869 100644 --- a/githubkit/versions/v2022_11_28/models/group_0750.py +++ b/githubkit/versions/v2022_11_28/models/group_0750.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0467 import WebhooksRelease +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0470 import WebhooksRelease1 -class WebhookReleaseReleased(GitHubModel): - """release released event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" - action: Literal["released"] = Field() + action: Literal["unpublished"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ class WebhookReleaseReleased(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( + release: WebhooksRelease1 = Field( title="Release", description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", ) @@ -57,6 +57,6 @@ class WebhookReleaseReleased(GitHubModel): ) -model_rebuild(WebhookReleaseReleased) +model_rebuild(WebhookReleaseUnpublished) -__all__ = ("WebhookReleaseReleased",) +__all__ = ("WebhookReleaseUnpublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0751.py b/githubkit/versions/v2022_11_28/models/group_0751.py index 38df7a888..dff592520 100644 --- a/githubkit/versions/v2022_11_28/models/group_0751.py +++ b/githubkit/versions/v2022_11_28/models/group_0751.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0468 import WebhooksRelease1 +from .group_0184 import RepositoryAdvisory +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" - action: Literal["unpublished"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +44,18 @@ 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( - 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(WebhookReleaseUnpublished) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ("WebhookReleaseUnpublished",) +__all__ = ("WebhookRepositoryAdvisoryPublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0752.py b/githubkit/versions/v2022_11_28/models/group_0752.py index 23b90a994..bc8152414 100644 --- a/githubkit/versions/v2022_11_28/models/group_0752.py +++ b/githubkit/versions/v2022_11_28/models/group_0752.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0182 import RepositoryAdvisory -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0184 import RepositoryAdvisory +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" - action: Literal["published"] = Field() + action: Literal["reported"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookRepositoryAdvisoryPublished(GitHubModel): ) -model_rebuild(WebhookRepositoryAdvisoryPublished) +model_rebuild(WebhookRepositoryAdvisoryReported) -__all__ = ("WebhookRepositoryAdvisoryPublished",) +__all__ = ("WebhookRepositoryAdvisoryReported",) diff --git a/githubkit/versions/v2022_11_28/models/group_0753.py b/githubkit/versions/v2022_11_28/models/group_0753.py index d2fa438ed..b5081942f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0753.py +++ b/githubkit/versions/v2022_11_28/models/group_0753.py @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0182 import RepositoryAdvisory -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" - action: Literal["reported"] = Field() + action: Literal["archived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,14 +47,9 @@ class WebhookRepositoryAdvisoryReported(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.", ) - 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(WebhookRepositoryArchived) -__all__ = ("WebhookRepositoryAdvisoryReported",) +__all__ = ("WebhookRepositoryArchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0754.py b/githubkit/versions/v2022_11_28/models/group_0754.py index f48e287c1..b6ed4e24e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0754.py +++ b/githubkit/versions/v2022_11_28/models/group_0754.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" - action: Literal["archived"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryArchived(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryArchived) +model_rebuild(WebhookRepositoryCreated) -__all__ = ("WebhookRepositoryArchived",) +__all__ = ("WebhookRepositoryCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0755.py b/githubkit/versions/v2022_11_28/models/group_0755.py index 53f474515..7e562842e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0755.py +++ b/githubkit/versions/v2022_11_28/models/group_0755.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryCreated) +model_rebuild(WebhookRepositoryDeleted) -__all__ = ("WebhookRepositoryCreated",) +__all__ = ("WebhookRepositoryDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0756.py b/githubkit/versions/v2022_11_28/models/group_0756.py index 62f3798e4..88c075a5b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0756.py +++ b/githubkit/versions/v2022_11_28/models/group_0756.py @@ -9,32 +9,39 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryDeleted(GitHubModel): - """repository 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/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)."', ) @@ -50,6 +57,18 @@ class WebhookRepositoryDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryDeleted) +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__ = ("WebhookRepositoryDeleted",) +__all__ = ( + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0757.py b/githubkit/versions/v2022_11_28/models/group_0757.py index 857d0fe7d..b50995a40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0757.py +++ b/githubkit/versions/v2022_11_28/models/group_0757.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" +class WebhookRepositoryEdited(GitHubModel): + """repository edited 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["edited"] = Field() + changes: WebhookRepositoryEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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)."', ) @@ -57,18 +51,57 @@ class WebhookRepositoryDispatchSample(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload +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""" - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ + from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryDispatchSample) -model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) +model_rebuild(WebhookRepositoryEdited) +model_rebuild(WebhookRepositoryEditedPropChanges) +model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) +model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) +model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) +model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) __all__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", + "WebhookRepositoryEdited", + "WebhookRepositoryEditedPropChanges", + "WebhookRepositoryEditedPropChangesPropDefaultBranch", + "WebhookRepositoryEditedPropChangesPropDescription", + "WebhookRepositoryEditedPropChangesPropHomepage", + "WebhookRepositoryEditedPropChangesPropTopics", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0758.py b/githubkit/versions/v2022_11_28/models/group_0758.py index 2ebbaed20..b8fbbf39c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0758.py +++ b/githubkit/versions/v2022_11_28/models/group_0758.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" +class WebhookRepositoryImport(GitHubModel): + """repository_import event""" - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,59 +47,9 @@ class WebhookRepositoryEdited(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + status: Literal["success", "cancelled", "failure"] = Field() -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" +model_rebuild(WebhookRepositoryImport) - 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__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("WebhookRepositoryImport",) diff --git a/githubkit/versions/v2022_11_28/models/group_0759.py b/githubkit/versions/v2022_11_28/models/group_0759.py index a3bc90f2a..e69b6dff9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0759.py +++ b/githubkit/versions/v2022_11_28/models/group_0759.py @@ -18,15 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" + action: Literal["privatized"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,9 +48,8 @@ class WebhookRepositoryImport(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryImport) +model_rebuild(WebhookRepositoryPrivatized) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("WebhookRepositoryPrivatized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0760.py b/githubkit/versions/v2022_11_28/models/group_0760.py index 42c67ee92..2c7b4ff97 100644 --- a/githubkit/versions/v2022_11_28/models/group_0760.py +++ b/githubkit/versions/v2022_11_28/models/group_0760.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" - action: Literal["privatized"] = Field() + action: Literal["publicized"] = 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(WebhookRepositoryPublicized) -__all__ = ("WebhookRepositoryPrivatized",) +__all__ = ("WebhookRepositoryPublicized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0761.py b/githubkit/versions/v2022_11_28/models/group_0761.py index aabba3b8c..b5c7beec7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0761.py +++ b/githubkit/versions/v2022_11_28/models/group_0761.py @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" - action: Literal["publicized"] = Field() + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +51,32 @@ class WebhookRepositoryPublicized(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryPublicized) +class WebhookRepositoryRenamedPropChanges(GitHubModel): + """WebhookRepositoryRenamedPropChanges""" -__all__ = ("WebhookRepositoryPublicized",) + 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", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0762.py b/githubkit/versions/v2022_11_28/models/group_0762.py index 427f87ef7..bb0c0b3fa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0762.py +++ b/githubkit/versions/v2022_11_28/models/group_0762.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0175 import RepositoryRuleset +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,39 +44,18 @@ class WebhookRepositoryRenamed(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.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRenamedPropChanges(GitHubModel): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookRepositoryRenamed) -model_rebuild(WebhookRepositoryRenamedPropChanges) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) +model_rebuild(WebhookRepositoryRulesetCreated) -__all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", -) +__all__ = ("WebhookRepositoryRulesetCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0763.py b/githubkit/versions/v2022_11_28/models/group_0763.py index add24bd67..53ad1bc6e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0763.py +++ b/githubkit/versions/v2022_11_28/models/group_0763.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0173 import RepositoryRuleset -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0175 import RepositoryRuleset +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookRepositoryRulesetCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetCreated) +model_rebuild(WebhookRepositoryRulesetDeleted) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ("WebhookRepositoryRulesetDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0764.py b/githubkit/versions/v2022_11_28/models/group_0764.py index 3c6b26030..2fa6cbee2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0764.py +++ b/githubkit/versions/v2022_11_28/models/group_0764.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0173 import RepositoryRuleset -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0175 import RepositoryRuleset +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0765 import WebhookRepositoryRulesetEditedPropChanges -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,9 +54,10 @@ class WebhookRepositoryRulesetDeleted(GitHubModel): 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(WebhookRepositoryRulesetDeleted) +model_rebuild(WebhookRepositoryRulesetEdited) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ("WebhookRepositoryRulesetEdited",) diff --git a/githubkit/versions/v2022_11_28/models/group_0765.py b/githubkit/versions/v2022_11_28/models/group_0765.py index b6f46bede..47081cef2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0765.py +++ b/githubkit/versions/v2022_11_28/models/group_0765.py @@ -9,55 +9,51 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0173 import RepositoryRuleset -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0766 import WebhookRepositoryRulesetEditedPropChanges +from .group_0766 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from .group_0768 import WebhookRepositoryRulesetEditedPropChangesPropRules -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["edited"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = 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.", + enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( + 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.", + conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( + Field(default=UNSET) ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetEdited) +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__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", + "WebhookRepositoryRulesetEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0766.py b/githubkit/versions/v2022_11_28/models/group_0766.py index 88e39882d..ec5872840 100644 --- a/githubkit/versions/v2022_11_28/models/group_0766.py +++ b/githubkit/versions/v2022_11_28/models/group_0766.py @@ -15,45 +15,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0767 import WebhookRepositoryRulesetEditedPropChangesPropConditions -from .group_0769 import WebhookRepositoryRulesetEditedPropChangesPropRules - - -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" - - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET - ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) - ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( - Field(default=UNSET) - ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( - default=UNSET - ) - - -class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: Missing[str] = Field(default=UNSET, alias="from") +from .group_0128 import RepositoryRulesetConditions +from .group_0767 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - from_: Missing[str] = Field(default=UNSET, alias="from") + added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", - "WebhookRepositoryRulesetEditedPropChangesPropName", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0767.py b/githubkit/versions/v2022_11_28/models/group_0767.py index 76f65e863..60c141970 100644 --- a/githubkit/versions/v2022_11_28/models/group_0767.py +++ b/githubkit/versions/v2022_11_28/models/group_0767.py @@ -15,22 +15,107 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0126 import RepositoryRulesetConditions -from .group_0768 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) +from .group_0128 import RepositoryRulesetConditions + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + + condition: Missing[RepositoryRulesetConditions] = Field( + default=UNSET, + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", + ) + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) -class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] +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") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) +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__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0768.py b/githubkit/versions/v2022_11_28/models/group_0768.py index 29c8d5ca2..47f890294 100644 --- a/githubkit/versions/v2022_11_28/models/group_0768.py +++ b/githubkit/versions/v2022_11_28/models/group_0768.py @@ -9,113 +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_0126 import RepositoryRulesetConditions - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - - condition: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", - ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - +from .group_0139 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0140 import RepositoryRuleUpdate +from .group_0142 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleMergeQueue +from .group_0145 import RepositoryRuleRequiredDeployments +from .group_0148 import RepositoryRulePullRequest +from .group_0150 import RepositoryRuleRequiredStatusChecks +from .group_0152 import RepositoryRuleCommitMessagePattern +from .group_0154 import RepositoryRuleCommitAuthorEmailPattern +from .group_0156 import RepositoryRuleCommitterEmailPattern +from .group_0158 import RepositoryRuleBranchNamePattern +from .group_0160 import RepositoryRuleTagNamePattern +from .group_0162 import RepositoryRuleFilePathRestriction +from .group_0164 import RepositoryRuleMaxFilePathLength +from .group_0166 import RepositoryRuleFileExtensionRestriction +from .group_0168 import RepositoryRuleMaxFileSize +from .group_0171 import RepositoryRuleWorkflows +from .group_0173 import RepositoryRuleCodeScanning +from .group_0769 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + deleted: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] ] = 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") - +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) -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__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) diff --git a/githubkit/versions/v2022_11_28/models/group_0769.py b/githubkit/versions/v2022_11_28/models/group_0769.py index 662cf2a9d..5a27c41a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0769.py +++ b/githubkit/versions/v2022_11_28/models/group_0769.py @@ -17,96 +17,128 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0137 import ( +from .group_0139 import ( RepositoryRuleCreation, RepositoryRuleDeletion, RepositoryRuleNonFastForward, RepositoryRuleRequiredSignatures, ) -from .group_0138 import RepositoryRuleUpdate -from .group_0140 import RepositoryRuleRequiredLinearHistory -from .group_0141 import RepositoryRuleMergeQueue -from .group_0143 import RepositoryRuleRequiredDeployments -from .group_0146 import RepositoryRulePullRequest -from .group_0148 import RepositoryRuleRequiredStatusChecks -from .group_0150 import RepositoryRuleCommitMessagePattern -from .group_0152 import RepositoryRuleCommitAuthorEmailPattern -from .group_0154 import RepositoryRuleCommitterEmailPattern -from .group_0156 import RepositoryRuleBranchNamePattern -from .group_0158 import RepositoryRuleTagNamePattern -from .group_0160 import RepositoryRuleFilePathRestriction -from .group_0162 import RepositoryRuleMaxFilePathLength -from .group_0164 import RepositoryRuleFileExtensionRestriction -from .group_0166 import RepositoryRuleMaxFileSize -from .group_0169 import RepositoryRuleWorkflows -from .group_0171 import RepositoryRuleCodeScanning -from .group_0770 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) +from .group_0140 import RepositoryRuleUpdate +from .group_0142 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleMergeQueue +from .group_0145 import RepositoryRuleRequiredDeployments +from .group_0148 import RepositoryRulePullRequest +from .group_0150 import RepositoryRuleRequiredStatusChecks +from .group_0152 import RepositoryRuleCommitMessagePattern +from .group_0154 import RepositoryRuleCommitAuthorEmailPattern +from .group_0156 import RepositoryRuleCommitterEmailPattern +from .group_0158 import RepositoryRuleBranchNamePattern +from .group_0160 import RepositoryRuleTagNamePattern +from .group_0162 import RepositoryRuleFilePathRestriction +from .group_0164 import RepositoryRuleMaxFilePathLength +from .group_0166 import RepositoryRuleFileExtensionRestriction +from .group_0168 import RepositoryRuleMaxFileSize +from .group_0171 import RepositoryRuleWorkflows +from .group_0173 import RepositoryRuleCodeScanning + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] + rule: Missing[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, ] + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges ] = Field(default=UNSET) - deleted: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration ] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] + 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 + """ -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) + from_: Missing[str] = Field(default=UNSET, alias="from") -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern +) + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0770.py b/githubkit/versions/v2022_11_28/models/group_0770.py index 04ba5fc72..21deeaa60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0770.py +++ b/githubkit/versions/v2022_11_28/models/group_0770.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,128 +17,124 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0137 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0138 import RepositoryRuleUpdate -from .group_0140 import RepositoryRuleRequiredLinearHistory -from .group_0141 import RepositoryRuleMergeQueue -from .group_0143 import RepositoryRuleRequiredDeployments -from .group_0146 import RepositoryRulePullRequest -from .group_0148 import RepositoryRuleRequiredStatusChecks -from .group_0150 import RepositoryRuleCommitMessagePattern -from .group_0152 import RepositoryRuleCommitAuthorEmailPattern -from .group_0154 import RepositoryRuleCommitterEmailPattern -from .group_0156 import RepositoryRuleBranchNamePattern -from .group_0158 import RepositoryRuleTagNamePattern -from .group_0160 import RepositoryRuleFilePathRestriction -from .group_0162 import RepositoryRuleMaxFilePathLength -from .group_0164 import RepositoryRuleFileExtensionRestriction -from .group_0166 import RepositoryRuleMaxFileSize -from .group_0169 import RepositoryRuleWorkflows -from .group_0171 import RepositoryRuleCodeScanning - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ + action: Literal["transferred"] = Field() + changes: WebhookRepositoryTransferredPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.") - from_: Missing[str] = Field(default=UNSET, alias="from") +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() - from_: Missing[str] = Field(default=UNSET, alias="from") +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" + ) - from_: Missing[str] = Field(default=UNSET, alias="from") +class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) + 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__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0771.py b/githubkit/versions/v2022_11_28/models/group_0771.py index 3ce1f50e0..e11d5a7cf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0771.py +++ b/githubkit/versions/v2022_11_28/models/group_0771.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() + action: Literal["unarchived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,90 +50,6 @@ class WebhookRepositoryTransferred(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" +model_rebuild(WebhookRepositoryUnarchived) - 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__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", -) +__all__ = ("WebhookRepositoryUnarchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0772.py b/githubkit/versions/v2022_11_28/models/group_0772.py index 2ae9f141f..50a9c0233 100644 --- a/githubkit/versions/v2022_11_28/models/group_0772.py +++ b/githubkit/versions/v2022_11_28/models/group_0772.py @@ -18,16 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0471 import WebhooksAlert -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" - action: Literal["unarchived"] = 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", @@ -50,6 +55,6 @@ class WebhookRepositoryUnarchived(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryUnarchived) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) -__all__ = ("WebhookRepositoryUnarchived",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0773.py b/githubkit/versions/v2022_11_28/models/group_0773.py index 831a08432..5a59dcd59 100644 --- a/githubkit/versions/v2022_11_28/models/group_0773.py +++ b/githubkit/versions/v2022_11_28/models/group_0773.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0469 import WebhooksAlert +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - action: Literal["create"] = Field() - alert: WebhooksAlert = Field( + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( title="Repository Vulnerability Alert Alert", description="The security alert of the vulnerable dependency.", ) @@ -55,6 +55,67 @@ class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) + 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(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0774.py b/githubkit/versions/v2022_11_28/models/group_0774.py index 6e01c51a5..e148cf798 100644 --- a/githubkit/versions/v2022_11_28/models/group_0774.py +++ b/githubkit/versions/v2022_11_28/models/group_0774.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0471 import WebhooksAlert -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + action: Literal["reopen"] = Field() + alert: WebhooksAlert = Field( title="Repository Vulnerability Alert Alert", description="The security alert of the vulnerable dependency.", ) @@ -55,67 +55,6 @@ class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """Repository Vulnerability Alert Alert +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) - 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(WebhookRepositoryVulnerabilityAlertDismiss) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismiss", - "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", -) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) diff --git a/githubkit/versions/v2022_11_28/models/group_0775.py b/githubkit/versions/v2022_11_28/models/group_0775.py index 4a3a671b8..25fa4766a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0775.py +++ b/githubkit/versions/v2022_11_28/models/group_0775.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0469 import WebhooksAlert +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["reopen"] = Field() - alert: WebhooksAlert = Field( + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( title="Repository Vulnerability Alert Alert", description="The security alert of the vulnerable dependency.", ) @@ -55,6 +55,65 @@ class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert -__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) + 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(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0776.py b/githubkit/versions/v2022_11_28/models/group_0776.py index 23e0bee99..251c5cb79 100644 --- a/githubkit/versions/v2022_11_28/models/group_0776.py +++ b/githubkit/versions/v2022_11_28/models/group_0776.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,20 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0472 import SecretScanningAlertWebhook -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,68 +49,11 @@ class WebhookRepositoryVulnerabilityAlertResolve(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 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) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ( - "WebhookRepositoryVulnerabilityAlertResolve", - "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", -) +__all__ = ("WebhookSecretScanningAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0777.py b/githubkit/versions/v2022_11_28/models/group_0777.py index 835967cc3..9608c7aea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0777.py +++ b/githubkit/versions/v2022_11_28/models/group_0777.py @@ -18,28 +18,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0470 import SecretScanningAlertWebhook +from .group_0383 import SecretScanningLocation +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0472 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" +class WebhookSecretScanningAlertLocationCreated(GitHubModel): + """Secret Scanning Alert Location 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/admin/overview/about-enterprise-accounts)."', - ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,11 +45,9 @@ class WebhookSecretScanningAlertCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertCreated) +model_rebuild(WebhookSecretScanningAlertLocationCreated) -__all__ = ("WebhookSecretScanningAlertCreated",) +__all__ = ("WebhookSecretScanningAlertLocationCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0778.py b/githubkit/versions/v2022_11_28/models/group_0778.py index b79c364f4..875448bf5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0778.py +++ b/githubkit/versions/v2022_11_28/models/group_0778.py @@ -9,45 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0381 import SecretScanningLocation -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0470 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertLocationCreated(GitHubModel): +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): """Secret Scanning Alert Location Created Event""" - 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/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: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertLocationCreated) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookSecretScanningAlertLocationCreated",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0779.py b/githubkit/versions/v2022_11_28/models/group_0779.py index 875448bf5..5758d0a6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0779.py +++ b/githubkit/versions/v2022_11_28/models/group_0779.py @@ -9,19 +9,51 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created 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." +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0472 import SecretScanningAlertWebhook + + +class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): + """secret_scanning_alert publicly leaked event""" + + action: Literal["publicly_leaked"] = 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." ) -model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) +model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0780.py b/githubkit/versions/v2022_11_28/models/group_0780.py index 90277ae0e..f141e4b28 100644 --- a/githubkit/versions/v2022_11_28/models/group_0780.py +++ b/githubkit/versions/v2022_11_28/models/group_0780.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0470 import SecretScanningAlertWebhook +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0472 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): - """secret_scanning_alert publicly leaked event""" +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" - action: Literal["publicly_leaked"] = Field() + action: Literal["reopened"] = Field() alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,6 +54,6 @@ class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): ) -model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) +__all__ = ("WebhookSecretScanningAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0781.py b/githubkit/versions/v2022_11_28/models/group_0781.py index 5d98c30b6..1259f29e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0781.py +++ b/githubkit/versions/v2022_11_28/models/group_0781.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0470 import SecretScanningAlertWebhook +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0472 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - action: Literal["reopened"] = Field() + action: Literal["resolved"] = Field() alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,6 +54,6 @@ class WebhookSecretScanningAlertReopened(GitHubModel): ) -model_rebuild(WebhookSecretScanningAlertReopened) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ("WebhookSecretScanningAlertReopened",) +__all__ = ("WebhookSecretScanningAlertResolved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0782.py b/githubkit/versions/v2022_11_28/models/group_0782.py index 7013fb15b..5022ba458 100644 --- a/githubkit/versions/v2022_11_28/models/group_0782.py +++ b/githubkit/versions/v2022_11_28/models/group_0782.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0470 import SecretScanningAlertWebhook +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0472 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" - action: Literal["resolved"] = Field() + action: Literal["validated"] = Field() alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,6 +54,6 @@ class WebhookSecretScanningAlertResolved(GitHubModel): ) -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(WebhookSecretScanningAlertValidated) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ("WebhookSecretScanningAlertValidated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0783.py b/githubkit/versions/v2022_11_28/models/group_0783.py index d0546dcef..6599371e5 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 Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,47 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0470 import SecretScanningAlertWebhook +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" +class WebhookSecretScanningScanCompleted(GitHubModel): + """secret_scanning_scan completed event""" - action: Literal["validated"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["completed"] = Field() + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( + Field(description="What type of scan was completed") + ) + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( + description="What type of content was scanned" + ) + started_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + completed_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + secret_types: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", + ) + custom_pattern_name: Missing[Union[str, None]] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", + ) + custom_pattern_scope: Missing[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,15 +75,11 @@ class WebhookSecretScanningAlertValidated(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(WebhookSecretScanningAlertValidated) +model_rebuild(WebhookSecretScanningScanCompleted) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ("WebhookSecretScanningScanCompleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0784.py b/githubkit/versions/v2022_11_28/models/group_0784.py index 67e91a514..d7c89cf26 100644 --- a/githubkit/versions/v2022_11_28/models/group_0784.py +++ b/githubkit/versions/v2022_11_28/models/group_0784.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,47 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0473 import WebhooksSecurityAdvisory -class WebhookSecretScanningScanCompleted(GitHubModel): - """secret_scanning_scan completed event""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published 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["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -75,11 +44,19 @@ 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: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + 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(WebhookSecretScanningScanCompleted) +model_rebuild(WebhookSecurityAdvisoryPublished) -__all__ = ("WebhookSecretScanningScanCompleted",) +__all__ = ("WebhookSecurityAdvisoryPublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0785.py b/githubkit/versions/v2022_11_28/models/group_0785.py index 06f4b7529..5ac154fea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0785.py +++ b/githubkit/versions/v2022_11_28/models/group_0785.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0471 import WebhooksSecurityAdvisory +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0473 import WebhooksSecurityAdvisory -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - action: Literal["published"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -57,6 +57,6 @@ class WebhookSecurityAdvisoryPublished(GitHubModel): ) -model_rebuild(WebhookSecurityAdvisoryPublished) +model_rebuild(WebhookSecurityAdvisoryUpdated) -__all__ = ("WebhookSecurityAdvisoryPublished",) +__all__ = ("WebhookSecurityAdvisoryUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0786.py b/githubkit/versions/v2022_11_28/models/group_0786.py index 891890572..ec483d59b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0786.py +++ b/githubkit/versions/v2022_11_28/models/group_0786.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0471 import WebhooksSecurityAdvisory +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0787 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" - action: Literal["updated"] = Field() + action: Literal["withdrawn"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,7 +49,7 @@ class WebhookSecurityAdvisoryUpdated(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.", ) - security_advisory: WebhooksSecurityAdvisory = Field( + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( description="The details of the security advisory, including summary, description, and severity." ) sender: Missing[SimpleUser] = Field( @@ -57,6 +57,6 @@ class WebhookSecurityAdvisoryUpdated(GitHubModel): ) -model_rebuild(WebhookSecurityAdvisoryUpdated) +model_rebuild(WebhookSecurityAdvisoryWithdrawn) -__all__ = ("WebhookSecurityAdvisoryUpdated",) +__all__ = ("WebhookSecurityAdvisoryWithdrawn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0787.py b/githubkit/versions/v2022_11_28/models/group_0787.py index 2d077f7b3..a20e03470 100644 --- a/githubkit/versions/v2022_11_28/models/group_0787.py +++ b/githubkit/versions/v2022_11_28/models/group_0787.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_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0788 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +from .group_0001 import CvssSeverities -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["withdrawn"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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: 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." + 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() ) + 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(WebhookSecurityAdvisoryWithdrawn) +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__ = ("WebhookSecurityAdvisoryWithdrawn",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0788.py b/githubkit/versions/v2022_11_28/models/group_0788.py index a20e03470..e35b5ec00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0788.py +++ b/githubkit/versions/v2022_11_28/models/group_0788.py @@ -9,135 +9,47 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities - +from .group_0003 import SimpleUser +from .group_0126 import FullRepository +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0789 import WebhookSecurityAndAnalysisPropChanges -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - The details of the security advisory, including summary, description, and - severity. - """ +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( - Field() + changes: WebhookSecurityAndAnalysisPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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: FullRepository = Field( + title="Full Repository", description="Full 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(WebhookSecurityAndAnalysis) -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("WebhookSecurityAndAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0789.py b/githubkit/versions/v2022_11_28/models/group_0789.py index 9f65329d6..70aa3740f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0789.py +++ b/githubkit/versions/v2022_11_28/models/group_0789.py @@ -15,41 +15,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0124 import FullRepository -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0790 import WebhookSecurityAndAnalysisPropChanges - - -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" - - changes: WebhookSecurityAndAnalysisPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." +from .group_0790 import WebhookSecurityAndAnalysisPropChangesPropFrom + + +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" + + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) -model_rebuild(WebhookSecurityAndAnalysis) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ("WebhookSecurityAndAnalysis",) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0790.py b/githubkit/versions/v2022_11_28/models/group_0790.py index 007eed419..a5c6bc9b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0790.py +++ b/githubkit/versions/v2022_11_28/models/group_0790.py @@ -9,23 +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_0791 import WebhookSecurityAndAnalysisPropChangesPropFrom +from .group_0062 import SecurityAndAnalysis -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET ) -model_rebuild(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) diff --git a/githubkit/versions/v2022_11_28/models/group_0791.py b/githubkit/versions/v2022_11_28/models/group_0791.py index 01a4b52ae..241d94b7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0791.py +++ b/githubkit/versions/v2022_11_28/models/group_0791.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,17 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0060 import SecurityAndAnalysis +from .group_0003 import SimpleUser +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0474 import WebhooksSponsorship -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + 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/admin/overview/about-enterprise-accounts)."', ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(WebhookSponsorshipCancelled) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("WebhookSponsorshipCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0792.py b/githubkit/versions/v2022_11_28/models/group_0792.py index 162b942dd..218fa4d32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0792.py +++ b/githubkit/versions/v2022_11_28/models/group_0792.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0472 import WebhooksSponsorship +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0474 import WebhooksSponsorship -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship created event""" - action: Literal["cancelled"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookSponsorshipCancelled(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSponsorshipCreated) -__all__ = ("WebhookSponsorshipCancelled",) +__all__ = ("WebhookSponsorshipCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0793.py b/githubkit/versions/v2022_11_28/models/group_0793.py index b0767efa1..4af9deef0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0793.py +++ b/githubkit/versions/v2022_11_28/models/group_0793.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0472 import WebhooksSponsorship +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0474 import WebhooksSponsorship -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" - action: Literal["created"] = Field() + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +54,29 @@ class WebhookSponsorshipCreated(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipCreated) +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" -__all__ = ("WebhookSponsorshipCreated",) + 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/v2022_11_28/models/group_0794.py b/githubkit/versions/v2022_11_28/models/group_0794.py index 03906a84f..687df9be3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0794.py +++ b/githubkit/versions/v2022_11_28/models/group_0794.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0472 import WebhooksSponsorship +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0474 import WebhooksSponsorship -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() + 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", @@ -54,29 +57,6 @@ class WebhookSponsorshipEdited(GitHubModel): sponsorship: WebhooksSponsorship = Field() -class WebhookSponsorshipEditedPropChanges(GitHubModel): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( - default=UNSET - ) - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str = Field( - alias="from", - description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", - ) - - -model_rebuild(WebhookSponsorshipEdited) -model_rebuild(WebhookSponsorshipEditedPropChanges) -model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) +model_rebuild(WebhookSponsorshipPendingCancellation) -__all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", -) +__all__ = ("WebhookSponsorshipPendingCancellation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0795.py b/githubkit/versions/v2022_11_28/models/group_0795.py index 9161a4156..78e2768c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0795.py +++ b/githubkit/versions/v2022_11_28/models/group_0795.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0472 import WebhooksSponsorship +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0474 import WebhooksSponsorship +from .group_0475 import WebhooksChanges8 -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" - action: Literal["pending_cancellation"] = Field() + 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.", @@ -57,6 +59,6 @@ class WebhookSponsorshipPendingCancellation(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSponsorshipPendingTierChange) -__all__ = ("WebhookSponsorshipPendingCancellation",) +__all__ = ("WebhookSponsorshipPendingTierChange",) diff --git a/githubkit/versions/v2022_11_28/models/group_0796.py b/githubkit/versions/v2022_11_28/models/group_0796.py index 5486fa510..7ee5c7d1c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0796.py +++ b/githubkit/versions/v2022_11_28/models/group_0796.py @@ -18,23 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0472 import WebhooksSponsorship -from .group_0473 import WebhooksChanges8 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0474 import WebhooksSponsorship +from .group_0475 import WebhooksChanges8 -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" - action: Literal["pending_tier_change"] = Field() + action: Literal["tier_changed"] = 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", @@ -59,6 +55,6 @@ class WebhookSponsorshipPendingTierChange(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingTierChange) +model_rebuild(WebhookSponsorshipTierChanged) -__all__ = ("WebhookSponsorshipPendingTierChange",) +__all__ = ("WebhookSponsorshipTierChanged",) diff --git a/githubkit/versions/v2022_11_28/models/group_0797.py b/githubkit/versions/v2022_11_28/models/group_0797.py index da6c71727..b7321c276 100644 --- a/githubkit/versions/v2022_11_28/models/group_0797.py +++ b/githubkit/versions/v2022_11_28/models/group_0797.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0472 import WebhooksSponsorship -from .group_0473 import WebhooksChanges8 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" +class WebhookStarCreated(GitHubModel): + """star created event""" - action: Literal["tier_changed"] = Field() - changes: WebhooksChanges8 = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,15 +43,16 @@ class WebhookSponsorshipTierChanged(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: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + 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(WebhookSponsorshipTierChanged) +model_rebuild(WebhookStarCreated) -__all__ = ("WebhookSponsorshipTierChanged",) +__all__ = ("WebhookStarCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0798.py b/githubkit/versions/v2022_11_28/models/group_0798.py index c01153b55..e0d0f5ccd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0798.py +++ b/githubkit/versions/v2022_11_28/models/group_0798.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookStarCreated(GitHubModel): - """star created event""" +class WebhookStarDeleted(GitHubModel): + """star deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,11 +48,11 @@ class WebhookStarCreated(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.") - starred_at: Union[str, None] = Field( + 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(WebhookStarCreated) +model_rebuild(WebhookStarDeleted) -__all__ = ("WebhookStarCreated",) +__all__ = ("WebhookStarDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0799.py b/githubkit/versions/v2022_11_28/models/group_0799.py index 711fba57f..4f85e009f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0799.py +++ b/githubkit/versions/v2022_11_28/models/group_0799.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,26 +19,37 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookStarDeleted(GitHubModel): - """star deleted event""" +class WebhookStatus(GitHubModel): + """status event""" - action: Literal["deleted"] = Field() + 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." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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", @@ -48,11 +60,192 @@ class WebhookStarDeleted(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.") - 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." + 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(WebhookStarDeleted) +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__ = ("WebhookStarDeleted",) +__all__ = ( + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0800.py b/githubkit/versions/v2022_11_28/models/group_0800.py index b4ec94b90..70880c2d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0800.py +++ b/githubkit/versions/v2022_11_28/models/group_0800.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,234 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookStatus(GitHubModel): - """status event""" + Metaproperties for Git author/committer information. + """ - 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." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook 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() + 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 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(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(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0801.py b/githubkit/versions/v2022_11_28/models/group_0801.py index 70880c2d6..edd98c4e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0801.py +++ b/githubkit/versions/v2022_11_28/models/group_0801.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,18 +16,14 @@ from githubkit.utils import UNSET -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - 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) + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0802.py b/githubkit/versions/v2022_11_28/models/group_0802.py index edd98c4e3..696b079fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0802.py +++ b/githubkit/versions/v2022_11_28/models/group_0802.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,14 +19,18 @@ from githubkit.utils import UNSET -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: 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) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0803.py b/githubkit/versions/v2022_11_28/models/group_0803.py index 696b079fe..74f78d3d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0803.py +++ b/githubkit/versions/v2022_11_28/models/group_0803.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,18 +16,14 @@ from githubkit.utils import UNSET -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ +class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - 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) + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0804.py b/githubkit/versions/v2022_11_28/models/group_0804.py index 74f78d3d5..3da0ad823 100644 --- a/githubkit/versions/v2022_11_28/models/group_0804.py +++ b/githubkit/versions/v2022_11_28/models/group_0804.py @@ -9,21 +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 +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0047 import Issue +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks + -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" +class WebhookSubIssuesParentIssueAdded(GitHubModel): + """parent issue added event""" - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + 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: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` 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." + ) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) +model_rebuild(WebhookSubIssuesParentIssueAdded) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +__all__ = ("WebhookSubIssuesParentIssueAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0805.py b/githubkit/versions/v2022_11_28/models/group_0805.py index bc5a9e46c..cc7152489 100644 --- a/githubkit/versions/v2022_11_28/models/group_0805.py +++ b/githubkit/versions/v2022_11_28/models/group_0805.py @@ -19,16 +19,16 @@ from .group_0003 import SimpleUser from .group_0020 import Repository -from .group_0045 import Issue -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0047 import Issue +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookSubIssuesParentIssueAdded(GitHubModel): - """parent issue added event""" +class WebhookSubIssuesParentIssueRemoved(GitHubModel): + """parent issue removed event""" - action: Literal["parent_issue_added"] = Field() + action: Literal["parent_issue_removed"] = Field() parent_issue_id: float = Field(description="The ID of the parent issue.") parent_issue: Issue = Field( title="Issue", @@ -62,6 +62,6 @@ class WebhookSubIssuesParentIssueAdded(GitHubModel): ) -model_rebuild(WebhookSubIssuesParentIssueAdded) +model_rebuild(WebhookSubIssuesParentIssueRemoved) -__all__ = ("WebhookSubIssuesParentIssueAdded",) +__all__ = ("WebhookSubIssuesParentIssueRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0806.py b/githubkit/versions/v2022_11_28/models/group_0806.py index e95d386d4..364a2950a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0806.py +++ b/githubkit/versions/v2022_11_28/models/group_0806.py @@ -19,26 +19,26 @@ from .group_0003 import SimpleUser from .group_0020 import Repository -from .group_0045 import Issue -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0047 import Issue +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookSubIssuesParentIssueRemoved(GitHubModel): - """parent issue removed event""" +class WebhookSubIssuesSubIssueAdded(GitHubModel): + """sub-issue added event""" - action: Literal["parent_issue_removed"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( + 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.", ) - parent_issue_repo: Repository = Field( + sub_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( + 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.", ) @@ -62,6 +62,6 @@ class WebhookSubIssuesParentIssueRemoved(GitHubModel): ) -model_rebuild(WebhookSubIssuesParentIssueRemoved) +model_rebuild(WebhookSubIssuesSubIssueAdded) -__all__ = ("WebhookSubIssuesParentIssueRemoved",) +__all__ = ("WebhookSubIssuesSubIssueAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0807.py b/githubkit/versions/v2022_11_28/models/group_0807.py index b43ab0b24..4a8a7ea36 100644 --- a/githubkit/versions/v2022_11_28/models/group_0807.py +++ b/githubkit/versions/v2022_11_28/models/group_0807.py @@ -19,16 +19,16 @@ from .group_0003 import SimpleUser from .group_0020 import Repository -from .group_0045 import Issue -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0047 import Issue +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookSubIssuesSubIssueAdded(GitHubModel): - """sub-issue added event""" +class WebhookSubIssuesSubIssueRemoved(GitHubModel): + """sub-issue removed event""" - action: Literal["sub_issue_added"] = Field() + action: Literal["sub_issue_removed"] = Field() sub_issue_id: float = Field(description="The ID of the sub-issue.") sub_issue: Issue = Field( title="Issue", @@ -62,6 +62,6 @@ class WebhookSubIssuesSubIssueAdded(GitHubModel): ) -model_rebuild(WebhookSubIssuesSubIssueAdded) +model_rebuild(WebhookSubIssuesSubIssueRemoved) -__all__ = ("WebhookSubIssuesSubIssueAdded",) +__all__ = ("WebhookSubIssuesSubIssueRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0808.py b/githubkit/versions/v2022_11_28/models/group_0808.py index 583269db2..d3a5fae2f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0808.py +++ b/githubkit/versions/v2022_11_28/models/group_0808.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,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0045 import Issue -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0476 import WebhooksTeam1 -class WebhookSubIssuesSubIssueRemoved(GitHubModel): - """sub-issue removed event""" +class WebhookTeamAdd(GitHubModel): + """team_add event""" - 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.", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an 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 +41,17 @@ class WebhookSubIssuesSubIssueRemoved(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.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -model_rebuild(WebhookSubIssuesSubIssueRemoved) +model_rebuild(WebhookTeamAdd) -__all__ = ("WebhookSubIssuesSubIssueRemoved",) +__all__ = ("WebhookTeamAdd",) diff --git a/githubkit/versions/v2022_11_28/models/group_0809.py b/githubkit/versions/v2022_11_28/models/group_0809.py index 4d648fbca..70ca8caf6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0809.py +++ b/githubkit/versions/v2022_11_28/models/group_0809.py @@ -9,23 +9,26 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0474 import WebhooksTeam1 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0476 import WebhooksTeam1 -class WebhookTeamAdd(GitHubModel): - """team_add event""" +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" + action: Literal["added_to_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -36,22 +39,220 @@ class WebhookTeamAdd(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - 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) +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) -__all__ = ("WebhookTeamAdd",) +__all__ = ( + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0810.py b/githubkit/versions/v2022_11_28/models/group_0810.py index 0e9d7dbb5..45231dfdb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0810.py +++ b/githubkit/versions/v2022_11_28/models/group_0810.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0474 import WebhooksTeam1 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0476 import WebhooksTeam1 -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" +class WebhookTeamCreated(GitHubModel): + """team created event""" - action: Literal["added_to_repository"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,19 +43,17 @@ class WebhookTeamAddedToRepository(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[WebhookTeamAddedToRepositoryPropRepository] = Field( + repository: Missing[WebhookTeamCreatedPropRepository] = Field( default=UNSET, title="Repository", description="A git repository" ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + 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 WebhookTeamAddedToRepositoryPropRepository(GitHubModel): +class WebhookTeamCreatedPropRepository(GitHubModel): """Repository A git repository @@ -92,11 +90,11 @@ class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): 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.", + 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( @@ -140,8 +138,8 @@ class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" ) master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() @@ -153,11 +151,9 @@ class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): 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) + 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) @@ -185,8 +181,8 @@ class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): watchers_count: int = Field() -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties +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 @@ -194,7 +190,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHub """ -class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): """License""" key: str = Field() @@ -204,7 +200,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -231,8 +227,8 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -241,18 +237,18 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): 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(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) __all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0811.py b/githubkit/versions/v2022_11_28/models/group_0811.py index 6f4bd0847..df5a887eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0811.py +++ b/githubkit/versions/v2022_11_28/models/group_0811.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0474 import WebhooksTeam1 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0476 import WebhooksTeam1 -class WebhookTeamCreated(GitHubModel): - """team created event""" +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,17 +43,19 @@ class WebhookTeamCreated(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[WebhookTeamCreatedPropRepository] = Field( + repository: Missing[WebhookTeamDeletedPropRepository] = Field( default=UNSET, title="Repository", description="A git repository" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + 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 WebhookTeamCreatedPropRepository(GitHubModel): +class WebhookTeamDeletedPropRepository(GitHubModel): """Repository A git repository @@ -90,7 +92,7 @@ class WebhookTeamCreatedPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + 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.", @@ -138,7 +140,7 @@ class WebhookTeamCreatedPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( alias="license", title="License" ) master_branch: Missing[str] = Field(default=UNSET) @@ -151,8 +153,8 @@ class WebhookTeamCreatedPropRepository(GitHubModel): 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( + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( default=UNSET ) private: bool = Field(description="Whether the repository is private or public.") @@ -181,8 +183,8 @@ class WebhookTeamCreatedPropRepository(GitHubModel): watchers_count: int = Field() -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties +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 @@ -190,7 +192,7 @@ class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): """ -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): """License""" key: str = Field() @@ -200,7 +202,7 @@ class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -227,8 +229,8 @@ class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -237,18 +239,18 @@ class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): 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(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) __all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0812.py b/githubkit/versions/v2022_11_28/models/group_0812.py index af87b550e..2b74eb1ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0812.py +++ b/githubkit/versions/v2022_11_28/models/group_0812.py @@ -19,16 +19,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0474 import WebhooksTeam1 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0476 import WebhooksTeam1 -class WebhookTeamDeleted(GitHubModel): - """team deleted event""" +class WebhookTeamEdited(GitHubModel): + """team edited event""" - action: Literal["deleted"] = 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", @@ -43,19 +46,17 @@ class WebhookTeamDeleted(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[WebhookTeamDeletedPropRepository] = Field( + repository: Missing[WebhookTeamEditedPropRepository] = Field( default=UNSET, title="Repository", description="A git repository" ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + 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 WebhookTeamDeletedPropRepository(GitHubModel): +class WebhookTeamEditedPropRepository(GitHubModel): """Repository A git repository @@ -92,7 +93,7 @@ class WebhookTeamDeletedPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + 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.", @@ -140,7 +141,7 @@ class WebhookTeamDeletedPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( alias="license", title="License" ) master_branch: Missing[str] = Field(default=UNSET) @@ -153,8 +154,8 @@ class WebhookTeamDeletedPropRepository(GitHubModel): 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( + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( default=UNSET ) private: bool = Field(description="Whether the repository is private or public.") @@ -183,8 +184,8 @@ class WebhookTeamDeletedPropRepository(GitHubModel): watchers_count: int = Field() -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties +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 @@ -192,7 +193,7 @@ class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): """ -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): """License""" key: str = Field() @@ -202,7 +203,7 @@ class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -229,8 +230,8 @@ class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -239,18 +240,120 @@ class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +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(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__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", + "WebhookTeamEdited", + "WebhookTeamEditedPropChanges", + "WebhookTeamEditedPropChangesPropDescription", + "WebhookTeamEditedPropChangesPropName", + "WebhookTeamEditedPropChangesPropNotificationSetting", + "WebhookTeamEditedPropChangesPropPrivacy", + "WebhookTeamEditedPropChangesPropRepository", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", + "WebhookTeamEditedPropRepository", + "WebhookTeamEditedPropRepositoryPropCustomProperties", + "WebhookTeamEditedPropRepositoryPropLicense", + "WebhookTeamEditedPropRepositoryPropOwner", + "WebhookTeamEditedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0813.py b/githubkit/versions/v2022_11_28/models/group_0813.py index f0821a9d6..51dac6561 100644 --- a/githubkit/versions/v2022_11_28/models/group_0813.py +++ b/githubkit/versions/v2022_11_28/models/group_0813.py @@ -19,19 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0474 import WebhooksTeam1 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0476 import WebhooksTeam1 -class WebhookTeamEdited(GitHubModel): - """team edited event""" +class WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." - ) + action: Literal["removed_from_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,7 +43,7 @@ class WebhookTeamEdited(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[WebhookTeamEditedPropRepository] = Field( + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") @@ -56,7 +53,7 @@ class WebhookTeamEdited(GitHubModel): ) -class WebhookTeamEditedPropRepository(GitHubModel): +class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): """Repository A git repository @@ -93,11 +90,11 @@ class WebhookTeamEditedPropRepository(GitHubModel): 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.", - ) + 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( @@ -141,8 +138,8 @@ class WebhookTeamEditedPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") ) master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() @@ -154,10 +151,12 @@ class WebhookTeamEditedPropRepository(GitHubModel): 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 + 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() @@ -184,8 +183,10 @@ class WebhookTeamEditedPropRepository(GitHubModel): watchers_count: int = Field() -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties +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 @@ -193,7 +194,7 @@ class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): """ -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): """License""" key: str = Field() @@ -203,7 +204,7 @@ class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -230,8 +231,8 @@ class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -240,120 +241,18 @@ class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): 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(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(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0814.py b/githubkit/versions/v2022_11_28/models/group_0814.py index 572634bc0..f976f64f5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0814.py +++ b/githubkit/versions/v2022_11_28/models/group_0814.py @@ -9,26 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0474 import WebhooksTeam1 +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" +class WebhookWatchStarted(GitHubModel): + """watch started event""" - action: Literal["removed_from_repository"] = Field() + action: Literal["started"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,220 +38,18 @@ class WebhookTeamRemovedFromRepository(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - 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(WebhookWatchStarted) -__all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookWatchStarted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0815.py b/githubkit/versions/v2022_11_28/models/group_0815.py index 8076fe00a..0f6ef72b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0815.py +++ b/githubkit/versions/v2022_11_28/models/group_0815.py @@ -9,30 +9,30 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookWatchStarted(GitHubModel): - """watch started event""" +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch 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/admin/overview/about-enterprise-accounts)."', ) + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,13 +43,23 @@ 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.", ) + 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() -model_rebuild(WebhookWatchStarted) +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" -__all__ = ("WebhookWatchStarted",) + +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) + +__all__ = ( + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0816.py b/githubkit/versions/v2022_11_28/models/group_0816.py index 810a59d0c..8ca0b494f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0816.py +++ b/githubkit/versions/v2022_11_28/models/group_0816.py @@ -9,30 +9,31 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0217 import Deployment +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,23 +44,90 @@ 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() + 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.' + ) + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "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 WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" -class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" + 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() -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0817.py b/githubkit/versions/v2022_11_28/models/group_0817.py index 797d21daf..f8b7a069b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0817.py +++ b/githubkit/versions/v2022_11_28/models/group_0817.py @@ -14,62 +14,28 @@ 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_0215 import Deployment -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowJobCompleted(GitHubModel): - """workflow_job completed event""" - - action: Literal["completed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJob""" + 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: str = Field() - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", + 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() @@ -83,34 +49,32 @@ class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): run_attempt: int = Field() run_id: int = Field() run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = 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[Union[str, None], None] = Field( + 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[Union[int, None], None] = 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`." ) - runner_name: Union[Union[str, None], None] = 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`." ) 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." + 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() ) - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" completed_at: Union[str, None] = Field() conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( @@ -122,12 +86,10 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0818.py b/githubkit/versions/v2022_11_28/models/group_0818.py index f8b7a069b..13bbf03d1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0818.py +++ b/githubkit/versions/v2022_11_28/models/group_0818.py @@ -14,82 +14,64 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -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. - """ - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +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: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[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`." + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - 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`." + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[Union[str, None]]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." ) - 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`." + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." - ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( - Field() - ) - url: str = Field() + steps: Missing[ + list[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(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"] = Field() +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0819.py b/githubkit/versions/v2022_11_28/models/group_0819.py index 13bbf03d1..d276d95ad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0819.py +++ b/githubkit/versions/v2022_11_28/models/group_0819.py @@ -17,61 +17,111 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0217 import Deployment +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -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." + +class WebhookWorkflowJobInProgress(GitHubModel): + """workflow_job in_progress event""" + + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() + ) + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[Union[str, None]]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." + 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`." ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." + 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`." ) - steps: Missing[ - list[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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 WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" + + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0820.py b/githubkit/versions/v2022_11_28/models/group_0820.py index e54a061b5..1d055b568 100644 --- a/githubkit/versions/v2022_11_28/models/group_0820.py +++ b/githubkit/versions/v2022_11_28/models/group_0820.py @@ -14,55 +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_0003 import SimpleUser -from .group_0215 import Deployment -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job in_progress event""" - - action: Literal["in_progress"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" + 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[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + 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.") @@ -77,51 +40,47 @@ class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): run_attempt: int = Field() run_id: int = Field() run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = 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[Union[str, None], None] = Field( + 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[Union[int, None], None] = 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`." ) - runner_name: Union[Union[str, None], None] = 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`." ) started_at: str = Field() status: Literal["queued", "in_progress", "completed"] = Field( description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." - ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + 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() ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( Field() ) name: str = Field() number: int = Field() - started_at: Union[Union[str, None], None] = Field() + started_at: Union[str, None] = Field() status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0821.py b/githubkit/versions/v2022_11_28/models/group_0821.py index 1d055b568..b4d62dfca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0821.py +++ b/githubkit/versions/v2022_11_28/models/group_0821.py @@ -14,73 +14,61 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - 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[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() - 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( - 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`." + 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." ) - 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_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." ) - 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`." + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - 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] = ( + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( Field() ) - url: str = Field() + url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): """Workflow Step""" completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + conclusion: Union[str, None] = Field() name: str = Field() number: int = Field() started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0822.py b/githubkit/versions/v2022_11_28/models/group_0822.py index b4d62dfca..06c781508 100644 --- a/githubkit/versions/v2022_11_28/models/group_0822.py +++ b/githubkit/versions/v2022_11_28/models/group_0822.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,58 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0217 import Deployment +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 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 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)."', ) - 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/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.", + ) + 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", ) - url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" +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["in_progress", "completed", "pending", "queued"] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0823.py b/githubkit/versions/v2022_11_28/models/group_0823.py index 560f41881..758ab486e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0823.py +++ b/githubkit/versions/v2022_11_28/models/group_0823.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0215 import Deployment -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0217 import Deployment +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" - action: Literal["queued"] = Field() + action: Literal["waiting"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,7 +50,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: WebhookWorkflowJobWaitingPropWorkflowJob = Field() deployment: Missing[Deployment] = Field( default=UNSET, title="Deployment", @@ -58,8 +58,8 @@ class WebhookWorkflowJobQueued(GitHubModel): ) -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" check_run_url: str = Field() completed_at: Union[str, None] = Field() @@ -79,14 +79,14 @@ class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): 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() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() url: str = Field() -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): """Workflow Step""" completed_at: Union[str, None] = Field() @@ -96,15 +96,17 @@ 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["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() + ) -model_rebuild(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) __all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0824.py b/githubkit/versions/v2022_11_28/models/group_0824.py index 614cba422..b9f0ba1fb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0824.py +++ b/githubkit/versions/v2022_11_28/models/group_0824.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0215 import Deployment -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0434 import WebhooksWorkflow -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" - action: Literal["waiting"] = Field() + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,63 +50,456 @@ 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() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" ) -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" - 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.") + 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() - labels: list[str] = Field() - name: str = 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_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() + 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 WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" +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) - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + +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() ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + 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() -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) + +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(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__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", + "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_0825.py b/githubkit/versions/v2022_11_28/models/group_0825.py index b26d56ac3..f479b3ddd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0825.py +++ b/githubkit/versions/v2022_11_28/models/group_0825.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0432 import WebhooksWorkflow +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0434 import WebhooksWorkflow -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" - action: Literal["completed"] = Field() + action: Literal["in_progress"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,15 +51,15 @@ class WebhookWorkflowRunCompleted(GitHubModel): ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( title="Workflow Run" ) -class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): """Workflow Run""" - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: str = Field() @@ -78,16 +78,15 @@ class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): "stale", "success", "timed_out", - "startup_failure", ], ] = Field() created_at: datetime = Field() event: str = Field() head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( title="SimpleCommit" ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( Field(title="Repository Lite") ) head_sha: str = Field() @@ -100,40 +99,36 @@ class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): path: str = Field() previous_attempt_url: Union[str, None] = Field() pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] ] = Field() referenced_workflows: Missing[ Union[ list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + 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", "waiting" - ] = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, 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): +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -157,20 +152,19 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(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 WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -194,21 +188,18 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(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 WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): """SimpleCommit""" - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( title="Committer", description="Metaproperties for Git author/committer information.", ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( - 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() @@ -216,7 +207,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): tree_id: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): """Committer Metaproperties for Git author/committer information. @@ -228,7 +219,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubM username: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( GitHubModel ): """Committer @@ -242,7 +233,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( username: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): """Repository Lite""" archive_url: str = Field() @@ -276,11 +267,11 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): languages_url: str = Field() merges_url: str = Field() milestones_url: str = Field() - name: str = Field(description="The name of the repository.") + name: Union[str, None] = Field(description="The name of the repository.") node_id: str = Field() notifications_url: str = Field() owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None ] = Field(title="User") private: bool = Field(description="Whether the repository is private or public.") pulls_url: str = Field() @@ -295,7 +286,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): """User""" @@ -321,10 +312,9 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( subscriptions_url: Missing[str] = Field(default=UNSET) 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): +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): """Repository Lite""" archive_url: str = Field() @@ -362,7 +352,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): node_id: str = Field() notifications_url: str = Field() owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None ] = Field(title="User") private: bool = Field(description="Whether the repository is private or public.") pulls_url: str = Field() @@ -377,7 +367,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -401,16 +391,15 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubMo subscriptions_url: Missing[str] = Field(default=UNSET) 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""" +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( Field() ) - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( Field() ) id: int = Field() @@ -418,19 +407,19 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubMode url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -440,19 +429,19 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePro url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -462,44 +451,44 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPro 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(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( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "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_0826.py b/githubkit/versions/v2022_11_28/models/group_0826.py index a203a34ef..e64978b06 100644 --- a/githubkit/versions/v2022_11_28/models/group_0826.py +++ b/githubkit/versions/v2022_11_28/models/group_0826.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0432 import WebhooksWorkflow +from .group_0426 import EnterpriseWebhooks +from .group_0427 import SimpleInstallation +from .group_0428 import OrganizationSimpleWebhooks +from .group_0429 import RepositoryWebhooks +from .group_0434 import WebhooksWorkflow -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" - action: Literal["in_progress"] = Field() + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,15 +51,15 @@ class WebhookWorkflowRunInProgress(GitHubModel): ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( title="Workflow Run" ) -class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): """Workflow Run""" - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: str = Field() @@ -70,23 +70,24 @@ class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): conclusion: Union[ None, Literal[ - "action_required", - "cancelled", + "success", "failure", "neutral", - "skipped", - "stale", - "success", + "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: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( title="SimpleCommit" ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( Field(title="Repository Lite") ) head_sha: str = Field() @@ -99,36 +100,37 @@ class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): path: str = Field() previous_attempt_url: Union[str, None] = Field() pull_requests: list[ - Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems ], None, ] ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + 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"] = ( - Field() - ) + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + 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 WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -152,19 +154,20 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(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 WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( GitHubModel ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,18 +191,21 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(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 WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): """SimpleCommit""" - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( title="Committer", description="Metaproperties for Git author/committer information.", ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = 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() @@ -207,7 +213,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): tree_id: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): """Committer Metaproperties for Git author/committer information. @@ -219,7 +225,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHub username: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( GitHubModel ): """Committer @@ -233,7 +239,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( username: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): """Repository Lite""" archive_url: str = Field() @@ -267,11 +273,11 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel) languages_url: str = Field() merges_url: str = Field() milestones_url: str = Field() - name: Union[str, None] = Field(description="The name of the repository.") + name: str = Field(description="The name of the repository.") node_id: str = Field() notifications_url: str = Field() owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None ] = Field(title="User") private: bool = Field(description="Whether the repository is private or public.") pulls_url: str = Field() @@ -286,7 +292,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel) url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( GitHubModel ): """User""" @@ -312,9 +318,10 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): """Repository Lite""" archive_url: str = Field() @@ -352,7 +359,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): node_id: str = Field() notifications_url: str = Field() owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None ] = Field(title="User") private: bool = Field(description="Whether the repository is private or public.") pulls_url: str = Field() @@ -367,7 +374,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -391,15 +398,16 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubM subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( Field() ) - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( Field() ) id: int = Field() @@ -407,19 +415,19 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubMod url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( GitHubModel ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -429,19 +437,19 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePr url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( GitHubModel ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -451,44 +459,44 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPr 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(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( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "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_0827.py b/githubkit/versions/v2022_11_28/models/group_0827.py index e73f1dd18..3657b60e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0827.py +++ b/githubkit/versions/v2022_11_28/models/group_0827.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,484 +19,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0424 import EnterpriseWebhooks -from .group_0425 import SimpleInstallation -from .group_0426 import OrganizationSimpleWebhooks -from .group_0427 import RepositoryWebhooks -from .group_0432 import WebhooksWorkflow +from .group_0008 import Enterprise +from .group_0009 import IntegrationPropPermissions -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - 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.", + 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: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() + client_id: str = Field() + owner: Union[SimpleUser, Enterprise] = Field() + name: str = Field(description="The name of the GitHub app") 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() + external_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() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + events: list[str] = Field( + description="The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation." ) - 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" + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.", ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = 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(AppManifestsCodeConversionsPostResponse201) -__all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0828.py b/githubkit/versions/v2022_11_28/models/group_0828.py index 3657b60e5..d16ddbf37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0828.py +++ b/githubkit/versions/v2022_11_28/models/group_0828.py @@ -9,51 +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 githubkit.compat import ExtraGitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0008 import Enterprise -from .group_0009 import IntegrationPropPermissions +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" -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" - ) - node_id: str = Field() client_id: str = Field() - owner: Union[SimpleUser, Enterprise] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() - html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" - ) - events: list[str] = Field( - description="The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation." - ) - installations_count: Missing[int] = Field( - default=UNSET, - description="The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.", - ) client_secret: str = Field() webhook_secret: Union[str, None] = Field() pem: str = Field() -model_rebuild(AppManifestsCodeConversionsPostResponse201) +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("AppManifestsCodeConversionsPostResponse201",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0829.py b/githubkit/versions/v2022_11_28/models/group_0829.py index d16ddbf37..e86e478f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0829.py +++ b/githubkit/versions/v2022_11_28/models/group_0829.py @@ -13,18 +13,28 @@ 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 AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: 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(AppManifestsCodeConversionsPostResponse201Allof1) +model_rebuild(AppHookConfigPatchBody) -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) +__all__ = ("AppHookConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0830.py b/githubkit/versions/v2022_11_28/models/group_0830.py index e86e478f8..406984575 100644 --- a/githubkit/versions/v2022_11_28/models/group_0830.py +++ b/githubkit/versions/v2022_11_28/models/group_0830.py @@ -9,32 +9,13 @@ 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 AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" - 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) +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" -model_rebuild(AppHookConfigPatchBody) +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0831.py b/githubkit/versions/v2022_11_28/models/group_0831.py index 406984575..90930f652 100644 --- a/githubkit/versions/v2022_11_28/models/group_0831.py +++ b/githubkit/versions/v2022_11_28/models/group_0831.py @@ -9,13 +9,33 @@ 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_0017 import AppPermissions + +class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): + """AppInstallationsInstallationIdAccessTokensPostBody""" -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + 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(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0832.py b/githubkit/versions/v2022_11_28/models/group_0832.py index 90930f652..33e9e3dcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0832.py +++ b/githubkit/versions/v2022_11_28/models/group_0832.py @@ -12,30 +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_0017 import AppPermissions +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" - - 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.", + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(ApplicationsClientIdGrantDeleteBody) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0833.py b/githubkit/versions/v2022_11_28/models/group_0833.py index 33e9e3dcc..13773092a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0833.py +++ b/githubkit/versions/v2022_11_28/models/group_0833.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(ApplicationsClientIdGrantDeleteBody) +model_rebuild(ApplicationsClientIdTokenPostBody) -__all__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ("ApplicationsClientIdTokenPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0834.py b/githubkit/versions/v2022_11_28/models/group_0834.py index 13773092a..585475cf4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0834.py +++ b/githubkit/versions/v2022_11_28/models/group_0834.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(ApplicationsClientIdTokenPostBody) +model_rebuild(ApplicationsClientIdTokenDeleteBody) -__all__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0835.py b/githubkit/versions/v2022_11_28/models/group_0835.py index 585475cf4..a2c5766c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0835.py +++ b/githubkit/versions/v2022_11_28/models/group_0835.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ("ApplicationsClientIdTokenPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0836.py b/githubkit/versions/v2022_11_28/models/group_0836.py index a2c5766c1..86bfc32e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0836.py +++ b/githubkit/versions/v2022_11_28/models/group_0836.py @@ -12,16 +12,41 @@ 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 ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" + +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + 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(ApplicationsClientIdTokenPatchBody) +model_rebuild(ApplicationsClientIdTokenScopedPostBody) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0837.py b/githubkit/versions/v2022_11_28/models/group_0837.py index 86bfc32e8..b92fcfb34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0837.py +++ b/githubkit/versions/v2022_11_28/models/group_0837.py @@ -11,42 +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_0017 import AppPermissions +class CredentialsRevokePostBody(GitHubModel): + """CredentialsRevokePostBody""" -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.", + credentials: list[str] = Field( + max_length=1000 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="A list of credentials to be revoked, up to 1000 per request.", ) -model_rebuild(ApplicationsClientIdTokenScopedPostBody) +model_rebuild(CredentialsRevokePostBody) -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) +__all__ = ("CredentialsRevokePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0838.py b/githubkit/versions/v2022_11_28/models/group_0838.py index b92fcfb34..152fcb757 100644 --- a/githubkit/versions/v2022_11_28/models/group_0838.py +++ b/githubkit/versions/v2022_11_28/models/group_0838.py @@ -9,21 +9,13 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -class CredentialsRevokePostBody(GitHubModel): - """CredentialsRevokePostBody""" - credentials: list[str] = Field( - max_length=1000 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="A list of credentials to be revoked, up to 1000 per request.", - ) +model_rebuild(EmojisGetResponse200) - -model_rebuild(CredentialsRevokePostBody) - -__all__ = ("CredentialsRevokePostBody",) +__all__ = ("EmojisGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0839.py b/githubkit/versions/v2022_11_28/models/group_0839.py index 152fcb757..29b5c1427 100644 --- a/githubkit/versions/v2022_11_28/models/group_0839.py +++ b/githubkit/versions/v2022_11_28/models/group_0839.py @@ -9,13 +9,149 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Literal, Union +from pydantic import Field -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0029 import CodeScanningOptions +from .group_0030 import CodeScanningDefaultSetupOptions -model_rebuild(EmojisGetResponse200) -__all__ = ("EmojisGetResponse200",) +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the enterprise." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.\n\n> [!WARNING]\n> `code_security` and `secret_protection` are deprecated values for this field. Prefer the individual `code_security` and `secret_protection` fields to set the status of these features.\n", + ) + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Code Security features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_options: Missing[Union[CodeScanningOptions, None]] = Field( + default=UNSET, + description="Security Configuration feature options for code scanning", + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Secret Protection features.", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) + +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0840.py b/githubkit/versions/v2022_11_28/models/group_0840.py index d158934a3..591424d42 100644 --- a/githubkit/versions/v2022_11_28/models/group_0840.py +++ b/githubkit/versions/v2022_11_28/models/group_0840.py @@ -17,23 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0029 import CodeScanningDefaultSetupOptions +from .group_0030 import CodeScanningDefaultSetupOptions -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - name: str = Field( - description="The name of the code security configuration. Must be unique within the enterprise." + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique across the enterprise.", ) - description: str = Field( - max_length=255, description="A description of the code security configuration" + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", ) advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = Field( default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.\n\n> [!WARNING]\n> `code_security` and `secret_protection` are deprecated values for this field. Prefer the individual `code_security` and `secret_protection` fields to set the status of these features.\n", + ) + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Code Security features.", ) dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( default=UNSET, description="The enablement status of Dependency Graph" @@ -45,7 +54,7 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): description="The enablement status of Automatic dependency submission", ) dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions ] = Field( default=UNSET, description="Feature options for Automatic dependency submission" ) @@ -75,6 +84,10 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): default=UNSET, description="The enablement status of code scanning delegated alert dismissal", ) + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Secret Protection features.", + ) secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( default=UNSET, description="The enablement status of secret scanning" ) @@ -94,7 +107,7 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): Literal["enabled", "disabled", "not_set"] ] = Field( default=UNSET, - description="The enablement status of secret scanning non provider patterns", + description="The enablement status of secret scanning non-provider patterns", ) secret_scanning_generic_secrets: Missing[ Literal["enabled", "disabled", "not_set"] @@ -118,11 +131,11 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): ) -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions Feature options for Automatic dependency submission """ @@ -133,12 +146,12 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraph ) -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions ) __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0841.py b/githubkit/versions/v2022_11_28/models/group_0841.py index 5c5c84dc5..e3ab1c255 100644 --- a/githubkit/versions/v2022_11_28/models/group_0841.py +++ b/githubkit/versions/v2022_11_28/models/group_0841.py @@ -9,141 +9,27 @@ 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_0029 import CodeScanningDefaultSetupOptions - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique across the enterprise.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + scope: Literal["all", "all_without_configurations"] = Field( + description="The type of repositories to attach the configuration to." ) -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody ) __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0842.py b/githubkit/versions/v2022_11_28/models/group_0842.py index e3ab1c255..d990f81b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0842.py +++ b/githubkit/versions/v2022_11_28/models/group_0842.py @@ -14,22 +14,27 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - scope: Literal["all", "all_without_configurations"] = Field( - description="The type of repositories to attach the configuration to." + 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( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody ) __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0843.py b/githubkit/versions/v2022_11_28/models/group_0843.py index d990f81b8..f0a4b8cc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0843.py +++ b/githubkit/versions/v2022_11_28/models/group_0843.py @@ -17,24 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0028 import CodeSecurityConfiguration -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ 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.", + 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( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 ) __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0844.py b/githubkit/versions/v2022_11_28/models/group_0844.py index f0a4b8cc3..06d3ecaf9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0844.py +++ b/githubkit/versions/v2022_11_28/models/group_0844.py @@ -9,39 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0028 import CodeSecurityConfiguration - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specifies which types of repository this security configuration is applied to by default.", - ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" - ) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 -) +model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", -) +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) diff --git a/githubkit/versions/v2022_11_28/models/group_0845.py b/githubkit/versions/v2022_11_28/models/group_0845.py index 06d3ecaf9..199114879 100644 --- a/githubkit/versions/v2022_11_28/models/group_0845.py +++ b/githubkit/versions/v2022_11_28/models/group_0845.py @@ -9,21 +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 EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" +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 + + Names and content for the files that make up the gist - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ -model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) +__all__ = ( + "GistsPostBody", + "GistsPostBodyPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0846.py b/githubkit/versions/v2022_11_28/models/group_0846.py index 199114879..3d4986472 100644 --- a/githubkit/versions/v2022_11_28/models/group_0846.py +++ b/githubkit/versions/v2022_11_28/models/group_0846.py @@ -9,41 +9,35 @@ from __future__ import annotations -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 -class GistsPostBody(GitHubModel): - """GistsPostBody""" +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" - 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) + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" - Names and content for the files that make up the gist + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} - """ - -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) __all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0847.py b/githubkit/versions/v2022_11_28/models/group_0847.py index 3d4986472..4c7da0217 100644 --- a/githubkit/versions/v2022_11_28/models/group_0847.py +++ b/githubkit/versions/v2022_11_28/models/group_0847.py @@ -9,35 +9,46 @@ 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 GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" + + 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`.", + ) + - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +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`. -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" + 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`. - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) __all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0848.py b/githubkit/versions/v2022_11_28/models/group_0848.py index 4c7da0217..4da522baf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0848.py +++ b/githubkit/versions/v2022_11_28/models/group_0848.py @@ -11,44 +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 GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" - 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`.", - ) + body: str = Field(max_length=65535, description="The comment text.") -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles +model_rebuild(GistsGistIdCommentsPostBody) - 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__ = ( - "GistsGistIdPatchBody", - "GistsGistIdPatchBodyPropFiles", -) +__all__ = ("GistsGistIdCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0849.py b/githubkit/versions/v2022_11_28/models/group_0849.py index 4da522baf..6b63828a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0849.py +++ b/githubkit/versions/v2022_11_28/models/group_0849.py @@ -14,12 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(GistsGistIdCommentsPostBody) +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) -__all__ = ("GistsGistIdCommentsPostBody",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0850.py b/githubkit/versions/v2022_11_28/models/group_0850.py index 6b63828a9..c642ead3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0850.py +++ b/githubkit/versions/v2022_11_28/models/group_0850.py @@ -9,17 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" - - body: str = Field(max_length=65535, description="The comment text.") +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild(GistsGistIdStarGetResponse404) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ("GistsGistIdStarGetResponse404",) diff --git a/githubkit/versions/v2022_11_28/models/group_0851.py b/githubkit/versions/v2022_11_28/models/group_0851.py index c642ead3b..31a724d8d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0851.py +++ b/githubkit/versions/v2022_11_28/models/group_0851.py @@ -9,13 +9,23 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0020 import Repository + +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" + total_count: int = Field() + repositories: list[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) -model_rebuild(GistsGistIdStarGetResponse404) +model_rebuild(InstallationRepositoriesGetResponse200) -__all__ = ("GistsGistIdStarGetResponse404",) +__all__ = ("InstallationRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0852.py b/githubkit/versions/v2022_11_28/models/group_0852.py index 31a724d8d..d2f8fe721 100644 --- a/githubkit/versions/v2022_11_28/models/group_0852.py +++ b/githubkit/versions/v2022_11_28/models/group_0852.py @@ -9,23 +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_0020 import Repository - -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" - total_count: int = Field() - repositories: list[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) + 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(InstallationRepositoriesGetResponse200) +model_rebuild(MarkdownPostBody) -__all__ = ("InstallationRepositoriesGetResponse200",) +__all__ = ("MarkdownPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0853.py b/githubkit/versions/v2022_11_28/models/group_0853.py index d2f8fe721..a88d20422 100644 --- a/githubkit/versions/v2022_11_28/models/group_0853.py +++ b/githubkit/versions/v2022_11_28/models/group_0853.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,19 +18,18 @@ from githubkit.utils import UNSET -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" - 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( + last_read_at: Missing[datetime] = Field( default=UNSET, - description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", + description="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(MarkdownPostBody) +model_rebuild(NotificationsPutBody) -__all__ = ("MarkdownPostBody",) +__all__ = ("NotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0854.py b/githubkit/versions/v2022_11_28/models/group_0854.py index a88d20422..671e9e3a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0854.py +++ b/githubkit/versions/v2022_11_28/models/group_0854.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,18 +16,12 @@ from githubkit.utils import UNSET -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" - 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." - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(NotificationsPutBody) +model_rebuild(NotificationsPutResponse202) -__all__ = ("NotificationsPutBody",) +__all__ = ("NotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0855.py b/githubkit/versions/v2022_11_28/models/group_0855.py index 671e9e3a2..0d1f3d378 100644 --- a/githubkit/versions/v2022_11_28/models/group_0855.py +++ b/githubkit/versions/v2022_11_28/models/group_0855.py @@ -16,12 +16,14 @@ from githubkit.utils import UNSET -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - message: Missing[str] = Field(default=UNSET) + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." + ) -model_rebuild(NotificationsPutResponse202) +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) -__all__ = ("NotificationsPutResponse202",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0856.py b/githubkit/versions/v2022_11_28/models/group_0856.py index 0d1f3d378..03057a804 100644 --- a/githubkit/versions/v2022_11_28/models/group_0856.py +++ b/githubkit/versions/v2022_11_28/models/group_0856.py @@ -16,14 +16,21 @@ from githubkit.utils import UNSET -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class OrganizationsOrgDependabotRepositoryAccessPatchBody(GitHubModel): + """OrganizationsOrgDependabotRepositoryAccessPatchBody - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." + Examples: + {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} + """ + + repository_ids_to_add: Missing[list[int]] = Field( + default=UNSET, description="List of repository IDs to add." + ) + repository_ids_to_remove: Missing[list[int]] = Field( + default=UNSET, description="List of repository IDs to remove." ) -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(OrganizationsOrgDependabotRepositoryAccessPatchBody) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0857.py b/githubkit/versions/v2022_11_28/models/group_0857.py index 03057a804..8e801b382 100644 --- a/githubkit/versions/v2022_11_28/models/group_0857.py +++ b/githubkit/versions/v2022_11_28/models/group_0857.py @@ -9,28 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class OrganizationsOrgDependabotRepositoryAccessPatchBody(GitHubModel): - """OrganizationsOrgDependabotRepositoryAccessPatchBody - Examples: - {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} - """ +class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody(GitHubModel): + """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" - repository_ids_to_add: Missing[list[int]] = Field( - default=UNSET, description="List of repository IDs to add." - ) - repository_ids_to_remove: Missing[list[int]] = Field( - default=UNSET, description="List of repository IDs to remove." + default_level: Literal["public", "internal"] = Field( + description="The default repository access level for Dependabot updates." ) -model_rebuild(OrganizationsOrgDependabotRepositoryAccessPatchBody) +model_rebuild(OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody) -__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBody",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0858.py b/githubkit/versions/v2022_11_28/models/group_0858.py index 8e801b382..ba21baf7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0858.py +++ b/githubkit/versions/v2022_11_28/models/group_0858.py @@ -14,16 +14,127 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody(GitHubModel): - """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" - default_level: Literal["public", "internal"] = Field( - description="The default repository access level for Dependabot updates." + billing_email: Missing[str] = Field( + default=UNSET, + description="Billing email address. This address is not publicized.", + ) + company: Missing[str] = Field(default=UNSET, description="The company name.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address." + ) + twitter_username: Missing[str] = Field( + default=UNSET, description="The Twitter username of the company." + ) + location: Missing[str] = Field(default=UNSET, description="The location.") + name: Missing[str] = Field( + default=UNSET, description="The shorthand name of the company." + ) + description: Missing[str] = Field( + default=UNSET, + description="The description of the company. The maximum size is 160 characters.", + ) + has_organization_projects: Missing[bool] = Field( + default=UNSET, + description="Whether an organization can use organization projects.", + ) + has_repository_projects: Missing[bool] = Field( + default=UNSET, + description="Whether repositories that belong to the organization can use repository projects.", + ) + default_repository_permission: Missing[ + Literal["read", "write", "admin", "none"] + ] = Field( + default=UNSET, + description="Default permission level members have for organization repositories.", + ) + members_can_create_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", + ) + members_can_create_internal_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_private_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_public_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_allowed_repository_creation_type: Missing[ + Literal["all", "private", "none"] + ] = Field( + default=UNSET, + description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", + ) + members_can_create_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_public_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_private_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_fork_private_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can fork private organization repositories.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", + ) + blog: Missing[str] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[str] = Field( + default=UNSET, + description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", + ) + deploy_keys_enabled_for_repositories: Missing[bool] = Field( + default=UNSET, + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", ) -model_rebuild(OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody",) +__all__ = ("OrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0859.py b/githubkit/versions/v2022_11_28/models/group_0859.py index ba21baf7e..83117a7e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0859.py +++ b/githubkit/versions/v2022_11_28/models/group_0859.py @@ -9,132 +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 OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - 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.", + 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." ) - 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.", + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." ) - 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.", + active_caches_count: int = Field( + description="The number of active caches in the repository." ) -model_rebuild(OrgsOrgPatchBody) +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) -__all__ = ("OrgsOrgPatchBody",) +__all__ = ( + "ActionsCacheUsageByRepository", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0860.py b/githubkit/versions/v2022_11_28/models/group_0860.py index 83117a7e2..7135cf161 100644 --- a/githubkit/versions/v2022_11_28/models/group_0860.py +++ b/githubkit/versions/v2022_11_28/models/group_0860.py @@ -13,35 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0072 import ActionsHostedRunner -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int = Field() - repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() - - -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository +class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersGetResponse200""" - 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() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) -__all__ = ( - "ActionsCacheUsageByRepository", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", -) +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0861.py b/githubkit/versions/v2022_11_28/models/group_0861.py index 10a3e9315..1517fb1db 100644 --- a/githubkit/versions/v2022_11_28/models/group_0861.py +++ b/githubkit/versions/v2022_11_28/models/group_0861.py @@ -9,20 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgActionsHostedRunnersPostBody(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBody""" + + name: str = Field( + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( + description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." + ) + size: str = Field( + description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" + ) + runner_group_id: int = Field( + description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) -from .group_0070 import ActionsHostedRunner +class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBodyPropImage -class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersGetResponse200""" + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ - total_count: int = Field() - runners: list[ActionsHostedRunner] = Field() + id: Missing[str] = Field( + default=UNSET, description="The unique identifier of the runner image." + ) + source: Missing[Literal["github", "partner", "custom"]] = Field( + default=UNSET, description="The source of the runner image." + ) -model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersPostBody) +model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) -__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0862.py b/githubkit/versions/v2022_11_28/models/group_0862.py index 1517fb1db..3726a2157 100644 --- a/githubkit/versions/v2022_11_28/models/group_0862.py +++ b/githubkit/versions/v2022_11_28/models/group_0862.py @@ -9,59 +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 OrgsOrgActionsHostedRunnersPostBody(GitHubModel): - """OrgsOrgActionsHostedRunnersPostBody""" - - name: str = Field( - description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." - ) - image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( - description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." - ) - size: str = Field( - description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" - ) - runner_group_id: int = Field( - description="The existing runner group to add this runner to." - ) - maximum_runners: Missing[int] = Field( - default=UNSET, - description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", - ) - enable_static_ip: Missing[bool] = Field( - default=UNSET, - description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", - ) +from .group_0073 import ActionsHostedRunnerImage -class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): - """OrgsOrgActionsHostedRunnersPostBodyPropImage - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" - 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." - ) + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(OrgsOrgActionsHostedRunnersPostBody) -model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) +model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) -__all__ = ( - "OrgsOrgActionsHostedRunnersPostBody", - "OrgsOrgActionsHostedRunnersPostBodyPropImage", -) +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0863.py b/githubkit/versions/v2022_11_28/models/group_0863.py index 22312cb1f..80a3fae34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0863.py +++ b/githubkit/versions/v2022_11_28/models/group_0863.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0071 import ActionsHostedRunnerImage +from .group_0073 import ActionsHostedRunnerImage -class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" total_count: int = Field() images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) -__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0864.py b/githubkit/versions/v2022_11_28/models/group_0864.py index eae8205bf..eb701b3bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0864.py +++ b/githubkit/versions/v2022_11_28/models/group_0864.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0071 import ActionsHostedRunnerImage +from .group_0071 import ActionsHostedRunnerMachineSpec -class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" total_count: int = Field() - images: list[ActionsHostedRunnerImage] = Field() + machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() -model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) -__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0865.py b/githubkit/versions/v2022_11_28/models/group_0865.py index 59c8dda22..1a2bc561d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0865.py +++ b/githubkit/versions/v2022_11_28/models/group_0865.py @@ -13,16 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0069 import ActionsHostedRunnerMachineSpec - -class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" total_count: int = Field() - machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() + platforms: list[str] = Field() -model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) -__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0866.py b/githubkit/versions/v2022_11_28/models/group_0866.py index 1a2bc561d..281f91f96 100644 --- a/githubkit/versions/v2022_11_28/models/group_0866.py +++ b/githubkit/versions/v2022_11_28/models/group_0866.py @@ -12,15 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" - total_count: int = Field() - platforms: list[str] = Field() + 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`", + ) -model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) -__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0867.py b/githubkit/versions/v2022_11_28/models/group_0867.py index 281f91f96..5069b6316 100644 --- a/githubkit/versions/v2022_11_28/models/group_0867.py +++ b/githubkit/versions/v2022_11_28/models/group_0867.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,18 @@ from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): - """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" - 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.", + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." ) - enable_static_ip: Missing[bool] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) +model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) +__all__ = ("OrgsOrgActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0868.py b/githubkit/versions/v2022_11_28/models/group_0868.py index 5069b6316..422588e8f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0868.py +++ b/githubkit/versions/v2022_11_28/models/group_0868.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0020 import Repository -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + total_count: float = Field() + repositories: list[Repository] = Field() -model_rebuild(OrgsOrgActionsPermissionsPutBody) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0869.py b/githubkit/versions/v2022_11_28/models/group_0869.py index 422588e8f..a77afe01a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0869.py +++ b/githubkit/versions/v2022_11_28/models/group_0869.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0020 import Repository +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + selected_repository_ids: list[int] = Field( + description="List of repository IDs to enable for GitHub Actions." + ) - total_count: float = Field() - repositories: list[Repository] = Field() +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0870.py b/githubkit/versions/v2022_11_28/models/group_0870.py index a77afe01a..269bdfc1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0870.py +++ b/githubkit/versions/v2022_11_28/models/group_0870.py @@ -12,16 +12,55 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsGetResponse200""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs to enable for GitHub Actions." + total_count: float = Field() + runner_groups: list[RunnerGroupsOrg] = Field() + + +class RunnerGroupsOrg(GitHubModel): + """RunnerGroupsOrg""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", + ) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + inherited: bool = Field() + inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsOrg) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200", + "RunnerGroupsOrg", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0871.py b/githubkit/versions/v2022_11_28/models/group_0871.py index 269bdfc1b..87ecde816 100644 --- a/githubkit/versions/v2022_11_28/models/group_0871.py +++ b/githubkit/versions/v2022_11_28/models/group_0871.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,36 +18,24 @@ from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsGetResponse200""" - - total_count: float = Field() - runner_groups: list[RunnerGroupsOrg] = Field() - +class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsPostBody""" -class RunnerGroupsOrg(GitHubModel): - """RunnerGroupsOrg""" - - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_repositories_url: Missing[str] = Field( + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( default=UNSET, - description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", + description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", ) - runners_url: str = Field() - hosted_runners_url: Missing[str] = Field(default=UNSET) - network_configuration_id: Missing[str] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The identifier of a hosted compute network configuration.", + description="List of repository IDs that can access the runner group.", ) - inherited: bool = Field() - inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( + 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="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + description="Whether the runner group can be used by `public` repositories.", ) restricted_to_workflows: Missing[bool] = Field( default=UNSET, @@ -55,12 +45,12 @@ class RunnerGroupsOrg(GitHubModel): 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(OrgsOrgActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsOrg) +model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200", - "RunnerGroupsOrg", -) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0872.py b/githubkit/versions/v2022_11_28/models/group_0872.py index 87ecde816..adc28b4f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0872.py +++ b/githubkit/versions/v2022_11_28/models/group_0872.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,20 +18,13 @@ from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsPostBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" name: str = Field(description="Name of the runner group.") visibility: Missing[Literal["selected", "all", "private"]] = Field( default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or 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." + 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, @@ -45,12 +38,12 @@ class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): 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( + network_configuration_id: Missing[Union[str, None]] = Field( default=UNSET, description="The identifier of a hosted compute network configuration.", ) -model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) -__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0873.py b/githubkit/versions/v2022_11_28/models/group_0873.py index adc28b4f8..ab77a2e86 100644 --- a/githubkit/versions/v2022_11_28/models/group_0873.py +++ b/githubkit/versions/v2022_11_28/models/group_0873.py @@ -9,41 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - network_configuration_id: Missing[Union[str, None]] = Field( - default=UNSET, - description="The identifier of a hosted compute network configuration.", - ) - - -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) + +from .group_0072 import ActionsHostedRunner + + +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + + total_count: float = Field() + runners: list[ActionsHostedRunner] = Field() + + +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0874.py b/githubkit/versions/v2022_11_28/models/group_0874.py index 716d872df..92d311372 100644 --- a/githubkit/versions/v2022_11_28/models/group_0874.py +++ b/githubkit/versions/v2022_11_28/models/group_0874.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0070 import ActionsHostedRunner +from .group_0063 import MinimalRepository -class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" total_count: float = Field() - runners: list[ActionsHostedRunner] = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0875.py b/githubkit/versions/v2022_11_28/models/group_0875.py index faccf3374..9316f516b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0875.py +++ b/githubkit/versions/v2022_11_28/models/group_0875.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import MinimalRepository +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + selected_repository_ids: list[int] = Field( + description="List of repository IDs that can access the runner group." + ) - total_count: float = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0876.py b/githubkit/versions/v2022_11_28/models/group_0876.py index 9316f516b..335ed2d83 100644 --- a/githubkit/versions/v2022_11_28/models/group_0876.py +++ b/githubkit/versions/v2022_11_28/models/group_0876.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0081 import Runner -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs that can access the runner group." - ) +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0877.py b/githubkit/versions/v2022_11_28/models/group_0877.py index 5a253b1b5..fdc59a741 100644 --- a/githubkit/versions/v2022_11_28/models/group_0877.py +++ b/githubkit/versions/v2022_11_28/models/group_0877.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import Runner +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + runners: list[int] = Field( + description="List of runner IDs to add to the runner group." + ) - total_count: float = Field() - runners: list[Runner] = Field() +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0878.py b/githubkit/versions/v2022_11_28/models/group_0878.py index fdc59a741..a7e9f45ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0878.py +++ b/githubkit/versions/v2022_11_28/models/group_0878.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0081 import Runner -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] = Field( - description="List of runner IDs to add to the runner group." - ) +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" + total_count: int = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +model_rebuild(OrgsOrgActionsRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0879.py b/githubkit/versions/v2022_11_28/models/group_0879.py index 52cf14c4b..f7baba749 100644 --- a/githubkit/versions/v2022_11_28/models/group_0879.py +++ b/githubkit/versions/v2022_11_28/models/group_0879.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_0079 import Runner +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" + 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() - runners: list[Runner] = Field() +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -model_rebuild(OrgsOrgActionsRunnersGetResponse200) - -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0880.py b/githubkit/versions/v2022_11_28/models/group_0880.py index f7baba749..e334cec29 100644 --- a/githubkit/versions/v2022_11_28/models/group_0880.py +++ b/githubkit/versions/v2022_11_28/models/group_0880.py @@ -11,29 +11,22 @@ 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_0081 import Runner -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - 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.", +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" + + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." ) -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0881.py b/githubkit/versions/v2022_11_28/models/group_0881.py index f942c1cf4..99b8dcca1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0881.py +++ b/githubkit/versions/v2022_11_28/models/group_0881.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import Runner +from .group_0080 import RunnerLabel -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" - ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." - ) + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0882.py b/githubkit/versions/v2022_11_28/models/group_0882.py index 05e9df822..ad2f375a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0882.py +++ b/githubkit/versions/v2022_11_28/models/group_0882.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 RunnerLabel +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) - total_count: int = Field() - labels: list[RunnerLabel] = Field() +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) - -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0883.py b/githubkit/versions/v2022_11_28/models/group_0883.py index ad2f375a8..f5caa1c57 100644 --- a/githubkit/versions/v2022_11_28/models/group_0883.py +++ b/githubkit/versions/v2022_11_28/models/group_0883.py @@ -14,15 +14,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" 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.", + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0884.py b/githubkit/versions/v2022_11_28/models/group_0884.py index f5caa1c57..59f78af77 100644 --- a/githubkit/versions/v2022_11_28/models/group_0884.py +++ b/githubkit/versions/v2022_11_28/models/group_0884.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_0080 import RunnerLabel -class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) + +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0885.py b/githubkit/versions/v2022_11_28/models/group_0885.py index 7f69acfff..80c1e6af7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0885.py +++ b/githubkit/versions/v2022_11_28/models/group_0885.py @@ -9,20 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0078 import RunnerLabel +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" +class OrgsOrgActionsSecretsGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsGetResponse200""" total_count: int = Field() - labels: list[RunnerLabel] = 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(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) +__all__ = ( + "OrganizationActionsSecret", + "OrgsOrgActionsSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0886.py b/githubkit/versions/v2022_11_28/models/group_0886.py index 80c1e6af7..041a38bd4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0886.py +++ b/githubkit/versions/v2022_11_28/models/group_0886.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,32 +18,23 @@ from githubkit.utils import UNSET -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" - 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() + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" + 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.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ( - "OrganizationActionsSecret", - "OrgsOrgActionsSecretsGetResponse200", -) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0887.py b/githubkit/versions/v2022_11_28/models/group_0887.py index 041a38bd4..2fa7eacfe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0887.py +++ b/githubkit/versions/v2022_11_28/models/group_0887.py @@ -9,32 +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_0063 import MinimalRepository -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0888.py b/githubkit/versions/v2022_11_28/models/group_0888.py index f0d03db0a..a609a0c6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0888.py +++ b/githubkit/versions/v2022_11_28/models/group_0888.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import MinimalRepository +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + 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." + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0889.py b/githubkit/versions/v2022_11_28/models/group_0889.py index a609a0c6d..77241a9f2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0889.py +++ b/githubkit/versions/v2022_11_28/models/group_0889.py @@ -9,19 +9,47 @@ 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 OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [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." + 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(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +__all__ = ( + "OrganizationActionsVariable", + "OrgsOrgActionsVariablesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0890.py b/githubkit/versions/v2022_11_28/models/group_0890.py index 77241a9f2..42955f682 100644 --- a/githubkit/versions/v2022_11_28/models/group_0890.py +++ b/githubkit/versions/v2022_11_28/models/group_0890.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,37 +18,20 @@ 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 - - Organization variable for GitHub Actions. - """ +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" 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" + 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`.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ( - "OrganizationActionsVariable", - "OrgsOrgActionsVariablesGetResponse200", -) +__all__ = ("OrgsOrgActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0891.py b/githubkit/versions/v2022_11_28/models/group_0891.py index 42955f682..f229885c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0891.py +++ b/githubkit/versions/v2022_11_28/models/group_0891.py @@ -18,13 +18,14 @@ from githubkit.utils import UNSET -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." + name: 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, @@ -32,6 +33,6 @@ class OrgsOrgActionsVariablesPostBody(GitHubModel): ) -model_rebuild(OrgsOrgActionsVariablesPostBody) +model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0892.py b/githubkit/versions/v2022_11_28/models/group_0892.py index f229885c2..dfea824d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0892.py +++ b/githubkit/versions/v2022_11_28/models/group_0892.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_0063 import MinimalRepository -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - 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() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0893.py b/githubkit/versions/v2022_11_28/models/group_0893.py index 6d081f04c..4c5d80233 100644 --- a/githubkit/versions/v2022_11_28/models/group_0893.py +++ b/githubkit/versions/v2022_11_28/models/group_0893.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import MinimalRepository +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + 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(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0894.py b/githubkit/versions/v2022_11_28/models/group_0894.py index 4c5d80233..c7f4b426e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0894.py +++ b/githubkit/versions/v2022_11_28/models/group_0894.py @@ -11,17 +11,25 @@ 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 OrgsOrgAttestationsBulkListPostBody(GitHubModel): + """OrgsOrgAttestationsBulkListPostBody""" - selected_repository_ids: list[int] = Field( - description="The IDs of the repositories that can access the organization variable." + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests to fetch attestations for.", + ) + predicate_type: Missing[str] = Field( + default=UNSET, + description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", ) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) +model_rebuild(OrgsOrgAttestationsBulkListPostBody) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +__all__ = ("OrgsOrgAttestationsBulkListPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0895.py b/githubkit/versions/v2022_11_28/models/group_0895.py index c7f4b426e..33ac34ff1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0895.py +++ b/githubkit/versions/v2022_11_28/models/group_0895.py @@ -11,25 +11,57 @@ 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 OrgsOrgAttestationsBulkListPostBody(GitHubModel): - """OrgsOrgAttestationsBulkListPostBody""" +class OrgsOrgAttestationsBulkListPostResponse200(GitHubModel): + """OrgsOrgAttestationsBulkListPostResponse200""" - subject_digests: list[str] = Field( - max_length=1024 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="List of subject digests to fetch attestations for.", + attestations_subject_digests: Missing[ + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") + page_info: Missing[OrgsOrgAttestationsBulkListPostResponse200PropPageInfo] = Field( + default=UNSET, description="Information about the current page." ) - predicate_type: Missing[str] = Field( - default=UNSET, - description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", + + +class OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( + ExtraGitHubModel +): + """OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + + Mapping of subject digest to bundles. + """ + + +class OrgsOrgAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): + """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a next page." + ) + has_previous: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a previous page." + ) + next_: Missing[str] = Field( + default=UNSET, alias="next", description="The cursor to the next page." + ) + previous: Missing[str] = Field( + default=UNSET, description="The cursor to the previous page." ) -model_rebuild(OrgsOrgAttestationsBulkListPostBody) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropPageInfo) -__all__ = ("OrgsOrgAttestationsBulkListPostBody",) +__all__ = ( + "OrgsOrgAttestationsBulkListPostResponse200", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0896.py b/githubkit/versions/v2022_11_28/models/group_0896.py index 33ac34ff1..81f76cfb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0896.py +++ b/githubkit/versions/v2022_11_28/models/group_0896.py @@ -11,57 +11,19 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgAttestationsBulkListPostResponse200(GitHubModel): - """OrgsOrgAttestationsBulkListPostResponse200""" +class OrgsOrgAttestationsDeleteRequestPostBodyOneof0(GitHubModel): + """OrgsOrgAttestationsDeleteRequestPostBodyOneof0""" - attestations_subject_digests: Missing[ - OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests - ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") - page_info: Missing[OrgsOrgAttestationsBulkListPostResponse200PropPageInfo] = Field( - default=UNSET, description="Information about the current page." + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests associated with the artifact attestations to delete.", ) -class OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( - ExtraGitHubModel -): - """OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests +model_rebuild(OrgsOrgAttestationsDeleteRequestPostBodyOneof0) - Mapping of subject digest to bundles. - """ - - -class OrgsOrgAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): - """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo - - Information about the current page. - """ - - has_next: Missing[bool] = Field( - default=UNSET, description="Indicates whether there is a next page." - ) - has_previous: Missing[bool] = Field( - default=UNSET, description="Indicates whether there is a previous page." - ) - next_: Missing[str] = Field( - default=UNSET, alias="next", description="The cursor to the next page." - ) - previous: Missing[str] = Field( - default=UNSET, description="The cursor to the previous page." - ) - - -model_rebuild(OrgsOrgAttestationsBulkListPostResponse200) -model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests) -model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropPageInfo) - -__all__ = ( - "OrgsOrgAttestationsBulkListPostResponse200", - "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", - "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", -) +__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0897.py b/githubkit/versions/v2022_11_28/models/group_0897.py index 81f76cfb9..8e5ca4211 100644 --- a/githubkit/versions/v2022_11_28/models/group_0897.py +++ b/githubkit/versions/v2022_11_28/models/group_0897.py @@ -14,16 +14,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgAttestationsDeleteRequestPostBodyOneof0(GitHubModel): - """OrgsOrgAttestationsDeleteRequestPostBodyOneof0""" +class OrgsOrgAttestationsDeleteRequestPostBodyOneof1(GitHubModel): + """OrgsOrgAttestationsDeleteRequestPostBodyOneof1""" - subject_digests: list[str] = Field( + attestation_ids: list[int] = Field( max_length=1024 if PYDANTIC_V2 else None, min_length=1 if PYDANTIC_V2 else None, - description="List of subject digests associated with the artifact attestations to delete.", + description="List of unique IDs associated with the artifact attestations to delete.", ) -model_rebuild(OrgsOrgAttestationsDeleteRequestPostBodyOneof0) +model_rebuild(OrgsOrgAttestationsDeleteRequestPostBodyOneof1) -__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0",) +__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0898.py b/githubkit/versions/v2022_11_28/models/group_0898.py index 8e5ca4211..6f5195042 100644 --- a/githubkit/versions/v2022_11_28/models/group_0898.py +++ b/githubkit/versions/v2022_11_28/models/group_0898.py @@ -11,19 +11,84 @@ 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 OrgsOrgAttestationsDeleteRequestPostBodyOneof1(GitHubModel): - """OrgsOrgAttestationsDeleteRequestPostBodyOneof1""" +class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - attestation_ids: list[int] = Field( - max_length=1024 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="List of unique IDs associated with the artifact attestations to delete.", + 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(OrgsOrgAttestationsDeleteRequestPostBodyOneof1) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1",) +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0899.py b/githubkit/versions/v2022_11_28/models/group_0899.py index 6f5195042..9d7a74b47 100644 --- a/githubkit/versions/v2022_11_28/models/group_0899.py +++ b/githubkit/versions/v2022_11_28/models/group_0899.py @@ -9,86 +9,66 @@ 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 PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" +class OrgsOrgCampaignsPostBody(GitHubModel): + """OrgsOrgCampaignsPostBody""" - attestations: Missing[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) + name: str = Field( + min_length=1, max_length=50, description="The name of the campaign" + ) + description: str = Field( + min_length=1, max_length=255, description="A description for the campaign" + ) + managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", + ) + team_managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the teams to set as the campaign managers.", + ) + ends_at: datetime = Field( + description="The end date and time of the campaign. The date must be in the future." + ) + contact_link: Missing[Union[str, None]] = Field( + default=UNSET, description="The contact link of the campaign. Must be a URI." + ) + code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems] = ( + Field( + min_length=1 if PYDANTIC_V2 else None, + description="The code scanning alerts to include in this campaign", + ) + ) + generate_issues: Missing[bool] = Field( + default=UNSET, + description="If true, will automatically generate issues for the campaign. The default is false.", + ) -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" +class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems(GitHubModel): + """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - 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: int = Field(description="The repository id") + alert_numbers: list[int] = Field( + min_length=1 if PYDANTIC_V2 else None, description="The alert numbers" ) - 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(OrgsOrgCampaignsPostBody) +model_rebuild(OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems) __all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "OrgsOrgCampaignsPostBody", + "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0900.py b/githubkit/versions/v2022_11_28/models/group_0900.py index 9d7a74b47..8be946ada 100644 --- a/githubkit/versions/v2022_11_28/models/group_0900.py +++ b/githubkit/versions/v2022_11_28/models/group_0900.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,14 +19,20 @@ from githubkit.utils import UNSET -class OrgsOrgCampaignsPostBody(GitHubModel): - """OrgsOrgCampaignsPostBody""" +class OrgsOrgCampaignsCampaignNumberPatchBody(GitHubModel): + """OrgsOrgCampaignsCampaignNumberPatchBody""" - name: str = Field( - min_length=1, max_length=50, description="The name of the campaign" + name: Missing[str] = Field( + min_length=1, + max_length=50, + default=UNSET, + description="The name of the campaign", ) - description: str = Field( - min_length=1, max_length=255, description="A description for the campaign" + description: Missing[str] = Field( + min_length=1, + max_length=255, + default=UNSET, + description="A description for the campaign", ) managers: Missing[list[str]] = Field( max_length=10 if PYDANTIC_V2 else None, @@ -38,37 +44,20 @@ class OrgsOrgCampaignsPostBody(GitHubModel): default=UNSET, description="The slugs of the teams to set as the campaign managers.", ) - ends_at: datetime = Field( - description="The end date and time of the campaign. The date must be in the future." + ends_at: Missing[datetime] = Field( + default=UNSET, + description="The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) contact_link: Missing[Union[str, None]] = Field( default=UNSET, description="The contact link of the campaign. Must be a URI." ) - code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems] = ( - Field( - min_length=1 if PYDANTIC_V2 else None, - description="The code scanning alerts to include in this campaign", - ) - ) - generate_issues: Missing[bool] = Field( + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="If true, will automatically generate issues for the campaign. The default is false.", - ) - - -class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems(GitHubModel): - """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - - repository_id: int = Field(description="The repository id") - alert_numbers: list[int] = Field( - min_length=1 if PYDANTIC_V2 else None, description="The alert numbers" + title="Campaign state", + description="Indicates whether a campaign is open or closed", ) -model_rebuild(OrgsOrgCampaignsPostBody) -model_rebuild(OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems) +model_rebuild(OrgsOrgCampaignsCampaignNumberPatchBody) -__all__ = ( - "OrgsOrgCampaignsPostBody", - "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", -) +__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0901.py b/githubkit/versions/v2022_11_28/models/group_0901.py index 8be946ada..f75b572fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0901.py +++ b/githubkit/versions/v2022_11_28/models/group_0901.py @@ -9,55 +9,203 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0029 import CodeScanningOptions +from .group_0030 import CodeScanningDefaultSetupOptions -class OrgsOrgCampaignsCampaignNumberPatchBody(GitHubModel): - """OrgsOrgCampaignsCampaignNumberPatchBody""" - name: Missing[str] = Field( - min_length=1, - max_length=50, +class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the organization." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.\n\n> [!WARNING]\n> `code_security` and `secret_protection` are deprecated values for this field. Prefer the individual `code_security` and `secret_protection` fields to set the status of these features.\n", + ) + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Code Security features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_options: Missing[Union[CodeScanningOptions, None]] = Field( + default=UNSET, + description="Security Configuration feature options for code scanning", + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Secret Protection features.", + ) + 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 name of the campaign", + description="The enablement status of secret scanning push protection", ) - description: Missing[str] = Field( - min_length=1, - max_length=255, + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="A description for the campaign", + description="The enablement status of secret scanning delegated bypass", ) - managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions + ] = Field( default=UNSET, - description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", + description="Feature options for secret scanning delegated bypass", ) - team_managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="The slugs of the teams to set as the campaign managers.", + description="The enablement status of secret scanning validity checks", ) - ends_at: Missing[datetime] = Field( + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + description="The enablement status of secret scanning non provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" ) - contact_link: Missing[Union[str, None]] = Field( - default=UNSET, description="The contact link of the campaign. Must be a URI." + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", ) - state: Missing[Literal["open", "closed"]] = Field( + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - title="Campaign state", - description="Indicates whether a campaign is open or closed", + 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(OrgsOrgCampaignsCampaignNumberPatchBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0902.py b/githubkit/versions/v2022_11_28/models/group_0902.py index d06959346..87e1caff8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0902.py +++ b/githubkit/versions/v2022_11_28/models/group_0902.py @@ -9,190 +9,24 @@ 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_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", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - 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( + selected_repository_ids: Missing[list[int]] = Field( + max_length=1000 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + description="An array of repository IDs to detach from configurations. Up to 1000 IDs can be provided.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBody", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0903.py b/githubkit/versions/v2022_11_28/models/group_0903.py index 87e1caff8..8ade943d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0903.py +++ b/githubkit/versions/v2022_11_28/models/group_0903.py @@ -9,24 +9,201 @@ 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_0030 import CodeScanningDefaultSetupOptions + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.\n\n> [!WARNING]\n> `code_security` and `secret_protection` are deprecated values for this field. Prefer the individual `code_security` and `secret_protection` fields to set the status of these features.\n", + ) + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Code Security features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, + description="The enablement status of GitHub Secret Protection features.", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" + Feature options for Automatic dependency submission + """ - selected_repository_ids: Missing[list[int]] = Field( - max_length=1000 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, + labeled_runners: Missing[bool] = Field( default=UNSET, - description="An array of repository IDs to detach from configurations. Up to 1000 IDs can be provided.", + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0904.py b/githubkit/versions/v2022_11_28/models/group_0904.py index 829dfbaca..3e150ccc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0904.py +++ b/githubkit/versions/v2022_11_28/models/group_0904.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,185 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0029 import CodeScanningDefaultSetupOptions +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique within the organization.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" + 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`" ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + 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(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0905.py b/githubkit/versions/v2022_11_28/models/group_0905.py index 3e150ccc7..b47755cb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0905.py +++ b/githubkit/versions/v2022_11_28/models/group_0905.py @@ -18,20 +18,17 @@ from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] ] = 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`.", + description="Specify which types of repository this security configuration should be applied to by default.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0906.py b/githubkit/versions/v2022_11_28/models/group_0906.py index b47755cb5..caea12459 100644 --- a/githubkit/versions/v2022_11_28/models/group_0906.py +++ b/githubkit/versions/v2022_11_28/models/group_0906.py @@ -17,18 +17,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0028 import CodeSecurityConfiguration -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" 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.", + 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(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0907.py b/githubkit/versions/v2022_11_28/models/group_0907.py index caea12459..0feaf7897 100644 --- a/githubkit/versions/v2022_11_28/models/group_0907.py +++ b/githubkit/versions/v2022_11_28/models/group_0907.py @@ -9,33 +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_0028 import CodeSecurityConfiguration +from .group_0093 import Codespace -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" - 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" - ) + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) +model_rebuild(OrgsOrgCodespacesGetResponse200) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) +__all__ = ("OrgsOrgCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0908.py b/githubkit/versions/v2022_11_28/models/group_0908.py index a47dda17d..ed7cad665 100644 --- a/githubkit/versions/v2022_11_28/models/group_0908.py +++ b/githubkit/versions/v2022_11_28/models/group_0908.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 .group_0091 import Codespace +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" - total_count: int = Field() - codespaces: list[Codespace] = 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(OrgsOrgCodespacesGetResponse200) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0909.py b/githubkit/versions/v2022_11_28/models/group_0909.py index ed7cad665..7ae93c749 100644 --- a/githubkit/versions/v2022_11_28/models/group_0909.py +++ b/githubkit/versions/v2022_11_28/models/group_0909.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 -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - 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( + selected_usernames: list[str] = Field( max_length=100 if PYDANTIC_V2 else None, - default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + description="The usernames of the organization members whose codespaces be billed to the organization.", ) -model_rebuild(OrgsOrgCodespacesAccessPutBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0910.py b/githubkit/versions/v2022_11_28/models/group_0910.py index 7ae93c749..0c752f566 100644 --- a/githubkit/versions/v2022_11_28/models/group_0910.py +++ b/githubkit/versions/v2022_11_28/models/group_0910.py @@ -14,15 +14,15 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +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 be billed to the organization.", + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0911.py b/githubkit/versions/v2022_11_28/models/group_0911.py index 0c752f566..58a07d080 100644 --- a/githubkit/versions/v2022_11_28/models/group_0911.py +++ b/githubkit/versions/v2022_11_28/models/group_0911.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 PYDANTIC_V2, GitHubModel, model_rebuild +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 OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class CodespacesOrgSecret(GitHubModel): + """Codespaces Secret - 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.", + 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(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +__all__ = ( + "CodespacesOrgSecret", + "OrgsOrgCodespacesSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0912.py b/githubkit/versions/v2022_11_28/models/group_0912.py index 58a07d080..304fc911f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0912.py +++ b/githubkit/versions/v2022_11_28/models/group_0912.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,39 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - 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." + 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.", ) - updated_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." ) visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" + 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_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 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(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -__all__ = ( - "CodespacesOrgSecret", - "OrgsOrgCodespacesSecretsGetResponse200", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0913.py b/githubkit/versions/v2022_11_28/models/group_0913.py index 304fc911f..177de5aed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0913.py +++ b/githubkit/versions/v2022_11_28/models/group_0913.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_0063 import MinimalRepository -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0914.py b/githubkit/versions/v2022_11_28/models/group_0914.py index 0137b7744..2d9b67bf9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0914.py +++ b/githubkit/versions/v2022_11_28/models/group_0914.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import MinimalRepository +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + 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." + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0915.py b/githubkit/versions/v2022_11_28/models/group_0915.py index 2d9b67bf9..f9277a829 100644 --- a/githubkit/versions/v2022_11_28/models/group_0915.py +++ b/githubkit/versions/v2022_11_28/models/group_0915.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 OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." + selected_teams: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="List of team names within the organization to which to grant access to GitHub Copilot.", ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0916.py b/githubkit/versions/v2022_11_28/models/group_0916.py index f9277a829..225617267 100644 --- a/githubkit/versions/v2022_11_28/models/group_0916.py +++ b/githubkit/versions/v2022_11_28/models/group_0916.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 OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - 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.", - ) + The total number of seats created for members of the specified team(s). + """ + seats_created: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0917.py b/githubkit/versions/v2022_11_28/models/group_0917.py index 225617267..8f14a6e14 100644 --- a/githubkit/versions/v2022_11_28/models/group_0917.py +++ b/githubkit/versions/v2022_11_28/models/group_0917.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 -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - The total number of seats created for members of the specified team(s). - """ + 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.", + ) - seats_created: int = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0918.py b/githubkit/versions/v2022_11_28/models/group_0918.py index 8f14a6e14..137e9507f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0918.py +++ b/githubkit/versions/v2022_11_28/models/group_0918.py @@ -11,18 +11,19 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - 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.", - ) + The total number of seats set to "pending cancellation" for members of the + specified team(s). + """ + seats_cancelled: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0919.py b/githubkit/versions/v2022_11_28/models/group_0919.py index 137e9507f..6a10dd79f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0919.py +++ b/githubkit/versions/v2022_11_28/models/group_0919.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + 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.", + ) - seats_cancelled: int = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0920.py b/githubkit/versions/v2022_11_28/models/group_0920.py index 6a10dd79f..83f481941 100644 --- a/githubkit/versions/v2022_11_28/models/group_0920.py +++ b/githubkit/versions/v2022_11_28/models/group_0920.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - 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.", - ) + The total number of seats created for the specified user(s). + """ + seats_created: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0921.py b/githubkit/versions/v2022_11_28/models/group_0921.py index 83f481941..270057c2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0921.py +++ b/githubkit/versions/v2022_11_28/models/group_0921.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 -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - The total number of seats created for the specified user(s). - """ + 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.", + ) - seats_created: int = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0922.py b/githubkit/versions/v2022_11_28/models/group_0922.py index 270057c2e..ac7addbd5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0922.py +++ b/githubkit/versions/v2022_11_28/models/group_0922.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 OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - 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.", - ) + The total number of seats set to "pending cancellation" for the specified users. + """ + seats_cancelled: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0923.py b/githubkit/versions/v2022_11_28/models/group_0923.py index ac7addbd5..a96d49f72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0923.py +++ b/githubkit/versions/v2022_11_28/models/group_0923.py @@ -9,20 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[OrganizationDependabotSecret] = Field() -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization - The total number of seats set to "pending cancellation" for the specified users. + Secrets for GitHub Dependabot for an organization. """ - seats_cancelled: int = Field() + 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(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ( + "OrganizationDependabotSecret", + "OrgsOrgDependabotSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0924.py b/githubkit/versions/v2022_11_28/models/group_0924.py index a96d49f72..b5104167e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0924.py +++ b/githubkit/versions/v2022_11_28/models/group_0924.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,32 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - total_count: int = Field() - secrets: list[OrganizationDependabotSecret] = Field() - - -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization - - Secrets for GitHub Dependabot for an organization. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + 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="Visibility of a secret" + 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_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ( - "OrganizationDependabotSecret", - "OrgsOrgDependabotSecretsGetResponse200", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0925.py b/githubkit/versions/v2022_11_28/models/group_0925.py index b5104167e..5042197c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0925.py +++ b/githubkit/versions/v2022_11_28/models/group_0925.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_0063 import MinimalRepository -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[list[str]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0926.py b/githubkit/versions/v2022_11_28/models/group_0926.py index db89df00e..15b212958 100644 --- a/githubkit/versions/v2022_11_28/models/group_0926.py +++ b/githubkit/versions/v2022_11_28/models/group_0926.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import MinimalRepository +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + 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." + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0927.py b/githubkit/versions/v2022_11_28/models/group_0927.py index 15b212958..aeb2eb590 100644 --- a/githubkit/versions/v2022_11_28/models/group_0927.py +++ b/githubkit/versions/v2022_11_28/models/group_0927.py @@ -9,19 +9,56 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." + ) + 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.", + ) - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." + +class 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(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +__all__ = ( + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0928.py b/githubkit/versions/v2022_11_28/models/group_0928.py index aeb2eb590..8f5b0def4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0928.py +++ b/githubkit/versions/v2022_11_28/models/group_0928.py @@ -18,25 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." + 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. Set to `["*"]` to receive all possible events.', + 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 OrgsOrgHooksPostBodyPropConfig(GitHubModel): - """OrgsOrgHooksPostBodyPropConfig +class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): + """OrgsOrgHooksHookIdPatchBodyPropConfig Key/value pairs to provide settings for this webhook. """ @@ -51,14 +52,12 @@ class OrgsOrgHooksPostBodyPropConfig(GitHubModel): description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", ) insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - username: Missing[str] = Field(default=UNSET) - password: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) __all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0929.py b/githubkit/versions/v2022_11_28/models/group_0929.py index 8f5b0def4..223789ed3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0929.py +++ b/githubkit/versions/v2022_11_28/models/group_0929.py @@ -18,31 +18,12 @@ from githubkit.utils import UNSET -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" - 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.", + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - 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`.", @@ -54,10 +35,6 @@ class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0930.py b/githubkit/versions/v2022_11_28/models/group_0930.py index 223789ed3..cd6df6a66 100644 --- a/githubkit/versions/v2022_11_28/models/group_0930.py +++ b/githubkit/versions/v2022_11_28/models/group_0930.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 .group_0018 import Installation -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + total_count: int = Field() + installations: list[Installation] = Field() -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(OrgsOrgInstallationsGetResponse200) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ("OrgsOrgInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0931.py b/githubkit/versions/v2022_11_28/models/group_0931.py index cd6df6a66..17fac965f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0931.py +++ b/githubkit/versions/v2022_11_28/models/group_0931.py @@ -9,20 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from .group_0018 import Installation - - -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" - total_count: int = Field() - installations: list[Installation] = Field() +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -model_rebuild(OrgsOrgInstallationsGetResponse200) +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0932.py b/githubkit/versions/v2022_11_28/models/group_0932.py index 17fac965f..163abb03c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0932.py +++ b/githubkit/versions/v2022_11_28/models/group_0932.py @@ -9,13 +9,38 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild - - -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +from typing import Literal +from pydantic import Field -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) - -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +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",) diff --git a/githubkit/versions/v2022_11_28/models/group_0933.py b/githubkit/versions/v2022_11_28/models/group_0933.py index 163abb03c..388841628 100644 --- a/githubkit/versions/v2022_11_28/models/group_0933.py +++ b/githubkit/versions/v2022_11_28/models/group_0933.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 - - -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",) + +from .group_0093 import Codespace + + +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + + total_count: int = Field() + codespaces: list[Codespace] = Field() + + +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0934.py b/githubkit/versions/v2022_11_28/models/group_0934.py index 39f9e92ac..7da7af9d3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0934.py +++ b/githubkit/versions/v2022_11_28/models/group_0934.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_0091 import Codespace +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + 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(OrgsOrgMembersUsernameCodespacesGetResponse200) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0935.py b/githubkit/versions/v2022_11_28/models/group_0935.py index 7da7af9d3..68c6b8f27 100644 --- a/githubkit/versions/v2022_11_28/models/group_0935.py +++ b/githubkit/versions/v2022_11_28/models/group_0935.py @@ -18,15 +18,46 @@ from githubkit.utils import UNSET -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" - role: Missing[Literal["admin", "member"]] = Field( + repositories: list[str] = Field( + description="A list of arrays indicating which repositories should be migrated." + ) + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, + description="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="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="Exclude related items from being returned in the response in order to improve performance of the request.", ) -model_rebuild(OrgsOrgMembershipsUsernamePutBody) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0936.py b/githubkit/versions/v2022_11_28/models/group_0936.py index 68c6b8f27..93499063e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0936.py +++ b/githubkit/versions/v2022_11_28/models/group_0936.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,46 +16,16 @@ from githubkit.utils import UNSET -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - 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( + async_: Missing[bool] = Field( default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", + 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(OrgsOrgMigrationsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgMigrationsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0937.py b/githubkit/versions/v2022_11_28/models/group_0937.py index 93499063e..dc2469b07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0937.py +++ b/githubkit/versions/v2022_11_28/models/group_0937.py @@ -9,23 +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 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 OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0938.py b/githubkit/versions/v2022_11_28/models/group_0938.py index dc2469b07..523846f85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0938.py +++ b/githubkit/versions/v2022_11_28/models/group_0938.py @@ -9,13 +9,20 @@ 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 OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) diff --git a/githubkit/versions/v2022_11_28/models/group_0939.py b/githubkit/versions/v2022_11_28/models/group_0939.py index 523846f85..8f8247056 100644 --- a/githubkit/versions/v2022_11_28/models/group_0939.py +++ b/githubkit/versions/v2022_11_28/models/group_0939.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 OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +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(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0940.py b/githubkit/versions/v2022_11_28/models/group_0940.py index 8f8247056..af6277ed1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0940.py +++ b/githubkit/versions/v2022_11_28/models/group_0940.py @@ -13,29 +13,23 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - 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." + 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 requests. Max 1024 characters.", + description="Reason for approving or denying the request. Max 1024 characters.", ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0941.py b/githubkit/versions/v2022_11_28/models/group_0941.py index af6277ed1..2677c34ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0941.py +++ b/githubkit/versions/v2022_11_28/models/group_0941.py @@ -9,27 +9,26 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", + 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(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0942.py b/githubkit/versions/v2022_11_28/models/group_0942.py index 2677c34ff..53f6146e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0942.py +++ b/githubkit/versions/v2022_11_28/models/group_0942.py @@ -13,22 +13,17 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" action: Literal["revoke"] = Field( description="Action to apply to the fine-grained personal access token." ) - pat_ids: list[int] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The IDs of the fine-grained personal access tokens.", - ) -model_rebuild(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0943.py b/githubkit/versions/v2022_11_28/models/group_0943.py index 53f6146e3..83d9bbabf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0943.py +++ b/githubkit/versions/v2022_11_28/models/group_0943.py @@ -9,21 +9,62 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesGetResponse200""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + total_count: int = Field() + configurations: list[OrgPrivateRegistryConfiguration] = Field() + + +class OrgPrivateRegistryConfiguration(GitHubModel): + """Organization private registry + + Private registry configuration for an organization + """ + + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] = 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(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) +model_rebuild(OrgPrivateRegistryConfiguration) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ( + "OrgPrivateRegistryConfiguration", + "OrgsOrgPrivateRegistriesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0944.py b/githubkit/versions/v2022_11_28/models/group_0944.py index 83cd2fd4c..0be035e21 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, Union from pydantic import Field @@ -19,38 +18,45 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesGetResponse200""" - - total_count: int = Field() - configurations: list[OrgPrivateRegistryConfiguration] = Field() - - -class OrgPrivateRegistryConfiguration(GitHubModel): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( - description="The registry type." - ) +class OrgsOrgPrivateRegistriesPostBody(GitHubModel): + """OrgsOrgPrivateRegistriesPostBody""" + + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] = Field(description="The registry type.") + url: str = Field(description="The URL of the private registry.") username: Missing[Union[str, None]] = Field( default=UNSET, - description="The username to use when authenticating with the private registry.", + 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." + 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`.", ) - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) -model_rebuild(OrgPrivateRegistryConfiguration) +model_rebuild(OrgsOrgPrivateRegistriesPostBody) -__all__ = ( - "OrgPrivateRegistryConfiguration", - "OrgsOrgPrivateRegistriesGetResponse200", -) +__all__ = ("OrgsOrgPrivateRegistriesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0945.py b/githubkit/versions/v2022_11_28/models/group_0945.py index 3271fd3eb..a51c170a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0945.py +++ b/githubkit/versions/v2022_11_28/models/group_0945.py @@ -9,40 +9,18 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgPrivateRegistriesPostBody(GitHubModel): - """OrgsOrgPrivateRegistriesPostBody""" - - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( - description="The registry type." - ) - url: str = Field(description="The URL of the private registry.") - 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",) + + +class OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" + + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + + +model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) + +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0946.py b/githubkit/versions/v2022_11_28/models/group_0946.py index a51c170a5..99ee2fb69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0946.py +++ b/githubkit/versions/v2022_11_28/models/group_0946.py @@ -9,18 +9,62 @@ 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 OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" +class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + registry_type: Missing[ + Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] + ] = Field(default=UNSET, description="The registry type.") + url: Missing[str] = Field( + default=UNSET, description="The URL of the private registry." + ) + 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(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) +model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0947.py b/githubkit/versions/v2022_11_28/models/group_0947.py index 4d8cb3ecc..ed09aabdb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0947.py +++ b/githubkit/versions/v2022_11_28/models/group_0947.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,37 +16,15 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - registry_type: Missing[ - Literal["maven_repository", "nuget_feed", "goproxy_server"] - ] = Field(default=UNSET, description="The registry type.") - url: Missing[str] = Field( - default=UNSET, description="The URL of the private registry." - ) - 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`.", + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) +__all__ = ("OrgsOrgProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0948.py b/githubkit/versions/v2022_11_28/models/group_0948.py index ed09aabdb..d99ab84e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0948.py +++ b/githubkit/versions/v2022_11_28/models/group_0948.py @@ -11,20 +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_0121 import CustomProperty -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 OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" + + properties: list[CustomProperty] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The array of custom properties to create or update.", ) -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0949.py b/githubkit/versions/v2022_11_28/models/group_0949.py index af909deed..fb59e71fb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0949.py +++ b/githubkit/versions/v2022_11_28/models/group_0949.py @@ -13,19 +13,22 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0119 import CustomProperty +from .group_0123 import CustomPropertyValue -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" - properties: list[CustomProperty] = Field( - max_length=100 if PYDANTIC_V2 else None, + repository_names: list[str] = Field( + max_length=30 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 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(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0950.py b/githubkit/versions/v2022_11_28/models/group_0950.py index 54ff30509..bdac866e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0950.py +++ b/githubkit/versions/v2022_11_28/models/group_0950.py @@ -9,26 +9,128 @@ 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_0121 import CustomPropertyValue +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" - 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.", + 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".', ) - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( + default=UNSET, + description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): + """OrgsOrgReposPostBodyPropCustomProperties + + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgReposPostBody) +model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ( + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0951.py b/githubkit/versions/v2022_11_28/models/group_0951.py index bdac866e9..f211e4d7c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0951.py +++ b/githubkit/versions/v2022_11_28/models/group_0951.py @@ -9,128 +9,95 @@ 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 OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" - - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - visibility: Missing[Literal["public", "private"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Pass `true` to create an initial commit with empty README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', - ) - license_template: Missing[str] = Field( - default=UNSET, - description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property 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"] +from .group_0127 import RepositoryRulesetBypassActor +from .group_0136 import OrgRulesetConditionsOneof0 +from .group_0137 import OrgRulesetConditionsOneof1 +from .group_0138 import OrgRulesetConditionsOneof2 +from .group_0139 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0140 import RepositoryRuleUpdate +from .group_0142 import RepositoryRuleRequiredLinearHistory +from .group_0145 import RepositoryRuleRequiredDeployments +from .group_0148 import RepositoryRulePullRequest +from .group_0150 import RepositoryRuleRequiredStatusChecks +from .group_0152 import RepositoryRuleCommitMessagePattern +from .group_0154 import RepositoryRuleCommitAuthorEmailPattern +from .group_0156 import RepositoryRuleCommitterEmailPattern +from .group_0158 import RepositoryRuleBranchNamePattern +from .group_0160 import RepositoryRuleTagNamePattern +from .group_0162 import RepositoryRuleFilePathRestriction +from .group_0164 import RepositoryRuleMaxFilePathLength +from .group_0166 import RepositoryRuleFileExtensionRestriction +from .group_0168 import RepositoryRuleMaxFileSize +from .group_0171 import RepositoryRuleWorkflows +from .group_0173 import RepositoryRuleCodeScanning + + +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="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) - -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) + 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, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(OrgsOrgRulesetsPostBody) + +__all__ = ("OrgsOrgRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0952.py b/githubkit/versions/v2022_11_28/models/group_0952.py index 5c38077af..4bae47f00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0952.py +++ b/githubkit/versions/v2022_11_28/models/group_0952.py @@ -17,44 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0125 import RepositoryRulesetBypassActor -from .group_0134 import OrgRulesetConditionsOneof0 -from .group_0135 import OrgRulesetConditionsOneof1 -from .group_0136 import OrgRulesetConditionsOneof2 -from .group_0137 import ( +from .group_0127 import RepositoryRulesetBypassActor +from .group_0136 import OrgRulesetConditionsOneof0 +from .group_0137 import OrgRulesetConditionsOneof1 +from .group_0138 import OrgRulesetConditionsOneof2 +from .group_0139 import ( RepositoryRuleCreation, RepositoryRuleDeletion, RepositoryRuleNonFastForward, RepositoryRuleRequiredSignatures, ) -from .group_0138 import RepositoryRuleUpdate -from .group_0140 import RepositoryRuleRequiredLinearHistory -from .group_0141 import RepositoryRuleMergeQueue -from .group_0143 import RepositoryRuleRequiredDeployments -from .group_0146 import RepositoryRulePullRequest -from .group_0148 import RepositoryRuleRequiredStatusChecks -from .group_0150 import RepositoryRuleCommitMessagePattern -from .group_0152 import RepositoryRuleCommitAuthorEmailPattern -from .group_0154 import RepositoryRuleCommitterEmailPattern -from .group_0156 import RepositoryRuleBranchNamePattern -from .group_0158 import RepositoryRuleTagNamePattern -from .group_0160 import RepositoryRuleFilePathRestriction -from .group_0162 import RepositoryRuleMaxFilePathLength -from .group_0164 import RepositoryRuleFileExtensionRestriction -from .group_0166 import RepositoryRuleMaxFileSize -from .group_0169 import RepositoryRuleWorkflows -from .group_0171 import RepositoryRuleCodeScanning +from .group_0140 import RepositoryRuleUpdate +from .group_0142 import RepositoryRuleRequiredLinearHistory +from .group_0145 import RepositoryRuleRequiredDeployments +from .group_0148 import RepositoryRulePullRequest +from .group_0150 import RepositoryRuleRequiredStatusChecks +from .group_0152 import RepositoryRuleCommitMessagePattern +from .group_0154 import RepositoryRuleCommitAuthorEmailPattern +from .group_0156 import RepositoryRuleCommitterEmailPattern +from .group_0158 import RepositoryRuleBranchNamePattern +from .group_0160 import RepositoryRuleTagNamePattern +from .group_0162 import RepositoryRuleFilePathRestriction +from .group_0164 import RepositoryRuleMaxFilePathLength +from .group_0166 import RepositoryRuleFileExtensionRestriction +from .group_0168 import RepositoryRuleMaxFileSize +from .group_0171 import RepositoryRuleWorkflows +from .group_0173 import RepositoryRuleCodeScanning -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" - name: str = Field(description="The name of the ruleset.") + 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: 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)." + 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, @@ -78,7 +78,6 @@ class OrgsOrgRulesetsPostBody(GitHubModel): RepositoryRuleUpdate, RepositoryRuleDeletion, RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, RepositoryRuleRequiredDeployments, RepositoryRuleRequiredSignatures, RepositoryRulePullRequest, @@ -100,6 +99,6 @@ class OrgsOrgRulesetsPostBody(GitHubModel): ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0953.py b/githubkit/versions/v2022_11_28/models/group_0953.py index cc3210472..1094d8139 100644 --- a/githubkit/versions/v2022_11_28/models/group_0953.py +++ b/githubkit/versions/v2022_11_28/models/group_0953.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,90 +18,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0125 import RepositoryRulesetBypassActor -from .group_0134 import OrgRulesetConditionsOneof0 -from .group_0135 import OrgRulesetConditionsOneof1 -from .group_0136 import OrgRulesetConditionsOneof2 -from .group_0137 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0138 import RepositoryRuleUpdate -from .group_0140 import RepositoryRuleRequiredLinearHistory -from .group_0141 import RepositoryRuleMergeQueue -from .group_0143 import RepositoryRuleRequiredDeployments -from .group_0146 import RepositoryRulePullRequest -from .group_0148 import RepositoryRuleRequiredStatusChecks -from .group_0150 import RepositoryRuleCommitMessagePattern -from .group_0152 import RepositoryRuleCommitAuthorEmailPattern -from .group_0154 import RepositoryRuleCommitterEmailPattern -from .group_0156 import RepositoryRuleBranchNamePattern -from .group_0158 import RepositoryRuleTagNamePattern -from .group_0160 import RepositoryRuleFilePathRestriction -from .group_0162 import RepositoryRuleMaxFilePathLength -from .group_0164 import RepositoryRuleFileExtensionRestriction -from .group_0166 import RepositoryRuleMaxFileSize -from .group_0169 import RepositoryRuleWorkflows -from .group_0171 import RepositoryRuleCodeScanning - - -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + +class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" + + total_count: int = Field() + network_configurations: list[NetworkConfiguration] = Field() + + +class NetworkConfiguration(GitHubModel): + """Hosted compute network configuration + + A hosted compute network configuration. + """ + + 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 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).", + description="The hosted compute service the network configuration supports.", ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + network_settings_ids: Missing[list[str]] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + description="The unique identifier of each network settings in the configuration.", ) - 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`.", + created_on: Union[datetime, None] = Field( + description="The time at which the network configuration was created, in ISO 8601 format." ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") - - -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) - -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) + + +model_rebuild(OrgsOrgSettingsNetworkConfigurationsGetResponse200) +model_rebuild(NetworkConfiguration) + +__all__ = ( + "NetworkConfiguration", + "OrgsOrgSettingsNetworkConfigurationsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0954.py b/githubkit/versions/v2022_11_28/models/group_0954.py index 1094d8139..b6be61b0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0954.py +++ b/githubkit/versions/v2022_11_28/models/group_0954.py @@ -9,48 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" +class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" - 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.", + 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 '_'." ) - network_settings_ids: Missing[list[str]] = Field( + compute_service: Missing[Literal["none", "actions"]] = Field( default=UNSET, - description="The unique identifier of each network settings in the configuration.", + description="The hosted compute service to use for the network configuration.", ) - created_on: Union[datetime, None] = Field( - description="The time at which the network configuration was created, in ISO 8601 format." + 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(OrgsOrgSettingsNetworkConfigurationsGetResponse200) -model_rebuild(NetworkConfiguration) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsPostBody) -__all__ = ( - "NetworkConfiguration", - "OrgsOrgSettingsNetworkConfigurationsGetResponse200", -) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0955.py b/githubkit/versions/v2022_11_28/models/group_0955.py index b6be61b0d..d68e0ab2a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0955.py +++ b/githubkit/versions/v2022_11_28/models/group_0955.py @@ -18,23 +18,24 @@ from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsPostBody""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - 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 '_'." + 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: list[str] = Field( + network_settings_ids: Missing[list[str]] = Field( max_length=1 if PYDANTIC_V2 else None, - min_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(OrgsOrgSettingsNetworkConfigurationsPostBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0956.py b/githubkit/versions/v2022_11_28/models/group_0956.py index d68e0ab2a..ea9293710 100644 --- a/githubkit/versions/v2022_11_28/models/group_0956.py +++ b/githubkit/versions/v2022_11_28/models/group_0956.py @@ -13,29 +13,45 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" - name: Missing[str] = Field( + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + maintainers: Missing[list[str]] = Field( + default=UNSET, + description="List GitHub usernames for organization members who will become team maintainers.", + ) + repo_names: Missing[list[str]] = Field( default=UNSET, - description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', ) - compute_service: Missing[Literal["none", "actions"]] = Field( + privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - description="The hosted compute service to use for the network configuration.", + 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`", ) - network_settings_ids: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + 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(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) +__all__ = ("OrgsOrgTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0957.py b/githubkit/versions/v2022_11_28/models/group_0957.py index ea9293710..ef46562c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0957.py +++ b/githubkit/versions/v2022_11_28/models/group_0957.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,40 +18,32 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" - name: str = Field(description="The name of the team.") + name: Missing[str] = Field(default=UNSET, description="The name of the team.") description: Missing[str] = Field( default=UNSET, description="The description of the team." ) - maintainers: Missing[list[str]] = Field( - default=UNSET, - description="List GitHub usernames for organization members who will become team maintainers.", - ) - repo_names: Missing[list[str]] = Field( - default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', - ) privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + 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. 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 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"]] = Field( + 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[int] = Field( + parent_team_id: Missing[Union[int, None]] = Field( default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0958.py b/githubkit/versions/v2022_11_28/models/group_0958.py index ef46562c8..5aca60c84 100644 --- a/githubkit/versions/v2022_11_28/models/group_0958.py +++ b/githubkit/versions/v2022_11_28/models/group_0958.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,32 +16,17 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - 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( + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( default=UNSET, - description="The 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="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(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0959.py b/githubkit/versions/v2022_11_28/models/group_0959.py index 5aca60c84..155ed9640 100644 --- a/githubkit/versions/v2022_11_28/models/group_0959.py +++ b/githubkit/versions/v2022_11_28/models/group_0959.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -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 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." ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0960.py b/githubkit/versions/v2022_11_28/models/group_0960.py index 155ed9640..d8f084a3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0960.py +++ b/githubkit/versions/v2022_11_28/models/group_0960.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 OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - 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." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0961.py b/githubkit/versions/v2022_11_28/models/group_0961.py index d8f084a3e..f9ed8041d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0961.py +++ b/githubkit/versions/v2022_11_28/models/group_0961.py @@ -14,12 +14,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" body: str = Field(description="The discussion comment's body text.") -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody +) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0962.py b/githubkit/versions/v2022_11_28/models/group_0962.py index f9ed8041d..7155a8c95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0962.py +++ b/githubkit/versions/v2022_11_28/models/group_0962.py @@ -9,23 +9,31 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( GitHubModel ): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - body: str = Field(description="The discussion comment's body text.") + 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( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody ) __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0963.py b/githubkit/versions/v2022_11_28/models/group_0963.py index 7155a8c95..09a55856c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0963.py +++ b/githubkit/versions/v2022_11_28/models/group_0963.py @@ -16,24 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +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 comment." + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0964.py b/githubkit/versions/v2022_11_28/models/group_0964.py index 09a55856c..d4ebf1d16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0964.py +++ b/githubkit/versions/v2022_11_28/models/group_0964.py @@ -14,18 +14,18 @@ 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 OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - 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." + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0965.py b/githubkit/versions/v2022_11_28/models/group_0965.py index d4ebf1d16..beef61704 100644 --- a/githubkit/versions/v2022_11_28/models/group_0965.py +++ b/githubkit/versions/v2022_11_28/models/group_0965.py @@ -18,14 +18,15 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", ) -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0966.py b/githubkit/versions/v2022_11_28/models/group_0966.py index beef61704..b947a7fa2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0966.py +++ b/githubkit/versions/v2022_11_28/models/group_0966.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 OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - 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).\"", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0967.py b/githubkit/versions/v2022_11_28/models/group_0967.py index b947a7fa2..4127c4263 100644 --- a/githubkit/versions/v2022_11_28/models/group_0967.py +++ b/githubkit/versions/v2022_11_28/models/group_0967.py @@ -16,13 +16,15 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + 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(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0968.py b/githubkit/versions/v2022_11_28/models/group_0968.py index 4127c4263..adc736feb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0968.py +++ b/githubkit/versions/v2022_11_28/models/group_0968.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 OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - permission: Missing[str] = Field( + query_suite: Missing[Literal["default", "extended"]] = 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="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(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0969.py b/githubkit/versions/v2022_11_28/models/group_0969.py index adc736feb..8e4aacd13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0969.py +++ b/githubkit/versions/v2022_11_28/models/group_0969.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,14 @@ from githubkit.utils import UNSET -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0970.py b/githubkit/versions/v2022_11_28/models/group_0970.py index 8e4aacd13..f56c2018f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0970.py +++ b/githubkit/versions/v2022_11_28/models/group_0970.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,14 +18,17 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + 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(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0971.py b/githubkit/versions/v2022_11_28/models/group_0971.py index f56c2018f..525269481 100644 --- a/githubkit/versions/v2022_11_28/models/group_0971.py +++ b/githubkit/versions/v2022_11_28/models/group_0971.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,17 +16,19 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" + 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.", ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + column_id: Missing[int] = Field( + default=UNSET, + description="The unique identifier of the column the card should be moved to", ) -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0972.py b/githubkit/versions/v2022_11_28/models/group_0972.py index 525269481..7d3245c63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0972.py +++ b/githubkit/versions/v2022_11_28/models/group_0972.py @@ -9,26 +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 ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" - position: str = Field( - pattern="^(?:top|bottom|after:\\d+)$", - description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", - ) - column_id: Missing[int] = Field( - default=UNSET, - description="The unique identifier of the column the card should be moved to", - ) +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0973.py b/githubkit/versions/v2022_11_28/models/group_0973.py index 7d3245c63..4a6010387 100644 --- a/githubkit/versions/v2022_11_28/models/group_0973.py +++ b/githubkit/versions/v2022_11_28/models/group_0973.py @@ -9,13 +9,36 @@ 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 ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + ] = Field(default=UNSET) + +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" + 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(ProjectsColumnsCardsCardIdMovesPostResponse201) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0974.py b/githubkit/versions/v2022_11_28/models/group_0974.py index 4a6010387..396dbfe80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0974.py +++ b/githubkit/versions/v2022_11_28/models/group_0974.py @@ -16,29 +16,28 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +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[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] ] = Field(default=UNSET) -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" 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) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) __all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0975.py b/githubkit/versions/v2022_11_28/models/group_0975.py index 396dbfe80..e6f9395a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0975.py +++ b/githubkit/versions/v2022_11_28/models/group_0975.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 -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - 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) + name: str = Field(description="Name of the project column") -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +model_rebuild(ProjectsColumnsColumnIdPatchBody) - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0976.py b/githubkit/versions/v2022_11_28/models/group_0976.py index e6f9395a8..17db0e859 100644 --- a/githubkit/versions/v2022_11_28/models/group_0976.py +++ b/githubkit/versions/v2022_11_28/models/group_0976.py @@ -9,17 +9,19 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - name: str = Field(description="Name of the project column") + note: Union[str, None] = Field(description="The project card's note") -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0977.py b/githubkit/versions/v2022_11_28/models/group_0977.py index 17db0e859..78dbfee00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0977.py +++ b/githubkit/versions/v2022_11_28/models/group_0977.py @@ -9,19 +9,22 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - note: Union[str, None] = Field(description="The project card's note") + content_id: int = Field( + description="The unique identifier of the content associated with the card" + ) + content_type: str = Field( + description="The piece of content associated with the card" + ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0978.py b/githubkit/versions/v2022_11_28/models/group_0978.py index 78dbfee00..cd4d5b3d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0978.py +++ b/githubkit/versions/v2022_11_28/models/group_0978.py @@ -12,19 +12,32 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" - 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" - ) + 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(ProjectsColumnsColumnIdCardsPostBodyOneof1) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) + 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_0979.py b/githubkit/versions/v2022_11_28/models/group_0979.py index cd4d5b3d2..003392298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0979.py +++ b/githubkit/versions/v2022_11_28/models/group_0979.py @@ -12,32 +12,17 @@ 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 ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" - 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) + 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 ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0980.py b/githubkit/versions/v2022_11_28/models/group_0980.py index 003392298..6009bdb4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0980.py +++ b/githubkit/versions/v2022_11_28/models/group_0980.py @@ -9,20 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -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 ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0981.py b/githubkit/versions/v2022_11_28/models/group_0981.py index 6009bdb4e..a0ef8d52d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0981.py +++ b/githubkit/versions/v2022_11_28/models/group_0981.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 ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(ProjectsProjectIdDeleteResponse403) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0982.py b/githubkit/versions/v2022_11_28/models/group_0982.py index a0ef8d52d..e99c686c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0982.py +++ b/githubkit/versions/v2022_11_28/models/group_0982.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,14 +18,26 @@ from githubkit.utils import UNSET -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET, description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + state: Missing[str] = Field( + default=UNSET, description="State of the project; either 'open' or 'closed'" + ) + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone.", + ) -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(ProjectsProjectIdPatchBody) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("ProjectsProjectIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0983.py b/githubkit/versions/v2022_11_28/models/group_0983.py index e99c686c3..8448c850e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0983.py +++ b/githubkit/versions/v2022_11_28/models/group_0983.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,26 +16,14 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" - name: Missing[str] = Field(default=UNSET, description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - state: Missing[str] = Field( - default=UNSET, description="State of the project; either 'open' or 'closed'" - ) - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project", - ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(ProjectsProjectIdPatchResponse403) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("ProjectsProjectIdPatchResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0984.py b/githubkit/versions/v2022_11_28/models/group_0984.py index 8448c850e..4745249cd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0984.py +++ b/githubkit/versions/v2022_11_28/models/group_0984.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 ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) -model_rebuild(ProjectsProjectIdPatchResponse403) +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -__all__ = ("ProjectsProjectIdPatchResponse403",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0985.py b/githubkit/versions/v2022_11_28/models/group_0985.py index 4745249cd..e33e0910d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0985.py +++ b/githubkit/versions/v2022_11_28/models/group_0985.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." - ) + name: str = Field(description="Name of the project column") -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0986.py b/githubkit/versions/v2022_11_28/models/group_0986.py index e33e0910d..82852ecb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0986.py +++ b/githubkit/versions/v2022_11_28/models/group_0986.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 ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - name: str = Field(description="Name of the project column") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("ReposOwnerRepoDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0987.py b/githubkit/versions/v2022_11_28/models/group_0987.py index 82852ecb9..44e2d029e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0987.py +++ b/githubkit/versions/v2022_11_28/models/group_0987.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,283 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +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.\nFor more information, see "[About GitHub Advanced\nSecurity](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.', + ) + code_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + ] = Field( + default=UNSET, + description="Use the `status` property to enable or disable GitHub Code Security for this repository.", + ) + secret_scanning: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', + ) + secret_scanning_push_protection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_ai_detection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', + ) + secret_scanning_non_provider_patterns: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. + For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + + For standalone Code Scanning or Secret Protection products, this parameter + cannot be used. + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + + Use the `status` property to enable or disable GitHub Code Security for this + repository. + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/code-security/secret-scanning/using- + advanced-secret-scanning-and-push-protection-features/generic-secret- + detection/responsible-ai-generic-secrets)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + 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)." + """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns +) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0988.py b/githubkit/versions/v2022_11_28/models/group_0988.py index 8cc15726d..4801c9011 100644 --- a/githubkit/versions/v2022_11_28/models/group_0988.py +++ b/githubkit/versions/v2022_11_28/models/group_0988.py @@ -9,288 +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 ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - archived: Missing[bool] = Field( - default=UNSET, - description="Whether to archive this repository. `false` will unarchive a previously archived repository.", - ) - allow_forking: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow private forks, or `false` to prevent private forks.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/organizations/managing-peoples-access-to- - your-organization-with-roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', - ) - code_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - ] = Field( - default=UNSET, - description="Use the `status` property to enable or disable GitHub Code Security for this repository.", - ) - secret_scanning: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', - ) - secret_scanning_push_protection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - secret_scanning_ai_detection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', - ) - secret_scanning_non_provider_patterns: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - - Use the `status` property to enable or disable GitHub Code Security for this - repository. - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/code-security/secret-scanning/using- - advanced-secret-scanning-and-push-protection-features/generic-secret- - detection/responsible-ai-generic-secrets)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) +from .group_0202 import Artifact -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)." - """ +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) + total_count: int = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns -) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", -) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0989.py b/githubkit/versions/v2022_11_28/models/group_0989.py index e27915d89..eabc5484e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0989.py +++ b/githubkit/versions/v2022_11_28/models/group_0989.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_0200 import Artifact +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) - total_count: int = Field() - artifacts: list[Artifact] = Field() +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0990.py b/githubkit/versions/v2022_11_28/models/group_0990.py index eabc5484e..4ca168cda 100644 --- a/githubkit/versions/v2022_11_28/models/group_0990.py +++ b/githubkit/versions/v2022_11_28/models/group_0990.py @@ -16,14 +16,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + Actions OIDC subject customization for a repository + """ + + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[list[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", ) -model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0991.py b/githubkit/versions/v2022_11_28/models/group_0991.py index 4ca168cda..21b33116a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0991.py +++ b/githubkit/versions/v2022_11_28/models/group_0991.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_0206 import ActionsSecret -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" - 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.", - ) + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0992.py b/githubkit/versions/v2022_11_28/models/group_0992.py index 0e401e794..7439f31f1 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_0204 import ActionsSecret +from .group_0207 import ActionsVariable -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" total_count: int = Field() - secrets: list[ActionsSecret] = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0993.py b/githubkit/versions/v2022_11_28/models/group_0993.py index f887328e1..b882d15a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0993.py +++ b/githubkit/versions/v2022_11_28/models/group_0993.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_0205 import ActionsVariable +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" - total_count: int = Field() - variables: list[ActionsVariable] = 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.", + ) -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0994.py b/githubkit/versions/v2022_11_28/models/group_0994.py index b882d15a4..7c6437634 100644 --- a/githubkit/versions/v2022_11_28/models/group_0994.py +++ b/githubkit/versions/v2022_11_28/models/group_0994.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0081 import Runner -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + total_count: int = Field() + runners: list[Runner] = Field() -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0995.py b/githubkit/versions/v2022_11_28/models/group_0995.py index 41ebdbf33..4b74e8b7f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0995.py +++ b/githubkit/versions/v2022_11_28/models/group_0995.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_0079 import Runner +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + 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() - runners: list[Runner] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0996.py b/githubkit/versions/v2022_11_28/models/group_0996.py index 4b74e8b7f..07ff84efb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0996.py +++ b/githubkit/versions/v2022_11_28/models/group_0996.py @@ -12,28 +12,17 @@ from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - 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.", + 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(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0997.py b/githubkit/versions/v2022_11_28/models/group_0997.py index 07ff84efb..5c0dd84b7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0997.py +++ b/githubkit/versions/v2022_11_28/models/group_0997.py @@ -14,15 +14,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" 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.", + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0998.py b/githubkit/versions/v2022_11_28/models/group_0998.py index 5c0dd84b7..170650a17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0998.py +++ b/githubkit/versions/v2022_11_28/models/group_0998.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_0212 import WorkflowRun -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int = Field() + workflow_runs: list[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0999.py b/githubkit/versions/v2022_11_28/models/group_0999.py index a0d999e52..8cee29386 100644 --- a/githubkit/versions/v2022_11_28/models/group_0999.py +++ b/githubkit/versions/v2022_11_28/models/group_0999.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0210 import WorkflowRun +from .group_0202 import Artifact -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1000.py b/githubkit/versions/v2022_11_28/models/group_1000.py index 3c3b9afdb..5bc4e909d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1000.py +++ b/githubkit/versions/v2022_11_28/models/group_1000.py @@ -13,16 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0200 import Artifact +from .group_0204 import Job -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( + GitHubModel +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" total_count: int = Field() - artifacts: list[Artifact] = Field() + jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1001.py b/githubkit/versions/v2022_11_28/models/group_1001.py index 504ffb8b5..a2e582dac 100644 --- a/githubkit/versions/v2022_11_28/models/group_1001.py +++ b/githubkit/versions/v2022_11_28/models/group_1001.py @@ -13,18 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0202 import Job +from .group_0204 import Job -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" total_count: int = Field() jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1002.py b/githubkit/versions/v2022_11_28/models/group_1002.py index 583e9958a..daa1a984d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1002.py +++ b/githubkit/versions/v2022_11_28/models/group_1002.py @@ -9,20 +9,25 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0202 import Job - -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - total_count: int = Field() - jobs: list[Job] = Field() + environment_ids: list[int] = Field( + description="The list of environment ids to approve or reject" + ) + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." + ) + comment: str = Field(description="A comment to accompany the deployment review") -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1003.py b/githubkit/versions/v2022_11_28/models/group_1003.py index daa1a984d..f45127160 100644 --- a/githubkit/versions/v2022_11_28/models/group_1003.py +++ b/githubkit/versions/v2022_11_28/models/group_1003.py @@ -9,25 +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 ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - 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." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) - comment: str = Field(description="A comment to accompany the deployment review") -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1004.py b/githubkit/versions/v2022_11_28/models/group_1004.py index f45127160..f97011ea2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1004.py +++ b/githubkit/versions/v2022_11_28/models/group_1004.py @@ -16,14 +16,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" enable_debug_logging: Missing[bool] = Field( default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1005.py b/githubkit/versions/v2022_11_28/models/group_1005.py index f97011ea2..bf60032e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_1005.py +++ b/githubkit/versions/v2022_11_28/models/group_1005.py @@ -12,18 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0206 import ActionsSecret -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1006.py b/githubkit/versions/v2022_11_28/models/group_1006.py index b69d67636..d21da1d46 100644 --- a/githubkit/versions/v2022_11_28/models/group_1006.py +++ b/githubkit/versions/v2022_11_28/models/group_1006.py @@ -13,16 +13,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0204 import ActionsSecret +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" + 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.") - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1007.py b/githubkit/versions/v2022_11_28/models/group_1007.py index d21da1d46..2c5610e6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1007.py +++ b/githubkit/versions/v2022_11_28/models/group_1007.py @@ -13,17 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0207 import ActionsVariable -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - 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.") +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1008.py b/githubkit/versions/v2022_11_28/models/group_1008.py index 9881bebb0..bf9209ee5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1008.py +++ b/githubkit/versions/v2022_11_28/models/group_1008.py @@ -13,16 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0205 import ActionsVariable +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") - total_count: int = Field() - variables: list[ActionsVariable] = Field() +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1009.py b/githubkit/versions/v2022_11_28/models/group_1009.py index bf9209ee5..2a4d3aeda 100644 --- a/githubkit/versions/v2022_11_28/models/group_1009.py +++ b/githubkit/versions/v2022_11_28/models/group_1009.py @@ -12,15 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + 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(ReposOwnerRepoActionsVariablesPostBody) +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1010.py b/githubkit/versions/v2022_11_28/models/group_1010.py index 2a4d3aeda..3c3259aed 100644 --- a/githubkit/versions/v2022_11_28/models/group_1010.py +++ b/githubkit/versions/v2022_11_28/models/group_1010.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,13 +19,38 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" + + total_count: int = Field() + workflows: list[Workflow] = Field() + + +class Workflow(GitHubModel): + """Workflow + + A GitHub Actions workflow + """ - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + 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(ReposOwnerRepoActionsVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1011.py b/githubkit/versions/v2022_11_28/models/group_1011.py index 3c3259aed..437f66baa 100644 --- a/githubkit/versions/v2022_11_28/models/group_1011.py +++ b/githubkit/versions/v2022_11_28/models/group_1011.py @@ -9,48 +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.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - total_count: int = Field() - workflows: list[Workflow] = Field() + 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 Workflow(GitHubModel): - """Workflow +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - A GitHub Actions workflow + Input keys and values configured in the workflow file. The maximum number of + properties is 10. Any default properties configured in the workflow file will be + used when `inputs` are omitted. """ - 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) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) __all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1012.py b/githubkit/versions/v2022_11_28/models/group_1012.py index 437f66baa..cc878c513 100644 --- a/githubkit/versions/v2022_11_28/models/group_1012.py +++ b/githubkit/versions/v2022_11_28/models/group_1012.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_0212 import WorkflowRun -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 ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int = Field() + workflow_runs: list[WorkflowRun] = 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(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1013.py b/githubkit/versions/v2022_11_28/models/group_1013.py index 88d4d2fbb..1559b8643 100644 --- a/githubkit/versions/v2022_11_28/models/group_1013.py +++ b/githubkit/versions/v2022_11_28/models/group_1013.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_0210 import WorkflowRun +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + 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() - workflow_runs: list[WorkflowRun] = Field() +class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundle -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) + 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__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) + 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/v2022_11_28/models/group_1014.py b/githubkit/versions/v2022_11_28/models/group_1014.py index 1559b8643..e78d24aec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1014.py +++ b/githubkit/versions/v2022_11_28/models/group_1014.py @@ -11,55 +11,17 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoAttestationsPostBody(GitHubModel): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" - 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." - ) + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") -class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundle +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" - - -model_rebuild(ReposOwnerRepoAttestationsPostBody) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) - -__all__ = ( - "ReposOwnerRepoAttestationsPostBody", - "ReposOwnerRepoAttestationsPostBodyPropBundle", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_1015.py b/githubkit/versions/v2022_11_28/models/group_1015.py index e78d24aec..a764a785c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1015.py +++ b/githubkit/versions/v2022_11_28/models/group_1015.py @@ -11,17 +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 ReposOwnerRepoAttestationsPostResponse201(GitHubModel): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") + attestations: Missing[ + list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoAttestationsPostResponse201) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" -__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) + 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_1016.py b/githubkit/versions/v2022_11_28/models/group_1016.py index a764a785c..e795956c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1016.py +++ b/githubkit/versions/v2022_11_28/models/group_1016.py @@ -11,89 +11,26 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - attestations: Missing[ - list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( + 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="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="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.", ) - 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 -) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1017.py b/githubkit/versions/v2022_11_28/models/group_1017.py index e795956c5..88050bb30 100644 --- a/githubkit/versions/v2022_11_28/models/group_1017.py +++ b/githubkit/versions/v2022_11_28/models/group_1017.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,21 +18,218 @@ from githubkit.utils import UNSET -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" + + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None + ] = Field( + description="Require status checks to pass before merging. Set to `null` to disable." + ) + enforce_admins: Union[bool, None] = Field( + description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." + ) + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, + None, + ] = Field( + description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." + ) + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None + ] = Field( + description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." + ) + required_linear_history: Missing[bool] = Field( + default=UNSET, + description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', + ) + allow_force_pushes: Missing[Union[bool, None]] = Field( + default=UNSET, + description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', + ) + allow_deletions: Missing[bool] = Field( + default=UNSET, + description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', + ) + block_creations: Missing[bool] = Field( + default=UNSET, + description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", + ) + required_conversation_resolution: Missing[bool] = Field( + default=UNSET, + description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", + ) + lock_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", + ) + allow_fork_syncing: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool = Field( + description="Require branches to be up to date before merging." + ) + contexts: list[str] = Field( + description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." + ) + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ - 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." + 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.", ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." + 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.", ) - is_alphanumeric: Missing[bool] = Field( + require_last_push_approval: 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.", + 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(ReposOwnerRepoAutolinksPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1018.py b/githubkit/versions/v2022_11_28/models/group_1018.py index 88050bb30..8a9bfe435 100644 --- a/githubkit/versions/v2022_11_28/models/group_1018.py +++ b/githubkit/versions/v2022_11_28/models/group_1018.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,107 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" - - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None - ] = Field( - description="Require status checks to pass before merging. Set to `null` to disable." - ) - enforce_admins: Union[bool, None] = Field( - description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." - ) - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, - None, - ] = Field( - description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." - ) - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None - ] = Field( - description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." - ) - required_linear_history: Missing[bool] = Field( - default=UNSET, - description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', - ) - allow_force_pushes: Missing[Union[bool, None]] = Field( - default=UNSET, - description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', - ) - allow_deletions: Missing[bool] = Field( - default=UNSET, - description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', - ) - block_creations: Missing[bool] = Field( - default=UNSET, - description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", - ) - required_conversation_resolution: Missing[bool] = Field( - default=UNSET, - description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", - ) - lock_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", - ) - allow_fork_syncing: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool = Field( - description="Require branches to be up to date before merging." - ) - contexts: list[str] = Field( - description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." - ) - checks: Missing[ - list[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( 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. - """ + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + 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.", @@ -129,29 +33,29 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview ) 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.", + 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="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + 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`.", + 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 + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ] = Field( default=UNSET, description="Allow specific users, teams, or apps to bypass pull request requirements.", ) -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team @@ -170,11 +74,11 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview ) -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances Allow specific users, teams, or apps to bypass pull request requirements. """ @@ -193,43 +97,16 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview ) -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: list[str] = Field(description="The list of user `login`s with push access") - teams: list[str] = Field(description="The list of team `slug`s with push access") - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with push access" - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions ) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1019.py b/githubkit/versions/v2022_11_28/models/group_1019.py index 8a9bfe435..199aa5468 100644 --- a/githubkit/versions/v2022_11_28/models/group_1019.py +++ b/githubkit/versions/v2022_11_28/models/group_1019.py @@ -16,97 +16,46 @@ from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - 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.", + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." ) - require_last_push_approval: Missing[bool] = Field( + contexts: Missing[list[str]] = Field( default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", + 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.", ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ] ] = Field( default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", + description="The list of status checks to require in order to merge into this branch.", ) -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( 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. + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - 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( + context: str = Field(description="The name of the required check") + app_id: Missing[int] = 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.", + 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(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1020.py b/githubkit/versions/v2022_11_28/models/group_1020.py index 199aa5468..c92d11192 100644 --- a/githubkit/versions/v2022_11_28/models/group_1020.py +++ b/githubkit/versions/v2022_11_28/models/group_1020.py @@ -12,50 +12,24 @@ 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( + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + + Examples: + {'contexts': ['contexts']} """ - 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.", - ) + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1021.py b/githubkit/versions/v2022_11_28/models/group_1021.py index c92d11192..736a856c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1021.py +++ b/githubkit/versions/v2022_11_28/models/group_1021.py @@ -14,10 +14,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: {'contexts': ['contexts']} @@ -27,9 +27,9 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyO model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1022.py b/githubkit/versions/v2022_11_28/models/group_1022.py index 736a856c2..6e14562a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1022.py +++ b/githubkit/versions/v2022_11_28/models/group_1022.py @@ -14,10 +14,11 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: {'contexts': ['contexts']} @@ -27,9 +28,9 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBody model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1023.py b/githubkit/versions/v2022_11_28/models/group_1023.py index 6e14562a0..705f549eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1023.py +++ b/githubkit/versions/v2022_11_28/models/group_1023.py @@ -14,23 +14,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody Examples: - {'contexts': ['contexts']} + {'apps': ['my-app']} """ - contexts: list[str] = Field(description="The name of the status checks") + 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( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1024.py b/githubkit/versions/v2022_11_28/models/group_1024.py index 705f549eb..60a283330 100644 --- a/githubkit/versions/v2022_11_28/models/group_1024.py +++ b/githubkit/versions/v2022_11_28/models/group_1024.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody Examples: {'apps': ['my-app']} @@ -26,6 +26,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel) ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1025.py b/githubkit/versions/v2022_11_28/models/group_1025.py index 60a283330..ce2d7c174 100644 --- a/githubkit/versions/v2022_11_28/models/group_1025.py +++ b/githubkit/versions/v2022_11_28/models/group_1025.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody Examples: {'apps': ['my-app']} @@ -26,6 +26,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1026.py b/githubkit/versions/v2022_11_28/models/group_1026.py index ce2d7c174..84ad571cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1026.py +++ b/githubkit/versions/v2022_11_28/models/group_1026.py @@ -14,18 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 Examples: - {'apps': ['my-app']} + {'teams': ['justice-league']} """ - 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." - ) + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1027.py b/githubkit/versions/v2022_11_28/models/group_1027.py index 84ad571cb..958afae89 100644 --- a/githubkit/versions/v2022_11_28/models/group_1027.py +++ b/githubkit/versions/v2022_11_28/models/group_1027.py @@ -14,16 +14,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 Examples: - {'teams': ['justice-league']} + {'teams': ['my-team']} """ teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1028.py b/githubkit/versions/v2022_11_28/models/group_1028.py index 958afae89..19a5a7072 100644 --- a/githubkit/versions/v2022_11_28/models/group_1028.py +++ b/githubkit/versions/v2022_11_28/models/group_1028.py @@ -14,10 +14,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 Examples: {'teams': ['my-team']} @@ -26,6 +26,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1029.py b/githubkit/versions/v2022_11_28/models/group_1029.py index 19a5a7072..bf770df8d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1029.py +++ b/githubkit/versions/v2022_11_28/models/group_1029.py @@ -14,18 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody Examples: - {'teams': ['my-team']} + {'users': ['mona']} """ - teams: list[str] = Field(description="The slug values for teams") + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1030.py b/githubkit/versions/v2022_11_28/models/group_1030.py index bf770df8d..047d05a26 100644 --- a/githubkit/versions/v2022_11_28/models/group_1030.py +++ b/githubkit/versions/v2022_11_28/models/group_1030.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody Examples: {'users': ['mona']} @@ -24,6 +24,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1031.py b/githubkit/versions/v2022_11_28/models/group_1031.py index 047d05a26..181ab0f55 100644 --- a/githubkit/versions/v2022_11_28/models/group_1031.py +++ b/githubkit/versions/v2022_11_28/models/group_1031.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody Examples: {'users': ['mona']} @@ -24,6 +24,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubMode users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1032.py b/githubkit/versions/v2022_11_28/models/group_1032.py index 181ab0f55..5fcd45c02 100644 --- a/githubkit/versions/v2022_11_28/models/group_1032.py +++ b/githubkit/versions/v2022_11_28/models/group_1032.py @@ -14,16 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - Examples: - {'users': ['mona']} - """ + new_name: str = Field(description="The new name of the branch.") - users: list[str] = Field(description="The username for users") +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1033.py b/githubkit/versions/v2022_11_28/models/group_1033.py index 5fcd45c02..8f20768c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1033.py +++ b/githubkit/versions/v2022_11_28/models/group_1033.py @@ -9,17 +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""" + + 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 ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - new_name: str = Field(description="The new name of the branch.") + 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(ReposOwnerRepoBranchesBranchRenamePostBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1034.py b/githubkit/versions/v2022_11_28/models/group_1034.py index 8f20768c8..8ab63dde0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1034.py +++ b/githubkit/versions/v2022_11_28/models/group_1034.py @@ -9,117 +9,67 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1033 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) -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 ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" - 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.", + name: str = Field( + description='The name of the check. For example, "code-coverage".' ) - annotations: Missing[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50 if PYDANTIC_V2 else None, + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = 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`." + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + 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." ) - end_column: Missing[int] = Field( + completed_at: Missing[datetime] = Field( default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + description="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`.", ) - title: Missing[str] = Field( + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + 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.", ) - raw_details: Missing[str] = Field( + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", + 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 ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", - ) - - -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) - -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1035.py b/githubkit/versions/v2022_11_28/models/group_1035.py index 3a6811516..a3df3909a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1035.py +++ b/githubkit/versions/v2022_11_28/models/group_1035.py @@ -18,14 +18,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1034 import ( +from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ReposOwnerRepoCheckRunsPostBodyPropOutput, ) -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" name: str = Field( description='The name of the check. For example, "code-coverage".' @@ -38,22 +38,27 @@ class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): external_id: Missing[str] = Field( default=UNSET, description="A reference for the run on the integrator's system." ) - status: Literal["completed"] = Field() + 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: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + conclusion: Missing[ + 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." + 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, @@ -70,6 +75,6 @@ class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1036.py b/githubkit/versions/v2022_11_28/models/group_1036.py index c7de77021..b08be314e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1036.py +++ b/githubkit/versions/v2022_11_28/models/group_1036.py @@ -9,72 +9,114 @@ 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 PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1034 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ - name: str = Field( - description='The name of the check. For example, "code-coverage".' + title: 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." ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( + annotations: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50 if PYDANTIC_V2 else None, 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." + 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)\".", ) - status: Missing[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] - ] = Field(default=UNSET) - started_at: Missing[datetime] = Field( + images: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = 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="Adds images to the output displayed in the GitHub pull request UI.", ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", ) - completed_at: Missing[datetime] = Field( + end_column: Missing[int] = Field( default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + title: Missing[str] = Field( default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + description="The title that represents the annotation. The maximum size is 255 characters.", ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, + raw_details: Missing[str] = Field( default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description="Details about this annotation. The maximum size is 64 KB.", ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) + 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) + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1037.py b/githubkit/versions/v2022_11_28/models/group_1037.py index b08be314e..a2c95eba8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1037.py +++ b/githubkit/versions/v2022_11_28/models/group_1037.py @@ -9,114 +9,69 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1036 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) -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 ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" - 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, + name: Missing[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='The name of the check. For example, "code-coverage".', ) - images: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( + details_url: Missing[str] = Field( default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( - GitHubModel -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." + description="The URL of the integrator's site that has the full details of the check.", ) - 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.", + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - end_column: Missing[int] = Field( + started_at: Missing[datetime] = 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." + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + 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." ) - title: Missing[str] = Field( + completed_at: Missing[datetime] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - raw_details: Missing[str] = Field( + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + actions: Missing[ + list[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(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1038.py b/githubkit/versions/v2022_11_28/models/group_1038.py index 466d847b1..5a3b8b92b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1038.py +++ b/githubkit/versions/v2022_11_28/models/group_1038.py @@ -18,14 +18,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1037 import ( +from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" name: Missing[str] = Field( default=UNSET, @@ -42,18 +42,21 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): default=UNSET, description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + conclusion: Missing[ + 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." + 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, @@ -72,6 +75,6 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1039.py b/githubkit/versions/v2022_11_28/models/group_1039.py index 02332d559..2a8e7cd54 100644 --- a/githubkit/versions/v2022_11_28/models/group_1039.py +++ b/githubkit/versions/v2022_11_28/models/group_1039.py @@ -9,72 +9,17 @@ 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_1037 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - 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)."', - ) + head_sha: str = Field(description="The sha of the head commit.") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1040.py b/githubkit/versions/v2022_11_28/models/group_1040.py index 2a8e7cd54..c56809f38 100644 --- a/githubkit/versions/v2022_11_28/models/group_1040.py +++ b/githubkit/versions/v2022_11_28/models/group_1040.py @@ -12,14 +12,37 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - head_sha: str = Field(description="The sha of the head commit.") + 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.", + ) -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) + app_id: int = Field(description="The `id` of the GitHub App.") + setting: bool = Field( + default=True, + description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + ) + + +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1041.py b/githubkit/versions/v2022_11_28/models/group_1041.py index c56809f38..a4a1d7ee5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1041.py +++ b/githubkit/versions/v2022_11_28/models/group_1041.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_0238 import CheckRun -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 ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int = Field() + check_runs: list[CheckRun] = 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(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) - -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1042.py b/githubkit/versions/v2022_11_28/models/group_1042.py index 764541152..15a8f3fb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1042.py +++ b/githubkit/versions/v2022_11_28/models/group_1042.py @@ -9,20 +9,39 @@ from __future__ import annotations +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0236 import CheckRun - - -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" - - total_count: int = Field() - check_runs: list[CheckRun] = Field() - - -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) - -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" + + state: Literal["open", "dismissed"] = Field( + description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." + ) + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = Field( + default=UNSET, + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + create_request: Missing[bool] = Field( + default=UNSET, + description="If `true`, attempt to create an alert dismissal request.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) + +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1043.py b/githubkit/versions/v2022_11_28/models/group_1043.py index 15a8f3fb1..3d05d5b64 100644 --- a/githubkit/versions/v2022_11_28/models/group_1043.py +++ b/githubkit/versions/v2022_11_28/models/group_1043.py @@ -9,39 +9,39 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - 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`." + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" ) - 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.", + 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." ) - 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.", - ) + 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.", ) - create_request: Missing[bool] = Field( + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="If `true`, attempt to create an alert dismissal request.", + 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(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1044.py b/githubkit/versions/v2022_11_28/models/group_1044.py index 3d05d5b64..b178bf51d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1044.py +++ b/githubkit/versions/v2022_11_28/models/group_1044.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" @@ -27,12 +27,12 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel) 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." + 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( + repository_lists: 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( @@ -42,6 +42,6 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel) ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1045.py b/githubkit/versions/v2022_11_28/models/group_1045.py index b178bf51d..eaeb5dbf9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1045.py +++ b/githubkit/versions/v2022_11_28/models/group_1045.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" @@ -31,17 +31,17 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel) default=UNSET, description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - repository_lists: list[str] = Field( + 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( + repository_owners: 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) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_1046.py b/githubkit/versions/v2022_11_28/models/group_1046.py index eaeb5dbf9..a7ec8de2f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1046.py +++ b/githubkit/versions/v2022_11_28/models/group_1046.py @@ -9,39 +9,50 @@ from __future__ import annotations -from typing import Literal +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 ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + 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.", ) - repositories: Missing[list[str]] = Field( + 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="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 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.", ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + started_at: Missing[datetime] = Field( default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - repository_owners: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + 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(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1047.py b/githubkit/versions/v2022_11_28/models/group_1047.py index a7ec8de2f..d2a758cc0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1047.py +++ b/githubkit/versions/v2022_11_28/models/group_1047.py @@ -9,50 +9,20 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class 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",) + +from .group_0093 import Codespace + + +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" + + total_count: int = Field() + codespaces: list[Codespace] = Field() + + +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1048.py b/githubkit/versions/v2022_11_28/models/group_1048.py index 2417f0954..9d9c2bbbd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1048.py +++ b/githubkit/versions/v2022_11_28/models/group_1048.py @@ -9,20 +9,61 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0091 import Codespace +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1049.py b/githubkit/versions/v2022_11_28/models/group_1049.py index 9d9c2bbbd..262d6c72c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1049.py +++ b/githubkit/versions/v2022_11_28/models/group_1049.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,52 +16,29 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" + + total_count: int = Field() + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - 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).", - ) + path: str = Field() + name: Missing[str] = Field(default=UNSET) + display_name: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoCodespacesPostBody) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1050.py b/githubkit/versions/v2022_11_28/models/group_1050.py index 262d6c72c..64468203f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1050.py +++ b/githubkit/versions/v2022_11_28/models/group_1050.py @@ -12,33 +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_0092 import CodespaceMachine -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int = Field() - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( - GitHubModel -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1051.py b/githubkit/versions/v2022_11_28/models/group_1051.py index be3dc4034..14c58fd19 100644 --- a/githubkit/versions/v2022_11_28/models/group_1051.py +++ b/githubkit/versions/v2022_11_28/models/group_1051.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 githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser + + +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" -from .group_0090 import CodespaceMachine + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET + ) -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - total_count: int = Field() - machines: list[CodespaceMachine] = Field() + location: str = Field() + devcontainer_path: Union[str, None] = Field() -model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ( + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1052.py b/githubkit/versions/v2022_11_28/models/group_1052.py index 14c58fd19..ea29eb2ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_1052.py +++ b/githubkit/versions/v2022_11_28/models/group_1052.py @@ -9,39 +9,35 @@ 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_0003 import SimpleUser +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" + total_count: int = Field() + secrets: list[RepoCodespacesSecret] = Field() - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET - ) +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + Set repository secrets for GitHub Codespaces. + """ - location: str = Field() - devcontainer_path: Union[str, None] = Field() + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) __all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", + "RepoCodespacesSecret", + "ReposOwnerRepoCodespacesSecretsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1053.py b/githubkit/versions/v2022_11_28/models/group_1053.py index ea29eb2ed..a1412f088 100644 --- a/githubkit/versions/v2022_11_28/models/group_1053.py +++ b/githubkit/versions/v2022_11_28/models/group_1053.py @@ -9,35 +9,26 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ( - "RepoCodespacesSecret", - "ReposOwnerRepoCodespacesSecretsGetResponse200", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1054.py b/githubkit/versions/v2022_11_28/models/group_1054.py index a1412f088..637f9ed63 100644 --- a/githubkit/versions/v2022_11_28/models/group_1054.py +++ b/githubkit/versions/v2022_11_28/models/group_1054.py @@ -16,19 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + permission: Missing[str] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/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." + 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(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1055.py b/githubkit/versions/v2022_11_28/models/group_1055.py index 637f9ed63..75effd211 100644 --- a/githubkit/versions/v2022_11_28/models/group_1055.py +++ b/githubkit/versions/v2022_11_28/models/group_1055.py @@ -12,19 +12,14 @@ 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 ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - 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.", - ) + body: str = Field(description="The contents of the comment") -model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1056.py b/githubkit/versions/v2022_11_28/models/group_1056.py index 75effd211..496e2b84a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1056.py +++ b/githubkit/versions/v2022_11_28/models/group_1056.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - body: str = Field(description="The contents of the comment") + 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(ReposOwnerRepoCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1057.py b/githubkit/versions/v2022_11_28/models/group_1057.py index 496e2b84a..757d9d282 100644 --- a/githubkit/versions/v2022_11_28/models/group_1057.py +++ b/githubkit/versions/v2022_11_28/models/group_1057.py @@ -9,23 +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 ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment." + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." + ) + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." + ) + line: Missing[int] = Field( + default=UNSET, + description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", ) -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1058.py b/githubkit/versions/v2022_11_28/models/group_1058.py index 757d9d282..15399d58c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1058.py +++ b/githubkit/versions/v2022_11_28/models/group_1058.py @@ -12,26 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0238 import CheckRun -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - body: str = Field(description="The contents of the comment.") - path: Missing[str] = Field( - default=UNSET, description="Relative path of the file to comment on." - ) - position: Missing[int] = Field( - default=UNSET, description="Line index in the diff to comment on." - ) - line: Missing[int] = Field( - default=UNSET, - description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", - ) +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int = Field() + check_runs: list[CheckRun] = Field() -model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1059.py b/githubkit/versions/v2022_11_28/models/group_1059.py index 7852294e0..06ebae173 100644 --- a/githubkit/versions/v2022_11_28/models/group_1059.py +++ b/githubkit/versions/v2022_11_28/models/group_1059.py @@ -12,17 +12,70 @@ 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 CheckRun +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + message: str = Field(description="The commit message.") + content: str = Field(description="The new file content, using Base64 encoding.") + sha: Missing[str] = Field( + default=UNSET, + description="**Required if you are updating a file**. The blob SHA of the file being replaced.", + ) + branch: Missing[str] = Field( + default=UNSET, + description="The branch name. Default: the repository’s default branch.", + ) + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( + default=UNSET, + description="The person that committed the file. Default: the authenticated user.", + ) + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( + default=UNSET, + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + ) - total_count: int = Field() - check_runs: list[CheckRun] = Field() +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) + The person that committed the file. Default: the authenticated user. + """ -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +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_1060.py b/githubkit/versions/v2022_11_28/models/group_1060.py index 06ebae173..b246a17c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1060.py +++ b/githubkit/versions/v2022_11_28/models/group_1060.py @@ -16,66 +16,59 @@ from githubkit.utils import UNSET -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" 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.", - ) + 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.", + 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.", + committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( + default=UNSET, description="object containing information about the committer." ) - author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( - default=UNSET, - description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( + default=UNSET, description="object containing information about the author." ) -class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropCommitter +class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - The person that committed the file. Default: the authenticated user. + object containing information about the 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." + name: Missing[str] = Field( + default=UNSET, 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. You'll receive a `422` status code if `email` is omitted." + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", ) - date: Missing[str] = Field(default=UNSET) -class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropAuthor +class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. + object containing information about the author. """ - 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." + name: Missing[str] = Field( + default=UNSET, 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. You'll receive a `422` status code if `email` is omitted." + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", ) - date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) __all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1061.py b/githubkit/versions/v2022_11_28/models/group_1061.py index b246a17c2..98b4b8e85 100644 --- a/githubkit/versions/v2022_11_28/models/group_1061.py +++ b/githubkit/versions/v2022_11_28/models/group_1061.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,59 +18,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" - - message: str = Field(description="The commit message.") - sha: str = Field(description="The blob SHA of the file being deleted.") - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch", - ) - committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( - default=UNSET, description="object containing information about the committer." - ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - - object containing information about the committer. - """ +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" + state: Literal["dismissed", "open"] = Field( + description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." ) - email: Missing[str] = Field( + dismissed_reason: Missing[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] = 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" + description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", ) - email: Missing[str] = Field( + dismissed_comment: Missing[str] = Field( + max_length=280, default=UNSET, - description="The email of the author (or committer) of the commit", + description="An optional comment associated with dismissing the alert.", ) -model_rebuild(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1062.py b/githubkit/versions/v2022_11_28/models/group_1062.py index 98b4b8e85..22c7a2b35 100644 --- a/githubkit/versions/v2022_11_28/models/group_1062.py +++ b/githubkit/versions/v2022_11_28/models/group_1062.py @@ -9,36 +9,35 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." - ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] = Field( - default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", - ) - dismissed_comment: Missing[str] = Field( - max_length=280, - default=UNSET, - description="An optional comment associated with dismissing the alert.", - ) - - -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) - -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) + + +class 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", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1063.py b/githubkit/versions/v2022_11_28/models/group_1063.py index 22c7a2b35..f2da3a6d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1063.py +++ b/githubkit/versions/v2022_11_28/models/group_1063.py @@ -9,35 +9,26 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[DependabotSecret] = Field() - - -class DependabotSecret(GitHubModel): - """Dependabot Secret - - Set secrets for Dependabot. - """ +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/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(ReposOwnerRepoDependabotSecretsGetResponse200) -model_rebuild(DependabotSecret) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ( - "DependabotSecret", - "ReposOwnerRepoDependabotSecretsGetResponse200", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1064.py b/githubkit/versions/v2022_11_28/models/group_1064.py index f2da3a6d7..d8abaeb32 100644 --- a/githubkit/versions/v2022_11_28/models/group_1064.py +++ b/githubkit/versions/v2022_11_28/models/group_1064.py @@ -12,23 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + 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.' ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." ) -model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_1065.py b/githubkit/versions/v2022_11_28/models/group_1065.py index d8abaeb32..7a0f8ffb7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1065.py +++ b/githubkit/versions/v2022_11_28/models/group_1065.py @@ -9,24 +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 ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" - 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.' + 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) ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." + 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(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1066.py b/githubkit/versions/v2022_11_28/models/group_1066.py index 7a0f8ffb7..87a3629c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1066.py +++ b/githubkit/versions/v2022_11_28/models/group_1066.py @@ -9,61 +9,19 @@ 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 ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" - - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." - ) - task: Missing[str] = Field( - default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", - ) - auto_merge: Missing[bool] = Field( - default=UNSET, - description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", - ) - required_contexts: Missing[list[str]] = Field( - default=UNSET, - description="The [status](https://docs.github.com/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", - ) - payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( - Field(default=UNSET) - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the deployment." - ) - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", - ) - +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + message: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1067.py b/githubkit/versions/v2022_11_28/models/group_1067.py index 87a3629c8..fbbf01aa8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1067.py +++ b/githubkit/versions/v2022_11_28/models/group_1067.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,12 +18,40 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" - - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) - -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" + + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] = Field( + description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." + ) + target_url: Missing[str] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.\n\n> [!NOTE]\n> It's recommended to use the `log_url` parameter, which replaces `target_url`.", + ) + log_url: Missing[str] = Field( + default=UNSET, + description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the status. The maximum description length is 140 characters.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", + ) + environment_url: Missing[str] = Field( + default=UNSET, + description='Sets the URL for accessing your environment. Default: `""`', + ) + auto_inactive: Missing[bool] = Field( + default=UNSET, + description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", + ) + + +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) + +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1068.py b/githubkit/versions/v2022_11_28/models/group_1068.py index fbbf01aa8..7a5ec1511 100644 --- a/githubkit/versions/v2022_11_28/models/group_1068.py +++ b/githubkit/versions/v2022_11_28/models/group_1068.py @@ -9,49 +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 ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - 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.", + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", ) - environment: Missing[str] = Field( + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = 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`", + 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(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) +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__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) +__all__ = ( + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1069.py b/githubkit/versions/v2022_11_28/models/group_1069.py index 7a5ec1511..9908fcafc 100644 --- a/githubkit/versions/v2022_11_28/models/group_1069.py +++ b/githubkit/versions/v2022_11_28/models/group_1069.py @@ -9,40 +9,61 @@ 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_0294 import DeploymentBranchPolicySettings + -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", + 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.", ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + reviewers: Missing[ + Union[ + list[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] + ] = Field( default=UNSET, - description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", + description="The 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 ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - 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. - """ + 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(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) __all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1070.py b/githubkit/versions/v2022_11_28/models/group_1070.py index 8beae560b..e8d56e3db 100644 --- a/githubkit/versions/v2022_11_28/models/group_1070.py +++ b/githubkit/versions/v2022_11_28/models/group_1070.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,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0292 import DeploymentBranchPolicySettings +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" -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`.", - ) + total_count: int = Field( + description="The number of deployment branch policies for the environment." ) + branch_policies: list[DeploymentBranchPolicy] = Field() -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." + ) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( default=UNSET, - description="The id of the user or team who can review the deployment", + 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(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", + "DeploymentBranchPolicy", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1071.py b/githubkit/versions/v2022_11_28/models/group_1071.py index e8d56e3db..b5d03989b 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,42 +16,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( GitHubModel ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - - total_count: int = Field( - description="The number of deployment branch policies for the environment." - ) - branch_policies: list[DeploymentBranchPolicy] = Field() - + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" -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( + integration_id: Missing[int] = Field( default=UNSET, - description="The name pattern that branches or tags must match in order to deploy to the environment.", - ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag." + description="The ID of the custom app that will be enabled on the environment.", ) model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody ) -model_rebuild(DeploymentBranchPolicy) __all__ = ( - "DeploymentBranchPolicy", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1072.py b/githubkit/versions/v2022_11_28/models/group_1072.py index b5d03989b..c9efbd03f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1072.py +++ b/githubkit/versions/v2022_11_28/models/group_1072.py @@ -15,22 +15,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0300 import CustomDeploymentRuleApp -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( GitHubModel ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - integration_id: Missing[int] = Field( + total_count: Missing[int] = Field( default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + 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( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 ) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1073.py b/githubkit/versions/v2022_11_28/models/group_1073.py index 3e5f43a9d..77fbe418b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1073.py +++ b/githubkit/versions/v2022_11_28/models/group_1073.py @@ -12,32 +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_0298 import CustomDeploymentRuleApp +from .group_0206 import ActionsSecret -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" - 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) + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1074.py b/githubkit/versions/v2022_11_28/models/group_1074.py index eccdfd9b0..aec8c7a15 100644 --- a/githubkit/versions/v2022_11_28/models/group_1074.py +++ b/githubkit/versions/v2022_11_28/models/group_1074.py @@ -13,16 +13,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0204 import ActionsSecret +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1075.py b/githubkit/versions/v2022_11_28/models/group_1075.py index aec8c7a15..550f35512 100644 --- a/githubkit/versions/v2022_11_28/models/group_1075.py +++ b/githubkit/versions/v2022_11_28/models/group_1075.py @@ -13,17 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0207 import ActionsVariable -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - 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.") +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1076.py b/githubkit/versions/v2022_11_28/models/group_1076.py index 402d95f06..376060834 100644 --- a/githubkit/versions/v2022_11_28/models/group_1076.py +++ b/githubkit/versions/v2022_11_28/models/group_1076.py @@ -13,16 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0205 import ActionsVariable +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") - total_count: int = Field() - variables: list[ActionsVariable] = Field() +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1077.py b/githubkit/versions/v2022_11_28/models/group_1077.py index 376060834..6a0d6de99 100644 --- a/githubkit/versions/v2022_11_28/models/group_1077.py +++ b/githubkit/versions/v2022_11_28/models/group_1077.py @@ -12,15 +12,17 @@ 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 ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + 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(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1078.py b/githubkit/versions/v2022_11_28/models/group_1078.py index 6a0d6de99..abc9b3749 100644 --- a/githubkit/versions/v2022_11_28/models/group_1078.py +++ b/githubkit/versions/v2022_11_28/models/group_1078.py @@ -16,13 +16,23 @@ from githubkit.utils import UNSET -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",) +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" + + organization: Missing[str] = Field( + default=UNSET, + description="Optional parameter to specify the organization name if forking into an organization.", + ) + name: Missing[str] = Field( + default=UNSET, + description="When forking from an existing repository, a new name for the fork.", + ) + default_branch_only: Missing[bool] = Field( + default=UNSET, + description="When forking from an existing repository, fork with only the default branch.", + ) + + +model_rebuild(ReposOwnerRepoForksPostBody) + +__all__ = ("ReposOwnerRepoForksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1079.py b/githubkit/versions/v2022_11_28/models/group_1079.py index abc9b3749..f4b8ca964 100644 --- a/githubkit/versions/v2022_11_28/models/group_1079.py +++ b/githubkit/versions/v2022_11_28/models/group_1079.py @@ -16,23 +16,16 @@ from githubkit.utils import UNSET -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - organization: Missing[str] = Field( + content: str = Field(description="The new blob's content.") + encoding: 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.", + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoForksPostBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("ReposOwnerRepoForksPostBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1080.py b/githubkit/versions/v2022_11_28/models/group_1080.py index f4b8ca964..111a9d4a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1080.py +++ b/githubkit/versions/v2022_11_28/models/group_1080.py @@ -9,6 +9,8 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,16 +18,74 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +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 - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( + 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='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + 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(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1081.py b/githubkit/versions/v2022_11_28/models/group_1081.py index 111a9d4a5..e02988ad3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1081.py +++ b/githubkit/versions/v2022_11_28/models/group_1081.py @@ -9,83 +9,20 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class 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 ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - 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`.", + 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(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1082.py b/githubkit/versions/v2022_11_28/models/group_1082.py index e02988ad3..dc680ffcd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1082.py +++ b/githubkit/versions/v2022_11_28/models/group_1082.py @@ -12,17 +12,20 @@ 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 ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - 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 to set this reference to") + force: Missing[bool] = Field( + default=UNSET, + description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1083.py b/githubkit/versions/v2022_11_28/models/group_1083.py index dc680ffcd..2366c3d87 100644 --- a/githubkit/versions/v2022_11_28/models/group_1083.py +++ b/githubkit/versions/v2022_11_28/models/group_1083.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,16 +19,43 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +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. + """ - sha: str = Field(description="The SHA1 value to set this reference to") - force: Missing[bool] = Field( + 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="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="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(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ( + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1084.py b/githubkit/versions/v2022_11_28/models/group_1084.py index 2366c3d87..1d6bd8e59 100644 --- a/githubkit/versions/v2022_11_28/models/group_1084.py +++ b/githubkit/versions/v2022_11_28/models/group_1084.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,43 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" - tag: str = Field( - description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." ) - 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( + base_tree: Missing[str] = Field( default=UNSET, - description="An object with information about the individual creating the tag.", + 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 ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - 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( + 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="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="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(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) __all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1085.py b/githubkit/versions/v2022_11_28/models/group_1085.py index 1d6bd8e59..005e3bc51 100644 --- a/githubkit/versions/v2022_11_28/models/group_1085.py +++ b/githubkit/versions/v2022_11_28/models/group_1085.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,45 +18,51 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + name: Missing[str] = Field( + default=UNSET, + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", ) - base_tree: Missing[str] = Field( + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = 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="Key/value pairs to provide settings for this webhook.", ) - - -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + active: Missing[bool] = 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="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." + + +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - sha: Missing[Union[str, None]] = Field( + content_type: 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="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - content: Missing[str] = Field( + secret: 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.", + 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(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) __all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1086.py b/githubkit/versions/v2022_11_28/models/group_1086.py index 005e3bc51..f93161b0f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1086.py +++ b/githubkit/versions/v2022_11_28/models/group_1086.py @@ -9,60 +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_0011 import WebhookConfig -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( +class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: Missing[WebhookConfig] = Field( default=UNSET, - description="Key/value pairs to provide settings for this webhook.", + 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.", + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", ) - active: Missing[bool] = Field( + add_events: Missing[list[str]] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + description="Determines a list of events to be added to the list of events that the Hook triggers for.", ) - - -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( + remove_events: Missing[list[str]] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", ) - secret: Missing[str] = Field( + active: Missing[bool] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) -__all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", -) +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1087.py b/githubkit/versions/v2022_11_28/models/group_1087.py index f93161b0f..a0493aad9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1087.py +++ b/githubkit/versions/v2022_11_28/models/group_1087.py @@ -9,41 +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_0011 import WebhookConfig - -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - 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.", + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - remove_events: Missing[list[str]] = Field( + content_type: Missing[str] = Field( default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - active: Missing[bool] = Field( + secret: Missing[str] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1088.py b/githubkit/versions/v2022_11_28/models/group_1088.py index a0493aad9..4e11d0489 100644 --- a/githubkit/versions/v2022_11_28/models/group_1088.py +++ b/githubkit/versions/v2022_11_28/models/group_1088.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,23 +18,28 @@ from githubkit.utils import UNSET -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + 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`.", ) - content_type: Missing[str] = Field( + vcs_password: Missing[str] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="If authentication is required, the password to provide to `vcs_url`.", ) - secret: Missing[str] = Field( + tfvc_project: 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="For a tfvc import, the name of the project that is being imported.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ("ReposOwnerRepoImportPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1089.py b/githubkit/versions/v2022_11_28/models/group_1089.py index 4e11d0489..73c9a3a1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1089.py +++ b/githubkit/versions/v2022_11_28/models/group_1089.py @@ -18,21 +18,20 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - 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`.", + description="The username to provide to the originating repository.", ) vcs_password: Missing[str] = Field( default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", + 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, @@ -40,6 +39,6 @@ class ReposOwnerRepoImportPutBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoImportPutBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1090.py b/githubkit/versions/v2022_11_28/models/group_1090.py index 73c9a3a1e..bac05d75f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1090.py +++ b/githubkit/versions/v2022_11_28/models/group_1090.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,27 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - 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.", - ) + 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(ReposOwnerRepoImportPatchBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoImportPatchBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1091.py b/githubkit/versions/v2022_11_28/models/group_1091.py index bac05d75f..7727d20f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1091.py +++ b/githubkit/versions/v2022_11_28/models/group_1091.py @@ -9,20 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") + 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(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1092.py b/githubkit/versions/v2022_11_28/models/group_1092.py index 7727d20f6..759975570 100644 --- a/githubkit/versions/v2022_11_28/models/group_1092.py +++ b/githubkit/versions/v2022_11_28/models/group_1092.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Literal - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" - - use_lfs: Literal["opt_in", "opt_out"] = Field( - description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." - ) +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoImportLfsPatchBody) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1093.py b/githubkit/versions/v2022_11_28/models/group_1093.py index 759975570..3569862c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1093.py +++ b/githubkit/versions/v2022_11_28/models/group_1093.py @@ -9,13 +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 ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" + 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(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1094.py b/githubkit/versions/v2022_11_28/models/group_1094.py index 3569862c6..6c961bc46 100644 --- a/githubkit/versions/v2022_11_28/models/group_1094.py +++ b/githubkit/versions/v2022_11_28/models/group_1094.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,17 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" - 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`.", - ) + title: Union[str, int] = Field(description="The title of the issue.") + body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + ) + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + ) + type: Missing[Union[str, None]] = Field( + default=UNSET, + description="The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._", + ) + + +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) +model_rebuild(ReposOwnerRepoIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1095.py b/githubkit/versions/v2022_11_28/models/group_1095.py index 6c961bc46..2e91230e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1095.py +++ b/githubkit/versions/v2022_11_28/models/group_1095.py @@ -9,54 +9,17 @@ 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 ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" - - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", - ) - assignees: Missing[list[str]] = Field( - default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", - ) - type: Missing[Union[str, None]] = Field( - default=UNSET, - description="The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._", - ) - - -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesPostBody) -model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) - -__all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", -) + + +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" + + body: str = Field(description="The contents of the comment.") + + +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) + +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1096.py b/githubkit/versions/v2022_11_28/models/group_1096.py index 2e91230e7..429ace692 100644 --- a/githubkit/versions/v2022_11_28/models/group_1096.py +++ b/githubkit/versions/v2022_11_28/models/group_1096.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - body: str = Field(description="The contents of the comment.") + 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(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1097.py b/githubkit/versions/v2022_11_28/models/group_1097.py index 429ace692..51a855132 100644 --- a/githubkit/versions/v2022_11_28/models/group_1097.py +++ b/githubkit/versions/v2022_11_28/models/group_1097.py @@ -9,23 +9,67 @@ 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 ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + title: Missing[Union[str, int, None]] = Field( + default=UNSET, description="The title of the issue." + ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="The contents of the issue." + ) + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Username to assign to this issue. **This field is closing down.**", + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="The open or closed state of the issue." + ) + state_reason: Missing[ + Union[None, Literal["completed", "not_planned", "duplicate", "reopened"]] + ] = Field( + default=UNSET, + description="The reason for the state change. Ignored unless `state` is changed.", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment." + default=UNSET, + description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", ) + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", + ) + type: Missing[Union[str, None]] = Field( + default=UNSET, + description="The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.", + ) + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1098.py b/githubkit/versions/v2022_11_28/models/group_1098.py index 0b68f57a6..5b60a1932 100644 --- a/githubkit/versions/v2022_11_28/models/group_1098.py +++ b/githubkit/versions/v2022_11_28/models/group_1098.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,58 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - title: Missing[Union[str, int, None]] = Field( - default=UNSET, description="The title of the issue." - ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="The contents of the issue." - ) - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Username to assign to this issue. **This field is closing down.**", - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="The open or closed state of the issue." - ) - state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] = Field( - default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", - ) assignees: Missing[list[str]] = Field( default=UNSET, - description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", - ) - type: Missing[Union[str, None]] = Field( - default=UNSET, - description="The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.", + 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._", ) -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1099.py b/githubkit/versions/v2022_11_28/models/group_1099.py index 5b60a1932..1c74a1195 100644 --- a/githubkit/versions/v2022_11_28/models/group_1099.py +++ b/githubkit/versions/v2022_11_28/models/group_1099.py @@ -16,15 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" assignees: Missing[list[str]] = Field( default=UNSET, - description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", + description="Usernames 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(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1100.py b/githubkit/versions/v2022_11_28/models/group_1100.py index 1c74a1195..49a6d6da0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1100.py +++ b/githubkit/versions/v2022_11_28/models/group_1100.py @@ -12,19 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - assignees: Missing[list[str]] = Field( - default=UNSET, - description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1101.py b/githubkit/versions/v2022_11_28/models/group_1101.py index 49a6d6da0..c2d37d8d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1101.py +++ b/githubkit/versions/v2022_11_28/models/group_1101.py @@ -11,15 +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 ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - body: str = Field(description="The contents of the comment.") + labels: Missing[list[str]] = Field( + min_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."', + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1102.py b/githubkit/versions/v2022_11_28/models/group_1102.py index c2d37d8d2..ed2c2a834 100644 --- a/githubkit/versions/v2022_11_28/models/group_1102.py +++ b/githubkit/versions/v2022_11_28/models/group_1102.py @@ -16,16 +16,24 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - labels: Missing[list[str]] = Field( - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."', - ) + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1103.py b/githubkit/versions/v2022_11_28/models/group_1103.py index ed2c2a834..d59513ace 100644 --- a/githubkit/versions/v2022_11_28/models/group_1103.py +++ b/githubkit/versions/v2022_11_28/models/group_1103.py @@ -11,29 +11,15 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_1104.py b/githubkit/versions/v2022_11_28/models/group_1104.py index d59513ace..a13dcae5c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1104.py +++ b/githubkit/versions/v2022_11_28/models/group_1104.py @@ -11,15 +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 ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: str = Field() + 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(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1105.py b/githubkit/versions/v2022_11_28/models/group_1105.py index a13dcae5c..f67daaa62 100644 --- a/githubkit/versions/v2022_11_28/models/group_1105.py +++ b/githubkit/versions/v2022_11_28/models/group_1105.py @@ -16,16 +16,24 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - 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)."', - ) + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1106.py b/githubkit/versions/v2022_11_28/models/group_1106.py index f67daaa62..dfb903bb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1106.py +++ b/githubkit/versions/v2022_11_28/models/group_1106.py @@ -11,29 +11,15 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_1107.py b/githubkit/versions/v2022_11_28/models/group_1107.py index dfb903bb9..485b30e7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1107.py +++ b/githubkit/versions/v2022_11_28/models/group_1107.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 ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - name: str = Field() + 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(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1108.py b/githubkit/versions/v2022_11_28/models/group_1108.py index 485b30e7e..4d12ca0e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1108.py +++ b/githubkit/versions/v2022_11_28/models/group_1108.py @@ -14,21 +14,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - 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: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue." ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1109.py b/githubkit/versions/v2022_11_28/models/group_1109.py index 4d12ca0e6..f813db6bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_1109.py +++ b/githubkit/versions/v2022_11_28/models/group_1109.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 ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - 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." - ) + sub_issue_id: int = Field(description="The id of the sub-issue to remove") -model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1110.py b/githubkit/versions/v2022_11_28/models/group_1110.py index f813db6bf..7e9d65950 100644 --- a/githubkit/versions/v2022_11_28/models/group_1110.py +++ b/githubkit/versions/v2022_11_28/models/group_1110.py @@ -12,14 +12,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - sub_issue_id: int = Field(description="The id of the sub-issue to remove") + sub_issue_id: int = Field( + description="The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue" + ) + replace_parent: Missing[bool] = Field( + default=UNSET, + description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1111.py b/githubkit/versions/v2022_11_28/models/group_1111.py index 7e9d65950..f3aab1e81 100644 --- a/githubkit/versions/v2022_11_28/models/group_1111.py +++ b/githubkit/versions/v2022_11_28/models/group_1111.py @@ -16,18 +16,20 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" - sub_issue_id: int = Field( - description="The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue" + sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") + after_id: Missing[int] = Field( + default=UNSET, + description="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", ) - replace_parent: Missing[bool] = Field( + before_id: Missing[int] = Field( default=UNSET, - description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", + description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1112.py b/githubkit/versions/v2022_11_28/models/group_1112.py index f3aab1e81..9ce2ef608 100644 --- a/githubkit/versions/v2022_11_28/models/group_1112.py +++ b/githubkit/versions/v2022_11_28/models/group_1112.py @@ -16,20 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") - after_id: Missing[int] = 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 id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", - ) - before_id: Missing[int] = Field( - default=UNSET, - description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", + description='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(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) +__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1113.py b/githubkit/versions/v2022_11_28/models/group_1113.py index 9ce2ef608..27dc128b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1113.py +++ b/githubkit/versions/v2022_11_28/models/group_1113.py @@ -16,17 +16,22 @@ from githubkit.utils import UNSET -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - 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( + 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='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/)."', + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoKeysPostBody) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoKeysPostBody",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1114.py b/githubkit/versions/v2022_11_28/models/group_1114.py index 27dc128b3..810ac1cad 100644 --- a/githubkit/versions/v2022_11_28/models/group_1114.py +++ b/githubkit/versions/v2022_11_28/models/group_1114.py @@ -16,11 +16,12 @@ from githubkit.utils import UNSET -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - 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)."' + 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, @@ -32,6 +33,6 @@ class ReposOwnerRepoLabelsPostBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1115.py b/githubkit/versions/v2022_11_28/models/group_1115.py index 810ac1cad..7be32859a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1115.py +++ b/githubkit/versions/v2022_11_28/models/group_1115.py @@ -12,27 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - 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.", + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1116.py b/githubkit/versions/v2022_11_28/models/group_1116.py index 7be32859a..8d864c09c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1116.py +++ b/githubkit/versions/v2022_11_28/models/group_1116.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 -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - branch: str = Field( - description="The name of the branch which should be updated to match upstream." + 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(ReposOwnerRepoMergeUpstreamPostBody) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) +__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1117.py b/githubkit/versions/v2022_11_28/models/group_1117.py index 8d864c09c..4c86e4385 100644 --- a/githubkit/versions/v2022_11_28/models/group_1117.py +++ b/githubkit/versions/v2022_11_28/models/group_1117.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,21 +19,23 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" - base: str = Field( - description="The name of the base branch that the head will be merged into." + 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`.", ) - head: str = Field( - description="The head to merge. This can be a branch name or a commit SHA1." + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - commit_message: Missing[str] = Field( + due_on: Missing[datetime] = Field( default=UNSET, - description="Commit message to use for the merge commit. If omitted, a default message will be used.", + 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(ReposOwnerRepoMergesPostBody) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1118.py b/githubkit/versions/v2022_11_28/models/group_1118.py index 4c86e4385..c674f9121 100644 --- a/githubkit/versions/v2022_11_28/models/group_1118.py +++ b/githubkit/versions/v2022_11_28/models/group_1118.py @@ -19,10 +19,12 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - title: str = Field(description="The title of the milestone.") + 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`.", @@ -36,6 +38,6 @@ class ReposOwnerRepoMilestonesPostBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoMilestonesPostBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1119.py b/githubkit/versions/v2022_11_28/models/group_1119.py index c674f9121..7a766cc33 100644 --- a/githubkit/versions/v2022_11_28/models/group_1119.py +++ b/githubkit/versions/v2022_11_28/models/group_1119.py @@ -10,7 +10,6 @@ from __future__ import annotations from datetime import datetime -from typing import Literal from pydantic import Field @@ -19,25 +18,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" - 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( + last_read_at: 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`.", + 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(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1120.py b/githubkit/versions/v2022_11_28/models/group_1120.py index 7a766cc33..41ae3801e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1120.py +++ b/githubkit/versions/v2022_11_28/models/group_1120.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoNotificationsPutBody) +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1121.py b/githubkit/versions/v2022_11_28/models/group_1121.py index 41ae3801e..aaa502a31 100644 --- a/githubkit/versions/v2022_11_28/models/group_1121.py +++ b/githubkit/versions/v2022_11_28/models/group_1121.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 githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + Update the source for the repository. Must include the branch name and path. + """ - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + branch: str = Field( + description="The repository branch used to publish your site's source files." + ) + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." + ) -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1122.py b/githubkit/versions/v2022_11_28/models/group_1122.py index aaa502a31..183504f80 100644 --- a/githubkit/versions/v2022_11_28/models/group_1122.py +++ b/githubkit/versions/v2022_11_28/models/group_1122.py @@ -9,27 +9,39 @@ 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_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - Update the source for the repository. Must include the branch name and path. - """ +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" - branch: str = Field( - description="The repository branch used to publish your site's source files." + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', ) - path: Literal["/", "/docs"] = Field( - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", ) + build_type: Literal["legacy", "workflow"] = Field( + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1123.py b/githubkit/versions/v2022_11_28/models/group_1123.py index c4c9bdfc3..9a99b2e0f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1123.py +++ b/githubkit/versions/v2022_11_28/models/group_1123.py @@ -17,11 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" cname: Missing[Union[str, None]] = Field( default=UNSET, @@ -31,17 +31,16 @@ class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): 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." + 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) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1124.py b/githubkit/versions/v2022_11_28/models/group_1124.py index 70a7a3e55..014015339 100644 --- a/githubkit/versions/v2022_11_28/models/group_1124.py +++ b/githubkit/versions/v2022_11_28/models/group_1124.py @@ -17,15 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."' ) https_enforced: Missing[bool] = Field( default=UNSET, @@ -35,12 +34,14 @@ class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): default=UNSET, description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_1125.py b/githubkit/versions/v2022_11_28/models/group_1125.py index 61be4d225..06840ae5e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1125.py +++ b/githubkit/versions/v2022_11_28/models/group_1125.py @@ -17,14 +17,15 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."' + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', ) https_enforced: Missing[bool] = Field( default=UNSET, @@ -42,6 +43,6 @@ class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_1126.py b/githubkit/versions/v2022_11_28/models/group_1126.py index 862c8f9bd..139d613ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_1126.py +++ b/githubkit/versions/v2022_11_28/models/group_1126.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" cname: Missing[Union[str, None]] = Field( default=UNSET, description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/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.", + https_enforced: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." ) build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, @@ -43,6 +42,6 @@ class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_1127.py b/githubkit/versions/v2022_11_28/models/group_1127.py index 8747b5830..693572351 100644 --- a/githubkit/versions/v2022_11_28/models/group_1127.py +++ b/githubkit/versions/v2022_11_28/models/group_1127.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,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" + The source branch and directory used to publish your Pages site. + """ - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( + path: Missing[Literal["/", "/docs"]] = Field( default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_1128.py b/githubkit/versions/v2022_11_28/models/group_1128.py index 693572351..b2464f384 100644 --- a/githubkit/versions/v2022_11_28/models/group_1128.py +++ b/githubkit/versions/v2022_11_28/models/group_1128.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1127 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Missing[Literal["/", "/docs"]] = Field( + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + ) + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." ) -model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1129.py b/githubkit/versions/v2022_11_28/models/group_1129.py index d093b26a3..6960fa2f7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1129.py +++ b/githubkit/versions/v2022_11_28/models/group_1129.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1128 import ReposOwnerRepoPagesPostBodyPropSource +from .group_1127 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" - 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"`.', + build_type: Literal["legacy", "workflow"] = Field( + 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." + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + default=UNSET, + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1130.py b/githubkit/versions/v2022_11_28/models/group_1130.py index c22464105..d9c520300 100644 --- a/githubkit/versions/v2022_11_28/models/group_1130.py +++ b/githubkit/versions/v2022_11_28/models/group_1130.py @@ -9,29 +9,40 @@ from __future__ import annotations -from 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_1128 import ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" + The object used to create GitHub Pages deployment + """ - build_type: Literal["legacy", "workflow"] = Field( - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' + 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.", ) - source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + environment: Missing[str] = Field( default=UNSET, - description="The source branch and directory used to publish your Pages site.", + 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(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1131.py b/githubkit/versions/v2022_11_28/models/group_1131.py index d9c520300..c70eda7b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1131.py +++ b/githubkit/versions/v2022_11_28/models/group_1131.py @@ -12,37 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - 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." + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1132.py b/githubkit/versions/v2022_11_28/models/group_1132.py index c70eda7b0..a5aa6012f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1132.py +++ b/githubkit/versions/v2022_11_28/models/group_1132.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 ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1133.py b/githubkit/versions/v2022_11_28/models/group_1133.py index a5aa6012f..040c58fbe 100644 --- a/githubkit/versions/v2022_11_28/models/group_1133.py +++ b/githubkit/versions/v2022_11_28/models/group_1133.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_0123 import CustomPropertyValue -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." +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(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1134.py b/githubkit/versions/v2022_11_28/models/group_1134.py index 057f4e078..4f571bba6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1134.py +++ b/githubkit/versions/v2022_11_28/models/group_1134.py @@ -12,18 +12,44 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0121 import CustomPropertyValue +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" - - properties: list[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." + title: Missing[str] = Field( + default=UNSET, + description="The title of the new pull request. Required unless `issue` is specified.", + ) + head: str = Field( + description="The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`." + ) + head_repo: Missing[str] = Field( + default=UNSET, + description="The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.", + ) + base: str = Field( + description="The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository." + ) + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + ) + draft: Missing[bool] = Field( + default=UNSET, + description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', + ) + issue: Missing[int] = Field( + default=UNSET, + description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", ) -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoPullsPostBody) -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1135.py b/githubkit/versions/v2022_11_28/models/group_1135.py index 4f571bba6..b48ea50a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1135.py +++ b/githubkit/versions/v2022_11_28/models/group_1135.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/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", - ) - draft: Missing[bool] = Field( - default=UNSET, - description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', - ) - issue: Missing[int] = Field( - default=UNSET, - description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", - ) - - -model_rebuild(ReposOwnerRepoPullsPostBody) - -__all__ = ("ReposOwnerRepoPullsPostBody",) + + +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" + + body: str = Field(description="The text of the reply to the review comment.") + + +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) + +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1136.py b/githubkit/versions/v2022_11_28/models/group_1136.py index b48ea50a0..21b71134d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1136.py +++ b/githubkit/versions/v2022_11_28/models/group_1136.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - body: str = Field(description="The text of the reply to the review comment.") + 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(ReposOwnerRepoPullsCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1137.py b/githubkit/versions/v2022_11_28/models/group_1137.py index 21b71134d..ac6538022 100644 --- a/githubkit/versions/v2022_11_28/models/group_1137.py +++ b/githubkit/versions/v2022_11_28/models/group_1137.py @@ -14,18 +14,33 @@ 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 ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - 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." + 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(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1138.py b/githubkit/versions/v2022_11_28/models/group_1138.py index ac6538022..3bd074c1a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1138.py +++ b/githubkit/versions/v2022_11_28/models/group_1138.py @@ -18,29 +18,48 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the pull request." + 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", ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - state: Missing[Literal["open", "closed"]] = Field( + devcontainer_path: Missing[str] = Field( default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", + description="Path to devcontainer.json config to use for this codespace", ) - base: Missing[str] = Field( + multi_repo_permissions_opt_out: Missing[bool] = Field( default=UNSET, - description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", + description="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" ) - maintainer_can_modify: Missing[bool] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + description="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(ReposOwnerRepoPullsPullNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1139.py b/githubkit/versions/v2022_11_28/models/group_1139.py index 3bd074c1a..9864ba3e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1139.py +++ b/githubkit/versions/v2022_11_28/models/group_1139.py @@ -18,48 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - 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.", + 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`." ) - 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.", + path: str = Field( + description="The relative path to the file that necessitates a comment." ) - client_ip: Missing[str] = Field( + position: Missing[int] = Field( default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" + description='**This 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.', ) - devcontainer_path: Missing[str] = Field( + side: Missing[Literal["LEFT", "RIGHT"]] = Field( default=UNSET, - description="Path to devcontainer.json config to use for this codespace", + 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.', ) - multi_repo_permissions_opt_out: Missing[bool] = Field( + line: Missing[int] = Field( default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", + 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.", ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( + start_line: Missing[int] = Field( default=UNSET, - description="Time in minutes before codespace stops from inactivity", + 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.', ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( + default=UNSET, + description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', ) - retention_period_minutes: Missing[int] = Field( + in_reply_to: 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).", + 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(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1140.py b/githubkit/versions/v2022_11_28/models/group_1140.py index 9864ba3e9..19ce96346 100644 --- a/githubkit/versions/v2022_11_28/models/group_1140.py +++ b/githubkit/versions/v2022_11_28/models/group_1140.py @@ -9,54 +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 ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" body: str = Field(description="The text of the review comment.") - commit_id: str = Field( - description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." - ) - path: str = Field( - description="The relative path to the file that necessitates a comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', - ) - line: Missing[int] = Field( - default=UNSET, - description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", - ) - start_line: Missing[int] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', - ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', - ) - in_reply_to: Missing[int] = Field( - default=UNSET, - description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) + + +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1141.py b/githubkit/versions/v2022_11_28/models/group_1141.py index 19ce96346..ea6df3d24 100644 --- a/githubkit/versions/v2022_11_28/models/group_1141.py +++ b/githubkit/versions/v2022_11_28/models/group_1141.py @@ -9,17 +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 -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - body: str = Field(description="The text of the review comment.") + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." + ) + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." + ) + sha: Missing[str] = Field( + default=UNSET, + description="SHA that pull request head must match to allow merge.", + ) + merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( + default=UNSET, description="The merge method to use." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1142.py b/githubkit/versions/v2022_11_28/models/group_1142.py index ea6df3d24..d66d3bdba 100644 --- a/githubkit/versions/v2022_11_28/models/group_1142.py +++ b/githubkit/versions/v2022_11_28/models/group_1142.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,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - commit_title: Missing[str] = Field( - default=UNSET, description="Title for the automatic commit message." - ) - commit_message: Missing[str] = Field( - default=UNSET, description="Extra detail to append to automatic commit message." - ) - sha: Missing[str] = Field( - default=UNSET, - description="SHA that pull request head must match to allow merge.", - ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/v2022_11_28/models/group_1143.py b/githubkit/versions/v2022_11_28/models/group_1143.py index d66d3bdba..bd6450076 100644 --- a/githubkit/versions/v2022_11_28/models/group_1143.py +++ b/githubkit/versions/v2022_11_28/models/group_1143.py @@ -16,13 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/v2022_11_28/models/group_1144.py b/githubkit/versions/v2022_11_28/models/group_1144.py index bd6450076..902cd85dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1144.py +++ b/githubkit/versions/v2022_11_28/models/group_1144.py @@ -16,13 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + 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(ReposOwnerRepoPullsPullNumberMergePutResponse409) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1145.py b/githubkit/versions/v2022_11_28/models/group_1145.py index 902cd85dd..a68a64ae9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1145.py +++ b/githubkit/versions/v2022_11_28/models/group_1145.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be requested." + reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." + team_reviewers: list[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1146.py b/githubkit/versions/v2022_11_28/models/group_1146.py index a68a64ae9..80abd70e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1146.py +++ b/githubkit/versions/v2022_11_28/models/group_1146.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." + reviewers: list[str] = Field( + description="An array of user `login`s that will be removed." ) - team_reviewers: list[str] = Field( - description="An array of team `slug`s that will be requested." + team_reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1147.py b/githubkit/versions/v2022_11_28/models/group_1147.py index 80abd70e6..1be7fba9c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1147.py +++ b/githubkit/versions/v2022_11_28/models/group_1147.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,50 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" + + commit_id: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", + ) + body: Missing[str] = Field( + default=UNSET, + description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", + ) + event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( + default=UNSET, + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", + ) + comments: Missing[ + list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] + ] = Field( + default=UNSET, + description="Use the following table to specify the location, destination, and contents of the draft review comment.", + ) + + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be removed." + path: str = Field( + description="The relative path to the file that necessitates a review comment." ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." + 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(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1148.py b/githubkit/versions/v2022_11_28/models/group_1148.py index 1be7fba9c..60600e7a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1148.py +++ b/githubkit/versions/v2022_11_28/models/group_1148.py @@ -9,59 +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 ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - - commit_id: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", - ) - body: Missing[str] = Field( - default=UNSET, - description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", - ) - event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( - default=UNSET, - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", - ) - comments: Missing[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] - ] = Field( - default=UNSET, - description="Use the following table to specify the location, destination, and contents of the draft review comment.", - ) -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - 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) + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1149.py b/githubkit/versions/v2022_11_28/models/group_1149.py index 60600e7a7..0c8535339 100644 --- a/githubkit/versions/v2022_11_28/models/group_1149.py +++ b/githubkit/versions/v2022_11_28/models/group_1149.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 ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - body: str = Field(description="The body text of the pull request review.") + message: str = Field( + description="The message for the pull request review dismissal" + ) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1150.py b/githubkit/versions/v2022_11_28/models/group_1150.py index 0c8535339..6298e6dda 100644 --- a/githubkit/versions/v2022_11_28/models/group_1150.py +++ b/githubkit/versions/v2022_11_28/models/group_1150.py @@ -18,15 +18,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - message: str = Field( - description="The message for the pull request review dismissal" + 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." ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1151.py b/githubkit/versions/v2022_11_28/models/group_1151.py index 6298e6dda..5c360c212 100644 --- a/githubkit/versions/v2022_11_28/models/group_1151.py +++ b/githubkit/versions/v2022_11_28/models/group_1151.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,17 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - 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." + expected_head_sha: Missing[str] = Field( + default=UNSET, + description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1152.py b/githubkit/versions/v2022_11_28/models/group_1152.py index 5c360c212..0846546b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1152.py +++ b/githubkit/versions/v2022_11_28/models/group_1152.py @@ -16,15 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - expected_head_sha: Missing[str] = Field( - default=UNSET, - description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1153.py b/githubkit/versions/v2022_11_28/models/group_1153.py index 0846546b8..fdc33867d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1153.py +++ b/githubkit/versions/v2022_11_28/models/group_1153.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,40 @@ 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",) +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" + + tag_name: str = Field(description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` to create a draft (unpublished) release, `false` to create a published one.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + ) + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + ) + generate_release_notes: Missing[bool] = Field( + default=UNSET, + description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", + ) + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + default=UNSET, + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + ) + + +model_rebuild(ReposOwnerRepoReleasesPostBody) + +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1154.py b/githubkit/versions/v2022_11_28/models/group_1154.py index fdc33867d..1c74bbef7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1154.py +++ b/githubkit/versions/v2022_11_28/models/group_1154.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,40 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesPostBody(GitHubModel): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - 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( + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + description="An alternate short description of the asset. Used in place of the filename.", ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesPostBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesPostBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1155.py b/githubkit/versions/v2022_11_28/models/group_1155.py index 1c74bbef7..05de52925 100644 --- a/githubkit/versions/v2022_11_28/models/group_1155.py +++ b/githubkit/versions/v2022_11_28/models/group_1155.py @@ -16,17 +16,26 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( + 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="An alternate short description of the asset. Used in place of the filename.", + 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.", ) - state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1156.py b/githubkit/versions/v2022_11_28/models/group_1156.py index 05de52925..814041621 100644 --- a/githubkit/versions/v2022_11_28/models/group_1156.py +++ b/githubkit/versions/v2022_11_28/models/group_1156.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,36 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - tag_name: str = Field( - description="The tag name for the release. This can be an existing tag or a new one." - ) + 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 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="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.", ) - previous_tag_name: Missing[str] = Field( + make_latest: Missing[Literal["true", "false", "legacy"]] = 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="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.", ) - configuration_file_path: Missing[str] = Field( + discussion_category_name: Missing[str] = Field( default=UNSET, - description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", + description='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(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1157.py b/githubkit/versions/v2022_11_28/models/group_1157.py index 814041621..8f99969f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1157.py +++ b/githubkit/versions/v2022_11_28/models/group_1157.py @@ -14,40 +14,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - 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)."', + 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(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1158.py b/githubkit/versions/v2022_11_28/models/group_1158.py index 8f99969f6..4b11dcd58 100644 --- a/githubkit/versions/v2022_11_28/models/group_1158.py +++ b/githubkit/versions/v2022_11_28/models/group_1158.py @@ -9,21 +9,89 @@ 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_0127 import RepositoryRulesetBypassActor +from .group_0128 import RepositoryRulesetConditions +from .group_0139 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0140 import RepositoryRuleUpdate +from .group_0142 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleMergeQueue +from .group_0145 import RepositoryRuleRequiredDeployments +from .group_0148 import RepositoryRulePullRequest +from .group_0150 import RepositoryRuleRequiredStatusChecks +from .group_0152 import RepositoryRuleCommitMessagePattern +from .group_0154 import RepositoryRuleCommitAuthorEmailPattern +from .group_0156 import RepositoryRuleCommitterEmailPattern +from .group_0158 import RepositoryRuleBranchNamePattern +from .group_0160 import RepositoryRuleTagNamePattern +from .group_0162 import RepositoryRuleFilePathRestriction +from .group_0164 import RepositoryRuleMaxFilePathLength +from .group_0166 import RepositoryRuleFileExtensionRestriction +from .group_0168 import RepositoryRuleMaxFileSize +from .group_0171 import RepositoryRuleWorkflows +from .group_0173 import RepositoryRuleCodeScanning -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - 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." +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, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoRulesetsPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1159.py b/githubkit/versions/v2022_11_28/models/group_1159.py index 8da357016..86ce64769 100644 --- a/githubkit/versions/v2022_11_28/models/group_1159.py +++ b/githubkit/versions/v2022_11_28/models/group_1159.py @@ -17,42 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0125 import RepositoryRulesetBypassActor -from .group_0126 import RepositoryRulesetConditions -from .group_0137 import ( +from .group_0127 import RepositoryRulesetBypassActor +from .group_0128 import RepositoryRulesetConditions +from .group_0139 import ( RepositoryRuleCreation, RepositoryRuleDeletion, RepositoryRuleNonFastForward, RepositoryRuleRequiredSignatures, ) -from .group_0138 import RepositoryRuleUpdate -from .group_0140 import RepositoryRuleRequiredLinearHistory -from .group_0141 import RepositoryRuleMergeQueue -from .group_0143 import RepositoryRuleRequiredDeployments -from .group_0146 import RepositoryRulePullRequest -from .group_0148 import RepositoryRuleRequiredStatusChecks -from .group_0150 import RepositoryRuleCommitMessagePattern -from .group_0152 import RepositoryRuleCommitAuthorEmailPattern -from .group_0154 import RepositoryRuleCommitterEmailPattern -from .group_0156 import RepositoryRuleBranchNamePattern -from .group_0158 import RepositoryRuleTagNamePattern -from .group_0160 import RepositoryRuleFilePathRestriction -from .group_0162 import RepositoryRuleMaxFilePathLength -from .group_0164 import RepositoryRuleFileExtensionRestriction -from .group_0166 import RepositoryRuleMaxFileSize -from .group_0169 import RepositoryRuleWorkflows -from .group_0171 import RepositoryRuleCodeScanning +from .group_0140 import RepositoryRuleUpdate +from .group_0142 import RepositoryRuleRequiredLinearHistory +from .group_0143 import RepositoryRuleMergeQueue +from .group_0145 import RepositoryRuleRequiredDeployments +from .group_0148 import RepositoryRulePullRequest +from .group_0150 import RepositoryRuleRequiredStatusChecks +from .group_0152 import RepositoryRuleCommitMessagePattern +from .group_0154 import RepositoryRuleCommitAuthorEmailPattern +from .group_0156 import RepositoryRuleCommitterEmailPattern +from .group_0158 import RepositoryRuleBranchNamePattern +from .group_0160 import RepositoryRuleTagNamePattern +from .group_0162 import RepositoryRuleFilePathRestriction +from .group_0164 import RepositoryRuleMaxFilePathLength +from .group_0166 import RepositoryRuleFileExtensionRestriction +from .group_0168 import RepositoryRuleMaxFileSize +from .group_0171 import RepositoryRuleWorkflows +from .group_0173 import RepositoryRuleCodeScanning -class ReposOwnerRepoRulesetsPostBody(GitHubModel): - """ReposOwnerRepoRulesetsPostBody""" +class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" - name: str = Field(description="The name of the ruleset.") + 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: 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)." + 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, @@ -92,6 +93,6 @@ class ReposOwnerRepoRulesetsPostBody(GitHubModel): ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1160.py b/githubkit/versions/v2022_11_28/models/group_1160.py index e5dbc81ae..d03e15fb0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1160.py +++ b/githubkit/versions/v2022_11_28/models/group_1160.py @@ -17,82 +17,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0125 import RepositoryRulesetBypassActor -from .group_0126 import RepositoryRulesetConditions -from .group_0137 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0138 import RepositoryRuleUpdate -from .group_0140 import RepositoryRuleRequiredLinearHistory -from .group_0141 import RepositoryRuleMergeQueue -from .group_0143 import RepositoryRuleRequiredDeployments -from .group_0146 import RepositoryRulePullRequest -from .group_0148 import RepositoryRuleRequiredStatusChecks -from .group_0150 import RepositoryRuleCommitMessagePattern -from .group_0152 import RepositoryRuleCommitAuthorEmailPattern -from .group_0154 import RepositoryRuleCommitterEmailPattern -from .group_0156 import RepositoryRuleBranchNamePattern -from .group_0158 import RepositoryRuleTagNamePattern -from .group_0160 import RepositoryRuleFilePathRestriction -from .group_0162 import RepositoryRuleMaxFilePathLength -from .group_0164 import RepositoryRuleFileExtensionRestriction -from .group_0166 import RepositoryRuleMaxFileSize -from .group_0169 import RepositoryRuleWorkflows -from .group_0171 import RepositoryRuleCodeScanning +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" -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).", + 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`." ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - conditions: Missing[RepositoryRulesetConditions] = Field( + resolution_comment: Missing[Union[str, None]] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + description="An optional comment when closing or reopening an alert. Cannot be updated or deleted.", ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1161.py b/githubkit/versions/v2022_11_28/models/group_1161.py index d03e15fb0..decc899b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1161.py +++ b/githubkit/versions/v2022_11_28/models/group_1161.py @@ -9,33 +9,24 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - 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`." + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( + description="The reason for bypassing push protection." ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when closing or reopening an alert. Cannot be updated or deleted.", + placeholder_id: str = Field( + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." ) -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1162.py b/githubkit/versions/v2022_11_28/models/group_1162.py index decc899b3..e513640d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1162.py +++ b/githubkit/versions/v2022_11_28/models/group_1162.py @@ -9,24 +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 -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( - description="The reason for bypassing push protection." + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." ) - placeholder_id: str = Field( - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." + 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(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1163.py b/githubkit/versions/v2022_11_28/models/group_1163.py index e513640d6..892aedcd1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1163.py +++ b/githubkit/versions/v2022_11_28/models/group_1163.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,19 @@ from githubkit.utils import UNSET -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." - ) - target_url: Missing[Union[str, None]] = Field( + subscribed: 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: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." + description="Determines if notifications should be received from this repository.", ) - context: Missing[str] = Field( + ignored: Missing[bool] = Field( default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + description="Determines if all notifications should be blocked from this repository.", ) -model_rebuild(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1164.py b/githubkit/versions/v2022_11_28/models/group_1164.py index 892aedcd1..59aae89ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1164.py +++ b/githubkit/versions/v2022_11_28/models/group_1164.py @@ -12,23 +12,16 @@ 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 ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - 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.", + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." ) -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1165.py b/githubkit/versions/v2022_11_28/models/group_1165.py index 59aae89ec..0e1dc53ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1165.py +++ b/githubkit/versions/v2022_11_28/models/group_1165.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." + 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(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoTopicsPutBody) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1166.py b/githubkit/versions/v2022_11_28/models/group_1166.py index 0e1dc53ec..df5879cb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1166.py +++ b/githubkit/versions/v2022_11_28/models/group_1166.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 -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - 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." + 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(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1167.py b/githubkit/versions/v2022_11_28/models/group_1167.py index df5879cb9..91764e3b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1167.py +++ b/githubkit/versions/v2022_11_28/models/group_1167.py @@ -16,21 +16,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - new_owner: str = Field( - description="The username or organization name the repository will be transferred to." + 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." ) - new_name: Missing[str] = Field( - default=UNSET, description="The new name to be given to the 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`.", ) - team_ids: Missing[list[int]] = Field( + private: Missing[bool] = 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="Either `true` to create a new private repository or `false` to create a new public one.", ) -model_rebuild(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1168.py b/githubkit/versions/v2022_11_28/models/group_1168.py index 91764e3b1..b47b92a02 100644 --- a/githubkit/versions/v2022_11_28/models/group_1168.py +++ b/githubkit/versions/v2022_11_28/models/group_1168.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,27 +18,32 @@ from githubkit.utils import UNSET -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" - 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.") + name: str = Field(description="The name of the team.") description: Missing[str] = Field( - default=UNSET, description="A short description of the new repository." + default=UNSET, description="The description of the team." ) - include_all_branches: Missing[bool] = Field( + privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + description="The 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.", ) - private: Missing[bool] = Field( + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + 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(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(TeamsTeamIdPatchBody) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1169.py b/githubkit/versions/v2022_11_28/models/group_1169.py index b47b92a02..89bdf737f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1169.py +++ b/githubkit/versions/v2022_11_28/models/group_1169.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,32 +16,17 @@ from githubkit.utils import UNSET -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" - 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( + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( default=UNSET, - description="The 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="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(TeamsTeamIdPatchBody) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ("TeamsTeamIdPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1170.py b/githubkit/versions/v2022_11_28/models/group_1170.py index 89bdf737f..01b62eeb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1170.py +++ b/githubkit/versions/v2022_11_28/models/group_1170.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 TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" + + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." + ) + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) -model_rebuild(TeamsTeamIdDiscussionsPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1171.py b/githubkit/versions/v2022_11_28/models/group_1171.py index 01b62eeb5..2333d1363 100644 --- a/githubkit/versions/v2022_11_28/models/group_1171.py +++ b/githubkit/versions/v2022_11_28/models/group_1171.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 TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - 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." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1172.py b/githubkit/versions/v2022_11_28/models/group_1172.py index 2333d1363..a44a260ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_1172.py +++ b/githubkit/versions/v2022_11_28/models/group_1172.py @@ -14,12 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" body: str = Field(description="The discussion comment's body text.") -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1173.py b/githubkit/versions/v2022_11_28/models/group_1173.py index a44a260ff..df888d74e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1173.py +++ b/githubkit/versions/v2022_11_28/models/group_1173.py @@ -9,17 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - body: str = Field(description="The discussion comment's body text.") + 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(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1174.py b/githubkit/versions/v2022_11_28/models/group_1174.py index df888d74e..1657765ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_1174.py +++ b/githubkit/versions/v2022_11_28/models/group_1174.py @@ -16,22 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" 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." + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1175.py b/githubkit/versions/v2022_11_28/models/group_1175.py index 1657765ee..db25cce3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1175.py +++ b/githubkit/versions/v2022_11_28/models/group_1175.py @@ -14,18 +14,18 @@ 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 TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - 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." + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1176.py b/githubkit/versions/v2022_11_28/models/group_1176.py index db25cce3b..50f0b2952 100644 --- a/githubkit/versions/v2022_11_28/models/group_1176.py +++ b/githubkit/versions/v2022_11_28/models/group_1176.py @@ -18,14 +18,15 @@ from githubkit.utils import UNSET -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", ) -model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1177.py b/githubkit/versions/v2022_11_28/models/group_1177.py index 50f0b2952..4a3155ea1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1177.py +++ b/githubkit/versions/v2022_11_28/models/group_1177.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 TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - 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).\"", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_1178.py b/githubkit/versions/v2022_11_28/models/group_1178.py index 4a3155ea1..726eb0c42 100644 --- a/githubkit/versions/v2022_11_28/models/group_1178.py +++ b/githubkit/versions/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,13 +18,15 @@ from githubkit.utils import UNSET -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + 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(TeamsTeamIdProjectsProjectIdPutResponse403) +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1179.py b/githubkit/versions/v2022_11_28/models/group_1179.py index 726eb0c42..7a471250b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1179.py +++ b/githubkit/versions/v2022_11_28/models/group_1179.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,15 +18,33 @@ from githubkit.utils import UNSET -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class UserPatchBody(GitHubModel): + """UserPatchBody""" - 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.", + 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(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(UserPatchBody) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1180.py b/githubkit/versions/v2022_11_28/models/group_1180.py index 7a471250b..9e46cde61 100644 --- a/githubkit/versions/v2022_11_28/models/group_1180.py +++ b/githubkit/versions/v2022_11_28/models/group_1180.py @@ -9,42 +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 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",) + +from .group_0093 import Codespace + + +class UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" + + total_count: int = Field() + codespaces: list[Codespace] = Field() + + +model_rebuild(UserCodespacesGetResponse200) + +__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1181.py b/githubkit/versions/v2022_11_28/models/group_1181.py index 1ae5ebe67..d698dac84 100644 --- a/githubkit/versions/v2022_11_28/models/group_1181.py +++ b/githubkit/versions/v2022_11_28/models/group_1181.py @@ -9,20 +9,62 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0091 import Codespace +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + 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(UserCodespacesGetResponse200) +model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("UserCodespacesGetResponse200",) +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1182.py b/githubkit/versions/v2022_11_28/models/group_1182.py index d698dac84..66fe98e84 100644 --- a/githubkit/versions/v2022_11_28/models/group_1182.py +++ b/githubkit/versions/v2022_11_28/models/group_1182.py @@ -18,13 +18,11 @@ from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" - 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", + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" ) location: Missing[str] = Field( default=UNSET, @@ -34,10 +32,6 @@ class UserCodespacesPostBodyOneof0(GitHubModel): default=UNSET, description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is 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" ) @@ -45,10 +39,6 @@ class UserCodespacesPostBodyOneof0(GitHubModel): default=UNSET, description="Path to devcontainer.json config to use for this codespace", ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) working_directory: Missing[str] = Field( default=UNSET, description="Working directory for this codespace" ) @@ -56,15 +46,22 @@ class UserCodespacesPostBodyOneof0(GitHubModel): default=UNSET, description="Time in minutes before codespace stops from inactivity", ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) -model_rebuild(UserCodespacesPostBodyOneof0) +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__ = ("UserCodespacesPostBodyOneof0",) +__all__ = ( + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1183.py b/githubkit/versions/v2022_11_28/models/group_1183.py index 66fe98e84..860690ae3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1183.py +++ b/githubkit/versions/v2022_11_28/models/group_1183.py @@ -9,59 +9,46 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" - 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", - ) + total_count: int = Field() + secrets: list[CodespacesSecret] = Field() -class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): - """UserCodespacesPostBodyOneof1PropPullRequest +class CodespacesSecret(GitHubModel): + """Codespaces Secret - Pull request number for this codespace + Secrets for a GitHub Codespace. """ - pull_request_number: int = Field(description="Pull request number") - repository_id: int = Field(description="Repository id for this codespace") + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: str = Field( + description="The API URL at which the list of repositories this secret is visible to can be retrieved" + ) -model_rebuild(UserCodespacesPostBodyOneof1) -model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) __all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", + "CodespacesSecret", + "UserCodespacesSecretsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1184.py b/githubkit/versions/v2022_11_28/models/group_1184.py index 860690ae3..0ff38d47b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1184.py +++ b/githubkit/versions/v2022_11_28/models/group_1184.py @@ -9,46 +9,30 @@ 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 UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" - 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" + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", ) - selected_repositories_url: str = Field( - description="The API URL at which the list of repositories this secret is visible to can be retrieved" + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + selected_repository_ids: Missing[list[Union[int, str]]] = Field( + default=UNSET, + description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", ) -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -__all__ = ( - "CodespacesSecret", - "UserCodespacesSecretsGetResponse200", -) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1185.py b/githubkit/versions/v2022_11_28/models/group_1185.py index 0ff38d47b..922df2171 100644 --- a/githubkit/versions/v2022_11_28/models/group_1185.py +++ b/githubkit/versions/v2022_11_28/models/group_1185.py @@ -9,30 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0063 import MinimalRepository -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - selected_repository_ids: Missing[list[Union[int, str]]] = Field( - default=UNSET, - description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(UserCodespacesSecretsSecretNamePutBody) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1186.py b/githubkit/versions/v2022_11_28/models/group_1186.py index 794e5289f..9bee2d8e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1186.py +++ b/githubkit/versions/v2022_11_28/models/group_1186.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import MinimalRepository +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] = Field( + description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1187.py b/githubkit/versions/v2022_11_28/models/group_1187.py index 9bee2d8e5..279933b1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1187.py +++ b/githubkit/versions/v2022_11_28/models/group_1187.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 -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" - 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." + 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(UserCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(UserCodespacesCodespaceNamePatchBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1188.py b/githubkit/versions/v2022_11_28/models/group_1188.py index 279933b1d..311228166 100644 --- a/githubkit/versions/v2022_11_28/models/group_1188.py +++ b/githubkit/versions/v2022_11_28/models/group_1188.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_0092 import CodespaceMachine -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.", - ) +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -model_rebuild(UserCodespacesCodespaceNamePatchBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1189.py b/githubkit/versions/v2022_11_28/models/group_1189.py index 135e2a57a..874e87674 100644 --- a/githubkit/versions/v2022_11_28/models/group_1189.py +++ b/githubkit/versions/v2022_11_28/models/group_1189.py @@ -12,17 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0090 import CodespaceMachine +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." + ) - total_count: int = Field() - machines: list[CodespaceMachine] = Field() +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1190.py b/githubkit/versions/v2022_11_28/models/group_1190.py index 874e87674..04c6a0578 100644 --- a/githubkit/versions/v2022_11_28/models/group_1190.py +++ b/githubkit/versions/v2022_11_28/models/group_1190.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 UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" - 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." + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." ) -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) +model_rebuild(UserEmailVisibilityPatchBody) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1191.py b/githubkit/versions/v2022_11_28/models/group_1191.py index 04c6a0578..323704de5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1191.py +++ b/githubkit/versions/v2022_11_28/models/group_1191.py @@ -9,21 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." + 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(UserEmailVisibilityPatchBody) +model_rebuild(UserEmailsPostBodyOneof0) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1192.py b/githubkit/versions/v2022_11_28/models/group_1192.py index 323704de5..361a2d243 100644 --- a/githubkit/versions/v2022_11_28/models/group_1192.py +++ b/githubkit/versions/v2022_11_28/models/group_1192.py @@ -14,8 +14,13 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 +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']} @@ -23,10 +28,10 @@ class UserEmailsPostBodyOneof0(GitHubModel): 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.", + description="Email addresses associated with the GitHub user account.", ) -model_rebuild(UserEmailsPostBodyOneof0) +model_rebuild(UserEmailsDeleteBodyOneof0) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1193.py b/githubkit/versions/v2022_11_28/models/group_1193.py index 361a2d243..2f1994e20 100644 --- a/githubkit/versions/v2022_11_28/models/group_1193.py +++ b/githubkit/versions/v2022_11_28/models/group_1193.py @@ -11,27 +11,20 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" - 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.", + 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(UserEmailsDeleteBodyOneof0) +model_rebuild(UserGpgKeysPostBody) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1194.py b/githubkit/versions/v2022_11_28/models/group_1194.py index 2f1994e20..436810cf8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1194.py +++ b/githubkit/versions/v2022_11_28/models/group_1194.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_0018 import Installation -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.") +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" + total_count: int = Field() + installations: list[Installation] = Field() -model_rebuild(UserGpgKeysPostBody) -__all__ = ("UserGpgKeysPostBody",) +model_rebuild(UserInstallationsGetResponse200) + +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1195.py b/githubkit/versions/v2022_11_28/models/group_1195.py index 436810cf8..867314a9d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1195.py +++ b/githubkit/versions/v2022_11_28/models/group_1195.py @@ -12,17 +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_0018 import Installation +from .group_0020 import Repository -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" total_count: int = Field() - installations: list[Installation] = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: list[Repository] = Field() -model_rebuild(UserInstallationsGetResponse200) +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1196.py b/githubkit/versions/v2022_11_28/models/group_1196.py index 867314a9d..09cbf54e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1196.py +++ b/githubkit/versions/v2022_11_28/models/group_1196.py @@ -9,23 +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_0020 import Repository - -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" - total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: list[Repository] = Field() +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1197.py b/githubkit/versions/v2022_11_28/models/group_1197.py index 09cbf54e3..b55f576db 100644 --- a/githubkit/versions/v2022_11_28/models/group_1197.py +++ b/githubkit/versions/v2022_11_28/models/group_1197.py @@ -9,13 +9,25 @@ 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""" -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" + 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(UserInteractionLimitsGetResponse200Anyof1) +model_rebuild(UserKeysPostBody) -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1198.py b/githubkit/versions/v2022_11_28/models/group_1198.py index b55f576db..9b771b5c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1198.py +++ b/githubkit/versions/v2022_11_28/models/group_1198.py @@ -9,25 +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 UserKeysPostBody(GitHubModel): - """UserKeysPostBody""" +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" - 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.", + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' ) -model_rebuild(UserKeysPostBody) +model_rebuild(UserMembershipsOrgsOrgPatchBody) -__all__ = ("UserKeysPostBody",) +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1199.py b/githubkit/versions/v2022_11_28/models/group_1199.py index 9b771b5c3..f7179f26c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1199.py +++ b/githubkit/versions/v2022_11_28/models/group_1199.py @@ -14,16 +14,46 @@ 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 UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' + 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(UserMembershipsOrgsOrgPatchBody) +model_rebuild(UserMigrationsPostBody) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1200.py b/githubkit/versions/v2022_11_28/models/group_1200.py index f7179f26c..4a4feed8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1200.py +++ b/githubkit/versions/v2022_11_28/models/group_1200.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,42 +18,15 @@ from githubkit.utils import UNSET -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, description="Do not include attachments in the migration" - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[list[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude attributes from the API response to improve performance", - ) - repositories: list[str] = Field() -model_rebuild(UserMigrationsPostBody) +model_rebuild(UserProjectsPostBody) -__all__ = ("UserMigrationsPostBody",) +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1201.py b/githubkit/versions/v2022_11_28/models/group_1201.py index 4a4feed8c..422fe894e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1201.py +++ b/githubkit/versions/v2022_11_28/models/group_1201.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,15 +18,93 @@ from githubkit.utils import UNSET -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" - name: str = Field(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 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(UserProjectsPostBody) +model_rebuild(UserReposPostBody) -__all__ = ("UserProjectsPostBody",) +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1202.py b/githubkit/versions/v2022_11_28/models/group_1202.py index 422fe894e..4608b8021 100644 --- a/githubkit/versions/v2022_11_28/models/group_1202.py +++ b/githubkit/versions/v2022_11_28/models/group_1202.py @@ -9,102 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - has_issues: Missing[bool] = Field( - default=UNSET, description="Whether issues are enabled." - ) - has_projects: Missing[bool] = Field( - default=UNSET, description="Whether projects are enabled." - ) - has_wiki: Missing[bool] = Field( - default=UNSET, description="Whether the wiki is enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Whether the repository is initialized with a minimal README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description="The desired language or platform to apply to the .gitignore.", - ) - license_template: Missing[str] = Field( - default=UNSET, - description="The license keyword of the open source license for this repository.", - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", + Examples: + {'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(UserReposPostBody) +model_rebuild(UserSocialAccountsPostBody) -__all__ = ("UserReposPostBody",) +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1203.py b/githubkit/versions/v2022_11_28/models/group_1203.py index 4608b8021..6c8803a2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1203.py +++ b/githubkit/versions/v2022_11_28/models/group_1203.py @@ -14,8 +14,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody Examples: {'account_urls': ['https://www.linkedin.com/company/github/', @@ -23,10 +23,10 @@ class UserSocialAccountsPostBody(GitHubModel): """ account_urls: list[str] = Field( - description="Full URLs for the social media profiles to add." + description="Full URLs for the social media profiles to delete." ) -model_rebuild(UserSocialAccountsPostBody) +model_rebuild(UserSocialAccountsDeleteBody) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1204.py b/githubkit/versions/v2022_11_28/models/group_1204.py index 6c8803a2d..286ec8ff2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1204.py +++ b/githubkit/versions/v2022_11_28/models/group_1204.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 UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" - 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." + 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(UserSocialAccountsDeleteBody) +model_rebuild(UserSshSigningKeysPostBody) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1205.py b/githubkit/versions/v2022_11_28/models/group_1205.py index 286ec8ff2..314d6ebd3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1205.py +++ b/githubkit/versions/v2022_11_28/models/group_1205.py @@ -11,23 +11,25 @@ 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 UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" +class UsersUsernameAttestationsBulkListPostBody(GitHubModel): + """UsersUsernameAttestationsBulkListPostBody""" - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests to fetch attestations for.", ) - 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)."', + predicate_type: Missing[str] = Field( + default=UNSET, + description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", ) -model_rebuild(UserSshSigningKeysPostBody) +model_rebuild(UsersUsernameAttestationsBulkListPostBody) -__all__ = ("UserSshSigningKeysPostBody",) +__all__ = ("UsersUsernameAttestationsBulkListPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1206.py b/githubkit/versions/v2022_11_28/models/group_1206.py index 314d6ebd3..cb60a1e7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1206.py +++ b/githubkit/versions/v2022_11_28/models/group_1206.py @@ -11,25 +11,59 @@ 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 UsersUsernameAttestationsBulkListPostBody(GitHubModel): - """UsersUsernameAttestationsBulkListPostBody""" +class UsersUsernameAttestationsBulkListPostResponse200(GitHubModel): + """UsersUsernameAttestationsBulkListPostResponse200""" - subject_digests: list[str] = Field( - max_length=1024 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="List of subject digests to fetch attestations for.", + attestations_subject_digests: Missing[ + UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") + page_info: Missing[UsersUsernameAttestationsBulkListPostResponse200PropPageInfo] = ( + Field(default=UNSET, description="Information about the current page.") ) - predicate_type: Missing[str] = Field( - default=UNSET, - description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", + + +class UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( + ExtraGitHubModel +): + """UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + + Mapping of subject digest to bundles. + """ + + +class UsersUsernameAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): + """UsersUsernameAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a next page." + ) + has_previous: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a previous page." + ) + next_: Missing[str] = Field( + default=UNSET, alias="next", description="The cursor to the next page." + ) + previous: Missing[str] = Field( + default=UNSET, description="The cursor to the previous page." ) -model_rebuild(UsersUsernameAttestationsBulkListPostBody) +model_rebuild(UsersUsernameAttestationsBulkListPostResponse200) +model_rebuild( + UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests +) +model_rebuild(UsersUsernameAttestationsBulkListPostResponse200PropPageInfo) -__all__ = ("UsersUsernameAttestationsBulkListPostBody",) +__all__ = ( + "UsersUsernameAttestationsBulkListPostResponse200", + "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "UsersUsernameAttestationsBulkListPostResponse200PropPageInfo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1207.py b/githubkit/versions/v2022_11_28/models/group_1207.py index cb60a1e7e..b2dd1e918 100644 --- a/githubkit/versions/v2022_11_28/models/group_1207.py +++ b/githubkit/versions/v2022_11_28/models/group_1207.py @@ -11,59 +11,19 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class UsersUsernameAttestationsBulkListPostResponse200(GitHubModel): - """UsersUsernameAttestationsBulkListPostResponse200""" +class UsersUsernameAttestationsDeleteRequestPostBodyOneof0(GitHubModel): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" - attestations_subject_digests: Missing[ - UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests - ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") - page_info: Missing[UsersUsernameAttestationsBulkListPostResponse200PropPageInfo] = ( - Field(default=UNSET, description="Information about the current page.") + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests associated with the artifact attestations to delete.", ) -class UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( - ExtraGitHubModel -): - """UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests +model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof0) - Mapping of subject digest to bundles. - """ - - -class UsersUsernameAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): - """UsersUsernameAttestationsBulkListPostResponse200PropPageInfo - - Information about the current page. - """ - - has_next: Missing[bool] = Field( - default=UNSET, description="Indicates whether there is a next page." - ) - has_previous: Missing[bool] = Field( - default=UNSET, description="Indicates whether there is a previous page." - ) - next_: Missing[str] = Field( - default=UNSET, alias="next", description="The cursor to the next page." - ) - previous: Missing[str] = Field( - default=UNSET, description="The cursor to the previous page." - ) - - -model_rebuild(UsersUsernameAttestationsBulkListPostResponse200) -model_rebuild( - UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests -) -model_rebuild(UsersUsernameAttestationsBulkListPostResponse200PropPageInfo) - -__all__ = ( - "UsersUsernameAttestationsBulkListPostResponse200", - "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", - "UsersUsernameAttestationsBulkListPostResponse200PropPageInfo", -) +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1208.py b/githubkit/versions/v2022_11_28/models/group_1208.py index b2dd1e918..e440ff714 100644 --- a/githubkit/versions/v2022_11_28/models/group_1208.py +++ b/githubkit/versions/v2022_11_28/models/group_1208.py @@ -14,16 +14,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class UsersUsernameAttestationsDeleteRequestPostBodyOneof0(GitHubModel): - """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" +class UsersUsernameAttestationsDeleteRequestPostBodyOneof1(GitHubModel): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" - subject_digests: list[str] = Field( + attestation_ids: list[int] = Field( max_length=1024 if PYDANTIC_V2 else None, min_length=1 if PYDANTIC_V2 else None, - description="List of subject digests associated with the artifact attestations to delete.", + description="List of unique IDs associated with the artifact attestations to delete.", ) -model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof0) +model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof1) -__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",) +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1209.py b/githubkit/versions/v2022_11_28/models/group_1209.py index e440ff714..851e1541a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1209.py +++ b/githubkit/versions/v2022_11_28/models/group_1209.py @@ -11,19 +11,87 @@ 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 UsersUsernameAttestationsDeleteRequestPostBodyOneof1(GitHubModel): - """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" +class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" - attestation_ids: list[int] = Field( - max_length=1024 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="List of unique IDs associated with the artifact attestations to delete.", + attestations: Missing[ + list[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dlePropVerificationMaterial + """ + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dlePropDsseEnvelope + """ -model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof1) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",) +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1210.py b/githubkit/versions/v2022_11_28/models/group_1210.py deleted file mode 100644 index 851e1541a..000000000 --- a/githubkit/versions/v2022_11_28/models/group_1210.py +++ /dev/null @@ -1,97 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from pydantic import Field - -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - - attestations: Missing[ - list[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( - default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", - ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dlePropVerificationMaterial - """ - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dlePropDsseEnvelope - """ - - -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) diff --git a/githubkit/versions/v2022_11_28/rest/__init__.py b/githubkit/versions/v2022_11_28/rest/__init__.py index c0ae42577..5927e869e 100644 --- a/githubkit/versions/v2022_11_28/rest/__init__.py +++ b/githubkit/versions/v2022_11_28/rest/__init__.py @@ -44,7 +44,7 @@ from .orgs import OrgsClient from .packages import PackagesClient from .private_registries import PrivateRegistriesClient - from .projects import ProjectsClient + from .projects_classic import ProjectsClassicClient from .pulls import PullsClient from .rate_limit import RateLimitClient from .reactions import ReactionsClient @@ -238,10 +238,10 @@ def private_registries(self) -> "PrivateRegistriesClient": return PrivateRegistriesClient(self._github) @cached_property - def projects(self) -> "ProjectsClient": - from .projects import ProjectsClient + def projects_classic(self) -> "ProjectsClassicClient": + from .projects_classic import ProjectsClassicClient - return ProjectsClient(self._github) + return ProjectsClassicClient(self._github) @cached_property def repos(self) -> "ReposClient": diff --git a/githubkit/versions/v2022_11_28/rest/code_security.py b/githubkit/versions/v2022_11_28/rest/code_security.py index 232c50b53..12acf6d47 100644 --- a/githubkit/versions/v2022_11_28/rest/code_security.py +++ b/githubkit/versions/v2022_11_28/rest/code_security.py @@ -39,6 +39,7 @@ from ..types import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, CodeScanningDefaultSetupOptionsType, + CodeScanningOptionsType, CodeSecurityConfigurationForRepositoryType, CodeSecurityConfigurationRepositoriesType, CodeSecurityConfigurationType, @@ -197,6 +198,7 @@ def create_configuration_for_enterprise( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -208,6 +210,7 @@ def create_configuration_for_enterprise( dependabot_security_updates: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + code_scanning_options: Missing[Union[CodeScanningOptionsType, None]] = UNSET, code_scanning_default_setup: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, @@ -217,6 +220,7 @@ def create_configuration_for_enterprise( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -321,6 +325,7 @@ async def async_create_configuration_for_enterprise( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -332,6 +337,7 @@ async def async_create_configuration_for_enterprise( dependabot_security_updates: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + code_scanning_options: Missing[Union[CodeScanningOptionsType, None]] = UNSET, code_scanning_default_setup: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, @@ -341,6 +347,7 @@ async def async_create_configuration_for_enterprise( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -691,6 +698,7 @@ def update_enterprise_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -711,6 +719,7 @@ def update_enterprise_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -821,6 +830,7 @@ async def async_update_enterprise_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -841,6 +851,7 @@ async def async_update_enterprise_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1435,7 +1446,7 @@ def get_configurations_for_org( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/rest/code-security/configurations#get-code-security-configurations-for-an-organization """ @@ -1485,7 +1496,7 @@ async def async_get_configurations_for_org( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/rest/code-security/configurations#get-code-security-configurations-for-an-organization """ @@ -1539,6 +1550,7 @@ def create_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1550,6 +1562,7 @@ def create_configuration( dependabot_security_updates: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + code_scanning_options: Missing[Union[CodeScanningOptionsType, None]] = UNSET, code_scanning_default_setup: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, @@ -1559,6 +1572,7 @@ def create_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1659,6 +1673,7 @@ async def async_create_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1670,6 +1685,7 @@ async def async_create_configuration( dependabot_security_updates: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + code_scanning_options: Missing[Union[CodeScanningOptionsType, None]] = UNSET, code_scanning_default_setup: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, @@ -1679,6 +1695,7 @@ async def async_create_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -1774,7 +1791,7 @@ def get_default_configurations( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/rest/code-security/configurations#get-default-code-security-configurations """ @@ -1815,7 +1832,7 @@ async def async_get_default_configurations( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/rest/code-security/configurations#get-default-code-security-configurations """ @@ -2181,6 +2198,7 @@ def update_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -2201,6 +2219,7 @@ def update_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -2308,6 +2327,7 @@ async def async_update_configuration( advanced_security: Missing[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] = UNSET, + code_security: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, dependency_graph_autosubmit_action: Missing[ Literal["enabled", "disabled", "not_set"] @@ -2328,6 +2348,7 @@ async def async_update_configuration( code_scanning_delegated_alert_dismissal: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + secret_protection: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, secret_scanning_push_protection: Missing[ Literal["enabled", "disabled", "not_set"] @@ -2813,7 +2834,7 @@ def get_repositories_for_configuration( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/rest/code-security/configurations#get-repositories-associated-with-a-code-security-configuration """ @@ -2869,7 +2890,7 @@ async def async_get_repositories_for_configuration( The authenticated user must be an administrator or security manager for the organization to use this endpoint. - OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. + OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. See also: https://docs.github.com/rest/code-security/configurations#get-repositories-associated-with-a-code-security-configuration """ diff --git a/githubkit/versions/v2022_11_28/rest/issues.py b/githubkit/versions/v2022_11_28/rest/issues.py index 0cb2a6eb8..5b41c028e 100644 --- a/githubkit/versions/v2022_11_28/rest/issues.py +++ b/githubkit/versions/v2022_11_28/rest/issues.py @@ -1634,7 +1634,7 @@ def update( assignee: Missing[Union[str, None]] = UNSET, state: Missing[Literal["open", "closed"]] = UNSET, state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] + Union[None, Literal["completed", "not_planned", "duplicate", "reopened"]] ] = UNSET, milestone: Missing[Union[str, int, None]] = UNSET, labels: Missing[ @@ -1740,7 +1740,7 @@ async def async_update( assignee: Missing[Union[str, None]] = UNSET, state: Missing[Literal["open", "closed"]] = UNSET, state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] + Union[None, Literal["completed", "not_planned", "duplicate", "reopened"]] ] = UNSET, milestone: Missing[Union[str, int, None]] = UNSET, labels: Missing[ @@ -3902,11 +3902,11 @@ def list_sub_issues( You can use the REST API to list the sub-issues on an issue. - This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass any specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`. - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. See also: https://docs.github.com/rest/issues/sub-issues#list-sub-issues @@ -3953,11 +3953,11 @@ async def async_list_sub_issues( You can use the REST API to list the sub-issues on an issue. - This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass any specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`. - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. See also: https://docs.github.com/rest/issues/sub-issues#list-sub-issues diff --git a/githubkit/versions/v2022_11_28/rest/private_registries.py b/githubkit/versions/v2022_11_28/rest/private_registries.py index 056a01a6c..86e0d15f3 100644 --- a/githubkit/versions/v2022_11_28/rest/private_registries.py +++ b/githubkit/versions/v2022_11_28/rest/private_registries.py @@ -177,7 +177,23 @@ def create_org_private_registry( data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, stream: bool = False, - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"], + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ], url: str, username: Missing[Union[str, None]] = UNSET, encrypted_value: str, @@ -267,7 +283,23 @@ async def async_create_org_private_registry( data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, stream: bool = False, - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"], + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ], url: str, username: Missing[Union[str, None]] = UNSET, encrypted_value: str, @@ -583,7 +615,23 @@ def update_org_private_registry( headers: Optional[Mapping[str, str]] = None, stream: bool = False, registry_type: Missing[ - Literal["maven_repository", "nuget_feed", "goproxy_server"] + Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] ] = UNSET, url: Missing[str] = UNSET, username: Missing[Union[str, None]] = UNSET, @@ -669,7 +717,23 @@ async def async_update_org_private_registry( headers: Optional[Mapping[str, str]] = None, stream: bool = False, registry_type: Missing[ - Literal["maven_repository", "nuget_feed", "goproxy_server"] + Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] ] = UNSET, url: Missing[str] = UNSET, username: Missing[Union[str, None]] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/projects.py b/githubkit/versions/v2022_11_28/rest/projects_classic.py similarity index 92% rename from githubkit/versions/v2022_11_28/rest/projects.py rename to githubkit/versions/v2022_11_28/rest/projects_classic.py index 8a1c61a07..825a6d4be 100644 --- a/githubkit/versions/v2022_11_28/rest/projects.py +++ b/githubkit/versions/v2022_11_28/rest/projects_classic.py @@ -59,7 +59,7 @@ ) -class ProjectsClient: +class ProjectsClassicClient: _REST_API_VERSION = "2022-11-28" def __init__(self, github: GitHubCore): @@ -84,7 +84,7 @@ def list_for_org( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-org + """DEPRECATED projects-classic/list-for-org GET /orgs/{org}/projects @@ -92,7 +92,7 @@ def list_for_org( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#list-organization-projects + See also: https://docs.github.com/rest/projects-classic/projects#list-organization-projects """ from ..models import Project, ValidationErrorSimple @@ -129,7 +129,7 @@ async def async_list_for_org( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-org + """DEPRECATED projects-classic/list-for-org GET /orgs/{org}/projects @@ -137,7 +137,7 @@ async def async_list_for_org( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#list-organization-projects + See also: https://docs.github.com/rest/projects-classic/projects#list-organization-projects """ from ..models import Project, ValidationErrorSimple @@ -195,7 +195,7 @@ def create_for_org( data: Missing[OrgsOrgProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-org + """DEPRECATED projects-classic/create-for-org POST /orgs/{org}/projects @@ -203,7 +203,7 @@ def create_for_org( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#create-an-organization-project + See also: https://docs.github.com/rest/projects-classic/projects#create-an-organization-project """ from ..models import ( @@ -273,7 +273,7 @@ async def async_create_for_org( data: Missing[OrgsOrgProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-org + """DEPRECATED projects-classic/create-for-org POST /orgs/{org}/projects @@ -281,7 +281,7 @@ async def async_create_for_org( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#create-an-organization-project + See also: https://docs.github.com/rest/projects-classic/projects#create-an-organization-project """ from ..models import ( @@ -327,7 +327,7 @@ def get_card( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/get-card + """DEPRECATED projects-classic/get-card GET /projects/columns/cards/{card_id} @@ -335,7 +335,7 @@ def get_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#get-a-project-card + See also: https://docs.github.com/rest/projects-classic/cards#get-a-project-card """ from ..models import BasicError, ProjectCard @@ -364,7 +364,7 @@ async def async_get_card( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/get-card + """DEPRECATED projects-classic/get-card GET /projects/columns/cards/{card_id} @@ -372,7 +372,7 @@ async def async_get_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#get-a-project-card + See also: https://docs.github.com/rest/projects-classic/cards#get-a-project-card """ from ..models import BasicError, ProjectCard @@ -401,7 +401,7 @@ def delete_card( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete-card + """DEPRECATED projects-classic/delete-card DELETE /projects/columns/cards/{card_id} @@ -409,7 +409,7 @@ def delete_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#delete-a-project-card + See also: https://docs.github.com/rest/projects-classic/cards#delete-a-project-card """ from ..models import BasicError, ProjectsColumnsCardsCardIdDeleteResponse403 @@ -437,7 +437,7 @@ async def async_delete_card( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete-card + """DEPRECATED projects-classic/delete-card DELETE /projects/columns/cards/{card_id} @@ -445,7 +445,7 @@ async def async_delete_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#delete-a-project-card + See also: https://docs.github.com/rest/projects-classic/cards#delete-a-project-card """ from ..models import BasicError, ProjectsColumnsCardsCardIdDeleteResponse403 @@ -497,7 +497,7 @@ def update_card( data: Missing[ProjectsColumnsCardsCardIdPatchBodyType] = UNSET, **kwargs, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/update-card + """DEPRECATED projects-classic/update-card PATCH /projects/columns/cards/{card_id} @@ -505,7 +505,7 @@ def update_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#update-an-existing-project-card + See also: https://docs.github.com/rest/projects-classic/cards#update-an-existing-project-card """ from ..models import ( @@ -574,7 +574,7 @@ async def async_update_card( data: Missing[ProjectsColumnsCardsCardIdPatchBodyType] = UNSET, **kwargs, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/update-card + """DEPRECATED projects-classic/update-card PATCH /projects/columns/cards/{card_id} @@ -582,7 +582,7 @@ async def async_update_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#update-an-existing-project-card + See also: https://docs.github.com/rest/projects-classic/cards#update-an-existing-project-card """ from ..models import ( @@ -660,7 +660,7 @@ def move_card( ProjectsColumnsCardsCardIdMovesPostResponse201, ProjectsColumnsCardsCardIdMovesPostResponse201Type, ]: - """DEPRECATED projects/move-card + """DEPRECATED projects-classic/move-card POST /projects/columns/cards/{card_id}/moves @@ -668,7 +668,7 @@ def move_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#move-a-project-card + See also: https://docs.github.com/rest/projects-classic/cards#move-a-project-card """ from ..models import ( @@ -748,7 +748,7 @@ async def async_move_card( ProjectsColumnsCardsCardIdMovesPostResponse201, ProjectsColumnsCardsCardIdMovesPostResponse201Type, ]: - """DEPRECATED projects/move-card + """DEPRECATED projects-classic/move-card POST /projects/columns/cards/{card_id}/moves @@ -756,7 +756,7 @@ async def async_move_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#move-a-project-card + See also: https://docs.github.com/rest/projects-classic/cards#move-a-project-card """ from ..models import ( @@ -803,7 +803,7 @@ def get_column( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/get-column + """DEPRECATED projects-classic/get-column GET /projects/columns/{column_id} @@ -811,7 +811,7 @@ def get_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#get-a-project-column + See also: https://docs.github.com/rest/projects-classic/columns#get-a-project-column """ from ..models import BasicError, ProjectColumn @@ -840,7 +840,7 @@ async def async_get_column( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/get-column + """DEPRECATED projects-classic/get-column GET /projects/columns/{column_id} @@ -848,7 +848,7 @@ async def async_get_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#get-a-project-column + See also: https://docs.github.com/rest/projects-classic/columns#get-a-project-column """ from ..models import BasicError, ProjectColumn @@ -877,7 +877,7 @@ def delete_column( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete-column + """DEPRECATED projects-classic/delete-column DELETE /projects/columns/{column_id} @@ -885,7 +885,7 @@ def delete_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#delete-a-project-column + See also: https://docs.github.com/rest/projects-classic/columns#delete-a-project-column """ from ..models import BasicError @@ -912,7 +912,7 @@ async def async_delete_column( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete-column + """DEPRECATED projects-classic/delete-column DELETE /projects/columns/{column_id} @@ -920,7 +920,7 @@ async def async_delete_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#delete-a-project-column + See also: https://docs.github.com/rest/projects-classic/columns#delete-a-project-column """ from ..models import BasicError @@ -970,7 +970,7 @@ def update_column( data: Missing[ProjectsColumnsColumnIdPatchBodyType] = UNSET, **kwargs, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/update-column + """DEPRECATED projects-classic/update-column PATCH /projects/columns/{column_id} @@ -978,7 +978,7 @@ def update_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#update-an-existing-project-column + See also: https://docs.github.com/rest/projects-classic/columns#update-an-existing-project-column """ from ..models import BasicError, ProjectColumn, ProjectsColumnsColumnIdPatchBody @@ -1039,7 +1039,7 @@ async def async_update_column( data: Missing[ProjectsColumnsColumnIdPatchBodyType] = UNSET, **kwargs, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/update-column + """DEPRECATED projects-classic/update-column PATCH /projects/columns/{column_id} @@ -1047,7 +1047,7 @@ async def async_update_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#update-an-existing-project-column + See also: https://docs.github.com/rest/projects-classic/columns#update-an-existing-project-column """ from ..models import BasicError, ProjectColumn, ProjectsColumnsColumnIdPatchBody @@ -1088,7 +1088,7 @@ def list_cards( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[ProjectCard], list[ProjectCardType]]: - """DEPRECATED projects/list-cards + """DEPRECATED projects-classic/list-cards GET /projects/columns/{column_id}/cards @@ -1096,7 +1096,7 @@ def list_cards( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#list-project-cards + See also: https://docs.github.com/rest/projects-classic/cards#list-project-cards """ from ..models import BasicError, ProjectCard @@ -1134,7 +1134,7 @@ async def async_list_cards( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[ProjectCard], list[ProjectCardType]]: - """DEPRECATED projects/list-cards + """DEPRECATED projects-classic/list-cards GET /projects/columns/{column_id}/cards @@ -1142,7 +1142,7 @@ async def async_list_cards( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#list-project-cards + See also: https://docs.github.com/rest/projects-classic/cards#list-project-cards """ from ..models import BasicError, ProjectCard @@ -1220,7 +1220,7 @@ def create_card( ] = UNSET, **kwargs, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/create-card + """DEPRECATED projects-classic/create-card POST /projects/columns/{column_id}/cards @@ -1228,7 +1228,7 @@ def create_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#create-a-project-card + See also: https://docs.github.com/rest/projects-classic/cards#create-a-project-card """ from typing import Union @@ -1327,7 +1327,7 @@ async def async_create_card( ] = UNSET, **kwargs, ) -> Response[ProjectCard, ProjectCardType]: - """DEPRECATED projects/create-card + """DEPRECATED projects-classic/create-card POST /projects/columns/{column_id}/cards @@ -1335,7 +1335,7 @@ async def async_create_card( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/cards#create-a-project-card + See also: https://docs.github.com/rest/projects-classic/cards#create-a-project-card """ from typing import Union @@ -1423,7 +1423,7 @@ def move_column( ProjectsColumnsColumnIdMovesPostResponse201, ProjectsColumnsColumnIdMovesPostResponse201Type, ]: - """DEPRECATED projects/move-column + """DEPRECATED projects-classic/move-column POST /projects/columns/{column_id}/moves @@ -1431,7 +1431,7 @@ def move_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#move-a-project-column + See also: https://docs.github.com/rest/projects-classic/columns#move-a-project-column """ from ..models import ( @@ -1507,7 +1507,7 @@ async def async_move_column( ProjectsColumnsColumnIdMovesPostResponse201, ProjectsColumnsColumnIdMovesPostResponse201Type, ]: - """DEPRECATED projects/move-column + """DEPRECATED projects-classic/move-column POST /projects/columns/{column_id}/moves @@ -1515,7 +1515,7 @@ async def async_move_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#move-a-project-column + See also: https://docs.github.com/rest/projects-classic/columns#move-a-project-column """ from ..models import ( @@ -1559,7 +1559,7 @@ def get( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/get + """DEPRECATED projects-classic/get GET /projects/{project_id} @@ -1567,7 +1567,7 @@ def get( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#get-a-project + See also: https://docs.github.com/rest/projects-classic/projects#get-a-project """ from ..models import BasicError, Project @@ -1595,7 +1595,7 @@ async def async_get( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/get + """DEPRECATED projects-classic/get GET /projects/{project_id} @@ -1603,7 +1603,7 @@ async def async_get( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#get-a-project + See also: https://docs.github.com/rest/projects-classic/projects#get-a-project """ from ..models import BasicError, Project @@ -1631,7 +1631,7 @@ def delete( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete + """DEPRECATED projects-classic/delete DELETE /projects/{project_id} @@ -1639,7 +1639,7 @@ def delete( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#delete-a-project + See also: https://docs.github.com/rest/projects-classic/projects#delete-a-project """ from ..models import BasicError, ProjectsProjectIdDeleteResponse403 @@ -1668,7 +1668,7 @@ async def async_delete( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/delete + """DEPRECATED projects-classic/delete DELETE /projects/{project_id} @@ -1676,7 +1676,7 @@ async def async_delete( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#delete-a-project + See also: https://docs.github.com/rest/projects-classic/projects#delete-a-project """ from ..models import BasicError, ProjectsProjectIdDeleteResponse403 @@ -1734,7 +1734,7 @@ def update( data: Missing[ProjectsProjectIdPatchBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/update + """DEPRECATED projects-classic/update PATCH /projects/{project_id} @@ -1742,7 +1742,7 @@ def update( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#update-a-project + See also: https://docs.github.com/rest/projects-classic/projects#update-a-project """ from ..models import ( @@ -1817,7 +1817,7 @@ async def async_update( data: Missing[ProjectsProjectIdPatchBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/update + """DEPRECATED projects-classic/update PATCH /projects/{project_id} @@ -1825,7 +1825,7 @@ async def async_update( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#update-a-project + See also: https://docs.github.com/rest/projects-classic/projects#update-a-project """ from ..models import ( @@ -1874,7 +1874,7 @@ def list_collaborators( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[SimpleUser], list[SimpleUserType]]: - """DEPRECATED projects/list-collaborators + """DEPRECATED projects-classic/list-collaborators GET /projects/{project_id}/collaborators @@ -1882,7 +1882,7 @@ def list_collaborators( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/collaborators#list-project-collaborators + See also: https://docs.github.com/rest/projects-classic/collaborators#list-project-collaborators """ from ..models import BasicError, SimpleUser, ValidationError @@ -1922,7 +1922,7 @@ async def async_list_collaborators( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[SimpleUser], list[SimpleUserType]]: - """DEPRECATED projects/list-collaborators + """DEPRECATED projects-classic/list-collaborators GET /projects/{project_id}/collaborators @@ -1930,7 +1930,7 @@ async def async_list_collaborators( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/collaborators#list-project-collaborators + See also: https://docs.github.com/rest/projects-classic/collaborators#list-project-collaborators """ from ..models import BasicError, SimpleUser, ValidationError @@ -1997,7 +1997,7 @@ def add_collaborator( ] = UNSET, **kwargs, ) -> Response: - """DEPRECATED projects/add-collaborator + """DEPRECATED projects-classic/add-collaborator PUT /projects/{project_id}/collaborators/{username} @@ -2005,7 +2005,7 @@ def add_collaborator( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/collaborators#add-project-collaborator + See also: https://docs.github.com/rest/projects-classic/collaborators#add-project-collaborator """ from typing import Union @@ -2082,7 +2082,7 @@ async def async_add_collaborator( ] = UNSET, **kwargs, ) -> Response: - """DEPRECATED projects/add-collaborator + """DEPRECATED projects-classic/add-collaborator PUT /projects/{project_id}/collaborators/{username} @@ -2090,7 +2090,7 @@ async def async_add_collaborator( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/collaborators#add-project-collaborator + See also: https://docs.github.com/rest/projects-classic/collaborators#add-project-collaborator """ from typing import Union @@ -2138,7 +2138,7 @@ def remove_collaborator( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/remove-collaborator + """DEPRECATED projects-classic/remove-collaborator DELETE /projects/{project_id}/collaborators/{username} @@ -2146,7 +2146,7 @@ def remove_collaborator( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/collaborators#remove-user-as-a-collaborator + See also: https://docs.github.com/rest/projects-classic/collaborators#remove-user-as-a-collaborator """ from ..models import BasicError, ValidationError @@ -2176,7 +2176,7 @@ async def async_remove_collaborator( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response: - """DEPRECATED projects/remove-collaborator + """DEPRECATED projects-classic/remove-collaborator DELETE /projects/{project_id}/collaborators/{username} @@ -2184,7 +2184,7 @@ async def async_remove_collaborator( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/collaborators#remove-user-as-a-collaborator + See also: https://docs.github.com/rest/projects-classic/collaborators#remove-user-as-a-collaborator """ from ..models import BasicError, ValidationError @@ -2214,7 +2214,7 @@ def get_permission_for_user( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectCollaboratorPermission, ProjectCollaboratorPermissionType]: - """DEPRECATED projects/get-permission-for-user + """DEPRECATED projects-classic/get-permission-for-user GET /projects/{project_id}/collaborators/{username}/permission @@ -2222,7 +2222,7 @@ def get_permission_for_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/collaborators#get-project-permission-for-a-user + See also: https://docs.github.com/rest/projects-classic/collaborators#get-project-permission-for-a-user """ from ..models import BasicError, ProjectCollaboratorPermission, ValidationError @@ -2253,7 +2253,7 @@ async def async_get_permission_for_user( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[ProjectCollaboratorPermission, ProjectCollaboratorPermissionType]: - """DEPRECATED projects/get-permission-for-user + """DEPRECATED projects-classic/get-permission-for-user GET /projects/{project_id}/collaborators/{username}/permission @@ -2261,7 +2261,7 @@ async def async_get_permission_for_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/collaborators#get-project-permission-for-a-user + See also: https://docs.github.com/rest/projects-classic/collaborators#get-project-permission-for-a-user """ from ..models import BasicError, ProjectCollaboratorPermission, ValidationError @@ -2293,7 +2293,7 @@ def list_columns( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[ProjectColumn], list[ProjectColumnType]]: - """DEPRECATED projects/list-columns + """DEPRECATED projects-classic/list-columns GET /projects/{project_id}/columns @@ -2301,7 +2301,7 @@ def list_columns( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#list-project-columns + See also: https://docs.github.com/rest/projects-classic/columns#list-project-columns """ from ..models import BasicError, ProjectColumn @@ -2337,7 +2337,7 @@ async def async_list_columns( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[ProjectColumn], list[ProjectColumnType]]: - """DEPRECATED projects/list-columns + """DEPRECATED projects-classic/list-columns GET /projects/{project_id}/columns @@ -2345,7 +2345,7 @@ async def async_list_columns( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#list-project-columns + See also: https://docs.github.com/rest/projects-classic/columns#list-project-columns """ from ..models import BasicError, ProjectColumn @@ -2402,7 +2402,7 @@ def create_column( data: Missing[ProjectsProjectIdColumnsPostBodyType] = UNSET, **kwargs, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/create-column + """DEPRECATED projects-classic/create-column POST /projects/{project_id}/columns @@ -2410,7 +2410,7 @@ def create_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#create-a-project-column + See also: https://docs.github.com/rest/projects-classic/columns#create-a-project-column """ from ..models import ( @@ -2477,7 +2477,7 @@ async def async_create_column( data: Missing[ProjectsProjectIdColumnsPostBodyType] = UNSET, **kwargs, ) -> Response[ProjectColumn, ProjectColumnType]: - """DEPRECATED projects/create-column + """DEPRECATED projects-classic/create-column POST /projects/{project_id}/columns @@ -2485,7 +2485,7 @@ async def async_create_column( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/columns#create-a-project-column + See also: https://docs.github.com/rest/projects-classic/columns#create-a-project-column """ from ..models import ( @@ -2533,7 +2533,7 @@ def list_for_repo( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-repo + """DEPRECATED projects-classic/list-for-repo GET /repos/{owner}/{repo}/projects @@ -2541,7 +2541,7 @@ def list_for_repo( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#list-repository-projects + See also: https://docs.github.com/rest/projects-classic/projects#list-repository-projects """ from ..models import BasicError, Project, ValidationErrorSimple @@ -2583,7 +2583,7 @@ async def async_list_for_repo( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-repo + """DEPRECATED projects-classic/list-for-repo GET /repos/{owner}/{repo}/projects @@ -2591,7 +2591,7 @@ async def async_list_for_repo( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#list-repository-projects + See also: https://docs.github.com/rest/projects-classic/projects#list-repository-projects """ from ..models import BasicError, Project, ValidationErrorSimple @@ -2656,7 +2656,7 @@ def create_for_repo( data: Missing[ReposOwnerRepoProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-repo + """DEPRECATED projects-classic/create-for-repo POST /repos/{owner}/{repo}/projects @@ -2664,7 +2664,7 @@ def create_for_repo( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#create-a-repository-project + See also: https://docs.github.com/rest/projects-classic/projects#create-a-repository-project """ from ..models import ( @@ -2737,7 +2737,7 @@ async def async_create_for_repo( data: Missing[ReposOwnerRepoProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-repo + """DEPRECATED projects-classic/create-for-repo POST /repos/{owner}/{repo}/projects @@ -2745,7 +2745,7 @@ async def async_create_for_repo( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#create-a-repository-project + See also: https://docs.github.com/rest/projects-classic/projects#create-a-repository-project """ from ..models import ( @@ -2812,7 +2812,7 @@ def create_for_authenticated_user( data: Missing[UserProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-authenticated-user + """DEPRECATED projects-classic/create-for-authenticated-user POST /user/projects @@ -2820,7 +2820,7 @@ def create_for_authenticated_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#create-a-user-project + See also: https://docs.github.com/rest/projects-classic/projects#create-a-user-project """ from ..models import ( @@ -2885,7 +2885,7 @@ async def async_create_for_authenticated_user( data: Missing[UserProjectsPostBodyType] = UNSET, **kwargs, ) -> Response[Project, ProjectType]: - """DEPRECATED projects/create-for-authenticated-user + """DEPRECATED projects-classic/create-for-authenticated-user POST /user/projects @@ -2893,7 +2893,7 @@ async def async_create_for_authenticated_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#create-a-user-project + See also: https://docs.github.com/rest/projects-classic/projects#create-a-user-project """ from ..models import ( @@ -2940,7 +2940,7 @@ def list_for_user( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-user + """DEPRECATED projects-classic/list-for-user GET /users/{username}/projects @@ -2948,7 +2948,7 @@ def list_for_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#list-user-projects + See also: https://docs.github.com/rest/projects-classic/projects#list-user-projects """ from ..models import Project, ValidationError @@ -2985,7 +2985,7 @@ async def async_list_for_user( headers: Optional[Mapping[str, str]] = None, stream: bool = False, ) -> Response[list[Project], list[ProjectType]]: - """DEPRECATED projects/list-for-user + """DEPRECATED projects-classic/list-for-user GET /users/{username}/projects @@ -2993,7 +2993,7 @@ async def async_list_for_user( > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience. > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information. - See also: https://docs.github.com/rest/projects/projects#list-user-projects + See also: https://docs.github.com/rest/projects-classic/projects#list-user-projects """ from ..models import Project, ValidationError diff --git a/githubkit/versions/v2022_11_28/rest/repos.py b/githubkit/versions/v2022_11_28/rest/repos.py index a5d12f51d..d51489367 100644 --- a/githubkit/versions/v2022_11_28/rest/repos.py +++ b/githubkit/versions/v2022_11_28/rest/repos.py @@ -790,7 +790,6 @@ def create_org_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -894,7 +893,6 @@ async def async_create_org_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -1254,7 +1252,6 @@ def update_org_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -1365,7 +1362,6 @@ async def async_update_org_ruleset( RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, diff --git a/githubkit/versions/v2022_11_28/types/__init__.py b/githubkit/versions/v2022_11_28/types/__init__.py index e4f7ed06d..f5c867c96 100644 --- a/githubkit/versions/v2022_11_28/types/__init__.py +++ b/githubkit/versions/v2022_11_28/types/__init__.py @@ -107,2923 +107,2909 @@ from .group_0028 import ( CodeSecurityConfigurationType as CodeSecurityConfigurationType, ) - from .group_0029 import ( + from .group_0029 import CodeScanningOptionsType as CodeScanningOptionsType + from .group_0030 import ( CodeScanningDefaultSetupOptionsType as CodeScanningDefaultSetupOptionsType, ) - from .group_0030 import ( + from .group_0031 import ( CodeSecurityDefaultConfigurationsItemsType as CodeSecurityDefaultConfigurationsItemsType, ) - from .group_0031 import SimpleRepositoryType as SimpleRepositoryType - from .group_0032 import ( + from .group_0032 import SimpleRepositoryType as SimpleRepositoryType + from .group_0033 import ( CodeSecurityConfigurationRepositoriesType as CodeSecurityConfigurationRepositoriesType, ) - from .group_0033 import DependabotAlertPackageType as DependabotAlertPackageType - from .group_0034 import ( + from .group_0034 import DependabotAlertPackageType as DependabotAlertPackageType + from .group_0035 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityVulnerabilityType as DependabotAlertSecurityVulnerabilityType, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisoryPropCvssType as DependabotAlertSecurityAdvisoryPropCvssType, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisoryPropCwesItemsType as DependabotAlertSecurityAdvisoryPropCwesItemsType, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItemsType as DependabotAlertSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisoryPropReferencesItemsType as DependabotAlertSecurityAdvisoryPropReferencesItemsType, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertSecurityAdvisoryType as DependabotAlertSecurityAdvisoryType, ) - from .group_0036 import ( + from .group_0037 import ( DependabotAlertWithRepositoryType as DependabotAlertWithRepositoryType, ) - from .group_0037 import ( + from .group_0038 import ( DependabotAlertWithRepositoryPropDependencyType as DependabotAlertWithRepositoryPropDependencyType, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationCommitType as SecretScanningLocationCommitType, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, ) - from .group_0038 import ( + from .group_0039 import ( SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, ) - from .group_0039 import ( + from .group_0040 import ( SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, ) - from .group_0039 import ( + from .group_0040 import ( SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, ) - from .group_0039 import ( + from .group_0040 import ( SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, ) - from .group_0039 import ( + from .group_0040 import ( SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, ) - from .group_0040 import ( + from .group_0041 import ( SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) - from .group_0040 import ( + from .group_0041 import ( SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, ) - from .group_0041 import ( + from .group_0042 import ( OrganizationSecretScanningAlertType as OrganizationSecretScanningAlertType, ) - from .group_0042 import MilestoneType as MilestoneType - from .group_0043 import IssueTypeType as IssueTypeType - from .group_0044 import ReactionRollupType as ReactionRollupType - from .group_0045 import ( + from .group_0043 import MilestoneType as MilestoneType + from .group_0044 import IssueTypeType as IssueTypeType + from .group_0045 import ReactionRollupType as ReactionRollupType + from .group_0046 import SubIssuesSummaryType as SubIssuesSummaryType + from .group_0047 import ( IssuePropLabelsItemsOneof1Type as IssuePropLabelsItemsOneof1Type, ) - from .group_0045 import IssuePropPullRequestType as IssuePropPullRequestType - from .group_0045 import IssueType as IssueType - from .group_0045 import SubIssuesSummaryType as SubIssuesSummaryType - from .group_0046 import IssueCommentType as IssueCommentType - from .group_0047 import ActorType as ActorType - from .group_0047 import ( + from .group_0047 import IssuePropPullRequestType as IssuePropPullRequestType + from .group_0047 import IssueType as IssueType + from .group_0048 import IssueCommentType as IssueCommentType + from .group_0049 import ActorType as ActorType + from .group_0049 import ( EventPropPayloadPropPagesItemsType as EventPropPayloadPropPagesItemsType, ) - from .group_0047 import EventPropPayloadType as EventPropPayloadType - from .group_0047 import EventPropRepoType as EventPropRepoType - from .group_0047 import EventType as EventType - from .group_0048 import FeedPropLinksType as FeedPropLinksType - from .group_0048 import FeedType as FeedType - from .group_0048 import LinkWithTypeType as LinkWithTypeType - from .group_0049 import BaseGistPropFilesType as BaseGistPropFilesType - from .group_0049 import BaseGistType as BaseGistType - from .group_0050 import ( + from .group_0049 import EventPropPayloadType as EventPropPayloadType + from .group_0049 import EventPropRepoType as EventPropRepoType + from .group_0049 import EventType as EventType + from .group_0050 import FeedPropLinksType as FeedPropLinksType + from .group_0050 import FeedType as FeedType + from .group_0050 import LinkWithTypeType as LinkWithTypeType + from .group_0051 import BaseGistPropFilesType as BaseGistPropFilesType + from .group_0051 import BaseGistType as BaseGistType + from .group_0052 import ( GistHistoryPropChangeStatusType as GistHistoryPropChangeStatusType, ) - from .group_0050 import GistHistoryType as GistHistoryType - from .group_0050 import ( + from .group_0052 import GistHistoryType as GistHistoryType + from .group_0052 import ( GistSimplePropForkOfPropFilesType as GistSimplePropForkOfPropFilesType, ) - from .group_0050 import GistSimplePropForkOfType as GistSimplePropForkOfType - from .group_0051 import GistSimplePropFilesType as GistSimplePropFilesType - from .group_0051 import GistSimplePropForksItemsType as GistSimplePropForksItemsType - from .group_0051 import GistSimpleType as GistSimpleType - from .group_0051 import PublicUserPropPlanType as PublicUserPropPlanType - from .group_0051 import PublicUserType as PublicUserType - from .group_0052 import GistCommentType as GistCommentType - from .group_0053 import ( + from .group_0052 import GistSimplePropForkOfType as GistSimplePropForkOfType + from .group_0053 import GistSimplePropFilesType as GistSimplePropFilesType + from .group_0053 import GistSimplePropForksItemsType as GistSimplePropForksItemsType + from .group_0053 import GistSimpleType as GistSimpleType + from .group_0053 import PublicUserPropPlanType as PublicUserPropPlanType + from .group_0053 import PublicUserType as PublicUserType + from .group_0054 import GistCommentType as GistCommentType + from .group_0055 import ( GistCommitPropChangeStatusType as GistCommitPropChangeStatusType, ) - from .group_0053 import GistCommitType as GistCommitType - from .group_0054 import GitignoreTemplateType as GitignoreTemplateType - from .group_0055 import LicenseType as LicenseType - from .group_0056 import MarketplaceListingPlanType as MarketplaceListingPlanType - from .group_0057 import MarketplacePurchaseType as MarketplacePurchaseType - from .group_0058 import ( + from .group_0055 import GistCommitType as GistCommitType + from .group_0056 import GitignoreTemplateType as GitignoreTemplateType + from .group_0057 import LicenseType as LicenseType + from .group_0058 import MarketplaceListingPlanType as MarketplaceListingPlanType + from .group_0059 import MarketplacePurchaseType as MarketplacePurchaseType + from .group_0060 import ( MarketplacePurchasePropMarketplacePendingChangeType as MarketplacePurchasePropMarketplacePendingChangeType, ) - from .group_0058 import ( + from .group_0060 import ( MarketplacePurchasePropMarketplacePurchaseType as MarketplacePurchasePropMarketplacePurchaseType, ) - from .group_0059 import ( + from .group_0061 import ( ApiOverviewPropDomainsPropActionsInboundType as ApiOverviewPropDomainsPropActionsInboundType, ) - from .group_0059 import ( + from .group_0061 import ( ApiOverviewPropDomainsPropArtifactAttestationsType as ApiOverviewPropDomainsPropArtifactAttestationsType, ) - from .group_0059 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType - from .group_0059 import ( + from .group_0061 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType + from .group_0061 import ( ApiOverviewPropSshKeyFingerprintsType as ApiOverviewPropSshKeyFingerprintsType, ) - from .group_0059 import ApiOverviewType as ApiOverviewType - from .group_0060 import ( + from .group_0061 import ApiOverviewType as ApiOverviewType + from .group_0062 import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropCodeSecurityType as SecurityAndAnalysisPropCodeSecurityType, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropDependabotSecurityUpdatesType as SecurityAndAnalysisPropDependabotSecurityUpdatesType, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropSecretScanningAiDetectionType as SecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatternsType as SecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropSecretScanningPushProtectionType as SecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0060 import ( + from .group_0062 import ( SecurityAndAnalysisPropSecretScanningType as SecurityAndAnalysisPropSecretScanningType, ) - from .group_0060 import SecurityAndAnalysisType as SecurityAndAnalysisType - from .group_0061 import CodeOfConductType as CodeOfConductType - from .group_0061 import ( + from .group_0062 import SecurityAndAnalysisType as SecurityAndAnalysisType + from .group_0063 import CodeOfConductType as CodeOfConductType + from .group_0063 import ( MinimalRepositoryPropCustomPropertiesType as MinimalRepositoryPropCustomPropertiesType, ) - from .group_0061 import ( + from .group_0063 import ( MinimalRepositoryPropLicenseType as MinimalRepositoryPropLicenseType, ) - from .group_0061 import ( + from .group_0063 import ( MinimalRepositoryPropPermissionsType as MinimalRepositoryPropPermissionsType, ) - from .group_0061 import MinimalRepositoryType as MinimalRepositoryType - from .group_0062 import ThreadPropSubjectType as ThreadPropSubjectType - from .group_0062 import ThreadType as ThreadType - from .group_0063 import ThreadSubscriptionType as ThreadSubscriptionType - from .group_0064 import OrganizationSimpleType as OrganizationSimpleType - from .group_0065 import ( + from .group_0063 import MinimalRepositoryType as MinimalRepositoryType + from .group_0064 import ThreadPropSubjectType as ThreadPropSubjectType + from .group_0064 import ThreadType as ThreadType + from .group_0065 import ThreadSubscriptionType as ThreadSubscriptionType + from .group_0066 import OrganizationSimpleType as OrganizationSimpleType + from .group_0067 import ( DependabotRepositoryAccessDetailsType as DependabotRepositoryAccessDetailsType, ) - from .group_0066 import ( + from .group_0068 import ( BillingUsageReportPropUsageItemsItemsType as BillingUsageReportPropUsageItemsItemsType, ) - from .group_0066 import BillingUsageReportType as BillingUsageReportType - from .group_0067 import OrganizationFullPropPlanType as OrganizationFullPropPlanType - from .group_0067 import OrganizationFullType as OrganizationFullType - from .group_0068 import ( + from .group_0068 import BillingUsageReportType as BillingUsageReportType + from .group_0069 import OrganizationFullPropPlanType as OrganizationFullPropPlanType + from .group_0069 import OrganizationFullType as OrganizationFullType + from .group_0070 import ( ActionsCacheUsageOrgEnterpriseType as ActionsCacheUsageOrgEnterpriseType, ) - from .group_0069 import ( + from .group_0071 import ( ActionsHostedRunnerMachineSpecType as ActionsHostedRunnerMachineSpecType, ) - from .group_0070 import ( + from .group_0072 import ( ActionsHostedRunnerPoolImageType as ActionsHostedRunnerPoolImageType, ) - from .group_0070 import ActionsHostedRunnerType as ActionsHostedRunnerType - from .group_0070 import PublicIpType as PublicIpType - from .group_0071 import ActionsHostedRunnerImageType as ActionsHostedRunnerImageType - from .group_0072 import ( + from .group_0072 import ActionsHostedRunnerType as ActionsHostedRunnerType + from .group_0072 import PublicIpType as PublicIpType + from .group_0073 import ActionsHostedRunnerImageType as ActionsHostedRunnerImageType + from .group_0074 import ( ActionsHostedRunnerLimitsPropPublicIpsType as ActionsHostedRunnerLimitsPropPublicIpsType, ) - from .group_0072 import ( + from .group_0074 import ( ActionsHostedRunnerLimitsType as ActionsHostedRunnerLimitsType, ) - from .group_0073 import OidcCustomSubType as OidcCustomSubType - from .group_0074 import ( + from .group_0075 import OidcCustomSubType as OidcCustomSubType + from .group_0076 import ( ActionsOrganizationPermissionsType as ActionsOrganizationPermissionsType, ) - from .group_0075 import SelectedActionsType as SelectedActionsType - from .group_0076 import ( + from .group_0077 import SelectedActionsType as SelectedActionsType + from .group_0078 import ( ActionsGetDefaultWorkflowPermissionsType as ActionsGetDefaultWorkflowPermissionsType, ) - from .group_0077 import ( + from .group_0079 import ( ActionsSetDefaultWorkflowPermissionsType as ActionsSetDefaultWorkflowPermissionsType, ) - from .group_0078 import RunnerLabelType as RunnerLabelType - from .group_0079 import RunnerType as RunnerType - from .group_0080 import RunnerApplicationType as RunnerApplicationType - from .group_0081 import ( + from .group_0080 import RunnerLabelType as RunnerLabelType + from .group_0081 import RunnerType as RunnerType + from .group_0082 import RunnerApplicationType as RunnerApplicationType + from .group_0083 import ( AuthenticationTokenPropPermissionsType as AuthenticationTokenPropPermissionsType, ) - from .group_0081 import AuthenticationTokenType as AuthenticationTokenType - from .group_0082 import ActionsPublicKeyType as ActionsPublicKeyType - from .group_0083 import TeamSimpleType as TeamSimpleType - from .group_0084 import TeamPropPermissionsType as TeamPropPermissionsType - from .group_0084 import TeamType as TeamType - from .group_0085 import ( + from .group_0083 import AuthenticationTokenType as AuthenticationTokenType + from .group_0084 import ActionsPublicKeyType as ActionsPublicKeyType + from .group_0085 import TeamSimpleType as TeamSimpleType + from .group_0086 import TeamPropPermissionsType as TeamPropPermissionsType + from .group_0086 import TeamType as TeamType + from .group_0087 import ( CampaignSummaryPropAlertStatsType as CampaignSummaryPropAlertStatsType, ) - from .group_0085 import CampaignSummaryType as CampaignSummaryType - from .group_0086 import ( + from .group_0087 import CampaignSummaryType as CampaignSummaryType + from .group_0088 import ( CodeScanningAlertRuleSummaryType as CodeScanningAlertRuleSummaryType, ) - from .group_0087 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType - from .group_0088 import ( + from .group_0089 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType + from .group_0090 import ( CodeScanningAlertInstancePropMessageType as CodeScanningAlertInstancePropMessageType, ) - from .group_0088 import ( + from .group_0090 import ( CodeScanningAlertInstanceType as CodeScanningAlertInstanceType, ) - from .group_0088 import ( + from .group_0090 import ( CodeScanningAlertLocationType as CodeScanningAlertLocationType, ) - from .group_0089 import ( + from .group_0091 import ( CodeScanningOrganizationAlertItemsType as CodeScanningOrganizationAlertItemsType, ) - from .group_0090 import CodespaceMachineType as CodespaceMachineType - from .group_0091 import CodespacePropGitStatusType as CodespacePropGitStatusType - from .group_0091 import ( + from .group_0092 import CodespaceMachineType as CodespaceMachineType + from .group_0093 import CodespacePropGitStatusType as CodespacePropGitStatusType + from .group_0093 import ( CodespacePropRuntimeConstraintsType as CodespacePropRuntimeConstraintsType, ) - from .group_0091 import CodespaceType as CodespaceType - from .group_0092 import CodespacesPublicKeyType as CodespacesPublicKeyType - from .group_0093 import ( + from .group_0093 import CodespaceType as CodespaceType + from .group_0094 import CodespacesPublicKeyType as CodespacesPublicKeyType + from .group_0095 import ( CopilotOrganizationDetailsType as CopilotOrganizationDetailsType, ) - from .group_0093 import ( + from .group_0095 import ( CopilotOrganizationSeatBreakdownType as CopilotOrganizationSeatBreakdownType, ) - from .group_0094 import CopilotSeatDetailsType as CopilotSeatDetailsType - from .group_0094 import EnterpriseTeamType as EnterpriseTeamType - from .group_0094 import ( + from .group_0096 import CopilotSeatDetailsType as CopilotSeatDetailsType + from .group_0096 import EnterpriseTeamType as EnterpriseTeamType + from .group_0096 import ( OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, ) - from .group_0095 import ( + from .group_0097 import ( CopilotDotcomChatPropModelsItemsType as CopilotDotcomChatPropModelsItemsType, ) - from .group_0095 import CopilotDotcomChatType as CopilotDotcomChatType - from .group_0095 import ( + from .group_0097 import CopilotDotcomChatType as CopilotDotcomChatType + from .group_0097 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType, ) - from .group_0095 import ( + from .group_0097 import ( CopilotDotcomPullRequestsPropRepositoriesItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsType, ) - from .group_0095 import ( + from .group_0097 import ( CopilotDotcomPullRequestsType as CopilotDotcomPullRequestsType, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeChatPropEditorsItemsPropModelsItemsType as CopilotIdeChatPropEditorsItemsPropModelsItemsType, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeChatPropEditorsItemsType as CopilotIdeChatPropEditorsItemsType, ) - from .group_0095 import CopilotIdeChatType as CopilotIdeChatType - from .group_0095 import ( + from .group_0097 import CopilotIdeChatType as CopilotIdeChatType + from .group_0097 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeCodeCompletionsPropEditorsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsType, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeCodeCompletionsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropLanguagesItemsType, ) - from .group_0095 import ( + from .group_0097 import ( CopilotIdeCodeCompletionsType as CopilotIdeCodeCompletionsType, ) - from .group_0095 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType - from .group_0096 import DependabotPublicKeyType as DependabotPublicKeyType - from .group_0097 import PackageType as PackageType - from .group_0098 import OrganizationInvitationType as OrganizationInvitationType - from .group_0099 import OrgHookPropConfigType as OrgHookPropConfigType - from .group_0099 import OrgHookType as OrgHookType - from .group_0100 import ( + from .group_0097 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType + from .group_0098 import DependabotPublicKeyType as DependabotPublicKeyType + from .group_0099 import PackageType as PackageType + from .group_0100 import OrganizationInvitationType as OrganizationInvitationType + from .group_0101 import OrgHookPropConfigType as OrgHookPropConfigType + from .group_0101 import OrgHookType as OrgHookType + from .group_0102 import ( ApiInsightsRouteStatsItemsType as ApiInsightsRouteStatsItemsType, ) - from .group_0101 import ( + from .group_0103 import ( ApiInsightsSubjectStatsItemsType as ApiInsightsSubjectStatsItemsType, ) - from .group_0102 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType - from .group_0103 import ( + from .group_0104 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType + from .group_0105 import ( ApiInsightsTimeStatsItemsType as ApiInsightsTimeStatsItemsType, ) - from .group_0104 import ( + from .group_0106 import ( ApiInsightsUserStatsItemsType as ApiInsightsUserStatsItemsType, ) - from .group_0105 import InteractionLimitResponseType as InteractionLimitResponseType - from .group_0106 import InteractionLimitType as InteractionLimitType - from .group_0107 import ( + from .group_0107 import InteractionLimitResponseType as InteractionLimitResponseType + from .group_0108 import InteractionLimitType as InteractionLimitType + from .group_0109 import ( OrganizationCreateIssueTypeType as OrganizationCreateIssueTypeType, ) - from .group_0108 import ( + from .group_0110 import ( OrganizationUpdateIssueTypeType as OrganizationUpdateIssueTypeType, ) - from .group_0109 import ( + from .group_0111 import ( OrgMembershipPropPermissionsType as OrgMembershipPropPermissionsType, ) - from .group_0109 import OrgMembershipType as OrgMembershipType - from .group_0110 import MigrationType as MigrationType - from .group_0111 import OrganizationRoleType as OrganizationRoleType - from .group_0111 import ( + from .group_0111 import OrgMembershipType as OrgMembershipType + from .group_0112 import MigrationType as MigrationType + from .group_0113 import OrganizationRoleType as OrganizationRoleType + from .group_0113 import ( OrgsOrgOrganizationRolesGetResponse200Type as OrgsOrgOrganizationRolesGetResponse200Type, ) - from .group_0112 import ( + from .group_0114 import ( TeamRoleAssignmentPropPermissionsType as TeamRoleAssignmentPropPermissionsType, ) - from .group_0112 import TeamRoleAssignmentType as TeamRoleAssignmentType - from .group_0113 import UserRoleAssignmentType as UserRoleAssignmentType - from .group_0114 import ( + from .group_0114 import TeamRoleAssignmentType as TeamRoleAssignmentType + from .group_0115 import UserRoleAssignmentType as UserRoleAssignmentType + from .group_0116 import ( PackageVersionPropMetadataPropContainerType as PackageVersionPropMetadataPropContainerType, ) - from .group_0114 import ( + from .group_0116 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) - from .group_0114 import ( + from .group_0116 import ( PackageVersionPropMetadataType as PackageVersionPropMetadataType, ) - from .group_0114 import PackageVersionType as PackageVersionType - from .group_0115 import ( + from .group_0116 import PackageVersionType as PackageVersionType + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType, ) - from .group_0115 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType, ) - from .group_0115 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0115 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsType as OrganizationProgrammaticAccessGrantRequestPropPermissionsType, ) - from .group_0115 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantRequestType as OrganizationProgrammaticAccessGrantRequestType, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrantPropPermissionsType as OrganizationProgrammaticAccessGrantPropPermissionsType, ) - from .group_0116 import ( + from .group_0118 import ( OrganizationProgrammaticAccessGrantType as OrganizationProgrammaticAccessGrantType, ) - from .group_0117 import ( + from .group_0119 import ( OrgPrivateRegistryConfigurationWithSelectedRepositoriesType as OrgPrivateRegistryConfigurationWithSelectedRepositoriesType, ) - from .group_0118 import ProjectType as ProjectType - from .group_0119 import CustomPropertyType as CustomPropertyType - from .group_0120 import CustomPropertySetPayloadType as CustomPropertySetPayloadType - from .group_0121 import CustomPropertyValueType as CustomPropertyValueType - from .group_0122 import ( + from .group_0120 import ProjectType as ProjectType + from .group_0121 import CustomPropertyType as CustomPropertyType + from .group_0122 import CustomPropertySetPayloadType as CustomPropertySetPayloadType + from .group_0123 import CustomPropertyValueType as CustomPropertyValueType + from .group_0124 import ( OrgRepoCustomPropertyValuesType as OrgRepoCustomPropertyValuesType, ) - from .group_0123 import CodeOfConductSimpleType as CodeOfConductSimpleType - from .group_0124 import ( + from .group_0125 import CodeOfConductSimpleType as CodeOfConductSimpleType + from .group_0126 import ( FullRepositoryPropCustomPropertiesType as FullRepositoryPropCustomPropertiesType, ) - from .group_0124 import ( + from .group_0126 import ( FullRepositoryPropPermissionsType as FullRepositoryPropPermissionsType, ) - from .group_0124 import FullRepositoryType as FullRepositoryType - from .group_0125 import ( + from .group_0126 import FullRepositoryType as FullRepositoryType + from .group_0127 import ( RepositoryRulesetBypassActorType as RepositoryRulesetBypassActorType, ) - from .group_0126 import ( + from .group_0128 import ( RepositoryRulesetConditionsType as RepositoryRulesetConditionsType, ) - from .group_0127 import ( + from .group_0129 import ( RepositoryRulesetConditionsPropRefNameType as RepositoryRulesetConditionsPropRefNameType, ) - from .group_0128 import ( + from .group_0130 import ( RepositoryRulesetConditionsRepositoryNameTargetType as RepositoryRulesetConditionsRepositoryNameTargetType, ) - from .group_0129 import ( + from .group_0131 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) - from .group_0130 import ( + from .group_0132 import ( RepositoryRulesetConditionsRepositoryIdTargetType as RepositoryRulesetConditionsRepositoryIdTargetType, ) - from .group_0131 import ( + from .group_0133 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) - from .group_0132 import ( + from .group_0134 import ( RepositoryRulesetConditionsRepositoryPropertyTargetType as RepositoryRulesetConditionsRepositoryPropertyTargetType, ) - from .group_0133 import ( + from .group_0135 import ( RepositoryRulesetConditionsRepositoryPropertySpecType as RepositoryRulesetConditionsRepositoryPropertySpecType, ) - from .group_0133 import ( + from .group_0135 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) - from .group_0134 import ( + from .group_0136 import ( OrgRulesetConditionsOneof0Type as OrgRulesetConditionsOneof0Type, ) - from .group_0135 import ( + from .group_0137 import ( OrgRulesetConditionsOneof1Type as OrgRulesetConditionsOneof1Type, ) - from .group_0136 import ( + from .group_0138 import ( OrgRulesetConditionsOneof2Type as OrgRulesetConditionsOneof2Type, ) - from .group_0137 import RepositoryRuleCreationType as RepositoryRuleCreationType - from .group_0137 import RepositoryRuleDeletionType as RepositoryRuleDeletionType - from .group_0137 import ( + from .group_0139 import RepositoryRuleCreationType as RepositoryRuleCreationType + from .group_0139 import RepositoryRuleDeletionType as RepositoryRuleDeletionType + from .group_0139 import ( RepositoryRuleNonFastForwardType as RepositoryRuleNonFastForwardType, ) - from .group_0137 import ( + from .group_0139 import ( RepositoryRuleRequiredSignaturesType as RepositoryRuleRequiredSignaturesType, ) - from .group_0138 import RepositoryRuleUpdateType as RepositoryRuleUpdateType - from .group_0139 import ( + from .group_0140 import RepositoryRuleUpdateType as RepositoryRuleUpdateType + from .group_0141 import ( RepositoryRuleUpdatePropParametersType as RepositoryRuleUpdatePropParametersType, ) - from .group_0140 import ( + from .group_0142 import ( RepositoryRuleRequiredLinearHistoryType as RepositoryRuleRequiredLinearHistoryType, ) - from .group_0141 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType - from .group_0142 import ( + from .group_0143 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType + from .group_0144 import ( RepositoryRuleMergeQueuePropParametersType as RepositoryRuleMergeQueuePropParametersType, ) - from .group_0143 import ( + from .group_0145 import ( RepositoryRuleRequiredDeploymentsType as RepositoryRuleRequiredDeploymentsType, ) - from .group_0144 import ( + from .group_0146 import ( RepositoryRuleRequiredDeploymentsPropParametersType as RepositoryRuleRequiredDeploymentsPropParametersType, ) - from .group_0145 import ( + from .group_0147 import ( RepositoryRuleParamsRequiredReviewerConfigurationType as RepositoryRuleParamsRequiredReviewerConfigurationType, ) - from .group_0145 import ( + from .group_0147 import ( RepositoryRuleParamsReviewerType as RepositoryRuleParamsReviewerType, ) - from .group_0146 import ( + from .group_0148 import ( RepositoryRulePullRequestType as RepositoryRulePullRequestType, ) - from .group_0147 import ( + from .group_0149 import ( RepositoryRulePullRequestPropParametersType as RepositoryRulePullRequestPropParametersType, ) - from .group_0148 import ( + from .group_0150 import ( RepositoryRuleRequiredStatusChecksType as RepositoryRuleRequiredStatusChecksType, ) - from .group_0149 import ( + from .group_0151 import ( RepositoryRuleParamsStatusCheckConfigurationType as RepositoryRuleParamsStatusCheckConfigurationType, ) - from .group_0149 import ( + from .group_0151 import ( RepositoryRuleRequiredStatusChecksPropParametersType as RepositoryRuleRequiredStatusChecksPropParametersType, ) - from .group_0150 import ( + from .group_0152 import ( RepositoryRuleCommitMessagePatternType as RepositoryRuleCommitMessagePatternType, ) - from .group_0151 import ( + from .group_0153 import ( RepositoryRuleCommitMessagePatternPropParametersType as RepositoryRuleCommitMessagePatternPropParametersType, ) - from .group_0152 import ( + from .group_0154 import ( RepositoryRuleCommitAuthorEmailPatternType as RepositoryRuleCommitAuthorEmailPatternType, ) - from .group_0153 import ( + from .group_0155 import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from .group_0154 import ( + from .group_0156 import ( RepositoryRuleCommitterEmailPatternType as RepositoryRuleCommitterEmailPatternType, ) - from .group_0155 import ( + from .group_0157 import ( RepositoryRuleCommitterEmailPatternPropParametersType as RepositoryRuleCommitterEmailPatternPropParametersType, ) - from .group_0156 import ( + from .group_0158 import ( RepositoryRuleBranchNamePatternType as RepositoryRuleBranchNamePatternType, ) - from .group_0157 import ( + from .group_0159 import ( RepositoryRuleBranchNamePatternPropParametersType as RepositoryRuleBranchNamePatternPropParametersType, ) - from .group_0158 import ( + from .group_0160 import ( RepositoryRuleTagNamePatternType as RepositoryRuleTagNamePatternType, ) - from .group_0159 import ( + from .group_0161 import ( RepositoryRuleTagNamePatternPropParametersType as RepositoryRuleTagNamePatternPropParametersType, ) - from .group_0160 import ( + from .group_0162 import ( RepositoryRuleFilePathRestrictionType as RepositoryRuleFilePathRestrictionType, ) - from .group_0161 import ( + from .group_0163 import ( RepositoryRuleFilePathRestrictionPropParametersType as RepositoryRuleFilePathRestrictionPropParametersType, ) - from .group_0162 import ( + from .group_0164 import ( RepositoryRuleMaxFilePathLengthType as RepositoryRuleMaxFilePathLengthType, ) - from .group_0163 import ( + from .group_0165 import ( RepositoryRuleMaxFilePathLengthPropParametersType as RepositoryRuleMaxFilePathLengthPropParametersType, ) - from .group_0164 import ( + from .group_0166 import ( RepositoryRuleFileExtensionRestrictionType as RepositoryRuleFileExtensionRestrictionType, ) - from .group_0165 import ( + from .group_0167 import ( RepositoryRuleFileExtensionRestrictionPropParametersType as RepositoryRuleFileExtensionRestrictionPropParametersType, ) - from .group_0166 import ( + from .group_0168 import ( RepositoryRuleMaxFileSizeType as RepositoryRuleMaxFileSizeType, ) - from .group_0167 import ( + from .group_0169 import ( RepositoryRuleMaxFileSizePropParametersType as RepositoryRuleMaxFileSizePropParametersType, ) - from .group_0168 import ( + from .group_0170 import ( RepositoryRuleParamsRestrictedCommitsType as RepositoryRuleParamsRestrictedCommitsType, ) - from .group_0169 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType - from .group_0170 import ( + from .group_0171 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType + from .group_0172 import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) - from .group_0170 import ( + from .group_0172 import ( RepositoryRuleWorkflowsPropParametersType as RepositoryRuleWorkflowsPropParametersType, ) - from .group_0171 import ( + from .group_0173 import ( RepositoryRuleCodeScanningType as RepositoryRuleCodeScanningType, ) - from .group_0172 import ( + from .group_0174 import ( RepositoryRuleCodeScanningPropParametersType as RepositoryRuleCodeScanningPropParametersType, ) - from .group_0172 import ( + from .group_0174 import ( RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, ) - from .group_0173 import ( + from .group_0175 import ( RepositoryRulesetPropLinksPropHtmlType as RepositoryRulesetPropLinksPropHtmlType, ) - from .group_0173 import ( + from .group_0175 import ( RepositoryRulesetPropLinksPropSelfType as RepositoryRulesetPropLinksPropSelfType, ) - from .group_0173 import ( + from .group_0175 import ( RepositoryRulesetPropLinksType as RepositoryRulesetPropLinksType, ) - from .group_0173 import RepositoryRulesetType as RepositoryRulesetType - from .group_0174 import RuleSuitesItemsType as RuleSuitesItemsType - from .group_0175 import ( + from .group_0175 import RepositoryRulesetType as RepositoryRulesetType + from .group_0176 import RuleSuitesItemsType as RuleSuitesItemsType + from .group_0177 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSourceType as RuleSuitePropRuleEvaluationsItemsPropRuleSourceType, ) - from .group_0175 import ( + from .group_0177 import ( RuleSuitePropRuleEvaluationsItemsType as RuleSuitePropRuleEvaluationsItemsType, ) - from .group_0175 import RuleSuiteType as RuleSuiteType - from .group_0176 import RulesetVersionType as RulesetVersionType - from .group_0177 import RulesetVersionPropActorType as RulesetVersionPropActorType - from .group_0178 import RulesetVersionWithStateType as RulesetVersionWithStateType - from .group_0179 import ( + from .group_0177 import RuleSuiteType as RuleSuiteType + from .group_0178 import RulesetVersionType as RulesetVersionType + from .group_0179 import RulesetVersionPropActorType as RulesetVersionPropActorType + from .group_0180 import RulesetVersionWithStateType as RulesetVersionWithStateType + from .group_0181 import ( RulesetVersionWithStateAllof1Type as RulesetVersionWithStateAllof1Type, ) - from .group_0180 import ( + from .group_0182 import ( RulesetVersionWithStateAllof1PropStateType as RulesetVersionWithStateAllof1PropStateType, ) - from .group_0181 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType - from .group_0182 import ( + from .group_0183 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType + from .group_0184 import ( RepositoryAdvisoryPropCreditsItemsType as RepositoryAdvisoryPropCreditsItemsType, ) - from .group_0182 import ( + from .group_0184 import ( RepositoryAdvisoryPropCvssType as RepositoryAdvisoryPropCvssType, ) - from .group_0182 import ( + from .group_0184 import ( RepositoryAdvisoryPropCwesItemsType as RepositoryAdvisoryPropCwesItemsType, ) - from .group_0182 import ( + from .group_0184 import ( RepositoryAdvisoryPropIdentifiersItemsType as RepositoryAdvisoryPropIdentifiersItemsType, ) - from .group_0182 import ( + from .group_0184 import ( RepositoryAdvisoryPropSubmissionType as RepositoryAdvisoryPropSubmissionType, ) - from .group_0182 import RepositoryAdvisoryType as RepositoryAdvisoryType - from .group_0182 import ( + from .group_0184 import RepositoryAdvisoryType as RepositoryAdvisoryType + from .group_0184 import ( RepositoryAdvisoryVulnerabilityPropPackageType as RepositoryAdvisoryVulnerabilityPropPackageType, ) - from .group_0182 import ( + from .group_0184 import ( RepositoryAdvisoryVulnerabilityType as RepositoryAdvisoryVulnerabilityType, ) - from .group_0183 import ( + from .group_0185 import ( ActionsBillingUsagePropMinutesUsedBreakdownType as ActionsBillingUsagePropMinutesUsedBreakdownType, ) - from .group_0183 import ActionsBillingUsageType as ActionsBillingUsageType - from .group_0184 import PackagesBillingUsageType as PackagesBillingUsageType - from .group_0185 import CombinedBillingUsageType as CombinedBillingUsageType - from .group_0186 import NetworkSettingsType as NetworkSettingsType - from .group_0187 import TeamFullType as TeamFullType - from .group_0187 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType - from .group_0187 import TeamOrganizationType as TeamOrganizationType - from .group_0188 import TeamDiscussionType as TeamDiscussionType - from .group_0189 import TeamDiscussionCommentType as TeamDiscussionCommentType - from .group_0190 import ReactionType as ReactionType - from .group_0191 import TeamMembershipType as TeamMembershipType - from .group_0192 import ( + from .group_0185 import ActionsBillingUsageType as ActionsBillingUsageType + from .group_0186 import PackagesBillingUsageType as PackagesBillingUsageType + from .group_0187 import CombinedBillingUsageType as CombinedBillingUsageType + from .group_0188 import NetworkSettingsType as NetworkSettingsType + from .group_0189 import TeamFullType as TeamFullType + from .group_0189 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType + from .group_0189 import TeamOrganizationType as TeamOrganizationType + from .group_0190 import TeamDiscussionType as TeamDiscussionType + from .group_0191 import TeamDiscussionCommentType as TeamDiscussionCommentType + from .group_0192 import ReactionType as ReactionType + from .group_0193 import TeamMembershipType as TeamMembershipType + from .group_0194 import ( TeamProjectPropPermissionsType as TeamProjectPropPermissionsType, ) - from .group_0192 import TeamProjectType as TeamProjectType - from .group_0193 import ( + from .group_0194 import TeamProjectType as TeamProjectType + from .group_0195 import ( TeamRepositoryPropPermissionsType as TeamRepositoryPropPermissionsType, ) - from .group_0193 import TeamRepositoryType as TeamRepositoryType - from .group_0194 import ProjectCardType as ProjectCardType - from .group_0195 import ProjectColumnType as ProjectColumnType - from .group_0196 import ( + from .group_0195 import TeamRepositoryType as TeamRepositoryType + from .group_0196 import ProjectCardType as ProjectCardType + from .group_0197 import ProjectColumnType as ProjectColumnType + from .group_0198 import ( ProjectCollaboratorPermissionType as ProjectCollaboratorPermissionType, ) - from .group_0197 import RateLimitType as RateLimitType - from .group_0198 import RateLimitOverviewType as RateLimitOverviewType - from .group_0199 import ( + from .group_0199 import RateLimitType as RateLimitType + from .group_0200 import RateLimitOverviewType as RateLimitOverviewType + from .group_0201 import ( RateLimitOverviewPropResourcesType as RateLimitOverviewPropResourcesType, ) - from .group_0200 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType - from .group_0200 import ArtifactType as ArtifactType - from .group_0201 import ( + from .group_0202 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType + from .group_0202 import ArtifactType as ArtifactType + from .group_0203 import ( ActionsCacheListPropActionsCachesItemsType as ActionsCacheListPropActionsCachesItemsType, ) - from .group_0201 import ActionsCacheListType as ActionsCacheListType - from .group_0202 import JobPropStepsItemsType as JobPropStepsItemsType - from .group_0202 import JobType as JobType - from .group_0203 import OidcCustomSubRepoType as OidcCustomSubRepoType - from .group_0204 import ActionsSecretType as ActionsSecretType - from .group_0205 import ActionsVariableType as ActionsVariableType - from .group_0206 import ( + from .group_0203 import ActionsCacheListType as ActionsCacheListType + from .group_0204 import JobPropStepsItemsType as JobPropStepsItemsType + from .group_0204 import JobType as JobType + from .group_0205 import OidcCustomSubRepoType as OidcCustomSubRepoType + from .group_0206 import ActionsSecretType as ActionsSecretType + from .group_0207 import ActionsVariableType as ActionsVariableType + from .group_0208 import ( ActionsRepositoryPermissionsType as ActionsRepositoryPermissionsType, ) - from .group_0207 import ( + from .group_0209 import ( ActionsWorkflowAccessToRepositoryType as ActionsWorkflowAccessToRepositoryType, ) - from .group_0208 import ( + from .group_0210 import ( PullRequestMinimalPropBasePropRepoType as PullRequestMinimalPropBasePropRepoType, ) - from .group_0208 import ( + from .group_0210 import ( PullRequestMinimalPropBaseType as PullRequestMinimalPropBaseType, ) - from .group_0208 import ( + from .group_0210 import ( PullRequestMinimalPropHeadPropRepoType as PullRequestMinimalPropHeadPropRepoType, ) - from .group_0208 import ( + from .group_0210 import ( PullRequestMinimalPropHeadType as PullRequestMinimalPropHeadType, ) - from .group_0208 import PullRequestMinimalType as PullRequestMinimalType - from .group_0209 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType - from .group_0209 import ( + from .group_0210 import PullRequestMinimalType as PullRequestMinimalType + from .group_0211 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType + from .group_0211 import ( SimpleCommitPropCommitterType as SimpleCommitPropCommitterType, ) - from .group_0209 import SimpleCommitType as SimpleCommitType - from .group_0210 import ReferencedWorkflowType as ReferencedWorkflowType - from .group_0210 import WorkflowRunType as WorkflowRunType - from .group_0211 import ( + from .group_0211 import SimpleCommitType as SimpleCommitType + from .group_0212 import ReferencedWorkflowType as ReferencedWorkflowType + from .group_0212 import WorkflowRunType as WorkflowRunType + from .group_0213 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) - from .group_0211 import EnvironmentApprovalsType as EnvironmentApprovalsType - from .group_0212 import ( + from .group_0213 import EnvironmentApprovalsType as EnvironmentApprovalsType + from .group_0214 import ( ReviewCustomGatesCommentRequiredType as ReviewCustomGatesCommentRequiredType, ) - from .group_0213 import ( + from .group_0215 import ( ReviewCustomGatesStateRequiredType as ReviewCustomGatesStateRequiredType, ) - from .group_0214 import ( + from .group_0216 import ( PendingDeploymentPropEnvironmentType as PendingDeploymentPropEnvironmentType, ) - from .group_0214 import ( + from .group_0216 import ( PendingDeploymentPropReviewersItemsType as PendingDeploymentPropReviewersItemsType, ) - from .group_0214 import PendingDeploymentType as PendingDeploymentType - from .group_0215 import ( + from .group_0216 import PendingDeploymentType as PendingDeploymentType + from .group_0217 import ( DeploymentPropPayloadOneof0Type as DeploymentPropPayloadOneof0Type, ) - from .group_0215 import DeploymentType as DeploymentType - from .group_0216 import ( + from .group_0217 import DeploymentType as DeploymentType + from .group_0218 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropMacosType as WorkflowRunUsagePropBillablePropMacosType, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropUbuntuType as WorkflowRunUsagePropBillablePropUbuntuType, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillablePropWindowsType as WorkflowRunUsagePropBillablePropWindowsType, ) - from .group_0216 import ( + from .group_0218 import ( WorkflowRunUsagePropBillableType as WorkflowRunUsagePropBillableType, ) - from .group_0216 import WorkflowRunUsageType as WorkflowRunUsageType - from .group_0217 import ( + from .group_0218 import WorkflowRunUsageType as WorkflowRunUsageType + from .group_0219 import ( WorkflowUsagePropBillablePropMacosType as WorkflowUsagePropBillablePropMacosType, ) - from .group_0217 import ( + from .group_0219 import ( WorkflowUsagePropBillablePropUbuntuType as WorkflowUsagePropBillablePropUbuntuType, ) - from .group_0217 import ( + from .group_0219 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) - from .group_0217 import ( + from .group_0219 import ( WorkflowUsagePropBillableType as WorkflowUsagePropBillableType, ) - from .group_0217 import WorkflowUsageType as WorkflowUsageType - from .group_0218 import ActivityType as ActivityType - from .group_0219 import AutolinkType as AutolinkType - from .group_0220 import ( + from .group_0219 import WorkflowUsageType as WorkflowUsageType + from .group_0220 import ActivityType as ActivityType + from .group_0221 import AutolinkType as AutolinkType + from .group_0222 import ( CheckAutomatedSecurityFixesType as CheckAutomatedSecurityFixesType, ) - from .group_0221 import ( + from .group_0223 import ( ProtectedBranchPullRequestReviewType as ProtectedBranchPullRequestReviewType, ) - from .group_0222 import ( + from .group_0224 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0222 import ( + from .group_0224 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0223 import ( + from .group_0225 import ( BranchRestrictionPolicyPropAppsItemsPropOwnerType as BranchRestrictionPolicyPropAppsItemsPropOwnerType, ) - from .group_0223 import ( + from .group_0225 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0223 import ( + from .group_0225 import ( BranchRestrictionPolicyPropAppsItemsType as BranchRestrictionPolicyPropAppsItemsType, ) - from .group_0223 import ( + from .group_0225 import ( BranchRestrictionPolicyPropTeamsItemsType as BranchRestrictionPolicyPropTeamsItemsType, ) - from .group_0223 import ( + from .group_0225 import ( BranchRestrictionPolicyPropUsersItemsType as BranchRestrictionPolicyPropUsersItemsType, ) - from .group_0223 import BranchRestrictionPolicyType as BranchRestrictionPolicyType - from .group_0224 import ( + from .group_0225 import BranchRestrictionPolicyType as BranchRestrictionPolicyType + from .group_0226 import ( BranchProtectionPropAllowDeletionsType as BranchProtectionPropAllowDeletionsType, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropAllowForcePushesType as BranchProtectionPropAllowForcePushesType, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropAllowForkSyncingType as BranchProtectionPropAllowForkSyncingType, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropBlockCreationsType as BranchProtectionPropBlockCreationsType, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropLockBranchType as BranchProtectionPropLockBranchType, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropRequiredLinearHistoryType as BranchProtectionPropRequiredLinearHistoryType, ) - from .group_0224 import ( + from .group_0226 import ( BranchProtectionPropRequiredSignaturesType as BranchProtectionPropRequiredSignaturesType, ) - from .group_0224 import BranchProtectionType as BranchProtectionType - from .group_0224 import ( + from .group_0226 import BranchProtectionType as BranchProtectionType + from .group_0226 import ( ProtectedBranchAdminEnforcedType as ProtectedBranchAdminEnforcedType, ) - from .group_0224 import ( + from .group_0226 import ( ProtectedBranchRequiredStatusCheckPropChecksItemsType as ProtectedBranchRequiredStatusCheckPropChecksItemsType, ) - from .group_0224 import ( + from .group_0226 import ( ProtectedBranchRequiredStatusCheckType as ProtectedBranchRequiredStatusCheckType, ) - from .group_0225 import ShortBranchPropCommitType as ShortBranchPropCommitType - from .group_0225 import ShortBranchType as ShortBranchType - from .group_0226 import GitUserType as GitUserType - from .group_0227 import VerificationType as VerificationType - from .group_0228 import DiffEntryType as DiffEntryType - from .group_0229 import CommitPropParentsItemsType as CommitPropParentsItemsType - from .group_0229 import CommitPropStatsType as CommitPropStatsType - from .group_0229 import CommitType as CommitType - from .group_0229 import EmptyObjectType as EmptyObjectType - from .group_0230 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType - from .group_0230 import CommitPropCommitType as CommitPropCommitType - from .group_0231 import ( + from .group_0227 import ShortBranchPropCommitType as ShortBranchPropCommitType + from .group_0227 import ShortBranchType as ShortBranchType + from .group_0228 import GitUserType as GitUserType + from .group_0229 import VerificationType as VerificationType + from .group_0230 import DiffEntryType as DiffEntryType + from .group_0231 import CommitPropParentsItemsType as CommitPropParentsItemsType + from .group_0231 import CommitPropStatsType as CommitPropStatsType + from .group_0231 import CommitType as CommitType + from .group_0231 import EmptyObjectType as EmptyObjectType + from .group_0232 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType + from .group_0232 import CommitPropCommitType as CommitPropCommitType + from .group_0233 import ( BranchWithProtectionPropLinksType as BranchWithProtectionPropLinksType, ) - from .group_0231 import BranchWithProtectionType as BranchWithProtectionType - from .group_0232 import ( + from .group_0233 import BranchWithProtectionType as BranchWithProtectionType + from .group_0234 import ( ProtectedBranchPropAllowDeletionsType as ProtectedBranchPropAllowDeletionsType, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropAllowForcePushesType as ProtectedBranchPropAllowForcePushesType, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropAllowForkSyncingType as ProtectedBranchPropAllowForkSyncingType, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropBlockCreationsType as ProtectedBranchPropBlockCreationsType, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropEnforceAdminsType as ProtectedBranchPropEnforceAdminsType, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropLockBranchType as ProtectedBranchPropLockBranchType, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropRequiredConversationResolutionType as ProtectedBranchPropRequiredConversationResolutionType, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropRequiredLinearHistoryType as ProtectedBranchPropRequiredLinearHistoryType, ) - from .group_0232 import ( + from .group_0234 import ( ProtectedBranchPropRequiredSignaturesType as ProtectedBranchPropRequiredSignaturesType, ) - from .group_0232 import ProtectedBranchType as ProtectedBranchType - from .group_0232 import ( + from .group_0234 import ProtectedBranchType as ProtectedBranchType + from .group_0234 import ( StatusCheckPolicyPropChecksItemsType as StatusCheckPolicyPropChecksItemsType, ) - from .group_0232 import StatusCheckPolicyType as StatusCheckPolicyType - from .group_0233 import ( + from .group_0234 import StatusCheckPolicyType as StatusCheckPolicyType + from .group_0235 import ( ProtectedBranchPropRequiredPullRequestReviewsType as ProtectedBranchPropRequiredPullRequestReviewsType, ) - from .group_0234 import ( + from .group_0236 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0234 import ( + from .group_0236 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0235 import DeploymentSimpleType as DeploymentSimpleType - from .group_0236 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType - from .group_0236 import CheckRunPropOutputType as CheckRunPropOutputType - from .group_0236 import CheckRunType as CheckRunType - from .group_0237 import CheckAnnotationType as CheckAnnotationType - from .group_0238 import CheckSuiteType as CheckSuiteType - from .group_0238 import ( + from .group_0237 import DeploymentSimpleType as DeploymentSimpleType + from .group_0238 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType + from .group_0238 import CheckRunPropOutputType as CheckRunPropOutputType + from .group_0238 import CheckRunType as CheckRunType + from .group_0239 import CheckAnnotationType as CheckAnnotationType + from .group_0240 import CheckSuiteType as CheckSuiteType + from .group_0240 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type, ) - from .group_0239 import ( + from .group_0241 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0239 import ( + from .group_0241 import ( CheckSuitePreferencePropPreferencesType as CheckSuitePreferencePropPreferencesType, ) - from .group_0239 import CheckSuitePreferenceType as CheckSuitePreferenceType - from .group_0240 import CodeScanningAlertItemsType as CodeScanningAlertItemsType - from .group_0241 import CodeScanningAlertRuleType as CodeScanningAlertRuleType - from .group_0241 import CodeScanningAlertType as CodeScanningAlertType - from .group_0242 import CodeScanningAutofixType as CodeScanningAutofixType - from .group_0243 import ( + from .group_0241 import CheckSuitePreferenceType as CheckSuitePreferenceType + from .group_0242 import CodeScanningAlertItemsType as CodeScanningAlertItemsType + from .group_0243 import CodeScanningAlertRuleType as CodeScanningAlertRuleType + from .group_0243 import CodeScanningAlertType as CodeScanningAlertType + from .group_0244 import CodeScanningAutofixType as CodeScanningAutofixType + from .group_0245 import ( CodeScanningAutofixCommitsType as CodeScanningAutofixCommitsType, ) - from .group_0244 import ( + from .group_0246 import ( CodeScanningAutofixCommitsResponseType as CodeScanningAutofixCommitsResponseType, ) - from .group_0245 import CodeScanningAnalysisType as CodeScanningAnalysisType - from .group_0246 import ( + from .group_0247 import CodeScanningAnalysisType as CodeScanningAnalysisType + from .group_0248 import ( CodeScanningAnalysisDeletionType as CodeScanningAnalysisDeletionType, ) - from .group_0247 import ( + from .group_0249 import ( CodeScanningCodeqlDatabaseType as CodeScanningCodeqlDatabaseType, ) - from .group_0248 import ( + from .group_0250 import ( CodeScanningVariantAnalysisRepositoryType as CodeScanningVariantAnalysisRepositoryType, ) - from .group_0249 import ( + from .group_0251 import ( CodeScanningVariantAnalysisSkippedRepoGroupType as CodeScanningVariantAnalysisSkippedRepoGroupType, ) - from .group_0250 import ( + from .group_0252 import ( CodeScanningVariantAnalysisType as CodeScanningVariantAnalysisType, ) - from .group_0251 import ( + from .group_0253 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItemsType as CodeScanningVariantAnalysisPropScannedRepositoriesItemsType, ) - from .group_0252 import ( + from .group_0254 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType, ) - from .group_0252 import ( + from .group_0254 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesType as CodeScanningVariantAnalysisPropSkippedRepositoriesType, ) - from .group_0253 import ( + from .group_0255 import ( CodeScanningVariantAnalysisRepoTaskType as CodeScanningVariantAnalysisRepoTaskType, ) - from .group_0254 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType - from .group_0255 import ( + from .group_0256 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType + from .group_0257 import ( CodeScanningDefaultSetupUpdateType as CodeScanningDefaultSetupUpdateType, ) - from .group_0256 import ( + from .group_0258 import ( CodeScanningDefaultSetupUpdateResponseType as CodeScanningDefaultSetupUpdateResponseType, ) - from .group_0257 import ( + from .group_0259 import ( CodeScanningSarifsReceiptType as CodeScanningSarifsReceiptType, ) - from .group_0258 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType - from .group_0259 import ( + from .group_0260 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType + from .group_0261 import ( CodeSecurityConfigurationForRepositoryType as CodeSecurityConfigurationForRepositoryType, ) - from .group_0260 import ( + from .group_0262 import ( CodeownersErrorsPropErrorsItemsType as CodeownersErrorsPropErrorsItemsType, ) - from .group_0260 import CodeownersErrorsType as CodeownersErrorsType - from .group_0261 import ( + from .group_0262 import CodeownersErrorsType as CodeownersErrorsType + from .group_0263 import ( CodespacesPermissionsCheckForDevcontainerType as CodespacesPermissionsCheckForDevcontainerType, ) - from .group_0262 import RepositoryInvitationType as RepositoryInvitationType - from .group_0263 import ( + from .group_0264 import RepositoryInvitationType as RepositoryInvitationType + from .group_0265 import ( CollaboratorPropPermissionsType as CollaboratorPropPermissionsType, ) - from .group_0263 import CollaboratorType as CollaboratorType - from .group_0263 import ( + from .group_0265 import CollaboratorType as CollaboratorType + from .group_0265 import ( RepositoryCollaboratorPermissionType as RepositoryCollaboratorPermissionType, ) - from .group_0264 import CommitCommentType as CommitCommentType - from .group_0264 import ( + from .group_0266 import CommitCommentType as CommitCommentType + from .group_0266 import ( TimelineCommitCommentedEventType as TimelineCommitCommentedEventType, ) - from .group_0265 import BranchShortPropCommitType as BranchShortPropCommitType - from .group_0265 import BranchShortType as BranchShortType - from .group_0266 import LinkType as LinkType - from .group_0267 import AutoMergeType as AutoMergeType - from .group_0268 import ( + from .group_0267 import BranchShortPropCommitType as BranchShortPropCommitType + from .group_0267 import BranchShortType as BranchShortType + from .group_0268 import LinkType as LinkType + from .group_0269 import AutoMergeType as AutoMergeType + from .group_0270 import ( PullRequestSimplePropLabelsItemsType as PullRequestSimplePropLabelsItemsType, ) - from .group_0268 import PullRequestSimpleType as PullRequestSimpleType - from .group_0269 import ( + from .group_0270 import PullRequestSimpleType as PullRequestSimpleType + from .group_0271 import ( PullRequestSimplePropBaseType as PullRequestSimplePropBaseType, ) - from .group_0269 import ( + from .group_0271 import ( PullRequestSimplePropHeadType as PullRequestSimplePropHeadType, ) - from .group_0270 import ( + from .group_0272 import ( PullRequestSimplePropLinksType as PullRequestSimplePropLinksType, ) - from .group_0271 import CombinedCommitStatusType as CombinedCommitStatusType - from .group_0271 import SimpleCommitStatusType as SimpleCommitStatusType - from .group_0272 import StatusType as StatusType - from .group_0273 import CommunityHealthFileType as CommunityHealthFileType - from .group_0273 import ( + from .group_0273 import CombinedCommitStatusType as CombinedCommitStatusType + from .group_0273 import SimpleCommitStatusType as SimpleCommitStatusType + from .group_0274 import StatusType as StatusType + from .group_0275 import CommunityHealthFileType as CommunityHealthFileType + from .group_0275 import ( CommunityProfilePropFilesType as CommunityProfilePropFilesType, ) - from .group_0273 import CommunityProfileType as CommunityProfileType - from .group_0274 import CommitComparisonType as CommitComparisonType - from .group_0275 import ( + from .group_0275 import CommunityProfileType as CommunityProfileType + from .group_0276 import CommitComparisonType as CommitComparisonType + from .group_0277 import ( ContentTreePropEntriesItemsPropLinksType as ContentTreePropEntriesItemsPropLinksType, ) - from .group_0275 import ( + from .group_0277 import ( ContentTreePropEntriesItemsType as ContentTreePropEntriesItemsType, ) - from .group_0275 import ContentTreePropLinksType as ContentTreePropLinksType - from .group_0275 import ContentTreeType as ContentTreeType - from .group_0276 import ( + from .group_0277 import ContentTreePropLinksType as ContentTreePropLinksType + from .group_0277 import ContentTreeType as ContentTreeType + from .group_0278 import ( ContentDirectoryItemsPropLinksType as ContentDirectoryItemsPropLinksType, ) - from .group_0276 import ContentDirectoryItemsType as ContentDirectoryItemsType - from .group_0277 import ContentFilePropLinksType as ContentFilePropLinksType - from .group_0277 import ContentFileType as ContentFileType - from .group_0278 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType - from .group_0278 import ContentSymlinkType as ContentSymlinkType - from .group_0279 import ( + from .group_0278 import ContentDirectoryItemsType as ContentDirectoryItemsType + from .group_0279 import ContentFilePropLinksType as ContentFilePropLinksType + from .group_0279 import ContentFileType as ContentFileType + from .group_0280 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType + from .group_0280 import ContentSymlinkType as ContentSymlinkType + from .group_0281 import ( ContentSubmodulePropLinksType as ContentSubmodulePropLinksType, ) - from .group_0279 import ContentSubmoduleType as ContentSubmoduleType - from .group_0280 import ( + from .group_0281 import ContentSubmoduleType as ContentSubmoduleType + from .group_0282 import ( FileCommitPropCommitPropAuthorType as FileCommitPropCommitPropAuthorType, ) - from .group_0280 import ( + from .group_0282 import ( FileCommitPropCommitPropCommitterType as FileCommitPropCommitPropCommitterType, ) - from .group_0280 import ( + from .group_0282 import ( FileCommitPropCommitPropParentsItemsType as FileCommitPropCommitPropParentsItemsType, ) - from .group_0280 import ( + from .group_0282 import ( FileCommitPropCommitPropTreeType as FileCommitPropCommitPropTreeType, ) - from .group_0280 import ( + from .group_0282 import ( FileCommitPropCommitPropVerificationType as FileCommitPropCommitPropVerificationType, ) - from .group_0280 import FileCommitPropCommitType as FileCommitPropCommitType - from .group_0280 import ( + from .group_0282 import FileCommitPropCommitType as FileCommitPropCommitType + from .group_0282 import ( FileCommitPropContentPropLinksType as FileCommitPropContentPropLinksType, ) - from .group_0280 import FileCommitPropContentType as FileCommitPropContentType - from .group_0280 import FileCommitType as FileCommitType - from .group_0281 import ( + from .group_0282 import FileCommitPropContentType as FileCommitPropContentType + from .group_0282 import FileCommitType as FileCommitType + from .group_0283 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType, ) - from .group_0281 import ( + from .group_0283 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningType, ) - from .group_0281 import ( + from .group_0283 import ( RepositoryRuleViolationErrorPropMetadataType as RepositoryRuleViolationErrorPropMetadataType, ) - from .group_0281 import ( + from .group_0283 import ( RepositoryRuleViolationErrorType as RepositoryRuleViolationErrorType, ) - from .group_0282 import ContributorType as ContributorType - from .group_0283 import DependabotAlertType as DependabotAlertType - from .group_0284 import ( + from .group_0284 import ContributorType as ContributorType + from .group_0285 import DependabotAlertType as DependabotAlertType + from .group_0286 import ( DependabotAlertPropDependencyType as DependabotAlertPropDependencyType, ) - from .group_0285 import ( + from .group_0287 import ( DependencyGraphDiffItemsPropVulnerabilitiesItemsType as DependencyGraphDiffItemsPropVulnerabilitiesItemsType, ) - from .group_0285 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType - from .group_0286 import ( + from .group_0287 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType + from .group_0288 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfoType as DependencyGraphSpdxSbomPropSbomPropCreationInfoType, ) - from .group_0286 import ( + from .group_0288 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0286 import ( + from .group_0288 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsType, ) - from .group_0286 import ( + from .group_0288 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType as DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType, ) - from .group_0286 import ( + from .group_0288 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0286 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType - from .group_0287 import MetadataType as MetadataType - from .group_0288 import DependencyType as DependencyType - from .group_0289 import ManifestPropFileType as ManifestPropFileType - from .group_0289 import ManifestPropResolvedType as ManifestPropResolvedType - from .group_0289 import ManifestType as ManifestType - from .group_0290 import SnapshotPropDetectorType as SnapshotPropDetectorType - from .group_0290 import SnapshotPropJobType as SnapshotPropJobType - from .group_0290 import SnapshotPropManifestsType as SnapshotPropManifestsType - from .group_0290 import SnapshotType as SnapshotType - from .group_0291 import DeploymentStatusType as DeploymentStatusType - from .group_0292 import ( + from .group_0288 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType + from .group_0289 import MetadataType as MetadataType + from .group_0290 import DependencyType as DependencyType + from .group_0291 import ManifestPropFileType as ManifestPropFileType + from .group_0291 import ManifestPropResolvedType as ManifestPropResolvedType + from .group_0291 import ManifestType as ManifestType + from .group_0292 import SnapshotPropDetectorType as SnapshotPropDetectorType + from .group_0292 import SnapshotPropJobType as SnapshotPropJobType + from .group_0292 import SnapshotPropManifestsType as SnapshotPropManifestsType + from .group_0292 import SnapshotType as SnapshotType + from .group_0293 import DeploymentStatusType as DeploymentStatusType + from .group_0294 import ( DeploymentBranchPolicySettingsType as DeploymentBranchPolicySettingsType, ) - from .group_0293 import ( + from .group_0295 import ( EnvironmentPropProtectionRulesItemsAnyof0Type as EnvironmentPropProtectionRulesItemsAnyof0Type, ) - from .group_0293 import ( + from .group_0295 import ( EnvironmentPropProtectionRulesItemsAnyof2Type as EnvironmentPropProtectionRulesItemsAnyof2Type, ) - from .group_0293 import EnvironmentType as EnvironmentType - from .group_0293 import ( + from .group_0295 import EnvironmentType as EnvironmentType + from .group_0295 import ( ReposOwnerRepoEnvironmentsGetResponse200Type as ReposOwnerRepoEnvironmentsGetResponse200Type, ) - from .group_0294 import ( + from .group_0296 import ( EnvironmentPropProtectionRulesItemsAnyof1Type as EnvironmentPropProtectionRulesItemsAnyof1Type, ) - from .group_0295 import ( + from .group_0297 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType, ) - from .group_0296 import ( + from .group_0298 import ( DeploymentBranchPolicyNamePatternWithTypeType as DeploymentBranchPolicyNamePatternWithTypeType, ) - from .group_0297 import ( + from .group_0299 import ( DeploymentBranchPolicyNamePatternType as DeploymentBranchPolicyNamePatternType, ) - from .group_0298 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType - from .group_0299 import DeploymentProtectionRuleType as DeploymentProtectionRuleType - from .group_0299 import ( + from .group_0300 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType + from .group_0301 import DeploymentProtectionRuleType as DeploymentProtectionRuleType + from .group_0301 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0300 import ShortBlobType as ShortBlobType - from .group_0301 import BlobType as BlobType - from .group_0302 import GitCommitPropAuthorType as GitCommitPropAuthorType - from .group_0302 import GitCommitPropCommitterType as GitCommitPropCommitterType - from .group_0302 import ( + from .group_0302 import ShortBlobType as ShortBlobType + from .group_0303 import BlobType as BlobType + from .group_0304 import GitCommitPropAuthorType as GitCommitPropAuthorType + from .group_0304 import GitCommitPropCommitterType as GitCommitPropCommitterType + from .group_0304 import ( GitCommitPropParentsItemsType as GitCommitPropParentsItemsType, ) - from .group_0302 import GitCommitPropTreeType as GitCommitPropTreeType - from .group_0302 import ( + from .group_0304 import GitCommitPropTreeType as GitCommitPropTreeType + from .group_0304 import ( GitCommitPropVerificationType as GitCommitPropVerificationType, ) - from .group_0302 import GitCommitType as GitCommitType - from .group_0303 import GitRefPropObjectType as GitRefPropObjectType - from .group_0303 import GitRefType as GitRefType - from .group_0304 import GitTagPropObjectType as GitTagPropObjectType - from .group_0304 import GitTagPropTaggerType as GitTagPropTaggerType - from .group_0304 import GitTagType as GitTagType - from .group_0305 import GitTreePropTreeItemsType as GitTreePropTreeItemsType - from .group_0305 import GitTreeType as GitTreeType - from .group_0306 import HookResponseType as HookResponseType - from .group_0307 import HookType as HookType - from .group_0308 import ( + from .group_0304 import GitCommitType as GitCommitType + from .group_0305 import GitRefPropObjectType as GitRefPropObjectType + from .group_0305 import GitRefType as GitRefType + from .group_0306 import GitTagPropObjectType as GitTagPropObjectType + from .group_0306 import GitTagPropTaggerType as GitTagPropTaggerType + from .group_0306 import GitTagType as GitTagType + from .group_0307 import GitTreePropTreeItemsType as GitTreePropTreeItemsType + from .group_0307 import GitTreeType as GitTreeType + from .group_0308 import HookResponseType as HookResponseType + from .group_0309 import HookType as HookType + from .group_0310 import ( ImportPropProjectChoicesItemsType as ImportPropProjectChoicesItemsType, ) - from .group_0308 import ImportType as ImportType - from .group_0309 import PorterAuthorType as PorterAuthorType - from .group_0310 import PorterLargeFileType as PorterLargeFileType - from .group_0311 import ( + from .group_0310 import ImportType as ImportType + from .group_0311 import PorterAuthorType as PorterAuthorType + from .group_0312 import PorterLargeFileType as PorterLargeFileType + from .group_0313 import ( IssueEventDismissedReviewType as IssueEventDismissedReviewType, ) - from .group_0311 import IssueEventLabelType as IssueEventLabelType - from .group_0311 import IssueEventMilestoneType as IssueEventMilestoneType - from .group_0311 import IssueEventProjectCardType as IssueEventProjectCardType - from .group_0311 import IssueEventRenameType as IssueEventRenameType - from .group_0311 import IssueEventType as IssueEventType - from .group_0312 import ( + from .group_0313 import IssueEventLabelType as IssueEventLabelType + from .group_0313 import IssueEventMilestoneType as IssueEventMilestoneType + from .group_0313 import IssueEventProjectCardType as IssueEventProjectCardType + from .group_0313 import IssueEventRenameType as IssueEventRenameType + from .group_0313 import IssueEventType as IssueEventType + from .group_0314 import ( LabeledIssueEventPropLabelType as LabeledIssueEventPropLabelType, ) - from .group_0312 import LabeledIssueEventType as LabeledIssueEventType - from .group_0313 import ( + from .group_0314 import LabeledIssueEventType as LabeledIssueEventType + from .group_0315 import ( UnlabeledIssueEventPropLabelType as UnlabeledIssueEventPropLabelType, ) - from .group_0313 import UnlabeledIssueEventType as UnlabeledIssueEventType - from .group_0314 import AssignedIssueEventType as AssignedIssueEventType - from .group_0315 import UnassignedIssueEventType as UnassignedIssueEventType - from .group_0316 import ( + from .group_0315 import UnlabeledIssueEventType as UnlabeledIssueEventType + from .group_0316 import AssignedIssueEventType as AssignedIssueEventType + from .group_0317 import UnassignedIssueEventType as UnassignedIssueEventType + from .group_0318 import ( MilestonedIssueEventPropMilestoneType as MilestonedIssueEventPropMilestoneType, ) - from .group_0316 import MilestonedIssueEventType as MilestonedIssueEventType - from .group_0317 import ( + from .group_0318 import MilestonedIssueEventType as MilestonedIssueEventType + from .group_0319 import ( DemilestonedIssueEventPropMilestoneType as DemilestonedIssueEventPropMilestoneType, ) - from .group_0317 import DemilestonedIssueEventType as DemilestonedIssueEventType - from .group_0318 import ( + from .group_0319 import DemilestonedIssueEventType as DemilestonedIssueEventType + from .group_0320 import ( RenamedIssueEventPropRenameType as RenamedIssueEventPropRenameType, ) - from .group_0318 import RenamedIssueEventType as RenamedIssueEventType - from .group_0319 import ( + from .group_0320 import RenamedIssueEventType as RenamedIssueEventType + from .group_0321 import ( ReviewRequestedIssueEventType as ReviewRequestedIssueEventType, ) - from .group_0320 import ( + from .group_0322 import ( ReviewRequestRemovedIssueEventType as ReviewRequestRemovedIssueEventType, ) - from .group_0321 import ( + from .group_0323 import ( ReviewDismissedIssueEventPropDismissedReviewType as ReviewDismissedIssueEventPropDismissedReviewType, ) - from .group_0321 import ( + from .group_0323 import ( ReviewDismissedIssueEventType as ReviewDismissedIssueEventType, ) - from .group_0322 import LockedIssueEventType as LockedIssueEventType - from .group_0323 import ( + from .group_0324 import LockedIssueEventType as LockedIssueEventType + from .group_0325 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0323 import AddedToProjectIssueEventType as AddedToProjectIssueEventType - from .group_0324 import ( + from .group_0325 import AddedToProjectIssueEventType as AddedToProjectIssueEventType + from .group_0326 import ( MovedColumnInProjectIssueEventPropProjectCardType as MovedColumnInProjectIssueEventPropProjectCardType, ) - from .group_0324 import ( + from .group_0326 import ( MovedColumnInProjectIssueEventType as MovedColumnInProjectIssueEventType, ) - from .group_0325 import ( + from .group_0327 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0325 import ( + from .group_0327 import ( RemovedFromProjectIssueEventType as RemovedFromProjectIssueEventType, ) - from .group_0326 import ( + from .group_0328 import ( ConvertedNoteToIssueIssueEventPropProjectCardType as ConvertedNoteToIssueIssueEventPropProjectCardType, ) - from .group_0326 import ( + from .group_0328 import ( ConvertedNoteToIssueIssueEventType as ConvertedNoteToIssueIssueEventType, ) - from .group_0327 import TimelineCommentEventType as TimelineCommentEventType - from .group_0328 import ( + from .group_0329 import TimelineCommentEventType as TimelineCommentEventType + from .group_0330 import ( TimelineCrossReferencedEventType as TimelineCrossReferencedEventType, ) - from .group_0329 import ( + from .group_0331 import ( TimelineCrossReferencedEventPropSourceType as TimelineCrossReferencedEventPropSourceType, ) - from .group_0330 import ( + from .group_0332 import ( TimelineCommittedEventPropAuthorType as TimelineCommittedEventPropAuthorType, ) - from .group_0330 import ( + from .group_0332 import ( TimelineCommittedEventPropCommitterType as TimelineCommittedEventPropCommitterType, ) - from .group_0330 import ( + from .group_0332 import ( TimelineCommittedEventPropParentsItemsType as TimelineCommittedEventPropParentsItemsType, ) - from .group_0330 import ( + from .group_0332 import ( TimelineCommittedEventPropTreeType as TimelineCommittedEventPropTreeType, ) - from .group_0330 import ( + from .group_0332 import ( TimelineCommittedEventPropVerificationType as TimelineCommittedEventPropVerificationType, ) - from .group_0330 import TimelineCommittedEventType as TimelineCommittedEventType - from .group_0331 import ( + from .group_0332 import TimelineCommittedEventType as TimelineCommittedEventType + from .group_0333 import ( TimelineReviewedEventPropLinksPropHtmlType as TimelineReviewedEventPropLinksPropHtmlType, ) - from .group_0331 import ( + from .group_0333 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0331 import ( + from .group_0333 import ( TimelineReviewedEventPropLinksType as TimelineReviewedEventPropLinksType, ) - from .group_0331 import TimelineReviewedEventType as TimelineReviewedEventType - from .group_0332 import ( + from .group_0333 import TimelineReviewedEventType as TimelineReviewedEventType + from .group_0334 import ( PullRequestReviewCommentPropLinksPropHtmlType as PullRequestReviewCommentPropLinksPropHtmlType, ) - from .group_0332 import ( + from .group_0334 import ( PullRequestReviewCommentPropLinksPropPullRequestType as PullRequestReviewCommentPropLinksPropPullRequestType, ) - from .group_0332 import ( + from .group_0334 import ( PullRequestReviewCommentPropLinksPropSelfType as PullRequestReviewCommentPropLinksPropSelfType, ) - from .group_0332 import ( + from .group_0334 import ( PullRequestReviewCommentPropLinksType as PullRequestReviewCommentPropLinksType, ) - from .group_0332 import PullRequestReviewCommentType as PullRequestReviewCommentType - from .group_0332 import ( + from .group_0334 import PullRequestReviewCommentType as PullRequestReviewCommentType + from .group_0334 import ( TimelineLineCommentedEventType as TimelineLineCommentedEventType, ) - from .group_0333 import ( + from .group_0335 import ( TimelineAssignedIssueEventType as TimelineAssignedIssueEventType, ) - from .group_0334 import ( + from .group_0336 import ( TimelineUnassignedIssueEventType as TimelineUnassignedIssueEventType, ) - from .group_0335 import StateChangeIssueEventType as StateChangeIssueEventType - from .group_0336 import DeployKeyType as DeployKeyType - from .group_0337 import LanguageType as LanguageType - from .group_0338 import LicenseContentPropLinksType as LicenseContentPropLinksType - from .group_0338 import LicenseContentType as LicenseContentType - from .group_0339 import MergedUpstreamType as MergedUpstreamType - from .group_0340 import PagesHttpsCertificateType as PagesHttpsCertificateType - from .group_0340 import PagesSourceHashType as PagesSourceHashType - from .group_0340 import PageType as PageType - from .group_0341 import PageBuildPropErrorType as PageBuildPropErrorType - from .group_0341 import PageBuildType as PageBuildType - from .group_0342 import PageBuildStatusType as PageBuildStatusType - from .group_0343 import PageDeploymentType as PageDeploymentType - from .group_0344 import PagesDeploymentStatusType as PagesDeploymentStatusType - from .group_0345 import ( + from .group_0337 import StateChangeIssueEventType as StateChangeIssueEventType + from .group_0338 import DeployKeyType as DeployKeyType + from .group_0339 import LanguageType as LanguageType + from .group_0340 import LicenseContentPropLinksType as LicenseContentPropLinksType + from .group_0340 import LicenseContentType as LicenseContentType + from .group_0341 import MergedUpstreamType as MergedUpstreamType + from .group_0342 import PagesHttpsCertificateType as PagesHttpsCertificateType + from .group_0342 import PagesSourceHashType as PagesSourceHashType + from .group_0342 import PageType as PageType + from .group_0343 import PageBuildPropErrorType as PageBuildPropErrorType + from .group_0343 import PageBuildType as PageBuildType + from .group_0344 import PageBuildStatusType as PageBuildStatusType + from .group_0345 import PageDeploymentType as PageDeploymentType + from .group_0346 import PagesDeploymentStatusType as PagesDeploymentStatusType + from .group_0347 import ( PagesHealthCheckPropAltDomainType as PagesHealthCheckPropAltDomainType, ) - from .group_0345 import ( + from .group_0347 import ( PagesHealthCheckPropDomainType as PagesHealthCheckPropDomainType, ) - from .group_0345 import PagesHealthCheckType as PagesHealthCheckType - from .group_0346 import PullRequestType as PullRequestType - from .group_0347 import ( + from .group_0347 import PagesHealthCheckType as PagesHealthCheckType + from .group_0348 import PullRequestType as PullRequestType + from .group_0349 import ( PullRequestPropLabelsItemsType as PullRequestPropLabelsItemsType, ) - from .group_0348 import PullRequestPropBaseType as PullRequestPropBaseType - from .group_0348 import PullRequestPropHeadType as PullRequestPropHeadType - from .group_0349 import PullRequestPropLinksType as PullRequestPropLinksType - from .group_0350 import PullRequestMergeResultType as PullRequestMergeResultType - from .group_0351 import PullRequestReviewRequestType as PullRequestReviewRequestType - from .group_0352 import ( + from .group_0350 import PullRequestPropBaseType as PullRequestPropBaseType + from .group_0350 import PullRequestPropHeadType as PullRequestPropHeadType + from .group_0351 import PullRequestPropLinksType as PullRequestPropLinksType + from .group_0352 import PullRequestMergeResultType as PullRequestMergeResultType + from .group_0353 import PullRequestReviewRequestType as PullRequestReviewRequestType + from .group_0354 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0352 import ( + from .group_0354 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0352 import ( + from .group_0354 import ( PullRequestReviewPropLinksType as PullRequestReviewPropLinksType, ) - from .group_0352 import PullRequestReviewType as PullRequestReviewType - from .group_0353 import ReviewCommentType as ReviewCommentType - from .group_0354 import ReviewCommentPropLinksType as ReviewCommentPropLinksType - from .group_0355 import ReleaseAssetType as ReleaseAssetType - from .group_0356 import ReleaseType as ReleaseType - from .group_0357 import ReleaseNotesContentType as ReleaseNotesContentType - from .group_0358 import ( + from .group_0354 import PullRequestReviewType as PullRequestReviewType + from .group_0355 import ReviewCommentType as ReviewCommentType + from .group_0356 import ReviewCommentPropLinksType as ReviewCommentPropLinksType + from .group_0357 import ReleaseAssetType as ReleaseAssetType + from .group_0358 import ReleaseType as ReleaseType + from .group_0359 import ReleaseNotesContentType as ReleaseNotesContentType + from .group_0360 import ( RepositoryRuleRulesetInfoType as RepositoryRuleRulesetInfoType, ) - from .group_0359 import ( + from .group_0361 import ( RepositoryRuleDetailedOneof0Type as RepositoryRuleDetailedOneof0Type, ) - from .group_0360 import ( + from .group_0362 import ( RepositoryRuleDetailedOneof1Type as RepositoryRuleDetailedOneof1Type, ) - from .group_0361 import ( + from .group_0363 import ( RepositoryRuleDetailedOneof2Type as RepositoryRuleDetailedOneof2Type, ) - from .group_0362 import ( + from .group_0364 import ( RepositoryRuleDetailedOneof3Type as RepositoryRuleDetailedOneof3Type, ) - from .group_0363 import ( + from .group_0365 import ( RepositoryRuleDetailedOneof4Type as RepositoryRuleDetailedOneof4Type, ) - from .group_0364 import ( + from .group_0366 import ( RepositoryRuleDetailedOneof5Type as RepositoryRuleDetailedOneof5Type, ) - from .group_0365 import ( + from .group_0367 import ( RepositoryRuleDetailedOneof6Type as RepositoryRuleDetailedOneof6Type, ) - from .group_0366 import ( + from .group_0368 import ( RepositoryRuleDetailedOneof7Type as RepositoryRuleDetailedOneof7Type, ) - from .group_0367 import ( + from .group_0369 import ( RepositoryRuleDetailedOneof8Type as RepositoryRuleDetailedOneof8Type, ) - from .group_0368 import ( + from .group_0370 import ( RepositoryRuleDetailedOneof9Type as RepositoryRuleDetailedOneof9Type, ) - from .group_0369 import ( + from .group_0371 import ( RepositoryRuleDetailedOneof10Type as RepositoryRuleDetailedOneof10Type, ) - from .group_0370 import ( + from .group_0372 import ( RepositoryRuleDetailedOneof11Type as RepositoryRuleDetailedOneof11Type, ) - from .group_0371 import ( + from .group_0373 import ( RepositoryRuleDetailedOneof12Type as RepositoryRuleDetailedOneof12Type, ) - from .group_0372 import ( + from .group_0374 import ( RepositoryRuleDetailedOneof13Type as RepositoryRuleDetailedOneof13Type, ) - from .group_0373 import ( + from .group_0375 import ( RepositoryRuleDetailedOneof14Type as RepositoryRuleDetailedOneof14Type, ) - from .group_0374 import ( + from .group_0376 import ( RepositoryRuleDetailedOneof15Type as RepositoryRuleDetailedOneof15Type, ) - from .group_0375 import ( + from .group_0377 import ( RepositoryRuleDetailedOneof16Type as RepositoryRuleDetailedOneof16Type, ) - from .group_0376 import ( + from .group_0378 import ( RepositoryRuleDetailedOneof17Type as RepositoryRuleDetailedOneof17Type, ) - from .group_0377 import ( + from .group_0379 import ( RepositoryRuleDetailedOneof18Type as RepositoryRuleDetailedOneof18Type, ) - from .group_0378 import ( + from .group_0380 import ( RepositoryRuleDetailedOneof19Type as RepositoryRuleDetailedOneof19Type, ) - from .group_0379 import ( + from .group_0381 import ( RepositoryRuleDetailedOneof20Type as RepositoryRuleDetailedOneof20Type, ) - from .group_0380 import SecretScanningAlertType as SecretScanningAlertType - from .group_0381 import SecretScanningLocationType as SecretScanningLocationType - from .group_0382 import ( + from .group_0382 import SecretScanningAlertType as SecretScanningAlertType + from .group_0383 import SecretScanningLocationType as SecretScanningLocationType + from .group_0384 import ( SecretScanningPushProtectionBypassType as SecretScanningPushProtectionBypassType, ) - from .group_0383 import ( + from .group_0385 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType, ) - from .group_0383 import ( + from .group_0385 import ( SecretScanningScanHistoryType as SecretScanningScanHistoryType, ) - from .group_0383 import SecretScanningScanType as SecretScanningScanType - from .group_0384 import ( + from .group_0385 import SecretScanningScanType as SecretScanningScanType + from .group_0386 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type, ) - from .group_0385 import ( + from .group_0387 import ( RepositoryAdvisoryCreatePropCreditsItemsType as RepositoryAdvisoryCreatePropCreditsItemsType, ) - from .group_0385 import ( + from .group_0387 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0385 import ( + from .group_0387 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsType, ) - from .group_0385 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType - from .group_0386 import ( + from .group_0387 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType + from .group_0388 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0386 import ( + from .group_0388 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0386 import ( + from .group_0388 import ( PrivateVulnerabilityReportCreateType as PrivateVulnerabilityReportCreateType, ) - from .group_0387 import ( + from .group_0389 import ( RepositoryAdvisoryUpdatePropCreditsItemsType as RepositoryAdvisoryUpdatePropCreditsItemsType, ) - from .group_0387 import ( + from .group_0389 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0387 import ( + from .group_0389 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0387 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType - from .group_0388 import StargazerType as StargazerType - from .group_0389 import CommitActivityType as CommitActivityType - from .group_0390 import ( + from .group_0389 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType + from .group_0390 import StargazerType as StargazerType + from .group_0391 import CommitActivityType as CommitActivityType + from .group_0392 import ( ContributorActivityPropWeeksItemsType as ContributorActivityPropWeeksItemsType, ) - from .group_0390 import ContributorActivityType as ContributorActivityType - from .group_0391 import ParticipationStatsType as ParticipationStatsType - from .group_0392 import RepositorySubscriptionType as RepositorySubscriptionType - from .group_0393 import TagPropCommitType as TagPropCommitType - from .group_0393 import TagType as TagType - from .group_0394 import TagProtectionType as TagProtectionType - from .group_0395 import TopicType as TopicType - from .group_0396 import TrafficType as TrafficType - from .group_0397 import CloneTrafficType as CloneTrafficType - from .group_0398 import ContentTrafficType as ContentTrafficType - from .group_0399 import ReferrerTrafficType as ReferrerTrafficType - from .group_0400 import ViewTrafficType as ViewTrafficType - from .group_0401 import ( + from .group_0392 import ContributorActivityType as ContributorActivityType + from .group_0393 import ParticipationStatsType as ParticipationStatsType + from .group_0394 import RepositorySubscriptionType as RepositorySubscriptionType + from .group_0395 import TagPropCommitType as TagPropCommitType + from .group_0395 import TagType as TagType + from .group_0396 import TagProtectionType as TagProtectionType + from .group_0397 import TopicType as TopicType + from .group_0398 import TrafficType as TrafficType + from .group_0399 import CloneTrafficType as CloneTrafficType + from .group_0400 import ContentTrafficType as ContentTrafficType + from .group_0401 import ReferrerTrafficType as ReferrerTrafficType + from .group_0402 import ViewTrafficType as ViewTrafficType + from .group_0403 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0401 import ( + from .group_0403 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0402 import CodeSearchResultItemType as CodeSearchResultItemType - from .group_0402 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0403 import ( + from .group_0404 import CodeSearchResultItemType as CodeSearchResultItemType + from .group_0404 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type + from .group_0405 import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) - from .group_0403 import CommitSearchResultItemType as CommitSearchResultItemType - from .group_0403 import ( + from .group_0405 import CommitSearchResultItemType as CommitSearchResultItemType + from .group_0405 import ( SearchCommitsGetResponse200Type as SearchCommitsGetResponse200Type, ) - from .group_0404 import ( + from .group_0406 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0404 import ( + from .group_0406 import ( CommitSearchResultItemPropCommitPropTreeType as CommitSearchResultItemPropCommitPropTreeType, ) - from .group_0404 import ( + from .group_0406 import ( CommitSearchResultItemPropCommitType as CommitSearchResultItemPropCommitType, ) - from .group_0405 import ( + from .group_0407 import ( IssueSearchResultItemPropLabelsItemsType as IssueSearchResultItemPropLabelsItemsType, ) - from .group_0405 import ( + from .group_0407 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0405 import ( - IssueSearchResultItemPropSubIssuesSummaryType as IssueSearchResultItemPropSubIssuesSummaryType, - ) - from .group_0405 import IssueSearchResultItemType as IssueSearchResultItemType - from .group_0405 import ( + from .group_0407 import IssueSearchResultItemType as IssueSearchResultItemType + from .group_0407 import ( SearchIssuesGetResponse200Type as SearchIssuesGetResponse200Type, ) - from .group_0406 import LabelSearchResultItemType as LabelSearchResultItemType - from .group_0406 import ( + from .group_0408 import LabelSearchResultItemType as LabelSearchResultItemType + from .group_0408 import ( SearchLabelsGetResponse200Type as SearchLabelsGetResponse200Type, ) - from .group_0407 import ( + from .group_0409 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0407 import RepoSearchResultItemType as RepoSearchResultItemType - from .group_0407 import ( + from .group_0409 import RepoSearchResultItemType as RepoSearchResultItemType + from .group_0409 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0408 import ( + from .group_0410 import ( SearchTopicsGetResponse200Type as SearchTopicsGetResponse200Type, ) - from .group_0408 import ( + from .group_0410 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelationType as TopicSearchResultItemPropAliasesItemsPropTopicRelationType, ) - from .group_0408 import ( + from .group_0410 import ( TopicSearchResultItemPropAliasesItemsType as TopicSearchResultItemPropAliasesItemsType, ) - from .group_0408 import ( + from .group_0410 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0408 import ( + from .group_0410 import ( TopicSearchResultItemPropRelatedItemsType as TopicSearchResultItemPropRelatedItemsType, ) - from .group_0408 import TopicSearchResultItemType as TopicSearchResultItemType - from .group_0409 import ( + from .group_0410 import TopicSearchResultItemType as TopicSearchResultItemType + from .group_0411 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0409 import UserSearchResultItemType as UserSearchResultItemType - from .group_0410 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0410 import PrivateUserType as PrivateUserType - from .group_0411 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType - from .group_0412 import CodespaceExportDetailsType as CodespaceExportDetailsType - from .group_0413 import ( + from .group_0411 import UserSearchResultItemType as UserSearchResultItemType + from .group_0412 import PrivateUserPropPlanType as PrivateUserPropPlanType + from .group_0412 import PrivateUserType as PrivateUserType + from .group_0413 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType + from .group_0414 import CodespaceExportDetailsType as CodespaceExportDetailsType + from .group_0415 import ( CodespaceWithFullRepositoryPropGitStatusType as CodespaceWithFullRepositoryPropGitStatusType, ) - from .group_0413 import ( + from .group_0415 import ( CodespaceWithFullRepositoryPropRuntimeConstraintsType as CodespaceWithFullRepositoryPropRuntimeConstraintsType, ) - from .group_0413 import ( + from .group_0415 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0414 import EmailType as EmailType - from .group_0415 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0415 import ( + from .group_0416 import EmailType as EmailType + from .group_0417 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType + from .group_0417 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0415 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0415 import GpgKeyType as GpgKeyType - from .group_0416 import KeyType as KeyType - from .group_0417 import MarketplaceAccountType as MarketplaceAccountType - from .group_0417 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0418 import SocialAccountType as SocialAccountType - from .group_0419 import SshSigningKeyType as SshSigningKeyType - from .group_0420 import StarredRepositoryType as StarredRepositoryType - from .group_0421 import ( + from .group_0417 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType + from .group_0417 import GpgKeyType as GpgKeyType + from .group_0418 import KeyType as KeyType + from .group_0419 import MarketplaceAccountType as MarketplaceAccountType + from .group_0419 import UserMarketplacePurchaseType as UserMarketplacePurchaseType + from .group_0420 import SocialAccountType as SocialAccountType + from .group_0421 import SshSigningKeyType as SshSigningKeyType + from .group_0422 import StarredRepositoryType as StarredRepositoryType + from .group_0423 import ( HovercardPropContextsItemsType as HovercardPropContextsItemsType, ) - from .group_0421 import HovercardType as HovercardType - from .group_0422 import KeySimpleType as KeySimpleType - from .group_0423 import ( + from .group_0423 import HovercardType as HovercardType + from .group_0424 import KeySimpleType as KeySimpleType + from .group_0425 import ( BillingUsageReportUserPropUsageItemsItemsType as BillingUsageReportUserPropUsageItemsItemsType, ) - from .group_0423 import BillingUsageReportUserType as BillingUsageReportUserType - from .group_0424 import EnterpriseWebhooksType as EnterpriseWebhooksType - from .group_0425 import SimpleInstallationType as SimpleInstallationType - from .group_0426 import ( + from .group_0425 import BillingUsageReportUserType as BillingUsageReportUserType + from .group_0426 import EnterpriseWebhooksType as EnterpriseWebhooksType + from .group_0427 import SimpleInstallationType as SimpleInstallationType + from .group_0428 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0427 import ( + from .group_0429 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0427 import ( + from .group_0429 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0427 import ( + from .group_0429 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0427 import ( + from .group_0429 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0427 import ( + from .group_0429 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0427 import RepositoryWebhooksType as RepositoryWebhooksType - from .group_0428 import WebhooksRuleType as WebhooksRuleType - from .group_0429 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0430 import ( + from .group_0429 import RepositoryWebhooksType as RepositoryWebhooksType + from .group_0430 import WebhooksRuleType as WebhooksRuleType + from .group_0431 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0432 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0430 import ( + from .group_0432 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0431 import WebhooksDeployKeyType as WebhooksDeployKeyType - from .group_0432 import WebhooksWorkflowType as WebhooksWorkflowType - from .group_0433 import WebhooksApproverType as WebhooksApproverType - from .group_0433 import ( + from .group_0433 import WebhooksDeployKeyType as WebhooksDeployKeyType + from .group_0434 import WebhooksWorkflowType as WebhooksWorkflowType + from .group_0435 import WebhooksApproverType as WebhooksApproverType + from .group_0435 import ( WebhooksReviewersItemsPropReviewerType as WebhooksReviewersItemsPropReviewerType, ) - from .group_0433 import WebhooksReviewersItemsType as WebhooksReviewersItemsType - from .group_0434 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType - from .group_0435 import WebhooksUserType as WebhooksUserType - from .group_0436 import ( + from .group_0435 import WebhooksReviewersItemsType as WebhooksReviewersItemsType + from .group_0436 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType + from .group_0437 import WebhooksUserType as WebhooksUserType + from .group_0438 import ( WebhooksAnswerPropReactionsType as WebhooksAnswerPropReactionsType, ) - from .group_0436 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType - from .group_0436 import WebhooksAnswerType as WebhooksAnswerType - from .group_0437 import ( + from .group_0438 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType + from .group_0438 import WebhooksAnswerType as WebhooksAnswerType + from .group_0439 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0437 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0437 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0437 import DiscussionPropUserType as DiscussionPropUserType - from .group_0437 import DiscussionType as DiscussionType - from .group_0437 import LabelType as LabelType - from .group_0438 import ( + from .group_0439 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0439 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0439 import DiscussionPropUserType as DiscussionPropUserType + from .group_0439 import DiscussionType as DiscussionType + from .group_0439 import LabelType as LabelType + from .group_0440 import ( WebhooksCommentPropReactionsType as WebhooksCommentPropReactionsType, ) - from .group_0438 import WebhooksCommentPropUserType as WebhooksCommentPropUserType - from .group_0438 import WebhooksCommentType as WebhooksCommentType - from .group_0439 import WebhooksLabelType as WebhooksLabelType - from .group_0440 import ( + from .group_0440 import WebhooksCommentPropUserType as WebhooksCommentPropUserType + from .group_0440 import WebhooksCommentType as WebhooksCommentType + from .group_0441 import WebhooksLabelType as WebhooksLabelType + from .group_0442 import ( WebhooksRepositoriesItemsType as WebhooksRepositoriesItemsType, ) - from .group_0441 import ( + from .group_0443 import ( WebhooksRepositoriesAddedItemsType as WebhooksRepositoriesAddedItemsType, ) - from .group_0442 import ( + from .group_0444 import ( WebhooksIssueCommentPropReactionsType as WebhooksIssueCommentPropReactionsType, ) - from .group_0442 import ( + from .group_0444 import ( WebhooksIssueCommentPropUserType as WebhooksIssueCommentPropUserType, ) - from .group_0442 import WebhooksIssueCommentType as WebhooksIssueCommentType - from .group_0443 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType - from .group_0443 import WebhooksChangesType as WebhooksChangesType - from .group_0444 import ( + from .group_0444 import WebhooksIssueCommentType as WebhooksIssueCommentType + from .group_0445 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType + from .group_0445 import WebhooksChangesType as WebhooksChangesType + from .group_0446 import ( WebhooksIssuePropAssigneesItemsType as WebhooksIssuePropAssigneesItemsType, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropAssigneeType as WebhooksIssuePropAssigneeType, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropLabelsItemsType as WebhooksIssuePropLabelsItemsType, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropMilestonePropCreatorType as WebhooksIssuePropMilestonePropCreatorType, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropMilestoneType as WebhooksIssuePropMilestoneType, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropPerformedViaGithubAppPropOwnerType as WebhooksIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissionsType as WebhooksIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropPerformedViaGithubAppType as WebhooksIssuePropPerformedViaGithubAppType, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropPullRequestType as WebhooksIssuePropPullRequestType, ) - from .group_0444 import ( + from .group_0446 import ( WebhooksIssuePropReactionsType as WebhooksIssuePropReactionsType, ) - from .group_0444 import ( - WebhooksIssuePropSubIssuesSummaryType as WebhooksIssuePropSubIssuesSummaryType, - ) - from .group_0444 import WebhooksIssuePropUserType as WebhooksIssuePropUserType - from .group_0444 import WebhooksIssueType as WebhooksIssueType - from .group_0445 import ( + from .group_0446 import WebhooksIssuePropUserType as WebhooksIssuePropUserType + from .group_0446 import WebhooksIssueType as WebhooksIssueType + from .group_0447 import ( WebhooksMilestonePropCreatorType as WebhooksMilestonePropCreatorType, ) - from .group_0445 import WebhooksMilestoneType as WebhooksMilestoneType - from .group_0446 import ( + from .group_0447 import WebhooksMilestoneType as WebhooksMilestoneType + from .group_0448 import ( WebhooksIssue2PropAssigneesItemsType as WebhooksIssue2PropAssigneesItemsType, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropAssigneeType as WebhooksIssue2PropAssigneeType, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropLabelsItemsType as WebhooksIssue2PropLabelsItemsType, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropMilestonePropCreatorType as WebhooksIssue2PropMilestonePropCreatorType, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropMilestoneType as WebhooksIssue2PropMilestoneType, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwnerType as WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType as WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropPerformedViaGithubAppType as WebhooksIssue2PropPerformedViaGithubAppType, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropPullRequestType as WebhooksIssue2PropPullRequestType, ) - from .group_0446 import ( + from .group_0448 import ( WebhooksIssue2PropReactionsType as WebhooksIssue2PropReactionsType, ) - from .group_0446 import ( - WebhooksIssue2PropSubIssuesSummaryType as WebhooksIssue2PropSubIssuesSummaryType, - ) - from .group_0446 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType - from .group_0446 import WebhooksIssue2Type as WebhooksIssue2Type - from .group_0447 import WebhooksUserMannequinType as WebhooksUserMannequinType - from .group_0448 import ( + from .group_0448 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType + from .group_0448 import WebhooksIssue2Type as WebhooksIssue2Type + from .group_0449 import WebhooksUserMannequinType as WebhooksUserMannequinType + from .group_0450 import ( WebhooksMarketplacePurchasePropAccountType as WebhooksMarketplacePurchasePropAccountType, ) - from .group_0448 import ( + from .group_0450 import ( WebhooksMarketplacePurchasePropPlanType as WebhooksMarketplacePurchasePropPlanType, ) - from .group_0448 import ( + from .group_0450 import ( WebhooksMarketplacePurchaseType as WebhooksMarketplacePurchaseType, ) - from .group_0449 import ( + from .group_0451 import ( WebhooksPreviousMarketplacePurchasePropAccountType as WebhooksPreviousMarketplacePurchasePropAccountType, ) - from .group_0449 import ( + from .group_0451 import ( WebhooksPreviousMarketplacePurchasePropPlanType as WebhooksPreviousMarketplacePurchasePropPlanType, ) - from .group_0449 import ( + from .group_0451 import ( WebhooksPreviousMarketplacePurchaseType as WebhooksPreviousMarketplacePurchaseType, ) - from .group_0450 import WebhooksTeamPropParentType as WebhooksTeamPropParentType - from .group_0450 import WebhooksTeamType as WebhooksTeamType - from .group_0451 import MergeGroupType as MergeGroupType - from .group_0452 import ( + from .group_0452 import WebhooksTeamPropParentType as WebhooksTeamPropParentType + from .group_0452 import WebhooksTeamType as WebhooksTeamType + from .group_0453 import MergeGroupType as MergeGroupType + from .group_0454 import ( WebhooksMilestone3PropCreatorType as WebhooksMilestone3PropCreatorType, ) - from .group_0452 import WebhooksMilestone3Type as WebhooksMilestone3Type - from .group_0453 import ( + from .group_0454 import WebhooksMilestone3Type as WebhooksMilestone3Type + from .group_0455 import ( WebhooksMembershipPropUserType as WebhooksMembershipPropUserType, ) - from .group_0453 import WebhooksMembershipType as WebhooksMembershipType - from .group_0454 import ( + from .group_0455 import WebhooksMembershipType as WebhooksMembershipType + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0454 import ( + from .group_0456 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0455 import ( + from .group_0457 import ( WebhooksProjectCardPropCreatorType as WebhooksProjectCardPropCreatorType, ) - from .group_0455 import WebhooksProjectCardType as WebhooksProjectCardType - from .group_0456 import ( + from .group_0457 import WebhooksProjectCardType as WebhooksProjectCardType + from .group_0458 import ( WebhooksProjectPropCreatorType as WebhooksProjectPropCreatorType, ) - from .group_0456 import WebhooksProjectType as WebhooksProjectType - from .group_0457 import WebhooksProjectColumnType as WebhooksProjectColumnType - from .group_0458 import ProjectsV2Type as ProjectsV2Type - from .group_0459 import ( + from .group_0458 import WebhooksProjectType as WebhooksProjectType + from .group_0459 import WebhooksProjectColumnType as WebhooksProjectColumnType + from .group_0460 import ProjectsV2Type as ProjectsV2Type + from .group_0461 import ( WebhooksProjectChangesPropArchivedAtType as WebhooksProjectChangesPropArchivedAtType, ) - from .group_0459 import WebhooksProjectChangesType as WebhooksProjectChangesType - from .group_0460 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0461 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType - from .group_0462 import PullRequestWebhookType as PullRequestWebhookType - from .group_0463 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type - from .group_0464 import ( + from .group_0461 import WebhooksProjectChangesType as WebhooksProjectChangesType + from .group_0462 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0463 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType + from .group_0464 import PullRequestWebhookType as PullRequestWebhookType + from .group_0465 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0466 import ( WebhooksPullRequest5PropAssigneesItemsType as WebhooksPullRequest5PropAssigneesItemsType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropAssigneeType as WebhooksPullRequest5PropAssigneeType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropAutoMergePropEnabledByType as WebhooksPullRequest5PropAutoMergePropEnabledByType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropAutoMergeType as WebhooksPullRequest5PropAutoMergeType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBasePropRepoPropLicenseType as WebhooksPullRequest5PropBasePropRepoPropLicenseType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBasePropRepoPropOwnerType as WebhooksPullRequest5PropBasePropRepoPropOwnerType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBasePropRepoPropPermissionsType as WebhooksPullRequest5PropBasePropRepoPropPermissionsType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBasePropRepoType as WebhooksPullRequest5PropBasePropRepoType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBasePropUserType as WebhooksPullRequest5PropBasePropUserType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropBaseType as WebhooksPullRequest5PropBaseType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadPropRepoPropLicenseType as WebhooksPullRequest5PropHeadPropRepoPropLicenseType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadPropRepoPropOwnerType as WebhooksPullRequest5PropHeadPropRepoPropOwnerType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissionsType as WebhooksPullRequest5PropHeadPropRepoPropPermissionsType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadPropRepoType as WebhooksPullRequest5PropHeadPropRepoType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadPropUserType as WebhooksPullRequest5PropHeadPropUserType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropHeadType as WebhooksPullRequest5PropHeadType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLabelsItemsType as WebhooksPullRequest5PropLabelsItemsType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropCommentsType as WebhooksPullRequest5PropLinksPropCommentsType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropCommitsType as WebhooksPullRequest5PropLinksPropCommitsType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropHtmlType as WebhooksPullRequest5PropLinksPropHtmlType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropIssueType as WebhooksPullRequest5PropLinksPropIssueType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropReviewCommentsType as WebhooksPullRequest5PropLinksPropReviewCommentsType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropReviewCommentType as WebhooksPullRequest5PropLinksPropReviewCommentType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropSelfType as WebhooksPullRequest5PropLinksPropSelfType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksPropStatusesType as WebhooksPullRequest5PropLinksPropStatusesType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropLinksType as WebhooksPullRequest5PropLinksType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropMergedByType as WebhooksPullRequest5PropMergedByType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropMilestonePropCreatorType as WebhooksPullRequest5PropMilestonePropCreatorType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropMilestoneType as WebhooksPullRequest5PropMilestoneType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParentType as WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropRequestedTeamsItemsType as WebhooksPullRequest5PropRequestedTeamsItemsType, ) - from .group_0464 import ( + from .group_0466 import ( WebhooksPullRequest5PropUserType as WebhooksPullRequest5PropUserType, ) - from .group_0464 import WebhooksPullRequest5Type as WebhooksPullRequest5Type - from .group_0465 import ( + from .group_0466 import WebhooksPullRequest5Type as WebhooksPullRequest5Type + from .group_0467 import ( WebhooksReviewCommentPropLinksPropHtmlType as WebhooksReviewCommentPropLinksPropHtmlType, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropLinksPropPullRequestType as WebhooksReviewCommentPropLinksPropPullRequestType, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropLinksPropSelfType as WebhooksReviewCommentPropLinksPropSelfType, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropLinksType as WebhooksReviewCommentPropLinksType, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropReactionsType as WebhooksReviewCommentPropReactionsType, ) - from .group_0465 import ( + from .group_0467 import ( WebhooksReviewCommentPropUserType as WebhooksReviewCommentPropUserType, ) - from .group_0465 import WebhooksReviewCommentType as WebhooksReviewCommentType - from .group_0466 import ( + from .group_0467 import WebhooksReviewCommentType as WebhooksReviewCommentType + from .group_0468 import ( WebhooksReviewPropLinksPropHtmlType as WebhooksReviewPropLinksPropHtmlType, ) - from .group_0466 import ( + from .group_0468 import ( WebhooksReviewPropLinksPropPullRequestType as WebhooksReviewPropLinksPropPullRequestType, ) - from .group_0466 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType - from .group_0466 import WebhooksReviewPropUserType as WebhooksReviewPropUserType - from .group_0466 import WebhooksReviewType as WebhooksReviewType - from .group_0467 import ( + from .group_0468 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType + from .group_0468 import WebhooksReviewPropUserType as WebhooksReviewPropUserType + from .group_0468 import WebhooksReviewType as WebhooksReviewType + from .group_0469 import ( WebhooksReleasePropAssetsItemsPropUploaderType as WebhooksReleasePropAssetsItemsPropUploaderType, ) - from .group_0467 import ( + from .group_0469 import ( WebhooksReleasePropAssetsItemsType as WebhooksReleasePropAssetsItemsType, ) - from .group_0467 import ( + from .group_0469 import ( WebhooksReleasePropAuthorType as WebhooksReleasePropAuthorType, ) - from .group_0467 import ( + from .group_0469 import ( WebhooksReleasePropReactionsType as WebhooksReleasePropReactionsType, ) - from .group_0467 import WebhooksReleaseType as WebhooksReleaseType - from .group_0468 import ( + from .group_0469 import WebhooksReleaseType as WebhooksReleaseType + from .group_0470 import ( WebhooksRelease1PropAssetsItemsPropUploaderType as WebhooksRelease1PropAssetsItemsPropUploaderType, ) - from .group_0468 import ( + from .group_0470 import ( WebhooksRelease1PropAssetsItemsType as WebhooksRelease1PropAssetsItemsType, ) - from .group_0468 import ( + from .group_0470 import ( WebhooksRelease1PropAuthorType as WebhooksRelease1PropAuthorType, ) - from .group_0468 import ( + from .group_0470 import ( WebhooksRelease1PropReactionsType as WebhooksRelease1PropReactionsType, ) - from .group_0468 import WebhooksRelease1Type as WebhooksRelease1Type - from .group_0469 import ( + from .group_0470 import WebhooksRelease1Type as WebhooksRelease1Type + from .group_0471 import ( WebhooksAlertPropDismisserType as WebhooksAlertPropDismisserType, ) - from .group_0469 import WebhooksAlertType as WebhooksAlertType - from .group_0470 import ( + from .group_0471 import WebhooksAlertType as WebhooksAlertType + from .group_0472 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropCvssType as WebhooksSecurityAdvisoryPropCvssType, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropCwesItemsType as WebhooksSecurityAdvisoryPropCwesItemsType, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropIdentifiersItemsType as WebhooksSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropReferencesItemsType as WebhooksSecurityAdvisoryPropReferencesItemsType, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0471 import ( + from .group_0473 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0471 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType - from .group_0472 import ( + from .group_0473 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType + from .group_0474 import ( WebhooksSponsorshipPropMaintainerType as WebhooksSponsorshipPropMaintainerType, ) - from .group_0472 import ( + from .group_0474 import ( WebhooksSponsorshipPropSponsorableType as WebhooksSponsorshipPropSponsorableType, ) - from .group_0472 import ( + from .group_0474 import ( WebhooksSponsorshipPropSponsorType as WebhooksSponsorshipPropSponsorType, ) - from .group_0472 import ( + from .group_0474 import ( WebhooksSponsorshipPropTierType as WebhooksSponsorshipPropTierType, ) - from .group_0472 import WebhooksSponsorshipType as WebhooksSponsorshipType - from .group_0473 import ( + from .group_0474 import WebhooksSponsorshipType as WebhooksSponsorshipType + from .group_0475 import ( WebhooksChanges8PropTierPropFromType as WebhooksChanges8PropTierPropFromType, ) - from .group_0473 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType - from .group_0473 import WebhooksChanges8Type as WebhooksChanges8Type - from .group_0474 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType - from .group_0474 import WebhooksTeam1Type as WebhooksTeam1Type - from .group_0475 import ( + from .group_0475 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType + from .group_0475 import WebhooksChanges8Type as WebhooksChanges8Type + from .group_0476 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType + from .group_0476 import WebhooksTeam1Type as WebhooksTeam1Type + from .group_0477 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0476 import ( + from .group_0478 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0477 import ( + from .group_0479 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0478 import ( + from .group_0480 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0479 import ( + from .group_0481 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0480 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0481 import ( + from .group_0482 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0483 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0482 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0483 import ( + from .group_0484 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0485 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0484 import ( + from .group_0486 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0484 import ( + from .group_0486 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0485 import ( + from .group_0487 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0486 import ( + from .group_0488 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0487 import ( + from .group_0489 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0488 import ( + from .group_0490 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0489 import ( + from .group_0491 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0490 import ( + from .group_0492 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0491 import ( + from .group_0493 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0492 import ( + from .group_0494 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0493 import ( + from .group_0495 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0494 import ( + from .group_0496 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0495 import ( + from .group_0497 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0496 import ( + from .group_0498 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0497 import ( + from .group_0499 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0497 import ( + from .group_0499 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0497 import ( + from .group_0499 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0497 import ( + from .group_0499 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0498 import WebhookCreateType as WebhookCreateType - from .group_0499 import ( + from .group_0500 import WebhookCreateType as WebhookCreateType + from .group_0501 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0500 import ( + from .group_0502 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0500 import ( + from .group_0502 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0501 import ( + from .group_0503 import ( WebhookCustomPropertyPromotedToEnterpriseType as WebhookCustomPropertyPromotedToEnterpriseType, ) - from .group_0502 import ( + from .group_0504 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0503 import ( + from .group_0505 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0504 import WebhookDeleteType as WebhookDeleteType - from .group_0505 import ( + from .group_0506 import WebhookDeleteType as WebhookDeleteType + from .group_0507 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0506 import ( + from .group_0508 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0507 import ( + from .group_0509 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0508 import ( + from .group_0510 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0509 import ( + from .group_0511 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0510 import ( + from .group_0512 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0511 import ( + from .group_0513 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0512 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0513 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0514 import ( + from .group_0514 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0515 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0514 import ( + from .group_0516 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0514 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0515 import ( + from .group_0516 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0517 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0516 import ( + from .group_0518 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0517 import ( + from .group_0519 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0518 import ( + from .group_0520 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0519 import ( + from .group_0521 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0520 import ( + from .group_0522 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0521 import ( + from .group_0523 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0521 import ( + from .group_0523 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0521 import ( + from .group_0523 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0521 import ( + from .group_0523 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0522 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0523 import ( + from .group_0524 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0525 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0524 import ( + from .group_0526 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0525 import ( + from .group_0527 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0525 import ( + from .group_0527 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0525 import ( + from .group_0527 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0526 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0527 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0528 import ( + from .group_0528 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0529 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0530 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0528 import ( + from .group_0530 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0528 import ( + from .group_0530 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0528 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0529 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0530 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0531 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0532 import ( + from .group_0530 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0531 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0532 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0533 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0534 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0533 import ( + from .group_0535 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0534 import ( + from .group_0536 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0535 import ( + from .group_0537 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0536 import ( + from .group_0538 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0537 import ( + from .group_0539 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0538 import ( + from .group_0540 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0539 import WebhookForkType as WebhookForkType - from .group_0540 import ( + from .group_0541 import WebhookForkType as WebhookForkType + from .group_0542 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0540 import ( + from .group_0542 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0540 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0541 import ( + from .group_0542 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0543 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0541 import ( + from .group_0543 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0541 import ( + from .group_0543 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0542 import ( + from .group_0544 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0543 import ( + from .group_0545 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0543 import ( + from .group_0545 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0543 import ( + from .group_0545 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0544 import ( + from .group_0546 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0545 import ( + from .group_0547 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0545 import WebhookGollumType as WebhookGollumType - from .group_0546 import ( + from .group_0547 import WebhookGollumType as WebhookGollumType + from .group_0548 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0547 import ( + from .group_0549 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0548 import ( + from .group_0550 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0549 import ( + from .group_0551 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0549 import ( + from .group_0551 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0550 import ( + from .group_0552 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0550 import ( + from .group_0552 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0551 import ( + from .group_0553 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0552 import ( + from .group_0554 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0552 import ( + from .group_0554 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0552 import ( + from .group_0554 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0552 import ( + from .group_0554 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0552 import ( + from .group_0554 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0553 import ( + from .group_0555 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0554 import ( + from .group_0556 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0555 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0555 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0555 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0556 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0557 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0558 import ( + from .group_0560 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0558 import ( + from .group_0560 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0559 import ( + from .group_0561 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0560 import ( + from .group_0562 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0561 import ( + from .group_0563 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0561 import ( + from .group_0563 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0562 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0563 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, - ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0564 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0565 import ( + from .group_0566 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0566 import ( + from .group_0567 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0567 import ( + from .group_0568 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0568 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0568 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0568 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0568 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0569 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0569 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0569 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0569 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0570 import ( + from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0570 import ( + from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0570 import ( + from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0571 import ( + from .group_0572 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0572 import ( + from .group_0573 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0573 import ( + from .group_0574 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0573 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, - ) from .group_0574 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) from .group_0575 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, @@ -3107,5996 +3093,5957 @@ WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) from .group_0587 import ( - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType, - ) - from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0588 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0589 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0590 import ( + from .group_0589 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0591 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0592 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0593 import ( + from .group_0590 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0591 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0593 import ( + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0593 import ( + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) - from .group_0593 import ( + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0593 import ( + from .group_0592 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0593 import ( + from .group_0592 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0594 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0595 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0596 import ( + from .group_0595 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0597 import ( + from .group_0596 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0597 import ( + from .group_0596 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0598 import ( + from .group_0597 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0599 import ( + from .group_0598 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) from .group_0599 import ( - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, - ) - from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0600 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) - from .group_0601 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0602 import ( + from .group_0601 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0603 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0604 import ( + from .group_0602 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0604 import ( - WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType as WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType, - ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0604 import ( + from .group_0603 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0605 import ( + from .group_0604 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0606 import ( - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType, - ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) - from .group_0606 import ( + from .group_0605 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0607 import ( + from .group_0606 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0607 import ( + from .group_0606 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0607 import ( + from .group_0606 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0607 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0608 import ( + from .group_0606 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0607 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0608 import ( - WebhookIssuesEditedPropIssuePropSubIssuesSummaryType as WebhookIssuesEditedPropIssuePropSubIssuesSummaryType, - ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0608 import ( + from .group_0607 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0609 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0610 import ( + from .group_0608 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0610 import ( - WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType as WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType, - ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0610 import ( + from .group_0609 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0611 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0612 import ( + from .group_0610 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0611 import ( WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, ) - from .group_0612 import ( - WebhookIssuesLockedPropIssuePropSubIssuesSummaryType as WebhookIssuesLockedPropIssuePropSubIssuesSummaryType, - ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, ) - from .group_0612 import ( + from .group_0611 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0613 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0614 import ( + from .group_0612 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0614 import ( - WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType, - ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) - from .group_0614 import ( + from .group_0613 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0615 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0616 import ( + from .group_0614 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0616 import ( + from .group_0615 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0617 import ( - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType, - ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0617 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0618 import ( - WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType, - ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0618 import ( + from .group_0617 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0619 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0620 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0621 import ( + from .group_0618 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0619 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, ) - from .group_0621 import ( - WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType as WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType, - ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0621 import ( + from .group_0620 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0622 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0623 import ( + from .group_0621 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0623 import ( + from .group_0622 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0624 import ( - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType, - ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0624 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0625 import WebhookIssuesTypedType as WebhookIssuesTypedType - from .group_0626 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0627 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0628 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0629 import ( + from .group_0624 import WebhookIssuesTypedType as WebhookIssuesTypedType + from .group_0625 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0626 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0627 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, ) - from .group_0629 import ( - WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType as WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType, - ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0629 import ( + from .group_0628 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0630 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0631 import WebhookIssuesUntypedType as WebhookIssuesUntypedType - from .group_0632 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0633 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0634 import ( + from .group_0629 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0630 import WebhookIssuesUntypedType as WebhookIssuesUntypedType + from .group_0631 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0632 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0633 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0634 import ( + from .group_0633 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0634 import ( + from .group_0633 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0634 import ( + from .group_0633 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0634 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0635 import ( + from .group_0633 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0634 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0636 import ( + from .group_0635 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0636 import ( + from .group_0635 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0636 import ( + from .group_0635 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0636 import ( + from .group_0635 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0637 import ( + from .group_0636 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0637 import ( + from .group_0636 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0637 import ( + from .group_0636 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0637 import ( + from .group_0636 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0638 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, ) - from .group_0638 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0638 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0638 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0639 import ( + from .group_0638 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0640 import ( + from .group_0639 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0640 import ( + from .group_0639 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0640 import ( + from .group_0639 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0640 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0641 import ( + from .group_0639 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0640 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0641 import ( + from .group_0640 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0641 import ( + from .group_0640 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0641 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0642 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0643 import ( + from .group_0640 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0641 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0642 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0643 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0644 import ( + from .group_0642 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0643 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0644 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0645 import ( + from .group_0643 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0644 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0646 import ( + from .group_0645 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0647 import ( + from .group_0646 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0647 import ( + from .group_0646 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0647 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0648 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0649 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0650 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0651 import ( + from .group_0646 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0647 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0648 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0649 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0650 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0651 import ( + from .group_0650 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0651 import ( + from .group_0650 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0651 import ( + from .group_0650 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0651 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0652 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0653 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0654 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0655 import ( + from .group_0650 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0651 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0652 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0653 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0654 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0656 import ( + from .group_0655 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0657 import ( + from .group_0656 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0657 import ( + from .group_0656 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0657 import ( + from .group_0656 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0658 import ( + from .group_0657 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0659 import ( + from .group_0658 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0659 import ( + from .group_0658 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0659 import ( + from .group_0658 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0660 import ( + from .group_0659 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0660 import ( + from .group_0659 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0660 import ( + from .group_0659 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0660 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0661 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0662 import ( + from .group_0659 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0660 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0661 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0662 import ( + from .group_0661 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0662 import ( + from .group_0661 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0663 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0664 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0665 import ( + from .group_0663 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0664 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0665 import ( + from .group_0664 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0665 import ( + from .group_0664 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0666 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0667 import ( + from .group_0666 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0667 import ( + from .group_0666 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0667 import ( + from .group_0666 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0667 import WebhookPageBuildType as WebhookPageBuildType - from .group_0668 import ( + from .group_0666 import WebhookPageBuildType as WebhookPageBuildType + from .group_0667 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0669 import ( + from .group_0668 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0670 import ( + from .group_0669 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0671 import ( + from .group_0670 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0672 import WebhookPingType as WebhookPingType - from .group_0673 import ( + from .group_0671 import WebhookPingType as WebhookPingType + from .group_0672 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0673 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0674 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0675 import ( + from .group_0672 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0673 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0674 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0675 import ( + from .group_0674 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0675 import ( + from .group_0674 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0676 import ( + from .group_0675 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0677 import ( + from .group_0676 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0677 import ( + from .group_0676 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0677 import ( + from .group_0676 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0678 import ( + from .group_0677 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0678 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0679 import ( + from .group_0677 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0678 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0679 import ( + from .group_0678 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0679 import ( + from .group_0678 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0679 import ( + from .group_0678 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0679 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0680 import ( + from .group_0678 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0679 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0680 import ( + from .group_0679 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0681 import ( + from .group_0680 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0681 import ( + from .group_0680 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0682 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0683 import ( + from .group_0681 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0682 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0684 import ( + from .group_0683 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0685 import ( + from .group_0684 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) - from .group_0686 import ( + from .group_0685 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0687 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0688 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0689 import ( + from .group_0686 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0687 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0688 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0689 import ( + from .group_0688 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0689 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0690 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0691 import ( + from .group_0688 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0689 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0690 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0692 import ( + from .group_0691 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0693 import ( + from .group_0692 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0694 import ( + from .group_0693 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0695 import ( + from .group_0694 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0696 import ( + from .group_0695 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0696 import ( + from .group_0695 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0696 import ( + from .group_0695 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0697 import ( + from .group_0696 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0698 import ( + from .group_0697 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0699 import ( + from .group_0698 import ( ProjectsV2IterationSettingType as ProjectsV2IterationSettingType, ) - from .group_0699 import ( + from .group_0698 import ( ProjectsV2SingleSelectOptionType as ProjectsV2SingleSelectOptionType, ) - from .group_0699 import ( + from .group_0698 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0699 import ( + from .group_0698 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0699 import ( + from .group_0698 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0699 import ( + from .group_0698 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0699 import ( + from .group_0698 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0700 import ( + from .group_0699 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0700 import ( + from .group_0699 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0700 import ( + from .group_0699 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0701 import ( + from .group_0700 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0702 import ( + from .group_0701 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0703 import ( + from .group_0702 import ( WebhookProjectsV2StatusUpdateCreatedType as WebhookProjectsV2StatusUpdateCreatedType, ) - from .group_0704 import ( + from .group_0703 import ( WebhookProjectsV2StatusUpdateDeletedType as WebhookProjectsV2StatusUpdateDeletedType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType as WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedPropChangesType as WebhookProjectsV2StatusUpdateEditedPropChangesType, ) - from .group_0705 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateEditedType as WebhookProjectsV2StatusUpdateEditedType, ) - from .group_0706 import WebhookPublicType as WebhookPublicType - from .group_0707 import ( + from .group_0705 import WebhookPublicType as WebhookPublicType + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0707 import ( + from .group_0706 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0708 import ( + from .group_0707 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0709 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0710 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0711 import ( + from .group_0709 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0710 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0712 import ( + from .group_0711 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0713 import ( + from .group_0712 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0714 import ( + from .group_0713 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0714 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0715 import ( + from .group_0713 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0715 import ( + from .group_0714 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0716 import ( + from .group_0715 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0717 import ( + from .group_0716 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0717 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0718 import ( + from .group_0716 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0717 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0719 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0720 import ( + from .group_0718 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0719 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0721 import ( + from .group_0720 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0722 import ( + from .group_0721 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0723 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0724 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0725 import ( + from .group_0724 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0726 import ( + from .group_0725 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0727 import ( + from .group_0726 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0728 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0729 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0730 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0731 import ( + from .group_0730 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0732 import ( + from .group_0731 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0733 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0734 import ( + from .group_0733 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0735 import ( + from .group_0734 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0736 import ( + from .group_0735 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0737 import ( + from .group_0736 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0738 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0738 import ( + from .group_0737 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0737 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0738 import ( + from .group_0737 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0738 import WebhookPushType as WebhookPushType - from .group_0739 import ( + from .group_0737 import WebhookPushType as WebhookPushType + from .group_0738 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0740 import ( + from .group_0739 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0740 import ( + from .group_0739 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0740 import ( + from .group_0739 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0741 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0742 import ( + from .group_0741 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0743 import ( + from .group_0742 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0743 import ( + from .group_0742 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0743 import ( + from .group_0742 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0744 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0745 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0746 import WebhookReleaseDeletedType as WebhookReleaseDeletedType - from .group_0747 import ( + from .group_0744 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0745 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0746 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0747 import ( + from .group_0746 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0747 import ( + from .group_0746 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0747 import ( + from .group_0746 import ( WebhookReleaseEditedPropChangesPropTagNameType as WebhookReleaseEditedPropChangesPropTagNameType, ) - from .group_0747 import ( + from .group_0746 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0747 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0748 import ( + from .group_0746 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0747 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0748 import ( + from .group_0747 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, ) - from .group_0748 import ( + from .group_0747 import ( WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0748 import ( + from .group_0747 import ( WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, ) - from .group_0748 import ( + from .group_0747 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0748 import ( + from .group_0747 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0749 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0750 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0751 import ( + from .group_0748 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0749 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0750 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0752 import ( + from .group_0751 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0753 import ( + from .group_0752 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0754 import ( + from .group_0753 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0755 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0756 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0757 import ( + from .group_0754 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0755 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0756 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0757 import ( + from .group_0756 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0758 import ( + from .group_0757 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0758 import ( + from .group_0757 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0758 import ( + from .group_0757 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0758 import ( + from .group_0757 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0758 import ( + from .group_0757 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0758 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0759 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0760 import ( + from .group_0757 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0758 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0759 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0761 import ( + from .group_0760 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0762 import ( + from .group_0761 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0762 import ( + from .group_0761 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0762 import ( + from .group_0761 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0762 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0763 import ( + from .group_0761 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0762 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0764 import ( + from .group_0763 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0765 import ( + from .group_0764 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0766 import ( + from .group_0765 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0766 import ( + from .group_0765 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0766 import ( + from .group_0765 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0767 import ( + from .group_0766 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0768 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0769 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0770 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0771 import ( + from .group_0770 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0772 import ( + from .group_0771 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0773 import ( + from .group_0772 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0774 import ( + from .group_0773 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, ) - from .group_0774 import ( + from .group_0773 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0774 import ( + from .group_0773 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0775 import ( + from .group_0774 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0776 import ( + from .group_0775 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0777 import ( + from .group_0776 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0778 import ( + from .group_0777 import ( WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0779 import ( + from .group_0778 import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0780 import ( + from .group_0779 import ( WebhookSecretScanningAlertPubliclyLeakedType as WebhookSecretScanningAlertPubliclyLeakedType, ) - from .group_0781 import ( + from .group_0780 import ( WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0782 import ( + from .group_0781 import ( WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0783 import ( + from .group_0782 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0784 import ( + from .group_0783 import ( WebhookSecretScanningScanCompletedType as WebhookSecretScanningScanCompletedType, ) - from .group_0785 import ( + from .group_0784 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0786 import ( + from .group_0785 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0787 import ( + from .group_0786 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0788 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0789 import ( + from .group_0788 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0790 import ( + from .group_0789 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0791 import ( + from .group_0790 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0792 import ( + from .group_0791 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0793 import ( + from .group_0792 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0794 import ( + from .group_0793 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0794 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0795 import ( + from .group_0793 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0794 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0796 import ( + from .group_0795 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0797 import ( + from .group_0796 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0798 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0799 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0800 import ( + from .group_0797 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0798 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0799 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0800 import ( + from .group_0799 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0800 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0800 import WebhookStatusType as WebhookStatusType - from .group_0801 import ( + from .group_0799 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0799 import WebhookStatusType as WebhookStatusType + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0802 import ( + from .group_0801 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0803 import ( + from .group_0802 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0804 import ( + from .group_0803 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0805 import ( + from .group_0804 import ( WebhookSubIssuesParentIssueAddedType as WebhookSubIssuesParentIssueAddedType, ) - from .group_0806 import ( + from .group_0805 import ( WebhookSubIssuesParentIssueRemovedType as WebhookSubIssuesParentIssueRemovedType, ) - from .group_0807 import ( + from .group_0806 import ( WebhookSubIssuesSubIssueAddedType as WebhookSubIssuesSubIssueAddedType, ) - from .group_0808 import ( + from .group_0807 import ( WebhookSubIssuesSubIssueRemovedType as WebhookSubIssuesSubIssueRemovedType, ) - from .group_0809 import WebhookTeamAddType as WebhookTeamAddType - from .group_0810 import ( + from .group_0808 import WebhookTeamAddType as WebhookTeamAddType + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0810 import ( + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0810 import ( + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0810 import ( + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0810 import ( + from .group_0809 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0810 import ( + from .group_0809 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0811 import ( + from .group_0810 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0811 import ( + from .group_0810 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0811 import ( + from .group_0810 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0811 import ( + from .group_0810 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0811 import ( + from .group_0810 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0811 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0812 import ( + from .group_0810 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0811 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0812 import ( + from .group_0811 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0812 import WebhookTeamDeletedType as WebhookTeamDeletedType - from .group_0813 import ( + from .group_0811 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0812 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0813 import ( + from .group_0812 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0813 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_0814 import ( + from .group_0812 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0814 import ( + from .group_0813 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0815 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0816 import ( + from .group_0814 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0815 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0816 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0817 import ( + from .group_0815 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0816 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0817 import ( + from .group_0816 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0817 import ( + from .group_0816 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0818 import ( + from .group_0817 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0818 import ( + from .group_0817 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0819 import ( + from .group_0818 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0819 import ( + from .group_0818 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0820 import ( + from .group_0819 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0820 import ( + from .group_0819 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0820 import ( + from .group_0819 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0821 import ( + from .group_0820 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0821 import ( + from .group_0820 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0822 import ( + from .group_0821 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0822 import ( + from .group_0821 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0823 import ( + from .group_0822 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0823 import ( + from .group_0822 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0823 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_0824 import ( + from .group_0822 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_0823 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0824 import ( + from .group_0823 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0824 import ( + from .group_0823 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0825 import ( + from .group_0824 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0826 import ( + from .group_0825 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0827 import ( + from .group_0826 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0828 import ( + from .group_0827 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0829 import ( + from .group_0828 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0830 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0831 import ( + from .group_0829 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0830 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0832 import ( + from .group_0831 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0833 import ( + from .group_0832 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0834 import ( + from .group_0833 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0835 import ( + from .group_0834 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0836 import ( + from .group_0835 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0837 import ( + from .group_0836 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0838 import ( + from .group_0837 import ( CredentialsRevokePostBodyType as CredentialsRevokePostBodyType, ) - from .group_0839 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0840 import ( + from .group_0838 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0839 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0840 import ( + from .group_0839 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType, ) - from .group_0841 import ( + from .group_0840 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0841 import ( + from .group_0840 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0842 import ( + from .group_0841 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0843 import ( + from .group_0842 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0844 import ( + from .group_0843 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0845 import ( + from .group_0844 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type as EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type, ) - from .group_0846 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_0846 import GistsPostBodyType as GistsPostBodyType - from .group_0847 import ( + from .group_0845 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_0845 import GistsPostBodyType as GistsPostBodyType + from .group_0846 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0847 import ( + from .group_0846 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0848 import ( + from .group_0847 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0848 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0849 import ( + from .group_0847 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0848 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0850 import ( + from .group_0849 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0851 import ( + from .group_0850 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0852 import ( + from .group_0851 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0853 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0854 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0855 import ( + from .group_0852 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0853 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0854 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0856 import ( + from .group_0855 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0857 import ( + from .group_0856 import ( OrganizationsOrgDependabotRepositoryAccessPatchBodyType as OrganizationsOrgDependabotRepositoryAccessPatchBodyType, ) - from .group_0858 import ( + from .group_0857 import ( OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, ) - from .group_0859 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_0860 import ( + from .group_0858 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_0859 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0860 import ( + from .group_0859 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0861 import ( + from .group_0860 import ( OrgsOrgActionsHostedRunnersGetResponse200Type as OrgsOrgActionsHostedRunnersGetResponse200Type, ) - from .group_0862 import ( + from .group_0861 import ( OrgsOrgActionsHostedRunnersPostBodyPropImageType as OrgsOrgActionsHostedRunnersPostBodyPropImageType, ) - from .group_0862 import ( + from .group_0861 import ( OrgsOrgActionsHostedRunnersPostBodyType as OrgsOrgActionsHostedRunnersPostBodyType, ) - from .group_0863 import ( + from .group_0862 import ( OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, ) - from .group_0864 import ( + from .group_0863 import ( OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, ) - from .group_0865 import ( + from .group_0864 import ( OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, ) - from .group_0866 import ( + from .group_0865 import ( OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type as OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, ) - from .group_0867 import ( + from .group_0866 import ( OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, ) - from .group_0868 import ( + from .group_0867 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0869 import ( + from .group_0868 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0870 import ( + from .group_0869 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0871 import ( + from .group_0870 import ( OrgsOrgActionsRunnerGroupsGetResponse200Type as OrgsOrgActionsRunnerGroupsGetResponse200Type, ) - from .group_0871 import RunnerGroupsOrgType as RunnerGroupsOrgType - from .group_0872 import ( + from .group_0870 import RunnerGroupsOrgType as RunnerGroupsOrgType + from .group_0871 import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) - from .group_0873 import ( + from .group_0872 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0874 import ( + from .group_0873 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, ) - from .group_0875 import ( + from .group_0874 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, ) - from .group_0876 import ( + from .group_0875 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, ) - from .group_0877 import ( + from .group_0876 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0878 import ( + from .group_0877 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0879 import ( + from .group_0878 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0880 import ( + from .group_0879 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0881 import ( + from .group_0880 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_0882 import ( + from .group_0881 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0883 import ( + from .group_0882 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0884 import ( + from .group_0883 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0885 import ( + from .group_0884 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0886 import ( + from .group_0885 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0886 import ( + from .group_0885 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0887 import ( + from .group_0886 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0888 import ( + from .group_0887 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0889 import ( + from .group_0888 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0890 import ( + from .group_0889 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0890 import ( + from .group_0889 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0891 import ( + from .group_0890 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0892 import ( + from .group_0891 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0893 import ( + from .group_0892 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0894 import ( + from .group_0893 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_0895 import ( + from .group_0894 import ( OrgsOrgAttestationsBulkListPostBodyType as OrgsOrgAttestationsBulkListPostBodyType, ) - from .group_0896 import ( + from .group_0895 import ( OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType, ) - from .group_0896 import ( + from .group_0895 import ( OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType as OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType, ) - from .group_0896 import ( + from .group_0895 import ( OrgsOrgAttestationsBulkListPostResponse200Type as OrgsOrgAttestationsBulkListPostResponse200Type, ) - from .group_0897 import ( + from .group_0896 import ( OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type as OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type, ) - from .group_0898 import ( + from .group_0897 import ( OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type as OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_0899 import ( + from .group_0898 import ( OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, ) - from .group_0900 import ( + from .group_0899 import ( OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType as OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType, ) - from .group_0900 import OrgsOrgCampaignsPostBodyType as OrgsOrgCampaignsPostBodyType - from .group_0901 import ( + from .group_0899 import OrgsOrgCampaignsPostBodyType as OrgsOrgCampaignsPostBodyType + from .group_0900 import ( OrgsOrgCampaignsCampaignNumberPatchBodyType as OrgsOrgCampaignsCampaignNumberPatchBodyType, ) - from .group_0902 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0902 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0902 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0902 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, ) - from .group_0903 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType as OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, ) - from .group_0904 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0904 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0904 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0904 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0905 import ( + from .group_0904 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0906 import ( + from .group_0905 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0907 import ( + from .group_0906 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0908 import ( + from .group_0907 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0909 import ( + from .group_0908 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0910 import ( + from .group_0909 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0911 import ( + from .group_0910 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0912 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_0912 import ( + from .group_0911 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_0911 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0913 import ( + from .group_0912 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0914 import ( + from .group_0913 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0915 import ( + from .group_0914 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0916 import ( + from .group_0915 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0917 import ( + from .group_0916 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0918 import ( + from .group_0917 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0919 import ( + from .group_0918 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0920 import ( + from .group_0919 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0921 import ( + from .group_0920 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0922 import ( + from .group_0921 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0923 import ( + from .group_0922 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0924 import ( + from .group_0923 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_0924 import ( + from .group_0923 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_0925 import ( + from .group_0924 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0926 import ( + from .group_0925 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0927 import ( + from .group_0926 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0928 import ( + from .group_0927 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_0928 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0929 import ( + from .group_0927 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0928 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_0929 import ( + from .group_0928 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_0930 import ( + from .group_0929 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0931 import ( + from .group_0930 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0932 import ( + from .group_0931 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0933 import ( + from .group_0932 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0934 import ( + from .group_0933 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0935 import ( + from .group_0934 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0936 import ( + from .group_0935 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) - from .group_0937 import ( + from .group_0936 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0938 import ( + from .group_0937 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_0939 import ( + from .group_0938 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_0940 import ( + from .group_0939 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0941 import ( + from .group_0940 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0942 import ( + from .group_0941 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0943 import ( + from .group_0942 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0944 import ( + from .group_0943 import ( OrgPrivateRegistryConfigurationType as OrgPrivateRegistryConfigurationType, ) - from .group_0944 import ( + from .group_0943 import ( OrgsOrgPrivateRegistriesGetResponse200Type as OrgsOrgPrivateRegistriesGetResponse200Type, ) - from .group_0945 import ( + from .group_0944 import ( OrgsOrgPrivateRegistriesPostBodyType as OrgsOrgPrivateRegistriesPostBodyType, ) - from .group_0946 import ( + from .group_0945 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type as OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type, ) - from .group_0947 import ( + from .group_0946 import ( OrgsOrgPrivateRegistriesSecretNamePatchBodyType as OrgsOrgPrivateRegistriesSecretNamePatchBodyType, ) - from .group_0948 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0949 import ( + from .group_0947 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0948 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0950 import ( + from .group_0949 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0951 import ( + from .group_0950 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0951 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0952 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0953 import ( + from .group_0950 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_0951 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_0952 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0954 import NetworkConfigurationType as NetworkConfigurationType - from .group_0954 import ( + from .group_0953 import NetworkConfigurationType as NetworkConfigurationType + from .group_0953 import ( OrgsOrgSettingsNetworkConfigurationsGetResponse200Type as OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, ) - from .group_0955 import ( + from .group_0954 import ( OrgsOrgSettingsNetworkConfigurationsPostBodyType as OrgsOrgSettingsNetworkConfigurationsPostBodyType, ) - from .group_0956 import ( + from .group_0955 import ( OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, ) - from .group_0957 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_0958 import ( + from .group_0956 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_0957 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_0959 import ( + from .group_0958 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0960 import ( + from .group_0959 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0961 import ( + from .group_0960 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_0962 import ( + from .group_0961 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0963 import ( + from .group_0962 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0964 import ( + from .group_0963 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0965 import ( + from .group_0964 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0966 import ( + from .group_0965 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0967 import ( + from .group_0966 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_0968 import ( + from .group_0967 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_0969 import ( + from .group_0968 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_0970 import ( + from .group_0969 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0971 import ( + from .group_0970 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_0972 import ( + from .group_0971 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_0973 import ( + from .group_0972 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0974 import ( + from .group_0973 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0974 import ( + from .group_0973 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0975 import ( + from .group_0974 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_0975 import ( + from .group_0974 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0976 import ( + from .group_0975 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0977 import ( + from .group_0976 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_0978 import ( + from .group_0977 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_0979 import ( + from .group_0978 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_0979 import ( + from .group_0978 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_0980 import ( + from .group_0979 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_0981 import ( + from .group_0980 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_0982 import ( + from .group_0981 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_0983 import ( + from .group_0982 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_0984 import ( + from .group_0983 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_0985 import ( + from .group_0984 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_0986 import ( + from .group_0985 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_0987 import ( + from .group_0986 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_0988 import ( + from .group_0987 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_0988 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType - from .group_0989 import ( + from .group_0987 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0988 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_0990 import ( + from .group_0989 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_0991 import ( + from .group_0990 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_0992 import ( + from .group_0991 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_0993 import ( + from .group_0992 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_0994 import ( + from .group_0993 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_0995 import ( + from .group_0994 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_0996 import ( + from .group_0995 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0997 import ( + from .group_0996 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0998 import ( + from .group_0997 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0999 import ( + from .group_0998 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_1000 import ( + from .group_0999 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_1001 import ( + from .group_1000 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_1002 import ( + from .group_1001 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_1003 import ( + from .group_1002 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_1004 import ( + from .group_1003 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_1005 import ( + from .group_1004 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_1006 import ( + from .group_1005 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_1007 import ( + from .group_1006 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_1008 import ( + from .group_1007 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_1009 import ( + from .group_1008 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_1010 import ( + from .group_1009 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_1011 import ( + from .group_1010 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_1011 import WorkflowType as WorkflowType - from .group_1012 import ( + from .group_1010 import WorkflowType as WorkflowType + from .group_1011 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_1012 import ( + from .group_1011 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_1013 import ( + from .group_1012 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_1014 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, ) - from .group_1014 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, ) - from .group_1014 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, ) - from .group_1014 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, ) - from .group_1015 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1016 import ( + from .group_1015 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, ) - from .group_1017 import ( + from .group_1016 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_1018 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_1019 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_1019 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_1019 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_1020 import ( + from .group_1019 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_1020 import ( + from .group_1019 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_1021 import ( + from .group_1020 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_1022 import ( + from .group_1021 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_1023 import ( + from .group_1022 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_1024 import ( + from .group_1023 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType, ) - from .group_1025 import ( + from .group_1024 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType, ) - from .group_1026 import ( + from .group_1025 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType, ) - from .group_1027 import ( + from .group_1026 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_1028 import ( + from .group_1027 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_1029 import ( + from .group_1028 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_1030 import ( + from .group_1029 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType, ) - from .group_1031 import ( + from .group_1030 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType, ) - from .group_1032 import ( + from .group_1031 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType, ) - from .group_1033 import ( + from .group_1032 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_1034 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_1034 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_1034 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_1034 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_1035 import ( + from .group_1034 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_1036 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_1037 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_1037 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) - from .group_1037 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_1037 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_1038 import ( + from .group_1037 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_1039 import ( + from .group_1038 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_1040 import ( + from .group_1039 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_1041 import ( + from .group_1040 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_1041 import ( + from .group_1040 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_1042 import ( + from .group_1041 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) - from .group_1043 import ( + from .group_1042 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_1044 import ( + from .group_1043 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_1045 import ( + from .group_1044 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_1046 import ( + from .group_1045 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_1047 import ( + from .group_1046 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_1048 import ( + from .group_1047 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1049 import ( + from .group_1048 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_1050 import ( + from .group_1049 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_1050 import ( + from .group_1049 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_1051 import ( + from .group_1050 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_1052 import ( + from .group_1051 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_1052 import ( + from .group_1051 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1053 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1053 import ( + from .group_1052 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1052 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_1054 import ( + from .group_1053 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_1055 import ( + from .group_1054 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_1056 import ( + from .group_1055 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_1057 import ( + from .group_1056 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_1058 import ( + from .group_1057 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_1059 import ( + from .group_1058 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_1060 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_1060 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_1060 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_1061 import ( + from .group_1060 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_1061 import ( + from .group_1060 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_1061 import ( + from .group_1060 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1062 import ( + from .group_1061 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_1063 import DependabotSecretType as DependabotSecretType - from .group_1063 import ( + from .group_1062 import DependabotSecretType as DependabotSecretType + from .group_1062 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_1064 import ( + from .group_1063 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_1065 import ( + from .group_1064 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_1066 import ( + from .group_1065 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_1066 import ( + from .group_1065 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1067 import ( + from .group_1066 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1068 import ( + from .group_1067 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1069 import ( + from .group_1068 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1069 import ( + from .group_1068 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1070 import ( + from .group_1069 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1070 import ( + from .group_1069 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1071 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1071 import ( + from .group_1070 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1070 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_1072 import ( + from .group_1071 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_1073 import ( + from .group_1072 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_1074 import ( + from .group_1073 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) - from .group_1075 import ( + from .group_1074 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1076 import ( + from .group_1075 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) - from .group_1077 import ( + from .group_1076 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1078 import ( + from .group_1077 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_1079 import ( + from .group_1078 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1080 import ( + from .group_1079 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1081 import ( + from .group_1080 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1081 import ( + from .group_1080 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1081 import ( + from .group_1080 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1082 import ( + from .group_1081 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1083 import ( + from .group_1082 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1084 import ( + from .group_1083 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1084 import ( + from .group_1083 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1085 import ( + from .group_1084 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1085 import ( + from .group_1084 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1086 import ( + from .group_1085 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1086 import ( + from .group_1085 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1087 import ( + from .group_1086 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1088 import ( + from .group_1087 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1089 import ( + from .group_1088 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1090 import ( + from .group_1089 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) - from .group_1091 import ( + from .group_1090 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1092 import ( + from .group_1091 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1093 import ( + from .group_1092 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1094 import ( + from .group_1093 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1095 import ( + from .group_1094 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1095 import ( + from .group_1094 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1096 import ( + from .group_1095 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1097 import ( + from .group_1096 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1098 import ( + from .group_1097 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1098 import ( + from .group_1097 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1099 import ( + from .group_1098 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1100 import ( + from .group_1099 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1101 import ( + from .group_1100 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1102 import ( + from .group_1101 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1103 import ( + from .group_1102 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_1103 import ( + from .group_1102 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1104 import ( + from .group_1103 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1105 import ( + from .group_1104 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1106 import ( + from .group_1105 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) - from .group_1106 import ( + from .group_1105 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1107 import ( + from .group_1106 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_1108 import ( + from .group_1107 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1109 import ( + from .group_1108 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1110 import ( + from .group_1109 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType, ) - from .group_1111 import ( + from .group_1110 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType, ) - from .group_1112 import ( + from .group_1111 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType, ) - from .group_1113 import ( + from .group_1112 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1114 import ( + from .group_1113 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1115 import ( + from .group_1114 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1116 import ( + from .group_1115 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1117 import ( + from .group_1116 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1118 import ( + from .group_1117 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1119 import ( + from .group_1118 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1120 import ( + from .group_1119 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) - from .group_1121 import ( + from .group_1120 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1122 import ( + from .group_1121 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1123 import ( + from .group_1122 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1124 import ( + from .group_1123 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1125 import ( + from .group_1124 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1126 import ( + from .group_1125 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1127 import ( + from .group_1126 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1128 import ( + from .group_1127 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1129 import ( + from .group_1128 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1130 import ( + from .group_1129 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1131 import ( + from .group_1130 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1132 import ( + from .group_1131 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1133 import ( + from .group_1132 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1134 import ( + from .group_1133 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_1135 import ( + from .group_1134 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1136 import ( + from .group_1135 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1137 import ( + from .group_1136 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) - from .group_1138 import ( + from .group_1137 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1139 import ( + from .group_1138 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1140 import ( + from .group_1139 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_1141 import ( + from .group_1140 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1142 import ( + from .group_1141 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1143 import ( + from .group_1142 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1144 import ( + from .group_1143 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1145 import ( + from .group_1144 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1146 import ( + from .group_1145 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1147 import ( + from .group_1146 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1148 import ( + from .group_1147 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1148 import ( + from .group_1147 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1149 import ( + from .group_1148 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) - from .group_1150 import ( + from .group_1149 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_1151 import ( + from .group_1150 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) - from .group_1152 import ( + from .group_1151 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1153 import ( + from .group_1152 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1154 import ( + from .group_1153 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1155 import ( + from .group_1154 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_1156 import ( + from .group_1155 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1157 import ( + from .group_1156 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) - from .group_1158 import ( + from .group_1157 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_1159 import ( + from .group_1158 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1160 import ( + from .group_1159 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1161 import ( + from .group_1160 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1162 import ( + from .group_1161 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType, ) - from .group_1163 import ( + from .group_1162 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1164 import ( + from .group_1163 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) - from .group_1165 import ( + from .group_1164 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1166 import ( + from .group_1165 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) - from .group_1167 import ( + from .group_1166 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1168 import ( + from .group_1167 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_1169 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1170 import ( + from .group_1168 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1169 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) - from .group_1171 import ( + from .group_1170 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) - from .group_1172 import ( + from .group_1171 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1173 import ( + from .group_1172 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1174 import ( + from .group_1173 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1175 import ( + from .group_1174 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_1176 import ( + from .group_1175 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) - from .group_1177 import ( + from .group_1176 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1178 import ( + from .group_1177 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1179 import ( + from .group_1178 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) - from .group_1180 import UserPatchBodyType as UserPatchBodyType - from .group_1181 import ( + from .group_1179 import UserPatchBodyType as UserPatchBodyType + from .group_1180 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1182 import ( + from .group_1181 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1183 import ( + from .group_1182 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) - from .group_1183 import ( + from .group_1182 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1184 import CodespacesSecretType as CodespacesSecretType - from .group_1184 import ( + from .group_1183 import CodespacesSecretType as CodespacesSecretType + from .group_1183 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) - from .group_1185 import ( + from .group_1184 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) - from .group_1186 import ( + from .group_1185 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1187 import ( + from .group_1186 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1188 import ( + from .group_1187 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) - from .group_1189 import ( + from .group_1188 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) - from .group_1190 import ( + from .group_1189 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) - from .group_1191 import ( + from .group_1190 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1192 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type - from .group_1193 import ( + from .group_1191 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_1192 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1194 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType - from .group_1195 import ( + from .group_1193 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_1194 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1196 import ( + from .group_1195 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_1197 import ( + from .group_1196 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1198 import UserKeysPostBodyType as UserKeysPostBodyType - from .group_1199 import ( + from .group_1197 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_1198 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) - from .group_1200 import UserMigrationsPostBodyType as UserMigrationsPostBodyType - from .group_1201 import UserProjectsPostBodyType as UserProjectsPostBodyType - from .group_1202 import UserReposPostBodyType as UserReposPostBodyType - from .group_1203 import ( + from .group_1199 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_1200 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_1201 import UserReposPostBodyType as UserReposPostBodyType + from .group_1202 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1204 import ( + from .group_1203 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) - from .group_1205 import ( + from .group_1204 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) - from .group_1206 import ( + from .group_1205 import ( UsersUsernameAttestationsBulkListPostBodyType as UsersUsernameAttestationsBulkListPostBodyType, ) - from .group_1207 import ( + from .group_1206 import ( UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType as UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType, ) - from .group_1207 import ( + from .group_1206 import ( UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType as UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType, ) - from .group_1207 import ( + from .group_1206 import ( UsersUsernameAttestationsBulkListPostResponse200Type as UsersUsernameAttestationsBulkListPostResponse200Type, ) - from .group_1208 import ( + from .group_1207 import ( UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, ) - from .group_1209 import ( + from .group_1208 import ( UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1210 import ( + from .group_1209 import ( UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) else: @@ -9174,25 +9121,26 @@ "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0029": ("CodeScanningDefaultSetupOptionsType",), - ".group_0030": ("CodeSecurityDefaultConfigurationsItemsType",), - ".group_0031": ("SimpleRepositoryType",), - ".group_0032": ("CodeSecurityConfigurationRepositoriesType",), - ".group_0033": ("DependabotAlertPackageType",), - ".group_0034": ( + ".group_0029": ("CodeScanningOptionsType",), + ".group_0030": ("CodeScanningDefaultSetupOptionsType",), + ".group_0031": ("CodeSecurityDefaultConfigurationsItemsType",), + ".group_0032": ("SimpleRepositoryType",), + ".group_0033": ("CodeSecurityConfigurationRepositoriesType",), + ".group_0034": ("DependabotAlertPackageType",), + ".group_0035": ( "DependabotAlertSecurityVulnerabilityType", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", ), - ".group_0035": ( + ".group_0036": ( "DependabotAlertSecurityAdvisoryType", "DependabotAlertSecurityAdvisoryPropCvssType", "DependabotAlertSecurityAdvisoryPropCwesItemsType", "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", "DependabotAlertSecurityAdvisoryPropReferencesItemsType", ), - ".group_0036": ("DependabotAlertWithRepositoryType",), - ".group_0037": ("DependabotAlertWithRepositoryPropDependencyType",), - ".group_0038": ( + ".group_0037": ("DependabotAlertWithRepositoryType",), + ".group_0038": ("DependabotAlertWithRepositoryPropDependencyType",), + ".group_0039": ( "SecretScanningLocationCommitType", "SecretScanningLocationWikiCommitType", "SecretScanningLocationIssueBodyType", @@ -9201,77 +9149,77 @@ "SecretScanningLocationPullRequestBodyType", "SecretScanningLocationPullRequestReviewType", ), - ".group_0039": ( + ".group_0040": ( "SecretScanningLocationIssueTitleType", "SecretScanningLocationIssueCommentType", "SecretScanningLocationPullRequestTitleType", "SecretScanningLocationPullRequestReviewCommentType", ), - ".group_0040": ( + ".group_0041": ( "SecretScanningLocationDiscussionBodyType", "SecretScanningLocationPullRequestCommentType", ), - ".group_0041": ("OrganizationSecretScanningAlertType",), - ".group_0042": ("MilestoneType",), - ".group_0043": ("IssueTypeType",), - ".group_0044": ("ReactionRollupType",), - ".group_0045": ( + ".group_0042": ("OrganizationSecretScanningAlertType",), + ".group_0043": ("MilestoneType",), + ".group_0044": ("IssueTypeType",), + ".group_0045": ("ReactionRollupType",), + ".group_0046": ("SubIssuesSummaryType",), + ".group_0047": ( "IssueType", - "SubIssuesSummaryType", "IssuePropLabelsItemsOneof1Type", "IssuePropPullRequestType", ), - ".group_0046": ("IssueCommentType",), - ".group_0047": ( + ".group_0048": ("IssueCommentType",), + ".group_0049": ( "EventPropPayloadType", "EventPropPayloadPropPagesItemsType", "EventType", "ActorType", "EventPropRepoType", ), - ".group_0048": ( + ".group_0050": ( "FeedType", "FeedPropLinksType", "LinkWithTypeType", ), - ".group_0049": ( + ".group_0051": ( "BaseGistType", "BaseGistPropFilesType", ), - ".group_0050": ( + ".group_0052": ( "GistHistoryType", "GistHistoryPropChangeStatusType", "GistSimplePropForkOfType", "GistSimplePropForkOfPropFilesType", ), - ".group_0051": ( + ".group_0053": ( "GistSimpleType", "GistSimplePropFilesType", "GistSimplePropForksItemsType", "PublicUserType", "PublicUserPropPlanType", ), - ".group_0052": ("GistCommentType",), - ".group_0053": ( + ".group_0054": ("GistCommentType",), + ".group_0055": ( "GistCommitType", "GistCommitPropChangeStatusType", ), - ".group_0054": ("GitignoreTemplateType",), - ".group_0055": ("LicenseType",), - ".group_0056": ("MarketplaceListingPlanType",), - ".group_0057": ("MarketplacePurchaseType",), - ".group_0058": ( + ".group_0056": ("GitignoreTemplateType",), + ".group_0057": ("LicenseType",), + ".group_0058": ("MarketplaceListingPlanType",), + ".group_0059": ("MarketplacePurchaseType",), + ".group_0060": ( "MarketplacePurchasePropMarketplacePendingChangeType", "MarketplacePurchasePropMarketplacePurchaseType", ), - ".group_0059": ( + ".group_0061": ( "ApiOverviewType", "ApiOverviewPropSshKeyFingerprintsType", "ApiOverviewPropDomainsType", "ApiOverviewPropDomainsPropActionsInboundType", "ApiOverviewPropDomainsPropArtifactAttestationsType", ), - ".group_0060": ( + ".group_0062": ( "SecurityAndAnalysisType", "SecurityAndAnalysisPropAdvancedSecurityType", "SecurityAndAnalysisPropCodeSecurityType", @@ -9281,87 +9229,87 @@ "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "SecurityAndAnalysisPropSecretScanningAiDetectionType", ), - ".group_0061": ( + ".group_0063": ( "MinimalRepositoryType", "CodeOfConductType", "MinimalRepositoryPropPermissionsType", "MinimalRepositoryPropLicenseType", "MinimalRepositoryPropCustomPropertiesType", ), - ".group_0062": ( + ".group_0064": ( "ThreadType", "ThreadPropSubjectType", ), - ".group_0063": ("ThreadSubscriptionType",), - ".group_0064": ("OrganizationSimpleType",), - ".group_0065": ("DependabotRepositoryAccessDetailsType",), - ".group_0066": ( + ".group_0065": ("ThreadSubscriptionType",), + ".group_0066": ("OrganizationSimpleType",), + ".group_0067": ("DependabotRepositoryAccessDetailsType",), + ".group_0068": ( "BillingUsageReportType", "BillingUsageReportPropUsageItemsItemsType", ), - ".group_0067": ( + ".group_0069": ( "OrganizationFullType", "OrganizationFullPropPlanType", ), - ".group_0068": ("ActionsCacheUsageOrgEnterpriseType",), - ".group_0069": ("ActionsHostedRunnerMachineSpecType",), - ".group_0070": ( + ".group_0070": ("ActionsCacheUsageOrgEnterpriseType",), + ".group_0071": ("ActionsHostedRunnerMachineSpecType",), + ".group_0072": ( "ActionsHostedRunnerType", "ActionsHostedRunnerPoolImageType", "PublicIpType", ), - ".group_0071": ("ActionsHostedRunnerImageType",), - ".group_0072": ( + ".group_0073": ("ActionsHostedRunnerImageType",), + ".group_0074": ( "ActionsHostedRunnerLimitsType", "ActionsHostedRunnerLimitsPropPublicIpsType", ), - ".group_0073": ("OidcCustomSubType",), - ".group_0074": ("ActionsOrganizationPermissionsType",), - ".group_0075": ("SelectedActionsType",), - ".group_0076": ("ActionsGetDefaultWorkflowPermissionsType",), - ".group_0077": ("ActionsSetDefaultWorkflowPermissionsType",), - ".group_0078": ("RunnerLabelType",), - ".group_0079": ("RunnerType",), - ".group_0080": ("RunnerApplicationType",), - ".group_0081": ( + ".group_0075": ("OidcCustomSubType",), + ".group_0076": ("ActionsOrganizationPermissionsType",), + ".group_0077": ("SelectedActionsType",), + ".group_0078": ("ActionsGetDefaultWorkflowPermissionsType",), + ".group_0079": ("ActionsSetDefaultWorkflowPermissionsType",), + ".group_0080": ("RunnerLabelType",), + ".group_0081": ("RunnerType",), + ".group_0082": ("RunnerApplicationType",), + ".group_0083": ( "AuthenticationTokenType", "AuthenticationTokenPropPermissionsType", ), - ".group_0082": ("ActionsPublicKeyType",), - ".group_0083": ("TeamSimpleType",), - ".group_0084": ( + ".group_0084": ("ActionsPublicKeyType",), + ".group_0085": ("TeamSimpleType",), + ".group_0086": ( "TeamType", "TeamPropPermissionsType", ), - ".group_0085": ( + ".group_0087": ( "CampaignSummaryType", "CampaignSummaryPropAlertStatsType", ), - ".group_0086": ("CodeScanningAlertRuleSummaryType",), - ".group_0087": ("CodeScanningAnalysisToolType",), - ".group_0088": ( + ".group_0088": ("CodeScanningAlertRuleSummaryType",), + ".group_0089": ("CodeScanningAnalysisToolType",), + ".group_0090": ( "CodeScanningAlertInstanceType", "CodeScanningAlertLocationType", "CodeScanningAlertInstancePropMessageType", ), - ".group_0089": ("CodeScanningOrganizationAlertItemsType",), - ".group_0090": ("CodespaceMachineType",), - ".group_0091": ( + ".group_0091": ("CodeScanningOrganizationAlertItemsType",), + ".group_0092": ("CodespaceMachineType",), + ".group_0093": ( "CodespaceType", "CodespacePropGitStatusType", "CodespacePropRuntimeConstraintsType", ), - ".group_0092": ("CodespacesPublicKeyType",), - ".group_0093": ( + ".group_0094": ("CodespacesPublicKeyType",), + ".group_0095": ( "CopilotOrganizationDetailsType", "CopilotOrganizationSeatBreakdownType", ), - ".group_0094": ( + ".group_0096": ( "CopilotSeatDetailsType", "EnterpriseTeamType", "OrgsOrgCopilotBillingSeatsGetResponse200Type", ), - ".group_0095": ( + ".group_0097": ( "CopilotUsageMetricsDayType", "CopilotDotcomChatType", "CopilotDotcomChatPropModelsItemsType", @@ -9377,159 +9325,159 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", ), - ".group_0096": ("DependabotPublicKeyType",), - ".group_0097": ("PackageType",), - ".group_0098": ("OrganizationInvitationType",), - ".group_0099": ( + ".group_0098": ("DependabotPublicKeyType",), + ".group_0099": ("PackageType",), + ".group_0100": ("OrganizationInvitationType",), + ".group_0101": ( "OrgHookType", "OrgHookPropConfigType", ), - ".group_0100": ("ApiInsightsRouteStatsItemsType",), - ".group_0101": ("ApiInsightsSubjectStatsItemsType",), - ".group_0102": ("ApiInsightsSummaryStatsType",), - ".group_0103": ("ApiInsightsTimeStatsItemsType",), - ".group_0104": ("ApiInsightsUserStatsItemsType",), - ".group_0105": ("InteractionLimitResponseType",), - ".group_0106": ("InteractionLimitType",), - ".group_0107": ("OrganizationCreateIssueTypeType",), - ".group_0108": ("OrganizationUpdateIssueTypeType",), - ".group_0109": ( + ".group_0102": ("ApiInsightsRouteStatsItemsType",), + ".group_0103": ("ApiInsightsSubjectStatsItemsType",), + ".group_0104": ("ApiInsightsSummaryStatsType",), + ".group_0105": ("ApiInsightsTimeStatsItemsType",), + ".group_0106": ("ApiInsightsUserStatsItemsType",), + ".group_0107": ("InteractionLimitResponseType",), + ".group_0108": ("InteractionLimitType",), + ".group_0109": ("OrganizationCreateIssueTypeType",), + ".group_0110": ("OrganizationUpdateIssueTypeType",), + ".group_0111": ( "OrgMembershipType", "OrgMembershipPropPermissionsType", ), - ".group_0110": ("MigrationType",), - ".group_0111": ( + ".group_0112": ("MigrationType",), + ".group_0113": ( "OrganizationRoleType", "OrgsOrgOrganizationRolesGetResponse200Type", ), - ".group_0112": ( + ".group_0114": ( "TeamRoleAssignmentType", "TeamRoleAssignmentPropPermissionsType", ), - ".group_0113": ("UserRoleAssignmentType",), - ".group_0114": ( + ".group_0115": ("UserRoleAssignmentType",), + ".group_0116": ( "PackageVersionType", "PackageVersionPropMetadataType", "PackageVersionPropMetadataPropContainerType", "PackageVersionPropMetadataPropDockerType", ), - ".group_0115": ( + ".group_0117": ( "OrganizationProgrammaticAccessGrantRequestType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", ), - ".group_0116": ( + ".group_0118": ( "OrganizationProgrammaticAccessGrantType", "OrganizationProgrammaticAccessGrantPropPermissionsType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", ), - ".group_0117": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), - ".group_0118": ("ProjectType",), - ".group_0119": ("CustomPropertyType",), - ".group_0120": ("CustomPropertySetPayloadType",), - ".group_0121": ("CustomPropertyValueType",), - ".group_0122": ("OrgRepoCustomPropertyValuesType",), - ".group_0123": ("CodeOfConductSimpleType",), - ".group_0124": ( + ".group_0119": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), + ".group_0120": ("ProjectType",), + ".group_0121": ("CustomPropertyType",), + ".group_0122": ("CustomPropertySetPayloadType",), + ".group_0123": ("CustomPropertyValueType",), + ".group_0124": ("OrgRepoCustomPropertyValuesType",), + ".group_0125": ("CodeOfConductSimpleType",), + ".group_0126": ( "FullRepositoryType", "FullRepositoryPropPermissionsType", "FullRepositoryPropCustomPropertiesType", ), - ".group_0125": ("RepositoryRulesetBypassActorType",), - ".group_0126": ("RepositoryRulesetConditionsType",), - ".group_0127": ("RepositoryRulesetConditionsPropRefNameType",), - ".group_0128": ("RepositoryRulesetConditionsRepositoryNameTargetType",), - ".group_0129": ( + ".group_0127": ("RepositoryRulesetBypassActorType",), + ".group_0128": ("RepositoryRulesetConditionsType",), + ".group_0129": ("RepositoryRulesetConditionsPropRefNameType",), + ".group_0130": ("RepositoryRulesetConditionsRepositoryNameTargetType",), + ".group_0131": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType", ), - ".group_0130": ("RepositoryRulesetConditionsRepositoryIdTargetType",), - ".group_0131": ( + ".group_0132": ("RepositoryRulesetConditionsRepositoryIdTargetType",), + ".group_0133": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType", ), - ".group_0132": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), - ".group_0133": ( + ".group_0134": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), + ".group_0135": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", "RepositoryRulesetConditionsRepositoryPropertySpecType", ), - ".group_0134": ("OrgRulesetConditionsOneof0Type",), - ".group_0135": ("OrgRulesetConditionsOneof1Type",), - ".group_0136": ("OrgRulesetConditionsOneof2Type",), - ".group_0137": ( + ".group_0136": ("OrgRulesetConditionsOneof0Type",), + ".group_0137": ("OrgRulesetConditionsOneof1Type",), + ".group_0138": ("OrgRulesetConditionsOneof2Type",), + ".group_0139": ( "RepositoryRuleCreationType", "RepositoryRuleDeletionType", "RepositoryRuleRequiredSignaturesType", "RepositoryRuleNonFastForwardType", ), - ".group_0138": ("RepositoryRuleUpdateType",), - ".group_0139": ("RepositoryRuleUpdatePropParametersType",), - ".group_0140": ("RepositoryRuleRequiredLinearHistoryType",), - ".group_0141": ("RepositoryRuleMergeQueueType",), - ".group_0142": ("RepositoryRuleMergeQueuePropParametersType",), - ".group_0143": ("RepositoryRuleRequiredDeploymentsType",), - ".group_0144": ("RepositoryRuleRequiredDeploymentsPropParametersType",), - ".group_0145": ( + ".group_0140": ("RepositoryRuleUpdateType",), + ".group_0141": ("RepositoryRuleUpdatePropParametersType",), + ".group_0142": ("RepositoryRuleRequiredLinearHistoryType",), + ".group_0143": ("RepositoryRuleMergeQueueType",), + ".group_0144": ("RepositoryRuleMergeQueuePropParametersType",), + ".group_0145": ("RepositoryRuleRequiredDeploymentsType",), + ".group_0146": ("RepositoryRuleRequiredDeploymentsPropParametersType",), + ".group_0147": ( "RepositoryRuleParamsRequiredReviewerConfigurationType", "RepositoryRuleParamsReviewerType", ), - ".group_0146": ("RepositoryRulePullRequestType",), - ".group_0147": ("RepositoryRulePullRequestPropParametersType",), - ".group_0148": ("RepositoryRuleRequiredStatusChecksType",), - ".group_0149": ( + ".group_0148": ("RepositoryRulePullRequestType",), + ".group_0149": ("RepositoryRulePullRequestPropParametersType",), + ".group_0150": ("RepositoryRuleRequiredStatusChecksType",), + ".group_0151": ( "RepositoryRuleRequiredStatusChecksPropParametersType", "RepositoryRuleParamsStatusCheckConfigurationType", ), - ".group_0150": ("RepositoryRuleCommitMessagePatternType",), - ".group_0151": ("RepositoryRuleCommitMessagePatternPropParametersType",), - ".group_0152": ("RepositoryRuleCommitAuthorEmailPatternType",), - ".group_0153": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), - ".group_0154": ("RepositoryRuleCommitterEmailPatternType",), - ".group_0155": ("RepositoryRuleCommitterEmailPatternPropParametersType",), - ".group_0156": ("RepositoryRuleBranchNamePatternType",), - ".group_0157": ("RepositoryRuleBranchNamePatternPropParametersType",), - ".group_0158": ("RepositoryRuleTagNamePatternType",), - ".group_0159": ("RepositoryRuleTagNamePatternPropParametersType",), - ".group_0160": ("RepositoryRuleFilePathRestrictionType",), - ".group_0161": ("RepositoryRuleFilePathRestrictionPropParametersType",), - ".group_0162": ("RepositoryRuleMaxFilePathLengthType",), - ".group_0163": ("RepositoryRuleMaxFilePathLengthPropParametersType",), - ".group_0164": ("RepositoryRuleFileExtensionRestrictionType",), - ".group_0165": ("RepositoryRuleFileExtensionRestrictionPropParametersType",), - ".group_0166": ("RepositoryRuleMaxFileSizeType",), - ".group_0167": ("RepositoryRuleMaxFileSizePropParametersType",), - ".group_0168": ("RepositoryRuleParamsRestrictedCommitsType",), - ".group_0169": ("RepositoryRuleWorkflowsType",), - ".group_0170": ( + ".group_0152": ("RepositoryRuleCommitMessagePatternType",), + ".group_0153": ("RepositoryRuleCommitMessagePatternPropParametersType",), + ".group_0154": ("RepositoryRuleCommitAuthorEmailPatternType",), + ".group_0155": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), + ".group_0156": ("RepositoryRuleCommitterEmailPatternType",), + ".group_0157": ("RepositoryRuleCommitterEmailPatternPropParametersType",), + ".group_0158": ("RepositoryRuleBranchNamePatternType",), + ".group_0159": ("RepositoryRuleBranchNamePatternPropParametersType",), + ".group_0160": ("RepositoryRuleTagNamePatternType",), + ".group_0161": ("RepositoryRuleTagNamePatternPropParametersType",), + ".group_0162": ("RepositoryRuleFilePathRestrictionType",), + ".group_0163": ("RepositoryRuleFilePathRestrictionPropParametersType",), + ".group_0164": ("RepositoryRuleMaxFilePathLengthType",), + ".group_0165": ("RepositoryRuleMaxFilePathLengthPropParametersType",), + ".group_0166": ("RepositoryRuleFileExtensionRestrictionType",), + ".group_0167": ("RepositoryRuleFileExtensionRestrictionPropParametersType",), + ".group_0168": ("RepositoryRuleMaxFileSizeType",), + ".group_0169": ("RepositoryRuleMaxFileSizePropParametersType",), + ".group_0170": ("RepositoryRuleParamsRestrictedCommitsType",), + ".group_0171": ("RepositoryRuleWorkflowsType",), + ".group_0172": ( "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", ), - ".group_0171": ("RepositoryRuleCodeScanningType",), - ".group_0172": ( + ".group_0173": ("RepositoryRuleCodeScanningType",), + ".group_0174": ( "RepositoryRuleCodeScanningPropParametersType", "RepositoryRuleParamsCodeScanningToolType", ), - ".group_0173": ( + ".group_0175": ( "RepositoryRulesetType", "RepositoryRulesetPropLinksType", "RepositoryRulesetPropLinksPropSelfType", "RepositoryRulesetPropLinksPropHtmlType", ), - ".group_0174": ("RuleSuitesItemsType",), - ".group_0175": ( + ".group_0176": ("RuleSuitesItemsType",), + ".group_0177": ( "RuleSuiteType", "RuleSuitePropRuleEvaluationsItemsType", "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", ), - ".group_0176": ("RulesetVersionType",), - ".group_0177": ("RulesetVersionPropActorType",), - ".group_0178": ("RulesetVersionWithStateType",), - ".group_0179": ("RulesetVersionWithStateAllof1Type",), - ".group_0180": ("RulesetVersionWithStateAllof1PropStateType",), - ".group_0181": ("RepositoryAdvisoryCreditType",), - ".group_0182": ( + ".group_0178": ("RulesetVersionType",), + ".group_0179": ("RulesetVersionPropActorType",), + ".group_0180": ("RulesetVersionWithStateType",), + ".group_0181": ("RulesetVersionWithStateAllof1Type",), + ".group_0182": ("RulesetVersionWithStateAllof1PropStateType",), + ".group_0183": ("RepositoryAdvisoryCreditType",), + ".group_0184": ( "RepositoryAdvisoryType", "RepositoryAdvisoryPropIdentifiersItemsType", "RepositoryAdvisoryPropSubmissionType", @@ -9539,85 +9487,85 @@ "RepositoryAdvisoryVulnerabilityType", "RepositoryAdvisoryVulnerabilityPropPackageType", ), - ".group_0183": ( + ".group_0185": ( "ActionsBillingUsageType", "ActionsBillingUsagePropMinutesUsedBreakdownType", ), - ".group_0184": ("PackagesBillingUsageType",), - ".group_0185": ("CombinedBillingUsageType",), - ".group_0186": ("NetworkSettingsType",), - ".group_0187": ( + ".group_0186": ("PackagesBillingUsageType",), + ".group_0187": ("CombinedBillingUsageType",), + ".group_0188": ("NetworkSettingsType",), + ".group_0189": ( "TeamFullType", "TeamOrganizationType", "TeamOrganizationPropPlanType", ), - ".group_0188": ("TeamDiscussionType",), - ".group_0189": ("TeamDiscussionCommentType",), - ".group_0190": ("ReactionType",), - ".group_0191": ("TeamMembershipType",), - ".group_0192": ( + ".group_0190": ("TeamDiscussionType",), + ".group_0191": ("TeamDiscussionCommentType",), + ".group_0192": ("ReactionType",), + ".group_0193": ("TeamMembershipType",), + ".group_0194": ( "TeamProjectType", "TeamProjectPropPermissionsType", ), - ".group_0193": ( + ".group_0195": ( "TeamRepositoryType", "TeamRepositoryPropPermissionsType", ), - ".group_0194": ("ProjectCardType",), - ".group_0195": ("ProjectColumnType",), - ".group_0196": ("ProjectCollaboratorPermissionType",), - ".group_0197": ("RateLimitType",), - ".group_0198": ("RateLimitOverviewType",), - ".group_0199": ("RateLimitOverviewPropResourcesType",), - ".group_0200": ( + ".group_0196": ("ProjectCardType",), + ".group_0197": ("ProjectColumnType",), + ".group_0198": ("ProjectCollaboratorPermissionType",), + ".group_0199": ("RateLimitType",), + ".group_0200": ("RateLimitOverviewType",), + ".group_0201": ("RateLimitOverviewPropResourcesType",), + ".group_0202": ( "ArtifactType", "ArtifactPropWorkflowRunType", ), - ".group_0201": ( + ".group_0203": ( "ActionsCacheListType", "ActionsCacheListPropActionsCachesItemsType", ), - ".group_0202": ( + ".group_0204": ( "JobType", "JobPropStepsItemsType", ), - ".group_0203": ("OidcCustomSubRepoType",), - ".group_0204": ("ActionsSecretType",), - ".group_0205": ("ActionsVariableType",), - ".group_0206": ("ActionsRepositoryPermissionsType",), - ".group_0207": ("ActionsWorkflowAccessToRepositoryType",), - ".group_0208": ( + ".group_0205": ("OidcCustomSubRepoType",), + ".group_0206": ("ActionsSecretType",), + ".group_0207": ("ActionsVariableType",), + ".group_0208": ("ActionsRepositoryPermissionsType",), + ".group_0209": ("ActionsWorkflowAccessToRepositoryType",), + ".group_0210": ( "PullRequestMinimalType", "PullRequestMinimalPropHeadType", "PullRequestMinimalPropHeadPropRepoType", "PullRequestMinimalPropBaseType", "PullRequestMinimalPropBasePropRepoType", ), - ".group_0209": ( + ".group_0211": ( "SimpleCommitType", "SimpleCommitPropAuthorType", "SimpleCommitPropCommitterType", ), - ".group_0210": ( + ".group_0212": ( "WorkflowRunType", "ReferencedWorkflowType", ), - ".group_0211": ( + ".group_0213": ( "EnvironmentApprovalsType", "EnvironmentApprovalsPropEnvironmentsItemsType", ), - ".group_0212": ("ReviewCustomGatesCommentRequiredType",), - ".group_0213": ("ReviewCustomGatesStateRequiredType",), - ".group_0214": ( + ".group_0214": ("ReviewCustomGatesCommentRequiredType",), + ".group_0215": ("ReviewCustomGatesStateRequiredType",), + ".group_0216": ( "PendingDeploymentPropReviewersItemsType", "PendingDeploymentType", "PendingDeploymentPropEnvironmentType", ), - ".group_0215": ( + ".group_0217": ( "DeploymentType", "DeploymentPropPayloadOneof0Type", ), - ".group_0216": ( + ".group_0218": ( "WorkflowRunUsageType", "WorkflowRunUsagePropBillableType", "WorkflowRunUsagePropBillablePropUbuntuType", @@ -9627,22 +9575,22 @@ "WorkflowRunUsagePropBillablePropWindowsType", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", ), - ".group_0217": ( + ".group_0219": ( "WorkflowUsageType", "WorkflowUsagePropBillableType", "WorkflowUsagePropBillablePropUbuntuType", "WorkflowUsagePropBillablePropMacosType", "WorkflowUsagePropBillablePropWindowsType", ), - ".group_0218": ("ActivityType",), - ".group_0219": ("AutolinkType",), - ".group_0220": ("CheckAutomatedSecurityFixesType",), - ".group_0221": ("ProtectedBranchPullRequestReviewType",), - ".group_0222": ( + ".group_0220": ("ActivityType",), + ".group_0221": ("AutolinkType",), + ".group_0222": ("CheckAutomatedSecurityFixesType",), + ".group_0223": ("ProtectedBranchPullRequestReviewType",), + ".group_0224": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", ), - ".group_0223": ( + ".group_0225": ( "BranchRestrictionPolicyType", "BranchRestrictionPolicyPropUsersItemsType", "BranchRestrictionPolicyPropTeamsItemsType", @@ -9650,7 +9598,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwnerType", "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", ), - ".group_0224": ( + ".group_0226": ( "BranchProtectionType", "ProtectedBranchAdminEnforcedType", "BranchProtectionPropRequiredLinearHistoryType", @@ -9664,28 +9612,28 @@ "ProtectedBranchRequiredStatusCheckType", "ProtectedBranchRequiredStatusCheckPropChecksItemsType", ), - ".group_0225": ( + ".group_0227": ( "ShortBranchType", "ShortBranchPropCommitType", ), - ".group_0226": ("GitUserType",), - ".group_0227": ("VerificationType",), - ".group_0228": ("DiffEntryType",), - ".group_0229": ( + ".group_0228": ("GitUserType",), + ".group_0229": ("VerificationType",), + ".group_0230": ("DiffEntryType",), + ".group_0231": ( "CommitType", "EmptyObjectType", "CommitPropParentsItemsType", "CommitPropStatsType", ), - ".group_0230": ( + ".group_0232": ( "CommitPropCommitType", "CommitPropCommitPropTreeType", ), - ".group_0231": ( + ".group_0233": ( "BranchWithProtectionType", "BranchWithProtectionPropLinksType", ), - ".group_0232": ( + ".group_0234": ( "ProtectedBranchType", "ProtectedBranchPropRequiredSignaturesType", "ProtectedBranchPropEnforceAdminsType", @@ -9699,117 +9647,117 @@ "StatusCheckPolicyType", "StatusCheckPolicyPropChecksItemsType", ), - ".group_0233": ("ProtectedBranchPropRequiredPullRequestReviewsType",), - ".group_0234": ( + ".group_0235": ("ProtectedBranchPropRequiredPullRequestReviewsType",), + ".group_0236": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ), - ".group_0235": ("DeploymentSimpleType",), - ".group_0236": ( + ".group_0237": ("DeploymentSimpleType",), + ".group_0238": ( "CheckRunType", "CheckRunPropOutputType", "CheckRunPropCheckSuiteType", ), - ".group_0237": ("CheckAnnotationType",), - ".group_0238": ( + ".group_0239": ("CheckAnnotationType",), + ".group_0240": ( "CheckSuiteType", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", ), - ".group_0239": ( + ".group_0241": ( "CheckSuitePreferenceType", "CheckSuitePreferencePropPreferencesType", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", ), - ".group_0240": ("CodeScanningAlertItemsType",), - ".group_0241": ( + ".group_0242": ("CodeScanningAlertItemsType",), + ".group_0243": ( "CodeScanningAlertType", "CodeScanningAlertRuleType", ), - ".group_0242": ("CodeScanningAutofixType",), - ".group_0243": ("CodeScanningAutofixCommitsType",), - ".group_0244": ("CodeScanningAutofixCommitsResponseType",), - ".group_0245": ("CodeScanningAnalysisType",), - ".group_0246": ("CodeScanningAnalysisDeletionType",), - ".group_0247": ("CodeScanningCodeqlDatabaseType",), - ".group_0248": ("CodeScanningVariantAnalysisRepositoryType",), - ".group_0249": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), - ".group_0250": ("CodeScanningVariantAnalysisType",), - ".group_0251": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), - ".group_0252": ( + ".group_0244": ("CodeScanningAutofixType",), + ".group_0245": ("CodeScanningAutofixCommitsType",), + ".group_0246": ("CodeScanningAutofixCommitsResponseType",), + ".group_0247": ("CodeScanningAnalysisType",), + ".group_0248": ("CodeScanningAnalysisDeletionType",), + ".group_0249": ("CodeScanningCodeqlDatabaseType",), + ".group_0250": ("CodeScanningVariantAnalysisRepositoryType",), + ".group_0251": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), + ".group_0252": ("CodeScanningVariantAnalysisType",), + ".group_0253": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), + ".group_0254": ( "CodeScanningVariantAnalysisPropSkippedRepositoriesType", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", ), - ".group_0253": ("CodeScanningVariantAnalysisRepoTaskType",), - ".group_0254": ("CodeScanningDefaultSetupType",), - ".group_0255": ("CodeScanningDefaultSetupUpdateType",), - ".group_0256": ("CodeScanningDefaultSetupUpdateResponseType",), - ".group_0257": ("CodeScanningSarifsReceiptType",), - ".group_0258": ("CodeScanningSarifsStatusType",), - ".group_0259": ("CodeSecurityConfigurationForRepositoryType",), - ".group_0260": ( + ".group_0255": ("CodeScanningVariantAnalysisRepoTaskType",), + ".group_0256": ("CodeScanningDefaultSetupType",), + ".group_0257": ("CodeScanningDefaultSetupUpdateType",), + ".group_0258": ("CodeScanningDefaultSetupUpdateResponseType",), + ".group_0259": ("CodeScanningSarifsReceiptType",), + ".group_0260": ("CodeScanningSarifsStatusType",), + ".group_0261": ("CodeSecurityConfigurationForRepositoryType",), + ".group_0262": ( "CodeownersErrorsType", "CodeownersErrorsPropErrorsItemsType", ), - ".group_0261": ("CodespacesPermissionsCheckForDevcontainerType",), - ".group_0262": ("RepositoryInvitationType",), - ".group_0263": ( + ".group_0263": ("CodespacesPermissionsCheckForDevcontainerType",), + ".group_0264": ("RepositoryInvitationType",), + ".group_0265": ( "RepositoryCollaboratorPermissionType", "CollaboratorType", "CollaboratorPropPermissionsType", ), - ".group_0264": ( + ".group_0266": ( "CommitCommentType", "TimelineCommitCommentedEventType", ), - ".group_0265": ( + ".group_0267": ( "BranchShortType", "BranchShortPropCommitType", ), - ".group_0266": ("LinkType",), - ".group_0267": ("AutoMergeType",), - ".group_0268": ( + ".group_0268": ("LinkType",), + ".group_0269": ("AutoMergeType",), + ".group_0270": ( "PullRequestSimpleType", "PullRequestSimplePropLabelsItemsType", ), - ".group_0269": ( + ".group_0271": ( "PullRequestSimplePropHeadType", "PullRequestSimplePropBaseType", ), - ".group_0270": ("PullRequestSimplePropLinksType",), - ".group_0271": ( + ".group_0272": ("PullRequestSimplePropLinksType",), + ".group_0273": ( "CombinedCommitStatusType", "SimpleCommitStatusType", ), - ".group_0272": ("StatusType",), - ".group_0273": ( + ".group_0274": ("StatusType",), + ".group_0275": ( "CommunityProfilePropFilesType", "CommunityHealthFileType", "CommunityProfileType", ), - ".group_0274": ("CommitComparisonType",), - ".group_0275": ( + ".group_0276": ("CommitComparisonType",), + ".group_0277": ( "ContentTreeType", "ContentTreePropLinksType", "ContentTreePropEntriesItemsType", "ContentTreePropEntriesItemsPropLinksType", ), - ".group_0276": ( + ".group_0278": ( "ContentDirectoryItemsType", "ContentDirectoryItemsPropLinksType", ), - ".group_0277": ( + ".group_0279": ( "ContentFileType", "ContentFilePropLinksType", ), - ".group_0278": ( + ".group_0280": ( "ContentSymlinkType", "ContentSymlinkPropLinksType", ), - ".group_0279": ( + ".group_0281": ( "ContentSubmoduleType", "ContentSubmodulePropLinksType", ), - ".group_0280": ( + ".group_0282": ( "FileCommitType", "FileCommitPropContentType", "FileCommitPropContentPropLinksType", @@ -9820,20 +9768,20 @@ "FileCommitPropCommitPropParentsItemsType", "FileCommitPropCommitPropVerificationType", ), - ".group_0281": ( + ".group_0283": ( "RepositoryRuleViolationErrorType", "RepositoryRuleViolationErrorPropMetadataType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", ), - ".group_0282": ("ContributorType",), - ".group_0283": ("DependabotAlertType",), - ".group_0284": ("DependabotAlertPropDependencyType",), - ".group_0285": ( + ".group_0284": ("ContributorType",), + ".group_0285": ("DependabotAlertType",), + ".group_0286": ("DependabotAlertPropDependencyType",), + ".group_0287": ( "DependencyGraphDiffItemsType", "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ), - ".group_0286": ( + ".group_0288": ( "DependencyGraphSpdxSbomType", "DependencyGraphSpdxSbomPropSbomType", "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", @@ -9841,41 +9789,41 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", ), - ".group_0287": ("MetadataType",), - ".group_0288": ("DependencyType",), - ".group_0289": ( + ".group_0289": ("MetadataType",), + ".group_0290": ("DependencyType",), + ".group_0291": ( "ManifestType", "ManifestPropFileType", "ManifestPropResolvedType", ), - ".group_0290": ( + ".group_0292": ( "SnapshotType", "SnapshotPropJobType", "SnapshotPropDetectorType", "SnapshotPropManifestsType", ), - ".group_0291": ("DeploymentStatusType",), - ".group_0292": ("DeploymentBranchPolicySettingsType",), - ".group_0293": ( + ".group_0293": ("DeploymentStatusType",), + ".group_0294": ("DeploymentBranchPolicySettingsType",), + ".group_0295": ( "EnvironmentType", "EnvironmentPropProtectionRulesItemsAnyof0Type", "EnvironmentPropProtectionRulesItemsAnyof2Type", "ReposOwnerRepoEnvironmentsGetResponse200Type", ), - ".group_0294": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), - ".group_0295": ( + ".group_0296": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), + ".group_0297": ( "EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType", ), - ".group_0296": ("DeploymentBranchPolicyNamePatternWithTypeType",), - ".group_0297": ("DeploymentBranchPolicyNamePatternType",), - ".group_0298": ("CustomDeploymentRuleAppType",), - ".group_0299": ( + ".group_0298": ("DeploymentBranchPolicyNamePatternWithTypeType",), + ".group_0299": ("DeploymentBranchPolicyNamePatternType",), + ".group_0300": ("CustomDeploymentRuleAppType",), + ".group_0301": ( "DeploymentProtectionRuleType", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ), - ".group_0300": ("ShortBlobType",), - ".group_0301": ("BlobType",), - ".group_0302": ( + ".group_0302": ("ShortBlobType",), + ".group_0303": ("BlobType",), + ".group_0304": ( "GitCommitType", "GitCommitPropAuthorType", "GitCommitPropCommitterType", @@ -9883,28 +9831,28 @@ "GitCommitPropParentsItemsType", "GitCommitPropVerificationType", ), - ".group_0303": ( + ".group_0305": ( "GitRefType", "GitRefPropObjectType", ), - ".group_0304": ( + ".group_0306": ( "GitTagType", "GitTagPropTaggerType", "GitTagPropObjectType", ), - ".group_0305": ( + ".group_0307": ( "GitTreeType", "GitTreePropTreeItemsType", ), - ".group_0306": ("HookResponseType",), - ".group_0307": ("HookType",), - ".group_0308": ( + ".group_0308": ("HookResponseType",), + ".group_0309": ("HookType",), + ".group_0310": ( "ImportType", "ImportPropProjectChoicesItemsType", ), - ".group_0309": ("PorterAuthorType",), - ".group_0310": ("PorterLargeFileType",), - ".group_0311": ( + ".group_0311": ("PorterAuthorType",), + ".group_0312": ("PorterLargeFileType",), + ".group_0313": ( "IssueEventType", "IssueEventLabelType", "IssueEventDismissedReviewType", @@ -9912,55 +9860,55 @@ "IssueEventProjectCardType", "IssueEventRenameType", ), - ".group_0312": ( + ".group_0314": ( "LabeledIssueEventType", "LabeledIssueEventPropLabelType", ), - ".group_0313": ( + ".group_0315": ( "UnlabeledIssueEventType", "UnlabeledIssueEventPropLabelType", ), - ".group_0314": ("AssignedIssueEventType",), - ".group_0315": ("UnassignedIssueEventType",), - ".group_0316": ( + ".group_0316": ("AssignedIssueEventType",), + ".group_0317": ("UnassignedIssueEventType",), + ".group_0318": ( "MilestonedIssueEventType", "MilestonedIssueEventPropMilestoneType", ), - ".group_0317": ( + ".group_0319": ( "DemilestonedIssueEventType", "DemilestonedIssueEventPropMilestoneType", ), - ".group_0318": ( + ".group_0320": ( "RenamedIssueEventType", "RenamedIssueEventPropRenameType", ), - ".group_0319": ("ReviewRequestedIssueEventType",), - ".group_0320": ("ReviewRequestRemovedIssueEventType",), - ".group_0321": ( + ".group_0321": ("ReviewRequestedIssueEventType",), + ".group_0322": ("ReviewRequestRemovedIssueEventType",), + ".group_0323": ( "ReviewDismissedIssueEventType", "ReviewDismissedIssueEventPropDismissedReviewType", ), - ".group_0322": ("LockedIssueEventType",), - ".group_0323": ( + ".group_0324": ("LockedIssueEventType",), + ".group_0325": ( "AddedToProjectIssueEventType", "AddedToProjectIssueEventPropProjectCardType", ), - ".group_0324": ( + ".group_0326": ( "MovedColumnInProjectIssueEventType", "MovedColumnInProjectIssueEventPropProjectCardType", ), - ".group_0325": ( + ".group_0327": ( "RemovedFromProjectIssueEventType", "RemovedFromProjectIssueEventPropProjectCardType", ), - ".group_0326": ( + ".group_0328": ( "ConvertedNoteToIssueIssueEventType", "ConvertedNoteToIssueIssueEventPropProjectCardType", ), - ".group_0327": ("TimelineCommentEventType",), - ".group_0328": ("TimelineCrossReferencedEventType",), - ".group_0329": ("TimelineCrossReferencedEventPropSourceType",), - ".group_0330": ( + ".group_0329": ("TimelineCommentEventType",), + ".group_0330": ("TimelineCrossReferencedEventType",), + ".group_0331": ("TimelineCrossReferencedEventPropSourceType",), + ".group_0332": ( "TimelineCommittedEventType", "TimelineCommittedEventPropAuthorType", "TimelineCommittedEventPropCommitterType", @@ -9968,13 +9916,13 @@ "TimelineCommittedEventPropParentsItemsType", "TimelineCommittedEventPropVerificationType", ), - ".group_0331": ( + ".group_0333": ( "TimelineReviewedEventType", "TimelineReviewedEventPropLinksType", "TimelineReviewedEventPropLinksPropHtmlType", "TimelineReviewedEventPropLinksPropPullRequestType", ), - ".group_0332": ( + ".group_0334": ( "PullRequestReviewCommentType", "PullRequestReviewCommentPropLinksType", "PullRequestReviewCommentPropLinksPropSelfType", @@ -9982,157 +9930,156 @@ "PullRequestReviewCommentPropLinksPropPullRequestType", "TimelineLineCommentedEventType", ), - ".group_0333": ("TimelineAssignedIssueEventType",), - ".group_0334": ("TimelineUnassignedIssueEventType",), - ".group_0335": ("StateChangeIssueEventType",), - ".group_0336": ("DeployKeyType",), - ".group_0337": ("LanguageType",), - ".group_0338": ( + ".group_0335": ("TimelineAssignedIssueEventType",), + ".group_0336": ("TimelineUnassignedIssueEventType",), + ".group_0337": ("StateChangeIssueEventType",), + ".group_0338": ("DeployKeyType",), + ".group_0339": ("LanguageType",), + ".group_0340": ( "LicenseContentType", "LicenseContentPropLinksType", ), - ".group_0339": ("MergedUpstreamType",), - ".group_0340": ( + ".group_0341": ("MergedUpstreamType",), + ".group_0342": ( "PageType", "PagesSourceHashType", "PagesHttpsCertificateType", ), - ".group_0341": ( + ".group_0343": ( "PageBuildType", "PageBuildPropErrorType", ), - ".group_0342": ("PageBuildStatusType",), - ".group_0343": ("PageDeploymentType",), - ".group_0344": ("PagesDeploymentStatusType",), - ".group_0345": ( + ".group_0344": ("PageBuildStatusType",), + ".group_0345": ("PageDeploymentType",), + ".group_0346": ("PagesDeploymentStatusType",), + ".group_0347": ( "PagesHealthCheckType", "PagesHealthCheckPropDomainType", "PagesHealthCheckPropAltDomainType", ), - ".group_0346": ("PullRequestType",), - ".group_0347": ("PullRequestPropLabelsItemsType",), - ".group_0348": ( + ".group_0348": ("PullRequestType",), + ".group_0349": ("PullRequestPropLabelsItemsType",), + ".group_0350": ( "PullRequestPropHeadType", "PullRequestPropBaseType", ), - ".group_0349": ("PullRequestPropLinksType",), - ".group_0350": ("PullRequestMergeResultType",), - ".group_0351": ("PullRequestReviewRequestType",), - ".group_0352": ( + ".group_0351": ("PullRequestPropLinksType",), + ".group_0352": ("PullRequestMergeResultType",), + ".group_0353": ("PullRequestReviewRequestType",), + ".group_0354": ( "PullRequestReviewType", "PullRequestReviewPropLinksType", "PullRequestReviewPropLinksPropHtmlType", "PullRequestReviewPropLinksPropPullRequestType", ), - ".group_0353": ("ReviewCommentType",), - ".group_0354": ("ReviewCommentPropLinksType",), - ".group_0355": ("ReleaseAssetType",), - ".group_0356": ("ReleaseType",), - ".group_0357": ("ReleaseNotesContentType",), - ".group_0358": ("RepositoryRuleRulesetInfoType",), - ".group_0359": ("RepositoryRuleDetailedOneof0Type",), - ".group_0360": ("RepositoryRuleDetailedOneof1Type",), - ".group_0361": ("RepositoryRuleDetailedOneof2Type",), - ".group_0362": ("RepositoryRuleDetailedOneof3Type",), - ".group_0363": ("RepositoryRuleDetailedOneof4Type",), - ".group_0364": ("RepositoryRuleDetailedOneof5Type",), - ".group_0365": ("RepositoryRuleDetailedOneof6Type",), - ".group_0366": ("RepositoryRuleDetailedOneof7Type",), - ".group_0367": ("RepositoryRuleDetailedOneof8Type",), - ".group_0368": ("RepositoryRuleDetailedOneof9Type",), - ".group_0369": ("RepositoryRuleDetailedOneof10Type",), - ".group_0370": ("RepositoryRuleDetailedOneof11Type",), - ".group_0371": ("RepositoryRuleDetailedOneof12Type",), - ".group_0372": ("RepositoryRuleDetailedOneof13Type",), - ".group_0373": ("RepositoryRuleDetailedOneof14Type",), - ".group_0374": ("RepositoryRuleDetailedOneof15Type",), - ".group_0375": ("RepositoryRuleDetailedOneof16Type",), - ".group_0376": ("RepositoryRuleDetailedOneof17Type",), - ".group_0377": ("RepositoryRuleDetailedOneof18Type",), - ".group_0378": ("RepositoryRuleDetailedOneof19Type",), - ".group_0379": ("RepositoryRuleDetailedOneof20Type",), - ".group_0380": ("SecretScanningAlertType",), - ".group_0381": ("SecretScanningLocationType",), - ".group_0382": ("SecretScanningPushProtectionBypassType",), - ".group_0383": ( + ".group_0355": ("ReviewCommentType",), + ".group_0356": ("ReviewCommentPropLinksType",), + ".group_0357": ("ReleaseAssetType",), + ".group_0358": ("ReleaseType",), + ".group_0359": ("ReleaseNotesContentType",), + ".group_0360": ("RepositoryRuleRulesetInfoType",), + ".group_0361": ("RepositoryRuleDetailedOneof0Type",), + ".group_0362": ("RepositoryRuleDetailedOneof1Type",), + ".group_0363": ("RepositoryRuleDetailedOneof2Type",), + ".group_0364": ("RepositoryRuleDetailedOneof3Type",), + ".group_0365": ("RepositoryRuleDetailedOneof4Type",), + ".group_0366": ("RepositoryRuleDetailedOneof5Type",), + ".group_0367": ("RepositoryRuleDetailedOneof6Type",), + ".group_0368": ("RepositoryRuleDetailedOneof7Type",), + ".group_0369": ("RepositoryRuleDetailedOneof8Type",), + ".group_0370": ("RepositoryRuleDetailedOneof9Type",), + ".group_0371": ("RepositoryRuleDetailedOneof10Type",), + ".group_0372": ("RepositoryRuleDetailedOneof11Type",), + ".group_0373": ("RepositoryRuleDetailedOneof12Type",), + ".group_0374": ("RepositoryRuleDetailedOneof13Type",), + ".group_0375": ("RepositoryRuleDetailedOneof14Type",), + ".group_0376": ("RepositoryRuleDetailedOneof15Type",), + ".group_0377": ("RepositoryRuleDetailedOneof16Type",), + ".group_0378": ("RepositoryRuleDetailedOneof17Type",), + ".group_0379": ("RepositoryRuleDetailedOneof18Type",), + ".group_0380": ("RepositoryRuleDetailedOneof19Type",), + ".group_0381": ("RepositoryRuleDetailedOneof20Type",), + ".group_0382": ("SecretScanningAlertType",), + ".group_0383": ("SecretScanningLocationType",), + ".group_0384": ("SecretScanningPushProtectionBypassType",), + ".group_0385": ( "SecretScanningScanHistoryType", "SecretScanningScanType", "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", ), - ".group_0384": ( + ".group_0386": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type", ), - ".group_0385": ( + ".group_0387": ( "RepositoryAdvisoryCreateType", "RepositoryAdvisoryCreatePropCreditsItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0386": ( + ".group_0388": ( "PrivateVulnerabilityReportCreateType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0387": ( + ".group_0389": ( "RepositoryAdvisoryUpdateType", "RepositoryAdvisoryUpdatePropCreditsItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0388": ("StargazerType",), - ".group_0389": ("CommitActivityType",), - ".group_0390": ( + ".group_0390": ("StargazerType",), + ".group_0391": ("CommitActivityType",), + ".group_0392": ( "ContributorActivityType", "ContributorActivityPropWeeksItemsType", ), - ".group_0391": ("ParticipationStatsType",), - ".group_0392": ("RepositorySubscriptionType",), - ".group_0393": ( + ".group_0393": ("ParticipationStatsType",), + ".group_0394": ("RepositorySubscriptionType",), + ".group_0395": ( "TagType", "TagPropCommitType", ), - ".group_0394": ("TagProtectionType",), - ".group_0395": ("TopicType",), - ".group_0396": ("TrafficType",), - ".group_0397": ("CloneTrafficType",), - ".group_0398": ("ContentTrafficType",), - ".group_0399": ("ReferrerTrafficType",), - ".group_0400": ("ViewTrafficType",), - ".group_0401": ( + ".group_0396": ("TagProtectionType",), + ".group_0397": ("TopicType",), + ".group_0398": ("TrafficType",), + ".group_0399": ("CloneTrafficType",), + ".group_0400": ("ContentTrafficType",), + ".group_0401": ("ReferrerTrafficType",), + ".group_0402": ("ViewTrafficType",), + ".group_0403": ( "SearchResultTextMatchesItemsType", "SearchResultTextMatchesItemsPropMatchesItemsType", ), - ".group_0402": ( + ".group_0404": ( "CodeSearchResultItemType", "SearchCodeGetResponse200Type", ), - ".group_0403": ( + ".group_0405": ( "CommitSearchResultItemType", "CommitSearchResultItemPropParentsItemsType", "SearchCommitsGetResponse200Type", ), - ".group_0404": ( + ".group_0406": ( "CommitSearchResultItemPropCommitType", "CommitSearchResultItemPropCommitPropAuthorType", "CommitSearchResultItemPropCommitPropTreeType", ), - ".group_0405": ( + ".group_0407": ( "IssueSearchResultItemType", "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropSubIssuesSummaryType", "IssueSearchResultItemPropPullRequestType", "SearchIssuesGetResponse200Type", ), - ".group_0406": ( + ".group_0408": ( "LabelSearchResultItemType", "SearchLabelsGetResponse200Type", ), - ".group_0407": ( + ".group_0409": ( "RepoSearchResultItemType", "RepoSearchResultItemPropPermissionsType", "SearchRepositoriesGetResponse200Type", ), - ".group_0408": ( + ".group_0410": ( "TopicSearchResultItemType", "TopicSearchResultItemPropRelatedItemsType", "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", @@ -10140,49 +10087,49 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", "SearchTopicsGetResponse200Type", ), - ".group_0409": ( + ".group_0411": ( "UserSearchResultItemType", "SearchUsersGetResponse200Type", ), - ".group_0410": ( + ".group_0412": ( "PrivateUserType", "PrivateUserPropPlanType", ), - ".group_0411": ("CodespacesUserPublicKeyType",), - ".group_0412": ("CodespaceExportDetailsType",), - ".group_0413": ( + ".group_0413": ("CodespacesUserPublicKeyType",), + ".group_0414": ("CodespaceExportDetailsType",), + ".group_0415": ( "CodespaceWithFullRepositoryType", "CodespaceWithFullRepositoryPropGitStatusType", "CodespaceWithFullRepositoryPropRuntimeConstraintsType", ), - ".group_0414": ("EmailType",), - ".group_0415": ( + ".group_0416": ("EmailType",), + ".group_0417": ( "GpgKeyType", "GpgKeyPropEmailsItemsType", "GpgKeyPropSubkeysItemsType", "GpgKeyPropSubkeysItemsPropEmailsItemsType", ), - ".group_0416": ("KeyType",), - ".group_0417": ( + ".group_0418": ("KeyType",), + ".group_0419": ( "UserMarketplacePurchaseType", "MarketplaceAccountType", ), - ".group_0418": ("SocialAccountType",), - ".group_0419": ("SshSigningKeyType",), - ".group_0420": ("StarredRepositoryType",), - ".group_0421": ( + ".group_0420": ("SocialAccountType",), + ".group_0421": ("SshSigningKeyType",), + ".group_0422": ("StarredRepositoryType",), + ".group_0423": ( "HovercardType", "HovercardPropContextsItemsType", ), - ".group_0422": ("KeySimpleType",), - ".group_0423": ( + ".group_0424": ("KeySimpleType",), + ".group_0425": ( "BillingUsageReportUserType", "BillingUsageReportUserPropUsageItemsItemsType", ), - ".group_0424": ("EnterpriseWebhooksType",), - ".group_0425": ("SimpleInstallationType",), - ".group_0426": ("OrganizationSimpleWebhooksType",), - ".group_0427": ( + ".group_0426": ("EnterpriseWebhooksType",), + ".group_0427": ("SimpleInstallationType",), + ".group_0428": ("OrganizationSimpleWebhooksType",), + ".group_0429": ( "RepositoryWebhooksType", "RepositoryWebhooksPropPermissionsType", "RepositoryWebhooksPropCustomPropertiesType", @@ -10190,27 +10137,27 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), - ".group_0428": ("WebhooksRuleType",), - ".group_0429": ("SimpleCheckSuiteType",), - ".group_0430": ( + ".group_0430": ("WebhooksRuleType",), + ".group_0431": ("SimpleCheckSuiteType",), + ".group_0432": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0431": ("WebhooksDeployKeyType",), - ".group_0432": ("WebhooksWorkflowType",), - ".group_0433": ( + ".group_0433": ("WebhooksDeployKeyType",), + ".group_0434": ("WebhooksWorkflowType",), + ".group_0435": ( "WebhooksApproverType", "WebhooksReviewersItemsType", "WebhooksReviewersItemsPropReviewerType", ), - ".group_0434": ("WebhooksWorkflowJobRunType",), - ".group_0435": ("WebhooksUserType",), - ".group_0436": ( + ".group_0436": ("WebhooksWorkflowJobRunType",), + ".group_0437": ("WebhooksUserType",), + ".group_0438": ( "WebhooksAnswerType", "WebhooksAnswerPropReactionsType", "WebhooksAnswerPropUserType", ), - ".group_0437": ( + ".group_0439": ( "DiscussionType", "LabelType", "DiscussionPropAnswerChosenByType", @@ -10218,24 +10165,24 @@ "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0438": ( + ".group_0440": ( "WebhooksCommentType", "WebhooksCommentPropReactionsType", "WebhooksCommentPropUserType", ), - ".group_0439": ("WebhooksLabelType",), - ".group_0440": ("WebhooksRepositoriesItemsType",), - ".group_0441": ("WebhooksRepositoriesAddedItemsType",), - ".group_0442": ( + ".group_0441": ("WebhooksLabelType",), + ".group_0442": ("WebhooksRepositoriesItemsType",), + ".group_0443": ("WebhooksRepositoriesAddedItemsType",), + ".group_0444": ( "WebhooksIssueCommentType", "WebhooksIssueCommentPropReactionsType", "WebhooksIssueCommentPropUserType", ), - ".group_0443": ( + ".group_0445": ( "WebhooksChangesType", "WebhooksChangesPropBodyType", ), - ".group_0444": ( + ".group_0446": ( "WebhooksIssueType", "WebhooksIssuePropAssigneeType", "WebhooksIssuePropAssigneesItemsType", @@ -10247,14 +10194,13 @@ "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", "WebhooksIssuePropPullRequestType", "WebhooksIssuePropReactionsType", - "WebhooksIssuePropSubIssuesSummaryType", "WebhooksIssuePropUserType", ), - ".group_0445": ( + ".group_0447": ( "WebhooksMilestoneType", "WebhooksMilestonePropCreatorType", ), - ".group_0446": ( + ".group_0448": ( "WebhooksIssue2Type", "WebhooksIssue2PropAssigneeType", "WebhooksIssue2PropAssigneesItemsType", @@ -10266,34 +10212,33 @@ "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", "WebhooksIssue2PropPullRequestType", "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropSubIssuesSummaryType", "WebhooksIssue2PropUserType", ), - ".group_0447": ("WebhooksUserMannequinType",), - ".group_0448": ( + ".group_0449": ("WebhooksUserMannequinType",), + ".group_0450": ( "WebhooksMarketplacePurchaseType", "WebhooksMarketplacePurchasePropAccountType", "WebhooksMarketplacePurchasePropPlanType", ), - ".group_0449": ( + ".group_0451": ( "WebhooksPreviousMarketplacePurchaseType", "WebhooksPreviousMarketplacePurchasePropAccountType", "WebhooksPreviousMarketplacePurchasePropPlanType", ), - ".group_0450": ( + ".group_0452": ( "WebhooksTeamType", "WebhooksTeamPropParentType", ), - ".group_0451": ("MergeGroupType",), - ".group_0452": ( + ".group_0453": ("MergeGroupType",), + ".group_0454": ( "WebhooksMilestone3Type", "WebhooksMilestone3PropCreatorType", ), - ".group_0453": ( + ".group_0455": ( "WebhooksMembershipType", "WebhooksMembershipPropUserType", ), - ".group_0454": ( + ".group_0456": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -10309,25 +10254,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0455": ( + ".group_0457": ( "WebhooksProjectCardType", "WebhooksProjectCardPropCreatorType", ), - ".group_0456": ( + ".group_0458": ( "WebhooksProjectType", "WebhooksProjectPropCreatorType", ), - ".group_0457": ("WebhooksProjectColumnType",), - ".group_0458": ("ProjectsV2Type",), - ".group_0459": ( + ".group_0459": ("WebhooksProjectColumnType",), + ".group_0460": ("ProjectsV2Type",), + ".group_0461": ( "WebhooksProjectChangesType", "WebhooksProjectChangesPropArchivedAtType", ), - ".group_0460": ("ProjectsV2ItemType",), - ".group_0461": ("ProjectsV2StatusUpdateType",), - ".group_0462": ("PullRequestWebhookType",), - ".group_0463": ("PullRequestWebhookAllof1Type",), - ".group_0464": ( + ".group_0462": ("ProjectsV2ItemType",), + ".group_0463": ("ProjectsV2StatusUpdateType",), + ".group_0464": ("PullRequestWebhookType",), + ".group_0465": ("PullRequestWebhookAllof1Type",), + ".group_0466": ( "WebhooksPullRequest5Type", "WebhooksPullRequest5PropAssigneeType", "WebhooksPullRequest5PropAssigneesItemsType", @@ -10365,7 +10310,7 @@ "WebhooksPullRequest5PropRequestedTeamsItemsType", "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", ), - ".group_0465": ( + ".group_0467": ( "WebhooksReviewCommentType", "WebhooksReviewCommentPropReactionsType", "WebhooksReviewCommentPropUserType", @@ -10374,33 +10319,33 @@ "WebhooksReviewCommentPropLinksPropPullRequestType", "WebhooksReviewCommentPropLinksPropSelfType", ), - ".group_0466": ( + ".group_0468": ( "WebhooksReviewType", "WebhooksReviewPropUserType", "WebhooksReviewPropLinksType", "WebhooksReviewPropLinksPropHtmlType", "WebhooksReviewPropLinksPropPullRequestType", ), - ".group_0467": ( + ".group_0469": ( "WebhooksReleaseType", "WebhooksReleasePropAuthorType", "WebhooksReleasePropReactionsType", "WebhooksReleasePropAssetsItemsType", "WebhooksReleasePropAssetsItemsPropUploaderType", ), - ".group_0468": ( + ".group_0470": ( "WebhooksRelease1Type", "WebhooksRelease1PropAssetsItemsType", "WebhooksRelease1PropAssetsItemsPropUploaderType", "WebhooksRelease1PropAuthorType", "WebhooksRelease1PropReactionsType", ), - ".group_0469": ( + ".group_0471": ( "WebhooksAlertType", "WebhooksAlertPropDismisserType", ), - ".group_0470": ("SecretScanningAlertWebhookType",), - ".group_0471": ( + ".group_0472": ("SecretScanningAlertWebhookType",), + ".group_0473": ( "WebhooksSecurityAdvisoryType", "WebhooksSecurityAdvisoryPropCvssType", "WebhooksSecurityAdvisoryPropCwesItemsType", @@ -10410,27 +10355,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0472": ( + ".group_0474": ( "WebhooksSponsorshipType", "WebhooksSponsorshipPropMaintainerType", "WebhooksSponsorshipPropSponsorType", "WebhooksSponsorshipPropSponsorableType", "WebhooksSponsorshipPropTierType", ), - ".group_0473": ( + ".group_0475": ( "WebhooksChanges8Type", "WebhooksChanges8PropTierType", "WebhooksChanges8PropTierPropFromType", ), - ".group_0474": ( + ".group_0476": ( "WebhooksTeam1Type", "WebhooksTeam1PropParentType", ), - ".group_0475": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0476": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0477": ("WebhookBranchProtectionRuleCreatedType",), - ".group_0478": ("WebhookBranchProtectionRuleDeletedType",), - ".group_0479": ( + ".group_0477": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0478": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0479": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0480": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0481": ( "WebhookBranchProtectionRuleEditedType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", @@ -10445,18 +10390,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0480": ("WebhookCheckRunCompletedType",), - ".group_0481": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0482": ("WebhookCheckRunCreatedType",), - ".group_0483": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0484": ( + ".group_0482": ("WebhookCheckRunCompletedType",), + ".group_0483": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0484": ("WebhookCheckRunCreatedType",), + ".group_0485": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0486": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0485": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0486": ("WebhookCheckRunRerequestedType",), - ".group_0487": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0488": ( + ".group_0487": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0488": ("WebhookCheckRunRerequestedType",), + ".group_0489": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0490": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -10471,7 +10416,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0489": ( + ".group_0491": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -10486,7 +10431,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0490": ( + ".group_0492": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -10501,7 +10446,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0491": ( + ".group_0493": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -10511,7 +10456,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0492": ( + ".group_0494": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -10522,7 +10467,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", ), - ".group_0493": ( + ".group_0495": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -10531,7 +10476,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0494": ( + ".group_0496": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -10541,7 +10486,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0495": ( + ".group_0497": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -10551,7 +10496,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0496": ( + ".group_0498": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -10560,32 +10505,32 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0497": ( + ".group_0499": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0498": ("WebhookCreateType",), - ".group_0499": ("WebhookCustomPropertyCreatedType",), - ".group_0500": ( + ".group_0500": ("WebhookCreateType",), + ".group_0501": ("WebhookCustomPropertyCreatedType",), + ".group_0502": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0501": ("WebhookCustomPropertyPromotedToEnterpriseType",), - ".group_0502": ("WebhookCustomPropertyUpdatedType",), - ".group_0503": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0504": ("WebhookDeleteType",), - ".group_0505": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0506": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0507": ("WebhookDependabotAlertCreatedType",), - ".group_0508": ("WebhookDependabotAlertDismissedType",), - ".group_0509": ("WebhookDependabotAlertFixedType",), - ".group_0510": ("WebhookDependabotAlertReintroducedType",), - ".group_0511": ("WebhookDependabotAlertReopenedType",), - ".group_0512": ("WebhookDeployKeyCreatedType",), - ".group_0513": ("WebhookDeployKeyDeletedType",), - ".group_0514": ( + ".group_0503": ("WebhookCustomPropertyPromotedToEnterpriseType",), + ".group_0504": ("WebhookCustomPropertyUpdatedType",), + ".group_0505": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0506": ("WebhookDeleteType",), + ".group_0507": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0508": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0509": ("WebhookDependabotAlertCreatedType",), + ".group_0510": ("WebhookDependabotAlertDismissedType",), + ".group_0511": ("WebhookDependabotAlertFixedType",), + ".group_0512": ("WebhookDependabotAlertReintroducedType",), + ".group_0513": ("WebhookDependabotAlertReopenedType",), + ".group_0514": ("WebhookDeployKeyCreatedType",), + ".group_0515": ("WebhookDeployKeyDeletedType",), + ".group_0516": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropDeploymentType", "WebhookDeploymentCreatedPropDeploymentPropCreatorType", @@ -10607,8 +10552,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0515": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0516": ( + ".group_0517": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0518": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewApprovedPropWorkflowRunType", @@ -10626,7 +10571,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0517": ( + ".group_0519": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewRejectedPropWorkflowRunType", @@ -10644,7 +10589,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0518": ( + ".group_0520": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", "WebhookDeploymentReviewRequestedPropReviewersItemsType", @@ -10664,7 +10609,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0519": ( + ".group_0521": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropDeploymentType", @@ -10692,119 +10637,116 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0520": ("WebhookDiscussionAnsweredType",), - ".group_0521": ( + ".group_0522": ("WebhookDiscussionAnsweredType",), + ".group_0523": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0522": ("WebhookDiscussionClosedType",), - ".group_0523": ("WebhookDiscussionCommentCreatedType",), - ".group_0524": ("WebhookDiscussionCommentDeletedType",), - ".group_0525": ( + ".group_0524": ("WebhookDiscussionClosedType",), + ".group_0525": ("WebhookDiscussionCommentCreatedType",), + ".group_0526": ("WebhookDiscussionCommentDeletedType",), + ".group_0527": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", ), - ".group_0526": ("WebhookDiscussionCreatedType",), - ".group_0527": ("WebhookDiscussionDeletedType",), - ".group_0528": ( + ".group_0528": ("WebhookDiscussionCreatedType",), + ".group_0529": ("WebhookDiscussionDeletedType",), + ".group_0530": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0529": ("WebhookDiscussionLabeledType",), - ".group_0530": ("WebhookDiscussionLockedType",), - ".group_0531": ("WebhookDiscussionPinnedType",), - ".group_0532": ("WebhookDiscussionReopenedType",), - ".group_0533": ("WebhookDiscussionTransferredType",), - ".group_0534": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0535": ("WebhookDiscussionUnansweredType",), - ".group_0536": ("WebhookDiscussionUnlabeledType",), - ".group_0537": ("WebhookDiscussionUnlockedType",), - ".group_0538": ("WebhookDiscussionUnpinnedType",), - ".group_0539": ("WebhookForkType",), - ".group_0540": ( + ".group_0531": ("WebhookDiscussionLabeledType",), + ".group_0532": ("WebhookDiscussionLockedType",), + ".group_0533": ("WebhookDiscussionPinnedType",), + ".group_0534": ("WebhookDiscussionReopenedType",), + ".group_0535": ("WebhookDiscussionTransferredType",), + ".group_0536": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0537": ("WebhookDiscussionUnansweredType",), + ".group_0538": ("WebhookDiscussionUnlabeledType",), + ".group_0539": ("WebhookDiscussionUnlockedType",), + ".group_0540": ("WebhookDiscussionUnpinnedType",), + ".group_0541": ("WebhookForkType",), + ".group_0542": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0541": ( + ".group_0543": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0542": ("WebhookForkPropForkeeAllof0PropPermissionsType",), - ".group_0543": ( + ".group_0544": ("WebhookForkPropForkeeAllof0PropPermissionsType",), + ".group_0545": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0544": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0545": ( + ".group_0546": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0547": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0546": ("WebhookInstallationCreatedType",), - ".group_0547": ("WebhookInstallationDeletedType",), - ".group_0548": ("WebhookInstallationNewPermissionsAcceptedType",), - ".group_0549": ( + ".group_0548": ("WebhookInstallationCreatedType",), + ".group_0549": ("WebhookInstallationDeletedType",), + ".group_0550": ("WebhookInstallationNewPermissionsAcceptedType",), + ".group_0551": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", ), - ".group_0550": ( + ".group_0552": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ), - ".group_0551": ("WebhookInstallationSuspendType",), - ".group_0552": ( + ".group_0553": ("WebhookInstallationSuspendType",), + ".group_0554": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0553": ("WebhookInstallationUnsuspendType",), - ".group_0554": ("WebhookIssueCommentCreatedType",), - ".group_0555": ( + ".group_0555": ("WebhookInstallationUnsuspendType",), + ".group_0556": ("WebhookIssueCommentCreatedType",), + ".group_0557": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0556": ( + ".group_0558": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0557": ( + ".group_0559": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0558": ( + ".group_0560": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0559": ( + ".group_0561": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0560": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0561": ( + ".group_0562": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0563": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0562": ( + ".group_0564": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0563": ( - "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType", - ), - ".group_0564": ( + ".group_0565": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -10814,41 +10756,38 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0565": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0566": ( + ".group_0566": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0567": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0567": ("WebhookIssueCommentDeletedType",), - ".group_0568": ( + ".group_0568": ("WebhookIssueCommentDeletedType",), + ".group_0569": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0569": ( + ".group_0570": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0570": ( + ".group_0571": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0571": ( + ".group_0572": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0572": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0573": ( + ".group_0573": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0574": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0574": ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", - ), ".group_0575": ( - "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), ".group_0576": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", @@ -10894,9 +10833,6 @@ "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), ".group_0587": ( - "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType", - ), - ".group_0588": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -10906,13 +10842,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0589": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0590": ( + ".group_0588": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0589": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0591": ("WebhookIssuesAssignedType",), - ".group_0592": ("WebhookIssuesClosedType",), - ".group_0593": ( + ".group_0590": ("WebhookIssuesAssignedType",), + ".group_0591": ("WebhookIssuesClosedType",), + ".group_0592": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -10920,7 +10856,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0594": ( + ".group_0593": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -10928,22 +10864,19 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0595": ( + ".group_0594": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0596": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0597": ( + ".group_0595": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0596": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0598": ( + ".group_0597": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), + ".group_0598": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), ".group_0599": ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", - ), - ".group_0600": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -10953,10 +10886,10 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0601": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0602": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0603": ("WebhookIssuesDeletedType",), - ".group_0604": ( + ".group_0600": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0601": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0602": ("WebhookIssuesDeletedType",), + ".group_0603": ( "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", @@ -10968,11 +10901,10 @@ "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesDeletedPropIssuePropPullRequestType", "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0605": ("WebhookIssuesDemilestonedType",), - ".group_0606": ( + ".group_0604": ("WebhookIssuesDemilestonedType",), + ".group_0605": ( "WebhookIssuesDemilestonedPropIssueType", "WebhookIssuesDemilestonedPropIssuePropAssigneeType", "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", @@ -10984,16 +10916,15 @@ "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesDemilestonedPropIssuePropPullRequestType", "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDemilestonedPropIssuePropUserType", ), - ".group_0607": ( + ".group_0606": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropChangesType", "WebhookIssuesEditedPropChangesPropBodyType", "WebhookIssuesEditedPropChangesPropTitleType", ), - ".group_0608": ( + ".group_0607": ( "WebhookIssuesEditedPropIssueType", "WebhookIssuesEditedPropIssuePropAssigneeType", "WebhookIssuesEditedPropIssuePropAssigneesItemsType", @@ -11005,11 +10936,10 @@ "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesEditedPropIssuePropPullRequestType", "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0609": ("WebhookIssuesLabeledType",), - ".group_0610": ( + ".group_0608": ("WebhookIssuesLabeledType",), + ".group_0609": ( "WebhookIssuesLabeledPropIssueType", "WebhookIssuesLabeledPropIssuePropAssigneeType", "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", @@ -11021,11 +10951,10 @@ "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesLabeledPropIssuePropPullRequestType", "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0611": ("WebhookIssuesLockedType",), - ".group_0612": ( + ".group_0610": ("WebhookIssuesLockedType",), + ".group_0611": ( "WebhookIssuesLockedPropIssueType", "WebhookIssuesLockedPropIssuePropAssigneeType", "WebhookIssuesLockedPropIssuePropAssigneesItemsType", @@ -11037,11 +10966,10 @@ "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesLockedPropIssuePropPullRequestType", "WebhookIssuesLockedPropIssuePropReactionsType", - "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0613": ("WebhookIssuesMilestonedType",), - ".group_0614": ( + ".group_0612": ("WebhookIssuesMilestonedType",), + ".group_0613": ( "WebhookIssuesMilestonedPropIssueType", "WebhookIssuesMilestonedPropIssuePropAssigneeType", "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", @@ -11053,11 +10981,10 @@ "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesMilestonedPropIssuePropPullRequestType", "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesMilestonedPropIssuePropUserType", ), - ".group_0615": ("WebhookIssuesOpenedType",), - ".group_0616": ( + ".group_0614": ("WebhookIssuesOpenedType",), + ".group_0615": ( "WebhookIssuesOpenedPropChangesType", "WebhookIssuesOpenedPropChangesPropOldRepositoryType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", @@ -11065,7 +10992,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0617": ( + ".group_0616": ( "WebhookIssuesOpenedPropChangesPropOldIssueType", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", @@ -11077,10 +11004,9 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", ), - ".group_0618": ( + ".group_0617": ( "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", @@ -11092,12 +11018,11 @@ "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesOpenedPropIssuePropPullRequestType", "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropIssuePropUserType", ), - ".group_0619": ("WebhookIssuesPinnedType",), - ".group_0620": ("WebhookIssuesReopenedType",), - ".group_0621": ( + ".group_0618": ("WebhookIssuesPinnedType",), + ".group_0619": ("WebhookIssuesReopenedType",), + ".group_0620": ( "WebhookIssuesReopenedPropIssueType", "WebhookIssuesReopenedPropIssuePropAssigneeType", "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", @@ -11109,11 +11034,10 @@ "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesReopenedPropIssuePropPullRequestType", "WebhookIssuesReopenedPropIssuePropReactionsType", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0622": ("WebhookIssuesTransferredType",), - ".group_0623": ( + ".group_0621": ("WebhookIssuesTransferredType",), + ".group_0622": ( "WebhookIssuesTransferredPropChangesType", "WebhookIssuesTransferredPropChangesPropNewRepositoryType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", @@ -11121,7 +11045,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0624": ( + ".group_0623": ( "WebhookIssuesTransferredPropChangesPropNewIssueType", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", @@ -11133,14 +11057,13 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", ), - ".group_0625": ("WebhookIssuesTypedType",), - ".group_0626": ("WebhookIssuesUnassignedType",), - ".group_0627": ("WebhookIssuesUnlabeledType",), - ".group_0628": ("WebhookIssuesUnlockedType",), - ".group_0629": ( + ".group_0624": ("WebhookIssuesTypedType",), + ".group_0625": ("WebhookIssuesUnassignedType",), + ".group_0626": ("WebhookIssuesUnlabeledType",), + ".group_0627": ("WebhookIssuesUnlockedType",), + ".group_0628": ( "WebhookIssuesUnlockedPropIssueType", "WebhookIssuesUnlockedPropIssuePropAssigneeType", "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", @@ -11152,107 +11075,106 @@ "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", "WebhookIssuesUnlockedPropIssuePropPullRequestType", "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0630": ("WebhookIssuesUnpinnedType",), - ".group_0631": ("WebhookIssuesUntypedType",), - ".group_0632": ("WebhookLabelCreatedType",), - ".group_0633": ("WebhookLabelDeletedType",), - ".group_0634": ( + ".group_0629": ("WebhookIssuesUnpinnedType",), + ".group_0630": ("WebhookIssuesUntypedType",), + ".group_0631": ("WebhookLabelCreatedType",), + ".group_0632": ("WebhookLabelDeletedType",), + ".group_0633": ( "WebhookLabelEditedType", "WebhookLabelEditedPropChangesType", "WebhookLabelEditedPropChangesPropColorType", "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0635": ("WebhookMarketplacePurchaseCancelledType",), - ".group_0636": ( + ".group_0634": ("WebhookMarketplacePurchaseCancelledType",), + ".group_0635": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0637": ( + ".group_0636": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0638": ( + ".group_0637": ( "WebhookMarketplacePurchasePendingChangeCancelledType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ), - ".group_0639": ("WebhookMarketplacePurchasePurchasedType",), - ".group_0640": ( + ".group_0638": ("WebhookMarketplacePurchasePurchasedType",), + ".group_0639": ( "WebhookMemberAddedType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0641": ( + ".group_0640": ( "WebhookMemberEditedType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0642": ("WebhookMemberRemovedType",), - ".group_0643": ( + ".group_0641": ("WebhookMemberRemovedType",), + ".group_0642": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropSenderType", ), - ".group_0644": ( + ".group_0643": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropSenderType", ), - ".group_0645": ("WebhookMergeGroupChecksRequestedType",), - ".group_0646": ("WebhookMergeGroupDestroyedType",), - ".group_0647": ( + ".group_0644": ("WebhookMergeGroupChecksRequestedType",), + ".group_0645": ("WebhookMergeGroupDestroyedType",), + ".group_0646": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0648": ("WebhookMilestoneClosedType",), - ".group_0649": ("WebhookMilestoneCreatedType",), - ".group_0650": ("WebhookMilestoneDeletedType",), - ".group_0651": ( + ".group_0647": ("WebhookMilestoneClosedType",), + ".group_0648": ("WebhookMilestoneCreatedType",), + ".group_0649": ("WebhookMilestoneDeletedType",), + ".group_0650": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", "WebhookMilestoneEditedPropChangesPropDueOnType", "WebhookMilestoneEditedPropChangesPropTitleType", ), - ".group_0652": ("WebhookMilestoneOpenedType",), - ".group_0653": ("WebhookOrgBlockBlockedType",), - ".group_0654": ("WebhookOrgBlockUnblockedType",), - ".group_0655": ("WebhookOrganizationDeletedType",), - ".group_0656": ("WebhookOrganizationMemberAddedType",), - ".group_0657": ( + ".group_0651": ("WebhookMilestoneOpenedType",), + ".group_0652": ("WebhookOrgBlockBlockedType",), + ".group_0653": ("WebhookOrgBlockUnblockedType",), + ".group_0654": ("WebhookOrganizationDeletedType",), + ".group_0655": ("WebhookOrganizationMemberAddedType",), + ".group_0656": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0658": ("WebhookOrganizationMemberRemovedType",), - ".group_0659": ( + ".group_0657": ("WebhookOrganizationMemberRemovedType",), + ".group_0658": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", ), - ".group_0660": ( + ".group_0659": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0661": ("WebhookPackagePublishedType",), - ".group_0662": ( + ".group_0660": ("WebhookPackagePublishedType",), + ".group_0661": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0663": ( + ".group_0662": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -11284,13 +11206,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0664": ("WebhookPackageUpdatedType",), - ".group_0665": ( + ".group_0663": ("WebhookPackageUpdatedType",), + ".group_0664": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0666": ( + ".group_0665": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -11299,75 +11221,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0667": ( + ".group_0666": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0668": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0669": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0670": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0671": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0672": ("WebhookPingType",), - ".group_0673": ( + ".group_0667": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0668": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0669": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0670": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0671": ("WebhookPingType",), + ".group_0672": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0674": ("WebhookPingFormEncodedType",), - ".group_0675": ( + ".group_0673": ("WebhookPingFormEncodedType",), + ".group_0674": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", ), - ".group_0676": ("WebhookProjectCardCreatedType",), - ".group_0677": ( + ".group_0675": ("WebhookProjectCardCreatedType",), + ".group_0676": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0678": ( + ".group_0677": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", ), - ".group_0679": ( + ".group_0678": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0680": ( + ".group_0679": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0681": ( + ".group_0680": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0682": ("WebhookProjectClosedType",), - ".group_0683": ("WebhookProjectColumnCreatedType",), - ".group_0684": ("WebhookProjectColumnDeletedType",), - ".group_0685": ( + ".group_0681": ("WebhookProjectClosedType",), + ".group_0682": ("WebhookProjectColumnCreatedType",), + ".group_0683": ("WebhookProjectColumnDeletedType",), + ".group_0684": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0686": ("WebhookProjectColumnMovedType",), - ".group_0687": ("WebhookProjectCreatedType",), - ".group_0688": ("WebhookProjectDeletedType",), - ".group_0689": ( + ".group_0685": ("WebhookProjectColumnMovedType",), + ".group_0686": ("WebhookProjectCreatedType",), + ".group_0687": ("WebhookProjectDeletedType",), + ".group_0688": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", "WebhookProjectEditedPropChangesPropNameType", ), - ".group_0690": ("WebhookProjectReopenedType",), - ".group_0691": ("WebhookProjectsV2ProjectClosedType",), - ".group_0692": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0693": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0694": ( + ".group_0689": ("WebhookProjectReopenedType",), + ".group_0690": ("WebhookProjectsV2ProjectClosedType",), + ".group_0691": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0692": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0693": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -11375,15 +11297,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0695": ("WebhookProjectsV2ItemArchivedType",), - ".group_0696": ( + ".group_0694": ("WebhookProjectsV2ItemArchivedType",), + ".group_0695": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0697": ("WebhookProjectsV2ItemCreatedType",), - ".group_0698": ("WebhookProjectsV2ItemDeletedType",), - ".group_0699": ( + ".group_0696": ("WebhookProjectsV2ItemCreatedType",), + ".group_0697": ("WebhookProjectsV2ItemDeletedType",), + ".group_0698": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", @@ -11392,16 +11314,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0700": ( + ".group_0699": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0701": ("WebhookProjectsV2ItemRestoredType",), - ".group_0702": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0703": ("WebhookProjectsV2StatusUpdateCreatedType",), - ".group_0704": ("WebhookProjectsV2StatusUpdateDeletedType",), - ".group_0705": ( + ".group_0700": ("WebhookProjectsV2ItemRestoredType",), + ".group_0701": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0702": ("WebhookProjectsV2StatusUpdateCreatedType",), + ".group_0703": ("WebhookProjectsV2StatusUpdateDeletedType",), + ".group_0704": ( "WebhookProjectsV2StatusUpdateEditedType", "WebhookProjectsV2StatusUpdateEditedPropChangesType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", @@ -11409,8 +11331,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", ), - ".group_0706": ("WebhookPublicType",), - ".group_0707": ( + ".group_0705": ("WebhookPublicType",), + ".group_0706": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropPullRequestType", "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", @@ -11449,7 +11371,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0708": ( + ".group_0707": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -11488,7 +11410,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0709": ( + ".group_0708": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -11527,10 +11449,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0710": ("WebhookPullRequestClosedType",), - ".group_0711": ("WebhookPullRequestConvertedToDraftType",), - ".group_0712": ("WebhookPullRequestDemilestonedType",), - ".group_0713": ( + ".group_0709": ("WebhookPullRequestClosedType",), + ".group_0710": ("WebhookPullRequestConvertedToDraftType",), + ".group_0711": ("WebhookPullRequestDemilestonedType",), + ".group_0712": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -11569,7 +11491,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0714": ( + ".group_0713": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -11578,7 +11500,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0715": ( + ".group_0714": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -11617,7 +11539,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0716": ( + ".group_0715": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropPullRequestType", "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", @@ -11656,7 +11578,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0717": ( + ".group_0716": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -11695,11 +11617,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0718": ("WebhookPullRequestMilestonedType",), - ".group_0719": ("WebhookPullRequestOpenedType",), - ".group_0720": ("WebhookPullRequestReadyForReviewType",), - ".group_0721": ("WebhookPullRequestReopenedType",), - ".group_0722": ( + ".group_0717": ("WebhookPullRequestMilestonedType",), + ".group_0718": ("WebhookPullRequestOpenedType",), + ".group_0719": ("WebhookPullRequestReadyForReviewType",), + ".group_0720": ("WebhookPullRequestReopenedType",), + ".group_0721": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -11744,7 +11666,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0723": ( + ".group_0722": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropPullRequestType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", @@ -11782,7 +11704,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0724": ( + ".group_0723": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropPullRequestType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", @@ -11820,7 +11742,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0725": ( + ".group_0724": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -11863,7 +11785,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0726": ( + ".group_0725": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -11903,7 +11825,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0727": ( + ".group_0726": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -11943,7 +11865,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0728": ( + ".group_0727": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -11984,7 +11906,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0729": ( + ".group_0728": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -12024,7 +11946,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0730": ( + ".group_0729": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -12065,7 +11987,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0731": ( + ".group_0730": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropPullRequestType", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", @@ -12103,7 +12025,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0732": ( + ".group_0731": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -12149,7 +12071,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0733": ( + ".group_0732": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -12195,7 +12117,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0734": ( + ".group_0733": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -12234,7 +12156,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0735": ( + ".group_0734": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropPullRequestType", "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", @@ -12273,7 +12195,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0736": ( + ".group_0735": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropPullRequestType", "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", @@ -12312,7 +12234,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0737": ( + ".group_0736": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -12351,7 +12273,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0738": ( + ".group_0737": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -12366,13 +12288,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0739": ("WebhookRegistryPackagePublishedType",), - ".group_0740": ( + ".group_0738": ("WebhookRegistryPackagePublishedType",), + ".group_0739": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0741": ( + ".group_0740": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -12403,13 +12325,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0742": ("WebhookRegistryPackageUpdatedType",), - ".group_0743": ( + ".group_0741": ("WebhookRegistryPackageUpdatedType",), + ".group_0742": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0744": ( + ".group_0743": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -12418,9 +12340,9 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0745": ("WebhookReleaseCreatedType",), - ".group_0746": ("WebhookReleaseDeletedType",), - ".group_0747": ( + ".group_0744": ("WebhookReleaseCreatedType",), + ".group_0745": ("WebhookReleaseDeletedType",), + ".group_0746": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", @@ -12428,7 +12350,7 @@ "WebhookReleaseEditedPropChangesPropTagNameType", "WebhookReleaseEditedPropChangesPropMakeLatestType", ), - ".group_0748": ( + ".group_0747": ( "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", @@ -12436,19 +12358,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthorType", "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0749": ("WebhookReleasePublishedType",), - ".group_0750": ("WebhookReleaseReleasedType",), - ".group_0751": ("WebhookReleaseUnpublishedType",), - ".group_0752": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0753": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0754": ("WebhookRepositoryArchivedType",), - ".group_0755": ("WebhookRepositoryCreatedType",), - ".group_0756": ("WebhookRepositoryDeletedType",), - ".group_0757": ( + ".group_0748": ("WebhookReleasePublishedType",), + ".group_0749": ("WebhookReleaseReleasedType",), + ".group_0750": ("WebhookReleaseUnpublishedType",), + ".group_0751": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0752": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0753": ("WebhookRepositoryArchivedType",), + ".group_0754": ("WebhookRepositoryCreatedType",), + ".group_0755": ("WebhookRepositoryDeletedType",), + ".group_0756": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0758": ( + ".group_0757": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -12456,25 +12378,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0759": ("WebhookRepositoryImportType",), - ".group_0760": ("WebhookRepositoryPrivatizedType",), - ".group_0761": ("WebhookRepositoryPublicizedType",), - ".group_0762": ( + ".group_0758": ("WebhookRepositoryImportType",), + ".group_0759": ("WebhookRepositoryPrivatizedType",), + ".group_0760": ("WebhookRepositoryPublicizedType",), + ".group_0761": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0763": ("WebhookRepositoryRulesetCreatedType",), - ".group_0764": ("WebhookRepositoryRulesetDeletedType",), - ".group_0765": ("WebhookRepositoryRulesetEditedType",), - ".group_0766": ( + ".group_0762": ("WebhookRepositoryRulesetCreatedType",), + ".group_0763": ("WebhookRepositoryRulesetDeletedType",), + ".group_0764": ("WebhookRepositoryRulesetEditedType",), + ".group_0765": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0767": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0768": ( + ".group_0766": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0767": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -12482,15 +12404,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0769": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0770": ( + ".group_0768": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0769": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0771": ( + ".group_0770": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -12498,31 +12420,31 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0772": ("WebhookRepositoryUnarchivedType",), - ".group_0773": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0774": ( + ".group_0771": ("WebhookRepositoryUnarchivedType",), + ".group_0772": ("WebhookRepositoryVulnerabilityAlertCreateType",), + ".group_0773": ( "WebhookRepositoryVulnerabilityAlertDismissType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0775": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0776": ( + ".group_0774": ("WebhookRepositoryVulnerabilityAlertReopenType",), + ".group_0775": ( "WebhookRepositoryVulnerabilityAlertResolveType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0777": ("WebhookSecretScanningAlertCreatedType",), - ".group_0778": ("WebhookSecretScanningAlertLocationCreatedType",), - ".group_0779": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0780": ("WebhookSecretScanningAlertPubliclyLeakedType",), - ".group_0781": ("WebhookSecretScanningAlertReopenedType",), - ".group_0782": ("WebhookSecretScanningAlertResolvedType",), - ".group_0783": ("WebhookSecretScanningAlertValidatedType",), - ".group_0784": ("WebhookSecretScanningScanCompletedType",), - ".group_0785": ("WebhookSecurityAdvisoryPublishedType",), - ".group_0786": ("WebhookSecurityAdvisoryUpdatedType",), - ".group_0787": ("WebhookSecurityAdvisoryWithdrawnType",), - ".group_0788": ( + ".group_0776": ("WebhookSecretScanningAlertCreatedType",), + ".group_0777": ("WebhookSecretScanningAlertLocationCreatedType",), + ".group_0778": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0779": ("WebhookSecretScanningAlertPubliclyLeakedType",), + ".group_0780": ("WebhookSecretScanningAlertReopenedType",), + ".group_0781": ("WebhookSecretScanningAlertResolvedType",), + ".group_0782": ("WebhookSecretScanningAlertValidatedType",), + ".group_0783": ("WebhookSecretScanningScanCompletedType",), + ".group_0784": ("WebhookSecurityAdvisoryPublishedType",), + ".group_0785": ("WebhookSecurityAdvisoryUpdatedType",), + ".group_0786": ("WebhookSecurityAdvisoryWithdrawnType",), + ".group_0787": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", @@ -12532,22 +12454,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0789": ("WebhookSecurityAndAnalysisType",), - ".group_0790": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0791": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0792": ("WebhookSponsorshipCancelledType",), - ".group_0793": ("WebhookSponsorshipCreatedType",), - ".group_0794": ( + ".group_0788": ("WebhookSecurityAndAnalysisType",), + ".group_0789": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0790": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0791": ("WebhookSponsorshipCancelledType",), + ".group_0792": ("WebhookSponsorshipCreatedType",), + ".group_0793": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", ), - ".group_0795": ("WebhookSponsorshipPendingCancellationType",), - ".group_0796": ("WebhookSponsorshipPendingTierChangeType",), - ".group_0797": ("WebhookSponsorshipTierChangedType",), - ".group_0798": ("WebhookStarCreatedType",), - ".group_0799": ("WebhookStarDeletedType",), - ".group_0800": ( + ".group_0794": ("WebhookSponsorshipPendingCancellationType",), + ".group_0795": ("WebhookSponsorshipPendingTierChangeType",), + ".group_0796": ("WebhookSponsorshipTierChangedType",), + ".group_0797": ("WebhookStarCreatedType",), + ".group_0798": ("WebhookStarDeletedType",), + ".group_0799": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -12561,16 +12483,16 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0801": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0802": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0803": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0804": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0805": ("WebhookSubIssuesParentIssueAddedType",), - ".group_0806": ("WebhookSubIssuesParentIssueRemovedType",), - ".group_0807": ("WebhookSubIssuesSubIssueAddedType",), - ".group_0808": ("WebhookSubIssuesSubIssueRemovedType",), - ".group_0809": ("WebhookTeamAddType",), - ".group_0810": ( + ".group_0800": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0801": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0802": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0803": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0804": ("WebhookSubIssuesParentIssueAddedType",), + ".group_0805": ("WebhookSubIssuesParentIssueRemovedType",), + ".group_0806": ("WebhookSubIssuesSubIssueAddedType",), + ".group_0807": ("WebhookSubIssuesSubIssueRemovedType",), + ".group_0808": ("WebhookTeamAddType",), + ".group_0809": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -12578,7 +12500,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ), - ".group_0811": ( + ".group_0810": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -12586,7 +12508,7 @@ "WebhookTeamCreatedPropRepositoryPropOwnerType", "WebhookTeamCreatedPropRepositoryPropPermissionsType", ), - ".group_0812": ( + ".group_0811": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -12594,7 +12516,7 @@ "WebhookTeamDeletedPropRepositoryPropOwnerType", "WebhookTeamDeletedPropRepositoryPropPermissionsType", ), - ".group_0813": ( + ".group_0812": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -12610,7 +12532,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0814": ( + ".group_0813": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -12618,48 +12540,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ), - ".group_0815": ("WebhookWatchStartedType",), - ".group_0816": ( + ".group_0814": ("WebhookWatchStartedType",), + ".group_0815": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0817": ( + ".group_0816": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0818": ( + ".group_0817": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0819": ( + ".group_0818": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0820": ( + ".group_0819": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0821": ( + ".group_0820": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0822": ( + ".group_0821": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0823": ( + ".group_0822": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0824": ( + ".group_0823": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0825": ( + ".group_0824": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowRunType", "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", @@ -12678,7 +12600,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0826": ( + ".group_0825": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowRunType", "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", @@ -12697,7 +12619,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0827": ( + ".group_0826": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowRunType", "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", @@ -12716,292 +12638,292 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0828": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0829": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0830": ("AppHookConfigPatchBodyType",), - ".group_0831": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0832": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0833": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0834": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0835": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0836": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0837": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0838": ("CredentialsRevokePostBodyType",), - ".group_0839": ("EmojisGetResponse200Type",), - ".group_0840": ( + ".group_0827": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0828": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0829": ("AppHookConfigPatchBodyType",), + ".group_0830": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0831": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0832": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0833": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0834": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0835": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0836": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0837": ("CredentialsRevokePostBodyType",), + ".group_0838": ("EmojisGetResponse200Type",), + ".group_0839": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0841": ( + ".group_0840": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0842": ( + ".group_0841": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0843": ( + ".group_0842": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0844": ( + ".group_0843": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0845": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), - ".group_0846": ( + ".group_0844": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), + ".group_0845": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0847": ( + ".group_0846": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0848": ( + ".group_0847": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0849": ("GistsGistIdCommentsPostBodyType",), - ".group_0850": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0851": ("GistsGistIdStarGetResponse404Type",), - ".group_0852": ("InstallationRepositoriesGetResponse200Type",), - ".group_0853": ("MarkdownPostBodyType",), - ".group_0854": ("NotificationsPutBodyType",), - ".group_0855": ("NotificationsPutResponse202Type",), - ".group_0856": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0857": ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",), - ".group_0858": ( + ".group_0848": ("GistsGistIdCommentsPostBodyType",), + ".group_0849": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0850": ("GistsGistIdStarGetResponse404Type",), + ".group_0851": ("InstallationRepositoriesGetResponse200Type",), + ".group_0852": ("MarkdownPostBodyType",), + ".group_0853": ("NotificationsPutBodyType",), + ".group_0854": ("NotificationsPutResponse202Type",), + ".group_0855": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0856": ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",), + ".group_0857": ( "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType", ), - ".group_0859": ("OrgsOrgPatchBodyType",), - ".group_0860": ( + ".group_0858": ("OrgsOrgPatchBodyType",), + ".group_0859": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0861": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), - ".group_0862": ( + ".group_0860": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), + ".group_0861": ( "OrgsOrgActionsHostedRunnersPostBodyType", "OrgsOrgActionsHostedRunnersPostBodyPropImageType", ), - ".group_0863": ( + ".group_0862": ( "OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type", ), - ".group_0864": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), - ".group_0865": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), - ".group_0866": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), - ".group_0867": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), - ".group_0868": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0869": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0870": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0871": ( + ".group_0863": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), + ".group_0864": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), + ".group_0865": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), + ".group_0866": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), + ".group_0867": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0868": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0869": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0870": ( "OrgsOrgActionsRunnerGroupsGetResponse200Type", "RunnerGroupsOrgType", ), - ".group_0872": ("OrgsOrgActionsRunnerGroupsPostBodyType",), - ".group_0873": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), - ".group_0874": ( + ".group_0871": ("OrgsOrgActionsRunnerGroupsPostBodyType",), + ".group_0872": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), + ".group_0873": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type", ), - ".group_0875": ( + ".group_0874": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type", ), - ".group_0876": ( + ".group_0875": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType", ), - ".group_0877": ( + ".group_0876": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0878": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), - ".group_0879": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0880": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0881": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), - ".group_0882": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), - ".group_0883": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0884": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0885": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), - ".group_0886": ( + ".group_0877": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), + ".group_0878": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0879": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0880": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), + ".group_0881": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), + ".group_0882": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0883": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0884": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), + ".group_0885": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_0887": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_0888": ( + ".group_0886": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_0887": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0889": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_0890": ( + ".group_0888": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_0889": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_0891": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_0892": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_0893": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_0894": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_0895": ("OrgsOrgAttestationsBulkListPostBodyType",), - ".group_0896": ( + ".group_0890": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_0891": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_0892": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_0893": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_0894": ("OrgsOrgAttestationsBulkListPostBodyType",), + ".group_0895": ( "OrgsOrgAttestationsBulkListPostResponse200Type", "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", ), - ".group_0897": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type",), - ".group_0898": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type",), - ".group_0899": ( + ".group_0896": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type",), + ".group_0897": ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type",), + ".group_0898": ( "OrgsOrgAttestationsSubjectDigestGetResponse200Type", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_0900": ( + ".group_0899": ( "OrgsOrgCampaignsPostBodyType", "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", ), - ".group_0901": ("OrgsOrgCampaignsCampaignNumberPatchBodyType",), - ".group_0902": ( + ".group_0900": ("OrgsOrgCampaignsCampaignNumberPatchBodyType",), + ".group_0901": ( "OrgsOrgCodeSecurityConfigurationsPostBodyType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0903": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), - ".group_0904": ( + ".group_0902": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), + ".group_0903": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0905": ( + ".group_0904": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0906": ( + ".group_0905": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0907": ( + ".group_0906": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0908": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0909": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0910": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0911": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0912": ( + ".group_0907": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0908": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0909": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0910": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0911": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0913": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0914": ( + ".group_0912": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0913": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0915": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0916": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0917": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0918": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0919": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0920": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0921": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0922": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0923": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0924": ( + ".group_0914": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0915": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0916": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0917": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0918": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0919": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0920": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0921": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0922": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0923": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0925": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0926": ( + ".group_0924": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0925": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0927": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0928": ( + ".group_0926": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0927": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0929": ( + ".group_0928": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0930": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0931": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0932": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0933": ("OrgsOrgInvitationsPostBodyType",), - ".group_0934": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0935": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0936": ("OrgsOrgMigrationsPostBodyType",), - ".group_0937": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0938": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0939": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0940": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0941": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0942": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0943": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0944": ( + ".group_0929": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0930": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0931": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0932": ("OrgsOrgInvitationsPostBodyType",), + ".group_0933": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0934": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0935": ("OrgsOrgMigrationsPostBodyType",), + ".group_0936": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0937": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0938": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0939": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0940": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0941": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0942": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0943": ( "OrgsOrgPrivateRegistriesGetResponse200Type", "OrgPrivateRegistryConfigurationType", ), - ".group_0945": ("OrgsOrgPrivateRegistriesPostBodyType",), - ".group_0946": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), - ".group_0947": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), - ".group_0948": ("OrgsOrgProjectsPostBodyType",), - ".group_0949": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0950": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0951": ( + ".group_0944": ("OrgsOrgPrivateRegistriesPostBodyType",), + ".group_0945": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), + ".group_0946": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), + ".group_0947": ("OrgsOrgProjectsPostBodyType",), + ".group_0948": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0949": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0950": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0952": ("OrgsOrgRulesetsPostBodyType",), - ".group_0953": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0954": ( + ".group_0951": ("OrgsOrgRulesetsPostBodyType",), + ".group_0952": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_0953": ( "OrgsOrgSettingsNetworkConfigurationsGetResponse200Type", "NetworkConfigurationType", ), - ".group_0955": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), - ".group_0956": ( + ".group_0954": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), + ".group_0955": ( "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType", ), - ".group_0957": ("OrgsOrgTeamsPostBodyType",), - ".group_0958": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0959": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0960": ( + ".group_0956": ("OrgsOrgTeamsPostBodyType",), + ".group_0957": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_0958": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_0959": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0961": ( + ".group_0960": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0962": ( + ".group_0961": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0963": ( + ".group_0962": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0964": ( + ".group_0963": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0965": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0966": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0967": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0968": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0969": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0970": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0971": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0972": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0973": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0974": ( + ".group_0964": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_0965": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_0966": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_0967": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_0968": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_0969": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_0970": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_0971": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_0972": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_0973": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0975": ( + ".group_0974": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0976": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0977": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_0978": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_0979": ( + ".group_0975": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_0976": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_0977": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_0978": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_0980": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_0981": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_0982": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_0983": ("ProjectsProjectIdPatchBodyType",), - ".group_0984": ("ProjectsProjectIdPatchResponse403Type",), - ".group_0985": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_0986": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_0987": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_0988": ( + ".group_0979": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_0980": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_0981": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_0982": ("ProjectsProjectIdPatchBodyType",), + ".group_0983": ("ProjectsProjectIdPatchResponse403Type",), + ".group_0984": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_0985": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_0986": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_0987": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", @@ -13011,61 +12933,61 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", ), - ".group_0989": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_0990": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_0991": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_0992": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_0993": ( + ".group_0988": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_0989": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_0990": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_0991": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_0992": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_0994": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_0995": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_0996": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0997": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0998": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0999": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_1000": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_1001": ( + ".group_0993": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_0994": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_0995": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0996": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0997": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0998": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_0999": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_1000": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_1002": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_1003": ( + ".group_1001": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_1002": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_1004": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_1005": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_1006": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_1007": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_1008": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_1009": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_1010": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_1011": ( + ".group_1003": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_1004": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_1005": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_1006": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_1007": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_1008": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_1009": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_1010": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_1012": ( + ".group_1011": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_1013": ( + ".group_1012": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_1014": ( + ".group_1013": ( "ReposOwnerRepoAttestationsPostBodyType", "ReposOwnerRepoAttestationsPostBodyPropBundleType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", ), - ".group_1015": ("ReposOwnerRepoAttestationsPostResponse201Type",), - ".group_1016": ( + ".group_1014": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_1015": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_1017": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_1018": ( + ".group_1016": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_1017": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -13074,362 +12996,362 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_1019": ( + ".group_1018": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_1020": ( + ".group_1019": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_1021": ( + ".group_1020": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_1022": ( + ".group_1021": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_1023": ( + ".group_1022": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_1024": ( + ".group_1023": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType", ), - ".group_1025": ( + ".group_1024": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType", ), - ".group_1026": ( + ".group_1025": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType", ), - ".group_1027": ( + ".group_1026": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_1028": ( + ".group_1027": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_1029": ( + ".group_1028": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_1030": ( + ".group_1029": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType", ), - ".group_1031": ( + ".group_1030": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType", ), - ".group_1032": ( + ".group_1031": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType", ), - ".group_1033": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_1034": ( + ".group_1032": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_1033": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_1035": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_1036": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_1037": ( + ".group_1034": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_1035": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_1036": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_1038": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_1039": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_1040": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_1041": ( + ".group_1037": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_1038": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_1039": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_1040": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_1042": ( + ".group_1041": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_1043": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_1044": ( + ".group_1042": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_1043": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_1045": ( + ".group_1044": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_1046": ( + ".group_1045": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_1047": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_1048": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_1049": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_1050": ( + ".group_1046": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_1047": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_1048": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_1049": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_1051": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_1052": ( + ".group_1050": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_1051": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_1053": ( + ".group_1052": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_1054": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_1055": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_1056": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_1057": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_1058": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_1059": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_1060": ( + ".group_1053": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_1054": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_1055": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_1056": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_1057": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_1058": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_1059": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_1061": ( + ".group_1060": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_1062": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_1063": ( + ".group_1061": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_1062": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_1064": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_1065": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_1066": ( + ".group_1063": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_1064": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_1065": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1067": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1068": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1069": ( + ".group_1066": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_1067": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_1068": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1070": ( + ".group_1069": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1071": ( + ".group_1070": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1072": ( + ".group_1071": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1073": ( + ".group_1072": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1074": ( + ".group_1073": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1075": ( + ".group_1074": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1076": ( + ".group_1075": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1077": ( + ".group_1076": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1078": ( + ".group_1077": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1079": ("ReposOwnerRepoForksPostBodyType",), - ".group_1080": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1081": ( + ".group_1078": ("ReposOwnerRepoForksPostBodyType",), + ".group_1079": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_1080": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1082": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1083": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1084": ( + ".group_1081": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_1082": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_1083": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1085": ( + ".group_1084": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1086": ( + ".group_1085": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1087": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1088": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1089": ("ReposOwnerRepoImportPutBodyType",), - ".group_1090": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1091": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1092": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1093": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1094": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1095": ( + ".group_1086": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_1087": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_1088": ("ReposOwnerRepoImportPutBodyType",), + ".group_1089": ("ReposOwnerRepoImportPatchBodyType",), + ".group_1090": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_1091": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_1092": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_1093": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_1094": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1096": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1097": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1098": ( + ".group_1095": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_1096": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_1097": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1099": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1100": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1101": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1102": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1103": ( + ".group_1098": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_1099": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_1100": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_1101": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_1102": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1104": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1105": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1106": ( + ".group_1103": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_1104": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_1105": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1107": ( + ".group_1106": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1108": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1109": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1110": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), - ".group_1111": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), - ".group_1112": ( + ".group_1107": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1108": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1109": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), + ".group_1110": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), + ".group_1111": ( "ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType", ), - ".group_1113": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1114": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1115": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1116": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1117": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1118": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1119": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1120": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1121": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1122": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1123": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1124": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1125": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1126": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1127": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1128": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1129": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1130": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1131": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1132": ( + ".group_1112": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1113": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1114": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1115": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1116": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1117": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1118": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1119": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1120": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1121": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1122": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1123": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1124": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1125": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1126": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1127": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1128": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1129": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1130": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1131": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1133": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1134": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1135": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1136": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1137": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1138": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1139": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1140": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1141": ( + ".group_1132": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1133": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1134": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1135": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1136": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1137": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1138": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1139": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1140": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1142": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1143": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1144": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1145": ( + ".group_1141": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1142": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1143": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1144": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1146": ( + ".group_1145": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1147": ( + ".group_1146": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1148": ( + ".group_1147": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1149": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1150": ( + ".group_1148": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1149": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1151": ( + ".group_1150": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1152": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1153": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1154": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1155": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1156": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1157": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1158": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1159": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1160": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1161": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1162": ( + ".group_1151": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1152": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1153": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1154": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1155": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1156": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1157": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1158": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1159": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1160": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1161": ( "ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType", ), - ".group_1163": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1164": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1165": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1166": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1167": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1168": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1169": ("TeamsTeamIdPatchBodyType",), - ".group_1170": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1171": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1172": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1173": ( + ".group_1162": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1163": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1164": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1165": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1166": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1167": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1168": ("TeamsTeamIdPatchBodyType",), + ".group_1169": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1170": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1171": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1172": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1174": ( + ".group_1173": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1175": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1176": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1177": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1178": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1179": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1180": ("UserPatchBodyType",), - ".group_1181": ("UserCodespacesGetResponse200Type",), - ".group_1182": ("UserCodespacesPostBodyOneof0Type",), - ".group_1183": ( + ".group_1174": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1175": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1176": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1177": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1178": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1179": ("UserPatchBodyType",), + ".group_1180": ("UserCodespacesGetResponse200Type",), + ".group_1181": ("UserCodespacesPostBodyOneof0Type",), + ".group_1182": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1184": ( + ".group_1183": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1185": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1186": ( + ".group_1184": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1185": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1187": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1188": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1189": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1190": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1191": ("UserEmailVisibilityPatchBodyType",), - ".group_1192": ("UserEmailsPostBodyOneof0Type",), - ".group_1193": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1194": ("UserGpgKeysPostBodyType",), - ".group_1195": ("UserInstallationsGetResponse200Type",), - ".group_1196": ( + ".group_1186": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1187": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1188": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1189": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1190": ("UserEmailVisibilityPatchBodyType",), + ".group_1191": ("UserEmailsPostBodyOneof0Type",), + ".group_1192": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1193": ("UserGpgKeysPostBodyType",), + ".group_1194": ("UserInstallationsGetResponse200Type",), + ".group_1195": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1197": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1198": ("UserKeysPostBodyType",), - ".group_1199": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1200": ("UserMigrationsPostBodyType",), - ".group_1201": ("UserProjectsPostBodyType",), - ".group_1202": ("UserReposPostBodyType",), - ".group_1203": ("UserSocialAccountsPostBodyType",), - ".group_1204": ("UserSocialAccountsDeleteBodyType",), - ".group_1205": ("UserSshSigningKeysPostBodyType",), - ".group_1206": ("UsersUsernameAttestationsBulkListPostBodyType",), - ".group_1207": ( + ".group_1196": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1197": ("UserKeysPostBodyType",), + ".group_1198": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1199": ("UserMigrationsPostBodyType",), + ".group_1200": ("UserProjectsPostBodyType",), + ".group_1201": ("UserReposPostBodyType",), + ".group_1202": ("UserSocialAccountsPostBodyType",), + ".group_1203": ("UserSocialAccountsDeleteBodyType",), + ".group_1204": ("UserSshSigningKeysPostBodyType",), + ".group_1205": ("UsersUsernameAttestationsBulkListPostBodyType",), + ".group_1206": ( "UsersUsernameAttestationsBulkListPostResponse200Type", "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", "UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType", ), - ".group_1208": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",), - ".group_1209": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",), - ".group_1210": ( + ".group_1207": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",), + ".group_1208": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",), + ".group_1209": ( "UsersUsernameAttestationsSubjectDigestGetResponse200Type", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", diff --git a/githubkit/versions/v2022_11_28/types/group_0028.py b/githubkit/versions/v2022_11_28/types/group_0028.py index a06da336c..036d4d245 100644 --- a/githubkit/versions/v2022_11_28/types/group_0028.py +++ b/githubkit/versions/v2022_11_28/types/group_0028.py @@ -95,6 +95,8 @@ class CodeSecurityConfigurationPropCodeScanningOptionsType(TypedDict): Feature options for code scanning """ + allow_advanced: NotRequired[Union[bool, None]] + class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType(TypedDict): """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions diff --git a/githubkit/versions/v2022_11_28/types/group_0029.py b/githubkit/versions/v2022_11_28/types/group_0029.py index 73c7a68ac..be5ad4363 100644 --- a/githubkit/versions/v2022_11_28/types/group_0029.py +++ b/githubkit/versions/v2022_11_28/types/group_0029.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class CodeScanningDefaultSetupOptionsType(TypedDict): - """CodeScanningDefaultSetupOptions +class CodeScanningOptionsType(TypedDict): + """CodeScanningOptions - Feature options for code scanning default setup + Security Configuration feature options for code scanning """ - runner_type: NotRequired[Literal["standard", "labeled", "not_set"]] - runner_label: NotRequired[Union[str, None]] + allow_advanced: NotRequired[Union[bool, None]] -__all__ = ("CodeScanningDefaultSetupOptionsType",) +__all__ = ("CodeScanningOptionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0030.py b/githubkit/versions/v2022_11_28/types/group_0030.py index c520ee68f..73c7a68ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0030.py +++ b/githubkit/versions/v2022_11_28/types/group_0030.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_0028 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_0031.py b/githubkit/versions/v2022_11_28/types/group_0031.py index 2df06fbc7..c520ee68f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0031.py +++ b/githubkit/versions/v2022_11_28/types/group_0031.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_0003 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_0032.py b/githubkit/versions/v2022_11_28/types/group_0032.py index 1b28107f7..2df06fbc7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0032.py +++ b/githubkit/versions/v2022_11_28/types/group_0032.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_0031 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_0033.py b/githubkit/versions/v2022_11_28/types/group_0033.py index 9ef70e81a..8d5ce96e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0033.py +++ b/githubkit/versions/v2022_11_28/types/group_0033.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_0032 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_0034.py b/githubkit/versions/v2022_11_28/types/group_0034.py index ecc6fb45d..9ef70e81a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0034.py +++ b/githubkit/versions/v2022_11_28/types/group_0034.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0033 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_0035.py b/githubkit/versions/v2022_11_28/types/group_0035.py index 572c3c187..6805aed63 100644 --- a/githubkit/versions/v2022_11_28/types/group_0035.py +++ b/githubkit/versions/v2022_11_28/types/group_0035.py @@ -9,81 +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_0002 import SecurityAdvisoryEpssType -from .group_0034 import DependabotAlertSecurityVulnerabilityType +from .group_0034 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]] - 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] + 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_0036.py b/githubkit/versions/v2022_11_28/types/group_0036.py index 93f3cf3d2..691b01fcb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0036.py +++ b/githubkit/versions/v2022_11_28/types/group_0036.py @@ -13,40 +13,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -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 +from .group_0001 import CvssSeveritiesType +from .group_0002 import SecurityAdvisoryEpssType +from .group_0035 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_0037.py b/githubkit/versions/v2022_11_28/types/group_0037.py index 2a1557e85..abe53a0ed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0037.py +++ b/githubkit/versions/v2022_11_28/types/group_0037.py @@ -9,24 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0033 import DependabotAlertPackageType +from .group_0003 import SimpleUserType +from .group_0032 import SimpleRepositoryType +from .group_0035 import DependabotAlertSecurityVulnerabilityType +from .group_0036 import DependabotAlertSecurityAdvisoryType +from .group_0038 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"]]] - relationship: NotRequired[ - Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]] + 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__ = ("DependabotAlertWithRepositoryPropDependencyType",) +__all__ = ("DependabotAlertWithRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0038.py b/githubkit/versions/v2022_11_28/types/group_0038.py index b50ccb144..619ff75db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0038.py +++ b/githubkit/versions/v2022_11_28/types/group_0038.py @@ -9,101 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0034 import DependabotAlertPackageType -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str - - -class SecretScanningLocationPullRequestReviewType(TypedDict): - """SecretScanningLocationPullRequestReview +class DependabotAlertWithRepositoryPropDependencyType(TypedDict): + """DependabotAlertWithRepositoryPropDependency - 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. + Details for the vulnerable dependency. """ - pull_request_review_url: str + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] + relationship: NotRequired[ + Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]] + ] -__all__ = ( - "SecretScanningLocationCommitType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationWikiCommitType", -) +__all__ = ("DependabotAlertWithRepositoryPropDependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0039.py b/githubkit/versions/v2022_11_28/types/group_0039.py index f78b830c8..b50ccb144 100644 --- a/githubkit/versions/v2022_11_28/types/group_0039.py +++ b/githubkit/versions/v2022_11_28/types/group_0039.py @@ -12,50 +12,98 @@ from typing_extensions import TypedDict -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. """ - issue_title_url: str + 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 SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. """ - issue_comment_url: str + 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 SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody - 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. + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. """ - pull_request_title_url: str + issue_body_url: str -class SecretScanningLocationPullRequestReviewCommentType(TypedDict): - """SecretScanningLocationPullRequestReviewComment +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle - 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. + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. """ - pull_request_review_comment_url: str + discussion_title_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str __all__ = ( - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationPullRequestReviewCommentType", - "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationCommitType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationWikiCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0040.py b/githubkit/versions/v2022_11_28/types/group_0040.py index fad48635c..f78b830c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0040.py +++ b/githubkit/versions/v2022_11_28/types/group_0040.py @@ -12,27 +12,50 @@ from typing_extensions import TypedDict -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. """ - discussion_body_url: str + issue_title_url: str -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment - 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. + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. """ - pull_request_comment_url: str + issue_comment_url: str + + +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str __all__ = ( - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationPullRequestCommentType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationPullRequestReviewCommentType", + "SecretScanningLocationPullRequestTitleType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0041.py b/githubkit/versions/v2022_11_28/types/group_0041.py index b8941504e..fad48635c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0041.py +++ b/githubkit/versions/v2022_11_28/types/group_0041.py @@ -9,83 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0031 import SimpleRepositoryType -from .group_0038 import ( - SecretScanningLocationCommitType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationWikiCommitType, -) -from .group_0039 import ( - SecretScanningLocationIssueCommentType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationPullRequestReviewCommentType, - SecretScanningLocationPullRequestTitleType, -) -from .group_0040 import ( - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationPullRequestCommentType, -) +class 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 OrganizationSecretScanningAlertType(TypedDict): - """OrganizationSecretScanningAlert""" + discussion_body_url: str - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - repository: NotRequired[SimpleRepositoryType] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - resolution_comment: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - is_base64_encoded: NotRequired[Union[bool, None]] - first_location_detected: NotRequired[ - Union[ - None, - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - has_more_locations: NotRequired[bool] +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment -__all__ = ("OrganizationSecretScanningAlertType",) + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str + + +__all__ = ( + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationPullRequestCommentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0042.py b/githubkit/versions/v2022_11_28/types/group_0042.py index 1bd13ab39..5a92bccd0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0042.py +++ b/githubkit/versions/v2022_11_28/types/group_0042.py @@ -11,33 +11,81 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0032 import SimpleRepositoryType +from .group_0039 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0040 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0041 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -class MilestoneType(TypedDict): - """Milestone +class OrganizationSecretScanningAlertType(TypedDict): + """OrganizationSecretScanningAlert""" - A collection of related issues and pull requests. - """ + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + repository: NotRequired[SimpleRepositoryType] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + resolution_comment: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + is_base64_encoded: NotRequired[Union[bool, None]] + first_location_detected: NotRequired[ + Union[ + None, + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + has_more_locations: NotRequired[bool] - url: str - html_url: str - labels_url: str - id: int - node_id: str - number: int - state: Literal["open", "closed"] - title: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - open_issues: int - closed_issues: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - due_on: Union[datetime, None] - -__all__ = ("MilestoneType",) +__all__ = ("OrganizationSecretScanningAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0043.py b/githubkit/versions/v2022_11_28/types/group_0043.py index a99164b42..1bd13ab39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0043.py +++ b/githubkit/versions/v2022_11_28/types/group_0043.py @@ -11,30 +11,33 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class IssueTypeType(TypedDict): - """Issue Type - The type of issue. +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 - name: str + number: int + state: Literal["open", "closed"] + title: str description: Union[str, None] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - is_enabled: NotRequired[bool] - - -__all__ = ("IssueTypeType",) + 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_0044.py b/githubkit/versions/v2022_11_28/types/group_0044.py index 8a6080a74..a99164b42 100644 --- a/githubkit/versions/v2022_11_28/types/group_0044.py +++ b/githubkit/versions/v2022_11_28/types/group_0044.py @@ -9,22 +9,32 @@ 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 datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class IssueTypeType(TypedDict): + """Issue Type + + The type of issue. + """ + + id: int + node_id: str + name: str + description: Union[str, None] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + is_enabled: NotRequired[bool] + + +__all__ = ("IssueTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0045.py b/githubkit/versions/v2022_11_28/types/group_0045.py index 2eff7eea1..8a6080a74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0045.py +++ b/githubkit/versions/v2022_11_28/types/group_0045.py @@ -9,107 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0020 import RepositoryType -from .group_0042 import MilestoneType -from .group_0043 import IssueTypeType -from .group_0044 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", "duplicate"]] - ] - title: str - body: NotRequired[Union[str, None]] - user: Union[None, SimpleUserType] - labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - milestone: Union[None, MilestoneType] - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - comments: int - pull_request: NotRequired[IssuePropPullRequestType] - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - draft: NotRequired[bool] - closed_by: NotRequired[Union[None, SimpleUserType]] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - repository: NotRequired[RepositoryType] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - sub_issues_summary: NotRequired[SubIssuesSummaryType] - - -class SubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class IssuePropLabelsItemsOneof1Type(TypedDict): - """IssuePropLabelsItemsOneof1""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - default: NotRequired[bool] - - -class IssuePropPullRequestType(TypedDict): - """IssuePropPullRequest""" - - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] - - -__all__ = ( - "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_0046.py b/githubkit/versions/v2022_11_28/types/group_0046.py index 7bb30bcd6..3538ffdb9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0046.py +++ b/githubkit/versions/v2022_11_28/types/group_0046.py @@ -9,44 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0044 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",) +from typing_extensions import TypedDict + + +class SubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +__all__ = ("SubIssuesSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0047.py b/githubkit/versions/v2022_11_28/types/group_0047.py index 897ccf926..a8c990e2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0047.py +++ b/githubkit/versions/v2022_11_28/types/group_0047.py @@ -10,75 +10,98 @@ 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_0045 import IssueType -from .group_0046 import IssueCommentType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0043 import MilestoneType +from .group_0044 import IssueTypeType +from .group_0045 import ReactionRollupType +from .group_0046 import SubIssuesSummaryType -class EventPropPayloadType(TypedDict): - """EventPropPayload""" +class IssueType(TypedDict): + """Issue - 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 + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ 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 + node_id: str url: str + repository_url: str + labels_url: str + comments_url: str + events_url: str + html_url: str + number: int + state: str + state_reason: NotRequired[ + Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] + ] + title: str + body: NotRequired[Union[str, None]] + user: Union[None, SimpleUserType] + labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + milestone: Union[None, MilestoneType] + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + comments: int + pull_request: NotRequired[IssuePropPullRequestType] + closed_at: Union[datetime, None] + created_at: datetime + updated_at: datetime + draft: NotRequired[bool] + closed_by: NotRequired[Union[None, SimpleUserType]] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + repository: NotRequired[RepositoryType] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + reactions: NotRequired[ReactionRollupType] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + + +class 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__ = ( - "ActorType", - "EventPropPayloadPropPagesItemsType", - "EventPropPayloadType", - "EventPropRepoType", - "EventType", + "IssuePropLabelsItemsOneof1Type", + "IssuePropPullRequestType", + "IssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0048.py b/githubkit/versions/v2022_11_28/types/group_0048.py index b0afe5713..0edf0315b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0048.py +++ b/githubkit/versions/v2022_11_28/types/group_0048.py @@ -9,55 +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_0010 import IntegrationType +from .group_0045 import ReactionRollupType -class FeedType(TypedDict): - """Feed - Feed - """ +class IssueCommentType(TypedDict): + """Issue Comment - 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 + Comments provide a way for people to collaborate on an issue. """ - href: str - type: str - - -__all__ = ( - "FeedPropLinksType", - "FeedType", - "LinkWithTypeType", -) + 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",) diff --git a/githubkit/versions/v2022_11_28/types/group_0049.py b/githubkit/versions/v2022_11_28/types/group_0049.py index 0b66a8534..60c95bf0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0049.py +++ b/githubkit/versions/v2022_11_28/types/group_0049.py @@ -10,47 +10,75 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0047 import IssueType +from .group_0048 import IssueCommentType -class BaseGistType(TypedDict): - """Base Gist +class EventPropPayloadType(TypedDict): + """EventPropPayload""" - Base Gist + 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 """ - 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 + type: Union[str, None] + actor: ActorType + repo: EventPropRepoType + org: NotRequired[ActorType] + payload: EventPropPayloadType public: bool - created_at: datetime - updated_at: datetime - description: Union[str, None] - comments: int - comments_enabled: NotRequired[bool] - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - forks: NotRequired[list[Any]] - history: NotRequired[list[Any]] - - -BaseGistPropFilesType: TypeAlias = dict[str, Any] -"""BaseGistPropFiles -""" + 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__ = ( - "BaseGistPropFilesType", - "BaseGistType", + "ActorType", + "EventPropPayloadPropPagesItemsType", + "EventPropPayloadType", + "EventPropRepoType", + "EventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0050.py b/githubkit/versions/v2022_11_28/types/group_0050.py index 7969063ff..b0afe5713 100644 --- a/githubkit/versions/v2022_11_28/types/group_0050.py +++ b/githubkit/versions/v2022_11_28/types/group_0050.py @@ -9,71 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class FeedType(TypedDict): + """Feed -class GistHistoryType(TypedDict): - """Gist History - - Gist History + Feed """ - 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 + 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: 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 -""" + href: str + type: str __all__ = ( - "GistHistoryPropChangeStatusType", - "GistHistoryType", - "GistSimplePropForkOfPropFilesType", - "GistSimplePropForkOfType", + "FeedPropLinksType", + "FeedType", + "LinkWithTypeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0051.py b/githubkit/versions/v2022_11_28/types/group_0051.py index fb7c39806..0b66a8534 100644 --- a/githubkit/versions/v2022_11_28/types/group_0051.py +++ b/githubkit/versions/v2022_11_28/types/group_0051.py @@ -14,115 +14,43 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0050 import GistHistoryType, GistSimplePropForkOfType -class GistSimpleType(TypedDict): - """Gist Simple +class BaseGistType(TypedDict): + """Base Gist - Gist Simple + Base Gist """ - 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 + 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: BaseGistPropFilesType + 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[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 +BaseGistPropFilesType: TypeAlias = dict[str, Any] +"""BaseGistPropFiles +""" __all__ = ( - "GistSimplePropFilesType", - "GistSimplePropForksItemsType", - "GistSimpleType", - "PublicUserPropPlanType", - "PublicUserType", + "BaseGistPropFilesType", + "BaseGistType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0052.py b/githubkit/versions/v2022_11_28/types/group_0052.py index d69692063..7969063ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0052.py +++ b/githubkit/versions/v2022_11_28/types/group_0052.py @@ -10,35 +10,70 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -class GistCommentType(TypedDict): - """Gist Comment +class GistHistoryType(TypedDict): + """Gist History - A comment made to a 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 """ - id: int - node_id: str url: str - body: str - user: Union[None, SimpleUserType] + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: GistSimplePropForkOfPropFilesType + public: bool created_at: datetime updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - - -__all__ = ("GistCommentType",) + description: Union[str, None] + comments: int + comments_enabled: NotRequired[bool] + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[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/v2022_11_28/types/group_0053.py b/githubkit/versions/v2022_11_28/types/group_0053.py index a6cb34469..24490ba72 100644 --- a/githubkit/versions/v2022_11_28/types/group_0053.py +++ b/githubkit/versions/v2022_11_28/types/group_0053.py @@ -10,34 +10,119 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType +from .group_0052 import GistHistoryType, GistSimplePropForkOfType -class GistCommitType(TypedDict): - """Gist Commit +class GistSimpleType(TypedDict): + """Gist Simple - Gist Commit + 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 - version: str - user: Union[None, SimpleUserType] - change_status: GistCommitPropChangeStatusType - committed_at: datetime + 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 GistCommitPropChangeStatusType(TypedDict): - """GistCommitPropChangeStatus""" +class PublicUserPropPlanType(TypedDict): + """PublicUserPropPlan""" - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] + collaborators: int + name: str + space: int + private_repos: int __all__ = ( - "GistCommitPropChangeStatusType", - "GistCommitType", + "GistSimplePropFilesType", + "GistSimplePropForksItemsType", + "GistSimpleType", + "PublicUserPropPlanType", + "PublicUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0054.py b/githubkit/versions/v2022_11_28/types/group_0054.py index 69bf98302..d69692063 100644 --- a/githubkit/versions/v2022_11_28/types/group_0054.py +++ b/githubkit/versions/v2022_11_28/types/group_0054.py @@ -9,17 +9,36 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class GitignoreTemplateType(TypedDict): - """Gitignore Template - Gitignore Template - """ - - name: str - source: str +class GistCommentType(TypedDict): + """Gist Comment + A comment made to a gist. + """ -__all__ = ("GitignoreTemplateType",) + 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", + ] + + +__all__ = ("GistCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0055.py b/githubkit/versions/v2022_11_28/types/group_0055.py index f471d8c73..a6cb34469 100644 --- a/githubkit/versions/v2022_11_28/types/group_0055.py +++ b/githubkit/versions/v2022_11_28/types/group_0055.py @@ -9,29 +9,35 @@ 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 -class LicenseType(TypedDict): - """License - License +class GistCommitType(TypedDict): + """Gist Commit + + Gist Commit """ - 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",) + 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__ = ( + "GistCommitPropChangeStatusType", + "GistCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0056.py b/githubkit/versions/v2022_11_28/types/group_0056.py index 59d9a8af7..69bf98302 100644 --- a/githubkit/versions/v2022_11_28/types/group_0056.py +++ b/githubkit/versions/v2022_11_28/types/group_0056.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -class MarketplaceListingPlanType(TypedDict): - """Marketplace Listing Plan +class GitignoreTemplateType(TypedDict): + """Gitignore Template - Marketplace Listing Plan + Gitignore Template """ - 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] + source: str -__all__ = ("MarketplaceListingPlanType",) +__all__ = ("GitignoreTemplateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0057.py b/githubkit/versions/v2022_11_28/types/group_0057.py index e69ac01bb..f471d8c73 100644 --- a/githubkit/versions/v2022_11_28/types/group_0057.py +++ b/githubkit/versions/v2022_11_28/types/group_0057.py @@ -10,30 +10,28 @@ from __future__ import annotations from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0058 import ( - MarketplacePurchasePropMarketplacePendingChangeType, - MarketplacePurchasePropMarketplacePurchaseType, -) +class LicenseType(TypedDict): + """License -class MarketplacePurchaseType(TypedDict): - """Marketplace Purchase - - Marketplace Purchase + License """ - 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",) + 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/v2022_11_28/types/group_0058.py b/githubkit/versions/v2022_11_28/types/group_0058.py index 27fcf1ac9..59d9a8af7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0058.py +++ b/githubkit/versions/v2022_11_28/types/group_0058.py @@ -9,36 +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_0056 import MarketplaceListingPlanType +class MarketplaceListingPlanType(TypedDict): + """Marketplace Listing Plan -class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): - """MarketplacePurchasePropMarketplacePendingChange""" + Marketplace Listing Plan + """ - is_installed: NotRequired[bool] - effective_date: NotRequired[str] - unit_count: NotRequired[Union[int, None]] - id: NotRequired[int] - plan: NotRequired[MarketplaceListingPlanType] + 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] -class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: NotRequired[str] - next_billing_date: NotRequired[Union[str, None]] - is_installed: NotRequired[bool] - unit_count: NotRequired[Union[int, None]] - on_free_trial: NotRequired[bool] - free_trial_ends_on: NotRequired[Union[str, None]] - updated_at: NotRequired[str] - plan: NotRequired[MarketplaceListingPlanType] - - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChangeType", - "MarketplacePurchasePropMarketplacePurchaseType", -) +__all__ = ("MarketplaceListingPlanType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0059.py b/githubkit/versions/v2022_11_28/types/group_0059.py index d0e33aad3..85fac67cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0059.py +++ b/githubkit/versions/v2022_11_28/types/group_0059.py @@ -9,75 +9,31 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0060 import ( + MarketplacePurchasePropMarketplacePendingChangeType, + MarketplacePurchasePropMarketplacePurchaseType, +) -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""" - - sha256_rsa: NotRequired[str] - sha256_dsa: NotRequired[str] - sha256_ecdsa: NotRequired[str] - sha256_ed25519: NotRequired[str] +class MarketplacePurchaseType(TypedDict): + """Marketplace Purchase -class ApiOverviewPropDomainsType(TypedDict): - """ApiOverviewPropDomains""" + Marketplace Purchase + """ - 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 + 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 -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__ = ("MarketplacePurchaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0060.py b/githubkit/versions/v2022_11_28/types/group_0060.py index 978532cb5..ceb6d9dce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0060.py +++ b/githubkit/versions/v2022_11_28/types/group_0060.py @@ -9,82 +9,36 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0058 import MarketplaceListingPlanType -class SecurityAndAnalysisType(TypedDict): - """SecurityAndAnalysis""" - advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] - code_security: NotRequired[SecurityAndAnalysisPropCodeSecurityType] - dependabot_security_updates: NotRequired[ - SecurityAndAnalysisPropDependabotSecurityUpdatesType - ] - secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] - secret_scanning_push_protection: NotRequired[ - SecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - SecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - secret_scanning_ai_detection: NotRequired[ - SecurityAndAnalysisPropSecretScanningAiDetectionType - ] +class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): + """MarketplacePurchasePropMarketplacePendingChange""" + is_installed: NotRequired[bool] + effective_date: NotRequired[str] + unit_count: NotRequired[Union[int, None]] + id: NotRequired[int] + plan: NotRequired[MarketplaceListingPlanType] -class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """SecurityAndAnalysisPropAdvancedSecurity""" - status: NotRequired[Literal["enabled", "disabled"]] +class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): + """MarketplacePurchasePropMarketplacePurchase""" - -class SecurityAndAnalysisPropCodeSecurityType(TypedDict): - """SecurityAndAnalysisPropCodeSecurity""" - - 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"]] + 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__ = ( - "SecurityAndAnalysisPropAdvancedSecurityType", - "SecurityAndAnalysisPropCodeSecurityType", - "SecurityAndAnalysisPropDependabotSecurityUpdatesType", - "SecurityAndAnalysisPropSecretScanningAiDetectionType", - "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "SecurityAndAnalysisPropSecretScanningPushProtectionType", - "SecurityAndAnalysisPropSecretScanningType", - "SecurityAndAnalysisType", + "MarketplacePurchasePropMarketplacePendingChangeType", + "MarketplacePurchasePropMarketplacePurchaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0061.py b/githubkit/versions/v2022_11_28/types/group_0061.py index 0af881666..d0e33aad3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0061.py +++ b/githubkit/versions/v2022_11_28/types/group_0061.py @@ -9,156 +9,75 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0060 import SecurityAndAnalysisType +class ApiOverviewType(TypedDict): + """Api Overview -class MinimalRepositoryType(TypedDict): - """Minimal Repository - - Minimal Repository + Api Overview """ - 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]] - custom_properties: NotRequired[MinimalRepositoryPropCustomPropertiesType] - - -class CodeOfConductType(TypedDict): - """Code Of Conduct - - Code Of Conduct - """ + 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] - key: str - name: str - url: str - body: NotRequired[str] - html_url: Union[str, None] +class ApiOverviewPropSshKeyFingerprintsType(TypedDict): + """ApiOverviewPropSshKeyFingerprints""" -class MinimalRepositoryPropPermissionsType(TypedDict): - """MinimalRepositoryPropPermissions""" + sha256_rsa: NotRequired[str] + sha256_dsa: NotRequired[str] + sha256_ecdsa: NotRequired[str] + sha256_ed25519: NotRequired[str] - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] +class ApiOverviewPropDomainsType(TypedDict): + """ApiOverviewPropDomains""" -class MinimalRepositoryPropLicenseType(TypedDict): - """MinimalRepositoryPropLicense""" + 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 + ] - key: NotRequired[str] - name: NotRequired[str] - spdx_id: NotRequired[str] - url: NotRequired[str] - node_id: NotRequired[str] +class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): + """ApiOverviewPropDomainsPropActionsInbound""" -MinimalRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""MinimalRepositoryPropCustomProperties + full_domains: NotRequired[list[str]] + wildcard_domains: NotRequired[list[str]] -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 ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): + """ApiOverviewPropDomainsPropArtifactAttestations""" + + trust_domain: NotRequired[str] + services: NotRequired[list[str]] __all__ = ( - "CodeOfConductType", - "MinimalRepositoryPropCustomPropertiesType", - "MinimalRepositoryPropLicenseType", - "MinimalRepositoryPropPermissionsType", - "MinimalRepositoryType", + "ApiOverviewPropDomainsPropActionsInboundType", + "ApiOverviewPropDomainsPropArtifactAttestationsType", + "ApiOverviewPropDomainsType", + "ApiOverviewPropSshKeyFingerprintsType", + "ApiOverviewType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0062.py b/githubkit/versions/v2022_11_28/types/group_0062.py index d65ecdbf2..767b87c4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0062.py +++ b/githubkit/versions/v2022_11_28/types/group_0062.py @@ -9,39 +9,88 @@ 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_0061 import MinimalRepositoryType +class SecurityAndAnalysisType(TypedDict): + """SecurityAndAnalysis""" -class ThreadType(TypedDict): - """Thread + advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] + code_security: NotRequired[SecurityAndAnalysisPropCodeSecurityType] + dependabot_security_updates: NotRequired[ + SecurityAndAnalysisPropDependabotSecurityUpdatesType + ] + secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] + secret_scanning_push_protection: NotRequired[ + SecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_ai_detection: NotRequired[ + SecurityAndAnalysisPropSecretScanningAiDetectionType + ] - Thread + +class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """SecurityAndAnalysisPropAdvancedSecurity + + Enable or disable GitHub Advanced Security for the repository. + + For standalone Code Scanning or Secret Protection products, this parameter + cannot be used. + """ + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropCodeSecurityType(TypedDict): + """SecurityAndAnalysisPropCodeSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - id: str - repository: MinimalRepositoryType - subject: ThreadPropSubjectType - reason: str - unread: bool - updated_at: str - last_read_at: Union[str, None] - url: str - subscription_url: str + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningType(TypedDict): + """SecurityAndAnalysisPropSecretScanning""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: NotRequired[Literal["enabled", "disabled"]] -class ThreadPropSubjectType(TypedDict): - """ThreadPropSubject""" +class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningAiDetection""" - title: str - url: str - latest_comment_url: str - type: str + status: NotRequired[Literal["enabled", "disabled"]] __all__ = ( - "ThreadPropSubjectType", - "ThreadType", + "SecurityAndAnalysisPropAdvancedSecurityType", + "SecurityAndAnalysisPropCodeSecurityType", + "SecurityAndAnalysisPropDependabotSecurityUpdatesType", + "SecurityAndAnalysisPropSecretScanningAiDetectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningType", + "SecurityAndAnalysisType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0063.py b/githubkit/versions/v2022_11_28/types/group_0063.py index f0966921a..d92154985 100644 --- a/githubkit/versions/v2022_11_28/types/group_0063.py +++ b/githubkit/versions/v2022_11_28/types/group_0063.py @@ -10,23 +10,155 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0062 import SecurityAndAnalysisType -class ThreadSubscriptionType(TypedDict): - """Thread Subscription - Thread Subscription +class MinimalRepositoryType(TypedDict): + """Minimal Repository + + Minimal Repository """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: Union[datetime, 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 - thread_url: NotRequired[str] - repository_url: NotRequired[str] + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: NotRequired[str] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: NotRequired[str] + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: NotRequired[str] + mirror_url: NotRequired[Union[str, None]] + hooks_url: str + svn_url: NotRequired[str] + homepage: NotRequired[Union[str, None]] + language: NotRequired[Union[str, None]] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + has_discussions: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[Union[datetime, None]] + created_at: NotRequired[Union[datetime, None]] + updated_at: NotRequired[Union[datetime, None]] + permissions: NotRequired[MinimalRepositoryPropPermissionsType] + role_name: NotRequired[str] + temp_clone_token: NotRequired[Union[str, None]] + delete_branch_on_merge: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + code_of_conduct: NotRequired[CodeOfConductType] + license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] + forks: NotRequired[int] + open_issues: NotRequired[int] + watchers: NotRequired[int] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[MinimalRepositoryPropCustomPropertiesType] + + +class CodeOfConductType(TypedDict): + """Code Of Conduct + + Code Of Conduct + """ + + key: str + name: str + url: str + body: NotRequired[str] + html_url: Union[str, None] + + +class MinimalRepositoryPropPermissionsType(TypedDict): + """MinimalRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] + + +class MinimalRepositoryPropLicenseType(TypedDict): + """MinimalRepositoryPropLicense""" + + key: NotRequired[str] + name: NotRequired[str] + spdx_id: NotRequired[str] + url: NotRequired[str] + node_id: NotRequired[str] + + +MinimalRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""MinimalRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -__all__ = ("ThreadSubscriptionType",) +__all__ = ( + "CodeOfConductType", + "MinimalRepositoryPropCustomPropertiesType", + "MinimalRepositoryPropLicenseType", + "MinimalRepositoryPropPermissionsType", + "MinimalRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0064.py b/githubkit/versions/v2022_11_28/types/group_0064.py index 4b96a4953..30fba65cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0064.py +++ b/githubkit/versions/v2022_11_28/types/group_0064.py @@ -12,25 +12,36 @@ from typing import Union from typing_extensions import TypedDict +from .group_0063 import MinimalRepositoryType -class OrganizationSimpleType(TypedDict): - """Organization Simple - A GitHub organization. +class ThreadType(TypedDict): + """Thread + + Thread """ - login: str - id: int - node_id: str + id: str + repository: MinimalRepositoryType + subject: ThreadPropSubjectType + reason: str + unread: bool + updated_at: str + last_read_at: Union[str, None] + url: str + subscription_url: str + + +class ThreadPropSubjectType(TypedDict): + """ThreadPropSubject""" + + title: 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] + latest_comment_url: str + type: str -__all__ = ("OrganizationSimpleType",) +__all__ = ( + "ThreadPropSubjectType", + "ThreadType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0065.py b/githubkit/versions/v2022_11_28/types/group_0065.py index 62a84e2b7..f0966921a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0065.py +++ b/githubkit/versions/v2022_11_28/types/group_0065.py @@ -9,21 +9,24 @@ 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_0031 import SimpleRepositoryType +class ThreadSubscriptionType(TypedDict): + """Thread Subscription -class DependabotRepositoryAccessDetailsType(TypedDict): - """Dependabot Repository Access Details - - Information about repositories that Dependabot is able to access in an - organization + Thread Subscription """ - default_level: NotRequired[Union[None, Literal["public", "internal"]]] - accessible_repositories: NotRequired[list[Union[None, SimpleRepositoryType]]] + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: Union[datetime, None] + url: str + thread_url: NotRequired[str] + repository_url: NotRequired[str] -__all__ = ("DependabotRepositoryAccessDetailsType",) +__all__ = ("ThreadSubscriptionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0066.py b/githubkit/versions/v2022_11_28/types/group_0066.py index 8b794ad2d..4b96a4953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0066.py +++ b/githubkit/versions/v2022_11_28/types/group_0066.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_0067.py b/githubkit/versions/v2022_11_28/types/group_0067.py index 3775053e3..20b6d48f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0067.py +++ b/githubkit/versions/v2022_11_28/types/group_0067.py @@ -9,97 +9,21 @@ 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_0032 import SimpleRepositoryType -class OrganizationFullType(TypedDict): - """Organization Full - 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]] - default_repository_branch: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_delete_repositories: NotRequired[bool] - members_can_change_repo_visibility: NotRequired[bool] - members_can_invite_outside_collaborators: NotRequired[bool] - members_can_delete_issues: NotRequired[bool] - display_commenter_full_name_setting_enabled: NotRequired[bool] - readers_can_create_discussions: NotRequired[bool] - members_can_create_teams: NotRequired[bool] - members_can_view_dependency_insights: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] - deploy_keys_enabled_for_repositories: NotRequired[bool] +class DependabotRepositoryAccessDetailsType(TypedDict): + """Dependabot Repository Access Details + Information about repositories that Dependabot is able to access in an + organization + """ -class OrganizationFullPropPlanType(TypedDict): - """OrganizationFullPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] + default_level: NotRequired[Union[None, Literal["public", "internal"]]] + accessible_repositories: NotRequired[list[Union[None, SimpleRepositoryType]]] -__all__ = ( - "OrganizationFullPropPlanType", - "OrganizationFullType", -) +__all__ = ("DependabotRepositoryAccessDetailsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0068.py b/githubkit/versions/v2022_11_28/types/group_0068.py index a41742c81..8b794ad2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0068.py +++ b/githubkit/versions/v2022_11_28/types/group_0068.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ActionsCacheUsageOrgEnterpriseType(TypedDict): - """ActionsCacheUsageOrgEnterprise""" +class BillingUsageReportType(TypedDict): + """BillingUsageReport""" - total_active_caches_count: int - total_active_caches_size_in_bytes: int + usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] -__all__ = ("ActionsCacheUsageOrgEnterpriseType",) +class BillingUsageReportPropUsageItemsItemsType(TypedDict): + """BillingUsageReportPropUsageItemsItems""" + + date: str + product: str + sku: str + quantity: int + unit_type: str + price_per_unit: float + gross_amount: float + discount_amount: float + net_amount: float + organization_name: str + repository_name: NotRequired[str] + + +__all__ = ( + "BillingUsageReportPropUsageItemsItemsType", + "BillingUsageReportType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0069.py b/githubkit/versions/v2022_11_28/types/group_0069.py index a22762330..3775053e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0069.py +++ b/githubkit/versions/v2022_11_28/types/group_0069.py @@ -9,19 +9,97 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ActionsHostedRunnerMachineSpecType(TypedDict): - """Github-owned VM details. +class OrganizationFullType(TypedDict): + """Organization Full - Provides details of a particular machine spec. + Organization Full """ - id: str - cpu_cores: int - memory_gb: int - storage_gb: int + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[OrganizationFullPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + default_repository_branch: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_delete_repositories: NotRequired[bool] + members_can_change_repo_visibility: NotRequired[bool] + members_can_invite_outside_collaborators: NotRequired[bool] + members_can_delete_issues: NotRequired[bool] + display_commenter_full_name_setting_enabled: NotRequired[bool] + readers_can_create_discussions: NotRequired[bool] + members_can_create_teams: NotRequired[bool] + members_can_view_dependency_insights: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] + deploy_keys_enabled_for_repositories: NotRequired[bool] -__all__ = ("ActionsHostedRunnerMachineSpecType",) +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_0070.py b/githubkit/versions/v2022_11_28/types/group_0070.py index 45f884773..a41742c81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0070.py +++ b/githubkit/versions/v2022_11_28/types/group_0070.py @@ -9,57 +9,14 @@ 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_0069 import ActionsHostedRunnerMachineSpecType +class ActionsCacheUsageOrgEnterpriseType(TypedDict): + """ActionsCacheUsageOrgEnterprise""" -class ActionsHostedRunnerType(TypedDict): - """GitHub-hosted hosted runner + total_active_caches_count: int + total_active_caches_size_in_bytes: int - A Github-hosted hosted runner. - """ - id: int - name: str - runner_group_id: NotRequired[int] - image_details: Union[None, ActionsHostedRunnerPoolImageType] - machine_size_details: ActionsHostedRunnerMachineSpecType - status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] - platform: str - maximum_runners: NotRequired[int] - public_ip_enabled: bool - public_ips: NotRequired[list[PublicIpType]] - last_active_on: NotRequired[Union[datetime, None]] - - -class ActionsHostedRunnerPoolImageType(TypedDict): - """GitHub-hosted runner image details. - - Provides details of a hosted runner image - """ - - id: str - size_gb: int - display_name: str - source: Literal["github", "partner", "custom"] - - -class PublicIpType(TypedDict): - """Public IP for a GitHub-hosted larger runners. - - Provides details of Public IP for a GitHub-hosted larger runners - """ - - enabled: NotRequired[bool] - prefix: NotRequired[str] - length: NotRequired[int] - - -__all__ = ( - "ActionsHostedRunnerPoolImageType", - "ActionsHostedRunnerType", - "PublicIpType", -) +__all__ = ("ActionsCacheUsageOrgEnterpriseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0071.py b/githubkit/versions/v2022_11_28/types/group_0071.py index 8840d8ecc..a22762330 100644 --- a/githubkit/versions/v2022_11_28/types/group_0071.py +++ b/githubkit/versions/v2022_11_28/types/group_0071.py @@ -9,21 +9,19 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ActionsHostedRunnerImageType(TypedDict): - """GitHub-hosted runner image details. +class ActionsHostedRunnerMachineSpecType(TypedDict): + """Github-owned VM details. - Provides details of a hosted runner image + Provides details of a particular machine spec. """ id: str - platform: str - size_gb: int - display_name: str - source: Literal["github", "partner", "custom"] + cpu_cores: int + memory_gb: int + storage_gb: int -__all__ = ("ActionsHostedRunnerImageType",) +__all__ = ("ActionsHostedRunnerMachineSpecType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0072.py b/githubkit/versions/v2022_11_28/types/group_0072.py index 7fbef21bb..32175bb5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0072.py +++ b/githubkit/versions/v2022_11_28/types/group_0072.py @@ -9,26 +9,57 @@ 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_0071 import ActionsHostedRunnerMachineSpecType -class ActionsHostedRunnerLimitsType(TypedDict): - """ActionsHostedRunnerLimits""" - public_ips: ActionsHostedRunnerLimitsPropPublicIpsType +class ActionsHostedRunnerType(TypedDict): + """GitHub-hosted hosted runner + + A Github-hosted hosted runner. + """ + + id: int + name: str + runner_group_id: NotRequired[int] + image_details: Union[None, ActionsHostedRunnerPoolImageType] + machine_size_details: ActionsHostedRunnerMachineSpecType + status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] + platform: str + maximum_runners: NotRequired[int] + public_ip_enabled: bool + public_ips: NotRequired[list[PublicIpType]] + last_active_on: NotRequired[Union[datetime, None]] + + +class ActionsHostedRunnerPoolImageType(TypedDict): + """GitHub-hosted runner image details. + + Provides details of a hosted runner image + """ + + id: str + size_gb: int + display_name: str + source: Literal["github", "partner", "custom"] -class ActionsHostedRunnerLimitsPropPublicIpsType(TypedDict): - """Static public IP Limits for GitHub-hosted Hosted Runners. +class PublicIpType(TypedDict): + """Public IP for a GitHub-hosted larger runners. - Provides details of static public IP limits for GitHub-hosted Hosted Runners + Provides details of Public IP for a GitHub-hosted larger runners """ - maximum: int - current_usage: int + enabled: NotRequired[bool] + prefix: NotRequired[str] + length: NotRequired[int] __all__ = ( - "ActionsHostedRunnerLimitsPropPublicIpsType", - "ActionsHostedRunnerLimitsType", + "ActionsHostedRunnerPoolImageType", + "ActionsHostedRunnerType", + "PublicIpType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0073.py b/githubkit/versions/v2022_11_28/types/group_0073.py index f8ed08e06..8840d8ecc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0073.py +++ b/githubkit/versions/v2022_11_28/types/group_0073.py @@ -9,16 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class OidcCustomSubType(TypedDict): - """Actions OIDC Subject customization +class ActionsHostedRunnerImageType(TypedDict): + """GitHub-hosted runner image details. - Actions OIDC Subject customization + Provides details of a hosted runner image """ - include_claim_keys: list[str] + id: str + platform: str + size_gb: int + display_name: str + source: Literal["github", "partner", "custom"] -__all__ = ("OidcCustomSubType",) +__all__ = ("ActionsHostedRunnerImageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0074.py b/githubkit/versions/v2022_11_28/types/group_0074.py index f02f87f3d..7fbef21bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0074.py +++ b/githubkit/versions/v2022_11_28/types/group_0074.py @@ -9,17 +9,26 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsOrganizationPermissionsType(TypedDict): - """ActionsOrganizationPermissions""" +class ActionsHostedRunnerLimitsType(TypedDict): + """ActionsHostedRunnerLimits""" - enabled_repositories: Literal["all", "none", "selected"] - selected_repositories_url: NotRequired[str] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + public_ips: ActionsHostedRunnerLimitsPropPublicIpsType -__all__ = ("ActionsOrganizationPermissionsType",) +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_0075.py b/githubkit/versions/v2022_11_28/types/group_0075.py index 7abe76199..f8ed08e06 100644 --- a/githubkit/versions/v2022_11_28/types/group_0075.py +++ b/githubkit/versions/v2022_11_28/types/group_0075.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class SelectedActionsType(TypedDict): - """SelectedActions""" +class OidcCustomSubType(TypedDict): + """Actions OIDC Subject customization - github_owned_allowed: NotRequired[bool] - verified_allowed: NotRequired[bool] - patterns_allowed: NotRequired[list[str]] + Actions OIDC Subject customization + """ + include_claim_keys: list[str] -__all__ = ("SelectedActionsType",) + +__all__ = ("OidcCustomSubType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0076.py b/githubkit/versions/v2022_11_28/types/group_0076.py index 87512f917..f02f87f3d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0076.py +++ b/githubkit/versions/v2022_11_28/types/group_0076.py @@ -10,14 +10,16 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ActionsGetDefaultWorkflowPermissionsType(TypedDict): - """ActionsGetDefaultWorkflowPermissions""" +class ActionsOrganizationPermissionsType(TypedDict): + """ActionsOrganizationPermissions""" - default_workflow_permissions: Literal["read", "write"] - can_approve_pull_request_reviews: bool + enabled_repositories: Literal["all", "none", "selected"] + selected_repositories_url: NotRequired[str] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] -__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) +__all__ = ("ActionsOrganizationPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0077.py b/githubkit/versions/v2022_11_28/types/group_0077.py index 0e0c798a4..7abe76199 100644 --- a/githubkit/versions/v2022_11_28/types/group_0077.py +++ b/githubkit/versions/v2022_11_28/types/group_0077.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ActionsSetDefaultWorkflowPermissionsType(TypedDict): - """ActionsSetDefaultWorkflowPermissions""" +class SelectedActionsType(TypedDict): + """SelectedActions""" - default_workflow_permissions: NotRequired[Literal["read", "write"]] - can_approve_pull_request_reviews: NotRequired[bool] + github_owned_allowed: NotRequired[bool] + verified_allowed: NotRequired[bool] + patterns_allowed: NotRequired[list[str]] -__all__ = ("ActionsSetDefaultWorkflowPermissionsType",) +__all__ = ("SelectedActionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0078.py b/githubkit/versions/v2022_11_28/types/group_0078.py index aab282720..87512f917 100644 --- a/githubkit/versions/v2022_11_28/types/group_0078.py +++ b/githubkit/versions/v2022_11_28/types/group_0078.py @@ -10,18 +10,14 @@ 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 ActionsGetDefaultWorkflowPermissionsType(TypedDict): + """ActionsGetDefaultWorkflowPermissions""" - A label for a self hosted runner - """ + default_workflow_permissions: Literal["read", "write"] + can_approve_pull_request_reviews: bool - id: NotRequired[int] - name: str - type: NotRequired[Literal["read-only", "custom"]] - -__all__ = ("RunnerLabelType",) +__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0079.py b/githubkit/versions/v2022_11_28/types/group_0079.py index 0f9ffb206..0e0c798a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0079.py +++ b/githubkit/versions/v2022_11_28/types/group_0079.py @@ -9,25 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0078 import RunnerLabelType +class ActionsSetDefaultWorkflowPermissionsType(TypedDict): + """ActionsSetDefaultWorkflowPermissions""" -class RunnerType(TypedDict): - """Self hosted runners + default_workflow_permissions: NotRequired[Literal["read", "write"]] + can_approve_pull_request_reviews: NotRequired[bool] - A self hosted runner - """ - id: int - runner_group_id: NotRequired[int] - name: str - os: str - status: str - busy: bool - labels: list[RunnerLabelType] - ephemeral: NotRequired[bool] - - -__all__ = ("RunnerType",) +__all__ = ("ActionsSetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0080.py b/githubkit/versions/v2022_11_28/types/group_0080.py index c8ef6e908..aab282720 100644 --- a/githubkit/versions/v2022_11_28/types/group_0080.py +++ b/githubkit/versions/v2022_11_28/types/group_0080.py @@ -9,21 +9,19 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class RunnerApplicationType(TypedDict): - """Runner Application +class RunnerLabelType(TypedDict): + """Self hosted runner label - Runner Application + A label for a self hosted runner """ - os: str - architecture: str - download_url: str - filename: str - temp_download_token: NotRequired[str] - sha256_checksum: NotRequired[str] + id: NotRequired[int] + name: str + type: NotRequired[Literal["read-only", "custom"]] -__all__ = ("RunnerApplicationType",) +__all__ = ("RunnerLabelType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0081.py b/githubkit/versions/v2022_11_28/types/group_0081.py index b1d20d9db..aecd6035f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0081.py +++ b/githubkit/versions/v2022_11_28/types/group_0081.py @@ -9,36 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0020 import RepositoryType +from .group_0080 import RunnerLabelType -class AuthenticationTokenType(TypedDict): - """Authentication Token +class RunnerType(TypedDict): + """Self hosted runners - Authentication Token + A self hosted runner """ - token: str - expires_at: datetime - permissions: NotRequired[AuthenticationTokenPropPermissionsType] - repositories: NotRequired[list[RepositoryType]] - single_file: NotRequired[Union[str, None]] - repository_selection: NotRequired[Literal["all", "selected"]] + id: int + runner_group_id: NotRequired[int] + name: str + os: str + status: str + busy: bool + labels: list[RunnerLabelType] + ephemeral: NotRequired[bool] -class AuthenticationTokenPropPermissionsType(TypedDict): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ - - -__all__ = ( - "AuthenticationTokenPropPermissionsType", - "AuthenticationTokenType", -) +__all__ = ("RunnerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0082.py b/githubkit/versions/v2022_11_28/types/group_0082.py index f67033a97..c8ef6e908 100644 --- a/githubkit/versions/v2022_11_28/types/group_0082.py +++ b/githubkit/versions/v2022_11_28/types/group_0082.py @@ -12,18 +12,18 @@ from typing_extensions import NotRequired, TypedDict -class ActionsPublicKeyType(TypedDict): - """ActionsPublicKey +class RunnerApplicationType(TypedDict): + """Runner Application - The public key used for setting Actions Secrets. + Runner Application """ - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + os: str + architecture: str + download_url: str + filename: str + temp_download_token: NotRequired[str] + sha256_checksum: NotRequired[str] -__all__ = ("ActionsPublicKeyType",) +__all__ = ("RunnerApplicationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0083.py b/githubkit/versions/v2022_11_28/types/group_0083.py index 9755ad7ef..b1d20d9db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0083.py +++ b/githubkit/versions/v2022_11_28/types/group_0083.py @@ -9,29 +9,36 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class TeamSimpleType(TypedDict): - """Team Simple - Groups of organization members that gives permissions on specified repositories. +class AuthenticationTokenType(TypedDict): + """Authentication Token + + Authentication Token """ - 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",) + 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_0084.py b/githubkit/versions/v2022_11_28/types/group_0084.py index dc6ea0a1f..f67033a97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0084.py +++ b/githubkit/versions/v2022_11_28/types/group_0084.py @@ -9,45 +9,21 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0083 import TeamSimpleType +class ActionsPublicKeyType(TypedDict): + """ActionsPublicKey -class TeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. + The public key used for setting Actions Secrets. """ - 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", -) + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] + + +__all__ = ("ActionsPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0085.py b/githubkit/versions/v2022_11_28/types/group_0085.py index b0289cb86..9755ad7ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0085.py +++ b/githubkit/versions/v2022_11_28/types/group_0085.py @@ -9,44 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0084 import TeamType +class TeamSimpleType(TypedDict): + """Team Simple -class CampaignSummaryType(TypedDict): - """Campaign summary - - The campaign metadata and alert stats. + Groups of organization members that gives permissions on specified repositories. """ - number: int - created_at: datetime - updated_at: datetime - name: NotRequired[str] - description: str - managers: list[SimpleUserType] - team_managers: NotRequired[list[TeamType]] - published_at: NotRequired[datetime] - ends_at: datetime - closed_at: NotRequired[Union[datetime, None]] - state: Literal["open", "closed"] - contact_link: Union[str, None] - alert_stats: NotRequired[CampaignSummaryPropAlertStatsType] - - -class CampaignSummaryPropAlertStatsType(TypedDict): - """CampaignSummaryPropAlertStats""" - - open_count: int - closed_count: int - in_progress_count: int - - -__all__ = ( - "CampaignSummaryPropAlertStatsType", - "CampaignSummaryType", -) + 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_0086.py b/githubkit/versions/v2022_11_28/types/group_0086.py index 3319f338b..10a318096 100644 --- a/githubkit/versions/v2022_11_28/types/group_0086.py +++ b/githubkit/versions/v2022_11_28/types/group_0086.py @@ -9,24 +9,45 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0085 import TeamSimpleType -class CodeScanningAlertRuleSummaryType(TypedDict): - """CodeScanningAlertRuleSummary""" - 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]] +class TeamType(TypedDict): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -__all__ = ("CodeScanningAlertRuleSummaryType",) + 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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0087.py b/githubkit/versions/v2022_11_28/types/group_0087.py index 33e4a93fd..ef3c4be53 100644 --- a/githubkit/versions/v2022_11_28/types/group_0087.py +++ b/githubkit/versions/v2022_11_28/types/group_0087.py @@ -9,16 +9,44 @@ 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_0086 import TeamType -class CodeScanningAnalysisToolType(TypedDict): - """CodeScanningAnalysisTool""" +class CampaignSummaryType(TypedDict): + """Campaign summary + + The campaign metadata and alert stats. + """ + + number: int + created_at: datetime + updated_at: datetime name: NotRequired[str] - version: NotRequired[Union[str, None]] - guid: NotRequired[Union[str, None]] + description: str + managers: list[SimpleUserType] + team_managers: NotRequired[list[TeamType]] + published_at: NotRequired[datetime] + ends_at: datetime + closed_at: NotRequired[Union[datetime, None]] + state: Literal["open", "closed"] + contact_link: Union[str, None] + alert_stats: NotRequired[CampaignSummaryPropAlertStatsType] + + +class CampaignSummaryPropAlertStatsType(TypedDict): + """CampaignSummaryPropAlertStats""" + + open_count: int + closed_count: int + in_progress_count: int -__all__ = ("CodeScanningAnalysisToolType",) +__all__ = ( + "CampaignSummaryPropAlertStatsType", + "CampaignSummaryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0088.py b/githubkit/versions/v2022_11_28/types/group_0088.py index d84b22102..3319f338b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0088.py +++ b/githubkit/versions/v2022_11_28/types/group_0088.py @@ -13,48 +13,20 @@ from typing_extensions import NotRequired, TypedDict -class CodeScanningAlertInstanceType(TypedDict): - """CodeScanningAlertInstance""" - - ref: NotRequired[str] - analysis_key: NotRequired[str] - environment: NotRequired[str] - category: NotRequired[str] - state: NotRequired[Union[None, Literal["open", "dismissed", "fixed"]]] - commit_sha: NotRequired[str] - message: NotRequired[CodeScanningAlertInstancePropMessageType] - location: NotRequired[CodeScanningAlertLocationType] - html_url: NotRequired[str] - classifications: NotRequired[ - list[ - Union[ - None, Literal["source", "generated", "test", "library", "documentation"] - ] - ] +class CodeScanningAlertRuleSummaryType(TypedDict): + """CodeScanningAlertRuleSummary""" + + 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]] -class CodeScanningAlertLocationType(TypedDict): - """CodeScanningAlertLocation - - 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", -) +__all__ = ("CodeScanningAlertRuleSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0089.py b/githubkit/versions/v2022_11_28/types/group_0089.py index 85032e51f..33e4a93fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0089.py +++ b/githubkit/versions/v2022_11_28/types/group_0089.py @@ -9,39 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0031 import SimpleRepositoryType -from .group_0086 import CodeScanningAlertRuleSummaryType -from .group_0087 import CodeScanningAnalysisToolType -from .group_0088 import CodeScanningAlertInstanceType - - -class CodeScanningOrganizationAlertItemsType(TypedDict): - """CodeScanningOrganizationAlertItems""" - - number: int - created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - repository: SimpleRepositoryType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] - - -__all__ = ("CodeScanningOrganizationAlertItemsType",) + +class CodeScanningAnalysisToolType(TypedDict): + """CodeScanningAnalysisTool""" + + name: NotRequired[str] + version: NotRequired[Union[str, None]] + guid: NotRequired[Union[str, None]] + + +__all__ = ("CodeScanningAnalysisToolType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0090.py b/githubkit/versions/v2022_11_28/types/group_0090.py index febb2d4f6..d84b22102 100644 --- a/githubkit/versions/v2022_11_28/types/group_0090.py +++ b/githubkit/versions/v2022_11_28/types/group_0090.py @@ -10,22 +10,51 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict + + +class CodeScanningAlertInstanceType(TypedDict): + """CodeScanningAlertInstance""" + + ref: NotRequired[str] + analysis_key: NotRequired[str] + environment: NotRequired[str] + category: NotRequired[str] + state: NotRequired[Union[None, Literal["open", "dismissed", "fixed"]]] + commit_sha: NotRequired[str] + message: NotRequired[CodeScanningAlertInstancePropMessageType] + location: NotRequired[CodeScanningAlertLocationType] + html_url: NotRequired[str] + classifications: NotRequired[ + list[ + Union[ + None, Literal["source", "generated", "test", "library", "documentation"] + ] + ] + ] + + +class CodeScanningAlertLocationType(TypedDict): + """CodeScanningAlertLocation + + 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 CodespaceMachineType(TypedDict): - """Codespace machine - A description of the machine powering a codespace. - """ +class CodeScanningAlertInstancePropMessageType(TypedDict): + """CodeScanningAlertInstancePropMessage""" - 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"]] + text: NotRequired[str] -__all__ = ("CodespaceMachineType",) +__all__ = ( + "CodeScanningAlertInstancePropMessageType", + "CodeScanningAlertInstanceType", + "CodeScanningAlertLocationType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0091.py b/githubkit/versions/v2022_11_28/types/group_0091.py index 5295464cf..30caa15cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0091.py +++ b/githubkit/versions/v2022_11_28/types/group_0091.py @@ -14,89 +14,34 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0061 import MinimalRepositoryType -from .group_0090 import CodespaceMachineType +from .group_0032 import SimpleRepositoryType +from .group_0088 import CodeScanningAlertRuleSummaryType +from .group_0089 import CodeScanningAnalysisToolType +from .group_0090 import CodeScanningAlertInstanceType -class CodespaceType(TypedDict): - """Codespace +class CodeScanningOrganizationAlertItemsType(TypedDict): + """CodeScanningOrganizationAlertItems""" - 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] + number: int 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", - ] + updated_at: NotRequired[datetime] 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]] + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + repository: SimpleRepositoryType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] -__all__ = ( - "CodespacePropGitStatusType", - "CodespacePropRuntimeConstraintsType", - "CodespaceType", -) +__all__ = ("CodeScanningOrganizationAlertItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0092.py b/githubkit/versions/v2022_11_28/types/group_0092.py index 3f68d2a84..febb2d4f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0092.py +++ b/githubkit/versions/v2022_11_28/types/group_0092.py @@ -9,21 +9,23 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class CodespacesPublicKeyType(TypedDict): - """CodespacesPublicKey +class CodespaceMachineType(TypedDict): + """Codespace machine - The public key used for setting Codespaces secrets. + A description of the machine powering a codespace. """ - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + name: str + display_name: str + operating_system: str + storage_in_bytes: int + memory_in_bytes: int + cpus: int + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] -__all__ = ("CodespacesPublicKeyType",) +__all__ = ("CodespaceMachineType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0093.py b/githubkit/versions/v2022_11_28/types/group_0093.py index 3446a1559..6bab4e7a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0093.py +++ b/githubkit/versions/v2022_11_28/types/group_0093.py @@ -9,43 +9,94 @@ 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_0063 import MinimalRepositoryType +from .group_0092 import CodespaceMachineType -class CopilotOrganizationDetailsType(TypedDict): - """Copilot Organization Details - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. +class CodespaceType(TypedDict): + """Codespace + + A codespace. """ - seat_breakdown: CopilotOrganizationSeatBreakdownType - public_code_suggestions: Literal["allow", "block", "unconfigured"] - ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" + 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", ] - plan_type: NotRequired[Literal["business", "enterprise"]] + 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 CopilotOrganizationSeatBreakdownType(TypedDict): - """Copilot Seat Breakdown +class CodespacePropGitStatusType(TypedDict): + """CodespacePropGitStatus - The breakdown of Copilot Business seats for the organization. + Details about the codespace's git repository. """ - 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] + 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__ = ( - "CopilotOrganizationDetailsType", - "CopilotOrganizationSeatBreakdownType", + "CodespacePropGitStatusType", + "CodespacePropRuntimeConstraintsType", + "CodespaceType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0094.py b/githubkit/versions/v2022_11_28/types/group_0094.py index 55379c558..3f68d2a84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0094.py +++ b/githubkit/versions/v2022_11_28/types/group_0094.py @@ -9,63 +9,21 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0064 import OrganizationSimpleType -from .group_0084 import TeamType +class CodespacesPublicKeyType(TypedDict): + """CodespacesPublicKey -class CopilotSeatDetailsType(TypedDict): - """Copilot Business Seat Detail - - Information about a Copilot Business seat assignment for a user, team, or - organization. + The public key used for setting Codespaces secrets. """ - assignee: NotRequired[Union[None, SimpleUserType]] - organization: NotRequired[Union[None, OrganizationSimpleType]] - assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] - pending_cancellation_date: NotRequired[Union[date, None]] - last_activity_at: NotRequired[Union[datetime, None]] - last_activity_editor: NotRequired[Union[str, None]] - created_at: datetime - updated_at: NotRequired[datetime] - plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] - - -class EnterpriseTeamType(TypedDict): - """Enterprise Team - - Group of enterprise owners and/or members - """ - - id: int - name: str - description: NotRequired[str] - slug: str - url: str - sync_to_organizations: NotRequired[str] - organization_selection_type: NotRequired[str] - group_id: NotRequired[Union[str, None]] - group_name: NotRequired[Union[str, None]] - html_url: str - members_url: str - created_at: datetime - updated_at: datetime - - -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: NotRequired[int] - seats: NotRequired[list[CopilotSeatDetailsType]] + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ( - "CopilotSeatDetailsType", - "EnterpriseTeamType", - "OrgsOrgCopilotBillingSeatsGetResponse200Type", -) +__all__ = ("CodespacesPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0095.py b/githubkit/versions/v2022_11_28/types/group_0095.py index c28ab10cb..3446a1559 100644 --- a/githubkit/versions/v2022_11_28/types/group_0095.py +++ b/githubkit/versions/v2022_11_28/types/group_0095.py @@ -9,192 +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 CopilotUsageMetricsDayType(TypedDict): - """Copilot Usage Metrics +class CopilotOrganizationDetailsType(TypedDict): + """Copilot Organization Details - Copilot usage metrics for a given day. + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. """ - 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] - ] - - -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 - ] + seat_breakdown: CopilotOrganizationSeatBreakdownType + public_code_suggestions: Literal["allow", "block", "unconfigured"] + ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" ] + plan_type: NotRequired[Literal["business", "enterprise"]] -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType( - TypedDict -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems +class CopilotOrganizationSeatBreakdownType(TypedDict): + """Copilot Seat Breakdown - Usage metrics for a given language for the given editor for Copilot code - completions. + The breakdown of Copilot Business seats for the organization. """ - 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] + 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__ = ( - "CopilotDotcomChatPropModelsItemsType", - "CopilotDotcomChatType", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType", - "CopilotDotcomPullRequestsPropRepositoriesItemsType", - "CopilotDotcomPullRequestsType", - "CopilotIdeChatPropEditorsItemsPropModelsItemsType", - "CopilotIdeChatPropEditorsItemsType", - "CopilotIdeChatType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsType", - "CopilotIdeCodeCompletionsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsType", - "CopilotUsageMetricsDayType", + "CopilotOrganizationDetailsType", + "CopilotOrganizationSeatBreakdownType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0096.py b/githubkit/versions/v2022_11_28/types/group_0096.py index fb3981a7a..dccc5760e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0096.py +++ b/githubkit/versions/v2022_11_28/types/group_0096.py @@ -9,17 +9,63 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import date, datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0066 import OrganizationSimpleType +from .group_0086 import TeamType -class DependabotPublicKeyType(TypedDict): - """DependabotPublicKey - The public key used for setting Dependabot Secrets. +class CopilotSeatDetailsType(TypedDict): + """Copilot Business Seat Detail + + Information about a Copilot Business seat assignment for a user, team, or + organization. """ - key_id: str - key: str + assignee: NotRequired[Union[None, SimpleUserType]] + organization: NotRequired[Union[None, OrganizationSimpleType]] + assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] + pending_cancellation_date: NotRequired[Union[date, None]] + last_activity_at: NotRequired[Union[datetime, None]] + last_activity_editor: NotRequired[Union[str, None]] + created_at: datetime + updated_at: NotRequired[datetime] + plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] + + +class EnterpriseTeamType(TypedDict): + """Enterprise Team + + Group of enterprise owners and/or members + """ + + id: int + name: str + description: NotRequired[str] + slug: str + url: str + sync_to_organizations: NotRequired[str] + organization_selection_type: NotRequired[str] + group_id: NotRequired[Union[str, None]] + group_name: NotRequired[Union[str, None]] + html_url: str + members_url: str + created_at: datetime + updated_at: datetime + + +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] -__all__ = ("DependabotPublicKeyType",) +__all__ = ( + "CopilotSeatDetailsType", + "EnterpriseTeamType", + "OrgsOrgCopilotBillingSeatsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0097.py b/githubkit/versions/v2022_11_28/types/group_0097.py index 0341cf749..c28ab10cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0097.py +++ b/githubkit/versions/v2022_11_28/types/group_0097.py @@ -9,31 +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_0003 import SimpleUserType -from .group_0061 import MinimalRepositoryType +class CopilotUsageMetricsDayType(TypedDict): + """Copilot Usage Metrics -class PackageType(TypedDict): - """Package + 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] + ] + + +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 - A software package + Usage metrics for a given language for the given editor for Copilot code + completions. """ - 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 + 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__ = ("PackageType",) +__all__ = ( + "CopilotDotcomChatPropModelsItemsType", + "CopilotDotcomChatType", + "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType", + "CopilotDotcomPullRequestsPropRepositoriesItemsType", + "CopilotDotcomPullRequestsType", + "CopilotIdeChatPropEditorsItemsPropModelsItemsType", + "CopilotIdeChatPropEditorsItemsType", + "CopilotIdeChatType", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", + "CopilotIdeCodeCompletionsPropEditorsItemsType", + "CopilotIdeCodeCompletionsPropLanguagesItemsType", + "CopilotIdeCodeCompletionsType", + "CopilotUsageMetricsDayType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0098.py b/githubkit/versions/v2022_11_28/types/group_0098.py index 23c54a38b..fb3981a7a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0098.py +++ b/githubkit/versions/v2022_11_28/types/group_0098.py @@ -9,30 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class DependabotPublicKeyType(TypedDict): + """DependabotPublicKey -class OrganizationInvitationType(TypedDict): - """Organization Invitation - - Organization Invitation + The public key used for setting Dependabot Secrets. """ - 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",) + key_id: str + key: str + + +__all__ = ("DependabotPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0099.py b/githubkit/versions/v2022_11_28/types/group_0099.py index dd28f2299..a21775fbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0099.py +++ b/githubkit/versions/v2022_11_28/types/group_0099.py @@ -10,38 +10,30 @@ 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_0063 import MinimalRepositoryType -class OrgHookType(TypedDict): - """Org Hook - Org Hook +class PackageType(TypedDict): + """Package + + A software package """ id: int - url: str - ping_url: str - deliveries_url: NotRequired[str] name: str - events: list[str] - active: bool - config: OrgHookPropConfigType - updated_at: datetime + 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 - type: str - - -class OrgHookPropConfigType(TypedDict): - """OrgHookPropConfig""" - - url: NotRequired[str] - insecure_ssl: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] + updated_at: datetime -__all__ = ( - "OrgHookPropConfigType", - "OrgHookType", -) +__all__ = ("PackageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0100.py b/githubkit/versions/v2022_11_28/types/group_0100.py index eecf40a48..23c54a38b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0100.py +++ b/githubkit/versions/v2022_11_28/types/group_0100.py @@ -12,16 +12,27 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ApiInsightsRouteStatsItemsType(TypedDict): - """ApiInsightsRouteStatsItems""" - http_method: NotRequired[str] - api_route: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] +class OrganizationInvitationType(TypedDict): + """Organization Invitation + Organization Invitation + """ -__all__ = ("ApiInsightsRouteStatsItemsType",) + 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_0101.py b/githubkit/versions/v2022_11_28/types/group_0101.py index a652aaeff..dd28f2299 100644 --- a/githubkit/versions/v2022_11_28/types/group_0101.py +++ b/githubkit/versions/v2022_11_28/types/group_0101.py @@ -9,20 +9,39 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ApiInsightsSubjectStatsItemsType(TypedDict): - """ApiInsightsSubjectStatsItems""" +class OrgHookType(TypedDict): + """Org Hook - 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] + 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__ = ("ApiInsightsSubjectStatsItemsType",) + +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_0102.py b/githubkit/versions/v2022_11_28/types/group_0102.py index efa213a4a..eecf40a48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0102.py +++ b/githubkit/versions/v2022_11_28/types/group_0102.py @@ -9,17 +9,19 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ApiInsightsSummaryStatsType(TypedDict): - """Summary Stats - - API Insights usage summary stats for an organization - """ +class ApiInsightsRouteStatsItemsType(TypedDict): + """ApiInsightsRouteStatsItems""" + http_method: NotRequired[str] + api_route: NotRequired[str] total_request_count: NotRequired[int] rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] -__all__ = ("ApiInsightsSummaryStatsType",) +__all__ = ("ApiInsightsRouteStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0103.py b/githubkit/versions/v2022_11_28/types/group_0103.py index b1ac3a080..a652aaeff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0103.py +++ b/githubkit/versions/v2022_11_28/types/group_0103.py @@ -9,15 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ApiInsightsTimeStatsItemsType(TypedDict): - """ApiInsightsTimeStatsItems""" +class ApiInsightsSubjectStatsItemsType(TypedDict): + """ApiInsightsSubjectStatsItems""" - timestamp: NotRequired[str] + 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__ = ("ApiInsightsTimeStatsItemsType",) +__all__ = ("ApiInsightsSubjectStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0104.py b/githubkit/versions/v2022_11_28/types/group_0104.py index 810ca5b00..efa213a4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0104.py +++ b/githubkit/versions/v2022_11_28/types/group_0104.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ApiInsightsUserStatsItemsType(TypedDict): - """ApiInsightsUserStatsItems""" +class ApiInsightsSummaryStatsType(TypedDict): + """Summary Stats + + API Insights usage summary stats for an organization + """ - 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__ = ("ApiInsightsUserStatsItemsType",) +__all__ = ("ApiInsightsSummaryStatsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0105.py b/githubkit/versions/v2022_11_28/types/group_0105.py index 86b7b0b1e..b1ac3a080 100644 --- a/githubkit/versions/v2022_11_28/types/group_0105.py +++ b/githubkit/versions/v2022_11_28/types/group_0105.py @@ -9,20 +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 InteractionLimitResponseType(TypedDict): - """Interaction Limits +class ApiInsightsTimeStatsItemsType(TypedDict): + """ApiInsightsTimeStatsItems""" - Interaction limit settings. - """ + timestamp: NotRequired[str] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - origin: str - expires_at: datetime - -__all__ = ("InteractionLimitResponseType",) +__all__ = ("ApiInsightsTimeStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0106.py b/githubkit/versions/v2022_11_28/types/group_0106.py index 7711ae8ae..810ca5b00 100644 --- a/githubkit/versions/v2022_11_28/types/group_0106.py +++ b/githubkit/versions/v2022_11_28/types/group_0106.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class InteractionLimitType(TypedDict): - """Interaction Restrictions +class ApiInsightsUserStatsItemsType(TypedDict): + """ApiInsightsUserStatsItems""" - Limit interactions to a specific type of user for a specified duration - """ + 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] - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - expiry: NotRequired[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] - -__all__ = ("InteractionLimitType",) +__all__ = ("ApiInsightsUserStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0107.py b/githubkit/versions/v2022_11_28/types/group_0107.py index 2d5d28056..86b7b0b1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0107.py +++ b/githubkit/versions/v2022_11_28/types/group_0107.py @@ -9,24 +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 -class OrganizationCreateIssueTypeType(TypedDict): - """OrganizationCreateIssueType""" +class InteractionLimitResponseType(TypedDict): + """Interaction Limits - name: str - is_enabled: bool - description: NotRequired[Union[str, None]] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] + Interaction limit settings. + """ + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + origin: str + expires_at: datetime -__all__ = ("OrganizationCreateIssueTypeType",) + +__all__ = ("InteractionLimitResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0108.py b/githubkit/versions/v2022_11_28/types/group_0108.py index e6f7b909d..7711ae8ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0108.py +++ b/githubkit/versions/v2022_11_28/types/group_0108.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrganizationUpdateIssueTypeType(TypedDict): - """OrganizationUpdateIssueType""" +class InteractionLimitType(TypedDict): + """Interaction Restrictions - name: str - is_enabled: bool - description: NotRequired[Union[str, None]] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] + Limit interactions to a specific type of user for a specified duration + """ + + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + expiry: NotRequired[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] ] -__all__ = ("OrganizationUpdateIssueTypeType",) +__all__ = ("InteractionLimitType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0109.py b/githubkit/versions/v2022_11_28/types/group_0109.py index b543edc58..2d5d28056 100644 --- a/githubkit/versions/v2022_11_28/types/group_0109.py +++ b/githubkit/versions/v2022_11_28/types/group_0109.py @@ -12,32 +12,21 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0064 import OrganizationSimpleType +class OrganizationCreateIssueTypeType(TypedDict): + """OrganizationCreateIssueType""" -class OrgMembershipType(TypedDict): - """Org Membership + name: str + is_enabled: bool + description: NotRequired[Union[str, None]] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] - 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__ = ("OrganizationCreateIssueTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0110.py b/githubkit/versions/v2022_11_28/types/group_0110.py index b0bdc2624..e6f7b909d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0110.py +++ b/githubkit/versions/v2022_11_28/types/group_0110.py @@ -9,38 +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_0003 import SimpleUserType -from .group_0020 import RepositoryType - - -class MigrationType(TypedDict): - """Migration - - A migration. - """ - - id: int - owner: Union[None, SimpleUserType] - guid: str - state: str - lock_repositories: bool - exclude_metadata: bool - exclude_git_data: bool - exclude_attachments: bool - exclude_releases: bool - exclude_owner_projects: bool - org_metadata_only: bool - repositories: list[RepositoryType] - url: str - created_at: datetime - updated_at: datetime - node_id: str - archive_url: NotRequired[str] - exclude: NotRequired[list[str]] - - -__all__ = ("MigrationType",) + +class OrganizationUpdateIssueTypeType(TypedDict): + """OrganizationUpdateIssueType""" + + name: str + is_enabled: bool + description: NotRequired[Union[str, None]] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] + + +__all__ = ("OrganizationUpdateIssueTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0111.py b/githubkit/versions/v2022_11_28/types/group_0111.py index fb3b706a0..4a18f133b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0111.py +++ b/githubkit/versions/v2022_11_28/types/group_0111.py @@ -9,42 +9,37 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0066 import OrganizationSimpleType -class OrganizationRoleType(TypedDict): - """Organization Role +class OrgMembershipType(TypedDict): + """Org Membership - Organization roles + Org Membership """ - 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 + url: str + state: Literal["active", "pending"] + role: Literal["admin", "member", "billing_manager"] + direct_membership: NotRequired[bool] + enterprise_teams_providing_indirect_membership: NotRequired[list[str]] + organization_url: str + organization: OrganizationSimpleType + user: Union[None, SimpleUserType] + permissions: NotRequired[OrgMembershipPropPermissionsType] -class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): - """OrgsOrgOrganizationRolesGetResponse200""" +class OrgMembershipPropPermissionsType(TypedDict): + """OrgMembershipPropPermissions""" - total_count: NotRequired[int] - roles: NotRequired[list[OrganizationRoleType]] + can_create_repository: bool __all__ = ( - "OrganizationRoleType", - "OrgsOrgOrganizationRolesGetResponse200Type", + "OrgMembershipPropPermissionsType", + "OrgMembershipType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0112.py b/githubkit/versions/v2022_11_28/types/group_0112.py index 53e39e707..b0bdc2624 100644 --- a/githubkit/versions/v2022_11_28/types/group_0112.py +++ b/githubkit/versions/v2022_11_28/types/group_0112.py @@ -9,46 +9,38 @@ 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_0083 import TeamSimpleType +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class TeamRoleAssignmentType(TypedDict): - """A Role Assignment for a Team +class MigrationType(TypedDict): + """Migration - The Relationship a Team has with a role. + A migration. """ - 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] + 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 - 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 + created_at: datetime + updated_at: datetime + node_id: str + archive_url: NotRequired[str] + exclude: NotRequired[list[str]] -__all__ = ( - "TeamRoleAssignmentPropPermissionsType", - "TeamRoleAssignmentType", -) +__all__ = ("MigrationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0113.py b/githubkit/versions/v2022_11_28/types/group_0113.py index 2f5d923ad..fb3b706a0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0113.py +++ b/githubkit/versions/v2022_11_28/types/group_0113.py @@ -9,42 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0083 import TeamSimpleType +from .group_0003 import SimpleUserType -class UserRoleAssignmentType(TypedDict): - """A Role Assignment for a User +class OrganizationRoleType(TypedDict): + """Organization Role - The Relationship a User has with a role. + Organization roles """ - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - inherited_from: NotRequired[list[TeamSimpleType]] - name: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - login: str id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - starred_at: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("UserRoleAssignmentType",) + name: str + description: NotRequired[Union[str, None]] + base_role: NotRequired[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] + ] + source: NotRequired[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] + ] + permissions: list[str] + organization: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + + +class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): + """OrgsOrgOrganizationRolesGetResponse200""" + + total_count: NotRequired[int] + roles: NotRequired[list[OrganizationRoleType]] + + +__all__ = ( + "OrganizationRoleType", + "OrgsOrgOrganizationRolesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0114.py b/githubkit/versions/v2022_11_28/types/group_0114.py index 9b4b7ff6c..7ccdbaf5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0114.py +++ b/githubkit/versions/v2022_11_28/types/group_0114.py @@ -9,53 +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_0085 import TeamSimpleType -class PackageVersionType(TypedDict): - """Package Version - A version of a software package +class TeamRoleAssignmentType(TypedDict): + """A Role Assignment for a Team + + The Relationship a Team has with a role. """ + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] id: int + node_id: str name: str + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] url: str - 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] + html_url: str + members_url: str + repositories_url: str + parent: Union[None, TeamSimpleType] -class PackageVersionPropMetadataPropDockerType(TypedDict): - """Docker Metadata""" +class TeamRoleAssignmentPropPermissionsType(TypedDict): + """TeamRoleAssignmentPropPermissions""" - tag: NotRequired[list[str]] + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool __all__ = ( - "PackageVersionPropMetadataPropContainerType", - "PackageVersionPropMetadataPropDockerType", - "PackageVersionPropMetadataType", - "PackageVersionType", + "TeamRoleAssignmentPropPermissionsType", + "TeamRoleAssignmentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0115.py b/githubkit/versions/v2022_11_28/types/group_0115.py index 4979cd78c..37ea4d49c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0115.py +++ b/githubkit/versions/v2022_11_28/types/group_0115.py @@ -9,75 +9,42 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0085 import TeamSimpleType -class OrganizationProgrammaticAccessGrantRequestType(TypedDict): - """Simple Organization Programmatic Access Grant Request +class UserRoleAssignmentType(TypedDict): + """A Role Assignment for a User - Minimal representation of an organization programmatic access grant request for - enumerations + The Relationship a User has with a role. """ + 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 - 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", -) + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + starred_at: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("UserRoleAssignmentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0116.py b/githubkit/versions/v2022_11_28/types/group_0116.py index 54bd740d2..9b4b7ff6c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0116.py +++ b/githubkit/versions/v2022_11_28/types/group_0116.py @@ -9,72 +9,53 @@ 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 +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class PackageVersionType(TypedDict): + """Package Version -class OrganizationProgrammaticAccessGrantType(TypedDict): - """Organization Programmatic Access Grant - - Minimal representation of an organization programmatic access grant for - enumerations + A version of a software package """ 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. - """ + 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] - organization: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType - ] - other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] +class PackageVersionPropMetadataType(TypedDict): + """Package Version Metadata""" -OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization -""" + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + container: NotRequired[PackageVersionPropMetadataPropContainerType] + docker: NotRequired[PackageVersionPropMetadataPropDockerType] -OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository -""" +class PackageVersionPropMetadataPropContainerType(TypedDict): + """Container Metadata""" + tags: list[str] -OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther -""" + +class PackageVersionPropMetadataPropDockerType(TypedDict): + """Docker Metadata""" + + tag: NotRequired[list[str]] __all__ = ( - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantPropPermissionsType", - "OrganizationProgrammaticAccessGrantType", + "PackageVersionPropMetadataPropContainerType", + "PackageVersionPropMetadataPropDockerType", + "PackageVersionPropMetadataType", + "PackageVersionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0117.py b/githubkit/versions/v2022_11_28/types/group_0117.py index a3a79cbc5..4979cd78c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0117.py +++ b/githubkit/versions/v2022_11_28/types/group_0117.py @@ -9,24 +9,75 @@ 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 OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): - """Organization private registry - Private registry configuration for an organization +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. """ - name: str - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] - username: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] - created_at: datetime - updated_at: datetime + 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__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", + "OrganizationProgrammaticAccessGrantRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0118.py b/githubkit/versions/v2022_11_28/types/group_0118.py index 9f42888f5..54bd740d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0118.py +++ b/githubkit/versions/v2022_11_28/types/group_0118.py @@ -9,34 +9,72 @@ 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_0003 import SimpleUserType -class ProjectType(TypedDict): - """Project +class OrganizationProgrammaticAccessGrantType(TypedDict): + """Organization Programmatic Access Grant - Projects are a way to organize columns and cards of work. + Minimal representation of an organization programmatic access grant for + enumerations """ - 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",) + 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/v2022_11_28/types/group_0119.py b/githubkit/versions/v2022_11_28/types/group_0119.py index 0ddc5174c..4a4e90682 100644 --- a/githubkit/versions/v2022_11_28/types/group_0119.py +++ b/githubkit/versions/v2022_11_28/types/group_0119.py @@ -9,27 +9,40 @@ 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 OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): + """Organization private registry - Custom property defined on an organization + Private registry configuration for an organization """ - 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"]] + name: str + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", ] + username: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] + created_at: datetime + updated_at: datetime -__all__ = ("CustomPropertyType",) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0120.py b/githubkit/versions/v2022_11_28/types/group_0120.py index 1a1a48cd7..9f42888f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0120.py +++ b/githubkit/versions/v2022_11_28/types/group_0120.py @@ -9,24 +9,34 @@ 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 CustomPropertySetPayloadType(TypedDict): - """Custom Property Set Payload - 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]] - values_editable_by: NotRequired[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] - ] +class ProjectType(TypedDict): + """Project + Projects are a way to organize columns and cards of work. + """ -__all__ = ("CustomPropertySetPayloadType",) + owner_url: str + url: str + html_url: str + columns_url: str + id: int + node_id: str + name: str + body: Union[str, None] + number: int + state: str + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] + + +__all__ = ("ProjectType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0121.py b/githubkit/versions/v2022_11_28/types/group_0121.py index c3784542a..0ddc5174c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0121.py +++ b/githubkit/versions/v2022_11_28/types/group_0121.py @@ -9,18 +9,27 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class CustomPropertyValueType(TypedDict): - """Custom Property Value +class CustomPropertyType(TypedDict): + """Organization Custom Property - Custom property name and associated value + Custom property defined on an organization """ property_name: str - value: Union[str, list[str], None] - - -__all__ = ("CustomPropertyValueType",) + 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__ = ("CustomPropertyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0122.py b/githubkit/versions/v2022_11_28/types/group_0122.py index 612f2dcca..1a1a48cd7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0122.py +++ b/githubkit/versions/v2022_11_28/types/group_0122.py @@ -9,21 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0121 import CustomPropertyValueType +class CustomPropertySetPayloadType(TypedDict): + """Custom Property Set Payload -class OrgRepoCustomPropertyValuesType(TypedDict): - """Organization Repository Custom Property Values - - List of custom property values for a repository + Custom property set payload """ - repository_id: int - repository_name: str - repository_full_name: str - properties: list[CustomPropertyValueType] + 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__ = ("OrgRepoCustomPropertyValuesType",) +__all__ = ("CustomPropertySetPayloadType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0123.py b/githubkit/versions/v2022_11_28/types/group_0123.py index cac6eb986..c3784542a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0123.py +++ b/githubkit/versions/v2022_11_28/types/group_0123.py @@ -13,16 +13,14 @@ from typing_extensions import TypedDict -class CodeOfConductSimpleType(TypedDict): - """Code Of Conduct Simple +class CustomPropertyValueType(TypedDict): + """Custom Property Value - Code of Conduct Simple + Custom property name and associated value """ - url: str - key: str - name: str - html_url: Union[str, None] + property_name: str + value: Union[str, list[str], None] -__all__ = ("CodeOfConductSimpleType",) +__all__ = ("CustomPropertyValueType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0124.py b/githubkit/versions/v2022_11_28/types/group_0124.py index 27e1c520a..adb4e42ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0124.py +++ b/githubkit/versions/v2022_11_28/types/group_0124.py @@ -9,151 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType -from .group_0020 import RepositoryType -from .group_0060 import SecurityAndAnalysisType -from .group_0123 import CodeOfConductSimpleType +from .group_0123 import CustomPropertyValueType -class FullRepositoryType(TypedDict): - """Full Repository +class OrgRepoCustomPropertyValuesType(TypedDict): + """Organization Repository Custom Property Values - Full Repository + List of custom property values for a 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: 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] + repository_id: int + repository_name: str + repository_full_name: str + properties: list[CustomPropertyValueType] -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__ = ("OrgRepoCustomPropertyValuesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0125.py b/githubkit/versions/v2022_11_28/types/group_0125.py index 48d5f291c..cac6eb986 100644 --- a/githubkit/versions/v2022_11_28/types/group_0125.py +++ b/githubkit/versions/v2022_11_28/types/group_0125.py @@ -9,21 +9,20 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class RepositoryRulesetBypassActorType(TypedDict): - """Repository Ruleset Bypass Actor +class CodeOfConductSimpleType(TypedDict): + """Code Of Conduct Simple - An actor that can bypass rules in a ruleset + Code of Conduct Simple """ - actor_id: NotRequired[Union[int, None]] - actor_type: Literal[ - "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" - ] - bypass_mode: NotRequired[Literal["always", "pull_request"]] + url: str + key: str + name: str + html_url: Union[str, None] -__all__ = ("RepositoryRulesetBypassActorType",) +__all__ = ("CodeOfConductSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0126.py b/githubkit/versions/v2022_11_28/types/group_0126.py index b2f66d69e..65d2d70da 100644 --- a/githubkit/versions/v2022_11_28/types/group_0126.py +++ b/githubkit/versions/v2022_11_28/types/group_0126.py @@ -9,18 +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_0127 import RepositoryRulesetConditionsPropRefNameType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0020 import RepositoryType +from .group_0062 import SecurityAndAnalysisType +from .group_0125 import CodeOfConductSimpleType -class RepositoryRulesetConditionsType(TypedDict): - """Repository ruleset conditions for ref names +class FullRepositoryType(TypedDict): + """Full Repository - Parameters for a repository ruleset ref name condition + Full Repository """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + 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] -__all__ = ("RepositoryRulesetConditionsType",) +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_0127.py b/githubkit/versions/v2022_11_28/types/group_0127.py index bf8990574..48d5f291c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0127.py +++ b/githubkit/versions/v2022_11_28/types/group_0127.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 RepositoryRulesetBypassActorType(TypedDict): + """Repository Ruleset Bypass Actor - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] + An actor that can bypass rules in a ruleset + """ + actor_id: NotRequired[Union[int, None]] + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] + bypass_mode: NotRequired[Literal["always", "pull_request"]] -__all__ = ("RepositoryRulesetConditionsPropRefNameType",) + +__all__ = ("RepositoryRulesetBypassActorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0128.py b/githubkit/versions/v2022_11_28/types/group_0128.py index 828a20531..dd19e465d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0128.py +++ b/githubkit/versions/v2022_11_28/types/group_0128.py @@ -9,22 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0129 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) +from .group_0129 import RepositoryRulesetConditionsPropRefNameType -class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): - """Repository ruleset conditions for repository names +class RepositoryRulesetConditionsType(TypedDict): + """Repository ruleset conditions for ref names - Parameters for a repository name condition + Parameters for a repository ruleset ref name condition """ - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) +__all__ = ("RepositoryRulesetConditionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0129.py b/githubkit/versions/v2022_11_28/types/group_0129.py index f2a6b8a4a..bf8990574 100644 --- a/githubkit/versions/v2022_11_28/types/group_0129.py +++ b/githubkit/versions/v2022_11_28/types/group_0129.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" +class RepositoryRulesetConditionsPropRefNameType(TypedDict): + """RepositoryRulesetConditionsPropRefName""" include: NotRequired[list[str]] exclude: NotRequired[list[str]] - protected: NotRequired[bool] -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) +__all__ = ("RepositoryRulesetConditionsPropRefNameType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0130.py b/githubkit/versions/v2022_11_28/types/group_0130.py index 8b78b7b34..85cf7b92b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0130.py +++ b/githubkit/versions/v2022_11_28/types/group_0130.py @@ -12,17 +12,19 @@ from typing_extensions import TypedDict from .group_0131 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) -class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): - """Repository ruleset conditions for repository IDs +class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): + """Repository ruleset conditions for repository names - Parameters for a repository ID condition + Parameters for a repository name condition """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0131.py b/githubkit/versions/v2022_11_28/types/group_0131.py index ab014ee2b..f2a6b8a4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0131.py +++ b/githubkit/versions/v2022_11_28/types/group_0131.py @@ -12,10 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - repository_ids: NotRequired[list[int]] + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] + protected: NotRequired[bool] -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0132.py b/githubkit/versions/v2022_11_28/types/group_0132.py index 1c24c3f15..332722e13 100644 --- a/githubkit/versions/v2022_11_28/types/group_0132.py +++ b/githubkit/versions/v2022_11_28/types/group_0132.py @@ -12,19 +12,17 @@ from typing_extensions import TypedDict from .group_0133 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) -class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): - """Repository ruleset conditions for repository properties +class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): + """Repository ruleset conditions for repository IDs - Parameters for a repository property condition + Parameters for a repository ID condition """ - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType - ) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0133.py b/githubkit/versions/v2022_11_28/types/group_0133.py index 57df7a1f1..ab014ee2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0133.py +++ b/githubkit/versions/v2022_11_28/types/group_0133.py @@ -9,31 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( - TypedDict -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - include: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] - exclude: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] + repository_ids: NotRequired[list[int]] -class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): - """Repository ruleset property targeting definition - - Parameters for a targeting a repository property - """ - - name: str - property_values: list[str] - source: NotRequired[Literal["custom", "system"]] - - -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpecType", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0134.py b/githubkit/versions/v2022_11_28/types/group_0134.py index 62b3a814b..9a820dbca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0134.py +++ b/githubkit/versions/v2022_11_28/types/group_0134.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0127 import RepositoryRulesetConditionsPropRefNameType -from .group_0129 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +from .group_0135 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) -class OrgRulesetConditionsOneof0Type(TypedDict): - """repository_name_and_ref_name +class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): + """Repository ruleset conditions for repository properties - Conditions to target repositories by name and refs by name + Parameters for a repository property condition """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType ) -__all__ = ("OrgRulesetConditionsOneof0Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0135.py b/githubkit/versions/v2022_11_28/types/group_0135.py index 198f4ffb6..57df7a1f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0135.py +++ b/githubkit/versions/v2022_11_28/types/group_0135.py @@ -9,22 +9,31 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0127 import RepositoryRulesetConditionsPropRefNameType -from .group_0131 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( + TypedDict +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" + + include: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] + exclude: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] -class OrgRulesetConditionsOneof1Type(TypedDict): - """repository_id_and_ref_name - Conditions to target repositories by id and refs by name +class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): + """Repository ruleset property targeting definition + + Parameters for a targeting a repository property """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + name: str + property_values: list[str] + source: NotRequired[Literal["custom", "system"]] -__all__ = ("OrgRulesetConditionsOneof1Type",) +__all__ = ( + "RepositoryRulesetConditionsRepositoryPropertySpecType", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0136.py b/githubkit/versions/v2022_11_28/types/group_0136.py index bee28cd0f..8b96038db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0136.py +++ b/githubkit/versions/v2022_11_28/types/group_0136.py @@ -11,22 +11,22 @@ from typing_extensions import NotRequired, TypedDict -from .group_0127 import RepositoryRulesetConditionsPropRefNameType -from .group_0133 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +from .group_0129 import RepositoryRulesetConditionsPropRefNameType +from .group_0131 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) -class OrgRulesetConditionsOneof2Type(TypedDict): - """repository_property_and_ref_name +class OrgRulesetConditionsOneof0Type(TypedDict): + """repository_name_and_ref_name - Conditions to target repositories by property and refs by name + Conditions to target repositories by name and refs by name """ ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType ) -__all__ = ("OrgRulesetConditionsOneof2Type",) +__all__ = ("OrgRulesetConditionsOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0137.py b/githubkit/versions/v2022_11_28/types/group_0137.py index 31548ad70..ee2172d5a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0137.py +++ b/githubkit/versions/v2022_11_28/types/group_0137.py @@ -9,49 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, 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"] +from .group_0129 import RepositoryRulesetConditionsPropRefNameType +from .group_0133 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, +) -class RepositoryRuleNonFastForwardType(TypedDict): - """non_fast_forward +class OrgRulesetConditionsOneof1Type(TypedDict): + """repository_id_and_ref_name - Prevent users with push access from force pushing to refs. + Conditions to target repositories by id and refs by name """ - type: Literal["non_fast_forward"] + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -__all__ = ( - "RepositoryRuleCreationType", - "RepositoryRuleDeletionType", - "RepositoryRuleNonFastForwardType", - "RepositoryRuleRequiredSignaturesType", -) +__all__ = ("OrgRulesetConditionsOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0138.py b/githubkit/versions/v2022_11_28/types/group_0138.py index c4c96b951..0c9e73a59 100644 --- a/githubkit/versions/v2022_11_28/types/group_0138.py +++ b/githubkit/versions/v2022_11_28/types/group_0138.py @@ -9,20 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0139 import RepositoryRuleUpdatePropParametersType +from .group_0129 import RepositoryRulesetConditionsPropRefNameType +from .group_0135 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class RepositoryRuleUpdateType(TypedDict): - """update +class OrgRulesetConditionsOneof2Type(TypedDict): + """repository_property_and_ref_name - Only allow users with bypass permission to update matching refs. + Conditions to target repositories by property and refs by name """ - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) -__all__ = ("RepositoryRuleUpdateType",) +__all__ = ("OrgRulesetConditionsOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0139.py b/githubkit/versions/v2022_11_28/types/group_0139.py index 4de519b89..31548ad70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0139.py +++ b/githubkit/versions/v2022_11_28/types/group_0139.py @@ -9,13 +9,49 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class RepositoryRuleUpdatePropParametersType(TypedDict): - """RepositoryRuleUpdatePropParameters""" +class RepositoryRuleCreationType(TypedDict): + """creation - update_allows_fetch_and_merge: bool + Only allow users with bypass permission to create matching refs. + """ + type: Literal["creation"] -__all__ = ("RepositoryRuleUpdatePropParametersType",) + +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"] + + +__all__ = ( + "RepositoryRuleCreationType", + "RepositoryRuleDeletionType", + "RepositoryRuleNonFastForwardType", + "RepositoryRuleRequiredSignaturesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0140.py b/githubkit/versions/v2022_11_28/types/group_0140.py index c531884ff..3f97c0ee4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0140.py +++ b/githubkit/versions/v2022_11_28/types/group_0140.py @@ -10,16 +10,19 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0141 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleRequiredLinearHistoryType(TypedDict): - """required_linear_history - Prevent merge commits from being pushed to matching refs. +class RepositoryRuleUpdateType(TypedDict): + """update + + Only allow users with bypass permission to update matching refs. """ - type: Literal["required_linear_history"] + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] -__all__ = ("RepositoryRuleRequiredLinearHistoryType",) +__all__ = ("RepositoryRuleUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0141.py b/githubkit/versions/v2022_11_28/types/group_0141.py index cd47fbb63..4de519b89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0141.py +++ b/githubkit/versions/v2022_11_28/types/group_0141.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0142 import RepositoryRuleMergeQueuePropParametersType +class RepositoryRuleUpdatePropParametersType(TypedDict): + """RepositoryRuleUpdatePropParameters""" -class RepositoryRuleMergeQueueType(TypedDict): - """merge_queue + update_allows_fetch_and_merge: bool - Merges must be performed via a merge queue. - """ - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] - - -__all__ = ("RepositoryRuleMergeQueueType",) +__all__ = ("RepositoryRuleUpdatePropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0142.py b/githubkit/versions/v2022_11_28/types/group_0142.py index 4d32d8491..c531884ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0142.py +++ b/githubkit/versions/v2022_11_28/types/group_0142.py @@ -13,16 +13,13 @@ from typing_extensions import TypedDict -class RepositoryRuleMergeQueuePropParametersType(TypedDict): - """RepositoryRuleMergeQueuePropParameters""" +class RepositoryRuleRequiredLinearHistoryType(TypedDict): + """required_linear_history - 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 + Prevent merge commits from being pushed to matching refs. + """ + type: Literal["required_linear_history"] -__all__ = ("RepositoryRuleMergeQueuePropParametersType",) + +__all__ = ("RepositoryRuleRequiredLinearHistoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0143.py b/githubkit/versions/v2022_11_28/types/group_0143.py index be6731ac4..a9eb451e0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0143.py +++ b/githubkit/versions/v2022_11_28/types/group_0143.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0144 import RepositoryRuleRequiredDeploymentsPropParametersType +from .group_0144 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRuleRequiredDeploymentsType(TypedDict): - """required_deployments +class RepositoryRuleMergeQueueType(TypedDict): + """merge_queue - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + Merges must be performed via a merge queue. """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + type: Literal["merge_queue"] + parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] -__all__ = ("RepositoryRuleRequiredDeploymentsType",) +__all__ = ("RepositoryRuleMergeQueueType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0144.py b/githubkit/versions/v2022_11_28/types/group_0144.py index ef0c8d1d9..4d32d8491 100644 --- a/githubkit/versions/v2022_11_28/types/group_0144.py +++ b/githubkit/versions/v2022_11_28/types/group_0144.py @@ -9,13 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleMergeQueuePropParametersType(TypedDict): + """RepositoryRuleMergeQueuePropParameters""" - required_deployment_environments: list[str] + 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__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) +__all__ = ("RepositoryRuleMergeQueuePropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0145.py b/githubkit/versions/v2022_11_28/types/group_0145.py index beedb5329..e84a7c88c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0145.py +++ b/githubkit/versions/v2022_11_28/types/group_0145.py @@ -10,32 +10,20 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0146 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): - """RequiredReviewerConfiguration - A reviewing team, and file patterns describing which files they must approve - changes to. - """ - - file_patterns: list[str] - minimum_approvals: int - reviewer: RepositoryRuleParamsReviewerType - - -class RepositoryRuleParamsReviewerType(TypedDict): - """Reviewer +class RepositoryRuleRequiredDeploymentsType(TypedDict): + """required_deployments - A required reviewing team + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. """ - id: int - type: Literal["Team"] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] -__all__ = ( - "RepositoryRuleParamsRequiredReviewerConfigurationType", - "RepositoryRuleParamsReviewerType", -) +__all__ = ("RepositoryRuleRequiredDeploymentsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0146.py b/githubkit/versions/v2022_11_28/types/group_0146.py index 8efbe83e0..ef0c8d1d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0146.py +++ b/githubkit/versions/v2022_11_28/types/group_0146.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_0147 import RepositoryRulePullRequestPropParametersType +class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): + """RepositoryRuleRequiredDeploymentsPropParameters""" -class RepositoryRulePullRequestType(TypedDict): - """pull_request + required_deployment_environments: list[str] - 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__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0147.py b/githubkit/versions/v2022_11_28/types/group_0147.py index 1543217d1..beedb5329 100644 --- a/githubkit/versions/v2022_11_28/types/group_0147.py +++ b/githubkit/versions/v2022_11_28/types/group_0147.py @@ -10,19 +10,32 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class RepositoryRulePullRequestPropParametersType(TypedDict): - """RepositoryRulePullRequestPropParameters""" +class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): + """RequiredReviewerConfiguration - allowed_merge_methods: NotRequired[list[Literal["merge", "squash", "rebase"]]] - automatic_copilot_code_review_enabled: NotRequired[bool] - dismiss_stale_reviews_on_push: bool - require_code_owner_review: bool - require_last_push_approval: bool - required_approving_review_count: int - required_review_thread_resolution: bool + A reviewing team, and file patterns describing which files they must approve + changes to. + """ + file_patterns: list[str] + minimum_approvals: int + reviewer: RepositoryRuleParamsReviewerType -__all__ = ("RepositoryRulePullRequestPropParametersType",) + +class RepositoryRuleParamsReviewerType(TypedDict): + """Reviewer + + A required reviewing team + """ + + id: int + type: Literal["Team"] + + +__all__ = ( + "RepositoryRuleParamsRequiredReviewerConfigurationType", + "RepositoryRuleParamsReviewerType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0148.py b/githubkit/versions/v2022_11_28/types/group_0148.py index 0e23dcd59..9d8e2565d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0148.py +++ b/githubkit/versions/v2022_11_28/types/group_0148.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0149 import RepositoryRuleRequiredStatusChecksPropParametersType +from .group_0149 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleRequiredStatusChecksType(TypedDict): - """required_status_checks +class RepositoryRulePullRequestType(TypedDict): + """pull_request - 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. + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. """ - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] -__all__ = ("RepositoryRuleRequiredStatusChecksType",) +__all__ = ("RepositoryRulePullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0149.py b/githubkit/versions/v2022_11_28/types/group_0149.py index 82ebfc8c9..1543217d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0149.py +++ b/githubkit/versions/v2022_11_28/types/group_0149.py @@ -9,28 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRulePullRequestPropParametersType(TypedDict): + """RepositoryRulePullRequestPropParameters""" - do_not_enforce_on_create: NotRequired[bool] - required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] - strict_required_status_checks_policy: bool + allowed_merge_methods: NotRequired[list[Literal["merge", "squash", "rebase"]]] + automatic_copilot_code_review_enabled: NotRequired[bool] + dismiss_stale_reviews_on_push: bool + require_code_owner_review: bool + require_last_push_approval: bool + required_approving_review_count: int + required_review_thread_resolution: bool -class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): - """StatusCheckConfiguration - - Required status check - """ - - context: str - integration_id: NotRequired[int] - - -__all__ = ( - "RepositoryRuleParamsStatusCheckConfigurationType", - "RepositoryRuleRequiredStatusChecksPropParametersType", -) +__all__ = ("RepositoryRulePullRequestPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0150.py b/githubkit/versions/v2022_11_28/types/group_0150.py index 94bfe28db..76f2dbb95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0150.py +++ b/githubkit/versions/v2022_11_28/types/group_0150.py @@ -12,17 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0151 import RepositoryRuleCommitMessagePatternPropParametersType +from .group_0151 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleCommitMessagePatternType(TypedDict): - """commit_message_pattern +class RepositoryRuleRequiredStatusChecksType(TypedDict): + """required_status_checks - Parameters to be used for the commit_message_pattern rule + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. """ - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] -__all__ = ("RepositoryRuleCommitMessagePatternType",) +__all__ = ("RepositoryRuleRequiredStatusChecksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0151.py b/githubkit/versions/v2022_11_28/types/group_0151.py index b6fc6932b..82ebfc8c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0151.py +++ b/githubkit/versions/v2022_11_28/types/group_0151.py @@ -9,17 +9,28 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): - """RepositoryRuleCommitMessagePatternPropParameters""" +class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): + """RepositoryRuleRequiredStatusChecksPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str + do_not_enforce_on_create: NotRequired[bool] + required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] + strict_required_status_checks_policy: bool -__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) +class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): + """StatusCheckConfiguration + + Required status check + """ + + context: str + integration_id: NotRequired[int] + + +__all__ = ( + "RepositoryRuleParamsStatusCheckConfigurationType", + "RepositoryRuleRequiredStatusChecksPropParametersType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0152.py b/githubkit/versions/v2022_11_28/types/group_0152.py index f01a930b7..bd3e1b911 100644 --- a/githubkit/versions/v2022_11_28/types/group_0152.py +++ b/githubkit/versions/v2022_11_28/types/group_0152.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0153 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +from .group_0153 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): - """commit_author_email_pattern +class RepositoryRuleCommitMessagePatternType(TypedDict): + """commit_message_pattern - Parameters to be used for the commit_author_email_pattern rule + Parameters to be used for the commit_message_pattern rule """ - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] -__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) +__all__ = ("RepositoryRuleCommitMessagePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0153.py b/githubkit/versions/v2022_11_28/types/group_0153.py index d6712bb18..b6fc6932b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0153.py +++ b/githubkit/versions/v2022_11_28/types/group_0153.py @@ -13,8 +13,8 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" +class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): + """RepositoryRuleCommitMessagePatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0154.py b/githubkit/versions/v2022_11_28/types/group_0154.py index e686850dd..70c0321f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0154.py +++ b/githubkit/versions/v2022_11_28/types/group_0154.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0155 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0155 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleCommitterEmailPatternType(TypedDict): - """committer_email_pattern +class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): + """commit_author_email_pattern - Parameters to be used for the committer_email_pattern rule + Parameters to be used for the commit_author_email_pattern rule """ - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] -__all__ = ("RepositoryRuleCommitterEmailPatternType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0155.py b/githubkit/versions/v2022_11_28/types/group_0155.py index a6567de4b..d6712bb18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0155.py +++ b/githubkit/versions/v2022_11_28/types/group_0155.py @@ -13,8 +13,8 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitterEmailPatternPropParameters""" +class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0156.py b/githubkit/versions/v2022_11_28/types/group_0156.py index 9411371c9..f2ad51717 100644 --- a/githubkit/versions/v2022_11_28/types/group_0156.py +++ b/githubkit/versions/v2022_11_28/types/group_0156.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0157 import RepositoryRuleBranchNamePatternPropParametersType +from .group_0157 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleBranchNamePatternType(TypedDict): - """branch_name_pattern +class RepositoryRuleCommitterEmailPatternType(TypedDict): + """committer_email_pattern - Parameters to be used for the branch_name_pattern rule + Parameters to be used for the committer_email_pattern rule """ - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] -__all__ = ("RepositoryRuleBranchNamePatternType",) +__all__ = ("RepositoryRuleCommitterEmailPatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0157.py b/githubkit/versions/v2022_11_28/types/group_0157.py index da29fc42d..a6567de4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0157.py +++ b/githubkit/versions/v2022_11_28/types/group_0157.py @@ -13,8 +13,8 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): - """RepositoryRuleBranchNamePatternPropParameters""" +class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitterEmailPatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0158.py b/githubkit/versions/v2022_11_28/types/group_0158.py index 2b2660b35..d1c26bd86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0158.py +++ b/githubkit/versions/v2022_11_28/types/group_0158.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0159 import RepositoryRuleTagNamePatternPropParametersType +from .group_0159 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleTagNamePatternType(TypedDict): - """tag_name_pattern +class RepositoryRuleBranchNamePatternType(TypedDict): + """branch_name_pattern - Parameters to be used for the tag_name_pattern rule + Parameters to be used for the branch_name_pattern rule """ - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] -__all__ = ("RepositoryRuleTagNamePatternType",) +__all__ = ("RepositoryRuleBranchNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0159.py b/githubkit/versions/v2022_11_28/types/group_0159.py index cbfa3546b..da29fc42d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0159.py +++ b/githubkit/versions/v2022_11_28/types/group_0159.py @@ -13,8 +13,8 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleTagNamePatternPropParametersType(TypedDict): - """RepositoryRuleTagNamePatternPropParameters""" +class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): + """RepositoryRuleBranchNamePatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleTagNamePatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) +__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0160.py b/githubkit/versions/v2022_11_28/types/group_0160.py index 4d4a585ce..b27fa1901 100644 --- a/githubkit/versions/v2022_11_28/types/group_0160.py +++ b/githubkit/versions/v2022_11_28/types/group_0160.py @@ -12,19 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0161 import RepositoryRuleFilePathRestrictionPropParametersType +from .group_0161 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleFilePathRestrictionType(TypedDict): - """file_path_restriction +class RepositoryRuleTagNamePatternType(TypedDict): + """tag_name_pattern - Prevent commits that include changes in specified file and folder paths from - being pushed to the commit graph. This includes absolute paths that contain file - names. + Parameters to be used for the tag_name_pattern rule """ - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] -__all__ = ("RepositoryRuleFilePathRestrictionType",) +__all__ = ("RepositoryRuleTagNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0161.py b/githubkit/versions/v2022_11_28/types/group_0161.py index 7e198ed48..cbfa3546b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0161.py +++ b/githubkit/versions/v2022_11_28/types/group_0161.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleFilePathRestrictionPropParametersType(TypedDict): - """RepositoryRuleFilePathRestrictionPropParameters""" +class RepositoryRuleTagNamePatternPropParametersType(TypedDict): + """RepositoryRuleTagNamePatternPropParameters""" - restricted_file_paths: list[str] + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str -__all__ = ("RepositoryRuleFilePathRestrictionPropParametersType",) +__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0162.py b/githubkit/versions/v2022_11_28/types/group_0162.py index cc88bca52..f75f93ee5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0162.py +++ b/githubkit/versions/v2022_11_28/types/group_0162.py @@ -12,18 +12,19 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0163 import RepositoryRuleMaxFilePathLengthPropParametersType +from .group_0163 import RepositoryRuleFilePathRestrictionPropParametersType -class RepositoryRuleMaxFilePathLengthType(TypedDict): - """max_file_path_length +class RepositoryRuleFilePathRestrictionType(TypedDict): + """file_path_restriction - Prevent commits that include file paths that exceed the specified character - limit from being pushed to the commit graph. + Prevent commits that include changes in specified file and folder paths from + being pushed to the commit graph. This includes absolute paths that contain file + names. """ - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] -__all__ = ("RepositoryRuleMaxFilePathLengthType",) +__all__ = ("RepositoryRuleFilePathRestrictionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0163.py b/githubkit/versions/v2022_11_28/types/group_0163.py index 7f4773214..7e198ed48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0163.py +++ b/githubkit/versions/v2022_11_28/types/group_0163.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class RepositoryRuleMaxFilePathLengthPropParametersType(TypedDict): - """RepositoryRuleMaxFilePathLengthPropParameters""" +class RepositoryRuleFilePathRestrictionPropParametersType(TypedDict): + """RepositoryRuleFilePathRestrictionPropParameters""" - max_file_path_length: int + restricted_file_paths: list[str] -__all__ = ("RepositoryRuleMaxFilePathLengthPropParametersType",) +__all__ = ("RepositoryRuleFilePathRestrictionPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0164.py b/githubkit/versions/v2022_11_28/types/group_0164.py index 667400cd7..e6820e06e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0164.py +++ b/githubkit/versions/v2022_11_28/types/group_0164.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0165 import RepositoryRuleFileExtensionRestrictionPropParametersType +from .group_0165 import RepositoryRuleMaxFilePathLengthPropParametersType -class RepositoryRuleFileExtensionRestrictionType(TypedDict): - """file_extension_restriction +class RepositoryRuleMaxFilePathLengthType(TypedDict): + """max_file_path_length - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Prevent commits that include file paths that exceed the specified character + limit from being pushed to the commit graph. """ - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] -__all__ = ("RepositoryRuleFileExtensionRestrictionType",) +__all__ = ("RepositoryRuleMaxFilePathLengthType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0165.py b/githubkit/versions/v2022_11_28/types/group_0165.py index e8886bc56..7f4773214 100644 --- a/githubkit/versions/v2022_11_28/types/group_0165.py +++ b/githubkit/versions/v2022_11_28/types/group_0165.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class RepositoryRuleFileExtensionRestrictionPropParametersType(TypedDict): - """RepositoryRuleFileExtensionRestrictionPropParameters""" +class RepositoryRuleMaxFilePathLengthPropParametersType(TypedDict): + """RepositoryRuleMaxFilePathLengthPropParameters""" - restricted_file_extensions: list[str] + max_file_path_length: int -__all__ = ("RepositoryRuleFileExtensionRestrictionPropParametersType",) +__all__ = ("RepositoryRuleMaxFilePathLengthPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0166.py b/githubkit/versions/v2022_11_28/types/group_0166.py index 3dc839b9d..974b22096 100644 --- a/githubkit/versions/v2022_11_28/types/group_0166.py +++ b/githubkit/versions/v2022_11_28/types/group_0166.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0167 import RepositoryRuleMaxFileSizePropParametersType +from .group_0167 import RepositoryRuleFileExtensionRestrictionPropParametersType -class RepositoryRuleMaxFileSizeType(TypedDict): - """max_file_size +class RepositoryRuleFileExtensionRestrictionType(TypedDict): + """file_extension_restriction - Prevent commits with individual files that exceed the specified limit from being + Prevent commits that include files with specified file extensions from being pushed to the commit graph. """ - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] -__all__ = ("RepositoryRuleMaxFileSizeType",) +__all__ = ("RepositoryRuleFileExtensionRestrictionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0167.py b/githubkit/versions/v2022_11_28/types/group_0167.py index f3b12569b..e8886bc56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0167.py +++ b/githubkit/versions/v2022_11_28/types/group_0167.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class RepositoryRuleMaxFileSizePropParametersType(TypedDict): - """RepositoryRuleMaxFileSizePropParameters""" +class RepositoryRuleFileExtensionRestrictionPropParametersType(TypedDict): + """RepositoryRuleFileExtensionRestrictionPropParameters""" - max_file_size: int + restricted_file_extensions: list[str] -__all__ = ("RepositoryRuleMaxFileSizePropParametersType",) +__all__ = ("RepositoryRuleFileExtensionRestrictionPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0168.py b/githubkit/versions/v2022_11_28/types/group_0168.py index 7464769b7..50f1d9bf3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0168.py +++ b/githubkit/versions/v2022_11_28/types/group_0168.py @@ -9,17 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0169 import RepositoryRuleMaxFileSizePropParametersType -class RepositoryRuleParamsRestrictedCommitsType(TypedDict): - """RestrictedCommits - Restricted commit +class RepositoryRuleMaxFileSizeType(TypedDict): + """max_file_size + + Prevent commits with individual files that exceed the specified limit from being + pushed to the commit graph. """ - oid: str - reason: NotRequired[str] + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] -__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) +__all__ = ("RepositoryRuleMaxFileSizeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0169.py b/githubkit/versions/v2022_11_28/types/group_0169.py index 4d0214ddb..f3b12569b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0169.py +++ b/githubkit/versions/v2022_11_28/types/group_0169.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_0170 import RepositoryRuleWorkflowsPropParametersType +class RepositoryRuleMaxFileSizePropParametersType(TypedDict): + """RepositoryRuleMaxFileSizePropParameters""" -class RepositoryRuleWorkflowsType(TypedDict): - """workflows + max_file_size: int - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. - """ - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] - - -__all__ = ("RepositoryRuleWorkflowsType",) +__all__ = ("RepositoryRuleMaxFileSizePropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0170.py b/githubkit/versions/v2022_11_28/types/group_0170.py index c26b4894e..7464769b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0170.py +++ b/githubkit/versions/v2022_11_28/types/group_0170.py @@ -12,26 +12,14 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleWorkflowsPropParametersType(TypedDict): - """RepositoryRuleWorkflowsPropParameters""" +class RepositoryRuleParamsRestrictedCommitsType(TypedDict): + """RestrictedCommits - do_not_enforce_on_create: NotRequired[bool] - workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] - - -class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): - """WorkflowFileReference - - A workflow that must run for this rule to pass + Restricted commit """ - path: str - ref: NotRequired[str] - repository_id: int - sha: NotRequired[str] + oid: str + reason: NotRequired[str] -__all__ = ( - "RepositoryRuleParamsWorkflowFileReferenceType", - "RepositoryRuleWorkflowsPropParametersType", -) +__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0171.py b/githubkit/versions/v2022_11_28/types/group_0171.py index bb987dd3a..f4471bc8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0171.py +++ b/githubkit/versions/v2022_11_28/types/group_0171.py @@ -12,19 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0172 import RepositoryRuleCodeScanningPropParametersType +from .group_0172 import RepositoryRuleWorkflowsPropParametersType -class RepositoryRuleCodeScanningType(TypedDict): - """code_scanning +class RepositoryRuleWorkflowsType(TypedDict): + """workflows - 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. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] -__all__ = ("RepositoryRuleCodeScanningType",) +__all__ = ("RepositoryRuleWorkflowsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0172.py b/githubkit/versions/v2022_11_28/types/group_0172.py index 0ce3aaee0..c26b4894e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0172.py +++ b/githubkit/versions/v2022_11_28/types/group_0172.py @@ -9,30 +9,29 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCodeScanningPropParametersType(TypedDict): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleWorkflowsPropParametersType(TypedDict): + """RepositoryRuleWorkflowsPropParameters""" - code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] + do_not_enforce_on_create: NotRequired[bool] + workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] -class RepositoryRuleParamsCodeScanningToolType(TypedDict): - """CodeScanningTool +class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): + """WorkflowFileReference - A tool that must provide code scanning results for this rule to pass. + A workflow that must run 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 + path: str + ref: NotRequired[str] + repository_id: int + sha: NotRequired[str] __all__ = ( - "RepositoryRuleCodeScanningPropParametersType", - "RepositoryRuleParamsCodeScanningToolType", + "RepositoryRuleParamsWorkflowFileReferenceType", + "RepositoryRuleWorkflowsPropParametersType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0173.py b/githubkit/versions/v2022_11_28/types/group_0173.py index fb356c137..96a750735 100644 --- a/githubkit/versions/v2022_11_28/types/group_0173.py +++ b/githubkit/versions/v2022_11_28/types/group_0173.py @@ -9,120 +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_0125 import RepositoryRulesetBypassActorType -from .group_0126 import RepositoryRulesetConditionsType -from .group_0134 import OrgRulesetConditionsOneof0Type -from .group_0135 import OrgRulesetConditionsOneof1Type -from .group_0136 import OrgRulesetConditionsOneof2Type -from .group_0137 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0138 import RepositoryRuleUpdateType -from .group_0140 import RepositoryRuleRequiredLinearHistoryType -from .group_0141 import RepositoryRuleMergeQueueType -from .group_0143 import RepositoryRuleRequiredDeploymentsType -from .group_0146 import RepositoryRulePullRequestType -from .group_0148 import RepositoryRuleRequiredStatusChecksType -from .group_0150 import RepositoryRuleCommitMessagePatternType -from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0154 import RepositoryRuleCommitterEmailPatternType -from .group_0156 import RepositoryRuleBranchNamePatternType -from .group_0158 import RepositoryRuleTagNamePatternType -from .group_0160 import RepositoryRuleFilePathRestrictionType -from .group_0162 import RepositoryRuleMaxFilePathLengthType -from .group_0164 import RepositoryRuleFileExtensionRestrictionType -from .group_0166 import RepositoryRuleMaxFileSizeType -from .group_0169 import RepositoryRuleWorkflowsType -from .group_0171 import RepositoryRuleCodeScanningType +from .group_0174 import RepositoryRuleCodeScanningPropParametersType -class RepositoryRulesetType(TypedDict): - """Repository ruleset +class RepositoryRuleCodeScanningType(TypedDict): + """code_scanning - A set of rules to apply when specified conditions are met. + 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. """ - id: int - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - source_type: NotRequired[Literal["Repository", "Organization", "Enterprise"]] - source: str - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - current_user_can_bypass: NotRequired[ - Literal["always", "pull_requests_only", "never"] - ] - node_id: NotRequired[str] - links: NotRequired[RepositoryRulesetPropLinksType] - conditions: NotRequired[ - Union[ - RepositoryRulesetConditionsType, - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - None, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] -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__ = ("RepositoryRuleCodeScanningType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0174.py b/githubkit/versions/v2022_11_28/types/group_0174.py index 74f027a0f..0ce3aaee0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0174.py +++ b/githubkit/versions/v2022_11_28/types/group_0174.py @@ -9,25 +9,30 @@ from __future__ import annotations -from datetime import datetime from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class RuleSuitesItemsType(TypedDict): - """RuleSuitesItems""" +class RepositoryRuleCodeScanningPropParametersType(TypedDict): + """RepositoryRuleCodeScanningPropParameters""" - 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"]] + code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] -__all__ = ("RuleSuitesItemsType",) +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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0175.py b/githubkit/versions/v2022_11_28/types/group_0175.py index edb6fa30e..ae25576cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0175.py +++ b/githubkit/versions/v2022_11_28/types/group_0175.py @@ -13,47 +13,116 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class RuleSuiteType(TypedDict): - """Rule Suite - - Response +from .group_0127 import RepositoryRulesetBypassActorType +from .group_0128 import RepositoryRulesetConditionsType +from .group_0136 import OrgRulesetConditionsOneof0Type +from .group_0137 import OrgRulesetConditionsOneof1Type +from .group_0138 import OrgRulesetConditionsOneof2Type +from .group_0139 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0140 import RepositoryRuleUpdateType +from .group_0142 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleMergeQueueType +from .group_0145 import RepositoryRuleRequiredDeploymentsType +from .group_0148 import RepositoryRulePullRequestType +from .group_0150 import RepositoryRuleRequiredStatusChecksType +from .group_0152 import RepositoryRuleCommitMessagePatternType +from .group_0154 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0156 import RepositoryRuleCommitterEmailPatternType +from .group_0158 import RepositoryRuleBranchNamePatternType +from .group_0160 import RepositoryRuleTagNamePatternType +from .group_0162 import RepositoryRuleFilePathRestrictionType +from .group_0164 import RepositoryRuleMaxFilePathLengthType +from .group_0166 import RepositoryRuleFileExtensionRestrictionType +from .group_0168 import RepositoryRuleMaxFileSizeType +from .group_0171 import RepositoryRuleWorkflowsType +from .group_0173 import RepositoryRuleCodeScanningType + + +class RepositoryRulesetType(TypedDict): + """Repository ruleset + + A set of rules to apply when specified conditions are met. """ - 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]] + id: int + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + source_type: NotRequired[Literal["Repository", "Organization", "Enterprise"]] + source: str + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + current_user_can_bypass: NotRequired[ + Literal["always", "pull_requests_only", "never"] + ] + node_id: NotRequired[str] + links: NotRequired[RepositoryRulesetPropLinksType] + conditions: NotRequired[ + Union[ + RepositoryRulesetConditionsType, + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + None, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +class RepositoryRulesetPropLinksType(TypedDict): + """RepositoryRulesetPropLinks""" + + self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] + html: NotRequired[Union[RepositoryRulesetPropLinksPropHtmlType, None]] + + +class RepositoryRulesetPropLinksPropSelfType(TypedDict): + """RepositoryRulesetPropLinksPropSelf""" + + href: NotRequired[str] + + +class RepositoryRulesetPropLinksPropHtmlType(TypedDict): + """RepositoryRulesetPropLinksPropHtml""" + + href: NotRequired[str] __all__ = ( - "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", - "RuleSuitePropRuleEvaluationsItemsType", - "RuleSuiteType", + "RepositoryRulesetPropLinksPropHtmlType", + "RepositoryRulesetPropLinksPropSelfType", + "RepositoryRulesetPropLinksType", + "RepositoryRulesetType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0176.py b/githubkit/versions/v2022_11_28/types/group_0176.py index 54f855e48..74f027a0f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0176.py +++ b/githubkit/versions/v2022_11_28/types/group_0176.py @@ -10,20 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0177 import RulesetVersionPropActorType +class RuleSuitesItemsType(TypedDict): + """RuleSuitesItems""" -class RulesetVersionType(TypedDict): - """Ruleset version + 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"]] - The historical version of a ruleset - """ - version_id: int - actor: RulesetVersionPropActorType - updated_at: datetime - - -__all__ = ("RulesetVersionType",) +__all__ = ("RuleSuitesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0177.py b/githubkit/versions/v2022_11_28/types/group_0177.py index 8966c1c93..edb6fa30e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0177.py +++ b/githubkit/versions/v2022_11_28/types/group_0177.py @@ -9,17 +9,51 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class RulesetVersionPropActorType(TypedDict): - """RulesetVersionPropActor +class RuleSuiteType(TypedDict): + """Rule Suite - The actor who updated the ruleset + 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""" + + 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__ = ("RulesetVersionPropActorType",) +__all__ = ( + "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", + "RuleSuitePropRuleEvaluationsItemsType", + "RuleSuiteType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0178.py b/githubkit/versions/v2022_11_28/types/group_0178.py index 071c46a09..88f984bb7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0178.py +++ b/githubkit/versions/v2022_11_28/types/group_0178.py @@ -12,17 +12,18 @@ from datetime import datetime from typing_extensions import TypedDict -from .group_0177 import RulesetVersionPropActorType -from .group_0180 import RulesetVersionWithStateAllof1PropStateType +from .group_0179 import RulesetVersionPropActorType -class RulesetVersionWithStateType(TypedDict): - """RulesetVersionWithState""" +class RulesetVersionType(TypedDict): + """Ruleset version + + The historical version of a ruleset + """ version_id: int actor: RulesetVersionPropActorType updated_at: datetime - state: RulesetVersionWithStateAllof1PropStateType -__all__ = ("RulesetVersionWithStateType",) +__all__ = ("RulesetVersionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0179.py b/githubkit/versions/v2022_11_28/types/group_0179.py index d8ca98e5c..8966c1c93 100644 --- a/githubkit/versions/v2022_11_28/types/group_0179.py +++ b/githubkit/versions/v2022_11_28/types/group_0179.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0180 import RulesetVersionWithStateAllof1PropStateType +class RulesetVersionPropActorType(TypedDict): + """RulesetVersionPropActor -class RulesetVersionWithStateAllof1Type(TypedDict): - """RulesetVersionWithStateAllof1""" + The actor who updated the ruleset + """ - state: RulesetVersionWithStateAllof1PropStateType + id: NotRequired[int] + type: NotRequired[str] -__all__ = ("RulesetVersionWithStateAllof1Type",) +__all__ = ("RulesetVersionPropActorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0180.py b/githubkit/versions/v2022_11_28/types/group_0180.py index c09a8e009..c4eeda241 100644 --- a/githubkit/versions/v2022_11_28/types/group_0180.py +++ b/githubkit/versions/v2022_11_28/types/group_0180.py @@ -9,14 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict +from .group_0179 import RulesetVersionPropActorType +from .group_0182 import RulesetVersionWithStateAllof1PropStateType -class RulesetVersionWithStateAllof1PropStateType(TypedDict): - """RulesetVersionWithStateAllof1PropState - The state of the ruleset version - """ +class RulesetVersionWithStateType(TypedDict): + """RulesetVersionWithState""" + version_id: int + actor: RulesetVersionPropActorType + updated_at: datetime + state: RulesetVersionWithStateAllof1PropStateType -__all__ = ("RulesetVersionWithStateAllof1PropStateType",) + +__all__ = ("RulesetVersionWithStateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0181.py b/githubkit/versions/v2022_11_28/types/group_0181.py index ef2fcae57..4af88a4e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0181.py +++ b/githubkit/versions/v2022_11_28/types/group_0181.py @@ -9,32 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +from .group_0182 import RulesetVersionWithStateAllof1PropStateType -class RepositoryAdvisoryCreditType(TypedDict): - """RepositoryAdvisoryCredit +class RulesetVersionWithStateAllof1Type(TypedDict): + """RulesetVersionWithStateAllof1""" - A credit given to a user for a repository security advisory. - """ + state: RulesetVersionWithStateAllof1PropStateType - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - state: Literal["accepted", "declined", "pending"] - -__all__ = ("RepositoryAdvisoryCreditType",) +__all__ = ("RulesetVersionWithStateAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0182.py b/githubkit/versions/v2022_11_28/types/group_0182.py index 73e2c655c..c09a8e009 100644 --- a/githubkit/versions/v2022_11_28/types/group_0182.py +++ b/githubkit/versions/v2022_11_28/types/group_0182.py @@ -9,142 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0001 import CvssSeveritiesType -from .group_0003 import SimpleUserType -from .group_0084 import TeamType -from .group_0181 import RepositoryAdvisoryCreditType +class RulesetVersionWithStateAllof1PropStateType(TypedDict): + """RulesetVersionWithStateAllof1PropState -class RepositoryAdvisoryType(TypedDict): - """RepositoryAdvisory - - A repository security advisory. + The state of the ruleset version """ - ghsa_id: str - cve_id: Union[str, None] - url: str - html_url: str - summary: str - description: Union[str, None] - severity: Union[None, Literal["critical", "high", "medium", "low"]] - author: None - publisher: None - identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] - state: Literal["published", "closed", "withdrawn", "draft", "triage"] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - published_at: Union[datetime, None] - closed_at: Union[datetime, None] - withdrawn_at: Union[datetime, None] - submission: Union[RepositoryAdvisoryPropSubmissionType, None] - vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] - cvss: Union[RepositoryAdvisoryPropCvssType, None] - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] - cwe_ids: Union[list[str], None] - credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] - credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] - collaborating_users: Union[list[SimpleUserType], None] - collaborating_teams: Union[list[TeamType], None] - private_fork: None - - -class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): - """RepositoryAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] - value: str - - -class RepositoryAdvisoryPropSubmissionType(TypedDict): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool - - -class RepositoryAdvisoryPropCvssType(TypedDict): - """RepositoryAdvisoryPropCvss""" - - vector_string: Union[str, None] - score: Union[float, None] - - -class RepositoryAdvisoryPropCwesItemsType(TypedDict): - """RepositoryAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class RepositoryAdvisoryPropCreditsItemsType(TypedDict): - """RepositoryAdvisoryPropCreditsItems""" - - login: NotRequired[str] - type: NotRequired[ - Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - ] - - -class RepositoryAdvisoryVulnerabilityType(TypedDict): - """RepositoryAdvisoryVulnerability - - A product affected by the vulnerability detailed in a repository security - advisory. - """ - - package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] - vulnerable_version_range: Union[str, None] - patched_versions: Union[str, None] - vulnerable_functions: Union[list[str], None] - - -class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: Union[str, None] - -__all__ = ( - "RepositoryAdvisoryPropCreditsItemsType", - "RepositoryAdvisoryPropCvssType", - "RepositoryAdvisoryPropCwesItemsType", - "RepositoryAdvisoryPropIdentifiersItemsType", - "RepositoryAdvisoryPropSubmissionType", - "RepositoryAdvisoryType", - "RepositoryAdvisoryVulnerabilityPropPackageType", - "RepositoryAdvisoryVulnerabilityType", -) +__all__ = ("RulesetVersionWithStateAllof1PropStateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0183.py b/githubkit/versions/v2022_11_28/types/group_0183.py index fb14d5d5d..ef2fcae57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0183.py +++ b/githubkit/versions/v2022_11_28/types/group_0183.py @@ -9,39 +9,32 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict - - -class ActionsBillingUsageType(TypedDict): - """ActionsBillingUsage""" - - total_minutes_used: int - total_paid_minutes_used: int - included_minutes: int - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType - - -class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): - """ActionsBillingUsagePropMinutesUsedBreakdown""" - - ubuntu: NotRequired[int] - macos: NotRequired[int] - windows: NotRequired[int] - ubuntu_4_core: NotRequired[int] - ubuntu_8_core: NotRequired[int] - ubuntu_16_core: NotRequired[int] - ubuntu_32_core: NotRequired[int] - ubuntu_64_core: NotRequired[int] - windows_4_core: NotRequired[int] - windows_8_core: NotRequired[int] - windows_16_core: NotRequired[int] - windows_32_core: NotRequired[int] - windows_64_core: NotRequired[int] - macos_12_core: NotRequired[int] - total: NotRequired[int] - - -__all__ = ( - "ActionsBillingUsagePropMinutesUsedBreakdownType", - "ActionsBillingUsageType", -) +from typing import Literal +from typing_extensions import TypedDict + +from .group_0003 import SimpleUserType + + +class RepositoryAdvisoryCreditType(TypedDict): + """RepositoryAdvisoryCredit + + A credit given to a user for a repository security advisory. + """ + + user: SimpleUserType + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + state: Literal["accepted", "declined", "pending"] + + +__all__ = ("RepositoryAdvisoryCreditType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0184.py b/githubkit/versions/v2022_11_28/types/group_0184.py index cac22c41a..0f3b7970f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0184.py +++ b/githubkit/versions/v2022_11_28/types/group_0184.py @@ -9,15 +9,142 @@ 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_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0086 import TeamType +from .group_0183 import RepositoryAdvisoryCreditType -class PackagesBillingUsageType(TypedDict): - """PackagesBillingUsage""" - total_gigabytes_bandwidth_used: int - total_paid_gigabytes_bandwidth_used: int - included_gigabytes_bandwidth: int +class RepositoryAdvisoryType(TypedDict): + """RepositoryAdvisory + A repository security advisory. + """ -__all__ = ("PackagesBillingUsageType",) + ghsa_id: str + cve_id: Union[str, None] + url: str + html_url: str + summary: str + description: Union[str, None] + severity: Union[None, Literal["critical", "high", "medium", "low"]] + author: None + publisher: None + identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] + state: Literal["published", "closed", "withdrawn", "draft", "triage"] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + published_at: Union[datetime, None] + closed_at: Union[datetime, None] + withdrawn_at: Union[datetime, None] + submission: Union[RepositoryAdvisoryPropSubmissionType, None] + vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] + cvss: Union[RepositoryAdvisoryPropCvssType, None] + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] + cwe_ids: Union[list[str], None] + credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] + credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] + collaborating_users: Union[list[SimpleUserType], None] + collaborating_teams: Union[list[TeamType], None] + private_fork: None + + +class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] + value: str + + +class RepositoryAdvisoryPropSubmissionType(TypedDict): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool + + +class RepositoryAdvisoryPropCvssType(TypedDict): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] + score: Union[float, None] + + +class RepositoryAdvisoryPropCwesItemsType(TypedDict): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class RepositoryAdvisoryPropCreditsItemsType(TypedDict): + """RepositoryAdvisoryPropCreditsItems""" + + login: NotRequired[str] + type: NotRequired[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] + + +class RepositoryAdvisoryVulnerabilityType(TypedDict): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + patched_versions: Union[str, None] + vulnerable_functions: Union[list[str], None] + + +class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: Union[str, None] + + +__all__ = ( + "RepositoryAdvisoryPropCreditsItemsType", + "RepositoryAdvisoryPropCvssType", + "RepositoryAdvisoryPropCwesItemsType", + "RepositoryAdvisoryPropIdentifiersItemsType", + "RepositoryAdvisoryPropSubmissionType", + "RepositoryAdvisoryType", + "RepositoryAdvisoryVulnerabilityPropPackageType", + "RepositoryAdvisoryVulnerabilityType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0185.py b/githubkit/versions/v2022_11_28/types/group_0185.py index 15a19a09d..fb14d5d5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0185.py +++ b/githubkit/versions/v2022_11_28/types/group_0185.py @@ -9,15 +9,39 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class CombinedBillingUsageType(TypedDict): - """CombinedBillingUsage""" - - days_left_in_billing_cycle: int - estimated_paid_storage_for_month: int - estimated_storage_for_month: int - - -__all__ = ("CombinedBillingUsageType",) +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/v2022_11_28/types/group_0186.py b/githubkit/versions/v2022_11_28/types/group_0186.py index c2fd7df78..cac22c41a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0186.py +++ b/githubkit/versions/v2022_11_28/types/group_0186.py @@ -9,20 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class NetworkSettingsType(TypedDict): - """Hosted compute network settings resource +class PackagesBillingUsageType(TypedDict): + """PackagesBillingUsage""" - A hosted compute network settings resource. - """ + total_gigabytes_bandwidth_used: int + total_paid_gigabytes_bandwidth_used: int + included_gigabytes_bandwidth: int - id: str - network_configuration_id: NotRequired[str] - name: str - subnet_id: str - region: str - -__all__ = ("NetworkSettingsType",) +__all__ = ("PackagesBillingUsageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0187.py b/githubkit/versions/v2022_11_28/types/group_0187.py index 13d18ee80..15a19a09d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0187.py +++ b/githubkit/versions/v2022_11_28/types/group_0187.py @@ -9,111 +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_0083 import TeamSimpleType +class CombinedBillingUsageType(TypedDict): + """CombinedBillingUsage""" -class TeamFullType(TypedDict): - """Full Team + days_left_in_billing_cycle: int + estimated_paid_storage_for_month: int + estimated_storage_for_month: int - Groups of organization members that gives permissions on specified repositories. - """ - id: int - node_id: str - url: str - html_url: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[Literal["closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: str - members_url: str - repositories_url: str - parent: NotRequired[Union[None, TeamSimpleType]] - members_count: int - repos_count: int - created_at: datetime - updated_at: datetime - organization: TeamOrganizationType - ldap_dn: NotRequired[str] - - -class TeamOrganizationType(TypedDict): - """Team Organization - - Team Organization - """ - - login: str - id: int - node_id: str - url: str - 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__ = ("CombinedBillingUsageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0188.py b/githubkit/versions/v2022_11_28/types/group_0188.py index 3f1c1ba37..c2fd7df78 100644 --- a/githubkit/versions/v2022_11_28/types/group_0188.py +++ b/githubkit/versions/v2022_11_28/types/group_0188.py @@ -9,39 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0044 import ReactionRollupType +class NetworkSettingsType(TypedDict): + """Hosted compute network settings resource -class TeamDiscussionType(TypedDict): - """Team Discussion - - A team discussion is a persistent record of a free-form conversation within a - team. + A hosted compute network settings resource. """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - comments_count: int - comments_url: str - created_at: datetime - last_edited_at: Union[datetime, None] - html_url: str - node_id: str - number: int - pinned: bool - private: bool - team_url: str - title: str - updated_at: datetime - url: str - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TeamDiscussionType",) + id: str + network_configuration_id: NotRequired[str] + name: str + subnet_id: str + region: str + + +__all__ = ("NetworkSettingsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0189.py b/githubkit/versions/v2022_11_28/types/group_0189.py index 565efa676..e59cbedb7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0189.py +++ b/githubkit/versions/v2022_11_28/types/group_0189.py @@ -10,32 +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_0003 import SimpleUserType -from .group_0044 import ReactionRollupType +from .group_0085 import TeamSimpleType -class TeamDiscussionCommentType(TypedDict): - """Team Discussion Comment +class TeamFullType(TypedDict): + """Full Team - A reply to a discussion within a team. + Groups of organization members that gives permissions on specified repositories. """ - 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 + id: int node_id: str - number: int + 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 - reactions: NotRequired[ReactionRollupType] + 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__ = ("TeamDiscussionCommentType",) +__all__ = ( + "TeamFullType", + "TeamOrganizationPropPlanType", + "TeamOrganizationType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0190.py b/githubkit/versions/v2022_11_28/types/group_0190.py index 29fb93bc6..731c19bae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0190.py +++ b/githubkit/versions/v2022_11_28/types/group_0190.py @@ -10,26 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0045 import ReactionRollupType -class ReactionType(TypedDict): - """Reaction +class TeamDiscussionType(TypedDict): + """Team Discussion - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + A team discussion is a persistent record of a free-form conversation within a + team. """ - id: int - node_id: str - user: Union[None, SimpleUserType] - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + 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__ = ("ReactionType",) +__all__ = ("TeamDiscussionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0191.py b/githubkit/versions/v2022_11_28/types/group_0191.py index 201ca0a17..0eb6fe311 100644 --- a/githubkit/versions/v2022_11_28/types/group_0191.py +++ b/githubkit/versions/v2022_11_28/types/group_0191.py @@ -9,19 +9,33 @@ 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 +from .group_0003 import SimpleUserType +from .group_0045 import ReactionRollupType -class TeamMembershipType(TypedDict): - """Team Membership - Team Membership +class TeamDiscussionCommentType(TypedDict): + """Team Discussion Comment + + 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 - role: Literal["member", "maintainer"] - state: Literal["active", "pending"] + reactions: NotRequired[ReactionRollupType] -__all__ = ("TeamMembershipType",) +__all__ = ("TeamDiscussionCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0192.py b/githubkit/versions/v2022_11_28/types/group_0192.py index eac617342..29fb93bc6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0192.py +++ b/githubkit/versions/v2022_11_28/types/group_0192.py @@ -9,45 +9,27 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -class TeamProjectType(TypedDict): - """Team Project +class ReactionType(TypedDict): + """Reaction - A team's access to a project. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - 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", -) + user: Union[None, SimpleUserType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] + created_at: datetime + + +__all__ = ("ReactionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0193.py b/githubkit/versions/v2022_11_28/types/group_0193.py index d648ae260..201ca0a17 100644 --- a/githubkit/versions/v2022_11_28/types/group_0193.py +++ b/githubkit/versions/v2022_11_28/types/group_0193.py @@ -9,122 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType +class TeamMembershipType(TypedDict): + """Team Membership -class TeamRepositoryType(TypedDict): - """Team Repository - - A team's access to a repository. + Team 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] - - -class TeamRepositoryPropPermissionsType(TypedDict): - """TeamRepositoryPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + role: Literal["member", "maintainer"] + state: Literal["active", "pending"] -__all__ = ( - "TeamRepositoryPropPermissionsType", - "TeamRepositoryType", -) +__all__ = ("TeamMembershipType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0194.py b/githubkit/versions/v2022_11_28/types/group_0194.py index fdc7baddd..eac617342 100644 --- a/githubkit/versions/v2022_11_28/types/group_0194.py +++ b/githubkit/versions/v2022_11_28/types/group_0194.py @@ -9,32 +9,45 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -class ProjectCardType(TypedDict): - """Project Card +class TeamProjectType(TypedDict): + """Team Project - Project cards represent a scope of work. + A team's access to a project. """ + owner_url: str url: str + html_url: str + columns_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",) + 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_0195.py b/githubkit/versions/v2022_11_28/types/group_0195.py index d23a9ab67..d648ae260 100644 --- a/githubkit/versions/v2022_11_28/types/group_0195.py +++ b/githubkit/versions/v2022_11_28/types/group_0195.py @@ -10,23 +10,121 @@ 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_0019 import LicenseSimpleType -class ProjectColumnType(TypedDict): - """Project Column - Project columns contain cards of work. +class TeamRepositoryType(TypedDict): + """Team Repository + + A team's access to a repository. """ - url: str - project_url: str - cards_url: str id: int node_id: str name: str - created_at: datetime - updated_at: datetime + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[TeamRepositoryPropPermissionsType] + role_name: NotRequired[str] + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] + + +class TeamRepositoryPropPermissionsType(TypedDict): + """TeamRepositoryPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] -__all__ = ("ProjectColumnType",) +__all__ = ( + "TeamRepositoryPropPermissionsType", + "TeamRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0196.py b/githubkit/versions/v2022_11_28/types/group_0196.py index 45af07517..fdc7baddd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0196.py +++ b/githubkit/versions/v2022_11_28/types/group_0196.py @@ -9,20 +9,32 @@ 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 -class ProjectCollaboratorPermissionType(TypedDict): - """Project Collaborator Permission +class ProjectCardType(TypedDict): + """Project Card - Project Collaborator Permission + Project cards represent a scope of work. """ - permission: str - user: Union[None, SimpleUserType] - - -__all__ = ("ProjectCollaboratorPermissionType",) + url: str + id: int + node_id: str + note: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + archived: NotRequired[bool] + column_name: NotRequired[str] + project_id: NotRequired[str] + column_url: str + content_url: NotRequired[str] + project_url: str + + +__all__ = ("ProjectCardType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0197.py b/githubkit/versions/v2022_11_28/types/group_0197.py index 7564a62f1..d23a9ab67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0197.py +++ b/githubkit/versions/v2022_11_28/types/group_0197.py @@ -9,16 +9,24 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class RateLimitType(TypedDict): - """Rate Limit""" +class ProjectColumnType(TypedDict): + """Project Column - limit: int - remaining: int - reset: int - used: int + Project columns contain cards of work. + """ + url: str + project_url: str + cards_url: str + id: int + node_id: str + name: str + created_at: datetime + updated_at: datetime -__all__ = ("RateLimitType",) + +__all__ = ("ProjectColumnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0198.py b/githubkit/versions/v2022_11_28/types/group_0198.py index 71f75cecc..45af07517 100644 --- a/githubkit/versions/v2022_11_28/types/group_0198.py +++ b/githubkit/versions/v2022_11_28/types/group_0198.py @@ -9,20 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0197 import RateLimitType -from .group_0199 import RateLimitOverviewPropResourcesType +from .group_0003 import SimpleUserType -class RateLimitOverviewType(TypedDict): - """Rate Limit Overview +class ProjectCollaboratorPermissionType(TypedDict): + """Project Collaborator Permission - Rate Limit Overview + Project Collaborator Permission """ - resources: RateLimitOverviewPropResourcesType - rate: RateLimitType + permission: str + user: Union[None, SimpleUserType] -__all__ = ("RateLimitOverviewType",) +__all__ = ("ProjectCollaboratorPermissionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0199.py b/githubkit/versions/v2022_11_28/types/group_0199.py index 5f72a2057..7564a62f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0199.py +++ b/githubkit/versions/v2022_11_28/types/group_0199.py @@ -9,26 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0197 import RateLimitType +class RateLimitType(TypedDict): + """Rate Limit""" -class RateLimitOverviewPropResourcesType(TypedDict): - """RateLimitOverviewPropResources""" + limit: int + remaining: int + reset: int + used: int - 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] - dependency_sbom: NotRequired[RateLimitType] - code_scanning_autofix: NotRequired[RateLimitType] - -__all__ = ("RateLimitOverviewPropResourcesType",) +__all__ = ("RateLimitType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0200.py b/githubkit/versions/v2022_11_28/types/group_0200.py index 02e909e24..9588e7e73 100644 --- a/githubkit/versions/v2022_11_28/types/group_0200.py +++ b/githubkit/versions/v2022_11_28/types/group_0200.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0199 import RateLimitType +from .group_0201 import RateLimitOverviewPropResourcesType -class ArtifactType(TypedDict): - """Artifact - An artifact +class RateLimitOverviewType(TypedDict): + """Rate Limit Overview + + Rate Limit Overview """ - id: int - node_id: str - name: str - size_in_bytes: int - url: str - archive_download_url: str - expired: bool - created_at: Union[datetime, None] - expires_at: Union[datetime, None] - updated_at: Union[datetime, None] - digest: NotRequired[Union[str, None]] - workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] - - -class ArtifactPropWorkflowRunType(TypedDict): - """ArtifactPropWorkflowRun""" - - id: NotRequired[int] - repository_id: NotRequired[int] - head_repository_id: NotRequired[int] - head_branch: NotRequired[str] - head_sha: NotRequired[str] - - -__all__ = ( - "ArtifactPropWorkflowRunType", - "ArtifactType", -) + resources: RateLimitOverviewPropResourcesType + rate: RateLimitType + + +__all__ = ("RateLimitOverviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0201.py b/githubkit/versions/v2022_11_28/types/group_0201.py index 88facf6b2..cfa5ce535 100644 --- a/githubkit/versions/v2022_11_28/types/group_0201.py +++ b/githubkit/versions/v2022_11_28/types/group_0201.py @@ -9,33 +9,26 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict +from .group_0199 import RateLimitType -class ActionsCacheListType(TypedDict): - """Repository actions caches - Repository actions caches - """ +class RateLimitOverviewPropResourcesType(TypedDict): + """RateLimitOverviewPropResources""" - total_count: int - actions_caches: list[ActionsCacheListPropActionsCachesItemsType] + 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] + dependency_sbom: NotRequired[RateLimitType] + code_scanning_autofix: NotRequired[RateLimitType] -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__ = ("RateLimitOverviewPropResourcesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0202.py b/githubkit/versions/v2022_11_28/types/group_0202.py index 1d359461a..02e909e24 100644 --- a/githubkit/versions/v2022_11_28/types/group_0202.py +++ b/githubkit/versions/v2022_11_28/types/group_0202.py @@ -10,66 +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 -class JobType(TypedDict): - """Job +class ArtifactType(TypedDict): + """Artifact - Information of a job execution in a workflow run + An artifact """ 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] + size_in_bytes: int + url: str + archive_download_url: str + expired: bool + created_at: Union[datetime, None] + expires_at: Union[datetime, None] + updated_at: Union[datetime, None] + digest: NotRequired[Union[str, None]] + workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] -class JobPropStepsItemsType(TypedDict): - """JobPropStepsItems""" +class ArtifactPropWorkflowRunType(TypedDict): + """ArtifactPropWorkflowRun""" - 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]] + id: NotRequired[int] + repository_id: NotRequired[int] + head_repository_id: NotRequired[int] + head_branch: NotRequired[str] + head_sha: NotRequired[str] __all__ = ( - "JobPropStepsItemsType", - "JobType", + "ArtifactPropWorkflowRunType", + "ArtifactType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0203.py b/githubkit/versions/v2022_11_28/types/group_0203.py index faacb2b0b..88facf6b2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0203.py +++ b/githubkit/versions/v2022_11_28/types/group_0203.py @@ -9,17 +9,33 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class OidcCustomSubRepoType(TypedDict): - """Actions OIDC subject customization for a repository +class ActionsCacheListType(TypedDict): + """Repository actions caches - Actions OIDC subject customization for a repository + Repository actions caches """ - use_default: bool - include_claim_keys: NotRequired[list[str]] + total_count: int + actions_caches: list[ActionsCacheListPropActionsCachesItemsType] -__all__ = ("OidcCustomSubRepoType",) +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_0204.py b/githubkit/versions/v2022_11_28/types/group_0204.py index 7d6ae5032..1d359461a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0204.py +++ b/githubkit/versions/v2022_11_28/types/group_0204.py @@ -10,18 +10,66 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ActionsSecretType(TypedDict): - """Actions Secret +class JobType(TypedDict): + """Job - Set secrets for GitHub Actions. + Information of a job execution in a workflow run """ - name: 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 - updated_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]] -__all__ = ("ActionsSecretType",) +__all__ = ( + "JobPropStepsItemsType", + "JobType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0205.py b/githubkit/versions/v2022_11_28/types/group_0205.py index eb13c7e2f..faacb2b0b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0205.py +++ b/githubkit/versions/v2022_11_28/types/group_0205.py @@ -9,17 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ActionsVariableType(TypedDict): - """Actions Variable""" +class OidcCustomSubRepoType(TypedDict): + """Actions OIDC subject customization for a repository - name: str - value: str - created_at: datetime - updated_at: datetime + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ("ActionsVariableType",) + +__all__ = ("OidcCustomSubRepoType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0206.py b/githubkit/versions/v2022_11_28/types/group_0206.py index eb7ddcbc1..7d6ae5032 100644 --- a/githubkit/versions/v2022_11_28/types/group_0206.py +++ b/githubkit/versions/v2022_11_28/types/group_0206.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class ActionsRepositoryPermissionsType(TypedDict): - """ActionsRepositoryPermissions""" +class ActionsSecretType(TypedDict): + """Actions Secret - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + Set secrets for GitHub Actions. + """ + name: str + created_at: datetime + updated_at: datetime -__all__ = ("ActionsRepositoryPermissionsType",) + +__all__ = ("ActionsSecretType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0207.py b/githubkit/versions/v2022_11_28/types/group_0207.py index 7678cad21..eb13c7e2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0207.py +++ b/githubkit/versions/v2022_11_28/types/group_0207.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import TypedDict -class ActionsWorkflowAccessToRepositoryType(TypedDict): - """ActionsWorkflowAccessToRepository""" +class ActionsVariableType(TypedDict): + """Actions Variable""" - access_level: Literal["none", "user", "organization"] + name: str + value: str + created_at: datetime + updated_at: datetime -__all__ = ("ActionsWorkflowAccessToRepositoryType",) +__all__ = ("ActionsVariableType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0208.py b/githubkit/versions/v2022_11_28/types/group_0208.py index 7879ad294..eb7ddcbc1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0208.py +++ b/githubkit/versions/v2022_11_28/types/group_0208.py @@ -9,55 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class PullRequestMinimalType(TypedDict): - """Pull Request Minimal""" +class ActionsRepositoryPermissionsType(TypedDict): + """ActionsRepositoryPermissions""" - id: int - number: int - url: str - head: PullRequestMinimalPropHeadType - base: PullRequestMinimalPropBaseType + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[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 - sha: str - repo: PullRequestMinimalPropBasePropRepoType - - -class PullRequestMinimalPropBasePropRepoType(TypedDict): - """PullRequestMinimalPropBasePropRepo""" - - id: int - url: str - name: str - - -__all__ = ( - "PullRequestMinimalPropBasePropRepoType", - "PullRequestMinimalPropBaseType", - "PullRequestMinimalPropHeadPropRepoType", - "PullRequestMinimalPropHeadType", - "PullRequestMinimalType", -) +__all__ = ("ActionsRepositoryPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0209.py b/githubkit/versions/v2022_11_28/types/group_0209.py index d8e989649..7678cad21 100644 --- a/githubkit/versions/v2022_11_28/types/group_0209.py +++ b/githubkit/versions/v2022_11_28/types/group_0209.py @@ -9,47 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import TypedDict -class SimpleCommitType(TypedDict): - """Simple Commit +class ActionsWorkflowAccessToRepositoryType(TypedDict): + """ActionsWorkflowAccessToRepository""" - A commit. - """ + access_level: Literal["none", "user", "organization"] - id: str - tree_id: str - message: str - timestamp: datetime - author: Union[SimpleCommitPropAuthorType, None] - committer: Union[SimpleCommitPropCommitterType, None] - -class SimpleCommitPropAuthorType(TypedDict): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str - email: str - - -class SimpleCommitPropCommitterType(TypedDict): - """SimpleCommitPropCommitter - - Information about the Git committer - """ - - name: str - email: str - - -__all__ = ( - "SimpleCommitPropAuthorType", - "SimpleCommitPropCommitterType", - "SimpleCommitType", -) +__all__ = ("ActionsWorkflowAccessToRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0210.py b/githubkit/versions/v2022_11_28/types/group_0210.py index fe8a487e8..7879ad294 100644 --- a/githubkit/versions/v2022_11_28/types/group_0210.py +++ b/githubkit/versions/v2022_11_28/types/group_0210.py @@ -9,72 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0061 import MinimalRepositoryType -from .group_0208 import PullRequestMinimalType -from .group_0209 import SimpleCommitType +class PullRequestMinimalType(TypedDict): + """Pull Request Minimal""" -class WorkflowRunType(TypedDict): - """Workflow Run + id: int + number: int + url: str + head: PullRequestMinimalPropHeadType + base: PullRequestMinimalPropBaseType + + +class PullRequestMinimalPropHeadType(TypedDict): + """PullRequestMinimalPropHead""" + + ref: str + sha: str + repo: PullRequestMinimalPropHeadPropRepoType - An invocation of a workflow - """ + +class PullRequestMinimalPropHeadPropRepoType(TypedDict): + """PullRequestMinimalPropHeadPropRepo""" id: int - name: NotRequired[Union[str, None]] - node_id: str - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - head_branch: Union[str, None] - head_sha: str - path: str - run_number: int - run_attempt: NotRequired[int] - referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] - event: str - status: Union[str, None] - conclusion: Union[str, None] - workflow_id: int url: str - html_url: str - pull_requests: Union[list[PullRequestMinimalType], None] - created_at: datetime - updated_at: datetime - actor: NotRequired[SimpleUserType] - triggering_actor: NotRequired[SimpleUserType] - run_started_at: NotRequired[datetime] - jobs_url: str - logs_url: str - check_suite_url: str - artifacts_url: str - cancel_url: str - rerun_url: str - previous_attempt_url: NotRequired[Union[str, None]] - workflow_url: str - head_commit: Union[None, SimpleCommitType] - repository: MinimalRepositoryType - head_repository: MinimalRepositoryType - head_repository_id: NotRequired[int] - display_title: str - - -class ReferencedWorkflowType(TypedDict): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str + name: str + + +class PullRequestMinimalPropBaseType(TypedDict): + """PullRequestMinimalPropBase""" + + ref: str sha: str - ref: NotRequired[str] + repo: PullRequestMinimalPropBasePropRepoType + + +class PullRequestMinimalPropBasePropRepoType(TypedDict): + """PullRequestMinimalPropBasePropRepo""" + + id: int + url: str + name: str __all__ = ( - "ReferencedWorkflowType", - "WorkflowRunType", + "PullRequestMinimalPropBasePropRepoType", + "PullRequestMinimalPropBaseType", + "PullRequestMinimalPropHeadPropRepoType", + "PullRequestMinimalPropHeadType", + "PullRequestMinimalType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0211.py b/githubkit/versions/v2022_11_28/types/group_0211.py index 8003cc5ba..d8e989649 100644 --- a/githubkit/versions/v2022_11_28/types/group_0211.py +++ b/githubkit/versions/v2022_11_28/types/group_0211.py @@ -10,37 +10,46 @@ from __future__ import annotations from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +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 EnvironmentApprovalsType(TypedDict): - """Environment Approval - An entry in the reviews log for environment deployments +class SimpleCommitPropAuthorType(TypedDict): + """SimpleCommitPropAuthor + + Information about the Git author """ - environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] - state: Literal["approved", "rejected", "pending"] - user: SimpleUserType - comment: str + name: str + email: str + +class SimpleCommitPropCommitterType(TypedDict): + """SimpleCommitPropCommitter -class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): - """EnvironmentApprovalsPropEnvironmentsItems""" + Information about the Git committer + """ - 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 + email: str __all__ = ( - "EnvironmentApprovalsPropEnvironmentsItemsType", - "EnvironmentApprovalsType", + "SimpleCommitPropAuthorType", + "SimpleCommitPropCommitterType", + "SimpleCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0212.py b/githubkit/versions/v2022_11_28/types/group_0212.py index 909bb75c8..78bbd75e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0212.py +++ b/githubkit/versions/v2022_11_28/types/group_0212.py @@ -9,14 +9,72 @@ 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_0063 import MinimalRepositoryType +from .group_0210 import PullRequestMinimalType +from .group_0211 import SimpleCommitType -class ReviewCustomGatesCommentRequiredType(TypedDict): - """ReviewCustomGatesCommentRequired""" - environment_name: str - comment: str +class WorkflowRunType(TypedDict): + """Workflow Run + An invocation of a workflow + """ -__all__ = ("ReviewCustomGatesCommentRequiredType",) + id: int + name: NotRequired[Union[str, None]] + node_id: str + check_suite_id: NotRequired[int] + check_suite_node_id: NotRequired[str] + head_branch: Union[str, None] + head_sha: str + path: str + run_number: int + run_attempt: NotRequired[int] + referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] + event: str + status: Union[str, None] + conclusion: Union[str, None] + workflow_id: int + url: str + html_url: str + pull_requests: Union[list[PullRequestMinimalType], None] + created_at: datetime + updated_at: datetime + actor: NotRequired[SimpleUserType] + triggering_actor: NotRequired[SimpleUserType] + run_started_at: NotRequired[datetime] + jobs_url: str + logs_url: str + check_suite_url: str + artifacts_url: str + cancel_url: str + rerun_url: str + previous_attempt_url: NotRequired[Union[str, None]] + workflow_url: str + head_commit: Union[None, SimpleCommitType] + repository: MinimalRepositoryType + head_repository: MinimalRepositoryType + head_repository_id: NotRequired[int] + display_title: str + + +class ReferencedWorkflowType(TypedDict): + """Referenced workflow + + A workflow referenced/reused by the initial caller workflow + """ + + path: str + sha: str + ref: NotRequired[str] + + +__all__ = ( + "ReferencedWorkflowType", + "WorkflowRunType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0213.py b/githubkit/versions/v2022_11_28/types/group_0213.py index 75b0bb6f6..8003cc5ba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0213.py +++ b/githubkit/versions/v2022_11_28/types/group_0213.py @@ -9,16 +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 ReviewCustomGatesStateRequiredType(TypedDict): - """ReviewCustomGatesStateRequired""" - environment_name: str - state: Literal["approved", "rejected"] - comment: NotRequired[str] +class EnvironmentApprovalsType(TypedDict): + """Environment Approval + An entry in the reviews log for environment deployments + """ -__all__ = ("ReviewCustomGatesStateRequiredType",) + 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/v2022_11_28/types/group_0214.py b/githubkit/versions/v2022_11_28/types/group_0214.py index 750ab745e..909bb75c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0214.py +++ b/githubkit/versions/v2022_11_28/types/group_0214.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_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0084 import TeamType +class ReviewCustomGatesCommentRequiredType(TypedDict): + """ReviewCustomGatesCommentRequired""" -class PendingDeploymentPropReviewersItemsType(TypedDict): - """PendingDeploymentPropReviewersItems""" + environment_name: str + comment: str - 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__ = ("ReviewCustomGatesCommentRequiredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0215.py b/githubkit/versions/v2022_11_28/types/group_0215.py index 92437789e..75b0bb6f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0215.py +++ b/githubkit/versions/v2022_11_28/types/group_0215.py @@ -9,46 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType - - -class DeploymentType(TypedDict): - """Deployment - - A request for a specific ref(branch,sha,tag) to be deployed - """ - - 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 -""" +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class ReviewCustomGatesStateRequiredType(TypedDict): + """ReviewCustomGatesStateRequired""" + + environment_name: str + state: Literal["approved", "rejected"] + comment: NotRequired[str] -__all__ = ( - "DeploymentPropPayloadOneof0Type", - "DeploymentType", -) +__all__ = ("ReviewCustomGatesStateRequiredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0216.py b/githubkit/versions/v2022_11_28/types/group_0216.py index f9d6d4cf5..441c001d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0216.py +++ b/githubkit/versions/v2022_11_28/types/group_0216.py @@ -9,85 +9,46 @@ 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_0086 import TeamType -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 PendingDeploymentPropReviewersItemsType(TypedDict): + """PendingDeploymentPropReviewersItems""" + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - job_id: int - duration_ms: int +class PendingDeploymentType(TypedDict): + """Pending Deployment + Details of a deployment that is waiting for protection rules to pass + """ -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] - ] + environment: PendingDeploymentPropEnvironmentType + wait_timer: int + wait_timer_started_at: Union[datetime, None] + current_user_can_approve: bool + reviewers: list[PendingDeploymentPropReviewersItemsType] -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" +class PendingDeploymentPropEnvironmentType(TypedDict): + """PendingDeploymentPropEnvironment""" - job_id: int - duration_ms: int + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] __all__ = ( - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropMacosType", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropUbuntuType", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropWindowsType", - "WorkflowRunUsagePropBillableType", - "WorkflowRunUsageType", + "PendingDeploymentPropEnvironmentType", + "PendingDeploymentPropReviewersItemsType", + "PendingDeploymentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0217.py b/githubkit/versions/v2022_11_28/types/group_0217.py index 6cefd47bb..92437789e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0217.py +++ b/githubkit/versions/v2022_11_28/types/group_0217.py @@ -9,48 +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_0003 import SimpleUserType +from .group_0010 import IntegrationType -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""" +class DeploymentType(TypedDict): + """Deployment - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropMacosType(TypedDict): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropWindowsType(TypedDict): - """WorkflowUsagePropBillablePropWindows""" + A request for a specific ref(branch,sha,tag) to be deployed + """ - total_ms: NotRequired[int] + 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__ = ( - "WorkflowUsagePropBillablePropMacosType", - "WorkflowUsagePropBillablePropUbuntuType", - "WorkflowUsagePropBillablePropWindowsType", - "WorkflowUsagePropBillableType", - "WorkflowUsageType", + "DeploymentPropPayloadOneof0Type", + "DeploymentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0218.py b/githubkit/versions/v2022_11_28/types/group_0218.py index 1deac10b0..f9d6d4cf5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0218.py +++ b/githubkit/versions/v2022_11_28/types/group_0218.py @@ -9,34 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WorkflowRunUsageType(TypedDict): + """Workflow Run Usage -class ActivityType(TypedDict): - """Activity - - Activity + Workflow Run Usage """ - 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", + 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] ] - actor: Union[None, SimpleUserType] -__all__ = ("ActivityType",) +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int + duration_ms: int + + +__all__ = ( + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropMacosType", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropUbuntuType", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropWindowsType", + "WorkflowRunUsagePropBillableType", + "WorkflowRunUsageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0219.py b/githubkit/versions/v2022_11_28/types/group_0219.py index 8b6890539..6cefd47bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0219.py +++ b/githubkit/versions/v2022_11_28/types/group_0219.py @@ -9,19 +9,48 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class AutolinkType(TypedDict): - """Autolink reference +class WorkflowUsageType(TypedDict): + """Workflow Usage - An autolink reference. + Workflow Usage """ - id: int - key_prefix: str - url_template: str - is_alphanumeric: bool + billable: WorkflowUsagePropBillableType -__all__ = ("AutolinkType",) +class WorkflowUsagePropBillableType(TypedDict): + """WorkflowUsagePropBillable""" + + ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] + + +class WorkflowUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: NotRequired[int] + + +class WorkflowUsagePropBillablePropMacosType(TypedDict): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: NotRequired[int] + + +class WorkflowUsagePropBillablePropWindowsType(TypedDict): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: NotRequired[int] + + +__all__ = ( + "WorkflowUsagePropBillablePropMacosType", + "WorkflowUsagePropBillablePropUbuntuType", + "WorkflowUsagePropBillablePropWindowsType", + "WorkflowUsagePropBillableType", + "WorkflowUsageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0220.py b/githubkit/versions/v2022_11_28/types/group_0220.py index deb29de44..1deac10b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0220.py +++ b/githubkit/versions/v2022_11_28/types/group_0220.py @@ -9,17 +9,34 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class CheckAutomatedSecurityFixesType(TypedDict): - """Check Dependabot security updates - Check Dependabot security updates - """ - - enabled: bool - paused: bool +class ActivityType(TypedDict): + """Activity + Activity + """ -__all__ = ("CheckAutomatedSecurityFixesType",) + id: int + node_id: str + before: str + after: str + ref: str + timestamp: datetime + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] + actor: Union[None, SimpleUserType] + + +__all__ = ("ActivityType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0221.py b/githubkit/versions/v2022_11_28/types/group_0221.py index 8cfc78730..8b6890539 100644 --- a/githubkit/versions/v2022_11_28/types/group_0221.py +++ b/githubkit/versions/v2022_11_28/types/group_0221.py @@ -9,31 +9,19 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0222 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, -) +class AutolinkType(TypedDict): + """Autolink reference -class ProtectedBranchPullRequestReviewType(TypedDict): - """Protected Branch Pull Request Review - - Protected Branch Pull Request Review + An autolink reference. """ - 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] + id: int + key_prefix: str + url_template: str + is_alphanumeric: bool -__all__ = ("ProtectedBranchPullRequestReviewType",) +__all__ = ("AutolinkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0222.py b/githubkit/versions/v2022_11_28/types/group_0222.py index 945ea39d4..deb29de44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0222.py +++ b/githubkit/versions/v2022_11_28/types/group_0222.py @@ -9,37 +9,17 @@ 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_0010 import IntegrationType -from .group_0084 import TeamType +class CheckAutomatedSecurityFixesType(TypedDict): + """Check Dependabot security updates -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. + Check Dependabot security updates """ - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] + enabled: bool + paused: bool -__all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", - "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", -) +__all__ = ("CheckAutomatedSecurityFixesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0223.py b/githubkit/versions/v2022_11_28/types/group_0223.py index f6fd03a7a..2403ebcf0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0223.py +++ b/githubkit/versions/v2022_11_28/types/group_0223.py @@ -9,128 +9,31 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0224 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, +) -class BranchRestrictionPolicyType(TypedDict): - """Branch Restriction Policy - - Branch Restriction Policy - """ - - 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 ProtectedBranchPullRequestReviewType(TypedDict): + """Protected Branch Pull Request Review -class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" + Protected Branch Pull Request Review + """ - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - hooks_url: NotRequired[str] - issues_url: NotRequired[str] - members_url: NotRequired[str] - public_members_url: NotRequired[str] - avatar_url: NotRequired[str] - description: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: NotRequired[str] - contents: NotRequired[str] - issues: NotRequired[str] - single_file: NotRequired[str] - - -__all__ = ( - "BranchRestrictionPolicyPropAppsItemsPropOwnerType", - "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", - "BranchRestrictionPolicyPropAppsItemsType", - "BranchRestrictionPolicyPropTeamsItemsType", - "BranchRestrictionPolicyPropUsersItemsType", - "BranchRestrictionPolicyType", -) + 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_0224.py b/githubkit/versions/v2022_11_28/types/group_0224.py index 19e21683a..82ccb078f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0224.py +++ b/githubkit/versions/v2022_11_28/types/group_0224.py @@ -12,135 +12,34 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0221 import ProtectedBranchPullRequestReviewType -from .group_0223 import BranchRestrictionPolicyType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0086 import TeamType -class BranchProtectionType(TypedDict): - """Branch Protection - - Branch Protection - """ +class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] 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] + users_url: NotRequired[str] + teams_url: NotRequired[str] -class ProtectedBranchAdminEnforcedType(TypedDict): - """Protected Branch Admin Enforced +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - Protected Branch Admin Enforced + Allow specific users, teams, or apps to bypass pull request requirements. """ - 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] + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] __all__ = ( - "BranchProtectionPropAllowDeletionsType", - "BranchProtectionPropAllowForcePushesType", - "BranchProtectionPropAllowForkSyncingType", - "BranchProtectionPropBlockCreationsType", - "BranchProtectionPropLockBranchType", - "BranchProtectionPropRequiredConversationResolutionType", - "BranchProtectionPropRequiredLinearHistoryType", - "BranchProtectionPropRequiredSignaturesType", - "BranchProtectionType", - "ProtectedBranchAdminEnforcedType", - "ProtectedBranchRequiredStatusCheckPropChecksItemsType", - "ProtectedBranchRequiredStatusCheckType", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", + "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0225.py b/githubkit/versions/v2022_11_28/types/group_0225.py index 379d359ad..f6fd03a7a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0225.py +++ b/githubkit/versions/v2022_11_28/types/group_0225.py @@ -9,32 +9,128 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0224 import BranchProtectionType +class BranchRestrictionPolicyType(TypedDict): + """Branch Restriction Policy -class ShortBranchType(TypedDict): - """Short Branch - - Short Branch + Branch Restriction Policy """ - name: str - commit: ShortBranchPropCommitType - protected: bool - protection: NotRequired[BranchProtectionType] - protection_url: NotRequired[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""" -class ShortBranchPropCommitType(TypedDict): - """ShortBranchPropCommit""" + 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] - sha: str - url: 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__ = ( - "ShortBranchPropCommitType", - "ShortBranchType", + "BranchRestrictionPolicyPropAppsItemsPropOwnerType", + "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", + "BranchRestrictionPolicyPropAppsItemsType", + "BranchRestrictionPolicyPropTeamsItemsType", + "BranchRestrictionPolicyPropUsersItemsType", + "BranchRestrictionPolicyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0226.py b/githubkit/versions/v2022_11_28/types/group_0226.py index 7c317075a..5d61710ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0226.py +++ b/githubkit/versions/v2022_11_28/types/group_0226.py @@ -9,19 +9,138 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0223 import ProtectedBranchPullRequestReviewType +from .group_0225 import BranchRestrictionPolicyType -class GitUserType(TypedDict): - """Git User - Metaproperties for Git author/committer information. +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] - email: NotRequired[str] - date: NotRequired[datetime] + protection_url: NotRequired[str] + required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] + lock_branch: NotRequired[BranchProtectionPropLockBranchType] + allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] + + +class ProtectedBranchAdminEnforcedType(TypedDict): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + + url: str + enabled: bool + + +class BranchProtectionPropRequiredLinearHistoryType(TypedDict): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForcePushesType(TypedDict): + """BranchProtectionPropAllowForcePushes""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowDeletionsType(TypedDict): + """BranchProtectionPropAllowDeletions""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropBlockCreationsType(TypedDict): + """BranchProtectionPropBlockCreations""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredConversationResolutionType(TypedDict): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredSignaturesType(TypedDict): + """BranchProtectionPropRequiredSignatures""" + + url: str + enabled: bool + + +class BranchProtectionPropLockBranchType(TypedDict): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForkSyncingType(TypedDict): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckType(TypedDict): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: NotRequired[str] + enforcement_level: NotRequired[str] + contexts: list[str] + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] + contexts_url: NotRequired[str] + strict: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str + app_id: Union[int, None] -__all__ = ("GitUserType",) +__all__ = ( + "BranchProtectionPropAllowDeletionsType", + "BranchProtectionPropAllowForcePushesType", + "BranchProtectionPropAllowForkSyncingType", + "BranchProtectionPropBlockCreationsType", + "BranchProtectionPropLockBranchType", + "BranchProtectionPropRequiredConversationResolutionType", + "BranchProtectionPropRequiredLinearHistoryType", + "BranchProtectionPropRequiredSignaturesType", + "BranchProtectionType", + "ProtectedBranchAdminEnforcedType", + "ProtectedBranchRequiredStatusCheckPropChecksItemsType", + "ProtectedBranchRequiredStatusCheckType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0227.py b/githubkit/versions/v2022_11_28/types/group_0227.py index fb5244f00..f9cefb5eb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0227.py +++ b/githubkit/versions/v2022_11_28/types/group_0227.py @@ -9,18 +9,32 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0226 import BranchProtectionType -class VerificationType(TypedDict): - """Verification""" - verified: bool - reason: str - payload: Union[str, None] - signature: Union[str, None] - verified_at: NotRequired[Union[str, None]] +class ShortBranchType(TypedDict): + """Short Branch + Short Branch + """ -__all__ = ("VerificationType",) + name: str + commit: ShortBranchPropCommitType + protected: bool + protection: NotRequired[BranchProtectionType] + protection_url: NotRequired[str] + + +class ShortBranchPropCommitType(TypedDict): + """ShortBranchPropCommit""" + + sha: str + url: str + + +__all__ = ( + "ShortBranchPropCommitType", + "ShortBranchType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0228.py b/githubkit/versions/v2022_11_28/types/group_0228.py index bb2e4713b..7c317075a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0228.py +++ b/githubkit/versions/v2022_11_28/types/group_0228.py @@ -9,29 +9,19 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class DiffEntryType(TypedDict): - """Diff Entry +class GitUserType(TypedDict): + """Git User - Diff Entry + Metaproperties for Git author/committer information. """ - sha: Union[str, None] - 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",) + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] + + +__all__ = ("GitUserType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0229.py b/githubkit/versions/v2022_11_28/types/group_0229.py index 331596e82..fb5244f00 100644 --- a/githubkit/versions/v2022_11_28/types/group_0229.py +++ b/githubkit/versions/v2022_11_28/types/group_0229.py @@ -12,56 +12,15 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0228 import DiffEntryType -from .group_0230 import CommitPropCommitType +class VerificationType(TypedDict): + """Verification""" -class CommitType(TypedDict): - """Commit + verified: bool + reason: str + payload: Union[str, None] + signature: Union[str, None] + verified_at: NotRequired[Union[str, None]] - 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]] - - -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", -) +__all__ = ("VerificationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0230.py b/githubkit/versions/v2022_11_28/types/group_0230.py index ccde88b8a..bb2e4713b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0230.py +++ b/githubkit/versions/v2022_11_28/types/group_0230.py @@ -9,33 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0226 import GitUserType -from .group_0227 import VerificationType +class DiffEntryType(TypedDict): + """Diff Entry -class CommitPropCommitType(TypedDict): - """CommitPropCommit""" + Diff Entry + """ - url: str - author: Union[None, GitUserType] - committer: Union[None, GitUserType] - message: str - comment_count: int - tree: CommitPropCommitPropTreeType - verification: NotRequired[VerificationType] + sha: Union[str, None] + 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 CommitPropCommitPropTreeType(TypedDict): - """CommitPropCommitPropTree""" - - sha: str - url: str - - -__all__ = ( - "CommitPropCommitPropTreeType", - "CommitPropCommitType", -) +__all__ = ("DiffEntryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0231.py b/githubkit/versions/v2022_11_28/types/group_0231.py index 59cebe85b..36e89876d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0231.py +++ b/githubkit/versions/v2022_11_28/types/group_0231.py @@ -9,36 +9,59 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0224 import BranchProtectionType -from .group_0229 import CommitType +from .group_0003 import SimpleUserType +from .group_0230 import DiffEntryType +from .group_0232 import CommitPropCommitType -class BranchWithProtectionType(TypedDict): - """Branch With Protection +class CommitType(TypedDict): + """Commit - Branch With Protection + Commit """ - name: str - commit: CommitType - links: BranchWithProtectionPropLinksType - protected: bool - protection: BranchProtectionType - protection_url: str - pattern: NotRequired[str] - required_approving_review_count: NotRequired[int] + 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 BranchWithProtectionPropLinksType(TypedDict): - """BranchWithProtectionPropLinks""" +class EmptyObjectType(TypedDict): + """Empty Object - html: str - self_: str + 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__ = ( - "BranchWithProtectionPropLinksType", - "BranchWithProtectionType", + "CommitPropParentsItemsType", + "CommitPropStatsType", + "CommitType", + "EmptyObjectType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0232.py b/githubkit/versions/v2022_11_28/types/group_0232.py index 0ed7a1feb..790586dbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0232.py +++ b/githubkit/versions/v2022_11_28/types/group_0232.py @@ -12,130 +12,30 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0223 import BranchRestrictionPolicyType -from .group_0233 import ProtectedBranchPropRequiredPullRequestReviewsType +from .group_0228 import GitUserType +from .group_0229 import VerificationType -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""" +class CommitPropCommitType(TypedDict): + """CommitPropCommit""" url: str - enabled: bool - - -class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool - - -class ProtectedBranchPropAllowForcePushesType(TypedDict): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool - - -class ProtectedBranchPropAllowDeletionsType(TypedDict): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool + author: Union[None, GitUserType] + committer: Union[None, GitUserType] + message: str + comment_count: int + tree: CommitPropCommitPropTreeType + verification: NotRequired[VerificationType] -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 - """ +class CommitPropCommitPropTreeType(TypedDict): + """CommitPropCommitPropTree""" + sha: str 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", + "CommitPropCommitPropTreeType", + "CommitPropCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0233.py b/githubkit/versions/v2022_11_28/types/group_0233.py index fdbe2422e..dc0b9c198 100644 --- a/githubkit/versions/v2022_11_28/types/group_0233.py +++ b/githubkit/versions/v2022_11_28/types/group_0233.py @@ -11,26 +11,34 @@ from typing_extensions import NotRequired, TypedDict -from .group_0234 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, -) +from .group_0226 import BranchProtectionType +from .group_0231 import CommitType + +class BranchWithProtectionType(TypedDict): + """Branch With Protection -class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): - """ProtectedBranchPropRequiredPullRequestReviews""" + Branch With Protection + """ - url: str - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] + name: str + commit: CommitType + links: BranchWithProtectionPropLinksType + protected: bool + protection: BranchProtectionType + protection_url: str + pattern: NotRequired[str] required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - dismissal_restrictions: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] -__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) +class BranchWithProtectionPropLinksType(TypedDict): + """BranchWithProtectionPropLinks""" + + html: str + self_: str + + +__all__ = ( + "BranchWithProtectionPropLinksType", + "BranchWithProtectionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0234.py b/githubkit/versions/v2022_11_28/types/group_0234.py index fd51796b1..d1da1780e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0234.py +++ b/githubkit/versions/v2022_11_28/types/group_0234.py @@ -12,35 +12,130 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0084 import TeamType +from .group_0225 import BranchRestrictionPolicyType +from .group_0235 import ProtectedBranchPropRequiredPullRequestReviewsType -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +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 + """ url: str - users_url: str - teams_url: str - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] + strict: bool + contexts: list[str] + checks: list[StatusCheckPolicyPropChecksItemsType] + contexts_url: str -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class StatusCheckPolicyPropChecksItemsType(TypedDict): + """StatusCheckPolicyPropChecksItems""" - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] + context: str + app_id: Union[int, None] __all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ProtectedBranchPropAllowDeletionsType", + "ProtectedBranchPropAllowForcePushesType", + "ProtectedBranchPropAllowForkSyncingType", + "ProtectedBranchPropBlockCreationsType", + "ProtectedBranchPropEnforceAdminsType", + "ProtectedBranchPropLockBranchType", + "ProtectedBranchPropRequiredConversationResolutionType", + "ProtectedBranchPropRequiredLinearHistoryType", + "ProtectedBranchPropRequiredSignaturesType", + "ProtectedBranchType", + "StatusCheckPolicyPropChecksItemsType", + "StatusCheckPolicyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0235.py b/githubkit/versions/v2022_11_28/types/group_0235.py index daf967d0f..1bc1c19d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0235.py +++ b/githubkit/versions/v2022_11_28/types/group_0235.py @@ -9,34 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType +from .group_0236 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, +) -class DeploymentSimpleType(TypedDict): - """Deployment - - A deployment created as the result of an Actions check run from a workflow that - references an environment - """ +class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): + """ProtectedBranchPropRequiredPullRequestReviews""" 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",) + 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",) diff --git a/githubkit/versions/v2022_11_28/types/group_0236.py b/githubkit/versions/v2022_11_28/types/group_0236.py index da31e8e58..fb4c60a8e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0236.py +++ b/githubkit/versions/v2022_11_28/types/group_0236.py @@ -9,71 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0208 import PullRequestMinimalType -from .group_0235 import DeploymentSimpleType +from .group_0086 import TeamType -class CheckRunType(TypedDict): - """CheckRun +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - 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""" - - title: Union[str, None] - summary: Union[str, None] - text: Union[str, None] - annotations_count: int - annotations_url: str + users_url: str + teams_url: str + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] -class CheckRunPropCheckSuiteType(TypedDict): - """CheckRunPropCheckSuite""" +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" - id: int + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] __all__ = ( - "CheckRunPropCheckSuiteType", - "CheckRunPropOutputType", - "CheckRunType", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0237.py b/githubkit/versions/v2022_11_28/types/group_0237.py index 82fbb570d..daf967d0f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0237.py +++ b/githubkit/versions/v2022_11_28/types/group_0237.py @@ -9,26 +9,34 @@ 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_0010 import IntegrationType -class CheckAnnotationType(TypedDict): - """Check Annotation - Check Annotation - """ - - path: str - start_line: int - end_line: int - start_column: Union[int, None] - end_column: Union[int, None] - annotation_level: Union[str, None] - title: Union[str, None] - message: Union[str, None] - raw_details: Union[str, None] - blob_href: str +class DeploymentSimpleType(TypedDict): + """Deployment + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ -__all__ = ("CheckAnnotationType",) + url: str + id: int + node_id: str + task: str + original_environment: NotRequired[str] + environment: str + description: Union[str, None] + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0238.py b/githubkit/versions/v2022_11_28/types/group_0238.py index a2d10f8a5..3057d8a18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0238.py +++ b/githubkit/versions/v2022_11_28/types/group_0238.py @@ -14,26 +14,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0010 import IntegrationType -from .group_0061 import MinimalRepositoryType -from .group_0208 import PullRequestMinimalType -from .group_0209 import SimpleCommitType +from .group_0210 import PullRequestMinimalType +from .group_0237 import DeploymentSimpleType -class CheckSuiteType(TypedDict): - """CheckSuite +class CheckRunType(TypedDict): + """CheckRun - A suite of checks performed on the code of a given code change + A check performed on the code of a given code change """ id: int - node_id: str - head_branch: Union[str, None] head_sha: str - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], + 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, @@ -45,33 +44,36 @@ class CheckSuiteType(TypedDict): "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] + started_at: Union[datetime, None] + completed_at: Union[datetime, None] + output: CheckRunPropOutputType + name: str + check_suite: Union[CheckRunPropCheckSuiteType, 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] + pull_requests: list[PullRequestMinimalType] + deployment: NotRequired[DeploymentSimpleType] -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" +class CheckRunPropOutputType(TypedDict): + """CheckRunPropOutput""" - total_count: int - check_suites: list[CheckSuiteType] + 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__ = ( - "CheckSuiteType", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", + "CheckRunPropCheckSuiteType", + "CheckRunPropOutputType", + "CheckRunType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0239.py b/githubkit/versions/v2022_11_28/types/group_0239.py index dc3766802..82fbb570d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0239.py +++ b/githubkit/versions/v2022_11_28/types/group_0239.py @@ -9,38 +9,26 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0061 import MinimalRepositoryType +class CheckAnnotationType(TypedDict): + """Check Annotation -class CheckSuitePreferenceType(TypedDict): - """Check Suite Preference - - Check suite configuration preferences for a repository. + Check Annotation """ - preferences: CheckSuitePreferencePropPreferencesType - repository: MinimalRepositoryType - - -class CheckSuitePreferencePropPreferencesType(TypedDict): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: NotRequired[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] - ] - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int - setting: bool + 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__ = ( - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", - "CheckSuitePreferencePropPreferencesType", - "CheckSuitePreferenceType", -) +__all__ = ("CheckAnnotationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0240.py b/githubkit/versions/v2022_11_28/types/group_0240.py index 84a757d87..e4c9748d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0240.py +++ b/githubkit/versions/v2022_11_28/types/group_0240.py @@ -13,33 +13,65 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0086 import CodeScanningAlertRuleSummaryType -from .group_0087 import CodeScanningAnalysisToolType -from .group_0088 import CodeScanningAlertInstanceType - - -class CodeScanningAlertItemsType(TypedDict): - """CodeScanningAlertItems""" - - number: int - created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] +from .group_0010 import IntegrationType +from .group_0063 import MinimalRepositoryType +from .group_0210 import PullRequestMinimalType +from .group_0211 import SimpleCommitType + + +class CheckSuiteType(TypedDict): + """CheckSuite + + A suite of checks performed on the code of a given code change + """ + + id: int + node_id: str + head_branch: Union[str, None] + head_sha: str + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + 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__ = ("CodeScanningAlertItemsType",) +__all__ = ( + "CheckSuiteType", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0241.py b/githubkit/versions/v2022_11_28/types/group_0241.py index e6a27a860..f5aa8541a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0241.py +++ b/githubkit/versions/v2022_11_28/types/group_0241.py @@ -9,55 +9,38 @@ 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_0087 import CodeScanningAnalysisToolType -from .group_0088 import CodeScanningAlertInstanceType - - -class CodeScanningAlertType(TypedDict): - """CodeScanningAlert""" - - number: int - created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] +from .group_0063 import MinimalRepositoryType + + +class CheckSuitePreferenceType(TypedDict): + """Check Suite Preference + + Check suite configuration preferences for a repository. + """ + preferences: CheckSuitePreferencePropPreferencesType + repository: MinimalRepositoryType -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"]] +class CheckSuitePreferencePropPreferencesType(TypedDict): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: NotRequired[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[list[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int + setting: bool __all__ = ( - "CodeScanningAlertRuleType", - "CodeScanningAlertType", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", + "CheckSuitePreferencePropPreferencesType", + "CheckSuitePreferenceType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0242.py b/githubkit/versions/v2022_11_28/types/group_0242.py index 1a155e137..49478eda2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0242.py +++ b/githubkit/versions/v2022_11_28/types/group_0242.py @@ -11,15 +11,35 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict - - -class CodeScanningAutofixType(TypedDict): - """CodeScanningAutofix""" - - status: Literal["pending", "error", "success", "outdated"] - description: Union[str, None] - started_at: datetime - - -__all__ = ("CodeScanningAutofixType",) +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0088 import CodeScanningAlertRuleSummaryType +from .group_0089 import CodeScanningAnalysisToolType +from .group_0090 import CodeScanningAlertInstanceType + + +class CodeScanningAlertItemsType(TypedDict): + """CodeScanningAlertItems""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + + +__all__ = ("CodeScanningAlertItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0243.py b/githubkit/versions/v2022_11_28/types/group_0243.py index 8ec0e8374..18a50c5cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0243.py +++ b/githubkit/versions/v2022_11_28/types/group_0243.py @@ -9,17 +9,55 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class CodeScanningAutofixCommitsType(TypedDict): - """CodeScanningAutofixCommits - - Commit an autofix for a code scanning alert - """ - - target_ref: NotRequired[str] - message: NotRequired[str] - - -__all__ = ("CodeScanningAutofixCommitsType",) +from .group_0003 import SimpleUserType +from .group_0089 import CodeScanningAnalysisToolType +from .group_0090 import CodeScanningAlertInstanceType + + +class CodeScanningAlertType(TypedDict): + """CodeScanningAlert""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + + +class CodeScanningAlertRuleType(TypedDict): + """CodeScanningAlertRule""" + + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[list[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + + +__all__ = ( + "CodeScanningAlertRuleType", + "CodeScanningAlertType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0244.py b/githubkit/versions/v2022_11_28/types/group_0244.py index 2cbf6f579..1a155e137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0244.py +++ b/githubkit/versions/v2022_11_28/types/group_0244.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict -class CodeScanningAutofixCommitsResponseType(TypedDict): - """CodeScanningAutofixCommitsResponse""" +class CodeScanningAutofixType(TypedDict): + """CodeScanningAutofix""" - target_ref: NotRequired[str] - sha: NotRequired[str] + status: Literal["pending", "error", "success", "outdated"] + description: Union[str, None] + started_at: datetime -__all__ = ("CodeScanningAutofixCommitsResponseType",) +__all__ = ("CodeScanningAutofixType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0245.py b/githubkit/versions/v2022_11_28/types/group_0245.py index 6224105ae..8ec0e8374 100644 --- a/githubkit/versions/v2022_11_28/types/group_0245.py +++ b/githubkit/versions/v2022_11_28/types/group_0245.py @@ -9,30 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_0087 import CodeScanningAnalysisToolType +class CodeScanningAutofixCommitsType(TypedDict): + """CodeScanningAutofixCommits -class CodeScanningAnalysisType(TypedDict): - """CodeScanningAnalysis""" + Commit an autofix for a code scanning alert + """ - 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 + target_ref: NotRequired[str] + message: NotRequired[str] -__all__ = ("CodeScanningAnalysisType",) +__all__ = ("CodeScanningAutofixCommitsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0246.py b/githubkit/versions/v2022_11_28/types/group_0246.py index a217f8af1..2cbf6f579 100644 --- a/githubkit/versions/v2022_11_28/types/group_0246.py +++ b/githubkit/versions/v2022_11_28/types/group_0246.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CodeScanningAnalysisDeletionType(TypedDict): - """Analysis deletion +class CodeScanningAutofixCommitsResponseType(TypedDict): + """CodeScanningAutofixCommitsResponse""" - Successful deletion of a code scanning analysis - """ + target_ref: NotRequired[str] + sha: NotRequired[str] - next_analysis_url: Union[str, None] - confirm_delete_url: Union[str, None] - -__all__ = ("CodeScanningAnalysisDeletionType",) +__all__ = ("CodeScanningAutofixCommitsResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0247.py b/githubkit/versions/v2022_11_28/types/group_0247.py index 279371ebd..0b33cdd00 100644 --- a/githubkit/versions/v2022_11_28/types/group_0247.py +++ b/githubkit/versions/v2022_11_28/types/group_0247.py @@ -10,28 +10,29 @@ 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_0089 import CodeScanningAnalysisToolType -class CodeScanningCodeqlDatabaseType(TypedDict): - """CodeQL Database +class CodeScanningAnalysisType(TypedDict): + """CodeScanningAnalysis""" - A CodeQL database. - """ - - id: int - name: str - language: str - uploader: SimpleUserType - content_type: str - size: int + ref: str + commit_sha: str + analysis_key: str + environment: str + category: NotRequired[str] + error: str created_at: datetime - updated_at: datetime + results_count: int + rules_count: int + id: int url: str - commit_oid: NotRequired[Union[str, None]] + sarif_id: str + tool: CodeScanningAnalysisToolType + deletable: bool + warning: str -__all__ = ("CodeScanningCodeqlDatabaseType",) +__all__ = ("CodeScanningAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0248.py b/githubkit/versions/v2022_11_28/types/group_0248.py index 86f33d140..a217f8af1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0248.py +++ b/githubkit/versions/v2022_11_28/types/group_0248.py @@ -9,23 +9,18 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import TypedDict -class CodeScanningVariantAnalysisRepositoryType(TypedDict): - """Repository Identifier +class CodeScanningAnalysisDeletionType(TypedDict): + """Analysis deletion - Repository Identifier + Successful deletion of a code scanning analysis """ - id: int - name: str - full_name: str - private: bool - stargazers_count: int - updated_at: Union[datetime, None] + next_analysis_url: Union[str, None] + confirm_delete_url: Union[str, None] -__all__ = ("CodeScanningVariantAnalysisRepositoryType",) +__all__ = ("CodeScanningAnalysisDeletionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0249.py b/githubkit/versions/v2022_11_28/types/group_0249.py index b76a3c75c..279371ebd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0249.py +++ b/githubkit/versions/v2022_11_28/types/group_0249.py @@ -9,16 +9,29 @@ 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_0248 import CodeScanningVariantAnalysisRepositoryType +from .group_0003 import SimpleUserType -class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningCodeqlDatabaseType(TypedDict): + """CodeQL Database - repository_count: int - repositories: list[CodeScanningVariantAnalysisRepositoryType] + 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__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) + +__all__ = ("CodeScanningCodeqlDatabaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0250.py b/githubkit/versions/v2022_11_28/types/group_0250.py index 8cfdddfae..86f33d140 100644 --- a/githubkit/versions/v2022_11_28/types/group_0250.py +++ b/githubkit/versions/v2022_11_28/types/group_0250.py @@ -10,42 +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 -from .group_0003 import SimpleUserType -from .group_0031 import SimpleRepositoryType -from .group_0251 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType -from .group_0252 import CodeScanningVariantAnalysisPropSkippedRepositoriesType +class CodeScanningVariantAnalysisRepositoryType(TypedDict): + """Repository Identifier -class CodeScanningVariantAnalysisType(TypedDict): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Repository Identifier """ id: int - controller_repo: SimpleRepositoryType - actor: SimpleUserType - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] - query_pack_url: str - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - completed_at: NotRequired[Union[datetime, None]] - status: Literal["in_progress", "succeeded", "failed", "cancelled"] - actions_workflow_run_id: NotRequired[int] - failure_reason: NotRequired[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] - scanned_repositories: NotRequired[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] - ] - skipped_repositories: NotRequired[ - CodeScanningVariantAnalysisPropSkippedRepositoriesType - ] - - -__all__ = ("CodeScanningVariantAnalysisType",) + 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_0251.py b/githubkit/versions/v2022_11_28/types/group_0251.py index 517d82c02..88a572cd2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0251.py +++ b/githubkit/versions/v2022_11_28/types/group_0251.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_0248 import CodeScanningVariantAnalysisRepositoryType +from .group_0250 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - 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] + repository_count: int + repositories: list[CodeScanningVariantAnalysisRepositoryType] -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0252.py b/githubkit/versions/v2022_11_28/types/group_0252.py index fbce97911..706809b62 100644 --- a/githubkit/versions/v2022_11_28/types/group_0252.py +++ b/githubkit/versions/v2022_11_28/types/group_0252.py @@ -9,36 +9,43 @@ 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_0249 import CodeScanningVariantAnalysisSkippedRepoGroupType +from .group_0003 import SimpleUserType +from .group_0032 import SimpleRepositoryType +from .group_0253 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType +from .group_0254 import CodeScanningVariantAnalysisPropSkippedRepositoriesType -class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningVariantAnalysisType(TypedDict): + """Variant Analysis - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + A run of a CodeQL query against one or more repositories. """ - 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", -) + id: int + controller_repo: SimpleRepositoryType + actor: SimpleUserType + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack_url: str + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + completed_at: NotRequired[Union[datetime, None]] + status: Literal["in_progress", "succeeded", "failed", "cancelled"] + actions_workflow_run_id: NotRequired[int] + failure_reason: NotRequired[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] + scanned_repositories: NotRequired[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] + ] + skipped_repositories: NotRequired[ + CodeScanningVariantAnalysisPropSkippedRepositoriesType + ] + + +__all__ = ("CodeScanningVariantAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0253.py b/githubkit/versions/v2022_11_28/types/group_0253.py index 3cababe12..e32b8902f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0253.py +++ b/githubkit/versions/v2022_11_28/types/group_0253.py @@ -12,22 +12,19 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0031 import SimpleRepositoryType +from .group_0250 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningVariantAnalysisRepoTaskType(TypedDict): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - repository: SimpleRepositoryType + repository: CodeScanningVariantAnalysisRepositoryType analysis_status: Literal[ "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" ] - artifact_size_in_bytes: NotRequired[int] result_count: NotRequired[int] + artifact_size_in_bytes: NotRequired[int] failure_message: NotRequired[str] - database_commit_sha: NotRequired[str] - source_location_prefix: NotRequired[str] - artifact_url: NotRequired[str] -__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0254.py b/githubkit/versions/v2022_11_28/types/group_0254.py index 481da9df9..b83c15c74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0254.py +++ b/githubkit/versions/v2022_11_28/types/group_0254.py @@ -9,41 +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_0251 import CodeScanningVariantAnalysisSkippedRepoGroupType -class CodeScanningDefaultSetupType(TypedDict): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +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. """ - state: NotRequired[Literal["configured", "not-configured"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] - runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - threat_model: NotRequired[Literal["remote", "remote_and_local"]] - updated_at: NotRequired[Union[datetime, None]] - schedule: NotRequired[Union[None, Literal["weekly"]]] - - -__all__ = ("CodeScanningDefaultSetupType",) + 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_0255.py b/githubkit/versions/v2022_11_28/types/group_0255.py index 69c76e214..0fa9efb10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0255.py +++ b/githubkit/versions/v2022_11_28/types/group_0255.py @@ -9,36 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0032 import SimpleRepositoryType -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"]] - threat_model: NotRequired[Literal["remote", "remote_and_local"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] + +class CodeScanningVariantAnalysisRepoTaskType(TypedDict): + """CodeScanningVariantAnalysisRepoTask""" + + repository: SimpleRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" ] + artifact_size_in_bytes: NotRequired[int] + result_count: NotRequired[int] + failure_message: NotRequired[str] + database_commit_sha: NotRequired[str] + source_location_prefix: NotRequired[str] + artifact_url: NotRequired[str] -__all__ = ("CodeScanningDefaultSetupUpdateType",) +__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0256.py b/githubkit/versions/v2022_11_28/types/group_0256.py index f363fa4b1..481da9df9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0256.py +++ b/githubkit/versions/v2022_11_28/types/group_0256.py @@ -9,19 +9,41 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningDefaultSetupUpdateResponseType(TypedDict): - """CodeScanningDefaultSetupUpdateResponse +class CodeScanningDefaultSetupType(TypedDict): + """CodeScanningDefaultSetup - 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. + Configuration for code scanning default setup. """ - run_id: NotRequired[int] - run_url: NotRequired[str] - - -__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) + state: NotRequired[Literal["configured", "not-configured"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] + runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + threat_model: NotRequired[Literal["remote", "remote_and_local"]] + updated_at: NotRequired[Union[datetime, None]] + schedule: NotRequired[Union[None, Literal["weekly"]]] + + +__all__ = ("CodeScanningDefaultSetupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0257.py b/githubkit/versions/v2022_11_28/types/group_0257.py index 5a45d64e1..69c76e214 100644 --- a/githubkit/versions/v2022_11_28/types/group_0257.py +++ b/githubkit/versions/v2022_11_28/types/group_0257.py @@ -9,14 +9,36 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningSarifsReceiptType(TypedDict): - """CodeScanningSarifsReceipt""" - - id: NotRequired[str] - url: NotRequired[str] - - -__all__ = ("CodeScanningSarifsReceiptType",) +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"]] + threat_model: NotRequired[Literal["remote", "remote_and_local"]] + 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_0258.py b/githubkit/versions/v2022_11_28/types/group_0258.py index 3b46d219b..f363fa4b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0258.py +++ b/githubkit/versions/v2022_11_28/types/group_0258.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningSarifsStatusType(TypedDict): - """CodeScanningSarifsStatus""" +class CodeScanningDefaultSetupUpdateResponseType(TypedDict): + """CodeScanningDefaultSetupUpdateResponse - processing_status: NotRequired[Literal["pending", "complete", "failed"]] - analyses_url: NotRequired[Union[str, None]] - errors: NotRequired[Union[list[str], None]] + 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] -__all__ = ("CodeScanningSarifsStatusType",) + +__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0259.py b/githubkit/versions/v2022_11_28/types/group_0259.py index 39746fa67..5a45d64e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0259.py +++ b/githubkit/versions/v2022_11_28/types/group_0259.py @@ -9,31 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0028 import CodeSecurityConfigurationType +class CodeScanningSarifsReceiptType(TypedDict): + """CodeScanningSarifsReceipt""" -class CodeSecurityConfigurationForRepositoryType(TypedDict): - """CodeSecurityConfigurationForRepository + id: NotRequired[str] + url: NotRequired[str] - Code security configuration associated with a repository and attachment status - """ - status: NotRequired[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] - configuration: NotRequired[CodeSecurityConfigurationType] - - -__all__ = ("CodeSecurityConfigurationForRepositoryType",) +__all__ = ("CodeScanningSarifsReceiptType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0260.py b/githubkit/versions/v2022_11_28/types/group_0260.py index 4480d357f..3b46d219b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0260.py +++ b/githubkit/versions/v2022_11_28/types/group_0260.py @@ -9,32 +9,16 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeownersErrorsType(TypedDict): - """CODEOWNERS errors +class CodeScanningSarifsStatusType(TypedDict): + """CodeScanningSarifsStatus""" - A list of errors found in a repo's CODEOWNERS file - """ + processing_status: NotRequired[Literal["pending", "complete", "failed"]] + analyses_url: NotRequired[Union[str, None]] + errors: NotRequired[Union[list[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__ = ( - "CodeownersErrorsPropErrorsItemsType", - "CodeownersErrorsType", -) +__all__ = ("CodeScanningSarifsStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0261.py b/githubkit/versions/v2022_11_28/types/group_0261.py index e1c93e03b..39746fa67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0261.py +++ b/githubkit/versions/v2022_11_28/types/group_0261.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_0028 import CodeSecurityConfigurationType -class CodespacesPermissionsCheckForDevcontainerType(TypedDict): - """Codespaces Permissions Check - Permission check result for a given devcontainer config. - """ - - accepted: bool +class CodeSecurityConfigurationForRepositoryType(TypedDict): + """CodeSecurityConfigurationForRepository + Code security configuration associated with a repository and attachment status + """ -__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) + 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_0262.py b/githubkit/versions/v2022_11_28/types/group_0262.py index acd7df962..4480d357f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0262.py +++ b/githubkit/versions/v2022_11_28/types/group_0262.py @@ -9,30 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0061 import MinimalRepositoryType +class CodeownersErrorsType(TypedDict): + """CODEOWNERS errors -class RepositoryInvitationType(TypedDict): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. + A list of errors found in a repo's CODEOWNERS file """ - 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 + 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__ = ("RepositoryInvitationType",) +__all__ = ( + "CodeownersErrorsPropErrorsItemsType", + "CodeownersErrorsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0263.py b/githubkit/versions/v2022_11_28/types/group_0263.py index 10af54a9e..e1c93e03b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0263.py +++ b/githubkit/versions/v2022_11_28/types/group_0263.py @@ -9,64 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class RepositoryCollaboratorPermissionType(TypedDict): - """Repository Collaborator Permission +class CodespacesPermissionsCheckForDevcontainerType(TypedDict): + """Codespaces Permissions Check - Repository Collaborator Permission + Permission check result for a given devcontainer config. """ - permission: str - role_name: str - user: Union[None, CollaboratorType] + accepted: bool -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__ = ("CodespacesPermissionsCheckForDevcontainerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0264.py b/githubkit/versions/v2022_11_28/types/group_0264.py index 1cf79a458..24ba4bbbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0264.py +++ b/githubkit/versions/v2022_11_28/types/group_0264.py @@ -14,53 +14,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0044 import ReactionRollupType +from .group_0063 import MinimalRepositoryType -class CommitCommentType(TypedDict): - """Commit Comment +class RepositoryInvitationType(TypedDict): + """Repository Invitation - Commit Comment + Repository invitations let you manage who you collaborate with. """ - 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] + repository: MinimalRepositoryType + invitee: Union[None, SimpleUserType] + inviter: Union[None, SimpleUserType] + permissions: Literal["read", "write", "admin", "triage", "maintain"] 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]] + expired: NotRequired[bool] + url: str + html_url: str + node_id: str -__all__ = ( - "CommitCommentType", - "TimelineCommitCommentedEventType", -) +__all__ = ("RepositoryInvitationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0265.py b/githubkit/versions/v2022_11_28/types/group_0265.py index 997250710..10af54a9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0265.py +++ b/githubkit/versions/v2022_11_28/types/group_0265.py @@ -9,28 +9,64 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class BranchShortType(TypedDict): - """Branch Short +class RepositoryCollaboratorPermissionType(TypedDict): + """Repository Collaborator Permission - Branch Short + Repository Collaborator Permission """ - name: str - commit: BranchShortPropCommitType - protected: bool + permission: str + role_name: str + user: Union[None, CollaboratorType] -class BranchShortPropCommitType(TypedDict): - """BranchShortPropCommit""" +class CollaboratorType(TypedDict): + """Collaborator - sha: str + 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__ = ( - "BranchShortPropCommitType", - "BranchShortType", + "CollaboratorPropPermissionsType", + "CollaboratorType", + "RepositoryCollaboratorPermissionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0266.py b/githubkit/versions/v2022_11_28/types/group_0266.py index 064aa0ae7..824cc3bb6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0266.py +++ b/githubkit/versions/v2022_11_28/types/group_0266.py @@ -9,16 +9,58 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0045 import ReactionRollupType -class LinkType(TypedDict): - """Link - Hypermedia Link +class CommitCommentType(TypedDict): + """Commit Comment + + 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 """ - href: str + event: NotRequired[Literal["commit_commented"]] + node_id: NotRequired[str] + commit_id: NotRequired[str] + comments: NotRequired[list[CommitCommentType]] -__all__ = ("LinkType",) +__all__ = ( + "CommitCommentType", + "TimelineCommitCommentedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0267.py b/githubkit/versions/v2022_11_28/types/group_0267.py index ac1473211..997250710 100644 --- a/githubkit/versions/v2022_11_28/types/group_0267.py +++ b/githubkit/versions/v2022_11_28/types/group_0267.py @@ -9,22 +9,28 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class BranchShortType(TypedDict): + """Branch Short -class AutoMergeType(TypedDict): - """Auto merge - - The status of auto merging a pull request. + Branch Short """ - enabled_by: SimpleUserType - merge_method: Literal["merge", "squash", "rebase"] - commit_title: Union[str, None] - commit_message: Union[str, None] + name: str + commit: BranchShortPropCommitType + protected: bool + + +class BranchShortPropCommitType(TypedDict): + """BranchShortPropCommit""" + + sha: str + url: str -__all__ = ("AutoMergeType",) +__all__ = ( + "BranchShortPropCommitType", + "BranchShortType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0268.py b/githubkit/versions/v2022_11_28/types/group_0268.py index b48208711..064aa0ae7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0268.py +++ b/githubkit/versions/v2022_11_28/types/group_0268.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_0003 import SimpleUserType -from .group_0042 import MilestoneType -from .group_0084 import TeamType -from .group_0267 import AutoMergeType -from .group_0269 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType -from .group_0270 import PullRequestSimplePropLinksType +class LinkType(TypedDict): + """Link -class PullRequestSimpleType(TypedDict): - """Pull Request Simple - - Pull Request Simple + Hypermedia Link """ - 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 + href: str -__all__ = ( - "PullRequestSimplePropLabelsItemsType", - "PullRequestSimpleType", -) +__all__ = ("LinkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0269.py b/githubkit/versions/v2022_11_28/types/group_0269.py index 1c03aef11..ac1473211 100644 --- a/githubkit/versions/v2022_11_28/types/group_0269.py +++ b/githubkit/versions/v2022_11_28/types/group_0269.py @@ -9,34 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -class PullRequestSimplePropHeadType(TypedDict): - """PullRequestSimplePropHead""" +class AutoMergeType(TypedDict): + """Auto merge - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] + The status of auto merging a pull request. + """ + enabled_by: SimpleUserType + merge_method: Literal["merge", "squash", "rebase"] + commit_title: Union[str, None] + commit_message: Union[str, None] -class PullRequestSimplePropBaseType(TypedDict): - """PullRequestSimplePropBase""" - label: str - ref: str - repo: RepositoryType - sha: str - user: Union[None, SimpleUserType] - - -__all__ = ( - "PullRequestSimplePropBaseType", - "PullRequestSimplePropHeadType", -) +__all__ = ("AutoMergeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0270.py b/githubkit/versions/v2022_11_28/types/group_0270.py index 7d99b4362..d9a811a9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0270.py +++ b/githubkit/versions/v2022_11_28/types/group_0270.py @@ -9,22 +9,84 @@ 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_0266 import LinkType +from .group_0003 import SimpleUserType +from .group_0043 import MilestoneType +from .group_0086 import TeamType +from .group_0269 import AutoMergeType +from .group_0271 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType +from .group_0272 import PullRequestSimplePropLinksType -class PullRequestSimplePropLinksType(TypedDict): - """PullRequestSimplePropLinks""" +class PullRequestSimpleType(TypedDict): + """Pull Request Simple - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + Pull Request Simple + """ + 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] -__all__ = ("PullRequestSimplePropLinksType",) + +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_0271.py b/githubkit/versions/v2022_11_28/types/group_0271.py index 7ffc6c74e..1c03aef11 100644 --- a/githubkit/versions/v2022_11_28/types/group_0271.py +++ b/githubkit/versions/v2022_11_28/types/group_0271.py @@ -9,45 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0061 import MinimalRepositoryType +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class CombinedCommitStatusType(TypedDict): - """Combined Commit Status +class PullRequestSimplePropHeadType(TypedDict): + """PullRequestSimplePropHead""" - Combined Commit Status - """ - - state: str - statuses: list[SimpleCommitStatusType] + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] sha: str - total_count: int - repository: MinimalRepositoryType - commit_url: str - url: str + user: Union[None, SimpleUserType] -class SimpleCommitStatusType(TypedDict): - """Simple Commit Status""" +class PullRequestSimplePropBaseType(TypedDict): + """PullRequestSimplePropBase""" - 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 + label: str + ref: str + repo: RepositoryType + sha: str + user: Union[None, SimpleUserType] __all__ = ( - "CombinedCommitStatusType", - "SimpleCommitStatusType", + "PullRequestSimplePropBaseType", + "PullRequestSimplePropHeadType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0272.py b/githubkit/versions/v2022_11_28/types/group_0272.py index 13b770a02..418044384 100644 --- a/githubkit/versions/v2022_11_28/types/group_0272.py +++ b/githubkit/versions/v2022_11_28/types/group_0272.py @@ -9,29 +9,22 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +from .group_0268 import LinkType -class StatusType(TypedDict): - """Status +class PullRequestSimplePropLinksType(TypedDict): + """PullRequestSimplePropLinks""" - The status of a commit. - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - 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__ = ("PullRequestSimplePropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0273.py b/githubkit/versions/v2022_11_28/types/group_0273.py index 72f37c3db..35b898385 100644 --- a/githubkit/versions/v2022_11_28/types/group_0273.py +++ b/githubkit/versions/v2022_11_28/types/group_0273.py @@ -13,45 +13,41 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0019 import LicenseSimpleType -from .group_0123 import CodeOfConductSimpleType +from .group_0063 import MinimalRepositoryType -class CommunityProfilePropFilesType(TypedDict): - """CommunityProfilePropFiles""" +class CombinedCommitStatusType(TypedDict): + """Combined Commit Status - 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""" + Combined Commit Status + """ + state: str + statuses: list[SimpleCommitStatusType] + sha: str + total_count: int + repository: MinimalRepositoryType + commit_url: str url: str - html_url: str -class CommunityProfileType(TypedDict): - """Community Profile +class SimpleCommitStatusType(TypedDict): + """Simple Commit Status""" - Community Profile - """ - - health_percentage: int description: Union[str, None] - documentation: Union[str, None] - files: CommunityProfilePropFilesType - updated_at: Union[datetime, None] - content_reports_enabled: NotRequired[bool] + 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__ = ( - "CommunityHealthFileType", - "CommunityProfilePropFilesType", - "CommunityProfileType", + "CombinedCommitStatusType", + "SimpleCommitStatusType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0274.py b/githubkit/versions/v2022_11_28/types/group_0274.py index bbf3df355..13b770a02 100644 --- a/githubkit/versions/v2022_11_28/types/group_0274.py +++ b/githubkit/versions/v2022_11_28/types/group_0274.py @@ -9,32 +9,29 @@ 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_0228 import DiffEntryType -from .group_0229 import CommitType +from .group_0003 import SimpleUserType -class CommitComparisonType(TypedDict): - """Commit Comparison +class StatusType(TypedDict): + """Status - Commit Comparison + The status of a commit. """ 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",) + 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_0275.py b/githubkit/versions/v2022_11_28/types/group_0275.py index 3c6f67fc5..08534e5d8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0275.py +++ b/githubkit/versions/v2022_11_28/types/group_0275.py @@ -9,65 +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_0125 import CodeOfConductSimpleType -class ContentTreeType(TypedDict): - """Content Tree - - Content Tree - """ - - 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]] - encoding: NotRequired[str] - links: ContentTreePropLinksType +class CommunityProfilePropFilesType(TypedDict): + """CommunityProfilePropFiles""" -class ContentTreePropLinksType(TypedDict): - """ContentTreePropLinks""" + 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] - git: Union[str, None] - html: Union[str, None] - self_: str +class CommunityHealthFileType(TypedDict): + """Community Health File""" -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 + html_url: str + +class CommunityProfileType(TypedDict): + """Community Profile -class ContentTreePropEntriesItemsPropLinksType(TypedDict): - """ContentTreePropEntriesItemsPropLinks""" + 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__ = ( - "ContentTreePropEntriesItemsPropLinksType", - "ContentTreePropEntriesItemsType", - "ContentTreePropLinksType", - "ContentTreeType", + "CommunityHealthFileType", + "CommunityProfilePropFilesType", + "CommunityProfileType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0276.py b/githubkit/versions/v2022_11_28/types/group_0276.py index 74ee6a6e4..23c3ffc8d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0276.py +++ b/githubkit/versions/v2022_11_28/types/group_0276.py @@ -9,35 +9,32 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0230 import DiffEntryType +from .group_0231 import CommitType -class ContentDirectoryItemsType(TypedDict): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] - size: int - name: str - path: str - content: NotRequired[str] - sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentDirectoryItemsPropLinksType - - -class ContentDirectoryItemsPropLinksType(TypedDict): - """ContentDirectoryItemsPropLinks""" +class CommitComparisonType(TypedDict): + """Commit Comparison - git: Union[str, None] - html: Union[str, None] - self_: str + Commit Comparison + """ - -__all__ = ( - "ContentDirectoryItemsPropLinksType", - "ContentDirectoryItemsType", -) + 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_0277.py b/githubkit/versions/v2022_11_28/types/group_0277.py index 2ad4b4ca8..3c6f67fc5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0277.py +++ b/githubkit/versions/v2022_11_28/types/group_0277.py @@ -9,34 +9,56 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class ContentFileType(TypedDict): - """Content File +class ContentTreeType(TypedDict): + """Content Tree - Content File + Content Tree """ - type: Literal["file"] - encoding: str + type: str size: int name: str path: str - content: str sha: str + content: NotRequired[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] + entries: NotRequired[list[ContentTreePropEntriesItemsType]] + encoding: NotRequired[str] + links: ContentTreePropLinksType -class ContentFilePropLinksType(TypedDict): - """ContentFilePropLinks""" +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] @@ -44,6 +66,8 @@ class ContentFilePropLinksType(TypedDict): __all__ = ( - "ContentFilePropLinksType", - "ContentFileType", + "ContentTreePropEntriesItemsPropLinksType", + "ContentTreePropEntriesItemsType", + "ContentTreePropLinksType", + "ContentTreeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0278.py b/githubkit/versions/v2022_11_28/types/group_0278.py index 0998eda68..74ee6a6e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0278.py +++ b/githubkit/versions/v2022_11_28/types/group_0278.py @@ -10,30 +10,27 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ContentSymlinkType(TypedDict): - """Symlink Content +class ContentDirectoryItemsType(TypedDict): + """ContentDirectoryItems""" - An object describing a symlink - """ - - type: Literal["symlink"] - target: str + 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: ContentSymlinkPropLinksType + links: ContentDirectoryItemsPropLinksType -class ContentSymlinkPropLinksType(TypedDict): - """ContentSymlinkPropLinks""" +class ContentDirectoryItemsPropLinksType(TypedDict): + """ContentDirectoryItemsPropLinks""" git: Union[str, None] html: Union[str, None] @@ -41,6 +38,6 @@ class ContentSymlinkPropLinksType(TypedDict): __all__ = ( - "ContentSymlinkPropLinksType", - "ContentSymlinkType", + "ContentDirectoryItemsPropLinksType", + "ContentDirectoryItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0279.py b/githubkit/versions/v2022_11_28/types/group_0279.py index b80d6984e..2ad4b4ca8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0279.py +++ b/githubkit/versions/v2022_11_28/types/group_0279.py @@ -10,30 +10,33 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ContentSubmoduleType(TypedDict): - """Submodule Content +class ContentFileType(TypedDict): + """Content File - An object describing a submodule + Content File """ - type: Literal["submodule"] - submodule_git_url: str + 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: ContentSubmodulePropLinksType + links: ContentFilePropLinksType + target: NotRequired[str] + submodule_git_url: NotRequired[str] -class ContentSubmodulePropLinksType(TypedDict): - """ContentSubmodulePropLinks""" +class ContentFilePropLinksType(TypedDict): + """ContentFilePropLinks""" git: Union[str, None] html: Union[str, None] @@ -41,6 +44,6 @@ class ContentSubmodulePropLinksType(TypedDict): __all__ = ( - "ContentSubmodulePropLinksType", - "ContentSubmoduleType", + "ContentFilePropLinksType", + "ContentFileType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0280.py b/githubkit/versions/v2022_11_28/types/group_0280.py index 78a4cf43d..0998eda68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0280.py +++ b/githubkit/versions/v2022_11_28/types/group_0280.py @@ -9,107 +9,38 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class FileCommitType(TypedDict): - """File Commit +class ContentSymlinkType(TypedDict): + """Symlink Content - File Commit + An object describing a symlink """ - content: Union[FileCommitPropContentType, None] - commit: FileCommitPropCommitType + 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 FileCommitPropContentType(TypedDict): - """FileCommitPropContent""" +class ContentSymlinkPropLinksType(TypedDict): + """ContentSymlinkPropLinks""" - name: NotRequired[str] - path: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] - html_url: NotRequired[str] - git_url: NotRequired[str] - download_url: NotRequired[str] - type: NotRequired[str] - links: NotRequired[FileCommitPropContentPropLinksType] - - -class FileCommitPropContentPropLinksType(TypedDict): - """FileCommitPropContentPropLinks""" - - self_: NotRequired[str] - git: NotRequired[str] - html: NotRequired[str] - - -class FileCommitPropCommitType(TypedDict): - """FileCommitPropCommit""" - - sha: NotRequired[str] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - author: NotRequired[FileCommitPropCommitPropAuthorType] - committer: NotRequired[FileCommitPropCommitPropCommitterType] - message: NotRequired[str] - tree: NotRequired[FileCommitPropCommitPropTreeType] - parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] - verification: NotRequired[FileCommitPropCommitPropVerificationType] - - -class FileCommitPropCommitPropAuthorType(TypedDict): - """FileCommitPropCommitPropAuthor""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropCommitterType(TypedDict): - """FileCommitPropCommitPropCommitter""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropTreeType(TypedDict): - """FileCommitPropCommitPropTree""" - - url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropParentsItemsType(TypedDict): - """FileCommitPropCommitPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropVerificationType(TypedDict): - """FileCommitPropCommitPropVerification""" - - verified: NotRequired[bool] - reason: NotRequired[str] - signature: NotRequired[Union[str, None]] - payload: NotRequired[Union[str, None]] - verified_at: NotRequired[Union[str, None]] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "FileCommitPropCommitPropAuthorType", - "FileCommitPropCommitPropCommitterType", - "FileCommitPropCommitPropParentsItemsType", - "FileCommitPropCommitPropTreeType", - "FileCommitPropCommitPropVerificationType", - "FileCommitPropCommitType", - "FileCommitPropContentPropLinksType", - "FileCommitPropContentType", - "FileCommitType", + "ContentSymlinkPropLinksType", + "ContentSymlinkType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0281.py b/githubkit/versions/v2022_11_28/types/group_0281.py index 82a56dc68..b80d6984e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0281.py +++ b/githubkit/versions/v2022_11_28/types/group_0281.py @@ -9,53 +9,38 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class RepositoryRuleViolationErrorType(TypedDict): - """RepositoryRuleViolationError +class ContentSubmoduleType(TypedDict): + """Submodule Content - Repository rule violation was detected + An object describing a submodule """ - message: NotRequired[str] - documentation_url: NotRequired[str] - status: NotRequired[str] - metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] + 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 RepositoryRuleViolationErrorPropMetadataType(TypedDict): - """RepositoryRuleViolationErrorPropMetadata""" +class ContentSubmodulePropLinksType(TypedDict): + """ContentSubmodulePropLinks""" - secret_scanning: NotRequired[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningType - ] - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" - - bypass_placeholders: NotRequired[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType - ] - ] - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( - TypedDict -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ - - placeholder_id: NotRequired[str] - token_type: NotRequired[str] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", - "RepositoryRuleViolationErrorPropMetadataType", - "RepositoryRuleViolationErrorType", + "ContentSubmodulePropLinksType", + "ContentSubmoduleType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0282.py b/githubkit/versions/v2022_11_28/types/group_0282.py index 0bcf70515..78a4cf43d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0282.py +++ b/githubkit/versions/v2022_11_28/types/group_0282.py @@ -13,34 +13,103 @@ from typing_extensions import NotRequired, TypedDict -class ContributorType(TypedDict): - """Contributor +class FileCommitType(TypedDict): + """File Commit - Contributor + File Commit """ - login: NotRequired[str] - id: NotRequired[int] + 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] - 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 + 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] - user_view_type: 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__ = ("ContributorType",) +__all__ = ( + "FileCommitPropCommitPropAuthorType", + "FileCommitPropCommitPropCommitterType", + "FileCommitPropCommitPropParentsItemsType", + "FileCommitPropCommitPropTreeType", + "FileCommitPropCommitPropVerificationType", + "FileCommitPropCommitType", + "FileCommitPropContentPropLinksType", + "FileCommitPropContentType", + "FileCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0283.py b/githubkit/versions/v2022_11_28/types/group_0283.py index 2ecc60cd9..82a56dc68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0283.py +++ b/githubkit/versions/v2022_11_28/types/group_0283.py @@ -9,42 +9,53 @@ 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_0034 import DependabotAlertSecurityVulnerabilityType -from .group_0035 import DependabotAlertSecurityAdvisoryType -from .group_0284 import DependabotAlertPropDependencyType +class RepositoryRuleViolationErrorType(TypedDict): + """RepositoryRuleViolationError -class DependabotAlertType(TypedDict): - """DependabotAlert - - A Dependabot alert. + Repository rule violation was detected """ - 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" - ], + 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 + ] ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] -__all__ = ("DependabotAlertType",) +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( + TypedDict +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items + """ + + placeholder_id: NotRequired[str] + token_type: NotRequired[str] + + +__all__ = ( + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", + "RepositoryRuleViolationErrorPropMetadataType", + "RepositoryRuleViolationErrorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0284.py b/githubkit/versions/v2022_11_28/types/group_0284.py index 2907afce5..0bcf70515 100644 --- a/githubkit/versions/v2022_11_28/types/group_0284.py +++ b/githubkit/versions/v2022_11_28/types/group_0284.py @@ -9,22 +9,38 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0033 import DependabotAlertPackageType +class ContributorType(TypedDict): + """Contributor -class DependabotAlertPropDependencyType(TypedDict): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + Contributor """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] - relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]] - - -__all__ = ("DependabotAlertPropDependencyType",) + 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_0285.py b/githubkit/versions/v2022_11_28/types/group_0285.py index b061be26e..e27da1df1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0285.py +++ b/githubkit/versions/v2022_11_28/types/group_0285.py @@ -9,35 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -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", -) +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0035 import DependabotAlertSecurityVulnerabilityType +from .group_0036 import DependabotAlertSecurityAdvisoryType +from .group_0286 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_0286.py b/githubkit/versions/v2022_11_28/types/group_0286.py index 489a3ce99..13f6ab701 100644 --- a/githubkit/versions/v2022_11_28/types/group_0286.py +++ b/githubkit/versions/v2022_11_28/types/group_0286.py @@ -9,81 +9,22 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0034 import DependabotAlertPackageType -class DependencyGraphSpdxSbomType(TypedDict): - """Dependency Graph SPDX SBOM - A schema for the SPDX JSON format returned by the Dependency Graph. - """ - - sbom: DependencyGraphSpdxSbomPropSbomType - - -class DependencyGraphSpdxSbomPropSbomType(TypedDict): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str - spdx_version: str - comment: NotRequired[str] - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType - name: str - data_license: str - document_namespace: str - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] - relationships: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] - ] - - -class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - - created: str - creators: list[str] +class DependabotAlertPropDependencyType(TypedDict): + """DependabotAlertPropDependency + Details for the vulnerable dependency. + """ -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 + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] + relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]] -__all__ = ( - "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", - "DependencyGraphSpdxSbomPropSbomType", - "DependencyGraphSpdxSbomType", -) +__all__ = ("DependabotAlertPropDependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0287.py b/githubkit/versions/v2022_11_28/types/group_0287.py index 75968e9b1..b061be26e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0287.py +++ b/githubkit/versions/v2022_11_28/types/group_0287.py @@ -9,15 +9,35 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing import Literal, Union +from typing_extensions import TypedDict -MetadataType: TypeAlias = dict[str, Any] -"""metadata -User-defined metadata to store domain-specific information limited to 8 keys -with scalar values. -""" +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__ = ("MetadataType",) +__all__ = ( + "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", + "DependencyGraphDiffItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0288.py b/githubkit/versions/v2022_11_28/types/group_0288.py index bdd324af1..489a3ce99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0288.py +++ b/githubkit/versions/v2022_11_28/types/group_0288.py @@ -9,20 +9,81 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0287 import MetadataType +class DependencyGraphSpdxSbomType(TypedDict): + """Dependency Graph SPDX SBOM -class DependencyType(TypedDict): - """Dependency""" + A schema for the SPDX JSON format returned by the Dependency Graph. + """ - package_url: NotRequired[str] - metadata: NotRequired[MetadataType] - relationship: NotRequired[Literal["direct", "indirect"]] - scope: NotRequired[Literal["runtime", "development"]] - dependencies: NotRequired[list[str]] + sbom: DependencyGraphSpdxSbomPropSbomType -__all__ = ("DependencyType",) +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_0289.py b/githubkit/versions/v2022_11_28/types/group_0289.py index 45ad48267..75968e9b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0289.py +++ b/githubkit/versions/v2022_11_28/types/group_0289.py @@ -10,35 +10,14 @@ from __future__ import annotations from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypeAlias -from .group_0287 import MetadataType +MetadataType: TypeAlias = dict[str, Any] +"""metadata - -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. +User-defined metadata to store domain-specific information limited to 8 keys +with scalar values. """ -__all__ = ( - "ManifestPropFileType", - "ManifestPropResolvedType", - "ManifestType", -) +__all__ = ("MetadataType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0290.py b/githubkit/versions/v2022_11_28/types/group_0290.py index 040e9dcc5..8fe74a195 100644 --- a/githubkit/versions/v2022_11_28/types/group_0290.py +++ b/githubkit/versions/v2022_11_28/types/group_0290.py @@ -9,59 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0287 import MetadataType +from .group_0289 import MetadataType -class SnapshotType(TypedDict): - """snapshot +class DependencyType(TypedDict): + """Dependency""" - Create a new snapshot of a repository's dependencies. - """ - - version: int - job: SnapshotPropJobType - sha: str - ref: str - detector: SnapshotPropDetectorType + package_url: NotRequired[str] 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. -""" + relationship: NotRequired[Literal["direct", "indirect"]] + scope: NotRequired[Literal["runtime", "development"]] + dependencies: NotRequired[list[str]] -__all__ = ( - "SnapshotPropDetectorType", - "SnapshotPropJobType", - "SnapshotPropManifestsType", - "SnapshotType", -) +__all__ = ("DependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0291.py b/githubkit/versions/v2022_11_28/types/group_0291.py index 8e3d71848..b107454d4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0291.py +++ b/githubkit/versions/v2022_11_28/types/group_0291.py @@ -9,37 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType - - -class DeploymentStatusType(TypedDict): - """Deployment Status - - The status of a deployment. - """ - - url: str - id: int - node_id: str - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] - creator: Union[None, SimpleUserType] - description: str - environment: NotRequired[str] - target_url: str - created_at: datetime - updated_at: datetime - deployment_url: str - repository_url: str - environment_url: NotRequired[str] - log_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentStatusType",) +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict + +from .group_0289 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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0292.py b/githubkit/versions/v2022_11_28/types/group_0292.py index 2b9241c94..321605cc0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0292.py +++ b/githubkit/versions/v2022_11_28/types/group_0292.py @@ -9,18 +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_0289 import MetadataType -class DeploymentBranchPolicySettingsType(TypedDict): - """DeploymentBranchPolicySettings - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. +class SnapshotType(TypedDict): + """snapshot + + Create a new snapshot of a repository's dependencies. """ - protected_branches: bool - custom_branch_policies: bool + 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__ = ("DeploymentBranchPolicySettingsType",) +__all__ = ( + "SnapshotPropDetectorType", + "SnapshotPropJobType", + "SnapshotPropManifestsType", + "SnapshotType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0293.py b/githubkit/versions/v2022_11_28/types/group_0293.py index 44287d481..8e3d71848 100644 --- a/githubkit/versions/v2022_11_28/types/group_0293.py +++ b/githubkit/versions/v2022_11_28/types/group_0293.py @@ -10,67 +10,36 @@ 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_0292 import DeploymentBranchPolicySettingsType -from .group_0294 import EnvironmentPropProtectionRulesItemsAnyof1Type +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class EnvironmentType(TypedDict): - """Environment +class DeploymentStatusType(TypedDict): + """Deployment Status - Details of a deployment environment + The status of a deployment. """ + url: str id: int node_id: str - name: str - url: str - html_url: 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 - 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]] + deployment_url: str + repository_url: str + environment_url: NotRequired[str] + log_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] -__all__ = ( - "EnvironmentPropProtectionRulesItemsAnyof0Type", - "EnvironmentPropProtectionRulesItemsAnyof2Type", - "EnvironmentType", - "ReposOwnerRepoEnvironmentsGetResponse200Type", -) +__all__ = ("DeploymentStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0294.py b/githubkit/versions/v2022_11_28/types/group_0294.py index 77dda0dce..2b9241c94 100644 --- a/githubkit/versions/v2022_11_28/types/group_0294.py +++ b/githubkit/versions/v2022_11_28/types/group_0294.py @@ -9,21 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0295 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType +class DeploymentBranchPolicySettingsType(TypedDict): + """DeploymentBranchPolicySettings -class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1""" + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ - id: int - node_id: str - prevent_self_review: NotRequired[bool] - type: str - reviewers: NotRequired[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] - ] + protected_branches: bool + custom_branch_policies: bool -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) +__all__ = ("DeploymentBranchPolicySettingsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0295.py b/githubkit/versions/v2022_11_28/types/group_0295.py index 133811f22..48dc066c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0295.py +++ b/githubkit/versions/v2022_11_28/types/group_0295.py @@ -9,18 +9,68 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0084 import TeamType +from .group_0294 import DeploymentBranchPolicySettingsType +from .group_0296 import EnvironmentPropProtectionRulesItemsAnyof1Type -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class EnvironmentType(TypedDict): + """Environment - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] + 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] + ] -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) + +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__ = ( + "EnvironmentPropProtectionRulesItemsAnyof0Type", + "EnvironmentPropProtectionRulesItemsAnyof2Type", + "EnvironmentType", + "ReposOwnerRepoEnvironmentsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0296.py b/githubkit/versions/v2022_11_28/types/group_0296.py index 35c7c1f2a..02b00636d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0296.py +++ b/githubkit/versions/v2022_11_28/types/group_0296.py @@ -9,15 +9,21 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0297 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType -class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): - """Deployment branch and tag policy name pattern""" - name: str - type: NotRequired[Literal["branch", "tag"]] +class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1""" + id: int + node_id: str + prevent_self_review: NotRequired[bool] + type: str + reviewers: NotRequired[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] + ] -__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) + +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0297.py b/githubkit/versions/v2022_11_28/types/group_0297.py index 784015c57..a0f3cdefb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0297.py +++ b/githubkit/versions/v2022_11_28/types/group_0297.py @@ -9,13 +9,18 @@ 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_0086 import TeamType -class DeploymentBranchPolicyNamePatternType(TypedDict): - """Deployment branch policy name pattern""" - name: str +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] -__all__ = ("DeploymentBranchPolicyNamePatternType",) + +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0298.py b/githubkit/versions/v2022_11_28/types/group_0298.py index 55685e749..35c7c1f2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0298.py +++ b/githubkit/versions/v2022_11_28/types/group_0298.py @@ -9,19 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class CustomDeploymentRuleAppType(TypedDict): - """Custom deployment protection rule app +class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): + """Deployment branch and tag policy name pattern""" - A GitHub App that is providing a custom deployment protection rule. - """ + name: str + type: NotRequired[Literal["branch", "tag"]] - id: int - slug: str - integration_url: str - node_id: str - -__all__ = ("CustomDeploymentRuleAppType",) +__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0299.py b/githubkit/versions/v2022_11_28/types/group_0299.py index 1827cba30..784015c57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0299.py +++ b/githubkit/versions/v2022_11_28/types/group_0299.py @@ -9,37 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0298 import CustomDeploymentRuleAppType +class DeploymentBranchPolicyNamePatternType(TypedDict): + """Deployment branch policy name pattern""" -class DeploymentProtectionRuleType(TypedDict): - """Deployment protection rule + name: str - Deployment protection rule - """ - id: int - node_id: str - enabled: bool - app: CustomDeploymentRuleAppType - - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} - """ - - total_count: NotRequired[int] - custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] - - -__all__ = ( - "DeploymentProtectionRuleType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", -) +__all__ = ("DeploymentBranchPolicyNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0300.py b/githubkit/versions/v2022_11_28/types/group_0300.py index deb8a4c9a..55685e749 100644 --- a/githubkit/versions/v2022_11_28/types/group_0300.py +++ b/githubkit/versions/v2022_11_28/types/group_0300.py @@ -12,14 +12,16 @@ from typing_extensions import TypedDict -class ShortBlobType(TypedDict): - """Short Blob +class CustomDeploymentRuleAppType(TypedDict): + """Custom deployment protection rule app - Short Blob + A GitHub App that is providing a custom deployment protection rule. """ - url: str - sha: str + id: int + slug: str + integration_url: str + node_id: str -__all__ = ("ShortBlobType",) +__all__ = ("CustomDeploymentRuleAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0301.py b/githubkit/versions/v2022_11_28/types/group_0301.py index 7145ff7f3..47030d589 100644 --- a/githubkit/versions/v2022_11_28/types/group_0301.py +++ b/githubkit/versions/v2022_11_28/types/group_0301.py @@ -9,23 +9,37 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0300 import CustomDeploymentRuleAppType -class BlobType(TypedDict): - """Blob - Blob +class DeploymentProtectionRuleType(TypedDict): + """Deployment protection rule + + Deployment protection rule """ - content: str - encoding: str - url: str - sha: str - size: Union[int, None] + id: int node_id: str - highlighted_content: NotRequired[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__ = ("BlobType",) +__all__ = ( + "DeploymentProtectionRuleType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0302.py b/githubkit/versions/v2022_11_28/types/group_0302.py index cb7d784df..deb8a4c9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0302.py +++ b/githubkit/versions/v2022_11_28/types/group_0302.py @@ -9,81 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import TypedDict -class GitCommitType(TypedDict): - """Git Commit +class ShortBlobType(TypedDict): + """Short Blob - Low-level Git commit operations within a repository + Short Blob """ - 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 - - -class GitCommitPropParentsItemsType(TypedDict): - """GitCommitPropParentsItems""" - - sha: str - url: str - html_url: str - - -class GitCommitPropVerificationType(TypedDict): - """GitCommitPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: Union[str, None] -__all__ = ( - "GitCommitPropAuthorType", - "GitCommitPropCommitterType", - "GitCommitPropParentsItemsType", - "GitCommitPropTreeType", - "GitCommitPropVerificationType", - "GitCommitType", -) +__all__ = ("ShortBlobType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0303.py b/githubkit/versions/v2022_11_28/types/group_0303.py index 5f8d78e7c..7145ff7f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0303.py +++ b/githubkit/versions/v2022_11_28/types/group_0303.py @@ -9,30 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class GitRefType(TypedDict): - """Git Reference +class BlobType(TypedDict): + """Blob - Git references within a repository + Blob """ - ref: str - node_id: str + content: str + encoding: str url: str - object_: GitRefPropObjectType - - -class GitRefPropObjectType(TypedDict): - """GitRefPropObject""" - - type: str sha: str - url: str + size: Union[int, None] + node_id: str + highlighted_content: NotRequired[str] -__all__ = ( - "GitRefPropObjectType", - "GitRefType", -) +__all__ = ("BlobType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0304.py b/githubkit/versions/v2022_11_28/types/group_0304.py index 621e5a1a4..cb7d784df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0304.py +++ b/githubkit/versions/v2022_11_28/types/group_0304.py @@ -9,45 +9,81 @@ 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_0227 import VerificationType +class GitCommitType(TypedDict): + """Git Commit -class GitTagType(TypedDict): - """Git Tag - - Metadata for a Git tag + Low-level Git commit operations within a repository """ - node_id: str - tag: str sha: str + node_id: str url: str + author: GitCommitPropAuthorType + committer: GitCommitPropCommitterType message: str - tagger: GitTagPropTaggerType - object_: GitTagPropObjectType - verification: NotRequired[VerificationType] + 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 GitTagPropTaggerType(TypedDict): - """GitTagPropTagger""" +class GitCommitPropCommitterType(TypedDict): + """GitCommitPropCommitter - date: str + Identifying information for the git-user + """ + + date: datetime email: str name: str -class GitTagPropObjectType(TypedDict): - """GitTagPropObject""" +class GitCommitPropTreeType(TypedDict): + """GitCommitPropTree""" + + sha: str + url: str + + +class GitCommitPropParentsItemsType(TypedDict): + """GitCommitPropParentsItems""" sha: str - type: 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__ = ( - "GitTagPropObjectType", - "GitTagPropTaggerType", - "GitTagType", + "GitCommitPropAuthorType", + "GitCommitPropCommitterType", + "GitCommitPropParentsItemsType", + "GitCommitPropTreeType", + "GitCommitPropVerificationType", + "GitCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0305.py b/githubkit/versions/v2022_11_28/types/group_0305.py index 6559266ff..5f8d78e7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0305.py +++ b/githubkit/versions/v2022_11_28/types/group_0305.py @@ -9,33 +9,30 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class GitTreeType(TypedDict): - """Git Tree +class GitRefType(TypedDict): + """Git Reference - The hierarchy between files in a Git repository. + Git references within a repository """ - sha: str - url: NotRequired[str] - truncated: bool - tree: list[GitTreePropTreeItemsType] + ref: str + node_id: str + url: str + object_: GitRefPropObjectType -class GitTreePropTreeItemsType(TypedDict): - """GitTreePropTreeItems""" +class GitRefPropObjectType(TypedDict): + """GitRefPropObject""" - path: str - mode: str type: str sha: str - size: NotRequired[int] - url: NotRequired[str] + url: str __all__ = ( - "GitTreePropTreeItemsType", - "GitTreeType", + "GitRefPropObjectType", + "GitRefType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0306.py b/githubkit/versions/v2022_11_28/types/group_0306.py index 2763aab9e..f8187a665 100644 --- a/githubkit/versions/v2022_11_28/types/group_0306.py +++ b/githubkit/versions/v2022_11_28/types/group_0306.py @@ -9,16 +9,45 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0229 import VerificationType -class HookResponseType(TypedDict): - """Hook Response""" - code: Union[int, None] - status: Union[str, None] - message: Union[str, None] +class GitTagType(TypedDict): + """Git Tag + Metadata for a Git tag + """ -__all__ = ("HookResponseType",) + 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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0307.py b/githubkit/versions/v2022_11_28/types/group_0307.py index 2c5c8ba1f..6559266ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0307.py +++ b/githubkit/versions/v2022_11_28/types/group_0307.py @@ -9,32 +9,33 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_0011 import WebhookConfigType -from .group_0306 import HookResponseType +class GitTreeType(TypedDict): + """Git Tree -class HookType(TypedDict): - """Webhook - - Webhooks for repositories. + The hierarchy between files in a Git repository. """ + sha: str + url: NotRequired[str] + truncated: bool + tree: list[GitTreePropTreeItemsType] + + +class GitTreePropTreeItemsType(TypedDict): + """GitTreePropTreeItems""" + + path: str + mode: str 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 - - -__all__ = ("HookType",) + sha: str + size: NotRequired[int] + url: NotRequired[str] + + +__all__ = ( + "GitTreePropTreeItemsType", + "GitTreeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0308.py b/githubkit/versions/v2022_11_28/types/group_0308.py index 991490339..2763aab9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0308.py +++ b/githubkit/versions/v2022_11_28/types/group_0308.py @@ -9,67 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class ImportType(TypedDict): - """Import +class HookResponseType(TypedDict): + """Hook Response""" - A repository import from an external source. - """ + code: Union[int, None] + status: Union[str, None] + message: Union[str, None] - 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 - 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__ = ( - "ImportPropProjectChoicesItemsType", - "ImportType", -) +__all__ = ("HookResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0309.py b/githubkit/versions/v2022_11_28/types/group_0309.py index a760ba55a..07713f915 100644 --- a/githubkit/versions/v2022_11_28/types/group_0309.py +++ b/githubkit/versions/v2022_11_28/types/group_0309.py @@ -9,22 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict +from .group_0011 import WebhookConfigType +from .group_0308 import HookResponseType -class PorterAuthorType(TypedDict): - """Porter Author - Porter Author +class HookType(TypedDict): + """Webhook + + Webhooks for repositories. """ + type: str id: int - remote_id: str - remote_name: str - email: str name: str + active: bool + events: list[str] + config: WebhookConfigType + updated_at: datetime + created_at: datetime url: str - import_url: str + test_url: str + ping_url: str + deliveries_url: NotRequired[str] + last_response: HookResponseType -__all__ = ("PorterAuthorType",) +__all__ = ("HookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0310.py b/githubkit/versions/v2022_11_28/types/group_0310.py index ae1425148..991490339 100644 --- a/githubkit/versions/v2022_11_28/types/group_0310.py +++ b/githubkit/versions/v2022_11_28/types/group_0310.py @@ -9,19 +9,67 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class PorterLargeFileType(TypedDict): - """Porter Large File +class ImportType(TypedDict): + """Import - Porter Large File + A repository import from an external source. """ - ref_name: str - path: str - oid: str - size: int + 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 + html_url: str + authors_url: str + repository_url: str + svn_root: NotRequired[str] -__all__ = ("PorterLargeFileType",) +class ImportPropProjectChoicesItemsType(TypedDict): + """ImportPropProjectChoicesItems""" + + vcs: NotRequired[str] + tfvc_project: NotRequired[str] + human_name: NotRequired[str] + + +__all__ = ( + "ImportPropProjectChoicesItemsType", + "ImportType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0311.py b/githubkit/versions/v2022_11_28/types/group_0311.py index 8a8425504..a760ba55a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0311.py +++ b/githubkit/versions/v2022_11_28/types/group_0311.py @@ -9,114 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0045 import IssueType -from .group_0084 import TeamType +class PorterAuthorType(TypedDict): + """Porter Author -class IssueEventType(TypedDict): - """Issue Event - - Issue Event + Porter Author """ 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 - """ - + remote_id: str + remote_name: str + email: str + name: 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 + import_url: str -__all__ = ( - "IssueEventDismissedReviewType", - "IssueEventLabelType", - "IssueEventMilestoneType", - "IssueEventProjectCardType", - "IssueEventRenameType", - "IssueEventType", -) +__all__ = ("PorterAuthorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0312.py b/githubkit/versions/v2022_11_28/types/group_0312.py index e030b2d8c..ae1425148 100644 --- a/githubkit/versions/v2022_11_28/types/group_0312.py +++ b/githubkit/versions/v2022_11_28/types/group_0312.py @@ -9,39 +9,19 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class PorterLargeFileType(TypedDict): + """Porter Large File -class LabeledIssueEventType(TypedDict): - """Labeled Issue Event - - Labeled Issue Event + Porter Large File """ - 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 + ref_name: str + path: str + oid: str + size: int -__all__ = ( - "LabeledIssueEventPropLabelType", - "LabeledIssueEventType", -) +__all__ = ("PorterLargeFileType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0313.py b/githubkit/versions/v2022_11_28/types/group_0313.py index 94fd5f2f1..f2d488c48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0313.py +++ b/githubkit/versions/v2022_11_28/types/group_0313.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_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0047 import IssueType +from .group_0086 import TeamType -class UnlabeledIssueEventType(TypedDict): - """Unlabeled Issue Event +class IssueEventType(TypedDict): + """Issue Event - Unlabeled Issue Event + Issue Event """ id: int node_id: str url: str - actor: SimpleUserType - event: Literal["unlabeled"] + 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] - label: UnlabeledIssueEventPropLabelType + 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 UnlabeledIssueEventPropLabelType(TypedDict): - """UnlabeledIssueEventPropLabel""" +class IssueEventLabelType(TypedDict): + """Issue Event Label - name: str - color: str + 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__ = ( - "UnlabeledIssueEventPropLabelType", - "UnlabeledIssueEventType", + "IssueEventDismissedReviewType", + "IssueEventLabelType", + "IssueEventMilestoneType", + "IssueEventProjectCardType", + "IssueEventRenameType", + "IssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0314.py b/githubkit/versions/v2022_11_28/types/group_0314.py index 735f4766c..e030b2d8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0314.py +++ b/githubkit/versions/v2022_11_28/types/group_0314.py @@ -9,30 +9,39 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class AssignedIssueEventType(TypedDict): - """Assigned Issue Event +class LabeledIssueEventType(TypedDict): + """Labeled Issue Event - Assigned Issue Event + Labeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: str + event: Literal["labeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + performed_via_github_app: Union[None, IntegrationType, None] + label: LabeledIssueEventPropLabelType -__all__ = ("AssignedIssueEventType",) +class LabeledIssueEventPropLabelType(TypedDict): + """LabeledIssueEventPropLabel""" + + name: str + color: str + + +__all__ = ( + "LabeledIssueEventPropLabelType", + "LabeledIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0315.py b/githubkit/versions/v2022_11_28/types/group_0315.py index cee4c2513..94fd5f2f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0315.py +++ b/githubkit/versions/v2022_11_28/types/group_0315.py @@ -9,30 +9,39 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class UnassignedIssueEventType(TypedDict): - """Unassigned Issue Event +class UnlabeledIssueEventType(TypedDict): + """Unlabeled Issue Event - Unassigned Issue Event + Unlabeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: str + event: Literal["unlabeled"] 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 + label: UnlabeledIssueEventPropLabelType -__all__ = ("UnassignedIssueEventType",) +class UnlabeledIssueEventPropLabelType(TypedDict): + """UnlabeledIssueEventPropLabel""" + + name: str + color: str + + +__all__ = ( + "UnlabeledIssueEventPropLabelType", + "UnlabeledIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0316.py b/githubkit/versions/v2022_11_28/types/group_0316.py index 2b6b9a914..735f4766c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0316.py +++ b/githubkit/versions/v2022_11_28/types/group_0316.py @@ -9,38 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class MilestonedIssueEventType(TypedDict): - """Milestoned Issue Event +class AssignedIssueEventType(TypedDict): + """Assigned Issue Event - Milestoned Issue Event + Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["milestoned"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - milestone: MilestonedIssueEventPropMilestoneType + performed_via_github_app: Union[IntegrationType, None] + assignee: SimpleUserType + assigner: SimpleUserType -class MilestonedIssueEventPropMilestoneType(TypedDict): - """MilestonedIssueEventPropMilestone""" - - title: str - - -__all__ = ( - "MilestonedIssueEventPropMilestoneType", - "MilestonedIssueEventType", -) +__all__ = ("AssignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0317.py b/githubkit/versions/v2022_11_28/types/group_0317.py index dfaf3aff4..cee4c2513 100644 --- a/githubkit/versions/v2022_11_28/types/group_0317.py +++ b/githubkit/versions/v2022_11_28/types/group_0317.py @@ -9,38 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class DemilestonedIssueEventType(TypedDict): - """Demilestoned Issue Event +class UnassignedIssueEventType(TypedDict): + """Unassigned Issue Event - Demilestoned Issue Event + Unassigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["demilestoned"] + 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 + assignee: SimpleUserType + assigner: SimpleUserType -class DemilestonedIssueEventPropMilestoneType(TypedDict): - """DemilestonedIssueEventPropMilestone""" - - title: str - - -__all__ = ( - "DemilestonedIssueEventPropMilestoneType", - "DemilestonedIssueEventType", -) +__all__ = ("UnassignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0318.py b/githubkit/versions/v2022_11_28/types/group_0318.py index 6d9cdf5e9..2b6b9a914 100644 --- a/githubkit/versions/v2022_11_28/types/group_0318.py +++ b/githubkit/versions/v2022_11_28/types/group_0318.py @@ -16,32 +16,31 @@ from .group_0010 import IntegrationType -class RenamedIssueEventType(TypedDict): - """Renamed Issue Event +class MilestonedIssueEventType(TypedDict): + """Milestoned Issue Event - Renamed Issue Event + Milestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["renamed"] + event: Literal["milestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - rename: RenamedIssueEventPropRenameType + milestone: MilestonedIssueEventPropMilestoneType -class RenamedIssueEventPropRenameType(TypedDict): - """RenamedIssueEventPropRename""" +class MilestonedIssueEventPropMilestoneType(TypedDict): + """MilestonedIssueEventPropMilestone""" - from_: str - to: str + title: str __all__ = ( - "RenamedIssueEventPropRenameType", - "RenamedIssueEventType", + "MilestonedIssueEventPropMilestoneType", + "MilestonedIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0319.py b/githubkit/versions/v2022_11_28/types/group_0319.py index 5603a8a1b..dfaf3aff4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0319.py +++ b/githubkit/versions/v2022_11_28/types/group_0319.py @@ -10,31 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0084 import TeamType -class ReviewRequestedIssueEventType(TypedDict): - """Review Requested Issue Event +class DemilestonedIssueEventType(TypedDict): + """Demilestoned Issue Event - Review Requested Issue Event + Demilestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_requested"] + event: Literal["demilestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + milestone: DemilestonedIssueEventPropMilestoneType -__all__ = ("ReviewRequestedIssueEventType",) +class DemilestonedIssueEventPropMilestoneType(TypedDict): + """DemilestonedIssueEventPropMilestone""" + + title: str + + +__all__ = ( + "DemilestonedIssueEventPropMilestoneType", + "DemilestonedIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0320.py b/githubkit/versions/v2022_11_28/types/group_0320.py index d8d3f3883..6d9cdf5e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0320.py +++ b/githubkit/versions/v2022_11_28/types/group_0320.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_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0084 import TeamType -class ReviewRequestRemovedIssueEventType(TypedDict): - """Review Request Removed Issue Event +class RenamedIssueEventType(TypedDict): + """Renamed Issue Event - Review Request Removed Issue Event + Renamed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_request_removed"] + event: Literal["renamed"] 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] + rename: RenamedIssueEventPropRenameType -__all__ = ("ReviewRequestRemovedIssueEventType",) +class RenamedIssueEventPropRenameType(TypedDict): + """RenamedIssueEventPropRename""" + + from_: str + to: str + + +__all__ = ( + "RenamedIssueEventPropRenameType", + "RenamedIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0321.py b/githubkit/versions/v2022_11_28/types/group_0321.py index 160c5a57c..a08fe7d2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0321.py +++ b/githubkit/versions/v2022_11_28/types/group_0321.py @@ -14,36 +14,27 @@ from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0086 import TeamType -class ReviewDismissedIssueEventType(TypedDict): - """Review Dismissed Issue Event +class ReviewRequestedIssueEventType(TypedDict): + """Review Requested Issue Event - Review Dismissed Issue Event + Review Requested Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_dismissed"] + 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] - dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): - """ReviewDismissedIssueEventPropDismissedReview""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[str] - - -__all__ = ( - "ReviewDismissedIssueEventPropDismissedReviewType", - "ReviewDismissedIssueEventType", -) +__all__ = ("ReviewRequestedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0322.py b/githubkit/versions/v2022_11_28/types/group_0322.py index 1c8f2b944..5edda753d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0322.py +++ b/githubkit/versions/v2022_11_28/types/group_0322.py @@ -10,28 +10,31 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0086 import TeamType -class LockedIssueEventType(TypedDict): - """Locked Issue Event +class ReviewRequestRemovedIssueEventType(TypedDict): + """Review Request Removed Issue Event - Locked Issue Event + Review Request Removed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["locked"] + 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] - lock_reason: Union[str, None] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -__all__ = ("LockedIssueEventType",) +__all__ = ("ReviewRequestRemovedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0323.py b/githubkit/versions/v2022_11_28/types/group_0323.py index c1191415d..160c5a57c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0323.py +++ b/githubkit/versions/v2022_11_28/types/group_0323.py @@ -16,36 +16,34 @@ from .group_0010 import IntegrationType -class AddedToProjectIssueEventType(TypedDict): - """Added to Project Issue Event +class ReviewDismissedIssueEventType(TypedDict): + """Review Dismissed Issue Event - Added to Project Issue Event + Review Dismissed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["added_to_project"] + event: Literal["review_dismissed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType -class AddedToProjectIssueEventPropProjectCardType(TypedDict): - """AddedToProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[str] __all__ = ( - "AddedToProjectIssueEventPropProjectCardType", - "AddedToProjectIssueEventType", + "ReviewDismissedIssueEventPropDismissedReviewType", + "ReviewDismissedIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0324.py b/githubkit/versions/v2022_11_28/types/group_0324.py index c8c8ecbcf..1c8f2b944 100644 --- a/githubkit/versions/v2022_11_28/types/group_0324.py +++ b/githubkit/versions/v2022_11_28/types/group_0324.py @@ -10,42 +10,28 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class MovedColumnInProjectIssueEventType(TypedDict): - """Moved Column in Project Issue Event +class LockedIssueEventType(TypedDict): + """Locked Issue Event - Moved Column in Project Issue Event + Locked Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["moved_columns_in_project"] + event: Literal["locked"] 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] + lock_reason: Union[str, None] -class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "MovedColumnInProjectIssueEventPropProjectCardType", - "MovedColumnInProjectIssueEventType", -) +__all__ = ("LockedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0325.py b/githubkit/versions/v2022_11_28/types/group_0325.py index 8616df3d4..c1191415d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0325.py +++ b/githubkit/versions/v2022_11_28/types/group_0325.py @@ -16,26 +16,26 @@ from .group_0010 import IntegrationType -class RemovedFromProjectIssueEventType(TypedDict): - """Removed from Project Issue Event +class AddedToProjectIssueEventType(TypedDict): + """Added to Project Issue Event - Removed from Project Issue Event + Added to Project Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["removed_from_project"] + 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[RemovedFromProjectIssueEventPropProjectCardType] + project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] -class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): - """RemovedFromProjectIssueEventPropProjectCard""" +class AddedToProjectIssueEventPropProjectCardType(TypedDict): + """AddedToProjectIssueEventPropProjectCard""" id: int url: str @@ -46,6 +46,6 @@ class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): __all__ = ( - "RemovedFromProjectIssueEventPropProjectCardType", - "RemovedFromProjectIssueEventType", + "AddedToProjectIssueEventPropProjectCardType", + "AddedToProjectIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0326.py b/githubkit/versions/v2022_11_28/types/group_0326.py index 03ad239c9..c8c8ecbcf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0326.py +++ b/githubkit/versions/v2022_11_28/types/group_0326.py @@ -16,26 +16,26 @@ from .group_0010 import IntegrationType -class ConvertedNoteToIssueIssueEventType(TypedDict): - """Converted Note to Issue Issue Event +class MovedColumnInProjectIssueEventType(TypedDict): + """Moved Column in Project Issue Event - Converted Note to Issue Issue Event + Moved Column in Project Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["converted_note_to_issue"] + event: Literal["moved_columns_in_project"] 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] + project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] -class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): - """ConvertedNoteToIssueIssueEventPropProjectCard""" +class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): + """MovedColumnInProjectIssueEventPropProjectCard""" id: int url: str @@ -46,6 +46,6 @@ class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): __all__ = ( - "ConvertedNoteToIssueIssueEventPropProjectCardType", - "ConvertedNoteToIssueIssueEventType", + "MovedColumnInProjectIssueEventPropProjectCardType", + "MovedColumnInProjectIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0327.py b/githubkit/versions/v2022_11_28/types/group_0327.py index 5e2b95635..8616df3d4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0327.py +++ b/githubkit/versions/v2022_11_28/types/group_0327.py @@ -9,46 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0044 import ReactionRollupType -class TimelineCommentEventType(TypedDict): - """Timeline Comment Event +class RemovedFromProjectIssueEventType(TypedDict): + """Removed from Project Issue Event - Timeline Comment Event + Removed from Project Issue Event """ - event: Literal["commented"] - actor: SimpleUserType id: int node_id: str url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: SimpleUserType - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TimelineCommentEventType",) + actor: SimpleUserType + event: Literal["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 RemovedFromProjectIssueEventPropProjectCardType(TypedDict): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "RemovedFromProjectIssueEventPropProjectCardType", + "RemovedFromProjectIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0328.py b/githubkit/versions/v2022_11_28/types/group_0328.py index 09837a905..03ad239c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0328.py +++ b/githubkit/versions/v2022_11_28/types/group_0328.py @@ -9,25 +9,43 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0329 import TimelineCrossReferencedEventPropSourceType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventType(TypedDict): - """Timeline Cross Referenced Event +class ConvertedNoteToIssueIssueEventType(TypedDict): + """Converted Note to Issue Issue Event - Timeline Cross Referenced Event + Converted Note to Issue Issue Event """ - event: Literal["cross-referenced"] - actor: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - source: TimelineCrossReferencedEventPropSourceType - - -__all__ = ("TimelineCrossReferencedEventType",) + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["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 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/v2022_11_28/types/group_0329.py b/githubkit/versions/v2022_11_28/types/group_0329.py index cfca225a5..d66aa72e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0329.py +++ b/githubkit/versions/v2022_11_28/types/group_0329.py @@ -9,16 +9,46 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0045 import IssueType - - -class TimelineCrossReferencedEventPropSourceType(TypedDict): - """TimelineCrossReferencedEventPropSource""" - - type: NotRequired[str] - issue: NotRequired[IssueType] - - -__all__ = ("TimelineCrossReferencedEventPropSourceType",) +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0045 import ReactionRollupType + + +class TimelineCommentEventType(TypedDict): + """Timeline Comment Event + + Timeline Comment 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",) diff --git a/githubkit/versions/v2022_11_28/types/group_0330.py b/githubkit/versions/v2022_11_28/types/group_0330.py index 11c95229f..5a395b356 100644 --- a/githubkit/versions/v2022_11_28/types/group_0330.py +++ b/githubkit/versions/v2022_11_28/types/group_0330.py @@ -10,81 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0331 import TimelineCrossReferencedEventPropSourceType -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 +class TimelineCrossReferencedEventType(TypedDict): + """Timeline Cross Referenced Event - Identifying information for the git-user + Timeline Cross Referenced Event """ - 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] + event: Literal["cross-referenced"] + actor: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + source: TimelineCrossReferencedEventPropSourceType -__all__ = ( - "TimelineCommittedEventPropAuthorType", - "TimelineCommittedEventPropCommitterType", - "TimelineCommittedEventPropParentsItemsType", - "TimelineCommittedEventPropTreeType", - "TimelineCommittedEventPropVerificationType", - "TimelineCommittedEventType", -) +__all__ = ("TimelineCrossReferencedEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0331.py b/githubkit/versions/v2022_11_28/types/group_0331.py index 19ca5be38..220604ef7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0331.py +++ b/githubkit/versions/v2022_11_28/types/group_0331.py @@ -9,66 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0047 import IssueType -class TimelineReviewedEventType(TypedDict): - """Timeline Reviewed Event +class TimelineCrossReferencedEventPropSourceType(TypedDict): + """TimelineCrossReferencedEventPropSource""" - Timeline Reviewed Event - """ + type: NotRequired[str] + issue: NotRequired[IssueType] - 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__ = ( - "TimelineReviewedEventPropLinksPropHtmlType", - "TimelineReviewedEventPropLinksPropPullRequestType", - "TimelineReviewedEventPropLinksType", - "TimelineReviewedEventType", -) +__all__ = ("TimelineCrossReferencedEventPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0332.py b/githubkit/versions/v2022_11_28/types/group_0332.py index 952375e5f..11c95229f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0332.py +++ b/githubkit/versions/v2022_11_28/types/group_0332.py @@ -13,99 +13,78 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0044 import ReactionRollupType +class TimelineCommittedEventType(TypedDict): + """Timeline Committed Event -class PullRequestReviewCommentType(TypedDict): - """Pull Request Review Comment - - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Committed Event """ - url: str - pull_request_review_id: Union[int, None] - id: int + event: NotRequired[Literal["committed"]] + sha: str 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 + url: str + author: TimelineCommittedEventPropAuthorType + committer: TimelineCommittedEventPropCommitterType + message: str + tree: TimelineCommittedEventPropTreeType + parents: list[TimelineCommittedEventPropParentsItemsType] + verification: TimelineCommittedEventPropVerificationType 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""" +class TimelineCommittedEventPropAuthorType(TypedDict): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ - self_: PullRequestReviewCommentPropLinksPropSelfType - html: PullRequestReviewCommentPropLinksPropHtmlType - pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + date: datetime + email: str + name: str -class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): - """PullRequestReviewCommentPropLinksPropSelf""" +class TimelineCommittedEventPropCommitterType(TypedDict): + """TimelineCommittedEventPropCommitter - href: str + Identifying information for the git-user + """ + date: datetime + email: str + name: str -class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): - """PullRequestReviewCommentPropLinksPropHtml""" - href: str +class TimelineCommittedEventPropTreeType(TypedDict): + """TimelineCommittedEventPropTree""" + sha: str + url: str -class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewCommentPropLinksPropPullRequest""" - href: str +class TimelineCommittedEventPropParentsItemsType(TypedDict): + """TimelineCommittedEventPropParentsItems""" + sha: str + url: str + html_url: str -class TimelineLineCommentedEventType(TypedDict): - """Timeline Line Commented Event - Timeline Line Commented Event - """ +class TimelineCommittedEventPropVerificationType(TypedDict): + """TimelineCommittedEventPropVerification""" - event: NotRequired[Literal["line_commented"]] - node_id: NotRequired[str] - comments: NotRequired[list[PullRequestReviewCommentType]] + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] __all__ = ( - "PullRequestReviewCommentPropLinksPropHtmlType", - "PullRequestReviewCommentPropLinksPropPullRequestType", - "PullRequestReviewCommentPropLinksPropSelfType", - "PullRequestReviewCommentPropLinksType", - "PullRequestReviewCommentType", - "TimelineLineCommentedEventType", + "TimelineCommittedEventPropAuthorType", + "TimelineCommittedEventPropCommitterType", + "TimelineCommittedEventPropParentsItemsType", + "TimelineCommittedEventPropTreeType", + "TimelineCommittedEventPropVerificationType", + "TimelineCommittedEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0333.py b/githubkit/versions/v2022_11_28/types/group_0333.py index 3baa7987b..19ca5be38 100644 --- a/githubkit/versions/v2022_11_28/types/group_0333.py +++ b/githubkit/versions/v2022_11_28/types/group_0333.py @@ -9,29 +9,66 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -class TimelineAssignedIssueEventType(TypedDict): - """Timeline Assigned Issue Event +class TimelineReviewedEventType(TypedDict): + """Timeline Reviewed Event - Timeline Assigned Issue Event + Timeline Reviewed Event """ + event: Literal["reviewed"] 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 + user: SimpleUserType + body: Union[str, None] + state: str + html_url: str + pull_request_url: str + links: TimelineReviewedEventPropLinksType + submitted_at: NotRequired[datetime] + commit_id: str + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] -__all__ = ("TimelineAssignedIssueEventType",) +class TimelineReviewedEventPropLinksType(TypedDict): + """TimelineReviewedEventPropLinks""" + + html: TimelineReviewedEventPropLinksPropHtmlType + pull_request: TimelineReviewedEventPropLinksPropPullRequestType + + +class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str + + +class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "TimelineReviewedEventPropLinksPropHtmlType", + "TimelineReviewedEventPropLinksPropPullRequestType", + "TimelineReviewedEventPropLinksType", + "TimelineReviewedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0334.py b/githubkit/versions/v2022_11_28/types/group_0334.py index 7d37c3f07..e39e92d67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0334.py +++ b/githubkit/versions/v2022_11_28/types/group_0334.py @@ -9,29 +9,103 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +from .group_0045 import ReactionRollupType -class TimelineUnassignedIssueEventType(TypedDict): - """Timeline Unassigned Issue Event +class PullRequestReviewCommentType(TypedDict): + """Pull Request Review Comment - Timeline Unassigned Issue Event + 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 - 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 + diff_hunk: str + path: str + position: NotRequired[int] + original_position: NotRequired[int] + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: SimpleUserType + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: PullRequestReviewCommentPropLinksType + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + reactions: NotRequired[ReactionRollupType] + body_html: NotRequired[str] + body_text: NotRequired[str] + + +class PullRequestReviewCommentPropLinksType(TypedDict): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelfType + html: PullRequestReviewCommentPropLinksPropHtmlType + pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + + +class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str + + +class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str + + +class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str + + +class TimelineLineCommentedEventType(TypedDict): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ + + event: NotRequired[Literal["line_commented"]] + node_id: NotRequired[str] + comments: NotRequired[list[PullRequestReviewCommentType]] -__all__ = ("TimelineUnassignedIssueEventType",) +__all__ = ( + "PullRequestReviewCommentPropLinksPropHtmlType", + "PullRequestReviewCommentPropLinksPropPullRequestType", + "PullRequestReviewCommentPropLinksPropSelfType", + "PullRequestReviewCommentPropLinksType", + "PullRequestReviewCommentType", + "TimelineLineCommentedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0335.py b/githubkit/versions/v2022_11_28/types/group_0335.py index 4978c8454..3baa7987b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0335.py +++ b/githubkit/versions/v2022_11_28/types/group_0335.py @@ -9,29 +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_0003 import SimpleUserType from .group_0010 import IntegrationType -class StateChangeIssueEventType(TypedDict): - """State Change Issue Event +class TimelineAssignedIssueEventType(TypedDict): + """Timeline Assigned Issue Event - State Change Issue Event + Timeline Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: str + event: Literal["assigned"] 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]] + assignee: SimpleUserType -__all__ = ("StateChangeIssueEventType",) +__all__ = ("TimelineAssignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0336.py b/githubkit/versions/v2022_11_28/types/group_0336.py index b320cbbd3..7d37c3f07 100644 --- a/githubkit/versions/v2022_11_28/types/group_0336.py +++ b/githubkit/versions/v2022_11_28/types/group_0336.py @@ -9,26 +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_0003 import SimpleUserType +from .group_0010 import IntegrationType -class DeployKeyType(TypedDict): - """Deploy Key - An SSH key granting access to a single repository. +class TimelineUnassignedIssueEventType(TypedDict): + """Timeline Unassigned Issue Event + + Timeline Unassigned Issue Event """ id: int - key: str + node_id: str url: str - title: str - verified: bool + actor: SimpleUserType + event: Literal["unassigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] created_at: str - read_only: bool - added_by: NotRequired[Union[str, None]] - last_used: NotRequired[Union[str, None]] - enabled: NotRequired[bool] + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -__all__ = ("DeployKeyType",) +__all__ = ("TimelineUnassignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0337.py b/githubkit/versions/v2022_11_28/types/group_0337.py index bc5f5cd8b..4978c8454 100644 --- a/githubkit/versions/v2022_11_28/types/group_0337.py +++ b/githubkit/versions/v2022_11_28/types/group_0337.py @@ -9,14 +9,29 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing import Union +from typing_extensions import NotRequired, TypedDict -LanguageType: TypeAlias = dict[str, Any] -"""Language +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -Language -""" + +class StateChangeIssueEventType(TypedDict): + """State Change Issue Event + + State Change Issue 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]] -__all__ = ("LanguageType",) +__all__ = ("StateChangeIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0338.py b/githubkit/versions/v2022_11_28/types/group_0338.py index 2913097c9..0060c4ef9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0338.py +++ b/githubkit/versions/v2022_11_28/types/group_0338.py @@ -9,42 +9,27 @@ 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_0019 import LicenseSimpleType +class DeployKeyType(TypedDict): + """Deploy Key -class LicenseContentType(TypedDict): - """License Content - - License Content + An SSH key granting access to a single repository. """ - name: str - path: str - sha: str - size: int + id: int + key: str url: str - html_url: Union[str, None] - git_url: Union[str, None] - download_url: Union[str, None] - type: str - content: str - encoding: str - links: LicenseContentPropLinksType - license_: Union[None, LicenseSimpleType] - - -class LicenseContentPropLinksType(TypedDict): - """LicenseContentPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str + title: str + verified: bool + created_at: str + read_only: bool + added_by: NotRequired[Union[str, None]] + last_used: NotRequired[Union[datetime, None]] + enabled: NotRequired[bool] -__all__ = ( - "LicenseContentPropLinksType", - "LicenseContentType", -) +__all__ = ("DeployKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0339.py b/githubkit/versions/v2022_11_28/types/group_0339.py index ef4f49c12..bc5f5cd8b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0339.py +++ b/githubkit/versions/v2022_11_28/types/group_0339.py @@ -9,19 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import TypeAlias +LanguageType: TypeAlias = dict[str, Any] +"""Language -class MergedUpstreamType(TypedDict): - """Merged upstream - - Results of a successful merge upstream request - """ - - message: NotRequired[str] - merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] - base_branch: NotRequired[str] +Language +""" -__all__ = ("MergedUpstreamType",) +__all__ = ("LanguageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0340.py b/githubkit/versions/v2022_11_28/types/group_0340.py index 121c3bad8..2913097c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0340.py +++ b/githubkit/versions/v2022_11_28/types/group_0340.py @@ -9,64 +9,42 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0019 import LicenseSimpleType -class PageType(TypedDict): - """GitHub Pages - The configuration for GitHub Pages for a repository. - """ - - url: str - status: Union[None, Literal["built", "building", "errored"]] - cname: Union[str, None] - protected_domain_state: NotRequired[ - Union[None, Literal["pending", "verified", "unverified"]] - ] - pending_domain_unverified_at: NotRequired[Union[datetime, None]] - custom_404: bool - html_url: NotRequired[str] - build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] - source: NotRequired[PagesSourceHashType] - public: bool - https_certificate: NotRequired[PagesHttpsCertificateType] - https_enforced: NotRequired[bool] +class LicenseContentType(TypedDict): + """License Content + License Content + """ -class PagesSourceHashType(TypedDict): - """Pages Source Hash""" - - branch: str + 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 PagesHttpsCertificateType(TypedDict): - """Pages Https Certificate""" +class LicenseContentPropLinksType(TypedDict): + """LicenseContentPropLinks""" - 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] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "PageType", - "PagesHttpsCertificateType", - "PagesSourceHashType", + "LicenseContentPropLinksType", + "LicenseContentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0341.py b/githubkit/versions/v2022_11_28/types/group_0341.py index 83899a24e..ef4f49c12 100644 --- a/githubkit/versions/v2022_11_28/types/group_0341.py +++ b/githubkit/versions/v2022_11_28/types/group_0341.py @@ -9,36 +9,19 @@ 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 -from .group_0003 import SimpleUserType +class MergedUpstreamType(TypedDict): + """Merged upstream -class PageBuildType(TypedDict): - """Page Build - - Page Build + Results of a successful merge upstream request """ - url: str - status: str - error: PageBuildPropErrorType - pusher: Union[None, SimpleUserType] - commit: str - duration: int - created_at: datetime - updated_at: datetime - - -class PageBuildPropErrorType(TypedDict): - """PageBuildPropError""" - - message: Union[str, None] + message: NotRequired[str] + merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] + base_branch: NotRequired[str] -__all__ = ( - "PageBuildPropErrorType", - "PageBuildType", -) +__all__ = ("MergedUpstreamType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0342.py b/githubkit/versions/v2022_11_28/types/group_0342.py index d7001e4a1..121c3bad8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0342.py +++ b/githubkit/versions/v2022_11_28/types/group_0342.py @@ -9,17 +9,64 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import date, datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class PageBuildStatusType(TypedDict): - """Page Build Status +class PageType(TypedDict): + """GitHub Pages - Page Build Status + The configuration for GitHub Pages for a repository. """ url: str - status: 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] -__all__ = ("PageBuildStatusType",) +class PagesSourceHashType(TypedDict): + """Pages Source Hash""" + + branch: str + path: str + + +class PagesHttpsCertificateType(TypedDict): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", + ] + description: str + domains: list[str] + expires_at: NotRequired[date] + + +__all__ = ( + "PageType", + "PagesHttpsCertificateType", + "PagesSourceHashType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0343.py b/githubkit/versions/v2022_11_28/types/group_0343.py index d3e0b1eca..83899a24e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0343.py +++ b/githubkit/versions/v2022_11_28/types/group_0343.py @@ -9,20 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class PageDeploymentType(TypedDict): - """GitHub Pages - The GitHub Pages deployment status. +class PageBuildType(TypedDict): + """Page Build + + Page Build """ - id: Union[int, str] - status_url: str - page_url: str - preview_url: NotRequired[str] + url: str + status: str + error: PageBuildPropErrorType + pusher: Union[None, SimpleUserType] + commit: str + duration: int + created_at: datetime + updated_at: datetime + + +class PageBuildPropErrorType(TypedDict): + """PageBuildPropError""" + + message: Union[str, None] -__all__ = ("PageDeploymentType",) +__all__ = ( + "PageBuildPropErrorType", + "PageBuildType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0344.py b/githubkit/versions/v2022_11_28/types/group_0344.py index 2bf2ddbc1..d7001e4a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0344.py +++ b/githubkit/versions/v2022_11_28/types/group_0344.py @@ -9,28 +9,17 @@ 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_extensions import TypedDict + + +class PageBuildStatusType(TypedDict): + """Page Build Status + + Page Build Status + """ + + url: str + status: str + + +__all__ = ("PageBuildStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0345.py b/githubkit/versions/v2022_11_28/types/group_0345.py index 5546e6ba9..d3e0b1eca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0345.py +++ b/githubkit/versions/v2022_11_28/types/group_0345.py @@ -13,84 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class PagesHealthCheckType(TypedDict): - """Pages Health Check Status +class PageDeploymentType(TypedDict): + """GitHub Pages - Pages Health Check Status + The GitHub Pages deployment status. """ - domain: NotRequired[PagesHealthCheckPropDomainType] - alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] + id: Union[int, str] + status_url: str + page_url: str + preview_url: 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__ = ("PageDeploymentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0346.py b/githubkit/versions/v2022_11_28/types/group_0346.py index d5dd000ff..2bf2ddbc1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0346.py +++ b/githubkit/versions/v2022_11_28/types/group_0346.py @@ -9,85 +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_0042 import MilestoneType -from .group_0083 import TeamSimpleType -from .group_0267 import AutoMergeType -from .group_0347 import PullRequestPropLabelsItemsType -from .group_0348 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0349 import PullRequestPropLinksType - -class 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 - 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", +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", + ] ] - 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",) +__all__ = ("PagesDeploymentStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0347.py b/githubkit/versions/v2022_11_28/types/group_0347.py index 8c969ec82..5546e6ba9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0347.py +++ b/githubkit/versions/v2022_11_28/types/group_0347.py @@ -10,19 +10,87 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class PullRequestPropLabelsItemsType(TypedDict): - """PullRequestPropLabelsItems""" +class PagesHealthCheckType(TypedDict): + """Pages Health Check Status - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + Pages Health Check Status + """ + domain: NotRequired[PagesHealthCheckPropDomainType] + alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] -__all__ = ("PullRequestPropLabelsItemsType",) + +class PagesHealthCheckPropDomainType(TypedDict): + """PagesHealthCheckPropDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +class PagesHealthCheckPropAltDomainType(TypedDict): + """PagesHealthCheckPropAltDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +__all__ = ( + "PagesHealthCheckPropAltDomainType", + "PagesHealthCheckPropDomainType", + "PagesHealthCheckType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0348.py b/githubkit/versions/v2022_11_28/types/group_0348.py index cd3535f15..5e7dcec54 100644 --- a/githubkit/versions/v2022_11_28/types/group_0348.py +++ b/githubkit/versions/v2022_11_28/types/group_0348.py @@ -9,34 +9,85 @@ 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_0020 import RepositoryType +from .group_0043 import MilestoneType +from .group_0085 import TeamSimpleType +from .group_0269 import AutoMergeType +from .group_0349 import PullRequestPropLabelsItemsType +from .group_0350 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0351 import PullRequestPropLinksType -class PullRequestPropHeadType(TypedDict): - """PullRequestPropHead""" +class PullRequestType(TypedDict): + """Pull Request - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] + 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. + """ - -class PullRequestPropBaseType(TypedDict): - """PullRequestPropBase""" - - label: str - ref: str - repo: RepositoryType - sha: str + url: str + id: int + node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + 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__ = ( - "PullRequestPropBaseType", - "PullRequestPropHeadType", -) +__all__ = ("PullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0349.py b/githubkit/versions/v2022_11_28/types/group_0349.py index 58769539e..8c969ec82 100644 --- a/githubkit/versions/v2022_11_28/types/group_0349.py +++ b/githubkit/versions/v2022_11_28/types/group_0349.py @@ -9,22 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0266 import LinkType +class PullRequestPropLabelsItemsType(TypedDict): + """PullRequestPropLabelsItems""" -class PullRequestPropLinksType(TypedDict): - """PullRequestPropLinks""" + id: int + node_id: str + url: str + name: str + description: Union[str, None] + color: str + default: bool - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType - -__all__ = ("PullRequestPropLinksType",) +__all__ = ("PullRequestPropLabelsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0350.py b/githubkit/versions/v2022_11_28/types/group_0350.py index 211278b38..cd3535f15 100644 --- a/githubkit/versions/v2022_11_28/types/group_0350.py +++ b/githubkit/versions/v2022_11_28/types/group_0350.py @@ -9,18 +9,34 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class PullRequestMergeResultType(TypedDict): - """Pull Request Merge Result - Pull Request Merge Result - """ +class PullRequestPropHeadType(TypedDict): + """PullRequestPropHead""" + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] sha: str - merged: bool - message: str + user: Union[None, SimpleUserType] -__all__ = ("PullRequestMergeResultType",) +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_0351.py b/githubkit/versions/v2022_11_28/types/group_0351.py index 8bf90191a..2fbe0f89a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0351.py +++ b/githubkit/versions/v2022_11_28/types/group_0351.py @@ -11,18 +11,20 @@ from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0084 import TeamType +from .group_0268 import LinkType -class PullRequestReviewRequestType(TypedDict): - """Pull Request Review Request +class PullRequestPropLinksType(TypedDict): + """PullRequestPropLinks""" - Pull Request Review Request - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - users: list[SimpleUserType] - teams: list[TeamType] - -__all__ = ("PullRequestReviewRequestType",) +__all__ = ("PullRequestPropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0352.py b/githubkit/versions/v2022_11_28/types/group_0352.py index d7cb39fb2..211278b38 100644 --- a/githubkit/versions/v2022_11_28/types/group_0352.py +++ b/githubkit/versions/v2022_11_28/types/group_0352.py @@ -9,65 +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_0003 import SimpleUserType +class PullRequestMergeResultType(TypedDict): + """Pull Request Merge Result -class PullRequestReviewType(TypedDict): - """Pull Request Review - - Pull Request Reviews are reviews on pull requests. + Pull Request Merge Result """ - 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 + sha: str + merged: bool + message: str -__all__ = ( - "PullRequestReviewPropLinksPropHtmlType", - "PullRequestReviewPropLinksPropPullRequestType", - "PullRequestReviewPropLinksType", - "PullRequestReviewType", -) +__all__ = ("PullRequestMergeResultType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0353.py b/githubkit/versions/v2022_11_28/types/group_0353.py index 42fd1c173..9fcc7b561 100644 --- a/githubkit/versions/v2022_11_28/types/group_0353.py +++ b/githubkit/versions/v2022_11_28/types/group_0353.py @@ -9,59 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0044 import ReactionRollupType -from .group_0354 import ReviewCommentPropLinksType +from .group_0086 import TeamType -class ReviewCommentType(TypedDict): - """Legacy Review Comment +class PullRequestReviewRequestType(TypedDict): + """Pull Request Review Request - Legacy Review Comment + Pull Request Review Request """ - 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]] - subject_type: NotRequired[Literal["line", "file"]] + users: list[SimpleUserType] + teams: list[TeamType] -__all__ = ("ReviewCommentType",) +__all__ = ("PullRequestReviewRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0354.py b/githubkit/versions/v2022_11_28/types/group_0354.py index e3f2c3440..d7cb39fb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0354.py +++ b/githubkit/versions/v2022_11_28/types/group_0354.py @@ -9,17 +9,65 @@ 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_0266 import LinkType +from .group_0003 import SimpleUserType -class ReviewCommentPropLinksType(TypedDict): - """ReviewCommentPropLinks""" +class PullRequestReviewType(TypedDict): + """Pull Request Review - self_: LinkType - html: LinkType - pull_request: LinkType + Pull Request Reviews are reviews on pull requests. + """ + 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", + ] -__all__ = ("ReviewCommentPropLinksType",) + +class PullRequestReviewPropLinksType(TypedDict): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtmlType + pull_request: PullRequestReviewPropLinksPropPullRequestType + + +class PullRequestReviewPropLinksPropHtmlType(TypedDict): + """PullRequestReviewPropLinksPropHtml""" + + href: str + + +class PullRequestReviewPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "PullRequestReviewPropLinksPropHtmlType", + "PullRequestReviewPropLinksPropPullRequestType", + "PullRequestReviewPropLinksType", + "PullRequestReviewType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0355.py b/githubkit/versions/v2022_11_28/types/group_0355.py index ed9a33bfd..76232b0cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0355.py +++ b/githubkit/versions/v2022_11_28/types/group_0355.py @@ -11,31 +11,57 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0045 import ReactionRollupType +from .group_0356 import ReviewCommentPropLinksType -class ReleaseAssetType(TypedDict): - """Release Asset +class ReviewCommentType(TypedDict): + """Legacy Review Comment - Data related to a release. + Legacy Review Comment """ url: str - browser_download_url: str + pull_request_review_id: Union[int, None] id: int node_id: str - name: str - label: Union[str, None] - state: Literal["uploaded", "open"] - content_type: str - size: int - digest: Union[str, None] - download_count: int + 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 - uploader: Union[None, SimpleUserType] + 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]] + subject_type: NotRequired[Literal["line", "file"]] -__all__ = ("ReleaseAssetType",) +__all__ = ("ReviewCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0356.py b/githubkit/versions/v2022_11_28/types/group_0356.py index 9f348d102..46090dc5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0356.py +++ b/githubkit/versions/v2022_11_28/types/group_0356.py @@ -9,44 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0044 import ReactionRollupType -from .group_0355 import ReleaseAssetType - - -class ReleaseType(TypedDict): - """Release - - A release. - """ - - url: str - html_url: str - assets_url: str - upload_url: str - tarball_url: Union[str, None] - zipball_url: Union[str, None] - id: int - node_id: str - tag_name: str - target_commitish: str - name: Union[str, None] - body: NotRequired[Union[str, None]] - draft: bool - prerelease: bool - created_at: datetime - published_at: Union[datetime, None] - author: SimpleUserType - assets: list[ReleaseAssetType] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - mentions_count: NotRequired[int] - discussion_url: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("ReleaseType",) +from typing_extensions import TypedDict + +from .group_0268 import LinkType + + +class ReviewCommentPropLinksType(TypedDict): + """ReviewCommentPropLinks""" + + self_: LinkType + html: LinkType + pull_request: LinkType + + +__all__ = ("ReviewCommentPropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0357.py b/githubkit/versions/v2022_11_28/types/group_0357.py index 8cbfbc707..ed9a33bfd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0357.py +++ b/githubkit/versions/v2022_11_28/types/group_0357.py @@ -9,17 +9,33 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ReleaseNotesContentType(TypedDict): - """Generated Release Notes Content - Generated name and body describing a release +class ReleaseAssetType(TypedDict): + """Release Asset + + Data related to a release. """ + url: str + browser_download_url: str + id: int + node_id: str name: str - body: str - - -__all__ = ("ReleaseNotesContentType",) + label: Union[str, None] + state: Literal["uploaded", "open"] + content_type: str + size: int + digest: Union[str, None] + download_count: int + created_at: datetime + updated_at: datetime + uploader: Union[None, SimpleUserType] + + +__all__ = ("ReleaseAssetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0358.py b/githubkit/versions/v2022_11_28/types/group_0358.py index a7e58a24b..3a214e944 100644 --- a/githubkit/versions/v2022_11_28/types/group_0358.py +++ b/githubkit/versions/v2022_11_28/types/group_0358.py @@ -9,20 +9,45 @@ 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_0045 import ReactionRollupType +from .group_0357 import ReleaseAssetType -class RepositoryRuleRulesetInfoType(TypedDict): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ - - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReleaseType(TypedDict): + """Release + A release. + """ -__all__ = ("RepositoryRuleRulesetInfoType",) + 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 + immutable: NotRequired[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_0359.py b/githubkit/versions/v2022_11_28/types/group_0359.py index 0f564cd7d..8cbfbc707 100644 --- a/githubkit/versions/v2022_11_28/types/group_0359.py +++ b/githubkit/versions/v2022_11_28/types/group_0359.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 RepositoryRuleDetailedOneof0Type(TypedDict): - """RepositoryRuleDetailedOneof0""" +class ReleaseNotesContentType(TypedDict): + """Generated Release Notes Content - type: Literal["creation"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + Generated name and body describing a release + """ + name: str + body: str -__all__ = ("RepositoryRuleDetailedOneof0Type",) + +__all__ = ("ReleaseNotesContentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0360.py b/githubkit/versions/v2022_11_28/types/group_0360.py index a2e75d2e3..a7e58a24b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0360.py +++ b/githubkit/versions/v2022_11_28/types/group_0360.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0139 import RepositoryRuleUpdatePropParametersType +class RepositoryRuleRulesetInfoType(TypedDict): + """repository ruleset data for rule -class RepositoryRuleDetailedOneof1Type(TypedDict): - """RepositoryRuleDetailedOneof1""" + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof1Type",) +__all__ = ("RepositoryRuleRulesetInfoType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0361.py b/githubkit/versions/v2022_11_28/types/group_0361.py index 273dd677c..0f564cd7d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0361.py +++ b/githubkit/versions/v2022_11_28/types/group_0361.py @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof2Type(TypedDict): - """RepositoryRuleDetailedOneof2""" +class RepositoryRuleDetailedOneof0Type(TypedDict): + """RepositoryRuleDetailedOneof0""" - type: Literal["deletion"] + type: Literal["creation"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof2Type",) +__all__ = ("RepositoryRuleDetailedOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0362.py b/githubkit/versions/v2022_11_28/types/group_0362.py index 8886199f4..34f8dbc63 100644 --- a/githubkit/versions/v2022_11_28/types/group_0362.py +++ b/githubkit/versions/v2022_11_28/types/group_0362.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0141 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleDetailedOneof3Type(TypedDict): - """RepositoryRuleDetailedOneof3""" - type: Literal["required_linear_history"] +class RepositoryRuleDetailedOneof1Type(TypedDict): + """RepositoryRuleDetailedOneof1""" + + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof3Type",) +__all__ = ("RepositoryRuleDetailedOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0363.py b/githubkit/versions/v2022_11_28/types/group_0363.py index 6bd1c7bb7..273dd677c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0363.py +++ b/githubkit/versions/v2022_11_28/types/group_0363.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0142 import RepositoryRuleMergeQueuePropParametersType +class RepositoryRuleDetailedOneof2Type(TypedDict): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof4Type(TypedDict): - """RepositoryRuleDetailedOneof4""" - - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] + type: Literal["deletion"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof4Type",) +__all__ = ("RepositoryRuleDetailedOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0364.py b/githubkit/versions/v2022_11_28/types/group_0364.py index 584ff579f..8886199f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0364.py +++ b/githubkit/versions/v2022_11_28/types/group_0364.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0144 import RepositoryRuleRequiredDeploymentsPropParametersType +class RepositoryRuleDetailedOneof3Type(TypedDict): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof5Type(TypedDict): - """RepositoryRuleDetailedOneof5""" - - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof5Type",) +__all__ = ("RepositoryRuleDetailedOneof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0365.py b/githubkit/versions/v2022_11_28/types/group_0365.py index c30b2990f..0a1029e89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0365.py +++ b/githubkit/versions/v2022_11_28/types/group_0365.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0144 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRuleDetailedOneof6Type(TypedDict): - """RepositoryRuleDetailedOneof6""" - type: Literal["required_signatures"] +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__ = ("RepositoryRuleDetailedOneof6Type",) +__all__ = ("RepositoryRuleDetailedOneof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0366.py b/githubkit/versions/v2022_11_28/types/group_0366.py index 2574811b8..14f3e6732 100644 --- a/githubkit/versions/v2022_11_28/types/group_0366.py +++ b/githubkit/versions/v2022_11_28/types/group_0366.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0147 import RepositoryRulePullRequestPropParametersType +from .group_0146 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleDetailedOneof7Type(TypedDict): - """RepositoryRuleDetailedOneof7""" +class RepositoryRuleDetailedOneof5Type(TypedDict): + """RepositoryRuleDetailedOneof5""" - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof7Type",) +__all__ = ("RepositoryRuleDetailedOneof5Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0367.py b/githubkit/versions/v2022_11_28/types/group_0367.py index 17bc6bdc3..c30b2990f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0367.py +++ b/githubkit/versions/v2022_11_28/types/group_0367.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0149 import RepositoryRuleRequiredStatusChecksPropParametersType +class RepositoryRuleDetailedOneof6Type(TypedDict): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof8Type(TypedDict): - """RepositoryRuleDetailedOneof8""" - - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["required_signatures"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof8Type",) +__all__ = ("RepositoryRuleDetailedOneof6Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0368.py b/githubkit/versions/v2022_11_28/types/group_0368.py index d5be14715..75e6f4f93 100644 --- a/githubkit/versions/v2022_11_28/types/group_0368.py +++ b/githubkit/versions/v2022_11_28/types/group_0368.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0149 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleDetailedOneof9Type(TypedDict): - """RepositoryRuleDetailedOneof9""" - type: Literal["non_fast_forward"] +class RepositoryRuleDetailedOneof7Type(TypedDict): + """RepositoryRuleDetailedOneof7""" + + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof9Type",) +__all__ = ("RepositoryRuleDetailedOneof7Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0369.py b/githubkit/versions/v2022_11_28/types/group_0369.py index 6f29ef647..de451eabe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0369.py +++ b/githubkit/versions/v2022_11_28/types/group_0369.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0151 import RepositoryRuleCommitMessagePatternPropParametersType +from .group_0151 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleDetailedOneof10Type(TypedDict): - """RepositoryRuleDetailedOneof10""" +class RepositoryRuleDetailedOneof8Type(TypedDict): + """RepositoryRuleDetailedOneof8""" - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof10Type",) +__all__ = ("RepositoryRuleDetailedOneof8Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0370.py b/githubkit/versions/v2022_11_28/types/group_0370.py index 6220c0169..d5be14715 100644 --- a/githubkit/versions/v2022_11_28/types/group_0370.py +++ b/githubkit/versions/v2022_11_28/types/group_0370.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0153 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +class RepositoryRuleDetailedOneof9Type(TypedDict): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof11Type(TypedDict): - """RepositoryRuleDetailedOneof11""" - - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["non_fast_forward"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof11Type",) +__all__ = ("RepositoryRuleDetailedOneof9Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0371.py b/githubkit/versions/v2022_11_28/types/group_0371.py index 69729769e..0dd44b65c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0371.py +++ b/githubkit/versions/v2022_11_28/types/group_0371.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0155 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0153 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleDetailedOneof12Type(TypedDict): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof10Type(TypedDict): + """RepositoryRuleDetailedOneof10""" - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof12Type",) +__all__ = ("RepositoryRuleDetailedOneof10Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0372.py b/githubkit/versions/v2022_11_28/types/group_0372.py index c97affd35..d0b84efe9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0372.py +++ b/githubkit/versions/v2022_11_28/types/group_0372.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0157 import RepositoryRuleBranchNamePatternPropParametersType +from .group_0155 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleDetailedOneof13Type(TypedDict): - """RepositoryRuleDetailedOneof13""" +class RepositoryRuleDetailedOneof11Type(TypedDict): + """RepositoryRuleDetailedOneof11""" - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + 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__ = ("RepositoryRuleDetailedOneof13Type",) +__all__ = ("RepositoryRuleDetailedOneof11Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0373.py b/githubkit/versions/v2022_11_28/types/group_0373.py index ad7cc5a00..d3f5be80e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0373.py +++ b/githubkit/versions/v2022_11_28/types/group_0373.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0159 import RepositoryRuleTagNamePatternPropParametersType +from .group_0157 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleDetailedOneof14Type(TypedDict): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof12Type(TypedDict): + """RepositoryRuleDetailedOneof12""" - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof14Type",) +__all__ = ("RepositoryRuleDetailedOneof12Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0374.py b/githubkit/versions/v2022_11_28/types/group_0374.py index db67ed7aa..754f3c475 100644 --- a/githubkit/versions/v2022_11_28/types/group_0374.py +++ b/githubkit/versions/v2022_11_28/types/group_0374.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0161 import RepositoryRuleFilePathRestrictionPropParametersType +from .group_0159 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleDetailedOneof15Type(TypedDict): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof13Type(TypedDict): + """RepositoryRuleDetailedOneof13""" - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof15Type",) +__all__ = ("RepositoryRuleDetailedOneof13Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0375.py b/githubkit/versions/v2022_11_28/types/group_0375.py index e5da545e6..a225decd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0375.py +++ b/githubkit/versions/v2022_11_28/types/group_0375.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0163 import RepositoryRuleMaxFilePathLengthPropParametersType +from .group_0161 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleDetailedOneof16Type(TypedDict): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof14Type(TypedDict): + """RepositoryRuleDetailedOneof14""" - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof16Type",) +__all__ = ("RepositoryRuleDetailedOneof14Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0376.py b/githubkit/versions/v2022_11_28/types/group_0376.py index b775911c9..e594a1521 100644 --- a/githubkit/versions/v2022_11_28/types/group_0376.py +++ b/githubkit/versions/v2022_11_28/types/group_0376.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0165 import RepositoryRuleFileExtensionRestrictionPropParametersType +from .group_0163 import RepositoryRuleFilePathRestrictionPropParametersType -class RepositoryRuleDetailedOneof17Type(TypedDict): - """RepositoryRuleDetailedOneof17""" +class RepositoryRuleDetailedOneof15Type(TypedDict): + """RepositoryRuleDetailedOneof15""" - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof17Type",) +__all__ = ("RepositoryRuleDetailedOneof15Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0377.py b/githubkit/versions/v2022_11_28/types/group_0377.py index ef9fa9905..f775c6ac3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0377.py +++ b/githubkit/versions/v2022_11_28/types/group_0377.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0167 import RepositoryRuleMaxFileSizePropParametersType +from .group_0165 import RepositoryRuleMaxFilePathLengthPropParametersType -class RepositoryRuleDetailedOneof18Type(TypedDict): - """RepositoryRuleDetailedOneof18""" +class RepositoryRuleDetailedOneof16Type(TypedDict): + """RepositoryRuleDetailedOneof16""" - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof18Type",) +__all__ = ("RepositoryRuleDetailedOneof16Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0378.py b/githubkit/versions/v2022_11_28/types/group_0378.py index 07cb94dba..900d2e985 100644 --- a/githubkit/versions/v2022_11_28/types/group_0378.py +++ b/githubkit/versions/v2022_11_28/types/group_0378.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0170 import RepositoryRuleWorkflowsPropParametersType +from .group_0167 import RepositoryRuleFileExtensionRestrictionPropParametersType -class RepositoryRuleDetailedOneof19Type(TypedDict): - """RepositoryRuleDetailedOneof19""" +class RepositoryRuleDetailedOneof17Type(TypedDict): + """RepositoryRuleDetailedOneof17""" - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof19Type",) +__all__ = ("RepositoryRuleDetailedOneof17Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0379.py b/githubkit/versions/v2022_11_28/types/group_0379.py index ea87684c0..b70303efd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0379.py +++ b/githubkit/versions/v2022_11_28/types/group_0379.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0172 import RepositoryRuleCodeScanningPropParametersType +from .group_0169 import RepositoryRuleMaxFileSizePropParametersType -class RepositoryRuleDetailedOneof20Type(TypedDict): - """RepositoryRuleDetailedOneof20""" +class RepositoryRuleDetailedOneof18Type(TypedDict): + """RepositoryRuleDetailedOneof18""" - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof20Type",) +__all__ = ("RepositoryRuleDetailedOneof18Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0380.py b/githubkit/versions/v2022_11_28/types/group_0380.py index ad1436757..056f90e7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0380.py +++ b/githubkit/versions/v2022_11_28/types/group_0380.py @@ -9,81 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0038 import ( - SecretScanningLocationCommitType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationWikiCommitType, -) -from .group_0039 import ( - SecretScanningLocationIssueCommentType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationPullRequestReviewCommentType, - SecretScanningLocationPullRequestTitleType, -) -from .group_0040 import ( - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationPullRequestCommentType, -) +from .group_0172 import RepositoryRuleWorkflowsPropParametersType -class SecretScanningAlertType(TypedDict): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof19Type(TypedDict): + """RepositoryRuleDetailedOneof19""" - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - is_base64_encoded: NotRequired[Union[bool, None]] - first_location_detected: NotRequired[ - Union[ - None, - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - has_more_locations: NotRequired[bool] + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningAlertType",) +__all__ = ("RepositoryRuleDetailedOneof19Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0381.py b/githubkit/versions/v2022_11_28/types/group_0381.py index a3cff9aad..92c31fb37 100644 --- a/githubkit/versions/v2022_11_28/types/group_0381.py +++ b/githubkit/versions/v2022_11_28/types/group_0381.py @@ -9,67 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0038 import ( - SecretScanningLocationCommitType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationWikiCommitType, -) -from .group_0039 import ( - SecretScanningLocationIssueCommentType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationPullRequestReviewCommentType, - SecretScanningLocationPullRequestTitleType, -) -from .group_0040 import ( - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationPullRequestCommentType, -) +from .group_0174 import RepositoryRuleCodeScanningPropParametersType -class SecretScanningLocationType(TypedDict): - """SecretScanningLocation""" +class RepositoryRuleDetailedOneof20Type(TypedDict): + """RepositoryRuleDetailedOneof20""" - 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, - ] - ] + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningLocationType",) +__all__ = ("RepositoryRuleDetailedOneof20Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0382.py b/githubkit/versions/v2022_11_28/types/group_0382.py index a7d6503ef..bb3d4c920 100644 --- a/githubkit/versions/v2022_11_28/types/group_0382.py +++ b/githubkit/versions/v2022_11_28/types/group_0382.py @@ -13,13 +13,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0039 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0040 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0041 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -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 SecretScanningAlertType(TypedDict): + """SecretScanningAlert""" + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + is_base64_encoded: NotRequired[Union[bool, None]] + first_location_detected: NotRequired[ + Union[ + None, + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + has_more_locations: NotRequired[bool] -__all__ = ("SecretScanningPushProtectionBypassType",) + +__all__ = ("SecretScanningAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0383.py b/githubkit/versions/v2022_11_28/types/group_0383.py index c28f498af..8b3eb87f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0383.py +++ b/githubkit/versions/v2022_11_28/types/group_0383.py @@ -9,47 +9,67 @@ 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_0039 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0040 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0041 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -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 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 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__ = ("SecretScanningLocationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0384.py b/githubkit/versions/v2022_11_28/types/group_0384.py index 3fadc1994..a7d6503ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0384.py +++ b/githubkit/versions/v2022_11_28/types/group_0384.py @@ -9,14 +9,17 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" +class SecretScanningPushProtectionBypassType(TypedDict): + """SecretScanningPushProtectionBypass""" - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] + reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] + expire_at: NotRequired[Union[datetime, None]] + token_type: NotRequired[str] -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) +__all__ = ("SecretScanningPushProtectionBypassType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0385.py b/githubkit/versions/v2022_11_28/types/group_0385.py index 3bd956c2f..c28f498af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0385.py +++ b/githubkit/versions/v2022_11_28/types/group_0385.py @@ -9,80 +9,47 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class RepositoryAdvisoryCreateType(TypedDict): - """RepositoryAdvisoryCreate""" +class SecretScanningScanHistoryType(TypedDict): + """SecretScanningScanHistory""" - 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", + incremental_scans: NotRequired[list[SecretScanningScanType]] + pattern_update_scans: NotRequired[list[SecretScanningScanType]] + backfill_scans: NotRequired[list[SecretScanningScanType]] + custom_pattern_backfill_scans: NotRequired[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] ] -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" +class SecretScanningScanType(TypedDict): + """SecretScanningScan - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] + 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 RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - The name of the package affected by the vulnerability. - """ +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] + 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__ = ( - "RepositoryAdvisoryCreatePropCreditsItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryCreateType", + "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", + "SecretScanningScanHistoryType", + "SecretScanningScanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0386.py b/githubkit/versions/v2022_11_28/types/group_0386.py index 23f5f5af0..3fadc1994 100644 --- a/githubkit/versions/v2022_11_28/types/group_0386.py +++ b/githubkit/versions/v2022_11_28/types/group_0386.py @@ -9,61 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class PrivateVulnerabilityReportCreateType(TypedDict): - """PrivateVulnerabilityReportCreate""" +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - 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] + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] -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__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0387.py b/githubkit/versions/v2022_11_28/types/group_0387.py index 689cbef7f..3bd956c2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0387.py +++ b/githubkit/versions/v2022_11_28/types/group_0387.py @@ -13,28 +13,24 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryAdvisoryUpdateType(TypedDict): - """RepositoryAdvisoryUpdate""" +class RepositoryAdvisoryCreateType(TypedDict): + """RepositoryAdvisoryCreate""" - summary: NotRequired[str] - description: NotRequired[str] + summary: str + description: str cve_id: NotRequired[Union[str, None]] - vulnerabilities: NotRequired[ - list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] - ] + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] cwe_ids: NotRequired[Union[list[str], None]] credits_: NotRequired[ - Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] + Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], 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]] + start_private_fork: NotRequired[bool] -class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropCreditsItems""" +class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryCreatePropCreditsItems""" login: str type: Literal[ @@ -51,17 +47,17 @@ class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): ] -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType vulnerable_version_range: NotRequired[Union[str, None]] patched_versions: NotRequired[Union[str, None]] vulnerable_functions: NotRequired[Union[list[str], None]] -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage The name of the package affected by the vulnerability. """ @@ -85,8 +81,8 @@ class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict) __all__ = ( - "RepositoryAdvisoryUpdatePropCreditsItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryUpdateType", + "RepositoryAdvisoryCreatePropCreditsItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryCreateType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0388.py b/githubkit/versions/v2022_11_28/types/group_0388.py index ca2546e70..23f5f5af0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0388.py +++ b/githubkit/versions/v2022_11_28/types/group_0388.py @@ -9,21 +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 -from .group_0003 import SimpleUserType +class PrivateVulnerabilityReportCreateType(TypedDict): + """PrivateVulnerabilityReportCreate""" -class StargazerType(TypedDict): - """Stargazer + 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] - Stargazer + +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. """ - starred_at: datetime - user: Union[None, SimpleUserType] + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("StargazerType",) +__all__ = ( + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", + "PrivateVulnerabilityReportCreateType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0389.py b/githubkit/versions/v2022_11_28/types/group_0389.py index c3c8c7e64..689cbef7f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0389.py +++ b/githubkit/versions/v2022_11_28/types/group_0389.py @@ -9,18 +9,84 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class CommitActivityType(TypedDict): - """Commit Activity +class RepositoryAdvisoryUpdateType(TypedDict): + """RepositoryAdvisoryUpdate""" - Commit Activity + 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. """ - days: list[int] - total: int - week: int + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("CommitActivityType",) +__all__ = ( + "RepositoryAdvisoryUpdatePropCreditsItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryUpdateType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0390.py b/githubkit/versions/v2022_11_28/types/group_0390.py index 0c764aa8c..ca2546e70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0390.py +++ b/githubkit/versions/v2022_11_28/types/group_0390.py @@ -9,33 +9,21 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -class ContributorActivityType(TypedDict): - """Contributor Activity +class StargazerType(TypedDict): + """Stargazer - Contributor Activity + Stargazer """ - author: Union[None, SimpleUserType] - total: int - weeks: list[ContributorActivityPropWeeksItemsType] + starred_at: datetime + user: Union[None, SimpleUserType] -class ContributorActivityPropWeeksItemsType(TypedDict): - """ContributorActivityPropWeeksItems""" - - w: NotRequired[int] - a: NotRequired[int] - d: NotRequired[int] - c: NotRequired[int] - - -__all__ = ( - "ContributorActivityPropWeeksItemsType", - "ContributorActivityType", -) +__all__ = ("StargazerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0391.py b/githubkit/versions/v2022_11_28/types/group_0391.py index 4bde16f66..c3c8c7e64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0391.py +++ b/githubkit/versions/v2022_11_28/types/group_0391.py @@ -12,11 +12,15 @@ from typing_extensions import TypedDict -class ParticipationStatsType(TypedDict): - """Participation Stats""" +class CommitActivityType(TypedDict): + """Commit Activity - all_: list[int] - owner: list[int] + Commit Activity + """ + days: list[int] + total: int + week: int -__all__ = ("ParticipationStatsType",) + +__all__ = ("CommitActivityType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0392.py b/githubkit/versions/v2022_11_28/types/group_0392.py index 00a60951a..0c764aa8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0392.py +++ b/githubkit/versions/v2022_11_28/types/group_0392.py @@ -9,23 +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_0003 import SimpleUserType -class RepositorySubscriptionType(TypedDict): - """Repository Invitation - Repository invitations let you manage who you collaborate with. +class ContributorActivityType(TypedDict): + """Contributor Activity + + Contributor Activity """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: datetime - url: str - repository_url: str + author: Union[None, SimpleUserType] + total: int + weeks: list[ContributorActivityPropWeeksItemsType] + + +class ContributorActivityPropWeeksItemsType(TypedDict): + """ContributorActivityPropWeeksItems""" + + w: NotRequired[int] + a: NotRequired[int] + d: NotRequired[int] + c: NotRequired[int] -__all__ = ("RepositorySubscriptionType",) +__all__ = ( + "ContributorActivityPropWeeksItemsType", + "ContributorActivityType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0393.py b/githubkit/versions/v2022_11_28/types/group_0393.py index 8a231b6fb..4bde16f66 100644 --- a/githubkit/versions/v2022_11_28/types/group_0393.py +++ b/githubkit/versions/v2022_11_28/types/group_0393.py @@ -12,27 +12,11 @@ from typing_extensions import TypedDict -class TagType(TypedDict): - """Tag +class ParticipationStatsType(TypedDict): + """Participation Stats""" - Tag - """ + all_: list[int] + owner: list[int] - name: str - commit: TagPropCommitType - zipball_url: str - tarball_url: str - node_id: str - -class TagPropCommitType(TypedDict): - """TagPropCommit""" - - sha: str - url: str - - -__all__ = ( - "TagPropCommitType", - "TagType", -) +__all__ = ("ParticipationStatsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0394.py b/githubkit/versions/v2022_11_28/types/group_0394.py index a09ecf462..00a60951a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0394.py +++ b/githubkit/versions/v2022_11_28/types/group_0394.py @@ -9,20 +9,23 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict -class TagProtectionType(TypedDict): - """Tag protection +class RepositorySubscriptionType(TypedDict): + """Repository Invitation - Tag protection + Repository invitations let you manage who you collaborate with. """ - id: NotRequired[int] - created_at: NotRequired[str] - updated_at: NotRequired[str] - enabled: NotRequired[bool] - pattern: str + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: datetime + url: str + repository_url: str -__all__ = ("TagProtectionType",) +__all__ = ("RepositorySubscriptionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0395.py b/githubkit/versions/v2022_11_28/types/group_0395.py index 69365fe85..8a231b6fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0395.py +++ b/githubkit/versions/v2022_11_28/types/group_0395.py @@ -12,13 +12,27 @@ from typing_extensions import TypedDict -class TopicType(TypedDict): - """Topic +class TagType(TypedDict): + """Tag - A topic aggregates entities that are related to a subject. + Tag """ - names: list[str] + name: str + commit: TagPropCommitType + zipball_url: str + tarball_url: str + node_id: str -__all__ = ("TopicType",) +class TagPropCommitType(TypedDict): + """TagPropCommit""" + + sha: str + url: str + + +__all__ = ( + "TagPropCommitType", + "TagType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0396.py b/githubkit/versions/v2022_11_28/types/group_0396.py index 2412270d8..a09ecf462 100644 --- a/githubkit/versions/v2022_11_28/types/group_0396.py +++ b/githubkit/versions/v2022_11_28/types/group_0396.py @@ -9,16 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TrafficType(TypedDict): - """Traffic""" +class TagProtectionType(TypedDict): + """Tag protection - timestamp: datetime - uniques: int - count: int + Tag protection + """ + id: NotRequired[int] + created_at: NotRequired[str] + updated_at: NotRequired[str] + enabled: NotRequired[bool] + pattern: str -__all__ = ("TrafficType",) + +__all__ = ("TagProtectionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0397.py b/githubkit/versions/v2022_11_28/types/group_0397.py index 89fb1a66e..69365fe85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0397.py +++ b/githubkit/versions/v2022_11_28/types/group_0397.py @@ -11,18 +11,14 @@ from typing_extensions import TypedDict -from .group_0396 import TrafficType +class TopicType(TypedDict): + """Topic -class CloneTrafficType(TypedDict): - """Clone Traffic - - Clone Traffic + A topic aggregates entities that are related to a subject. """ - count: int - uniques: int - clones: list[TrafficType] + names: list[str] -__all__ = ("CloneTrafficType",) +__all__ = ("TopicType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0398.py b/githubkit/versions/v2022_11_28/types/group_0398.py index 8ae9ebc92..2412270d8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0398.py +++ b/githubkit/versions/v2022_11_28/types/group_0398.py @@ -9,19 +9,16 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class ContentTrafficType(TypedDict): - """Content Traffic +class TrafficType(TypedDict): + """Traffic""" - Content Traffic - """ - - path: str - title: str - count: int + timestamp: datetime uniques: int + count: int -__all__ = ("ContentTrafficType",) +__all__ = ("TrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0399.py b/githubkit/versions/v2022_11_28/types/group_0399.py index d7d63281a..85fe7e487 100644 --- a/githubkit/versions/v2022_11_28/types/group_0399.py +++ b/githubkit/versions/v2022_11_28/types/group_0399.py @@ -11,16 +11,18 @@ from typing_extensions import TypedDict +from .group_0398 import TrafficType -class ReferrerTrafficType(TypedDict): - """Referrer Traffic - Referrer Traffic +class CloneTrafficType(TypedDict): + """Clone Traffic + + Clone Traffic """ - referrer: str count: int uniques: int + clones: list[TrafficType] -__all__ = ("ReferrerTrafficType",) +__all__ = ("CloneTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0400.py b/githubkit/versions/v2022_11_28/types/group_0400.py index 8d6db2815..8ae9ebc92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0400.py +++ b/githubkit/versions/v2022_11_28/types/group_0400.py @@ -11,18 +11,17 @@ from typing_extensions import TypedDict -from .group_0396 import TrafficType +class ContentTrafficType(TypedDict): + """Content Traffic -class ViewTrafficType(TypedDict): - """View Traffic - - View Traffic + Content Traffic """ + path: str + title: str count: int uniques: int - views: list[TrafficType] -__all__ = ("ViewTrafficType",) +__all__ = ("ContentTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0401.py b/githubkit/versions/v2022_11_28/types/group_0401.py index e1d436bf1..d7d63281a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0401.py +++ b/githubkit/versions/v2022_11_28/types/group_0401.py @@ -9,28 +9,18 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class SearchResultTextMatchesItemsType(TypedDict): - """SearchResultTextMatchesItems""" +class ReferrerTrafficType(TypedDict): + """Referrer Traffic - object_url: NotRequired[str] - object_type: NotRequired[Union[str, None]] - property_: NotRequired[str] - fragment: NotRequired[str] - matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] + Referrer Traffic + """ + referrer: str + count: int + uniques: int -class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): - """SearchResultTextMatchesItemsPropMatchesItems""" - text: NotRequired[str] - indices: NotRequired[list[int]] - - -__all__ = ( - "SearchResultTextMatchesItemsPropMatchesItemsType", - "SearchResultTextMatchesItemsType", -) +__all__ = ("ReferrerTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0402.py b/githubkit/versions/v2022_11_28/types/group_0402.py index 9a4d3857a..1688e2280 100644 --- a/githubkit/versions/v2022_11_28/types/group_0402.py +++ b/githubkit/versions/v2022_11_28/types/group_0402.py @@ -9,44 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0061 import MinimalRepositoryType -from .group_0401 import SearchResultTextMatchesItemsType +from .group_0398 import TrafficType -class CodeSearchResultItemType(TypedDict): - """Code Search Result Item +class ViewTrafficType(TypedDict): + """View Traffic - Code Search Result Item + View Traffic """ - name: str - path: str - sha: str - url: str - git_url: str - html_url: str - repository: MinimalRepositoryType - score: float - file_size: NotRequired[int] - language: NotRequired[Union[str, None]] - last_modified_at: NotRequired[datetime] - line_numbers: NotRequired[list[str]] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - - -class SearchCodeGetResponse200Type(TypedDict): - """SearchCodeGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[CodeSearchResultItemType] - - -__all__ = ( - "CodeSearchResultItemType", - "SearchCodeGetResponse200Type", -) + count: int + uniques: int + views: list[TrafficType] + + +__all__ = ("ViewTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0403.py b/githubkit/versions/v2022_11_28/types/group_0403.py index 451a37f2f..e1d436bf1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0403.py +++ b/githubkit/versions/v2022_11_28/types/group_0403.py @@ -12,51 +12,25 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0061 import MinimalRepositoryType -from .group_0226 import GitUserType -from .group_0401 import SearchResultTextMatchesItemsType -from .group_0404 import CommitSearchResultItemPropCommitType +class SearchResultTextMatchesItemsType(TypedDict): + """SearchResultTextMatchesItems""" -class CommitSearchResultItemType(TypedDict): - """Commit Search Result Item + object_url: NotRequired[str] + object_type: NotRequired[Union[str, None]] + property_: NotRequired[str] + fragment: NotRequired[str] + matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] - Commit Search Result Item - """ - url: str - sha: str - html_url: str - comments_url: str - commit: CommitSearchResultItemPropCommitType - author: Union[None, SimpleUserType] - committer: Union[None, GitUserType] - parents: list[CommitSearchResultItemPropParentsItemsType] - repository: MinimalRepositoryType - score: float - node_id: str - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] +class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): + """SearchResultTextMatchesItemsPropMatchesItems""" - -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] + text: NotRequired[str] + indices: NotRequired[list[int]] __all__ = ( - "CommitSearchResultItemPropParentsItemsType", - "CommitSearchResultItemType", - "SearchCommitsGetResponse200Type", + "SearchResultTextMatchesItemsPropMatchesItemsType", + "SearchResultTextMatchesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0404.py b/githubkit/versions/v2022_11_28/types/group_0404.py index d7303c071..53408c2e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0404.py +++ b/githubkit/versions/v2022_11_28/types/group_0404.py @@ -13,39 +13,40 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0226 import GitUserType -from .group_0227 import VerificationType +from .group_0063 import MinimalRepositoryType +from .group_0403 import SearchResultTextMatchesItemsType -class CommitSearchResultItemPropCommitType(TypedDict): - """CommitSearchResultItemPropCommit""" - - author: CommitSearchResultItemPropCommitPropAuthorType - committer: Union[None, GitUserType] - comment_count: int - message: str - tree: CommitSearchResultItemPropCommitPropTreeType - url: str - verification: NotRequired[VerificationType] +class CodeSearchResultItemType(TypedDict): + """Code Search Result Item - -class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): - """CommitSearchResultItemPropCommitPropAuthor""" + Code Search Result Item + """ name: str - email: str - date: datetime + 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 CommitSearchResultItemPropCommitPropTreeType(TypedDict): - """CommitSearchResultItemPropCommitPropTree""" +class SearchCodeGetResponse200Type(TypedDict): + """SearchCodeGetResponse200""" - sha: str - url: str + total_count: int + incomplete_results: bool + items: list[CodeSearchResultItemType] __all__ = ( - "CommitSearchResultItemPropCommitPropAuthorType", - "CommitSearchResultItemPropCommitPropTreeType", - "CommitSearchResultItemPropCommitType", + "CodeSearchResultItemType", + "SearchCodeGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0405.py b/githubkit/versions/v2022_11_28/types/group_0405.py index 2d74b2b95..ba8b0751e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0405.py +++ b/githubkit/versions/v2022_11_28/types/group_0405.py @@ -9,115 +9,54 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0020 import RepositoryType -from .group_0042 import MilestoneType -from .group_0043 import IssueTypeType -from .group_0044 import ReactionRollupType -from .group_0401 import SearchResultTextMatchesItemsType +from .group_0063 import MinimalRepositoryType +from .group_0228 import GitUserType +from .group_0403 import SearchResultTextMatchesItemsType +from .group_0406 import CommitSearchResultItemPropCommitType -class IssueSearchResultItemType(TypedDict): - """Issue Search Result Item +class CommitSearchResultItemType(TypedDict): + """Commit Search Result Item - Issue Search Result Item + Commit Search Result Item """ url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str + sha: str html_url: str - id: int + comments_url: str + commit: CommitSearchResultItemPropCommitType + author: Union[None, SimpleUserType] + committer: Union[None, GitUserType] + parents: list[CommitSearchResultItemPropParentsItemsType] + repository: MinimalRepositoryType + score: float node_id: str - number: int - title: str - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - assignees: NotRequired[Union[list[SimpleUserType], None]] - user: Union[None, SimpleUserType] - labels: list[IssueSearchResultItemPropLabelsItemsType] - sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] - state: str - state_reason: NotRequired[Union[str, None]] - assignee: Union[None, SimpleUserType] - milestone: Union[None, MilestoneType] - comments: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] - body: NotRequired[str] - score: float - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - draft: NotRequired[bool] - repository: NotRequired[RepositoryType] - body_html: NotRequired[str] - body_text: NotRequired[str] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -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""" +class CommitSearchResultItemPropParentsItemsType(TypedDict): + """CommitSearchResultItemPropParentsItems""" - 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] + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] -class SearchIssuesGetResponse200Type(TypedDict): - """SearchIssuesGetResponse200""" +class SearchCommitsGetResponse200Type(TypedDict): + """SearchCommitsGetResponse200""" total_count: int incomplete_results: bool - items: list[IssueSearchResultItemType] + items: list[CommitSearchResultItemType] __all__ = ( - "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropPullRequestType", - "IssueSearchResultItemPropSubIssuesSummaryType", - "IssueSearchResultItemType", - "SearchIssuesGetResponse200Type", + "CommitSearchResultItemPropParentsItemsType", + "CommitSearchResultItemType", + "SearchCommitsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0406.py b/githubkit/versions/v2022_11_28/types/group_0406.py index f30f90a5f..68c09d885 100644 --- a/githubkit/versions/v2022_11_28/types/group_0406.py +++ b/githubkit/versions/v2022_11_28/types/group_0406.py @@ -9,38 +9,43 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0401 import SearchResultTextMatchesItemsType +from .group_0228 import GitUserType +from .group_0229 import VerificationType -class LabelSearchResultItemType(TypedDict): - """Label Search Result Item +class CommitSearchResultItemPropCommitType(TypedDict): + """CommitSearchResultItemPropCommit""" - Label Search Result Item - """ - - id: int - node_id: str + author: CommitSearchResultItemPropCommitPropAuthorType + committer: Union[None, GitUserType] + comment_count: int + message: str + tree: CommitSearchResultItemPropCommitPropTreeType url: str + verification: NotRequired[VerificationType] + + +class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): + """CommitSearchResultItemPropCommitPropAuthor""" + name: str - color: str - default: bool - description: Union[str, None] - score: float - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + email: str + date: datetime -class SearchLabelsGetResponse200Type(TypedDict): - """SearchLabelsGetResponse200""" +class CommitSearchResultItemPropCommitPropTreeType(TypedDict): + """CommitSearchResultItemPropCommitPropTree""" - total_count: int - incomplete_results: bool - items: list[LabelSearchResultItemType] + sha: str + url: str __all__ = ( - "LabelSearchResultItemType", - "SearchLabelsGetResponse200Type", + "CommitSearchResultItemPropCommitPropAuthorType", + "CommitSearchResultItemPropCommitPropTreeType", + "CommitSearchResultItemPropCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0407.py b/githubkit/versions/v2022_11_28/types/group_0407.py index 9a03e02cb..72e787c3c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0407.py +++ b/githubkit/versions/v2022_11_28/types/group_0407.py @@ -10,131 +10,106 @@ 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_0019 import LicenseSimpleType -from .group_0401 import SearchResultTextMatchesItemsType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0043 import MilestoneType +from .group_0044 import IssueTypeType +from .group_0045 import ReactionRollupType +from .group_0046 import SubIssuesSummaryType +from .group_0403 import SearchResultTextMatchesItemsType -class RepoSearchResultItemType(TypedDict): - """Repo Search Result Item +class IssueSearchResultItemType(TypedDict): + """Issue Search Result Item - Repo Search Result Item + 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 - name: str - full_name: str - owner: Union[None, SimpleUserType] - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: 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[SubIssuesSummaryType] + state: str + state_reason: NotRequired[Union[str, None]] + assignee: Union[None, SimpleUserType] + milestone: Union[None, MilestoneType] + comments: int 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] + closed_at: Union[datetime, None] 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""" + pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] + body: NotRequired[str] + score: float + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + draft: NotRequired[bool] + repository: NotRequired[RepositoryType] + body_html: NotRequired[str] + body_text: NotRequired[str] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +class IssueSearchResultItemPropLabelsItemsType(TypedDict): + """IssueSearchResultItemPropLabelsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + color: NotRequired[str] + default: NotRequired[bool] + description: NotRequired[Union[str, None]] + + +class 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[RepoSearchResultItemType] + items: list[IssueSearchResultItemType] __all__ = ( - "RepoSearchResultItemPropPermissionsType", - "RepoSearchResultItemType", - "SearchRepositoriesGetResponse200Type", + "IssueSearchResultItemPropLabelsItemsType", + "IssueSearchResultItemPropPullRequestType", + "IssueSearchResultItemType", + "SearchIssuesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0408.py b/githubkit/versions/v2022_11_28/types/group_0408.py index cda922946..af507e7bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0408.py +++ b/githubkit/versions/v2022_11_28/types/group_0408.py @@ -9,84 +9,38 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0401 import SearchResultTextMatchesItemsType +from .group_0403 import SearchResultTextMatchesItemsType -class TopicSearchResultItemType(TypedDict): - """Topic Search Result Item +class LabelSearchResultItemType(TypedDict): + """Label Search Result Item - Topic Search Result Item + Label Search Result Item """ + id: int + node_id: str + url: str name: str - display_name: Union[str, None] - short_description: Union[str, None] + color: str + default: bool 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""" +class SearchLabelsGetResponse200Type(TypedDict): + """SearchLabelsGetResponse200""" total_count: int incomplete_results: bool - items: list[TopicSearchResultItemType] + items: list[LabelSearchResultItemType] __all__ = ( - "SearchTopicsGetResponse200Type", - "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", - "TopicSearchResultItemPropAliasesItemsType", - "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", - "TopicSearchResultItemPropRelatedItemsType", - "TopicSearchResultItemType", + "LabelSearchResultItemType", + "SearchLabelsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0409.py b/githubkit/versions/v2022_11_28/types/group_0409.py index f9d6ed01b..4b6c3c482 100644 --- a/githubkit/versions/v2022_11_28/types/group_0409.py +++ b/githubkit/versions/v2022_11_28/types/group_0409.py @@ -13,61 +13,128 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0401 import SearchResultTextMatchesItemsType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0403 import SearchResultTextMatchesItemsType -class UserSearchResultItemType(TypedDict): - """User Search Result Item +class RepoSearchResultItemType(TypedDict): + """Repo Search Result Item - User Search Result Item + Repo Search Result Item """ - login: str id: int node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str + name: str + full_name: str + owner: Union[None, SimpleUserType] + private: bool html_url: str - followers_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - received_events_url: str - type: 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 - following_url: str - gists_url: str - starred_url: str + forks_url: str + keys_url: str + collaborators_url: str + teams_url: str + hooks_url: str + issue_events_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]] + 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]] - blog: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - suspended_at: NotRequired[Union[datetime, None]] - user_view_type: NotRequired[str] + 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 SearchUsersGetResponse200Type(TypedDict): - """SearchUsersGetResponse200""" +class SearchRepositoriesGetResponse200Type(TypedDict): + """SearchRepositoriesGetResponse200""" total_count: int incomplete_results: bool - items: list[UserSearchResultItemType] + items: list[RepoSearchResultItemType] __all__ = ( - "SearchUsersGetResponse200Type", - "UserSearchResultItemType", + "RepoSearchResultItemPropPermissionsType", + "RepoSearchResultItemType", + "SearchRepositoriesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0410.py b/githubkit/versions/v2022_11_28/types/group_0410.py index 855325c4a..42da76278 100644 --- a/githubkit/versions/v2022_11_28/types/group_0410.py +++ b/githubkit/versions/v2022_11_28/types/group_0410.py @@ -13,68 +13,80 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0403 import SearchResultTextMatchesItemsType -class PrivateUserType(TypedDict): - """Private User - Private User +class TopicSearchResultItemType(TypedDict): + """Topic Search Result Item + + Topic Search Result Item """ - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - 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 + 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 - 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] + 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 PrivateUserPropPlanType(TypedDict): - """PrivateUserPropPlan""" +class TopicSearchResultItemPropRelatedItemsType(TypedDict): + """TopicSearchResultItemPropRelatedItems""" - collaborators: int - name: str - space: int - private_repos: int + 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__ = ( - "PrivateUserPropPlanType", - "PrivateUserType", + "SearchTopicsGetResponse200Type", + "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", + "TopicSearchResultItemPropAliasesItemsType", + "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", + "TopicSearchResultItemPropRelatedItemsType", + "TopicSearchResultItemType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0411.py b/githubkit/versions/v2022_11_28/types/group_0411.py index 6be52538b..0cd0c03f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0411.py +++ b/githubkit/versions/v2022_11_28/types/group_0411.py @@ -9,17 +9,65 @@ 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_0403 import SearchResultTextMatchesItemsType -class CodespacesUserPublicKeyType(TypedDict): - """CodespacesUserPublicKey - The public key used for setting user Codespaces' Secrets. +class UserSearchResultItemType(TypedDict): + """User Search Result Item + + User Search Result Item """ - key_id: str - key: str + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + received_events_url: str + type: str + score: float + following_url: str + gists_url: str + starred_url: str + events_url: str + public_repos: NotRequired[int] + public_gists: NotRequired[int] + followers: NotRequired[int] + following: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + name: NotRequired[Union[str, None]] + bio: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + site_admin: bool + hireable: NotRequired[Union[bool, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + blog: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + suspended_at: NotRequired[Union[datetime, None]] + user_view_type: NotRequired[str] + + +class SearchUsersGetResponse200Type(TypedDict): + """SearchUsersGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[UserSearchResultItemType] -__all__ = ("CodespacesUserPublicKeyType",) +__all__ = ( + "SearchUsersGetResponse200Type", + "UserSearchResultItemType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0412.py b/githubkit/versions/v2022_11_28/types/group_0412.py index 2b50d37d0..855325c4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0412.py +++ b/githubkit/versions/v2022_11_28/types/group_0412.py @@ -14,20 +14,67 @@ from typing_extensions import NotRequired, TypedDict -class CodespaceExportDetailsType(TypedDict): - """Fetches information about an export of a codespace. +class PrivateUserType(TypedDict): + """Private User - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest + Private User """ - 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]] + 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] -__all__ = ("CodespaceExportDetailsType",) +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_0413.py b/githubkit/versions/v2022_11_28/types/group_0413.py index 975ddd9ad..6be52538b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0413.py +++ b/githubkit/versions/v2022_11_28/types/group_0413.py @@ -9,95 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0090 import CodespaceMachineType -from .group_0124 import FullRepositoryType +class CodespacesUserPublicKeyType(TypedDict): + """CodespacesUserPublicKey -class CodespaceWithFullRepositoryType(TypedDict): - """Codespace - - A codespace. + The public key used for setting user Codespaces' Secrets. """ - id: int - name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: FullRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] - created_at: datetime - updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespaceWithFullRepositoryPropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[ - CodespaceWithFullRepositoryPropRuntimeConstraintsType - ] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - - -class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): - """CodespaceWithFullRepositoryPropGitStatus - - Details about the codespace's git repository. - """ - - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] - - -class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" - - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] + key_id: str + key: str -__all__ = ( - "CodespaceWithFullRepositoryPropGitStatusType", - "CodespaceWithFullRepositoryPropRuntimeConstraintsType", - "CodespaceWithFullRepositoryType", -) +__all__ = ("CodespacesUserPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0414.py b/githubkit/versions/v2022_11_28/types/group_0414.py index 767832678..2b50d37d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0414.py +++ b/githubkit/versions/v2022_11_28/types/group_0414.py @@ -9,20 +9,25 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class EmailType(TypedDict): - """Email +class CodespaceExportDetailsType(TypedDict): + """Fetches information about an export of a codespace. - Email + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - email: str - primary: bool - verified: bool - visibility: Union[str, None] + state: NotRequired[Union[str, None]] + completed_at: NotRequired[Union[datetime, None]] + branch: NotRequired[Union[str, None]] + sha: NotRequired[Union[str, None]] + id: NotRequired[str] + export_url: NotRequired[str] + html_url: NotRequired[Union[str, None]] -__all__ = ("EmailType",) +__all__ = ("CodespaceExportDetailsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0415.py b/githubkit/versions/v2022_11_28/types/group_0415.py index 324df51fb..c03362fd8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0415.py +++ b/githubkit/versions/v2022_11_28/types/group_0415.py @@ -10,69 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0092 import CodespaceMachineType +from .group_0126 import FullRepositoryType -class GpgKeyType(TypedDict): - """GPG Key - A unique encryption key +class CodespaceWithFullRepositoryType(TypedDict): + """Codespace + + A codespace. """ 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: 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 - 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""" + 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. + """ - 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] + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] -class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): - """GpgKeyPropSubkeysItemsPropEmailsItems""" +class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" - email: NotRequired[str] - verified: NotRequired[bool] + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] __all__ = ( - "GpgKeyPropEmailsItemsType", - "GpgKeyPropSubkeysItemsPropEmailsItemsType", - "GpgKeyPropSubkeysItemsType", - "GpgKeyType", + "CodespaceWithFullRepositoryPropGitStatusType", + "CodespaceWithFullRepositoryPropRuntimeConstraintsType", + "CodespaceWithFullRepositoryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0416.py b/githubkit/versions/v2022_11_28/types/group_0416.py index 6c95fc7a9..767832678 100644 --- a/githubkit/versions/v2022_11_28/types/group_0416.py +++ b/githubkit/versions/v2022_11_28/types/group_0416.py @@ -9,23 +9,20 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class KeyType(TypedDict): - """Key +class EmailType(TypedDict): + """Email - Key + Email """ - key: str - id: int - url: str - title: str - created_at: datetime + email: str + primary: bool verified: bool - read_only: bool + visibility: Union[str, None] -__all__ = ("KeyType",) +__all__ = ("EmailType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0417.py b/githubkit/versions/v2022_11_28/types/group_0417.py index 7fc0b213d..324df51fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0417.py +++ b/githubkit/versions/v2022_11_28/types/group_0417.py @@ -10,41 +10,69 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Any, Union from typing_extensions import NotRequired, TypedDict -from .group_0056 import MarketplaceListingPlanType +class GpgKeyType(TypedDict): + """GPG Key -class UserMarketplacePurchaseType(TypedDict): - """User Marketplace Purchase - - User Marketplace Purchase + A unique encryption key """ - 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 + 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 MarketplaceAccountType(TypedDict): - """Marketplace Account""" +class GpgKeyPropEmailsItemsType(TypedDict): + """GpgKeyPropEmailsItems""" - url: str - id: int - type: str - node_id: NotRequired[str] - login: str - email: NotRequired[Union[str, None]] - organization_billing_email: NotRequired[Union[str, None]] + 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__ = ( - "MarketplaceAccountType", - "UserMarketplacePurchaseType", + "GpgKeyPropEmailsItemsType", + "GpgKeyPropSubkeysItemsPropEmailsItemsType", + "GpgKeyPropSubkeysItemsType", + "GpgKeyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0418.py b/githubkit/versions/v2022_11_28/types/group_0418.py index f892fc0d3..3b5ea56a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0418.py +++ b/githubkit/versions/v2022_11_28/types/group_0418.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 KeyType(TypedDict): + """Key - Social media account + Key """ - provider: str + key: str + id: int url: str + title: str + created_at: datetime + verified: bool + read_only: bool + last_used: NotRequired[Union[datetime, None]] -__all__ = ("SocialAccountType",) +__all__ = ("KeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0419.py b/githubkit/versions/v2022_11_28/types/group_0419.py index a3c3f348b..78660f133 100644 --- a/githubkit/versions/v2022_11_28/types/group_0419.py +++ b/githubkit/versions/v2022_11_28/types/group_0419.py @@ -10,19 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0058 import MarketplaceListingPlanType -class SshSigningKeyType(TypedDict): - """SSH Signing Key - A public SSH key used to sign Git commits +class UserMarketplacePurchaseType(TypedDict): + """User Marketplace Purchase + + User Marketplace Purchase """ - key: str + 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 - title: str - created_at: datetime + type: str + node_id: NotRequired[str] + login: str + email: NotRequired[Union[str, None]] + organization_billing_email: NotRequired[Union[str, None]] -__all__ = ("SshSigningKeyType",) +__all__ = ( + "MarketplaceAccountType", + "UserMarketplacePurchaseType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0420.py b/githubkit/versions/v2022_11_28/types/group_0420.py index de982a527..f892fc0d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0420.py +++ b/githubkit/versions/v2022_11_28/types/group_0420.py @@ -9,20 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -from .group_0020 import RepositoryType +class SocialAccountType(TypedDict): + """Social account -class StarredRepositoryType(TypedDict): - """Starred Repository - - Starred Repository + Social media account """ - starred_at: datetime - repo: RepositoryType + provider: str + url: str -__all__ = ("StarredRepositoryType",) +__all__ = ("SocialAccountType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0421.py b/githubkit/versions/v2022_11_28/types/group_0421.py index d66bf379e..a3c3f348b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0421.py +++ b/githubkit/versions/v2022_11_28/types/group_0421.py @@ -9,26 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class HovercardType(TypedDict): - """Hovercard +class SshSigningKeyType(TypedDict): + """SSH Signing Key - Hovercard + A public SSH key used to sign Git commits """ - contexts: list[HovercardPropContextsItemsType] + key: str + id: int + title: str + created_at: datetime -class HovercardPropContextsItemsType(TypedDict): - """HovercardPropContextsItems""" - - message: str - octicon: str - - -__all__ = ( - "HovercardPropContextsItemsType", - "HovercardType", -) +__all__ = ("SshSigningKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0422.py b/githubkit/versions/v2022_11_28/types/group_0422.py index e5a58b96a..de982a527 100644 --- a/githubkit/versions/v2022_11_28/types/group_0422.py +++ b/githubkit/versions/v2022_11_28/types/group_0422.py @@ -10,18 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class KeySimpleType(TypedDict): - """Key Simple - Key Simple +class StarredRepositoryType(TypedDict): + """Starred Repository + + Starred Repository """ - id: int - key: str - created_at: NotRequired[datetime] + starred_at: datetime + repo: RepositoryType -__all__ = ("KeySimpleType",) +__all__ = ("StarredRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0423.py b/githubkit/versions/v2022_11_28/types/group_0423.py index 4f0fc4229..d66bf379e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0423.py +++ b/githubkit/versions/v2022_11_28/types/group_0423.py @@ -9,31 +9,26 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class BillingUsageReportUserType(TypedDict): - """BillingUsageReportUser""" +class HovercardType(TypedDict): + """Hovercard - usage_items: NotRequired[list[BillingUsageReportUserPropUsageItemsItemsType]] + Hovercard + """ + contexts: list[HovercardPropContextsItemsType] -class BillingUsageReportUserPropUsageItemsItemsType(TypedDict): - """BillingUsageReportUserPropUsageItemsItems""" - date: str - product: str - sku: str - quantity: int - unit_type: str - price_per_unit: float - gross_amount: float - discount_amount: float - net_amount: float - repository_name: NotRequired[str] +class HovercardPropContextsItemsType(TypedDict): + """HovercardPropContextsItems""" + + message: str + octicon: str __all__ = ( - "BillingUsageReportUserPropUsageItemsItemsType", - "BillingUsageReportUserType", + "HovercardPropContextsItemsType", + "HovercardType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0424.py b/githubkit/versions/v2022_11_28/types/group_0424.py index 7ec29c5b4..e0295b625 100644 --- a/githubkit/versions/v2022_11_28/types/group_0424.py +++ b/githubkit/versions/v2022_11_28/types/group_0424.py @@ -14,27 +14,16 @@ from typing_extensions import NotRequired, TypedDict -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 KeySimpleType(TypedDict): + """Key Simple + + Key Simple """ - 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 + key: str + created_at: NotRequired[datetime] + last_used: NotRequired[Union[datetime, None]] -__all__ = ("EnterpriseWebhooksType",) +__all__ = ("KeySimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0425.py b/githubkit/versions/v2022_11_28/types/group_0425.py index bbc5a360f..4f0fc4229 100644 --- a/githubkit/versions/v2022_11_28/types/group_0425.py +++ b/githubkit/versions/v2022_11_28/types/group_0425.py @@ -9,21 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class SimpleInstallationType(TypedDict): - """Simple Installation +class BillingUsageReportUserType(TypedDict): + """BillingUsageReportUser""" - 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)." - """ + usage_items: NotRequired[list[BillingUsageReportUserPropUsageItemsItemsType]] - id: int - node_id: str +class BillingUsageReportUserPropUsageItemsItemsType(TypedDict): + """BillingUsageReportUserPropUsageItemsItems""" -__all__ = ("SimpleInstallationType",) + date: str + product: str + sku: str + quantity: int + unit_type: str + price_per_unit: float + gross_amount: float + discount_amount: float + net_amount: float + repository_name: NotRequired[str] + + +__all__ = ( + "BillingUsageReportUserPropUsageItemsItemsType", + "BillingUsageReportUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0426.py b/githubkit/versions/v2022_11_28/types/group_0426.py index b52264ecb..7ec29c5b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0426.py +++ b/githubkit/versions/v2022_11_28/types/group_0426.py @@ -9,31 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrganizationSimpleWebhooksType(TypedDict): - """Organization Simple +class EnterpriseWebhooksType(TypedDict): + """Enterprise - 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. + 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)." """ - login: str + description: NotRequired[Union[str, None]] + html_url: str + website_url: NotRequired[Union[str, None]] 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 + name: str + slug: str + created_at: Union[datetime, None] + updated_at: Union[datetime, None] avatar_url: str - description: Union[str, None] -__all__ = ("OrganizationSimpleWebhooksType",) +__all__ = ("EnterpriseWebhooksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0427.py b/githubkit/versions/v2022_11_28/types/group_0427.py index 5ba060a68..bbc5a360f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0427.py +++ b/githubkit/versions/v2022_11_28/types/group_0427.py @@ -9,281 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType +class SimpleInstallationType(TypedDict): + """Simple Installation -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. + 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)." """ 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] -__all__ = ( - "RepositoryWebhooksPropCustomPropertiesType", - "RepositoryWebhooksPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", - "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryType", - "RepositoryWebhooksType", -) +__all__ = ("SimpleInstallationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0428.py b/githubkit/versions/v2022_11_28/types/group_0428.py index fcc7b35f5..b52264ecb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0428.py +++ b/githubkit/versions/v2022_11_28/types/group_0428.py @@ -9,52 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class WebhooksRuleType(TypedDict): - """branch protection rule +class OrganizationSimpleWebhooksType(TypedDict): + """Organization Simple - 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. + 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. """ - 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 + login: str 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",) + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + + +__all__ = ("OrganizationSimpleWebhooksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0429.py b/githubkit/versions/v2022_11_28/types/group_0429.py index f28d77e75..5ba060a68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0429.py +++ b/githubkit/versions/v2022_11_28/types/group_0429.py @@ -10,51 +10,280 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0010 import IntegrationType -from .group_0061 import MinimalRepositoryType -from .group_0208 import PullRequestMinimalType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite +class RepositoryWebhooksType(TypedDict): + """Repository - A suite of checks performed on the code of a given code change + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. """ - 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", - ], - ] + 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] ] - created_at: NotRequired[datetime] - head_branch: NotRequired[Union[str, None]] - head_sha: NotRequired[str] + 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] - pull_requests: NotRequired[list[PullRequestMinimalType]] - repository: NotRequired[MinimalRepositoryType] - status: NotRequired[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] + 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"] ] - updated_at: NotRequired[datetime] + 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__ = ("SimpleCheckSuiteType",) +__all__ = ( + "RepositoryWebhooksPropCustomPropertiesType", + "RepositoryWebhooksPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", + "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryType", + "RepositoryWebhooksType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0430.py b/githubkit/versions/v2022_11_28/types/group_0430.py index d00b4e44e..fcc7b35f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0430.py +++ b/githubkit/versions/v2022_11_28/types/group_0430.py @@ -10,66 +10,51 @@ 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_0010 import IntegrationType -from .group_0208 import PullRequestMinimalType -from .group_0235 import DeploymentSimpleType -from .group_0429 import SimpleCheckSuiteType +class WebhooksRuleType(TypedDict): + """branch protection rule -class CheckRunWithSimpleCheckSuiteType(TypedDict): - """CheckRun - - A check performed on the code of a given code change + 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. """ - app: Union[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 + 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 - 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", -) + 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_0431.py b/githubkit/versions/v2022_11_28/types/group_0431.py index 6420e5dfa..24dd1429d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0431.py +++ b/githubkit/versions/v2022_11_28/types/group_0431.py @@ -9,27 +9,52 @@ 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_0010 import IntegrationType +from .group_0063 import MinimalRepositoryType +from .group_0210 import PullRequestMinimalType -class WebhooksDeployKeyType(TypedDict): - """WebhooksDeployKey - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. - """ - - 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] +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite + A suite of checks performed on the code of a given code change + """ -__all__ = ("WebhooksDeployKeyType",) + after: NotRequired[Union[str, None]] + app: NotRequired[Union[IntegrationType, None]] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + pull_requests: NotRequired[list[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] + url: NotRequired[str] + + +__all__ = ("SimpleCheckSuiteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0432.py b/githubkit/versions/v2022_11_28/types/group_0432.py index 34eb3310b..b4d415d48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0432.py +++ b/githubkit/versions/v2022_11_28/types/group_0432.py @@ -10,22 +10,66 @@ 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_0010 import IntegrationType +from .group_0210 import PullRequestMinimalType +from .group_0237 import DeploymentSimpleType +from .group_0431 import SimpleCheckSuiteType -class WebhooksWorkflowType(TypedDict): - """Workflow""" - badge_url: str - created_at: datetime +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[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 - path: str - state: str - updated_at: datetime + output: CheckRunWithSimpleCheckSuitePropOutputType + pull_requests: list[PullRequestMinimalType] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "pending"] url: str -__all__ = ("WebhooksWorkflowType",) +class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int + annotations_url: str + summary: Union[str, None] + text: Union[str, None] + title: Union[str, None] + + +__all__ = ( + "CheckRunWithSimpleCheckSuitePropOutputType", + "CheckRunWithSimpleCheckSuiteType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0433.py b/githubkit/versions/v2022_11_28/types/group_0433.py index c93e49162..6420e5dfa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0433.py +++ b/githubkit/versions/v2022_11_28/types/group_0433.py @@ -9,69 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksApproverType(TypedDict): - """WebhooksApprover""" +class WebhooksDeployKeyType(TypedDict): + """WebhooksDeployKey - 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] + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ - -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] + added_by: NotRequired[Union[str, None]] + created_at: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str + url: str + verified: bool + enabled: NotRequired[bool] -__all__ = ( - "WebhooksApproverType", - "WebhooksReviewersItemsPropReviewerType", - "WebhooksReviewersItemsType", -) +__all__ = ("WebhooksDeployKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0434.py b/githubkit/versions/v2022_11_28/types/group_0434.py index 167cc5522..34eb3310b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0434.py +++ b/githubkit/versions/v2022_11_28/types/group_0434.py @@ -9,20 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class WebhooksWorkflowJobRunType(TypedDict): - """WebhooksWorkflowJobRun""" +class WebhooksWorkflowType(TypedDict): + """Workflow""" - conclusion: None - created_at: str - environment: str + badge_url: str + created_at: datetime html_url: str id: int - name: None - status: str - updated_at: str + name: str + node_id: str + path: str + state: str + updated_at: datetime + url: str -__all__ = ("WebhooksWorkflowJobRunType",) +__all__ = ("WebhooksWorkflowType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0435.py b/githubkit/versions/v2022_11_28/types/group_0435.py index da4062d95..c93e49162 100644 --- a/githubkit/versions/v2022_11_28/types/group_0435.py +++ b/githubkit/versions/v2022_11_28/types/group_0435.py @@ -13,7 +13,38 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksUserType(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] @@ -37,7 +68,10 @@ class WebhooksUserType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -__all__ = ("WebhooksUserType",) +__all__ = ( + "WebhooksApproverType", + "WebhooksReviewersItemsPropReviewerType", + "WebhooksReviewersItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0436.py b/githubkit/versions/v2022_11_28/types/group_0436.py index 32906747e..167cc5522 100644 --- a/githubkit/versions/v2022_11_28/types/group_0436.py +++ b/githubkit/versions/v2022_11_28/types/group_0436.py @@ -9,82 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksAnswerType(TypedDict): - """WebhooksAnswer""" +class WebhooksWorkflowJobRunType(TypedDict): + """WebhooksWorkflowJobRun""" - 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 + conclusion: None + created_at: str + environment: str html_url: str id: int - node_id: str - parent_id: None - reactions: NotRequired[WebhooksAnswerPropReactionsType] - repository_url: str - updated_at: datetime - user: Union[WebhooksAnswerPropUserType, None] + name: None + status: str + updated_at: str -class WebhooksAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksAnswerPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksAnswerPropReactionsType", - "WebhooksAnswerPropUserType", - "WebhooksAnswerType", -) +__all__ = ("WebhooksWorkflowJobRunType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0437.py b/githubkit/versions/v2022_11_28/types/group_0437.py index 48f1a497e..da4062d95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0437.py +++ b/githubkit/versions/v2022_11_28/types/group_0437.py @@ -9,125 +9,11 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class DiscussionType(TypedDict): - """Discussion - - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] - answer_html_url: Union[str, None] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - category: DiscussionPropCategoryType - comments: int - 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 LabelType(TypedDict): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ - - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool - - -class DiscussionPropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class DiscussionPropCategoryType(TypedDict): - """DiscussionPropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str - - -class DiscussionPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class DiscussionPropUserType(TypedDict): +class WebhooksUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -154,11 +40,4 @@ class DiscussionPropUserType(TypedDict): user_view_type: NotRequired[str] -__all__ = ( - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", - "DiscussionType", - "LabelType", -) +__all__ = ("WebhooksUserType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0438.py b/githubkit/versions/v2022_11_28/types/group_0438.py index 4c279958b..32906747e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0438.py +++ b/githubkit/versions/v2022_11_28/types/group_0438.py @@ -9,12 +9,13 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksCommentType(TypedDict): - """WebhooksComment""" +class WebhooksAnswerType(TypedDict): + """WebhooksAnswer""" author_association: Literal[ "COLLABORATOR", @@ -28,19 +29,19 @@ class WebhooksCommentType(TypedDict): ] body: str child_comment_count: int - created_at: str + created_at: datetime discussion_id: int html_url: str id: int node_id: str - parent_id: Union[int, None] - reactions: WebhooksCommentPropReactionsType + parent_id: None + reactions: NotRequired[WebhooksAnswerPropReactionsType] repository_url: str - updated_at: str - user: Union[WebhooksCommentPropUserType, None] + updated_at: datetime + user: Union[WebhooksAnswerPropUserType, None] -class WebhooksCommentPropReactionsType(TypedDict): +class WebhooksAnswerPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -55,7 +56,7 @@ class WebhooksCommentPropReactionsType(TypedDict): url: str -class WebhooksCommentPropUserType(TypedDict): +class WebhooksAnswerPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -83,7 +84,7 @@ class WebhooksCommentPropUserType(TypedDict): __all__ = ( - "WebhooksCommentPropReactionsType", - "WebhooksCommentPropUserType", - "WebhooksCommentType", + "WebhooksAnswerPropReactionsType", + "WebhooksAnswerPropUserType", + "WebhooksAnswerType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0439.py b/githubkit/versions/v2022_11_28/types/group_0439.py index 469b744f3..48f1a497e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0439.py +++ b/githubkit/versions/v2022_11_28/types/group_0439.py @@ -9,20 +9,156 @@ 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 -class WebhooksLabelType(TypedDict): - """Label""" +class DiscussionType(TypedDict): + """Discussion + A Discussion in a repository. + """ + + active_lock_reason: Union[str, None] + answer_chosen_at: Union[str, None] + answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] + answer_html_url: Union[str, None] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + category: DiscussionPropCategoryType + comments: int + 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 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 - description: Union[str, None] + + +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: 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 -__all__ = ("WebhooksLabelType",) +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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0440.py b/githubkit/versions/v2022_11_28/types/group_0440.py index 60f7cc9c6..4c279958b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0440.py +++ b/githubkit/versions/v2022_11_28/types/group_0440.py @@ -9,17 +9,81 @@ 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 WebhooksCommentType(TypedDict): + """WebhooksComment""" - full_name: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: str + discussion_id: int + html_url: str id: int - name: str node_id: str - private: bool + parent_id: Union[int, None] + reactions: WebhooksCommentPropReactionsType + repository_url: str + updated_at: str + user: Union[WebhooksCommentPropUserType, None] -__all__ = ("WebhooksRepositoriesItemsType",) +class WebhooksCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: 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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0441.py b/githubkit/versions/v2022_11_28/types/group_0441.py index afa5d37c4..469b744f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0441.py +++ b/githubkit/versions/v2022_11_28/types/group_0441.py @@ -9,17 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class WebhooksRepositoriesAddedItemsType(TypedDict): - """WebhooksRepositoriesAddedItems""" +class WebhooksLabelType(TypedDict): + """Label""" - full_name: str + color: str + default: bool + description: Union[str, None] id: int name: str node_id: str - private: bool + url: str -__all__ = ("WebhooksRepositoriesAddedItemsType",) +__all__ = ("WebhooksLabelType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0442.py b/githubkit/versions/v2022_11_28/types/group_0442.py index 62e701472..60f7cc9c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0442.py +++ b/githubkit/versions/v2022_11_28/types/group_0442.py @@ -9,87 +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_0010 import IntegrationType +class WebhooksRepositoriesItemsType(TypedDict): + """WebhooksRepositoriesItems""" -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 + full_name: str id: int - issue_url: str + name: str node_id: str - performed_via_github_app: Union[IntegrationType, None] - reactions: WebhooksIssueCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhooksIssueCommentPropUserType, None] - - -class WebhooksIssueCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssueCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + private: bool -__all__ = ( - "WebhooksIssueCommentPropReactionsType", - "WebhooksIssueCommentPropUserType", - "WebhooksIssueCommentType", -) +__all__ = ("WebhooksRepositoriesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0443.py b/githubkit/versions/v2022_11_28/types/group_0443.py index dea7603b6..afa5d37c4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0443.py +++ b/githubkit/versions/v2022_11_28/types/group_0443.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksChangesType(TypedDict): - """WebhooksChanges +class WebhooksRepositoriesAddedItemsType(TypedDict): + """WebhooksRepositoriesAddedItems""" - The changes to the comment. - """ + full_name: str + id: int + name: str + node_id: str + private: bool - body: NotRequired[WebhooksChangesPropBodyType] - -class WebhooksChangesPropBodyType(TypedDict): - """WebhooksChangesPropBody""" - - from_: str - - -__all__ = ( - "WebhooksChangesPropBodyType", - "WebhooksChangesType", -) +__all__ = ("WebhooksRepositoriesAddedItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0444.py b/githubkit/versions/v2022_11_28/types/group_0444.py index 24fc4cdf4..62e701472 100644 --- a/githubkit/versions/v2022_11_28/types/group_0444.py +++ b/githubkit/versions/v2022_11_28/types/group_0444.py @@ -13,20 +13,16 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0010 import IntegrationType -class WebhooksIssueType(TypedDict): - """Issue +class WebhooksIssueCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + 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", @@ -37,259 +33,20 @@ 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 - html_url: str - id: int - labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssuePropPullRequestType] - reactions: WebhooksIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhooksIssuePropUserType, None] - - -class WebhooksIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int + body: str created_at: datetime - creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] html_url: str id: int - labels_url: str + issue_url: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str + performed_via_github_app: Union[IntegrationType, None] + reactions: WebhooksIssueCommentPropReactionsType updated_at: datetime url: str + user: Union[WebhooksIssueCommentPropUserType, 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 WebhooksIssueCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -304,15 +61,7 @@ class WebhooksIssuePropReactionsType(TypedDict): url: str -class WebhooksIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssuePropUserType(TypedDict): +class WebhooksIssueCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -340,17 +89,7 @@ class WebhooksIssuePropUserType(TypedDict): __all__ = ( - "WebhooksIssuePropAssigneeType", - "WebhooksIssuePropAssigneesItemsType", - "WebhooksIssuePropLabelsItemsType", - "WebhooksIssuePropMilestonePropCreatorType", - "WebhooksIssuePropMilestoneType", - "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", - "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssuePropPerformedViaGithubAppType", - "WebhooksIssuePropPullRequestType", - "WebhooksIssuePropReactionsType", - "WebhooksIssuePropSubIssuesSummaryType", - "WebhooksIssuePropUserType", - "WebhooksIssueType", + "WebhooksIssueCommentPropReactionsType", + "WebhooksIssueCommentPropUserType", + "WebhooksIssueCommentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0445.py b/githubkit/versions/v2022_11_28/types/group_0445.py index 78c0b9fb1..dea7603b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0445.py +++ b/githubkit/versions/v2022_11_28/types/group_0445.py @@ -9,63 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksMilestoneType(TypedDict): - """Milestone +class WebhooksChangesType(TypedDict): + """WebhooksChanges - A collection of related issues and pull requests. + The changes to the comment. """ - 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 + body: NotRequired[WebhooksChangesPropBodyType] -class WebhooksMilestonePropCreatorType(TypedDict): - """User""" +class WebhooksChangesPropBodyType(TypedDict): + """WebhooksChangesPropBody""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: str __all__ = ( - "WebhooksMilestonePropCreatorType", - "WebhooksMilestoneType", + "WebhooksChangesPropBodyType", + "WebhooksChangesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0446.py b/githubkit/versions/v2022_11_28/types/group_0446.py index 74a5b7c18..7f05b3fed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0446.py +++ b/githubkit/versions/v2022_11_28/types/group_0446.py @@ -13,10 +13,11 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhooksIssue2Type(TypedDict): +class WebhooksIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -25,8 +26,8 @@ class WebhooksIssue2Type(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] - assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] + assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -46,19 +47,19 @@ class WebhooksIssue2Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] + labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhooksIssue2PropMilestoneType, None] + milestone: Union[WebhooksIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhooksIssue2PropPerformedViaGithubAppType, None] + Union[WebhooksIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhooksIssue2PropPullRequestType] - reactions: WebhooksIssue2PropReactionsType + pull_request: NotRequired[WebhooksIssuePropPullRequestType] + reactions: WebhooksIssuePropReactionsType repository_url: str - sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] + sub_issues_summary: NotRequired[SubIssuesSummaryType] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] @@ -66,10 +67,10 @@ class WebhooksIssue2Type(TypedDict): type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: Union[WebhooksIssue2PropUserType, None] + user: Union[WebhooksIssuePropUserType, None] -class WebhooksIssue2PropAssigneeType(TypedDict): +class WebhooksIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -91,12 +92,12 @@ class WebhooksIssue2PropAssigneeType(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 WebhooksIssue2PropAssigneesItemsType(TypedDict): +class WebhooksIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -118,12 +119,12 @@ class WebhooksIssue2PropAssigneesItemsType(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 WebhooksIssue2PropLabelsItemsType(TypedDict): +class WebhooksIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -135,7 +136,7 @@ class WebhooksIssue2PropLabelsItemsType(TypedDict): url: str -class WebhooksIssue2PropMilestoneType(TypedDict): +class WebhooksIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -144,7 +145,7 @@ class WebhooksIssue2PropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] + creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -159,7 +160,7 @@ class WebhooksIssue2PropMilestoneType(TypedDict): url: str -class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): +class WebhooksIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -181,12 +182,12 @@ class WebhooksIssue2PropMilestonePropCreatorType(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 WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): +class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -203,13 +204,13 @@ class actors within GitHub. id: Union[int, None] name: str node_id: str - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -236,8 +237,8 @@ class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions +class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -259,7 +260,7 @@ class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): 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"]] @@ -279,8 +280,8 @@ class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): workflows: NotRequired[Literal["read", "write"]] -class WebhooksIssue2PropPullRequestType(TypedDict): - """WebhooksIssue2PropPullRequest""" +class WebhooksIssuePropPullRequestType(TypedDict): + """WebhooksIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -289,7 +290,7 @@ class WebhooksIssue2PropPullRequestType(TypedDict): url: NotRequired[str] -class WebhooksIssue2PropReactionsType(TypedDict): +class WebhooksIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -304,15 +305,7 @@ class WebhooksIssue2PropReactionsType(TypedDict): url: str -class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssue2PropUserType(TypedDict): +class WebhooksIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -334,23 +327,22 @@ class WebhooksIssue2PropUserType(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__ = ( - "WebhooksIssue2PropAssigneeType", - "WebhooksIssue2PropAssigneesItemsType", - "WebhooksIssue2PropLabelsItemsType", - "WebhooksIssue2PropMilestonePropCreatorType", - "WebhooksIssue2PropMilestoneType", - "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssue2PropPerformedViaGithubAppType", - "WebhooksIssue2PropPullRequestType", - "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropSubIssuesSummaryType", - "WebhooksIssue2PropUserType", - "WebhooksIssue2Type", + "WebhooksIssuePropAssigneeType", + "WebhooksIssuePropAssigneesItemsType", + "WebhooksIssuePropLabelsItemsType", + "WebhooksIssuePropMilestonePropCreatorType", + "WebhooksIssuePropMilestoneType", + "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", + "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssuePropPerformedViaGithubAppType", + "WebhooksIssuePropPullRequestType", + "WebhooksIssuePropReactionsType", + "WebhooksIssuePropUserType", + "WebhooksIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0447.py b/githubkit/versions/v2022_11_28/types/group_0447.py index 12263b7bb..78c0b9fb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0447.py +++ b/githubkit/versions/v2022_11_28/types/group_0447.py @@ -9,11 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksUserMannequinType(TypedDict): +class WebhooksMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + 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] @@ -40,4 +65,7 @@ class WebhooksUserMannequinType(TypedDict): user_view_type: NotRequired[str] -__all__ = ("WebhooksUserMannequinType",) +__all__ = ( + "WebhooksMilestonePropCreatorType", + "WebhooksMilestoneType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0448.py b/githubkit/versions/v2022_11_28/types/group_0448.py index 442613e28..614df6e28 100644 --- a/githubkit/versions/v2022_11_28/types/group_0448.py +++ b/githubkit/versions/v2022_11_28/types/group_0448.py @@ -9,48 +9,340 @@ 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_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -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 WebhooksIssue2Type(TypedDict): + """Issue + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ -class WebhooksMarketplacePurchasePropAccountType(TypedDict): - """WebhooksMarketplacePurchasePropAccount""" + 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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhooksIssue2PropUserType, None] + + +class WebhooksIssue2PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str node_id: str - organization_billing_email: Union[str, None] - type: str + url: str + +class WebhooksIssue2PropMilestoneType(TypedDict): + """Milestone -class WebhooksMarketplacePurchasePropPlanType(TypedDict): - """WebhooksMarketplacePurchasePropPlan""" + A collection of related issues and pull requests. + """ - bullets: list[Union[str, None]] - description: str - has_free_trial: bool + 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 - monthly_price_in_cents: 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 - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + 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 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__ = ( - "WebhooksMarketplacePurchasePropAccountType", - "WebhooksMarketplacePurchasePropPlanType", - "WebhooksMarketplacePurchaseType", + "WebhooksIssue2PropAssigneeType", + "WebhooksIssue2PropAssigneesItemsType", + "WebhooksIssue2PropLabelsItemsType", + "WebhooksIssue2PropMilestonePropCreatorType", + "WebhooksIssue2PropMilestoneType", + "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssue2PropPerformedViaGithubAppType", + "WebhooksIssue2PropPullRequestType", + "WebhooksIssue2PropReactionsType", + "WebhooksIssue2PropUserType", + "WebhooksIssue2Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0449.py b/githubkit/versions/v2022_11_28/types/group_0449.py index 38627d866..12263b7bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0449.py +++ b/githubkit/versions/v2022_11_28/types/group_0449.py @@ -13,44 +13,31 @@ 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""" - +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 login: 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 - 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__ = ( - "WebhooksPreviousMarketplacePurchasePropAccountType", - "WebhooksPreviousMarketplacePurchasePropPlanType", - "WebhooksPreviousMarketplacePurchaseType", -) + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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/v2022_11_28/types/group_0450.py b/githubkit/versions/v2022_11_28/types/group_0450.py index 1b0b6886a..442613e28 100644 --- a/githubkit/versions/v2022_11_28/types/group_0450.py +++ b/githubkit/versions/v2022_11_28/types/group_0450.py @@ -10,51 +10,47 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksTeamType(TypedDict): - """Team +class WebhooksMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - Groups of organization members that gives permissions on specified repositories. - """ + 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""" - 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 + 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 - members_url: str + monthly_price_in_cents: int 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 + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhooksTeamPropParentType", - "WebhooksTeamType", + "WebhooksMarketplacePurchasePropAccountType", + "WebhooksMarketplacePurchasePropPlanType", + "WebhooksMarketplacePurchaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0451.py b/githubkit/versions/v2022_11_28/types/group_0451.py index 72f46c7d3..38627d866 100644 --- a/githubkit/versions/v2022_11_28/types/group_0451.py +++ b/githubkit/versions/v2022_11_28/types/group_0451.py @@ -9,22 +9,48 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0209 import SimpleCommitType +class WebhooksPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" -class MergeGroupType(TypedDict): - """Merge Group + 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 - A group of pull requests that the merge queue has grouped together to be merged. - """ - head_sha: str - head_ref: str - base_sha: str - base_ref: str - head_commit: SimpleCommitType +class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropAccount""" + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str -__all__ = ("MergeGroupType",) + +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 + + +__all__ = ( + "WebhooksPreviousMarketplacePurchasePropAccountType", + "WebhooksPreviousMarketplacePurchasePropPlanType", + "WebhooksPreviousMarketplacePurchaseType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0452.py b/githubkit/versions/v2022_11_28/types/group_0452.py index 84341cab5..1b0b6886a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0452.py +++ b/githubkit/versions/v2022_11_28/types/group_0452.py @@ -9,63 +9,52 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksMilestone3Type(TypedDict): - """Milestone +class WebhooksTeamType(TypedDict): + """Team - A collection of related issues and pull requests. + Groups of organization members that gives permissions on specified repositories. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestone3PropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksMilestone3PropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: 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__ = ( - "WebhooksMilestone3PropCreatorType", - "WebhooksMilestone3Type", + "WebhooksTeamPropParentType", + "WebhooksTeamType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0453.py b/githubkit/versions/v2022_11_28/types/group_0453.py index 838f548fa..590f8951a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0453.py +++ b/githubkit/versions/v2022_11_28/types/group_0453.py @@ -9,52 +9,22 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0211 import SimpleCommitType -class WebhooksMembershipType(TypedDict): - """Membership - The membership between the user and the organization. Not present when the - action is `member_invited`. +class MergeGroupType(TypedDict): + """Merge Group + + A group of pull requests that the merge queue has grouped together to be merged. """ - organization_url: str - role: str - state: str - url: str - user: Union[WebhooksMembershipPropUserType, None] - - -class WebhooksMembershipPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksMembershipPropUserType", - "WebhooksMembershipType", -) + 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_0454.py b/githubkit/versions/v2022_11_28/types/group_0454.py index 8767f4c9e..84341cab5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0454.py +++ b/githubkit/versions/v2022_11_28/types/group_0454.py @@ -9,163 +9,63 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksMilestone3Type(TypedDict): + """Milestone -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request - - Details of a Personal Access Token Request. + 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 - 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 + labels_url: 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 -""" + number: int + 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__ = ( - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestType", + "WebhooksMilestone3PropCreatorType", + "WebhooksMilestone3Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0455.py b/githubkit/versions/v2022_11_28/types/group_0455.py index 15e68c071..03d84e2f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0455.py +++ b/githubkit/versions/v2022_11_28/types/group_0455.py @@ -9,30 +9,27 @@ 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 WebhooksMembershipType(TypedDict): + """Membership - 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 + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str + role: str + direct_membership: NotRequired[bool] + enterprise_teams_providing_indirect_membership: NotRequired[list[str]] + state: str url: str + user: Union[WebhooksMembershipPropUserType, None] -class WebhooksProjectCardPropCreatorType(TypedDict): +class WebhooksMembershipPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -60,6 +57,6 @@ class WebhooksProjectCardPropCreatorType(TypedDict): __all__ = ( - "WebhooksProjectCardPropCreatorType", - "WebhooksProjectCardType", + "WebhooksMembershipPropUserType", + "WebhooksMembershipType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0456.py b/githubkit/versions/v2022_11_28/types/group_0456.py index f00c9358c..8767f4c9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0456.py +++ b/githubkit/versions/v2022_11_28/types/group_0456.py @@ -9,57 +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_0003 import SimpleUserType -class WebhooksProjectType(TypedDict): - """Project""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhooksProjectPropCreatorType, None] - html_url: str +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request + + Details of a Personal Access Token Request. + """ + + 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 - 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] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: 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 + + +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__ = ( - "WebhooksProjectPropCreatorType", - "WebhooksProjectType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsAddedType", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", + "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsResultType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsUpgradedType", + "PersonalAccessTokenRequestPropRepositoriesItemsType", + "PersonalAccessTokenRequestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0457.py b/githubkit/versions/v2022_11_28/types/group_0457.py index 3c545b05d..15e68c071 100644 --- a/githubkit/versions/v2022_11_28/types/group_0457.py +++ b/githubkit/versions/v2022_11_28/types/group_0457.py @@ -10,22 +10,56 @@ 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 WebhooksProjectCardType(TypedDict): + """Project Card""" after_id: NotRequired[Union[int, None]] - cards_url: str + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] created_at: datetime + creator: Union[WebhooksProjectCardPropCreatorType, None] id: int - name: str node_id: str + note: Union[str, None] project_url: str updated_at: datetime url: str -__all__ = ("WebhooksProjectColumnType",) +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__ = ( + "WebhooksProjectCardPropCreatorType", + "WebhooksProjectCardType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0458.py b/githubkit/versions/v2022_11_28/types/group_0458.py index 61f9ee87b..f00c9358c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0458.py +++ b/githubkit/versions/v2022_11_28/types/group_0458.py @@ -10,32 +10,56 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksProjectType(TypedDict): + """Project""" -class ProjectsV2Type(TypedDict): - """Projects v2 Project - - A projects v2 project - """ - - id: float - node_id: str - owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool - closed_at: Union[datetime, None] + body: Union[str, None] + columns_url: str created_at: datetime - updated_at: datetime + creator: Union[WebhooksProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] + 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] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: 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__ = ( + "WebhooksProjectPropCreatorType", + "WebhooksProjectType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0459.py b/githubkit/versions/v2022_11_28/types/group_0459.py index d31a72cb2..3c545b05d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0459.py +++ b/githubkit/versions/v2022_11_28/types/group_0459.py @@ -14,20 +14,18 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksProjectChangesType(TypedDict): - """WebhooksProjectChanges""" +class WebhooksProjectColumnType(TypedDict): + """Project Column""" - archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] + 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 WebhooksProjectChangesPropArchivedAtType(TypedDict): - """WebhooksProjectChangesPropArchivedAt""" - - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] - - -__all__ = ( - "WebhooksProjectChangesPropArchivedAtType", - "WebhooksProjectChangesType", -) +__all__ = ("WebhooksProjectColumnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0460.py b/githubkit/versions/v2022_11_28/types/group_0460.py index 11c42252b..61f9ee87b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0460.py +++ b/githubkit/versions/v2022_11_28/types/group_0460.py @@ -10,27 +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 ProjectsV2ItemType(TypedDict): - """Projects v2 Item +class ProjectsV2Type(TypedDict): + """Projects v2 Project - An item belonging to a project + A projects v2 project """ id: float - node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] + 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 - archived_at: Union[datetime, None] + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] -__all__ = ("ProjectsV2ItemType",) +__all__ = ("ProjectsV2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0461.py b/githubkit/versions/v2022_11_28/types/group_0461.py index 07d3ae203..d31a72cb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0461.py +++ b/githubkit/versions/v2022_11_28/types/group_0461.py @@ -9,31 +9,25 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksProjectChangesType(TypedDict): + """WebhooksProjectChanges""" -class ProjectsV2StatusUpdateType(TypedDict): - """Projects v2 Status Update + archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] - An status update belonging to a project - """ - id: float - 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"]] - ] - start_date: NotRequired[date] - target_date: NotRequired[date] - body: NotRequired[Union[str, None]] +class WebhooksProjectChangesPropArchivedAtType(TypedDict): + """WebhooksProjectChangesPropArchivedAt""" + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] -__all__ = ("ProjectsV2StatusUpdateType",) + +__all__ = ( + "WebhooksProjectChangesPropArchivedAtType", + "WebhooksProjectChangesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0462.py b/githubkit/versions/v2022_11_28/types/group_0462.py index 429ba7713..11c42252b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0462.py +++ b/githubkit/versions/v2022_11_28/types/group_0462.py @@ -14,84 +14,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0042 import MilestoneType -from .group_0083 import TeamSimpleType -from .group_0267 import AutoMergeType -from .group_0347 import PullRequestPropLabelsItemsType -from .group_0348 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0349 import PullRequestPropLinksType -class PullRequestWebhookType(TypedDict): - """PullRequestWebhook""" +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item - 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]] + An item belonging to a project + """ + + 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 - 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] + archived_at: Union[datetime, None] -__all__ = ("PullRequestWebhookType",) +__all__ = ("ProjectsV2ItemType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0463.py b/githubkit/versions/v2022_11_28/types/group_0463.py index 85163bcaa..07d3ae203 100644 --- a/githubkit/versions/v2022_11_28/types/group_0463.py +++ b/githubkit/versions/v2022_11_28/types/group_0463.py @@ -9,23 +9,31 @@ from __future__ import annotations -from typing import Literal +from datetime import date, datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class PullRequestWebhookAllof1Type(TypedDict): - """PullRequestWebhookAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +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] + created_at: datetime + updated_at: datetime + status: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + start_date: NotRequired[date] + target_date: NotRequired[date] + body: NotRequired[Union[str, None]] -__all__ = ("PullRequestWebhookAllof1Type",) +__all__ = ("ProjectsV2StatusUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0464.py b/githubkit/versions/v2022_11_28/types/group_0464.py index 9c89f8ed7..5621c528a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0464.py +++ b/githubkit/versions/v2022_11_28/types/group_0464.py @@ -13,17 +13,51 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0043 import MilestoneType +from .group_0085 import TeamSimpleType +from .group_0269 import AutoMergeType +from .group_0349 import PullRequestPropLabelsItemsType +from .group_0350 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0351 import PullRequestPropLinksType -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]] +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" + + 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", @@ -34,845 +68,30 @@ class WebhooksPullRequest5Type(TypedDict): "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 + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] 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 - """ - + 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_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", -) +__all__ = ("PullRequestWebhookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0465.py b/githubkit/versions/v2022_11_28/types/group_0465.py index fc62f86f0..85163bcaa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0465.py +++ b/githubkit/versions/v2022_11_28/types/group_0465.py @@ -9,130 +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 WebhooksReviewCommentType(TypedDict): - """Pull Request Review Comment +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhooksReviewCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + 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"] ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhooksReviewCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhooksReviewCommentPropUserType, None] - - -class WebhooksReviewCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReviewCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewCommentPropLinksType(TypedDict): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtmlType - pull_request: WebhooksReviewCommentPropLinksPropPullRequestType - self_: WebhooksReviewCommentPropLinksPropSelfType - - -class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] -__all__ = ( - "WebhooksReviewCommentPropLinksPropHtmlType", - "WebhooksReviewCommentPropLinksPropPullRequestType", - "WebhooksReviewCommentPropLinksPropSelfType", - "WebhooksReviewCommentPropLinksType", - "WebhooksReviewCommentPropReactionsType", - "WebhooksReviewCommentPropUserType", - "WebhooksReviewCommentType", -) +__all__ = ("PullRequestWebhookAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0466.py b/githubkit/versions/v2022_11_28/types/group_0466.py index 0d56edfb2..9c89f8ed7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0466.py +++ b/githubkit/versions/v2022_11_28/types/group_0466.py @@ -14,13 +14,16 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksReviewType(TypedDict): - """WebhooksReview +class WebhooksPullRequest5Type(TypedDict): + """Pull Request""" - The review that was affected. - """ - - links: WebhooksReviewPropLinksType + 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", @@ -31,18 +34,122 @@ class WebhooksReviewType(TypedDict): "NONE", "OWNER", ] + auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] + base: WebhooksPullRequest5PropBaseType body: Union[str, None] - commit_id: str + 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 - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhooksReviewPropUserType, None] + 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 WebhooksReviewPropUserType(TypedDict): +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] @@ -69,29 +176,703 @@ class WebhooksReviewPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhooksReviewPropLinksType(TypedDict): - """WebhooksReviewPropLinks""" +class WebhooksPullRequest5PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + - html: WebhooksReviewPropLinksPropHtmlType - pull_request: WebhooksReviewPropLinksPropPullRequestType +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""" -class WebhooksReviewPropLinksPropHtmlType(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 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 WebhooksReviewPropLinksPropPullRequestType(TypedDict): +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__ = ( - "WebhooksReviewPropLinksPropHtmlType", - "WebhooksReviewPropLinksPropPullRequestType", - "WebhooksReviewPropLinksType", - "WebhooksReviewPropUserType", - "WebhooksReviewType", + "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_0467.py b/githubkit/versions/v2022_11_28/types/group_0467.py index 6fe43b148..fc62f86f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0467.py +++ b/githubkit/versions/v2022_11_28/types/group_0467.py @@ -14,63 +14,52 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksReleaseType(TypedDict): - """Release +class WebhooksReviewCommentType(TypedDict): + """Pull Request Review Comment - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ - 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 + 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 - name: Union[str, None] + in_reply_to_id: NotRequired[int] + line: Union[int, 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 + 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 - zipball_url: Union[str, None] + user: Union[WebhooksReviewCommentPropUserType, 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): +class WebhooksReviewCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -85,29 +74,7 @@ class WebhooksReleasePropReactionsType(TypedDict): url: str -class WebhooksReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - digest: Union[str, None] - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): +class WebhooksReviewCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,12 +98,41 @@ class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReviewCommentPropLinksType(TypedDict): + """WebhooksReviewCommentPropLinks""" + + html: WebhooksReviewCommentPropLinksPropHtmlType + pull_request: WebhooksReviewCommentPropLinksPropPullRequestType + self_: WebhooksReviewCommentPropLinksPropSelfType + + +class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str __all__ = ( - "WebhooksReleasePropAssetsItemsPropUploaderType", - "WebhooksReleasePropAssetsItemsType", - "WebhooksReleasePropAuthorType", - "WebhooksReleasePropReactionsType", - "WebhooksReleaseType", + "WebhooksReviewCommentPropLinksPropHtmlType", + "WebhooksReviewCommentPropLinksPropPullRequestType", + "WebhooksReviewCommentPropLinksPropSelfType", + "WebhooksReviewCommentPropLinksType", + "WebhooksReviewCommentPropReactionsType", + "WebhooksReviewCommentPropUserType", + "WebhooksReviewCommentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0468.py b/githubkit/versions/v2022_11_28/types/group_0468.py index bad691891..0d56edfb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0468.py +++ b/githubkit/versions/v2022_11_28/types/group_0468.py @@ -14,58 +14,35 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksRelease1Type(TypedDict): - """Release +class WebhooksReviewType(TypedDict): + """WebhooksReview - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. + The review that was affected. """ - assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] - assets_url: str - author: Union[WebhooksRelease1PropAuthorType, None] + links: WebhooksReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + commit_id: str 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] + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhooksReviewPropUserType, 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 - digest: Union[str, None] - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): +class WebhooksReviewPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -89,54 +66,32 @@ class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksRelease1PropAuthorType(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 WebhooksReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str -class WebhooksRelease1PropReactionsType(TypedDict): - """Reactions""" +class WebhooksReviewPropLinksPropPullRequestType(TypedDict): + """Link""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + href: str __all__ = ( - "WebhooksRelease1PropAssetsItemsPropUploaderType", - "WebhooksRelease1PropAssetsItemsType", - "WebhooksRelease1PropAuthorType", - "WebhooksRelease1PropReactionsType", - "WebhooksRelease1Type", + "WebhooksReviewPropLinksPropHtmlType", + "WebhooksReviewPropLinksPropPullRequestType", + "WebhooksReviewPropLinksType", + "WebhooksReviewPropUserType", + "WebhooksReviewType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0469.py b/githubkit/versions/v2022_11_28/types/group_0469.py index 3401e5834..b7b641aba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0469.py +++ b/githubkit/versions/v2022_11_28/types/group_0469.py @@ -14,32 +14,101 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class WebhooksReleaseType(TypedDict): + """Release - The security alert of the vulnerable dependency. + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ - 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 + 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 + immutable: bool + name: Union[str, None] node_id: str - number: int - severity: str - state: Literal["open"] + 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 WebhooksAlertPropDismisserType(TypedDict): +class WebhooksReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -66,6 +135,9 @@ class WebhooksAlertPropDismisserType(TypedDict): __all__ = ( - "WebhooksAlertPropDismisserType", - "WebhooksAlertType", + "WebhooksReleasePropAssetsItemsPropUploaderType", + "WebhooksReleasePropAssetsItemsType", + "WebhooksReleasePropAuthorType", + "WebhooksReleasePropReactionsType", + "WebhooksReleaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0470.py b/githubkit/versions/v2022_11_28/types/group_0470.py index 60f295adf..cb422f709 100644 --- a/githubkit/versions/v2022_11_28/types/group_0470.py +++ b/githubkit/versions/v2022_11_28/types/group_0470.py @@ -13,46 +13,131 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksRelease1Type(TypedDict): + """Release -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] + 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 + immutable: bool + 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 + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + + +class WebhooksRelease1PropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - 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",) + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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/v2022_11_28/types/group_0471.py b/githubkit/versions/v2022_11_28/types/group_0471.py index dce9a1159..3401e5834 100644 --- a/githubkit/versions/v2022_11_28/types/group_0471.py +++ b/githubkit/versions/v2022_11_28/types/group_0471.py @@ -9,95 +9,63 @@ 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 WebhooksAlertType(TypedDict): + """Repository Vulnerability Alert Alert -class WebhooksSecurityAdvisoryType(TypedDict): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The security alert of the vulnerable dependency. """ - cvss: WebhooksSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] - description: str + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] ghsa_id: str - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] - published_at: str - references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] + id: int + node_id: str + number: int severity: str - summary: str - updated_at: str - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] - withdrawn_at: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCvssType(TypedDict): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -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 + 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__ = ( - "WebhooksSecurityAdvisoryPropCvssType", - "WebhooksSecurityAdvisoryPropCwesItemsType", - "WebhooksSecurityAdvisoryPropIdentifiersItemsType", - "WebhooksSecurityAdvisoryPropReferencesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhooksSecurityAdvisoryType", + "WebhooksAlertPropDismisserType", + "WebhooksAlertType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0472.py b/githubkit/versions/v2022_11_28/types/group_0472.py index 7dd35b2e2..60f295adf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0472.py +++ b/githubkit/versions/v2022_11_28/types/group_0472.py @@ -9,123 +9,50 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -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 SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" - -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] + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] 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", -) + 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_0473.py b/githubkit/versions/v2022_11_28/types/group_0473.py index bcc71503a..dce9a1159 100644 --- a/githubkit/versions/v2022_11_28/types/group_0473.py +++ b/githubkit/versions/v2022_11_28/types/group_0473.py @@ -9,42 +9,95 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0001 import CvssSeveritiesType -class WebhooksChanges8Type(TypedDict): - """WebhooksChanges8""" - tier: WebhooksChanges8PropTierType +class WebhooksSecurityAdvisoryType(TypedDict): + """WebhooksSecurityAdvisory + The details of the security advisory, including summary, description, and + severity. + """ -class WebhooksChanges8PropTierType(TypedDict): - """WebhooksChanges8PropTier""" + 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] - from_: WebhooksChanges8PropTierPropFromType +class WebhooksSecurityAdvisoryPropCvssType(TypedDict): + """WebhooksSecurityAdvisoryPropCvss""" -class WebhooksChanges8PropTierPropFromType(TypedDict): - """Sponsorship Tier + score: float + vector_string: Union[str, None] - 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 +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 - node_id: str __all__ = ( - "WebhooksChanges8PropTierPropFromType", - "WebhooksChanges8PropTierType", - "WebhooksChanges8Type", + "WebhooksSecurityAdvisoryPropCvssType", + "WebhooksSecurityAdvisoryPropCwesItemsType", + "WebhooksSecurityAdvisoryPropIdentifiersItemsType", + "WebhooksSecurityAdvisoryPropReferencesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhooksSecurityAdvisoryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0474.py b/githubkit/versions/v2022_11_28/types/group_0474.py index 108b60484..7dd35b2e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0474.py +++ b/githubkit/versions/v2022_11_28/types/group_0474.py @@ -13,48 +13,119 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksTeam1Type(TypedDict): - """Team +class WebhooksSponsorshipType(TypedDict): + """WebhooksSponsorship""" - Groups of organization members that gives permissions on specified repositories. - """ + 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] - 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 WebhooksSponsorshipPropSponsorableType(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 + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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 - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str __all__ = ( - "WebhooksTeam1PropParentType", - "WebhooksTeam1Type", + "WebhooksSponsorshipPropMaintainerType", + "WebhooksSponsorshipPropSponsorType", + "WebhooksSponsorshipPropSponsorableType", + "WebhooksSponsorshipPropTierType", + "WebhooksSponsorshipType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0475.py b/githubkit/versions/v2022_11_28/types/group_0475.py index 592b28a8f..bcc71503a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0475.py +++ b/githubkit/versions/v2022_11_28/types/group_0475.py @@ -9,25 +9,42 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +class WebhooksChanges8Type(TypedDict): + """WebhooksChanges8""" -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" + tier: WebhooksChanges8PropTierType - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhooksChanges8PropTierType(TypedDict): + """WebhooksChanges8PropTier""" -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) + from_: WebhooksChanges8PropTierPropFromType + + +class WebhooksChanges8PropTierPropFromType(TypedDict): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str + + +__all__ = ( + "WebhooksChanges8PropTierPropFromType", + "WebhooksChanges8PropTierType", + "WebhooksChanges8Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0476.py b/githubkit/versions/v2022_11_28/types/group_0476.py index 4775b28a5..108b60484 100644 --- a/githubkit/versions/v2022_11_28/types/group_0476.py +++ b/githubkit/versions/v2022_11_28/types/group_0476.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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 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",) +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_0477.py b/githubkit/versions/v2022_11_28/types/group_0477.py index f8db52728..b7b732dc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0477.py +++ b/githubkit/versions/v2022_11_28/types/group_0477.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0428 import WebhooksRuleType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule 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: RepositoryWebhooksType - rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookBranchProtectionRuleCreatedType",) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0478.py b/githubkit/versions/v2022_11_28/types/group_0478.py index d012ee49d..866769409 100644 --- a/githubkit/versions/v2022_11_28/types/group_0478.py +++ b/githubkit/versions/v2022_11_28/types/group_0478.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0428 import WebhooksRuleType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - action: Literal["deleted"] + action: Literal["enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookBranchProtectionRuleDeletedType",) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0479.py b/githubkit/versions/v2022_11_28/types/group_0479.py index 8e1527d8c..b2ca61a7d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0479.py +++ b/githubkit/versions/v2022_11_28/types/group_0479.py @@ -9,22 +9,21 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0428 import WebhooksRuleType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0430 import WebhooksRuleType -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,149 +32,4 @@ class WebhookBranchProtectionRuleEditedType(TypedDict): 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 - """ - - from_: Literal["off", "non_admins", "everyone"] - - -__all__ = ( - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedType", -) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0480.py b/githubkit/versions/v2022_11_28/types/group_0480.py index 18485e62a..af77f5d67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0480.py +++ b/githubkit/versions/v2022_11_28/types/group_0480.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0430 import CheckRunWithSimpleCheckSuiteType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0430 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/v2022_11_28/types/group_0481.py b/githubkit/versions/v2022_11_28/types/group_0481.py index 831afd105..7664ee1c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0481.py +++ b/githubkit/versions/v2022_11_28/types/group_0481.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_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0430 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/v2022_11_28/types/group_0482.py b/githubkit/versions/v2022_11_28/types/group_0482.py index 2e5afed07..01f35d628 100644 --- a/githubkit/versions/v2022_11_28/types/group_0482.py +++ b/githubkit/versions/v2022_11_28/types/group_0482.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0430 import CheckRunWithSimpleCheckSuiteType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0432 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - action: Literal["created"] + action: Literal["completed"] check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookCheckRunCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedType",) +__all__ = ("WebhookCheckRunCompletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0483.py b/githubkit/versions/v2022_11_28/types/group_0483.py index 090ccf388..831afd105 100644 --- a/githubkit/versions/v2022_11_28/types/group_0483.py +++ b/githubkit/versions/v2022_11_28/types/group_0483.py @@ -12,13 +12,13 @@ from typing_extensions import TypedDict -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event - The check_run.created webhook encoded with URL encoding + The check_run.completed webhook encoded with URL encoding """ payload: str -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0484.py b/githubkit/versions/v2022_11_28/types/group_0484.py index ae421659e..01135fb5b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0484.py +++ b/githubkit/versions/v2022_11_28/types/group_0484.py @@ -13,34 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0430 import CheckRunWithSimpleCheckSuiteType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0432 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - action: Literal["requested_action"] + action: Literal["created"] check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserType -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: NotRequired[str] - - -__all__ = ( - "WebhookCheckRunRequestedActionPropRequestedActionType", - "WebhookCheckRunRequestedActionType", -) +__all__ = ("WebhookCheckRunCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0485.py b/githubkit/versions/v2022_11_28/types/group_0485.py index 0d80e2c39..090ccf388 100644 --- a/githubkit/versions/v2022_11_28/types/group_0485.py +++ b/githubkit/versions/v2022_11_28/types/group_0485.py @@ -12,13 +12,13 @@ from typing_extensions import TypedDict -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event - The check_run.requested_action webhook encoded with URL encoding + The check_run.created webhook encoded with URL encoding """ payload: str -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0486.py b/githubkit/versions/v2022_11_28/types/group_0486.py index 695e2a799..eb705341a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0486.py +++ b/githubkit/versions/v2022_11_28/types/group_0486.py @@ -13,21 +13,34 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0430 import CheckRunWithSimpleCheckSuiteType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0432 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" - action: Literal["rerequested"] + action: Literal["requested_action"] check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserType -__all__ = ("WebhookCheckRunRerequestedType",) +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction + + The action requested by the user. + """ + + identifier: NotRequired[str] + + +__all__ = ( + "WebhookCheckRunRequestedActionPropRequestedActionType", + "WebhookCheckRunRequestedActionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0487.py b/githubkit/versions/v2022_11_28/types/group_0487.py index ef6a77599..0d80e2c39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0487.py +++ b/githubkit/versions/v2022_11_28/types/group_0487.py @@ -12,13 +12,13 @@ from typing_extensions import TypedDict -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event - The check_run.rerequested webhook encoded with URL encoding + The check_run.requested_action webhook encoded with URL encoding """ payload: str -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0488.py b/githubkit/versions/v2022_11_28/types/group_0488.py index 4198f17ba..314ef4a39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0488.py +++ b/githubkit/versions/v2022_11_28/types/group_0488.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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0432 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + 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__ = ("WebhookCheckRunRerequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0489.py b/githubkit/versions/v2022_11_28/types/group_0489.py index 77e520a79..ef6a77599 100644 --- a/githubkit/versions/v2022_11_28/types/group_0489.py +++ b/githubkit/versions/v2022_11_28/types/group_0489.py @@ -9,264 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested 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.rerequested 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__ = ("WebhookCheckRunRerequestedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0490.py b/githubkit/versions/v2022_11_28/types/group_0490.py index 8852c764b..a3530d52d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0490.py +++ b/githubkit/versions/v2022_11_28/types/group_0490.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,14 +32,14 @@ class WebhookCheckSuiteRerequestedType(TypedDict): sender: SimpleUserType -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite +class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuite The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ after: Union[str, None] - app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType before: Union[str, None] check_runs_url: str conclusion: Union[ @@ -52,26 +52,30 @@ class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): "timed_out", "action_required", "stale", + "skipped", + "startup_failure", ], ] created_at: datetime head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType head_sha: str id: int latest_check_runs_count: int node_id: str pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType ] rerequestable: NotRequired[bool] runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] updated_at: datetime url: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -89,15 +93,15 @@ class actors within GitHub. client_id: NotRequired[Union[str, None]] name: str node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -124,8 +128,8 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions The set of permissions for the GitHub app """ @@ -167,18 +171,18 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(Typed workflows: NotRequired[Literal["read", "write"]] -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): """SimpleCommit""" - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType id: str message: str timestamp: str tree_id: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): """Committer Metaproperties for Git author/committer information. @@ -190,7 +194,7 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(Typ username: NotRequired[str] -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): """Committer @@ -204,27 +208,27 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( username: NotRequired[str] -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): """Check Run Pull Request""" - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -234,17 +238,17 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePro url: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -255,17 +259,17 @@ class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPro __all__ = ( - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0491.py b/githubkit/versions/v2022_11_28/types/group_0491.py index 1c6447ec4..b8e2f4ca6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0491.py +++ b/githubkit/versions/v2022_11_28/types/group_0491.py @@ -14,57 +14,91 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - 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 WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +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). """ - created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + 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", + ], ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + 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 ] - 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[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - 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: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -91,72 +125,148 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(Typed user_view_type: NotRequired[str] -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( +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 ): - """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"] + """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""" -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ + """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 WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0492.py b/githubkit/versions/v2022_11_28/types/group_0492.py index e1843df37..1024ecaad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0492.py +++ b/githubkit/versions/v2022_11_28/types/group_0492.py @@ -14,63 +14,90 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - 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 WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert +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). """ - 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"] + 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", + ], ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] + 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 ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str - dismissal_approved_by: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, - None, - ] + + +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 WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -97,104 +124,148 @@ class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict 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 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 WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + 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 WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( TypedDict ): - """User""" + """Repo Ref""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + name: str + url: str __all__ = ( - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0493.py b/githubkit/versions/v2022_11_28/types/group_0493.py index c22251dd2..ee0d3716d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0493.py +++ b/githubkit/versions/v2022_11_28/types/group_0493.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,33 +34,66 @@ class WebhookCodeScanningAlertCreatedType(TypedDict): sender: SimpleUserType -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + ] dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] fixed_at: NotRequired[None] html_url: str - instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, + None, + ] ] number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed"]] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType url: str - dismissal_approved_by: NotRequired[None] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): +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 @@ -69,19 +102,21 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDi commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ end_column: NotRequired[int] end_line: NotRequired[int] @@ -90,41 +125,38 @@ class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation start_line: NotRequired[int] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: NotRequired[str] -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" 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""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - guid: NotRequired[Union[str, None]] name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0494.py b/githubkit/versions/v2022_11_28/types/group_0494.py index e937744c9..42e558568 100644 --- a/githubkit/versions/v2022_11_28/types/group_0494.py +++ b/githubkit/versions/v2022_11_28/types/group_0494.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,33 +34,43 @@ class WebhookCodeScanningAlertFixedType(TypedDict): sender: SimpleUserType -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert The code scanning alert involved in the event. """ created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + 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 - instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] ] number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Union[None, Literal["fixed"]] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType url: str + dismissal_approved_by: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, + None, + ] + ] -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -87,7 +97,9 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): """Alert Instance""" analysis_key: str @@ -96,19 +108,19 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -117,16 +129,16 @@ class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationTy start_line: NotRequired[int] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" description: str full_description: NotRequired[str] @@ -138,21 +150,51 @@ class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): tags: NotRequired[Union[list[str], None]] -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" guid: NotRequired[Union[str, None]] name: str version: Union[str, None] +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + __all__ = ( - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0495.py b/githubkit/versions/v2022_11_28/types/group_0495.py index 2bfddd6aa..6b5fb8051 100644 --- a/githubkit/versions/v2022_11_28/types/group_0495.py +++ b/githubkit/versions/v2022_11_28/types/group_0495.py @@ -14,56 +14,53 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["created"] + alert: WebhookCodeScanningAlertCreatedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] + ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert The code scanning alert involved in the event. """ - created_at: datetime - dismissed_at: Union[str, None] - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None - ] + created_at: Union[datetime, None] + dismissed_at: None + dismissed_by: None dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[str, None] + dismissed_reason: None fixed_at: NotRequired[None] html_url: str + instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] ] number: int - rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed"]] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] url: str + dismissal_approved_by: NotRequired[None] -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - - -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): """Alert Instance""" analysis_key: str @@ -72,19 +69,19 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedD commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -93,16 +90,16 @@ class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocatio start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" description: str full_description: NotRequired[str] @@ -114,8 +111,8 @@ class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): tags: NotRequired[Union[list[str], None]] -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" guid: NotRequired[Union[str, None]] name: str @@ -123,12 +120,11 @@ class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): __all__ = ( - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0496.py b/githubkit/versions/v2022_11_28/types/group_0496.py index 667405180..9860f9746 100644 --- a/githubkit/versions/v2022_11_28/types/group_0496.py +++ b/githubkit/versions/v2022_11_28/types/group_0496.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,35 +34,60 @@ class WebhookCodeScanningAlertReopenedByUserType(TypedDict): sender: SimpleUserType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert The code scanning alert involved in the event. """ created_at: datetime - dismissed_at: None - dismissed_by: None + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] fixed_at: NotRequired[None] html_url: str + instances_url: NotRequired[str] most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, - None, - ] + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] ] number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Union[None, Literal["open", "fixed"]] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Union[None, Literal["fixed"]] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): +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 @@ -71,21 +96,19 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n - """ + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" end_column: NotRequired[int] end_line: NotRequired[int] @@ -94,35 +117,42 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" text: NotRequired[str] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +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 WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + guid: NotRequired[Union[str, None]] name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0497.py b/githubkit/versions/v2022_11_28/types/group_0497.py index bb551dcb2..a0a37ddfc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0497.py +++ b/githubkit/versions/v2022_11_28/types/group_0497.py @@ -9,106 +9,126 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + 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 sender: SimpleUserType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert - 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[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None ] - body: str - commit_id: str - created_at: str + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[str, None] + fixed_at: NotRequired[None] html_url: str - id: int - line: Union[int, None] - node_id: str - path: Union[str, None] - position: Union[int, None] - reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] - updated_at: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType url: str - user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] -class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +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 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 + +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] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: 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__ = ( - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedType", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0498.py b/githubkit/versions/v2022_11_28/types/group_0498.py index ddc35c281..55ae0aa48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0498.py +++ b/githubkit/versions/v2022_11_28/types/group_0498.py @@ -9,29 +9,120 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" - description: Union[str, None] + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + 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 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_0499.py b/githubkit/versions/v2022_11_28/types/group_0499.py index 38ae4305a..f1cfa6589 100644 --- a/githubkit/versions/v2022_11_28/types/group_0499.py +++ b/githubkit/versions/v2022_11_28/types/group_0499.py @@ -9,25 +9,106 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0119 import CustomPropertyType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" action: Literal["created"] - definition: CustomPropertyType + comment: WebhookCommitCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyCreatedType",) +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_0500.py b/githubkit/versions/v2022_11_28/types/group_0500.py index 8e9be4b94..992d9cd32 100644 --- a/githubkit/versions/v2022_11_28/types/group_0500.py +++ b/githubkit/versions/v2022_11_28/types/group_0500.py @@ -9,33 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCreateType(TypedDict): + """create event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + description: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" - - property_name: str - - -__all__ = ( - "WebhookCustomPropertyDeletedPropDefinitionType", - "WebhookCustomPropertyDeletedType", -) +__all__ = ("WebhookCreateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0501.py b/githubkit/versions/v2022_11_28/types/group_0501.py index 0e061f01d..a868b890e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0501.py +++ b/githubkit/versions/v2022_11_28/types/group_0501.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0119 import CustomPropertyType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType +from .group_0121 import CustomPropertyType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): - """custom property promoted to business event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" - action: Literal["promote_to_enterprise"] + action: Literal["created"] definition: CustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -30,4 +30,4 @@ class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookCustomPropertyPromotedToEnterpriseType",) +__all__ = ("WebhookCustomPropertyCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0502.py b/githubkit/versions/v2022_11_28/types/group_0502.py index 78f6ffffd..ef0b3549c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0502.py +++ b/githubkit/versions/v2022_11_28/types/group_0502.py @@ -13,21 +13,29 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0119 import CustomPropertyType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" - action: Literal["updated"] - definition: CustomPropertyType + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookCustomPropertyUpdatedType",) +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str + + +__all__ = ( + "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCustomPropertyDeletedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0503.py b/githubkit/versions/v2022_11_28/types/group_0503.py index 9e9c375b0..c5f5c31fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0503.py +++ b/githubkit/versions/v2022_11_28/types/group_0503.py @@ -13,24 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0121 import CustomPropertyValueType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0121 import CustomPropertyType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): + """custom property promoted to business event""" - action: Literal["updated"] + action: Literal["promote_to_enterprise"] + definition: CustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - repository: RepositoryWebhooksType - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] sender: NotRequired[SimpleUserType] - new_property_values: list[CustomPropertyValueType] - old_property_values: list[CustomPropertyValueType] -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +__all__ = ("WebhookCustomPropertyPromotedToEnterpriseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0504.py b/githubkit/versions/v2022_11_28/types/group_0504.py index 2860497c8..8d3cb08ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0504.py +++ b/githubkit/versions/v2022_11_28/types/group_0504.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0121 import CustomPropertyType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" + action: Literal["updated"] + definition: CustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDeleteType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0505.py b/githubkit/versions/v2022_11_28/types/group_0505.py index 65a0446e2..de474eae5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0505.py +++ b/githubkit/versions/v2022_11_28/types/group_0505.py @@ -13,23 +13,24 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0283 import DependabotAlertType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0123 import CustomPropertyValueType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserType] + new_property_values: list[CustomPropertyValueType] + old_property_values: list[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0506.py b/githubkit/versions/v2022_11_28/types/group_0506.py index d408cdca4..a7671b791 100644 --- a/githubkit/versions/v2022_11_28/types/group_0506.py +++ b/githubkit/versions/v2022_11_28/types/group_0506.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0283 import DependabotAlertType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["auto_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__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ("WebhookDeleteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0507.py b/githubkit/versions/v2022_11_28/types/group_0507.py index 72500e1fe..afbefdde6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0507.py +++ b/githubkit/versions/v2022_11_28/types/group_0507.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0283 import DependabotAlertType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0285 import DependabotAlertType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["created"] + action: Literal["auto_dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0508.py b/githubkit/versions/v2022_11_28/types/group_0508.py index fada124e4..99377d595 100644 --- a/githubkit/versions/v2022_11_28/types/group_0508.py +++ b/githubkit/versions/v2022_11_28/types/group_0508.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0283 import DependabotAlertType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0285 import DependabotAlertType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["dismissed"] + action: Literal["auto_reopened"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertDismissedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0509.py b/githubkit/versions/v2022_11_28/types/group_0509.py index faf0685d8..7fdf5b78f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0509.py +++ b/githubkit/versions/v2022_11_28/types/group_0509.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0283 import DependabotAlertType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0285 import DependabotAlertType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" - action: Literal["fixed"] + action: Literal["created"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertFixedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookDependabotAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0510.py b/githubkit/versions/v2022_11_28/types/group_0510.py index 244ff4a0e..fae7c29e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0510.py +++ b/githubkit/versions/v2022_11_28/types/group_0510.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0283 import DependabotAlertType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0285 import DependabotAlertType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" - action: Literal["reintroduced"] + action: Literal["dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReintroducedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookDependabotAlertDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0511.py b/githubkit/versions/v2022_11_28/types/group_0511.py index cc529de2d..1ba1c8925 100644 --- a/githubkit/versions/v2022_11_28/types/group_0511.py +++ b/githubkit/versions/v2022_11_28/types/group_0511.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0283 import DependabotAlertType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0285 import DependabotAlertType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed event""" - action: Literal["reopened"] + action: Literal["fixed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDependabotAlertFixedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0512.py b/githubkit/versions/v2022_11_28/types/group_0512.py index 90f9a3113..e84cfd782 100644 --- a/githubkit/versions/v2022_11_28/types/group_0512.py +++ b/githubkit/versions/v2022_11_28/types/group_0512.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0431 import WebhooksDeployKeyType +from .group_0285 import DependabotAlertType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyCreatedType",) +__all__ = ("WebhookDependabotAlertReintroducedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0513.py b/githubkit/versions/v2022_11_28/types/group_0513.py index 72929bfd2..145c079e0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0513.py +++ b/githubkit/versions/v2022_11_28/types/group_0513.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0431 import WebhooksDeployKeyType +from .group_0285 import DependabotAlertType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyDeletedType",) +__all__ = ("WebhookDependabotAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0514.py b/githubkit/versions/v2022_11_28/types/group_0514.py index d3248c942..206ee5883 100644 --- a/githubkit/versions/v2022_11_28/types/group_0514.py +++ b/githubkit/versions/v2022_11_28/types/group_0514.py @@ -9,550 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0432 import WebhooksWorkflowType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0433 import WebhooksDeployKeyType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] 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__ = ("WebhookDeployKeyCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0515.py b/githubkit/versions/v2022_11_28/types/group_0515.py index 7ceaf4f73..81842a70b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0515.py +++ b/githubkit/versions/v2022_11_28/types/group_0515.py @@ -13,26 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0215 import DeploymentType -from .group_0346 import PullRequestType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType - - -class WebhookDeploymentProtectionRuleRequestedType(TypedDict): - """deployment protection rule requested event""" - - action: Literal["requested"] - environment: NotRequired[str] - event: NotRequired[str] - deployment_callback_url: NotRequired[str] - deployment: NotRequired[DeploymentType] - pull_requests: NotRequired[list[PullRequestType]] - repository: NotRequired[RepositoryWebhooksType] - organization: NotRequired[OrganizationSimpleWebhooksType] +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0433 import WebhooksDeployKeyType + + +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserType] + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ("WebhookDeployKeyDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0516.py b/githubkit/versions/v2022_11_28/types/group_0516.py index 7497d2d20..b4c8ab31d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0516.py +++ b/githubkit/versions/v2022_11_28/types/group_0516.py @@ -10,55 +10,198 @@ 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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0433 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0434 import WebhooksWorkflowJobRunType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0434 import WebhooksWorkflowType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" - action: Literal["approved"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] + action: Literal["created"] + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] + 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] ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, 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 WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" +class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: 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: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: 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 WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): +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[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -80,11 +223,9 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): display_title: str event: str head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] + head_commit: NotRequired[None] head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -94,21 +235,19 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): name: str node_id: str path: str - previous_attempt_url: NotRequired[Union[str, None]] + previous_attempt_url: NotRequired[None] pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] + repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] rerun_url: NotRequired[str] run_attempt: int run_number: int @@ -116,8 +255,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None + triggering_actor: NotRequired[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] ] updated_at: datetime url: str @@ -125,7 +264,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): workflow_url: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -152,21 +291,17 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): user_view_type: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -193,8 +328,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(Type user_view_type: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -207,7 +342,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(Typed contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] + description: NotRequired[None] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -231,7 +366,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(Typed node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -246,10 +381,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(Typed url: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -269,11 +402,10 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerT subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -286,7 +418,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] + description: NotRequired[None] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -310,7 +442,7 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -325,10 +457,8 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict url: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -348,36 +478,31 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): """Check Run Pull Request""" - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + ) sha: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -387,17 +512,19 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBas url: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + ) sha: str -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -408,20 +535,24 @@ class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHea __all__ = ( - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedType", + "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_0517.py b/githubkit/versions/v2022_11_28/types/group_0517.py index 1b957a6e1..86d6f4d3d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0517.py +++ b/githubkit/versions/v2022_11_28/types/group_0517.py @@ -9,417 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0433 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0434 import WebhooksWorkflowJobRunType +from .group_0217 import DeploymentType +from .group_0348 import PullRequestType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" - action: Literal["rejected"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - 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] - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] + action: Literal["requested"] 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 + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[list[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + installation: NotRequired[SimpleInstallationType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedType", -) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0518.py b/githubkit/versions/v2022_11_28/types/group_0518.py index 375e0bc35..d4c8cd32f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0518.py +++ b/githubkit/versions/v2022_11_28/types/group_0518.py @@ -14,83 +14,51 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0435 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0436 import WebhooksWorkflowJobRunType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["requested"] + action: Literal["approved"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] - environment: str installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType - requestor: Union[WebhooksUserType, None] - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] + reviewers: NotRequired[list[WebhooksReviewersItemsType]] 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] + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] ] - type: NotRequired[Literal["User", "Team"]] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: 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] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -109,13 +77,14 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): ], ] created_at: datetime + display_title: str event: str head_branch: str head_commit: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] ] head_repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -127,18 +96,18 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): path: str previous_attempt_url: NotRequired[Union[str, None]] pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType ] rerun_url: NotRequired[str] run_attempt: int @@ -148,16 +117,15 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): "requested", "in_progress", "completed", "queued", "waiting", "pending" ] triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str workflow_id: int workflow_url: NotRequired[str] - display_title: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -184,21 +152,21 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): user_view_type: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -225,8 +193,8 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(Typ user_view_type: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -263,7 +231,7 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(Type node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -278,10 +246,10 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(Type url: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -304,8 +272,8 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner user_view_type: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -342,7 +310,7 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDic node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -357,10 +325,10 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDic url: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -383,33 +351,33 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType user_view_type: NotRequired[str] -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( TypedDict ): """Check Run Pull Request""" base: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType ) head: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType ) id: int number: int url: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -419,17 +387,17 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBa url: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -440,22 +408,20 @@ class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHe __all__ = ( - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedType", + "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_0519.py b/githubkit/versions/v2022_11_28/types/group_0519.py index 04d3753c2..76f43e441 100644 --- a/githubkit/versions/v2022_11_28/types/group_0519.py +++ b/githubkit/versions/v2022_11_28/types/group_0519.py @@ -10,404 +10,55 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0432 import WebhooksWorkflowType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0435 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0436 import WebhooksWorkflowJobRunType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType + 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 - workflow: NotRequired[Union[WebhooksWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - 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] + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[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] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -423,16 +74,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): "timed_out", "action_required", "stale", - "startup_failure", ], ] created_at: datetime - display_title: str event: str head_branch: str - head_commit: NotRequired[None] + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] head_repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -442,38 +93,37 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): name: str node_id: str path: str - previous_attempt_url: NotRequired[None] + previous_attempt_url: NotRequired[Union[str, None]] pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType ] rerun_url: NotRequired[str] run_attempt: int run_number: int run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str workflow_id: int workflow_url: NotRequired[str] + display_title: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -500,17 +150,21 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -537,8 +191,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(Typed user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -551,7 +205,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[None] + description: NotRequired[Union[str, None]] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -575,7 +229,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -590,10 +244,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -613,10 +267,11 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerTy subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -629,7 +284,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) contents_url: NotRequired[str] contributors_url: NotRequired[str] deployments_url: NotRequired[str] - description: NotRequired[None] + description: NotRequired[Union[str, None]] downloads_url: NotRequired[str] events_url: NotRequired[str] fork: NotRequired[bool] @@ -653,7 +308,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -668,10 +323,10 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -691,29 +346,36 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) id: int number: int url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -723,17 +385,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -744,30 +406,20 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead __all__ = ( - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedType", + "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_0520.py b/githubkit/versions/v2022_11_28/types/group_0520.py index 1cb385d08..d6c6592ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0520.py +++ b/githubkit/versions/v2022_11_28/types/group_0520.py @@ -9,29 +9,453 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0436 import WebhooksAnswerType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["answered"] - answer: WebhooksAnswerType - 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__ = ("WebhookDiscussionAnsweredType",) +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_0521.py b/githubkit/versions/v2022_11_28/types/group_0521.py index 0a65dadb9..1b6f7808d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0521.py +++ b/githubkit/versions/v2022_11_28/types/group_0521.py @@ -10,60 +10,764 @@ 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 -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0434 import WebhooksWorkflowType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - 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 WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + 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 WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + 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 WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" - created_at: datetime - description: str - emoji: 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 - is_answerable: 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] + 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] - repository_id: int - slug: str + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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__ = ( - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedType", + "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_0522.py b/githubkit/versions/v2022_11_28/types/group_0522.py index 28756e383..9609b59d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0522.py +++ b/githubkit/versions/v2022_11_28/types/group_0522.py @@ -13,17 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0438 import WebhooksAnswerType +from .group_0439 import DiscussionType -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["closed"] + action: Literal["answered"] + answer: WebhooksAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionClosedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionClosedType",) +__all__ = ("WebhookDiscussionAnsweredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0523.py b/githubkit/versions/v2022_11_28/types/group_0523.py index 019c7e2aa..6514a8425 100644 --- a/githubkit/versions/v2022_11_28/types/group_0523.py +++ b/githubkit/versions/v2022_11_28/types/group_0523.py @@ -9,23 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType -from .group_0438 import WebhooksCommentType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["created"] - comment: WebhooksCommentType + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +34,36 @@ class WebhookDiscussionCommentCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionCommentCreatedType",) +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_0524.py b/githubkit/versions/v2022_11_28/types/group_0524.py index 3279d58a6..dc8785b49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0524.py +++ b/githubkit/versions/v2022_11_28/types/group_0524.py @@ -13,19 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType -from .group_0438 import WebhooksCommentType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["deleted"] - comment: WebhooksCommentType + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +32,4 @@ class WebhookDiscussionCommentDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionCommentDeletedType",) +__all__ = ("WebhookDiscussionClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0525.py b/githubkit/versions/v2022_11_28/types/group_0525.py index f92bc96f7..45a667b1b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0525.py +++ b/githubkit/versions/v2022_11_28/types/group_0525.py @@ -13,19 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType -from .group_0438 import WebhooksCommentType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType +from .group_0440 import WebhooksCommentType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType + action: Literal["created"] comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] @@ -35,20 +34,4 @@ class WebhookDiscussionCommentEditedType(TypedDict): sender: SimpleUserType -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" - - body: WebhookDiscussionCommentEditedPropChangesPropBodyType - - -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str - - -__all__ = ( - "WebhookDiscussionCommentEditedPropChangesPropBodyType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedType", -) +__all__ = ("WebhookDiscussionCommentCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0526.py b/githubkit/versions/v2022_11_28/types/group_0526.py index 41b5df535..01d8feb46 100644 --- a/githubkit/versions/v2022_11_28/types/group_0526.py +++ b/githubkit/versions/v2022_11_28/types/group_0526.py @@ -13,17 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType +from .group_0440 import WebhooksCommentType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" - action: Literal["created"] + action: Literal["deleted"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionCreatedType",) +__all__ = ("WebhookDiscussionCommentDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0527.py b/githubkit/versions/v2022_11_28/types/group_0527.py index 71698d4e1..4717ac114 100644 --- a/githubkit/versions/v2022_11_28/types/group_0527.py +++ b/githubkit/versions/v2022_11_28/types/group_0527.py @@ -13,17 +13,20 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType +from .group_0440 import WebhooksCommentType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +35,20 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionDeletedType",) +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_0528.py b/githubkit/versions/v2022_11_28/types/group_0528.py index a9e7d07fa..27093cac4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0528.py +++ b/githubkit/versions/v2022_11_28/types/group_0528.py @@ -13,18 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["created"] 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__ = ("WebhookDiscussionCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0529.py b/githubkit/versions/v2022_11_28/types/group_0529.py index c1d89f5ca..bea5fff8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0529.py +++ b/githubkit/versions/v2022_11_28/types/group_0529.py @@ -13,25 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType -from .group_0439 import WebhooksLabelType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - action: Literal["labeled"] + action: Literal["deleted"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionLabeledType",) +__all__ = ("WebhookDiscussionDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0530.py b/githubkit/versions/v2022_11_28/types/group_0530.py index 11c302471..8587508f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0530.py +++ b/githubkit/versions/v2022_11_28/types/group_0530.py @@ -13,17 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - action: Literal["locked"] + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +33,28 @@ class WebhookDiscussionLockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionLockedType",) +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_0531.py b/githubkit/versions/v2022_11_28/types/group_0531.py index 14bacdbc4..56acd53d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0531.py +++ b/githubkit/versions/v2022_11_28/types/group_0531.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType +from .group_0441 import WebhooksLabelType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - action: Literal["pinned"] + action: Literal["labeled"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionPinnedType",) +__all__ = ("WebhookDiscussionLabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0532.py b/githubkit/versions/v2022_11_28/types/group_0532.py index 3313c3d89..c9f98bb2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0532.py +++ b/githubkit/versions/v2022_11_28/types/group_0532.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["reopened"] + action: Literal["locked"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionReopenedType",) +__all__ = ("WebhookDiscussionLockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0533.py b/githubkit/versions/v2022_11_28/types/group_0533.py index 8d476bd27..0869b5acf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0533.py +++ b/githubkit/versions/v2022_11_28/types/group_0533.py @@ -13,19 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType -from .group_0534 import WebhookDiscussionTransferredPropChangesType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +32,4 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredType",) +__all__ = ("WebhookDiscussionPinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0534.py b/githubkit/versions/v2022_11_28/types/group_0534.py index decf5625d..cd4a84af1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0534.py +++ b/githubkit/versions/v2022_11_28/types/group_0534.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_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["reopened"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +__all__ = ("WebhookDiscussionReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0535.py b/githubkit/versions/v2022_11_28/types/group_0535.py index 431c2ff89..2fc040e74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0535.py +++ b/githubkit/versions/v2022_11_28/types/group_0535.py @@ -13,21 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0436 import WebhooksAnswerType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType +from .group_0536 import WebhookDiscussionTransferredPropChangesType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" - action: Literal["unanswered"] + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType discussion: DiscussionType - old_answer: WebhooksAnswerType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookDiscussionUnansweredType",) +__all__ = ("WebhookDiscussionTransferredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0536.py b/githubkit/versions/v2022_11_28/types/group_0536.py index 7a37ea0cb..650ced93e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0536.py +++ b/githubkit/versions/v2022_11_28/types/group_0536.py @@ -9,29 +9,17 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType -from .group_0439 import WebhooksLabelType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - action: Literal["unlabeled"] - discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType -__all__ = ("WebhookDiscussionUnlabeledType",) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0537.py b/githubkit/versions/v2022_11_28/types/group_0537.py index 30f0ed937..7c49b3b0d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0537.py +++ b/githubkit/versions/v2022_11_28/types/group_0537.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0438 import WebhooksAnswerType +from .group_0439 import DiscussionType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" - action: Literal["unlocked"] + action: Literal["unanswered"] discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + old_answer: WebhooksAnswerType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDiscussionUnlockedType",) +__all__ = ("WebhookDiscussionUnansweredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0538.py b/githubkit/versions/v2022_11_28/types/group_0538.py index 66b779dad..ed3e958b3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0538.py +++ b/githubkit/versions/v2022_11_28/types/group_0538.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0437 import DiscussionType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType +from .group_0441 import WebhooksLabelType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" - action: Literal["unpinned"] + action: Literal["unlabeled"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionUnlabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0539.py b/githubkit/versions/v2022_11_28/types/group_0539.py index 7b74d8dac..cc167c0d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0539.py +++ b/githubkit/versions/v2022_11_28/types/group_0539.py @@ -9,28 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0540 import WebhookForkPropForkeeType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookForkType(TypedDict): - """fork event - - A user forks a repository. - """ +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" + action: Literal["unlocked"] + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionUnlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0540.py b/githubkit/versions/v2022_11_28/types/group_0540.py index 8f66de732..71aebe765 100644 --- a/githubkit/versions/v2022_11_28/types/group_0540.py +++ b/githubkit/versions/v2022_11_28/types/group_0540.py @@ -9,151 +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_0542 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0439 import DiscussionType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. - """ + action: Literal["unpinned"] + 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__ = ("WebhookDiscussionUnpinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0541.py b/githubkit/versions/v2022_11_28/types/group_0541.py index 822611cb7..894866a97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0541.py +++ b/githubkit/versions/v2022_11_28/types/group_0541.py @@ -9,150 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0542 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0542 import WebhookForkPropForkeeType -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookForkType(TypedDict): + """fork event - A git repository + A user forks a 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] + enterprise: NotRequired[EnterpriseWebhooksType] + forkee: WebhookForkPropForkeeType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -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__ = ("WebhookForkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0542.py b/githubkit/versions/v2022_11_28/types/group_0542.py index a6cb9b92f..5ed2c6a15 100644 --- a/githubkit/versions/v2022_11_28/types/group_0542.py +++ b/githubkit/versions/v2022_11_28/types/group_0542.py @@ -9,17 +9,151 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0544 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. + """ -__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) + 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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0543.py b/githubkit/versions/v2022_11_28/types/group_0543.py index 624daaf0c..7b2c2d9ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0543.py +++ b/githubkit/versions/v2022_11_28/types/group_0543.py @@ -9,109 +9,136 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0544 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] 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]] + 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: 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] + 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: 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] + 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: 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] + 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 WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" + +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: 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] @@ -119,12 +146,13 @@ class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): 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] __all__ = ( - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", - "WebhookForkPropForkeeAllof1Type", + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", + "WebhookForkPropForkeeAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0544.py b/githubkit/versions/v2022_11_28/types/group_0544.py index 52c10d4b8..a6cb9b92f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0544.py +++ b/githubkit/versions/v2022_11_28/types/group_0544.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - action: Literal["revoked"] - sender: SimpleUserType - -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0545.py b/githubkit/versions/v2022_11_28/types/group_0545.py index 31ac7674f..624daaf0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0545.py +++ b/githubkit/versions/v2022_11_28/types/group_0545.py @@ -12,36 +12,119 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" -class WebhookGollumType(TypedDict): - """gollum event""" + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] + private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[list[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pages: list[WebhookGollumPropPagesItemsType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str +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__ = ( - "WebhookGollumPropPagesItemsType", - "WebhookGollumType", + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", + "WebhookForkPropForkeeAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0546.py b/githubkit/versions/v2022_11_28/types/group_0546.py index 7aeee5143..52c10d4b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0546.py +++ b/githubkit/versions/v2022_11_28/types/group_0546.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0424 import EnterpriseWebhooksType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType -from .group_0440 import WebhooksRepositoriesItemsType - - -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhooksUserType, None]] + + +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" + + action: Literal["revoked"] sender: SimpleUserType -__all__ = ("WebhookInstallationCreatedType",) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0547.py b/githubkit/versions/v2022_11_28/types/group_0547.py index 695ecc3de..488bfec03 100644 --- a/githubkit/versions/v2022_11_28/types/group_0547.py +++ b/githubkit/versions/v2022_11_28/types/group_0547.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_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0424 import EnterpriseWebhooksType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0440 import WebhooksRepositoriesItemsType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" +class WebhookGollumType(TypedDict): + """gollum event""" - action: Literal["deleted"] 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__ = ("WebhookInstallationDeletedType",) +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_0548.py b/githubkit/versions/v2022_11_28/types/group_0548.py index 3b2eb233f..ec75d0e16 100644 --- a/githubkit/versions/v2022_11_28/types/group_0548.py +++ b/githubkit/versions/v2022_11_28/types/group_0548.py @@ -9,28 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0424 import EnterpriseWebhooksType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0440 import WebhooksRepositoriesItemsType +from .group_0426 import EnterpriseWebhooksType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType +from .group_0442 import WebhooksRepositoriesItemsType -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - action: Literal["new_permissions_accepted"] + 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__ = ("WebhookInstallationNewPermissionsAcceptedType",) +__all__ = ("WebhookInstallationCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0549.py b/githubkit/versions/v2022_11_28/types/group_0549.py index ebd566c3a..fb4d6863a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0549.py +++ b/githubkit/versions/v2022_11_28/types/group_0549.py @@ -9,46 +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_0424 import EnterpriseWebhooksType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType -from .group_0441 import WebhooksRepositoriesAddedItemsType +from .group_0426 import EnterpriseWebhooksType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0442 import WebhooksRepositoriesItemsType -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - action: Literal["added"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType - ] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] + requester: NotRequired[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", -) +__all__ = ("WebhookInstallationDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0550.py b/githubkit/versions/v2022_11_28/types/group_0550.py index 684508e58..98a02e82f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0550.py +++ b/githubkit/versions/v2022_11_28/types/group_0550.py @@ -9,46 +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_0424 import EnterpriseWebhooksType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType -from .group_0441 import WebhooksRepositoriesAddedItemsType +from .group_0426 import EnterpriseWebhooksType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0442 import WebhooksRepositoriesItemsType -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - action: Literal["removed"] + action: Literal["new_permissions_accepted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType - ] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] + requester: NotRequired[None] sender: SimpleUserType -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" - - full_name: str - id: int - name: str - node_id: str - private: bool - - -__all__ = ( - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesRemovedType", -) +__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0551.py b/githubkit/versions/v2022_11_28/types/group_0551.py index 3cf392f5b..50d80b0b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0551.py +++ b/githubkit/versions/v2022_11_28/types/group_0551.py @@ -9,28 +9,46 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0424 import EnterpriseWebhooksType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0440 import WebhooksRepositoriesItemsType +from .group_0426 import EnterpriseWebhooksType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType +from .group_0443 import WebhooksRepositoriesAddedItemsType -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" - action: Literal["suspend"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType + ] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] sender: SimpleUserType -__all__ = ("WebhookInstallationSuspendType",) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + node_id: NotRequired[str] + private: NotRequired[bool] + + +__all__ = ( + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesAddedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0552.py b/githubkit/versions/v2022_11_28/types/group_0552.py index 3e092b9d5..413c57ac4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0552.py +++ b/githubkit/versions/v2022_11_28/types/group_0552.py @@ -13,91 +13,42 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0018 import InstallationType +from .group_0426 import EnterpriseWebhooksType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType +from .group_0443 import WebhooksRepositoriesAddedItemsType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType + ] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - target_type: str + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserType -class WebhookInstallationTargetRenamedPropAccountType(TypedDict): - """WebhookInstallationTargetRenamedPropAccount""" +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" - 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 + full_name: str id: int - is_verified: NotRequired[bool] - issues_url: NotRequired[str] - login: NotRequired[str] - members_url: NotRequired[str] - name: NotRequired[str] + name: 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 + private: bool __all__ = ( - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesRemovedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0553.py b/githubkit/versions/v2022_11_28/types/group_0553.py index 2becb46f2..1efdcab9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0553.py +++ b/githubkit/versions/v2022_11_28/types/group_0553.py @@ -14,16 +14,16 @@ from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0424 import EnterpriseWebhooksType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0440 import WebhooksRepositoriesItemsType +from .group_0426 import EnterpriseWebhooksType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0442 import WebhooksRepositoriesItemsType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" - action: Literal["unsuspend"] + action: Literal["suspend"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,4 +33,4 @@ class WebhookInstallationUnsuspendType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookInstallationUnsuspendType",) +__all__ = ("WebhookInstallationSuspendType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0554.py b/githubkit/versions/v2022_11_28/types/group_0554.py index 49f2ceb0e..2f703f129 100644 --- a/githubkit/versions/v2022_11_28/types/group_0554.py +++ b/githubkit/versions/v2022_11_28/types/group_0554.py @@ -9,29 +9,95 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0555 import WebhookIssueCommentCreatedPropCommentType -from .group_0556 import WebhookIssueCommentCreatedPropIssueType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: SimpleInstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + target_type: str -__all__ = ("WebhookIssueCommentCreatedType",) +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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0555.py b/githubkit/versions/v2022_11_28/types/group_0555.py index 70fa2faff..61be242a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0555.py +++ b/githubkit/versions/v2022_11_28/types/group_0555.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_0010 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0426 import EnterpriseWebhooksType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0442 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ + action: Literal["unsuspend"] + 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__ = ("WebhookInstallationUnsuspendType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0556.py b/githubkit/versions/v2022_11_28/types/group_0556.py index ea8302ac1..dca29ac7f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0556.py +++ b/githubkit/versions/v2022_11_28/types/group_0556.py @@ -9,157 +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_0043 import IssueTypeType -from .group_0558 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0563 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0565 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0566 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0557 import WebhookIssueCommentCreatedPropCommentType +from .group_0558 import WebhookIssueCommentCreatedPropIssueType -class WebhookIssueCommentCreatedPropIssueType(TypedDict): - """WebhookIssueCommentCreatedPropIssue +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType - -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", - "WebhookIssueCommentCreatedPropIssueType", -) +__all__ = ("WebhookIssueCommentCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0557.py b/githubkit/versions/v2022_11_28/types/group_0557.py index fb241a0f3..70fa2faff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0557.py +++ b/githubkit/versions/v2022_11_28/types/group_0557.py @@ -13,36 +13,16 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType -from .group_0558 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0560 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0562 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0563 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) +from .group_0010 import IntegrationType -class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + 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", @@ -53,74 +33,20 @@ class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str + body: 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] + issue_url: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] + performed_via_github_app: Union[None, IntegrationType, None] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType 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] + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -135,7 +61,7 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -157,14 +83,13 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(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__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof0Type", + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", + "WebhookIssueCommentCreatedPropCommentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0558.py b/githubkit/versions/v2022_11_28/types/group_0558.py index 088b44492..2f3438290 100644 --- a/githubkit/versions/v2022_11_28/types/group_0558.py +++ b/githubkit/versions/v2022_11_28/types/group_0558.py @@ -13,9 +13,79 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType +from .group_0560 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0566 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0567 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[SubIssuesSummaryType] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssueCommentCreatedPropIssueMergedUserType + -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -41,30 +111,51 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - 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 WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedUser""" - diff_url: 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] - 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] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", + "WebhookIssueCommentCreatedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0559.py b/githubkit/versions/v2022_11_28/types/group_0559.py index 2a39d32cf..b6474f9cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0559.py +++ b/githubkit/versions/v2022_11_28/types/group_0559.py @@ -9,11 +9,129 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType +from .group_0560 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0562 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0564 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + 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] @@ -40,4 +158,9 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0560.py b/githubkit/versions/v2022_11_28/types/group_0560.py index 9c470d58a..088b44492 100644 --- a/githubkit/versions/v2022_11_28/types/group_0560.py +++ b/githubkit/versions/v2022_11_28/types/group_0560.py @@ -11,37 +11,60 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0559 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 WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - A collection of related issues and pull requests. - """ +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__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0561.py b/githubkit/versions/v2022_11_28/types/group_0561.py index b261a91af..2a39d32cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0561.py +++ b/githubkit/versions/v2022_11_28/types/group_0561.py @@ -13,9 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -37,58 +35,9 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - - 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__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0562.py b/githubkit/versions/v2022_11_28/types/group_0562.py index fd58bf736..81fabec95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0562.py +++ b/githubkit/versions/v2022_11_28/types/group_0562.py @@ -10,41 +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_0561 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + A collection of related issues and pull requests. """ - created_at: Union[datetime, None] + 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__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0563.py b/githubkit/versions/v2022_11_28/types/group_0563.py index ef1c4a5c5..b261a91af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0563.py +++ b/githubkit/versions/v2022_11_28/types/group_0563.py @@ -9,15 +9,86 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" - total: int - completed: int - percent_completed: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) +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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0564.py b/githubkit/versions/v2022_11_28/types/group_0564.py index 7b1858f2a..28435bc57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0564.py +++ b/githubkit/versions/v2022_11_28/types/group_0564.py @@ -9,148 +9,42 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0563 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -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] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - color: str - default: bool + created_at: Union[datetime, None] description: Union[str, None] - id: int + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] 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] + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0565.py b/githubkit/versions/v2022_11_28/types/group_0565.py index 8402b60dd..7b1858f2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0565.py +++ b/githubkit/versions/v2022_11_28/types/group_0565.py @@ -9,36 +9,148 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0559 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + 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] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + 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 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/v2022_11_28/types/group_0566.py b/githubkit/versions/v2022_11_28/types/group_0566.py index 1c19879fb..aefc4e8c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0566.py +++ b/githubkit/versions/v2022_11_28/types/group_0566.py @@ -10,35 +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_0561 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - created_at: Union[datetime, None] + 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__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0567.py b/githubkit/versions/v2022_11_28/types/group_0567.py index e3771c1eb..1c95f7658 100644 --- a/githubkit/versions/v2022_11_28/types/group_0567.py +++ b/githubkit/versions/v2022_11_28/types/group_0567.py @@ -9,29 +9,36 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0442 import WebhooksIssueCommentType -from .group_0568 import WebhookIssueCommentDeletedPropIssueType - - -class WebhookIssueCommentDeletedType(TypedDict): - """issue_comment deleted event""" - - action: Literal["deleted"] - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssueCommentDeletedType",) +from .group_0563 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0568.py b/githubkit/versions/v2022_11_28/types/group_0568.py index 665af0456..9aeff9399 100644 --- a/githubkit/versions/v2022_11_28/types/group_0568.py +++ b/githubkit/versions/v2022_11_28/types/group_0568.py @@ -9,157 +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_0043 import IssueTypeType -from .group_0570 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0575 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0577 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0578 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, -) +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0444 import WebhooksIssueCommentType +from .group_0569 import WebhookIssueCommentDeletedPropIssueType -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentDeletedType(TypedDict): + """issue_comment deleted event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ + action: Literal["deleted"] + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", - "WebhookIssueCommentDeletedPropIssueType", -) +__all__ = ("WebhookIssueCommentDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0569.py b/githubkit/versions/v2022_11_28/types/group_0569.py index 49d33ce50..80c502211 100644 --- a/githubkit/versions/v2022_11_28/types/group_0569.py +++ b/githubkit/versions/v2022_11_28/types/group_0569.py @@ -13,36 +13,33 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType -from .group_0570 import ( +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType +from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) -from .group_0572 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0574 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0575 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, +from .group_0577 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0578 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] + Literal["resolved", "off-topic", "too heated", "spam"], None ] - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None ] + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -53,7 +50,7 @@ class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] + body: Union[Union[str, None], None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -62,39 +59,33 @@ class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - ] + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] ] pull_request: NotRequired[ WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + user: WebhookIssueCommentDeletedPropIssueMergedUserType -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -120,8 +111,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict) user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" plus_one: int minus_one: int @@ -135,8 +126,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedUser""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -163,8 +154,8 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof0Type", + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", + "WebhookIssueCommentDeletedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0570.py b/githubkit/versions/v2022_11_28/types/group_0570.py index 0cf270ec9..667547f6f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0570.py +++ b/githubkit/versions/v2022_11_28/types/group_0570.py @@ -13,8 +13,83 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType +from .group_0571 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0573 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0575 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0Type(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[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,30 +116,51 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(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 WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" - diff_url: 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] - 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] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0571.py b/githubkit/versions/v2022_11_28/types/group_0571.py index b8118ecd1..0cf270ec9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0571.py +++ b/githubkit/versions/v2022_11_28/types/group_0571.py @@ -9,11 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,4 +41,30 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0572.py b/githubkit/versions/v2022_11_28/types/group_0572.py index 30a30f807..b8118ecd1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0572.py +++ b/githubkit/versions/v2022_11_28/types/group_0572.py @@ -9,39 +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_0571 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -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 + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: 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__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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_0573.py b/githubkit/versions/v2022_11_28/types/group_0573.py index 078dc1e49..3c8dce681 100644 --- a/githubkit/versions/v2022_11_28/types/group_0573.py +++ b/githubkit/versions/v2022_11_28/types/group_0573.py @@ -9,86 +9,39 @@ 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 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] +from .group_0572 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - The set of permissions for the GitHub app + A collection of related issues and pull requests. """ - 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"]] + 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__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0574.py b/githubkit/versions/v2022_11_28/types/group_0574.py index cfeca76b1..078dc1e49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0574.py +++ b/githubkit/versions/v2022_11_28/types/group_0574.py @@ -9,42 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0573 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user 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 set of permissions for the GitHub app """ - 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",) + 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_0575.py b/githubkit/versions/v2022_11_28/types/group_0575.py index aa70cbec8..091f6073e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0575.py +++ b/githubkit/versions/v2022_11_28/types/group_0575.py @@ -9,15 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict + +from .group_0574 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0577.py b/githubkit/versions/v2022_11_28/types/group_0577.py index effb3c78a..ffd9a3365 100644 --- a/githubkit/versions/v2022_11_28/types/group_0577.py +++ b/githubkit/versions/v2022_11_28/types/group_0577.py @@ -13,7 +13,7 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0571 import ( +from .group_0572 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) diff --git a/githubkit/versions/v2022_11_28/types/group_0578.py b/githubkit/versions/v2022_11_28/types/group_0578.py index a176994f8..06b290586 100644 --- a/githubkit/versions/v2022_11_28/types/group_0578.py +++ b/githubkit/versions/v2022_11_28/types/group_0578.py @@ -13,7 +13,7 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0573 import ( +from .group_0574 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) diff --git a/githubkit/versions/v2022_11_28/types/group_0579.py b/githubkit/versions/v2022_11_28/types/group_0579.py index 74cab5fc2..85753b01b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0579.py +++ b/githubkit/versions/v2022_11_28/types/group_0579.py @@ -13,12 +13,12 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0442 import WebhooksIssueCommentType -from .group_0443 import WebhooksChangesType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0444 import WebhooksIssueCommentType +from .group_0445 import WebhooksChangesType from .group_0580 import WebhookIssueCommentEditedPropIssueType diff --git a/githubkit/versions/v2022_11_28/types/group_0580.py b/githubkit/versions/v2022_11_28/types/group_0580.py index ed18c8bc3..e3b006530 100644 --- a/githubkit/versions/v2022_11_28/types/group_0580.py +++ b/githubkit/versions/v2022_11_28/types/group_0580.py @@ -13,15 +13,15 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) -from .group_0587 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -from .group_0589 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0590 import ( +from .group_0588 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0589 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) @@ -73,9 +73,7 @@ class WebhookIssueCommentEditedPropIssueType(TypedDict): ] reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] + sub_issues_summary: NotRequired[SubIssuesSummaryType] state: Literal["open", "closed"] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] diff --git a/githubkit/versions/v2022_11_28/types/group_0581.py b/githubkit/versions/v2022_11_28/types/group_0581.py index bf4d6f107..763c248dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0581.py +++ b/githubkit/versions/v2022_11_28/types/group_0581.py @@ -13,7 +13,8 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, @@ -23,7 +24,6 @@ from .group_0586 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) -from .group_0587 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): @@ -78,9 +78,7 @@ class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): ] reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] + sub_issues_summary: NotRequired[SubIssuesSummaryType] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] diff --git a/githubkit/versions/v2022_11_28/types/group_0587.py b/githubkit/versions/v2022_11_28/types/group_0587.py index 5c991e61e..d5d49ac59 100644 --- a/githubkit/versions/v2022_11_28/types/group_0587.py +++ b/githubkit/versions/v2022_11_28/types/group_0587.py @@ -9,15 +9,148 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" - total: int - completed: int - percent_completed: int + 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] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", + "WebhookIssueCommentEditedPropIssueAllof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0588.py b/githubkit/versions/v2022_11_28/types/group_0588.py index d5d49ac59..a503cd448 100644 --- a/githubkit/versions/v2022_11_28/types/group_0588.py +++ b/githubkit/versions/v2022_11_28/types/group_0588.py @@ -9,148 +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 - -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] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" +from .group_0583 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - color: str - default: bool + 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 - name: str + labels_url: str node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", - "WebhookIssueCommentEditedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0589.py b/githubkit/versions/v2022_11_28/types/group_0589.py index a503cd448..6755ea817 100644 --- a/githubkit/versions/v2022_11_28/types/group_0589.py +++ b/githubkit/versions/v2022_11_28/types/group_0589.py @@ -10,35 +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_0583 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +from .group_0585 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - 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[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0590.py b/githubkit/versions/v2022_11_28/types/group_0590.py index 6755ea817..a9273be60 100644 --- a/githubkit/versions/v2022_11_28/types/group_0590.py +++ b/githubkit/versions/v2022_11_28/types/group_0590.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 NotRequired, TypedDict -from .group_0585 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType +from .group_0446 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/v2022_11_28/types/group_0591.py b/githubkit/versions/v2022_11_28/types/group_0591.py index d6abb993b..d8cf5d832 100644 --- a/githubkit/versions/v2022_11_28/types/group_0591.py +++ b/githubkit/versions/v2022_11_28/types/group_0591.py @@ -9,29 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType -from .group_0444 import WebhooksIssueType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0592 import WebhookIssuesClosedPropIssueType -class WebhookIssuesAssignedType(TypedDict): - """issues assigned event""" +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" - action: Literal["assigned"] - assignee: NotRequired[Union[WebhooksUserType, None]] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType + issue: WebhookIssuesClosedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesAssignedType",) +__all__ = ("WebhookIssuesClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0592.py b/githubkit/versions/v2022_11_28/types/group_0592.py index 951f54896..f0b5229a3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0592.py +++ b/githubkit/versions/v2022_11_28/types/group_0592.py @@ -9,27 +9,183 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0593 import WebhookIssuesClosedPropIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType +from .group_0598 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0600 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0601 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + 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[SubIssuesSummaryType] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssuesClosedPropIssueMergedUserType -__all__ = ("WebhookIssuesClosedType",) + +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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0593.py b/githubkit/versions/v2022_11_28/types/group_0593.py index 5ea03a092..290031372 100644 --- a/githubkit/versions/v2022_11_28/types/group_0593.py +++ b/githubkit/versions/v2022_11_28/types/group_0593.py @@ -13,26 +13,28 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType -from .group_0599 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0601 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0602 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType +from .group_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0597 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0598 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue +class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): + """Issue 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 + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -43,7 +45,7 @@ class WebhookIssuesClosedPropIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[Union[str, None], None] + body: Union[str, None] closed_at: Union[datetime, None] comments: int comments_url: str @@ -52,33 +54,31 @@ class WebhookIssuesClosedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] + labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] ] pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueMergedReactionsType + reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: WebhookIssuesClosedPropIssueMergedUserType + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -104,8 +104,8 @@ class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignees""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -131,8 +131,8 @@ class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" color: str default: bool @@ -143,8 +143,8 @@ class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" plus_one: int minus_one: int @@ -158,8 +158,8 @@ class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -186,10 +186,10 @@ class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): __all__ = ( - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", - "WebhookIssuesClosedPropIssueType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", + "WebhookIssuesClosedPropIssueAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0594.py b/githubkit/versions/v2022_11_28/types/group_0594.py index 046857883..2a05f2e97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0594.py +++ b/githubkit/versions/v2022_11_28/types/group_0594.py @@ -9,160 +9,11 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType -from .group_0596 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0598 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -from .group_0599 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, -) - -class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] - - -class 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): +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -189,11 +40,4 @@ class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): user_view_type: NotRequired[str] -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", - "WebhookIssuesClosedPropIssueAllof0Type", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0595.py b/githubkit/versions/v2022_11_28/types/group_0595.py index 2a05f2e97..9e1c0eb9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0595.py +++ b/githubkit/versions/v2022_11_28/types/group_0595.py @@ -9,35 +9,35 @@ 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_0594 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -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 WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + 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] + 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__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0596.py b/githubkit/versions/v2022_11_28/types/group_0596.py index 049a3453e..77496d06f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0596.py +++ b/githubkit/versions/v2022_11_28/types/group_0596.py @@ -9,35 +9,85 @@ 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_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +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 WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - A collection of related issues and pull requests. +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + 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__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0597.py b/githubkit/versions/v2022_11_28/types/group_0597.py index 77496d06f..6bdddd3a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0597.py +++ b/githubkit/versions/v2022_11_28/types/group_0597.py @@ -9,85 +9,41 @@ 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] +from .group_0596 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The set of permissions for the 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. """ - 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", -) + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0598.py b/githubkit/versions/v2022_11_28/types/group_0598.py index 90cb2c500..46a9659b2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0598.py +++ b/githubkit/versions/v2022_11_28/types/group_0598.py @@ -13,37 +13,15 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0597 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) + +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] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0599.py b/githubkit/versions/v2022_11_28/types/group_0599.py index 2fe4e0efb..06e71289d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0599.py +++ b/githubkit/versions/v2022_11_28/types/group_0599.py @@ -9,30 +9,118 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" - diff_url: NotRequired[str] + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] + ] + assignees: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: Union[str, None] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + ] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - total: int - completed: int - percent_completed: int + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", + "WebhookIssuesClosedPropIssueAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0600.py b/githubkit/versions/v2022_11_28/types/group_0600.py index 06e71289d..97f9db401 100644 --- a/githubkit/versions/v2022_11_28/types/group_0600.py +++ b/githubkit/versions/v2022_11_28/types/group_0600.py @@ -9,118 +9,32 @@ 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_0594 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] +class 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 + 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 WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", - "WebhookIssuesClosedPropIssueAllof1Type", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0601.py b/githubkit/versions/v2022_11_28/types/group_0601.py index 35027f53c..19a5beef6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0601.py +++ b/githubkit/versions/v2022_11_28/types/group_0601.py @@ -10,31 +10,34 @@ 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_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0596 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - 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 + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0602.py b/githubkit/versions/v2022_11_28/types/group_0602.py index 60add9b97..25d36e74b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0602.py +++ b/githubkit/versions/v2022_11_28/types/group_0602.py @@ -9,35 +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_0597 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",) +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0603 import WebhookIssuesDeletedPropIssueType + + +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssuesDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0603.py b/githubkit/versions/v2022_11_28/types/group_0603.py index 00399d9b8..445e2744e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0603.py +++ b/githubkit/versions/v2022_11_28/types/group_0603.py @@ -9,27 +9,346 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0604 import WebhookIssuesDeletedPropIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" +class WebhookIssuesDeletedPropIssueType(TypedDict): + """Issue - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesDeletedType",) + +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class 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", + "WebhookIssuesDeletedPropIssuePropUserType", + "WebhookIssuesDeletedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0604.py b/githubkit/versions/v2022_11_28/types/group_0604.py index 6c67f12d6..bb894818a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0604.py +++ b/githubkit/versions/v2022_11_28/types/group_0604.py @@ -9,356 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0447 import WebhooksMilestoneType +from .group_0605 import WebhookIssuesDemilestonedPropIssueType -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["demilestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhooksMilestoneType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - 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", -) +__all__ = ("WebhookIssuesDemilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0605.py b/githubkit/versions/v2022_11_28/types/group_0605.py index aebf81320..286653562 100644 --- a/githubkit/versions/v2022_11_28/types/group_0605.py +++ b/githubkit/versions/v2022_11_28/types/group_0605.py @@ -9,29 +9,352 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0445 import WebhooksMilestoneType -from .group_0606 import WebhookIssuesDemilestonedPropIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" +class WebhookIssuesDemilestonedPropIssueType(TypedDict): + """Issue - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhooksMilestoneType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesDemilestonedType",) + +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 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", + "WebhookIssuesDemilestonedPropIssuePropUserType", + "WebhookIssuesDemilestonedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0606.py b/githubkit/versions/v2022_11_28/types/group_0606.py index 90692d80c..efde48c1c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0606.py +++ b/githubkit/versions/v2022_11_28/types/group_0606.py @@ -9,362 +9,57 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0441 import WebhooksLabelType +from .group_0607 import WebhookIssuesEditedPropIssueType -class WebhookIssuesDemilestonedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +class 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 WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges - -class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + The changes to the issue. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[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 + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" - total: int - completed: int - percent_completed: int + from_: str -class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): - """User""" +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: str __all__ = ( - "WebhookIssuesDemilestonedPropIssuePropAssigneeType", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssuePropMilestoneType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssuePropPullRequestType", - "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDemilestonedPropIssuePropUserType", - "WebhookIssuesDemilestonedPropIssueType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0607.py b/githubkit/versions/v2022_11_28/types/group_0607.py index ed44de305..9d5730abe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0607.py +++ b/githubkit/versions/v2022_11_28/types/group_0607.py @@ -9,57 +9,345 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0439 import WebhooksLabelType -from .group_0608 import WebhookIssuesEditedPropIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesEditedType(TypedDict): - """issues edited event""" +class WebhookIssuesEditedPropIssueType(TypedDict): + """Issue - action: Literal["edited"] - changes: WebhookIssuesEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesEditedPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] + + +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - The changes to the issue. +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. """ - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" +class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): + """Reactions""" - from_: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" +class WebhookIssuesEditedPropIssuePropUserType(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", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedType", + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropUserType", + "WebhookIssuesEditedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0608.py b/githubkit/versions/v2022_11_28/types/group_0608.py index ffdbba456..ea48463bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0608.py +++ b/githubkit/versions/v2022_11_28/types/group_0608.py @@ -9,355 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0441 import WebhooksLabelType +from .group_0609 import WebhookIssuesLabeledPropIssueType -class WebhookIssuesEditedPropIssueType(TypedDict): - """Issue +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["labeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhooksLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesEditedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesEditedPropIssuePropUserType, None] - -class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesEditedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesEditedPropIssuePropUserType", - "WebhookIssuesEditedPropIssueType", -) +__all__ = ("WebhookIssuesLabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0609.py b/githubkit/versions/v2022_11_28/types/group_0609.py index 2182cd921..2c576fc69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0609.py +++ b/githubkit/versions/v2022_11_28/types/group_0609.py @@ -9,29 +9,345 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0439 import WebhooksLabelType -from .group_0610 import WebhookIssuesLabeledPropIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" +class WebhookIssuesLabeledPropIssueType(TypedDict): + """Issue - action: Literal["labeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] -__all__ = ("WebhookIssuesLabeledType",) + +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 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", + "WebhookIssuesLabeledPropIssuePropUserType", + "WebhookIssuesLabeledPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0610.py b/githubkit/versions/v2022_11_28/types/group_0610.py index e112e16be..418e5538e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0610.py +++ b/githubkit/versions/v2022_11_28/types/group_0610.py @@ -9,355 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0611 import WebhookIssuesLockedPropIssueType -class WebhookIssuesLabeledPropIssueType(TypedDict): - """Issue +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["locked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLockedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] - -class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLabeledPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLabeledPropIssuePropUserType", - "WebhookIssuesLabeledPropIssueType", -) +__all__ = ("WebhookIssuesLockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0611.py b/githubkit/versions/v2022_11_28/types/group_0611.py index ac50648c7..be3196c9f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0611.py +++ b/githubkit/versions/v2022_11_28/types/group_0611.py @@ -9,27 +9,348 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0612 import WebhookIssuesLockedPropIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" +class WebhookIssuesLockedPropIssueType(TypedDict): + """Issue - action: Literal["locked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesLockedType",) + +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 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", + "WebhookIssuesLockedPropIssuePropUserType", + "WebhookIssuesLockedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0612.py b/githubkit/versions/v2022_11_28/types/group_0612.py index f1fda9511..f8ff97b3b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0612.py +++ b/githubkit/versions/v2022_11_28/types/group_0612.py @@ -9,358 +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_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0447 import WebhooksMilestoneType +from .group_0613 import WebhookIssuesMilestonedPropIssueType -class WebhookIssuesLockedPropIssueType(TypedDict): - """Issue +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["milestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] - reactions: WebhookIssuesLockedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLockedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLockedPropIssuePropUserType, None] - -class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class 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", -) +__all__ = ("WebhookIssuesMilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0613.py b/githubkit/versions/v2022_11_28/types/group_0613.py index e9b58442a..488908bef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0613.py +++ b/githubkit/versions/v2022_11_28/types/group_0613.py @@ -9,29 +9,346 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0445 import WebhooksMilestoneType -from .group_0614 import WebhookIssuesMilestonedPropIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" +class WebhookIssuesMilestonedPropIssueType(TypedDict): + """Issue - action: Literal["milestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesMilestonedType",) + +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 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", + "WebhookIssuesMilestonedPropIssuePropUserType", + "WebhookIssuesMilestonedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0614.py b/githubkit/versions/v2022_11_28/types/group_0614.py index 99cc40cfc..b11fff0e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0614.py +++ b/githubkit/versions/v2022_11_28/types/group_0614.py @@ -9,356 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0615 import WebhookIssuesOpenedPropChangesType +from .group_0617 import WebhookIssuesOpenedPropIssueType -class WebhookIssuesMilestonedPropIssueType(TypedDict): - """Issue +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesOpenedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] - -class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssuePropAssigneeType", - "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssuePropMilestoneType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssuePropPullRequestType", - "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesMilestonedPropIssuePropUserType", - "WebhookIssuesMilestonedPropIssueType", -) +__all__ = ("WebhookIssuesOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0615.py b/githubkit/versions/v2022_11_28/types/group_0615.py index 99c519232..276304ff6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0615.py +++ b/githubkit/versions/v2022_11_28/types/group_0615.py @@ -9,29 +9,189 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0616 import WebhookIssuesOpenedPropChangesType -from .group_0618 import WebhookIssuesOpenedPropIssueType +from .group_0616 import WebhookIssuesOpenedPropChangesPropOldIssueType -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType -__all__ = ("WebhookIssuesOpenedType",) +class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_discussions: NotRequired[bool] + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0616.py b/githubkit/versions/v2022_11_28/types/group_0616.py index 4211d2fe2..622d1e117 100644 --- a/githubkit/versions/v2022_11_28/types/group_0616.py +++ b/githubkit/versions/v2022_11_28/types/group_0616.py @@ -10,147 +10,239 @@ 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_0617 import WebhookIssuesOpenedPropChangesPropOldIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: NotRequired[ + Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: NotRequired[ + list[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None + ] + ] + ] + author_association: NotRequired[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[datetime, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[datetime] + draft: NotRequired[bool] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: int + labels: NotRequired[ + list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + ] + node_id: NotRequired[str] + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + ] + reactions: NotRequired[WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType] + repository_url: NotRequired[str] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[datetime] + url: NotRequired[str] + user: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] + ] + type: NotRequired[Union[IssueTypeType, None]] + + +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 WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): - """Repository - A git repository +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - 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 + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None ] - 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 + due_on: Union[datetime, None] 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 + number: int 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 + state: Literal["open", "closed"] + title: str updated_at: datetime url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] -WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): + """User""" -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): - """License""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): + """App - key: str + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - spdx_id: str - url: Union[str, None] + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -177,21 +269,115 @@ class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[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 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 WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0617.py b/githubkit/versions/v2022_11_28/types/group_0617.py index 300fe178c..e40f19789 100644 --- a/githubkit/versions/v2022_11_28/types/group_0617.py +++ b/githubkit/versions/v2022_11_28/types/group_0617.py @@ -13,86 +13,64 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): +class WebhookIssuesOpenedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - active_lock_reason: NotRequired[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - assignees: NotRequired[ - list[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None - ] - ] - ] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[datetime, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[datetime] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime draft: NotRequired[bool] - events_url: NotRequired[str] - html_url: NotRequired[str] + events_url: str + html_url: str id: int - labels: NotRequired[ - list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] - ] - labels_url: NotRequired[str] + labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels_url: str locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] - ] - node_id: NotRequired[str] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType - ] - reactions: NotRequired[WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType] - repository_url: NotRequired[str] - sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] ] + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[datetime] - url: NotRequired[str] - user: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] - ] + title: str type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -119,7 +97,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -146,7 +124,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -158,7 +136,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): +class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -167,9 +145,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -184,7 +160,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -206,14 +182,12 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(Typ 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 WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -231,19 +205,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -270,11 +241,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -296,7 +266,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer 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"]] @@ -316,8 +286,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -326,7 +296,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): +class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -341,15 +311,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): +class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -377,17 +339,16 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0618.py b/githubkit/versions/v2022_11_28/types/group_0618.py index 738b7ad00..634373143 100644 --- a/githubkit/versions/v2022_11_28/types/group_0618.py +++ b/githubkit/versions/v2022_11_28/types/group_0618.py @@ -9,356 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0448 import WebhooksIssue2Type -class WebhookIssuesOpenedPropIssueType(TypedDict): - """Issue +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["pinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssue2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] - -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropIssueType", -) +__all__ = ("WebhookIssuesPinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0619.py b/githubkit/versions/v2022_11_28/types/group_0619.py index e6687fb2c..5d71090cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0619.py +++ b/githubkit/versions/v2022_11_28/types/group_0619.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0446 import WebhooksIssue2Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0620 import WebhookIssuesReopenedPropIssueType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["pinned"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesPinnedType",) +__all__ = ("WebhookIssuesReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0620.py b/githubkit/versions/v2022_11_28/types/group_0620.py index 38a0e5411..4e90b1fbb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0620.py +++ b/githubkit/versions/v2022_11_28/types/group_0620.py @@ -9,27 +9,346 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0621 import WebhookIssuesReopenedPropIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookIssuesReopenedPropIssueType(TypedDict): + """Issue - action: Literal["reopened"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + type: NotRequired[Union[IssueTypeType, None]] -__all__ = ("WebhookIssuesReopenedType",) + +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 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", + "WebhookIssuesReopenedPropIssuePropUserType", + "WebhookIssuesReopenedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0621.py b/githubkit/versions/v2022_11_28/types/group_0621.py index 09ef2d552..0512685cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0621.py +++ b/githubkit/versions/v2022_11_28/types/group_0621.py @@ -9,356 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0448 import WebhooksIssue2Type +from .group_0622 import WebhookIssuesTransferredPropChangesType -class WebhookIssuesReopenedPropIssueType(TypedDict): - """Issue +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssue2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] - reactions: WebhookIssuesReopenedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] - type: NotRequired[Union[IssueTypeType, None]] - -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", -) +__all__ = ("WebhookIssuesTransferredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0622.py b/githubkit/versions/v2022_11_28/types/group_0622.py index 2f21d8f87..97b7bf625 100644 --- a/githubkit/versions/v2022_11_28/types/group_0622.py +++ b/githubkit/versions/v2022_11_28/types/group_0622.py @@ -9,29 +9,193 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0446 import WebhooksIssue2Type -from .group_0623 import WebhookIssuesTransferredPropChangesType +from .group_0623 import WebhookIssuesTransferredPropChangesPropNewIssueType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType -__all__ = ("WebhookIssuesTransferredType",) +class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0623.py b/githubkit/versions/v2022_11_28/types/group_0623.py index 9688d13b9..981e7cdb4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0623.py +++ b/githubkit/versions/v2022_11_28/types/group_0623.py @@ -10,149 +10,236 @@ 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_0624 import WebhookIssuesTransferredPropChangesPropNewIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): + """Issue - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType + 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[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] -class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): - """Repository +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): + """User""" - A git repository + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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. """ - 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 + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, + None, ] - 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 + due_on: Union[datetime, None] 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 + number: int open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str + state: Literal["open", "closed"] + title: str updated_at: datetime url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] -WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( + TypedDict +): + """User""" -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): - """License""" +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. + """ - key: str + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - spdx_id: str - url: Union[str, None] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -179,23 +266,115 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDic user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + """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 - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + +class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0624.py b/githubkit/versions/v2022_11_28/types/group_0624.py index 1a24db3d7..a110a145b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0624.py +++ b/githubkit/versions/v2022_11_28/types/group_0624.py @@ -9,384 +9,29 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0044 import IssueTypeType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0446 import WebhooksIssueType -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): - """Issue +class WebhookIssuesTypedType(TypedDict): + """issues typed event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["typed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssueType + type: Union[IssueTypeType, None] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: list[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType - ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( - TypedDict -): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", -) +__all__ = ("WebhookIssuesTypedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0625.py b/githubkit/versions/v2022_11_28/types/group_0625.py index af94c9d0a..c86f6669c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0625.py +++ b/githubkit/versions/v2022_11_28/types/group_0625.py @@ -13,25 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0043 import IssueTypeType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0444 import WebhooksIssueType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0446 import WebhooksIssueType +from .group_0449 import WebhooksUserMannequinType -class WebhookIssuesTypedType(TypedDict): - """issues typed event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["typed"] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] issue: WebhooksIssueType - type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesTypedType",) +__all__ = ("WebhookIssuesUnassignedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0626.py b/githubkit/versions/v2022_11_28/types/group_0626.py index ef2d2eed6..0f57a361b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0626.py +++ b/githubkit/versions/v2022_11_28/types/group_0626.py @@ -9,29 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0444 import WebhooksIssueType -from .group_0447 import WebhooksUserMannequinType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0441 import WebhooksLabelType +from .group_0446 import WebhooksIssueType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] issue: WebhooksIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnassignedType",) +__all__ = ("WebhookIssuesUnlabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0627.py b/githubkit/versions/v2022_11_28/types/group_0627.py index b20fbad3a..926fe28f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0627.py +++ b/githubkit/versions/v2022_11_28/types/group_0627.py @@ -13,25 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0439 import WebhooksLabelType -from .group_0444 import WebhooksIssueType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0628 import WebhookIssuesUnlockedPropIssueType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" - action: Literal["unlabeled"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - label: NotRequired[WebhooksLabelType] + issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnlabeledType",) +__all__ = ("WebhookIssuesUnlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0628.py b/githubkit/versions/v2022_11_28/types/group_0628.py index 5fcab2372..567381d1b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0628.py +++ b/githubkit/versions/v2022_11_28/types/group_0628.py @@ -9,27 +9,348 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0629 import WebhookIssuesUnlockedPropIssueType +from .group_0044 import IssueTypeType +from .group_0046 import SubIssuesSummaryType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookIssuesUnlockedPropIssueType(TypedDict): + """Issue - action: Literal["unlocked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[False] + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[SubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesUnlockedType",) + +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 + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class 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 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 + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: 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__ = ( + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropUserType", + "WebhookIssuesUnlockedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0629.py b/githubkit/versions/v2022_11_28/types/group_0629.py index d3ffa08b5..2b5d603c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0629.py +++ b/githubkit/versions/v2022_11_28/types/group_0629.py @@ -9,358 +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_0043 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0448 import WebhooksIssue2Type -class WebhookIssuesUnlockedPropIssueType(TypedDict): - """Issue +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["unpinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssue2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: Literal[False] - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] - -class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class 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 - owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class 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 - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: 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__ = ( - "WebhookIssuesUnlockedPropIssuePropAssigneeType", - "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlockedPropIssuePropMilestoneType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssuePropPullRequestType", - "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesUnlockedPropIssuePropUserType", - "WebhookIssuesUnlockedPropIssueType", -) +__all__ = ("WebhookIssuesUnpinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0630.py b/githubkit/versions/v2022_11_28/types/group_0630.py index f85822108..94311536f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0630.py +++ b/githubkit/versions/v2022_11_28/types/group_0630.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0446 import WebhooksIssue2Type +from .group_0044 import IssueTypeType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0446 import WebhooksIssueType -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookIssuesUntypedType(TypedDict): + """issues untyped event""" - action: Literal["unpinned"] + action: Literal["untyped"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhooksIssueType + type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnpinnedType",) +__all__ = ("WebhookIssuesUntypedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0631.py b/githubkit/versions/v2022_11_28/types/group_0631.py index 83b0b4a6e..aefae8984 100644 --- a/githubkit/versions/v2022_11_28/types/group_0631.py +++ b/githubkit/versions/v2022_11_28/types/group_0631.py @@ -9,29 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0043 import IssueTypeType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0444 import WebhooksIssueType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0441 import WebhooksLabelType -class WebhookIssuesUntypedType(TypedDict): - """issues untyped event""" +class WebhookLabelCreatedType(TypedDict): + """label created event""" - action: Literal["untyped"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - type: Union[IssueTypeType, None] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookIssuesUntypedType",) +__all__ = ("WebhookLabelCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0632.py b/githubkit/versions/v2022_11_28/types/group_0632.py index 3f5dcfb2d..fa202ec35 100644 --- a/githubkit/versions/v2022_11_28/types/group_0632.py +++ b/githubkit/versions/v2022_11_28/types/group_0632.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0439 import WebhooksLabelType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0441 import WebhooksLabelType -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookLabelCreatedType",) +__all__ = ("WebhookLabelDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0633.py b/githubkit/versions/v2022_11_28/types/group_0633.py index 2afd50e69..3be7c115b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0633.py +++ b/githubkit/versions/v2022_11_28/types/group_0633.py @@ -13,17 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0439 import WebhooksLabelType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0441 import WebhooksLabelType -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" +class WebhookLabelEditedType(TypedDict): + """label edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[WebhookLabelEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] label: WebhooksLabelType @@ -32,4 +33,39 @@ class WebhookLabelDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookLabelDeletedType",) +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + + +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str + + +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0634.py b/githubkit/versions/v2022_11_28/types/group_0634.py index 120c73efc..848af2aa6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0634.py +++ b/githubkit/versions/v2022_11_28/types/group_0634.py @@ -13,59 +13,26 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0439 import WebhooksLabelType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0450 import WebhooksMarketplacePurchaseType +from .group_0451 import WebhooksPreviousMarketplacePurchaseType -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] + action: Literal["cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + repository: NotRequired[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__ = ("WebhookMarketplacePurchaseCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0635.py b/githubkit/versions/v2022_11_28/types/group_0635.py index 91c37aaf1..9afc131e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0635.py +++ b/githubkit/versions/v2022_11_28/types/group_0635.py @@ -9,30 +9,78 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0448 import WebhooksMarketplacePurchaseType -from .group_0449 import WebhooksPreviousMarketplacePurchaseType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0450 import WebhooksMarketplacePurchaseType -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" - action: Literal["cancelled"] + action: Literal["changed"] effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + ] repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchaseCancelledType",) +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_0636.py b/githubkit/versions/v2022_11_28/types/group_0636.py index d9fce0961..0a3e20e2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0636.py +++ b/githubkit/versions/v2022_11_28/types/group_0636.py @@ -13,47 +13,49 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0448 import WebhooksMarketplacePurchaseType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0450 import WebhooksMarketplacePurchaseType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - action: Literal["changed"] + action: Literal["pending_change"] effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType ] repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): """Marketplace Purchase""" - account: ( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType - ) + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType 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 + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType unit_count: int -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( TypedDict ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ id: int login: str @@ -62,10 +64,10 @@ class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccoun type: str -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( TypedDict ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" bullets: list[str] description: str @@ -79,8 +81,8 @@ class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanTy __all__ = ( - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0637.py b/githubkit/versions/v2022_11_28/types/group_0637.py index 094b9816a..cfaba2db8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0637.py +++ b/githubkit/versions/v2022_11_28/types/group_0637.py @@ -13,48 +13,48 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0448 import WebhooksMarketplacePurchaseType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0451 import WebhooksPreviousMarketplacePurchaseType -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["pending_change"] + action: Literal["pending_change_cancelled"] effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( TypedDict ): """Marketplace Purchase""" - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] + free_trial_ends_on: None + next_billing_date: Union[str, None] on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType unit_count: int -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( TypedDict ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt """ id: int @@ -64,10 +64,10 @@ class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseProp type: str -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( TypedDict ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" bullets: list[str] description: str @@ -81,8 +81,8 @@ class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseProp __all__ = ( - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0638.py b/githubkit/versions/v2022_11_28/types/group_0638.py index 863bca357..c8a625ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0638.py +++ b/githubkit/versions/v2022_11_28/types/group_0638.py @@ -9,80 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0449 import WebhooksPreviousMarketplacePurchaseType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0450 import WebhooksMarketplacePurchaseType +from .group_0451 import WebhooksPreviousMarketplacePurchaseType -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["pending_change_cancelled"] + action: Literal["purchased"] effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[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__ = ("WebhookMarketplacePurchasePurchasedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0639.py b/githubkit/versions/v2022_11_28/types/group_0639.py index f1dd35c81..c204ad3bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0639.py +++ b/githubkit/versions/v2022_11_28/types/group_0639.py @@ -9,30 +9,64 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0448 import WebhooksMarketplacePurchaseType -from .group_0449 import WebhooksPreviousMarketplacePurchaseType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookMemberAddedType(TypedDict): + """member added event""" - action: Literal["purchased"] - effective_date: str + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchasePurchasedType",) +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_0640.py b/githubkit/versions/v2022_11_28/types/group_0640.py index 412e21397..a3857cd03 100644 --- a/githubkit/versions/v2022_11_28/types/group_0640.py +++ b/githubkit/versions/v2022_11_28/types/group_0640.py @@ -13,18 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookMemberEditedType(TypedDict): + """member edited event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] member: Union[WebhooksUserType, None] @@ -33,40 +33,32 @@ class WebhookMemberAddedType(TypedDict): sender: SimpleUserType -class WebhookMemberAddedPropChangesType(TypedDict): - """WebhookMemberAddedPropChanges""" - - permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] - role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges + The changes to the collaborator permissions + """ -class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): - """WebhookMemberAddedPropChangesPropPermission + old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] + permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] - 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 WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropOldPermission""" + from_: str -class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): - """WebhookMemberAddedPropChangesPropRoleName - The role assigned to the collaborator. - """ +class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropPermission""" - to: str + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedType", + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0641.py b/githubkit/versions/v2022_11_28/types/group_0641.py index 00fd442a9..9d71d2bf0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0641.py +++ b/githubkit/versions/v2022_11_28/types/group_0641.py @@ -13,18 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookMemberRemovedType(TypedDict): + """member removed event""" - action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] member: Union[WebhooksUserType, None] @@ -33,32 +32,4 @@ class WebhookMemberEditedType(TypedDict): 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__ = ("WebhookMemberRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0642.py b/githubkit/versions/v2022_11_28/types/group_0642.py index 040744b52..6d4fccee9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0642.py +++ b/githubkit/versions/v2022_11_28/types/group_0642.py @@ -12,24 +12,56 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType +from .group_0452 import WebhooksTeamType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookMembershipAddedType(TypedDict): + """membership added event""" - action: Literal["removed"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] member: Union[WebhooksUserType, None] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMemberRemovedType",) +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_0643.py b/githubkit/versions/v2022_11_28/types/group_0643.py index 8abd8facc..6ee9d38ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0643.py +++ b/githubkit/versions/v2022_11_28/types/group_0643.py @@ -12,29 +12,29 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType -from .group_0450 import WebhooksTeamType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType +from .group_0452 import WebhooksTeamType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" - action: Literal["added"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] member: Union[WebhooksUserType, None] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] team: WebhooksTeamType -class WebhookMembershipAddedPropSenderType(TypedDict): +class WebhookMembershipRemovedPropSenderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -62,6 +62,6 @@ class WebhookMembershipAddedPropSenderType(TypedDict): __all__ = ( - "WebhookMembershipAddedPropSenderType", - "WebhookMembershipAddedType", + "WebhookMembershipRemovedPropSenderType", + "WebhookMembershipRemovedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0644.py b/githubkit/versions/v2022_11_28/types/group_0644.py index e4ee84890..bec6bffea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0644.py +++ b/githubkit/versions/v2022_11_28/types/group_0644.py @@ -9,59 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType -from .group_0450 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0453 import MergeGroupType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - action: Literal["removed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["checks_requested"] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + merge_group: MergeGroupType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhooksTeamType + sender: NotRequired[SimpleUserType] -class WebhookMembershipRemovedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookMembershipRemovedPropSenderType", - "WebhookMembershipRemovedType", -) +__all__ = ("WebhookMergeGroupChecksRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0645.py b/githubkit/versions/v2022_11_28/types/group_0645.py index 3958366ab..0ecea8aee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0645.py +++ b/githubkit/versions/v2022_11_28/types/group_0645.py @@ -13,16 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0451 import MergeGroupType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0453 import MergeGroupType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - action: Literal["checks_requested"] + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] installation: NotRequired[SimpleInstallationType] merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +31,4 @@ class WebhookMergeGroupChecksRequestedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMergeGroupChecksRequestedType",) +__all__ = ("WebhookMergeGroupDestroyedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0646.py b/githubkit/versions/v2022_11_28/types/group_0646.py index 6549f9c80..f36fb1d11 100644 --- a/githubkit/versions/v2022_11_28/types/group_0646.py +++ b/githubkit/versions/v2022_11_28/types/group_0646.py @@ -9,26 +9,57 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0451 import MergeGroupType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMergeGroupDestroyedType",) +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + + The deleted 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_0647.py b/githubkit/versions/v2022_11_28/types/group_0647.py index 43e8e6e22..b3ac300f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0647.py +++ b/githubkit/versions/v2022_11_28/types/group_0647.py @@ -9,57 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0447 import WebhooksMilestoneType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["deleted"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int installation: NotRequired[SimpleInstallationType] + milestone: WebhooksMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook - - The deleted webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: list[str] - id: int - name: str - type: str - updated_at: str - - -class WebhookMetaDeletedPropHookPropConfigType(TypedDict): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] - insecure_ssl: str - secret: NotRequired[str] - url: str - - -__all__ = ( - "WebhookMetaDeletedPropHookPropConfigType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedType", -) +__all__ = ("WebhookMilestoneClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0648.py b/githubkit/versions/v2022_11_28/types/group_0648.py index 77e165b03..28927cfc6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0648.py +++ b/githubkit/versions/v2022_11_28/types/group_0648.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0445 import WebhooksMilestoneType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0454 import WebhooksMilestone3Type -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["closed"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + milestone: WebhooksMilestone3Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMilestoneClosedType",) +__all__ = ("WebhookMilestoneCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0649.py b/githubkit/versions/v2022_11_28/types/group_0649.py index bbe0c79dd..3bd1bb86b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0649.py +++ b/githubkit/versions/v2022_11_28/types/group_0649.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0452 import WebhooksMilestone3Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0447 import WebhooksMilestoneType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type + milestone: WebhooksMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMilestoneCreatedType",) +__all__ = ("WebhookMilestoneDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0650.py b/githubkit/versions/v2022_11_28/types/group_0650.py index ba31a82c4..358268466 100644 --- a/githubkit/versions/v2022_11_28/types/group_0650.py +++ b/githubkit/versions/v2022_11_28/types/group_0650.py @@ -13,17 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0445 import WebhooksMilestoneType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0447 import WebhooksMilestoneType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] milestone: WebhooksMilestoneType @@ -32,4 +33,39 @@ class WebhookMilestoneDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookMilestoneDeletedType",) +class WebhookMilestoneEditedPropChangesType(TypedDict): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] + due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] + title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] + + +class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookMilestoneEditedPropChangesPropDescriptionType", + "WebhookMilestoneEditedPropChangesPropDueOnType", + "WebhookMilestoneEditedPropChangesPropTitleType", + "WebhookMilestoneEditedPropChangesType", + "WebhookMilestoneEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0651.py b/githubkit/versions/v2022_11_28/types/group_0651.py index 6bef54a90..d4d139ec9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0651.py +++ b/githubkit/versions/v2022_11_28/types/group_0651.py @@ -13,59 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0445 import WebhooksMilestoneType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0454 import WebhooksMilestone3Type -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + milestone: WebhooksMilestone3Type 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 - - -__all__ = ( - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedType", -) +__all__ = ("WebhookMilestoneOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0652.py b/githubkit/versions/v2022_11_28/types/group_0652.py index 459bdc94d..ecd205d92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0652.py +++ b/githubkit/versions/v2022_11_28/types/group_0652.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0452 import WebhooksMilestone3Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" - action: Literal["opened"] + action: Literal["blocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookMilestoneOpenedType",) +__all__ = ("WebhookOrgBlockBlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0653.py b/githubkit/versions/v2022_11_28/types/group_0653.py index ab09cfe3e..a7722b35a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0653.py +++ b/githubkit/versions/v2022_11_28/types/group_0653.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" - action: Literal["blocked"] + action: Literal["unblocked"] blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookOrgBlockBlockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookOrgBlockBlockedType",) +__all__ = ("WebhookOrgBlockUnblockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0654.py b/githubkit/versions/v2022_11_28/types/group_0654.py index f30f2b1c0..4bff7a969 100644 --- a/githubkit/versions/v2022_11_28/types/group_0654.py +++ b/githubkit/versions/v2022_11_28/types/group_0654.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0455 import WebhooksMembershipType -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" - action: Literal["unblocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhooksMembershipType] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookOrgBlockUnblockedType",) +__all__ = ("WebhookOrganizationDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0655.py b/githubkit/versions/v2022_11_28/types/group_0655.py index 8e41dc504..86f8bed05 100644 --- a/githubkit/versions/v2022_11_28/types/group_0655.py +++ b/githubkit/versions/v2022_11_28/types/group_0655.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0453 import WebhooksMembershipType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0455 import WebhooksMembershipType -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" - action: Literal["deleted"] + action: Literal["member_added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] + membership: WebhooksMembershipType organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookOrganizationDeletedType",) +__all__ = ("WebhookOrganizationMemberAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0656.py b/githubkit/versions/v2022_11_28/types/group_0656.py index 37a1311ae..2649ac134 100644 --- a/githubkit/versions/v2022_11_28/types/group_0656.py +++ b/githubkit/versions/v2022_11_28/types/group_0656.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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0453 import WebhooksMembershipType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" - action: Literal["member_added"] + action: Literal["member_invited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType + invitation: WebhookOrganizationMemberInvitedPropInvitationType organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType + user: NotRequired[Union[WebhooksUserType, None]] -__all__ = ("WebhookOrganizationMemberAddedType",) +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/v2022_11_28/types/group_0657.py b/githubkit/versions/v2022_11_28/types/group_0657.py index 5a3835909..0cb10d0ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0657.py +++ b/githubkit/versions/v2022_11_28/types/group_0657.py @@ -9,80 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0455 import WebhooksMembershipType -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" - action: Literal["member_invited"] + action: Literal["member_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType + membership: WebhooksMembershipType organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - user: NotRequired[Union[WebhooksUserType, None]] -class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): - """WebhookOrganizationMemberInvitedPropInvitation - - The invitation for the user or email if the action is `member_invited`. - """ - - created_at: 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__ = ("WebhookOrganizationMemberRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0658.py b/githubkit/versions/v2022_11_28/types/group_0658.py index 079cd7769..eac5c37d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0658.py +++ b/githubkit/versions/v2022_11_28/types/group_0658.py @@ -13,23 +13,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0453 import WebhooksMembershipType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0455 import WebhooksMembershipType -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" - action: Literal["member_removed"] + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType + membership: NotRequired[WebhooksMembershipType] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberRemovedType",) +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookOrganizationRenamedPropChangesPropLoginType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0659.py b/githubkit/versions/v2022_11_28/types/group_0659.py index aa42a7609..fbf589490 100644 --- a/githubkit/versions/v2022_11_28/types/group_0659.py +++ b/githubkit/versions/v2022_11_28/types/group_0659.py @@ -9,44 +9,44 @@ 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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0453 import WebhooksMembershipType +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" + 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] - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" + version: NotRequired[str] - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] +WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropMetadata +""" -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" - from_: NotRequired[str] +WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropDependenciesItems +""" __all__ = ( - "WebhookOrganizationRenamedPropChangesPropLoginType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedType", + "WebhookRubygemsMetadataPropDependenciesItemsType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0660.py b/githubkit/versions/v2022_11_28/types/group_0660.py index fbf589490..6a96df969 100644 --- a/githubkit/versions/v2022_11_28/types/group_0660.py +++ b/githubkit/versions/v2022_11_28/types/group_0660.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0661 import WebhookPackagePublishedPropPackageType -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 WebhookPackagePublishedType(TypedDict): + """package published event""" + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackagePublishedPropPackageType + 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__ = ("WebhookPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0661.py b/githubkit/versions/v2022_11_28/types/group_0661.py index f2b30ed0a..8b4e793bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0661.py +++ b/githubkit/versions/v2022_11_28/types/group_0661.py @@ -9,27 +9,73 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0662 import WebhookPackagePublishedPropPackageType +from .group_0662 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + 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__ = ("WebhookPackagePublishedType",) + +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_0662.py b/githubkit/versions/v2022_11_28/types/group_0662.py index fec61be92..44cc3dd3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0662.py +++ b/githubkit/versions/v2022_11_28/types/group_0662.py @@ -9,35 +9,79 @@ 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_0663 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0659 import WebhookRubygemsMetadataType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - Information about the package. - """ - - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str + 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 - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] + 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 WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -64,18 +108,396 @@ class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" +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 + """ - about_url: str + +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 - type: 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 - vendor: 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__ = ( - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", - "WebhookPackagePublishedPropPackageType", + "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_0663.py b/githubkit/versions/v2022_11_28/types/group_0663.py index 5121006fd..2ebad7063 100644 --- a/githubkit/versions/v2022_11_28/types/group_0663.py +++ b/githubkit/versions/v2022_11_28/types/group_0663.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_0660 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0664 import WebhookPackageUpdatedPropPackageType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" +class WebhookPackageUpdatedType(TypedDict): + """package updated 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["updated"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType + repository: 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__ = ("WebhookPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0664.py b/githubkit/versions/v2022_11_28/types/group_0664.py index 74173dcc9..e26052f12 100644 --- a/githubkit/versions/v2022_11_28/types/group_0664.py +++ b/githubkit/versions/v2022_11_28/types/group_0664.py @@ -9,27 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0665 import WebhookPackageUpdatedPropPackageType +from .group_0665 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - action: Literal["updated"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType - repository: RepositoryWebhooksType - sender: SimpleUserType + 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__ = ("WebhookPackageUpdatedType",) + +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_0665.py b/githubkit/versions/v2022_11_28/types/group_0665.py index c5aca9653..87bbcbc6d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0665.py +++ b/githubkit/versions/v2022_11_28/types/group_0665.py @@ -9,33 +9,55 @@ 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_0666 import WebhookPackageUpdatedPropPackagePropPackageVersionType +from .group_0659 import WebhookRubygemsMetadataType -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + ] + body: str + body_html: str created_at: str - description: Union[str, None] - ecosystem: 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 - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + 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 WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -62,18 +84,93 @@ class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" +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""" - about_url: str + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int name: str - type: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str url: str - vendor: 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__ = ( - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", - "WebhookPackageUpdatedPropPackageType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0666.py b/githubkit/versions/v2022_11_28/types/group_0666.py index d2e1f5b05..9cb009a99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0666.py +++ b/githubkit/versions/v2022_11_28/types/group_0666.py @@ -9,136 +9,52 @@ 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_0660 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPageBuildType(TypedDict): + """page_build event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None - ] - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] 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 + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- + github-pages-builds) itself. + """ - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[list[str]] - - -WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems -""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str + commit: Union[str, None] created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: str - size: int - state: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str updated_at: str + url: str -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" - 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 + message: Union[str, None] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): +class WebhookPageBuildPropBuildPropPusherType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -166,11 +82,8 @@ class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorTyp __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionType", + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0667.py b/githubkit/versions/v2022_11_28/types/group_0667.py index 3b5faf613..8b1ed361a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0667.py +++ b/githubkit/versions/v2022_11_28/types/group_0667.py @@ -9,81 +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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0456 import PersonalAccessTokenRequestType -class WebhookPageBuildType(TypedDict): - """page_build event""" +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - build: WebhookPageBuildPropBuildType + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - id: int - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType sender: SimpleUserType + installation: SimpleInstallationType -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__ = ("WebhookPersonalAccessTokenRequestApprovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0668.py b/githubkit/versions/v2022_11_28/types/group_0668.py index d9701396e..5a51f21e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0668.py +++ b/githubkit/versions/v2022_11_28/types/group_0668.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0454 import PersonalAccessTokenRequestType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0456 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" - action: Literal["approved"] + action: Literal["cancelled"] personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] organization: OrganizationSimpleWebhooksType @@ -30,4 +30,4 @@ class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0669.py b/githubkit/versions/v2022_11_28/types/group_0669.py index 6436d37ce..c99238a82 100644 --- a/githubkit/versions/v2022_11_28/types/group_0669.py +++ b/githubkit/versions/v2022_11_28/types/group_0669.py @@ -13,21 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0454 import PersonalAccessTokenRequestType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0456 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" - action: Literal["cancelled"] + action: Literal["created"] personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] organization: OrganizationSimpleWebhooksType sender: SimpleUserType - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0670.py b/githubkit/versions/v2022_11_28/types/group_0670.py index 026befae0..722a53a8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0670.py +++ b/githubkit/versions/v2022_11_28/types/group_0670.py @@ -13,21 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0454 import PersonalAccessTokenRequestType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0456 import PersonalAccessTokenRequestType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" - action: Literal["created"] + action: Literal["denied"] personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] organization: OrganizationSimpleWebhooksType + enterprise: NotRequired[EnterpriseWebhooksType] sender: SimpleUserType - installation: NotRequired[SimpleInstallationType] + installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0671.py b/githubkit/versions/v2022_11_28/types/group_0671.py index 1e5bae730..8d4ef6b9d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0671.py +++ b/githubkit/versions/v2022_11_28/types/group_0671.py @@ -9,25 +9,23 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0454 import PersonalAccessTokenRequestType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0672 import WebhookPingPropHookType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - sender: SimpleUserType - installation: SimpleInstallationType + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + zen: NotRequired[str] -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) +__all__ = ("WebhookPingType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0672.py b/githubkit/versions/v2022_11_28/types/group_0672.py index 7f5c2a3eb..36d76812d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0672.py +++ b/githubkit/versions/v2022_11_28/types/group_0672.py @@ -9,23 +9,45 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0673 import WebhookPingPropHookType +from .group_0308 import HookResponseType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPingPropHookType(TypedDict): + """Webhook - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - zen: NotRequired[str] + The webhook that is being pinged + """ + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType + created_at: datetime + deliveries_url: NotRequired[str] + events: list[str] + id: int + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str + updated_at: datetime + url: NotRequired[str] -__all__ = ("WebhookPingType",) + +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" + + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookPingPropHookPropConfigType", + "WebhookPingPropHookType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0673.py b/githubkit/versions/v2022_11_28/types/group_0673.py index 782674f95..76f44f172 100644 --- a/githubkit/versions/v2022_11_28/types/group_0673.py +++ b/githubkit/versions/v2022_11_28/types/group_0673.py @@ -9,45 +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_0306 import HookResponseType +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded -class WebhookPingPropHookType(TypedDict): - """Webhook - - The webhook that is being pinged + The webhooks ping payload encoded with URL encoding. """ - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType - created_at: datetime - deliveries_url: NotRequired[str] - events: list[str] - id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str - updated_at: datetime - url: NotRequired[str] - - -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" - - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookPingPropHookPropConfigType", - "WebhookPingPropHookType", -) + payload: str + + +__all__ = ("WebhookPingFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0674.py b/githubkit/versions/v2022_11_28/types/group_0674.py index 76f44f172..906e8270e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0674.py +++ b/githubkit/versions/v2022_11_28/types/group_0674.py @@ -9,16 +9,44 @@ 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_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0457 import WebhooksProjectCardType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" - payload: str + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -__all__ = ("WebhookPingFormEncodedType",) +class WebhookProjectCardConvertedPropChangesType(TypedDict): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNoteType + + +class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str + + +__all__ = ( + "WebhookProjectCardConvertedPropChangesPropNoteType", + "WebhookProjectCardConvertedPropChangesType", + "WebhookProjectCardConvertedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0675.py b/githubkit/versions/v2022_11_28/types/group_0675.py index f1e3ff831..1face02de 100644 --- a/githubkit/versions/v2022_11_28/types/group_0675.py +++ b/githubkit/versions/v2022_11_28/types/group_0675.py @@ -13,18 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0455 import WebhooksProjectCardType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0457 import WebhooksProjectCardType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,20 +32,4 @@ class WebhookProjectCardConvertedType(TypedDict): sender: SimpleUserType -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNoteType - - -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str - - -__all__ = ( - "WebhookProjectCardConvertedPropChangesPropNoteType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedType", -) +__all__ = ("WebhookProjectCardCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0676.py b/githubkit/versions/v2022_11_28/types/group_0676.py index 415154a7e..5e14943f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0676.py +++ b/githubkit/versions/v2022_11_28/types/group_0676.py @@ -9,27 +9,76 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0455 import WebhooksProjectCardType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookProjectCardCreatedType(TypedDict): - """project_card 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_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + project_card: WebhookProjectCardDeletedPropProjectCardType + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: SimpleUserType -__all__ = ("WebhookProjectCardCreatedType",) +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_0677.py b/githubkit/versions/v2022_11_28/types/group_0677.py index 893040fe6..8c2c23c9c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0677.py +++ b/githubkit/versions/v2022_11_28/types/group_0677.py @@ -9,76 +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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0457 import WebhooksProjectCardType -class WebhookProjectCardDeletedType(TypedDict): - """project_card 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_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -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] +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNoteType + + +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] __all__ = ( - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedType", + "WebhookProjectCardEditedPropChangesPropNoteType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0678.py b/githubkit/versions/v2022_11_28/types/group_0678.py index 70e76fd55..0f590e0ba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0678.py +++ b/githubkit/versions/v2022_11_28/types/group_0678.py @@ -9,44 +9,91 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0455 import WebhooksProjectCardType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType + action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType + project_card: WebhookProjectCardMovedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" - note: WebhookProjectCardEditedPropChangesPropNoteType + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" - from_: Union[str, None] + 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__ = ( - "WebhookProjectCardEditedPropChangesPropNoteType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedType", + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0679.py b/githubkit/versions/v2022_11_28/types/group_0679.py index d482ececb..c75678d30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0679.py +++ b/githubkit/versions/v2022_11_28/types/group_0679.py @@ -13,58 +13,27 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" - - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - 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] + after_id: NotRequired[Union[int, None]] archived: bool column_id: int column_url: str content_url: NotRequired[str] created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] id: int node_id: str - note: Union[Union[str, None], None] + note: Union[str, None] project_url: str updated_at: datetime url: str -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -91,9 +60,6 @@ class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): __all__ = ( - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedType", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0680.py b/githubkit/versions/v2022_11_28/types/group_0680.py index c75678d30..8e4564103 100644 --- a/githubkit/versions/v2022_11_28/types/group_0680.py +++ b/githubkit/versions/v2022_11_28/types/group_0680.py @@ -9,44 +9,41 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" - 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 + 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 WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): - """User""" +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[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] @@ -54,12 +51,11 @@ class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(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__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof0Type", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0681.py b/githubkit/versions/v2022_11_28/types/group_0681.py index 8e4564103..24d2e959d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0681.py +++ b/githubkit/versions/v2022_11_28/types/group_0681.py @@ -9,53 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0458 import WebhooksProjectType -class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] - archived: NotRequired[bool] - column_id: NotRequired[int] - column_url: NotRequired[str] - created_at: NotRequired[str] - creator: NotRequired[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] - ] - id: NotRequired[int] - node_id: NotRequired[str] - note: NotRequired[Union[str, None]] - project_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof1Type", -) + +class WebhookProjectClosedType(TypedDict): + """project closed event""" + + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + + +__all__ = ("WebhookProjectClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0682.py b/githubkit/versions/v2022_11_28/types/group_0682.py index b4565fdb6..0f476062d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0682.py +++ b/githubkit/versions/v2022_11_28/types/group_0682.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0456 import WebhooksProjectType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0459 import WebhooksProjectColumnType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" - action: Literal["closed"] + 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__ = ("WebhookProjectClosedType",) +__all__ = ("WebhookProjectColumnCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0683.py b/githubkit/versions/v2022_11_28/types/group_0683.py index f6c628ce1..f6fc0ea64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0683.py +++ b/githubkit/versions/v2022_11_28/types/group_0683.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0457 import WebhooksProjectColumnType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0459 import WebhooksProjectColumnType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectColumnCreatedType",) +__all__ = ("WebhookProjectColumnDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0684.py b/githubkit/versions/v2022_11_28/types/group_0684.py index 4b0202a8a..77eab274a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0684.py +++ b/githubkit/versions/v2022_11_28/types/group_0684.py @@ -9,27 +9,44 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0457 import WebhooksProjectColumnType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0459 import WebhooksProjectColumnType -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project_column: WebhooksProjectColumnType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectColumnDeletedType",) +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_0685.py b/githubkit/versions/v2022_11_28/types/group_0685.py index ca5e0296a..7b4419785 100644 --- a/githubkit/versions/v2022_11_28/types/group_0685.py +++ b/githubkit/versions/v2022_11_28/types/group_0685.py @@ -13,40 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0457 import WebhooksProjectColumnType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0459 import WebhooksProjectColumnType -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" - action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType + action: Literal["moved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project_column: WebhooksProjectColumnType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" - - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] - - -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str - - -__all__ = ( - "WebhookProjectColumnEditedPropChangesPropNameType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedType", -) +__all__ = ("WebhookProjectColumnMovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0686.py b/githubkit/versions/v2022_11_28/types/group_0686.py index e1d2dde86..e52cc9a9f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0686.py +++ b/githubkit/versions/v2022_11_28/types/group_0686.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0457 import WebhooksProjectColumnType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0458 import WebhooksProjectType -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" +class WebhookProjectCreatedType(TypedDict): + """project created event""" - action: Literal["moved"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project: WebhooksProjectType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectColumnMovedType",) +__all__ = ("WebhookProjectCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0687.py b/githubkit/versions/v2022_11_28/types/group_0687.py index 091cc485f..8b659240d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0687.py +++ b/githubkit/versions/v2022_11_28/types/group_0687.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0456 import WebhooksProjectType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0458 import WebhooksProjectType -class WebhookProjectCreatedType(TypedDict): - """project created event""" +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectCreatedType",) +__all__ = ("WebhookProjectDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0688.py b/githubkit/versions/v2022_11_28/types/group_0688.py index f19199cbf..a2fc0c117 100644 --- a/githubkit/versions/v2022_11_28/types/group_0688.py +++ b/githubkit/versions/v2022_11_28/types/group_0688.py @@ -9,27 +9,55 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0456 import WebhooksProjectType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0458 import WebhooksProjectType -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" +class WebhookProjectEditedType(TypedDict): + """project edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[WebhookProjectEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project: WebhooksProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectDeletedType",) +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_0689.py b/githubkit/versions/v2022_11_28/types/group_0689.py index d0fb991a9..991fd2b0b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0689.py +++ b/githubkit/versions/v2022_11_28/types/group_0689.py @@ -13,51 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0456 import WebhooksProjectType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0458 import WebhooksProjectType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["reopened"] 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__ = ("WebhookProjectReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0690.py b/githubkit/versions/v2022_11_28/types/group_0690.py index d5ce3fd68..2fca96bff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0690.py +++ b/githubkit/versions/v2022_11_28/types/group_0690.py @@ -13,23 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0456 import WebhooksProjectType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2Type -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" - action: Literal["reopened"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["closed"] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectReopenedType",) +__all__ = ("WebhookProjectsV2ProjectClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0691.py b/githubkit/versions/v2022_11_28/types/group_0691.py index e3c941d94..ad3bb641f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0691.py +++ b/githubkit/versions/v2022_11_28/types/group_0691.py @@ -13,19 +13,22 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0458 import ProjectsV2Type +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2Type -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated - action: Literal["closed"] + A project was created + """ + + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectClosedType",) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0692.py b/githubkit/versions/v2022_11_28/types/group_0692.py index 164a8fa6b..da4fea73f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0692.py +++ b/githubkit/versions/v2022_11_28/types/group_0692.py @@ -13,22 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0458 import ProjectsV2Type +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2Type -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" - A project was created - """ - - action: Literal["created"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0693.py b/githubkit/versions/v2022_11_28/types/group_0693.py index 303fbed56..671f58edd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0693.py +++ b/githubkit/versions/v2022_11_28/types/group_0693.py @@ -9,23 +9,72 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0458 import ProjectsV2Type +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2Type -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +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/v2022_11_28/types/group_0694.py b/githubkit/versions/v2022_11_28/types/group_0694.py index 57be2a272..e09428040 100644 --- a/githubkit/versions/v2022_11_28/types/group_0694.py +++ b/githubkit/versions/v2022_11_28/types/group_0694.py @@ -9,72 +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_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0458 import ProjectsV2Type +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0461 import WebhooksProjectChangesType +from .group_0462 import ProjectsV2ItemType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + action: Literal["archived"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_item: ProjectsV2ItemType 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__ = ("WebhookProjectsV2ItemArchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0695.py b/githubkit/versions/v2022_11_28/types/group_0695.py index 89a3f33af..2eaa26f94 100644 --- a/githubkit/versions/v2022_11_28/types/group_0695.py +++ b/githubkit/versions/v2022_11_28/types/group_0695.py @@ -9,25 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0459 import WebhooksProjectChangesType -from .group_0460 import ProjectsV2ItemType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0462 import ProjectsV2ItemType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["archived"] - changes: WebhooksProjectChangesType + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemArchivedType",) +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_0696.py b/githubkit/versions/v2022_11_28/types/group_0696.py index 896729bfb..018373c90 100644 --- a/githubkit/versions/v2022_11_28/types/group_0696.py +++ b/githubkit/versions/v2022_11_28/types/group_0696.py @@ -9,43 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0460 import ProjectsV2ItemType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0462 import ProjectsV2ItemType -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType 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__ = ("WebhookProjectsV2ItemCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0697.py b/githubkit/versions/v2022_11_28/types/group_0697.py index efc411730..b07cd1d3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0697.py +++ b/githubkit/versions/v2022_11_28/types/group_0697.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0460 import ProjectsV2ItemType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0462 import ProjectsV2ItemType -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" - action: Literal["created"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookProjectsV2ItemDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0698.py b/githubkit/versions/v2022_11_28/types/group_0698.py index d2ba684b1..d82028f9b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0698.py +++ b/githubkit/versions/v2022_11_28/types/group_0698.py @@ -9,23 +9,107 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0460 import ProjectsV2ItemType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0462 import ProjectsV2ItemType -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited Event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, + ] + ] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: NotRequired[str] + field_type: NotRequired[str] + field_name: NotRequired[str] + project_number: NotRequired[int] + from_: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] + ] + to: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] + ] + + +class ProjectsV2SingleSelectOptionType(TypedDict): + """Projects v2 Single Select Option + + An option for a single select field + """ + + id: str + name: str + color: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + + +class ProjectsV2IterationSettingType(TypedDict): + """Projects v2 Iteration Setting + + An iteration setting for an iteration field + """ + + id: str + title: str + duration: NotRequired[Union[float, None]] + start_date: NotRequired[Union[str, None]] + + +class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "ProjectsV2IterationSettingType", + "ProjectsV2SingleSelectOptionType", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "WebhookProjectsV2ItemEditedPropChangesOneof0Type", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", + "WebhookProjectsV2ItemEditedPropChangesOneof1Type", + "WebhookProjectsV2ItemEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0699.py b/githubkit/versions/v2022_11_28/types/group_0699.py index 668057231..25acabacc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0699.py +++ b/githubkit/versions/v2022_11_28/types/group_0699.py @@ -13,103 +13,41 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0460 import ProjectsV2ItemType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0462 import ProjectsV2ItemType -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" - 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, - ] + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType ] - 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""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( + TypedDict +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" from_: NotRequired[Union[str, None]] to: NotRequired[Union[str, None]] __all__ = ( - "ProjectsV2IterationSettingType", - "ProjectsV2SingleSelectOptionType", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedType", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0700.py b/githubkit/versions/v2022_11_28/types/group_0700.py index 25ec7fcae..05ec7fda2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0700.py +++ b/githubkit/versions/v2022_11_28/types/group_0700.py @@ -9,45 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0460 import ProjectsV2ItemType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0461 import WebhooksProjectChangesType +from .group_0462 import ProjectsV2ItemType -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["restored"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): - """WebhookProjectsV2ItemReorderedPropChanges""" - - previous_projects_v2_item_node_id: NotRequired[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType - ] - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( - TypedDict -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedType", -) +__all__ = ("WebhookProjectsV2ItemRestoredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0701.py b/githubkit/versions/v2022_11_28/types/group_0701.py index 08a47bdd1..4ac61f66c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0701.py +++ b/githubkit/versions/v2022_11_28/types/group_0701.py @@ -13,21 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0459 import WebhooksProjectChangesType -from .group_0460 import ProjectsV2ItemType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2Type -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["restored"] - changes: WebhooksProjectChangesType + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemRestoredType",) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0702.py b/githubkit/versions/v2022_11_28/types/group_0702.py index dc3a4d617..e43d2fefc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0702.py +++ b/githubkit/versions/v2022_11_28/types/group_0702.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0458 import ProjectsV2Type +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0463 import ProjectsV2StatusUpdateType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): + """Projects v2 Status Update Created Event""" - action: Literal["reopened"] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0703.py b/githubkit/versions/v2022_11_28/types/group_0703.py index ec143a49d..ff7df8b07 100644 --- a/githubkit/versions/v2022_11_28/types/group_0703.py +++ b/githubkit/versions/v2022_11_28/types/group_0703.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0461 import ProjectsV2StatusUpdateType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0463 import ProjectsV2StatusUpdateType -class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): + """Projects v2 Status Update Deleted Event""" - action: Literal["created"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) +__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0704.py b/githubkit/versions/v2022_11_28/types/group_0704.py index a11e11b05..a318d9975 100644 --- a/githubkit/versions/v2022_11_28/types/group_0704.py +++ b/githubkit/versions/v2022_11_28/types/group_0704.py @@ -9,23 +9,77 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0461 import ProjectsV2StatusUpdateType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0463 import ProjectsV2StatusUpdateType -class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2StatusUpdateEditedType(TypedDict): + """Projects v2 Status Update Edited Event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) +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_0705.py b/githubkit/versions/v2022_11_28/types/group_0705.py index 0f3c7b7e2..6256041a6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0705.py +++ b/githubkit/versions/v2022_11_28/types/group_0705.py @@ -9,77 +9,23 @@ from __future__ import annotations -from datetime import date -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0461 import ProjectsV2StatusUpdateType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookProjectsV2StatusUpdateEditedType(TypedDict): - """Projects v2 Status Update Edited Event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType 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__ = ("WebhookPublicType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0706.py b/githubkit/versions/v2022_11_28/types/group_0706.py index 2badb5495..51a3e730f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0706.py +++ b/githubkit/versions/v2022_11_28/types/group_0706.py @@ -9,23 +9,950 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0437 import WebhooksUserType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" + action: Literal["assigned"] + assignee: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPublicType",) +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAssignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAssignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0707.py b/githubkit/versions/v2022_11_28/types/group_0707.py index 404c77f6d..40c7cada5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0707.py +++ b/githubkit/versions/v2022_11_28/types/group_0707.py @@ -14,38 +14,42 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0435 import WebhooksUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["assigned"] - assignee: Union[WebhooksUserType, None] + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAssignedPropPullRequestType + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestAssignedPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestAssignedPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +61,10 @@ class WebhookPullRequestAssignedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestAssignedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +76,11 @@ class WebhookPullRequestAssignedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestAssignedPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +89,24 @@ class WebhookPullRequestAssignedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +116,10 @@ class WebhookPullRequestAssignedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] -class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,12 +141,14 @@ class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(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 WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -160,12 +170,11 @@ class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(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 WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -174,12 +183,13 @@ class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -208,7 +218,7 @@ class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -220,7 +230,7 @@ class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -247,7 +257,7 @@ class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -257,7 +267,8 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -273,7 +284,9 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -295,12 +308,12 @@ class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(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 WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -329,7 +342,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -356,48 +369,58 @@ class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType ) - review_comments: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -405,7 +428,7 @@ class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -413,29 +436,35 @@ class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -462,7 +491,7 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -505,10 +534,10 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(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 @@ -522,7 +551,8 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -537,10 +567,11 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -574,7 +605,7 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -586,7 +617,9 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -613,10 +646,12 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -625,17 +660,46 @@ class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] + 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 WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -695,7 +759,8 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -710,10 +775,11 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -747,7 +813,7 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -759,7 +825,9 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -786,10 +854,12 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -798,34 +868,7 @@ class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsTy 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( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -842,7 +885,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 node_id: str parent: NotRequired[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -853,11 +896,11 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] @@ -873,7 +916,9 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -888,7 +933,7 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -899,10 +944,12 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] html_url: str @@ -918,41 +965,41 @@ class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent __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", + "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_0708.py b/githubkit/versions/v2022_11_28/types/group_0708.py index 9fc038a66..f6b2cb384 100644 --- a/githubkit/versions/v2022_11_28/types/group_0708.py +++ b/githubkit/versions/v2022_11_28/types/group_0708.py @@ -14,40 +14,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["auto_merge_disabled"] + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, None, ] ] @@ -62,9 +62,9 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -76,11 +76,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -89,10 +89,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] ] milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None ] node_id: str number: int @@ -100,13 +100,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -116,10 +116,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -146,7 +146,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -174,7 +174,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( url: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -183,13 +183,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedD commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -218,7 +218,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabled user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -230,7 +230,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(Type url: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -257,7 +257,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -267,7 +267,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedD closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -284,7 +284,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedD url: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -308,12 +308,12 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator 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 WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -342,7 +342,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -369,26 +369,24 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -396,7 +394,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsTyp href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -404,15 +402,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -420,7 +416,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -428,7 +424,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComme href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -436,15 +432,13 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComme href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -452,19 +446,19 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesTyp href: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -491,7 +485,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -534,10 +528,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(Typ 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 @@ -551,7 +545,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(Typ language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -567,11 +561,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(Typ open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -605,7 +599,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(Typ web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -617,7 +611,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLice url: Union[str, None] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -646,12 +640,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwne user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -660,19 +652,19 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPerm triage: NotRequired[bool] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType sha: str user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -699,7 +691,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -759,7 +751,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(Typ language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -775,11 +767,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(Typ open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -813,7 +805,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(Typ web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -825,7 +817,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLice url: Union[str, None] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -854,12 +846,10 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwne user_view_type: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -868,7 +858,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPerm triage: NotRequired[bool] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -885,7 +875,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt node_id: str parent: NotRequired[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -896,11 +886,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt url: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] @@ -916,7 +906,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersIt url: str -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -933,7 +923,7 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsT node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -944,11 +934,11 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsT url: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt """ description: Union[str, None] @@ -965,41 +955,41 @@ class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsP __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", + "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_0709.py b/githubkit/versions/v2022_11_28/types/group_0709.py index 48cce9198..732835a3f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0709.py +++ b/githubkit/versions/v2022_11_28/types/group_0709.py @@ -9,987 +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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0464 import PullRequestWebhookType -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["auto_merge_enabled"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType 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__ = ("WebhookPullRequestClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0710.py b/githubkit/versions/v2022_11_28/types/group_0710.py index 20c38c135..cd8513d25 100644 --- a/githubkit/versions/v2022_11_28/types/group_0710.py +++ b/githubkit/versions/v2022_11_28/types/group_0710.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0462 import PullRequestWebhookType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0464 import PullRequestWebhookType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["closed"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestClosedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookPullRequestClosedType",) +__all__ = ("WebhookPullRequestConvertedToDraftType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0711.py b/githubkit/versions/v2022_11_28/types/group_0711.py index c253daf78..0b2998f70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0711.py +++ b/githubkit/versions/v2022_11_28/types/group_0711.py @@ -13,24 +13,24 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0462 import PullRequestWebhookType +from .group_0043 import MilestoneType +from .group_0426 import EnterpriseWebhooksType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0466 import WebhooksPullRequest5Type -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["converted_to_draft"] + 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__ = ("WebhookPullRequestConvertedToDraftType",) +__all__ = ("WebhookPullRequestDemilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0712.py b/githubkit/versions/v2022_11_28/types/group_0712.py index 3e1f78c47..eebe56a8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0712.py +++ b/githubkit/versions/v2022_11_28/types/group_0712.py @@ -9,28 +9,961 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0042 import MilestoneType -from .group_0424 import EnterpriseWebhooksType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0464 import WebhooksPullRequest5Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["demilestoned"] + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] + installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookPullRequestDemilestonedType",) +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_0713.py b/githubkit/versions/v2022_11_28/types/group_0713.py index d9725ce17..f01274c47 100644 --- a/githubkit/versions/v2022_11_28/types/group_0713.py +++ b/githubkit/versions/v2022_11_28/types/group_0713.py @@ -9,961 +9,79 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0464 import PullRequestWebhookType -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["dequeued"] + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType 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: PullRequestWebhookType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges - 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. + The changes to the comment if the action was `edited`. """ - 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 + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" - href: str + from_: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" - href: str + from_: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" - href: str + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType -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. - """ +class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" - 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] + from_: str -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" +class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" - 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_: 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", + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0714.py b/githubkit/versions/v2022_11_28/types/group_0714.py index cdc45b116..07f30a329 100644 --- a/githubkit/versions/v2022_11_28/types/group_0714.py +++ b/githubkit/versions/v2022_11_28/types/group_0714.py @@ -9,79 +9,947 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0462 import PullRequestWebhookType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" - The changes to the comment if the action was `edited`. + 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. """ - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + 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 WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" - from_: str + href: str -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" - from_: str + href: str -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType + href: str -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" +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. + """ - 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[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + 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 WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - 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", + "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_0715.py b/githubkit/versions/v2022_11_28/types/group_0715.py index ade6e3c76..7b2910792 100644 --- a/githubkit/versions/v2022_11_28/types/group_0715.py +++ b/githubkit/versions/v2022_11_28/types/group_0715.py @@ -14,36 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0441 import WebhooksLabelType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" - action: Literal["enqueued"] + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType + pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + links: WebhookPullRequestLabeledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +57,8 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -68,11 +70,11 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType + head: WebhookPullRequestLabeledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -81,22 +83,22 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -106,10 +108,10 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,12 +133,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(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 WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -158,11 +160,11 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(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 WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -171,14 +173,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -205,7 +205,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -217,7 +217,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -239,12 +239,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(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 WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +254,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +270,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -297,7 +297,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,12 +321,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 WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -353,56 +353,54 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +408,29 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -459,7 +457,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -519,7 +517,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -534,10 +532,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -571,7 +569,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -583,7 +581,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -610,10 +608,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -622,44 +620,17 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] 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] + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -719,7 +690,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -734,10 +705,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -771,7 +742,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -783,7 +754,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -810,10 +781,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -822,7 +793,34 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +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 @@ -831,30 +829,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, + 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 WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] @@ -870,7 +868,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -885,7 +883,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -896,10 +894,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -915,41 +913,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", + "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_0716.py b/githubkit/versions/v2022_11_28/types/group_0716.py index b4f848b12..74af51a09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0716.py +++ b/githubkit/versions/v2022_11_28/types/group_0716.py @@ -14,38 +14,36 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0439 import WebhooksLabelType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["labeled"] + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType + pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): +class WebhookPullRequestLockedPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinksType + links: WebhookPullRequestLockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +55,8 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +68,11 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType + head: WebhookPullRequestLockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +81,22 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +106,10 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,12 +131,12 @@ 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 WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -164,7 +162,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,12 +171,12 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -205,7 +203,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -217,7 +215,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -244,7 +242,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +252,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +268,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -292,12 +290,12 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(Typed 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 WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -326,7 +324,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0T user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -353,84 +351,82 @@ class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -457,7 +453,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -517,7 +513,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -532,10 +528,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -569,9 +565,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): """License""" key: str @@ -581,7 +575,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -608,10 +602,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(Type user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -620,17 +614,17 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" label: Union[str, None] ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -690,7 +684,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -705,10 +699,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -742,9 +736,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): """License""" key: str @@ -754,7 +746,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -781,10 +773,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(Type user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -793,7 +785,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -820,7 +812,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -837,7 +829,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T node_id: str parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -848,11 +840,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] @@ -868,7 +860,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -883,7 +875,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -894,10 +886,10 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -913,41 +905,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", + "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_0717.py b/githubkit/versions/v2022_11_28/types/group_0717.py index 19a0ab33c..9a504a96c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0717.py +++ b/githubkit/versions/v2022_11_28/types/group_0717.py @@ -9,937 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0043 import MilestoneType +from .group_0426 import EnterpriseWebhooksType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0466 import WebhooksPullRequest5Type -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - action: Literal["locked"] + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -class WebhookPullRequestLockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedType", -) +__all__ = ("WebhookPullRequestMilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0718.py b/githubkit/versions/v2022_11_28/types/group_0718.py index bc8e50b4d..401666f3f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0718.py +++ b/githubkit/versions/v2022_11_28/types/group_0718.py @@ -13,24 +13,24 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0042 import MilestoneType -from .group_0424 import EnterpriseWebhooksType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0464 import WebhooksPullRequest5Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0464 import PullRequestWebhookType -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - action: Literal["milestoned"] + action: Literal["opened"] 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__ = ("WebhookPullRequestOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0719.py b/githubkit/versions/v2022_11_28/types/group_0719.py index d7eb2e3b9..8922c58ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0719.py +++ b/githubkit/versions/v2022_11_28/types/group_0719.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0462 import PullRequestWebhookType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0464 import PullRequestWebhookType -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["opened"] + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestOpenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookPullRequestOpenedType",) +__all__ = ("WebhookPullRequestReadyForReviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0720.py b/githubkit/versions/v2022_11_28/types/group_0720.py index c0393b941..746693597 100644 --- a/githubkit/versions/v2022_11_28/types/group_0720.py +++ b/githubkit/versions/v2022_11_28/types/group_0720.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0462 import PullRequestWebhookType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0464 import PullRequestWebhookType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - action: Literal["ready_for_review"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestReadyForReviewType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookPullRequestReadyForReviewType",) +__all__ = ("WebhookPullRequestReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0721.py b/githubkit/versions/v2022_11_28/types/group_0721.py index ccb223652..4bc3a65f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0721.py +++ b/githubkit/versions/v2022_11_28/types/group_0721.py @@ -9,28 +9,1094 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0462 import PullRequestWebhookType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - action: Literal["reopened"] + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestReopenedType",) +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 WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] + ] + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + 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: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + ] + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( + 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: NotRequired[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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + 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( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( + 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[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + 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 + + +__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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0722.py b/githubkit/versions/v2022_11_28/types/group_0722.py index 9f0e5d52e..ed1cff2e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0722.py +++ b/githubkit/versions/v2022_11_28/types/group_0722.py @@ -14,155 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0467 import WebhooksReviewCommentType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + action: Literal["deleted"] + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): - """Pull Request Review Comment +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - 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 WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -178,10 +62,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): ] auto_merge: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None ] ] - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -189,31 +73,31 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -222,10 +106,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -247,12 +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( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -276,11 +160,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -289,13 +173,13 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -324,7 +208,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -338,7 +222,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -348,7 +232,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -365,7 +249,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -389,12 +273,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -418,12 +302,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -450,26 +334,26 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -477,7 +361,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -485,7 +369,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -493,7 +377,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -501,7 +385,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -509,7 +393,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -517,7 +401,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -525,7 +409,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -533,19 +417,19 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -574,7 +458,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -636,7 +520,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -652,11 +536,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -690,7 +574,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -702,7 +586,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -731,10 +615,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss ions """ @@ -745,21 +629,21 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str ref: str repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -807,7 +691,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,7 +705,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -837,11 +721,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -875,7 +759,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -887,7 +771,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -916,10 +800,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss ions """ @@ -930,7 +814,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -959,7 +843,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -968,29 +852,29 @@ 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, + 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems Oneof1PropParent """ @@ -1007,7 +891,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -1024,7 +908,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1035,10 +919,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp Parent """ @@ -1056,47 +940,40 @@ 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", + "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_0723.py b/githubkit/versions/v2022_11_28/types/group_0723.py index 2b102c262..c195424a3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0723.py +++ b/githubkit/versions/v2022_11_28/types/group_0723.py @@ -14,39 +14,41 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0465 import WebhooksReviewCommentType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0445 import WebhooksChangesType +from .group_0467 import WebhooksReviewCommentType -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhooksChangesType comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -62,10 +64,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): ] auto_merge: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None ] ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -73,31 +75,31 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -106,10 +108,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,7 +138,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -162,9 +164,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsTyp subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,13 +176,13 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -208,7 +211,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -222,7 +225,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -232,7 +235,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -249,7 +252,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -273,12 +276,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 WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -307,7 +310,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -330,30 +333,30 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDic 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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -361,7 +364,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -369,7 +372,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -377,7 +380,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -385,7 +388,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -393,7 +396,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -401,7 +404,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -409,7 +412,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -417,19 +420,19 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -458,7 +461,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -520,7 +523,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -536,11 +539,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -574,7 +577,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -586,7 +589,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -615,11 +618,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool @@ -629,21 +632,21 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str ref: str repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -705,7 +708,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -721,11 +724,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -759,7 +762,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -771,7 +774,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -800,11 +803,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool @@ -814,7 +817,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -843,7 +846,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -860,7 +863,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -871,11 +874,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] @@ -891,7 +894,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -908,7 +911,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -919,11 +922,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] @@ -940,40 +943,40 @@ 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", + "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_0724.py b/githubkit/versions/v2022_11_28/types/group_0724.py index f35c06aad..2ce4ce4a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0724.py +++ b/githubkit/versions/v2022_11_28/types/group_0724.py @@ -14,42 +14,116 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0443 import WebhooksChangesType -from .group_0465 import WebhooksReviewCommentType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksReviewCommentType + action: Literal["dismissed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType repository: RepositoryWebhooksType + review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserType -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType + 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[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None ] ] author_association: Literal[ @@ -62,44 +136,40 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] + auto_merge: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType 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 + draft: bool + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -108,10 +178,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,14 +203,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(Typed 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 WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -162,12 +230,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 WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -176,13 +243,13 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(Type commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,9 +278,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -225,7 +290,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -235,7 +300,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -252,7 +317,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -276,12 +341,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 WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -305,12 +370,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 WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -333,30 +398,28 @@ 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 WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -364,7 +427,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsT href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -372,23 +435,19 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsTy href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -396,7 +455,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -404,15 +463,13 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -420,21 +477,19 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesT href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -461,9 +516,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -523,7 +576,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -539,11 +592,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -577,7 +630,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -589,7 +642,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -618,12 +671,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -632,23 +683,21 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str ref: str repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -708,7 +757,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -724,11 +773,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -762,7 +811,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -774,7 +823,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -803,12 +852,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -817,9 +864,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -846,7 +891,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -855,30 +900,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, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -894,7 +939,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -911,7 +956,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -922,11 +967,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] @@ -943,40 +988,45 @@ 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", + "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_0725.py b/githubkit/versions/v2022_11_28/types/group_0725.py index a60b72431..3cdb23bfa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0725.py +++ b/githubkit/versions/v2022_11_28/types/group_0725.py @@ -14,117 +14,49 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0468 import WebhooksReviewType -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["dismissed"] + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + pull_request: WebhookPullRequestReviewEditedPropPullRequestType repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType + review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" - The review that was affected. - """ + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - 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 WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" -class WebhookPullRequestReviewDismissedPropReviewPropUserType(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", "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): +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -137,9 +69,9 @@ class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -147,29 +79,29 @@ class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -178,10 +110,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -208,7 +140,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -234,7 +166,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(Typ url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -243,13 +175,13 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -278,7 +210,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -290,7 +222,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -300,8 +232,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -317,7 +248,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -341,12 +272,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorTy 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 WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -375,7 +306,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -402,52 +333,48 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -455,7 +382,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -463,33 +390,29 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -516,7 +439,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -562,7 +485,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -576,12 +498,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -592,11 +512,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -605,10 +524,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -623,14 +538,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -642,7 +555,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -671,10 +584,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -683,21 +596,17 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" label: str ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -743,7 +652,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -757,12 +665,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -773,11 +679,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -786,10 +691,6 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -804,14 +705,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -823,7 +722,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -852,10 +751,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -864,7 +763,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -891,7 +790,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -908,7 +807,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -919,11 +818,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] @@ -939,7 +838,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -956,7 +855,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -967,12 +866,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -988,45 +885,42 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPro __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", + "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_0726.py b/githubkit/versions/v2022_11_28/types/group_0726.py index d6957c465..aedb0f4f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0726.py +++ b/githubkit/versions/v2022_11_28/types/group_0726.py @@ -14,49 +14,72 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0466 import WebhooksReviewType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType repository: RepositoryWebhooksType - review: WebhooksReviewType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserType -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" - - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(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 WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, + ] assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -69,51 +92,75 @@ class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType + 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: WebhookPullRequestReviewEditedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] + labels: list[ + 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[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, ] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType + 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[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -135,12 +182,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(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 WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -162,11 +211,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedD 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 WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -175,13 +227,13 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -210,7 +262,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -222,7 +276,38 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict url: str -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -232,7 +317,8 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -248,7 +334,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -272,12 +358,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( 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 WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -301,12 +387,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn 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 WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -328,53 +416,63 @@ class WebhookPullRequestReviewEditedPropPullRequestPropUserType(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 WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType ) - review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -382,7 +480,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentTyp href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -390,29 +488,42 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsTy href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + None, + ] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -439,7 +550,9 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -485,6 +598,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic has_pages: bool has_projects: bool has_wiki: bool + has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -498,10 +612,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, + 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] @@ -512,10 +628,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -524,6 +641,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic 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 @@ -538,12 +659,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic 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 WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -555,7 +678,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseTy url: Union[str, None] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -584,10 +707,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType user_view_type: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -596,17 +721,55 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissio triage: NotRequired[bool] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" label: str ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + None, + ] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): +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 @@ -652,6 +815,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic has_pages: bool has_projects: bool has_wiki: bool + has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -665,10 +829,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, + 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] @@ -679,10 +845,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -691,6 +858,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic 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 @@ -705,12 +876,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic 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 WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -722,7 +895,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseTy url: Union[str, None] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -751,10 +924,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType user_view_type: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -763,34 +938,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissio 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( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -807,7 +955,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -818,11 +966,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -838,7 +986,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -847,29 +995,31 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( """ 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[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + 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 WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] html_url: str @@ -885,42 +1035,42 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropPa __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", + "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_0727.py b/githubkit/versions/v2022_11_28/types/group_0727.py index cf12554d5..6231d774a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0727.py +++ b/githubkit/versions/v2022_11_28/types/group_0727.py @@ -14,70 +14,85 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): - """User""" +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + description: Union[str, 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"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + 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 WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, None, ] assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, None, ] ] @@ -92,10 +107,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, None, ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -107,12 +122,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType ] locked: bool maintainer_can_modify: NotRequired[bool] @@ -123,12 +138,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) merged_at: Union[datetime, None] merged_by: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, None, ] ] milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, None, ] node_id: str @@ -137,13 +152,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -154,11 +169,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( TypedDict ): """User""" @@ -187,7 +202,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -216,7 +231,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesIt user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( TypedDict ): """PullRequestAutoMerge @@ -227,13 +242,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeTy commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -262,7 +277,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -276,7 +291,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( TypedDict ): """User""" @@ -305,7 +320,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( TypedDict ): """Milestone @@ -317,7 +332,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneTy closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -334,7 +349,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneTy url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -363,7 +378,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -392,7 +407,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( TypedDict ): """User""" @@ -421,26 +436,26 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -448,7 +463,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -456,7 +471,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -464,7 +479,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHt href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -472,7 +487,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIs href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -480,7 +495,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -488,7 +503,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -496,7 +511,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -504,24 +519,24 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSt href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str ref: str repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType ) sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, None, ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -550,7 +565,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -612,7 +627,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -628,11 +643,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -666,7 +681,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -678,7 +693,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -707,10 +722,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP ermissions """ @@ -721,24 +736,24 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str ref: str repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType ) sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, None, ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -767,7 +782,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -829,7 +844,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -845,11 +860,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -883,7 +898,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -895,7 +910,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -924,10 +939,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP ermissions """ @@ -938,7 +953,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -955,7 +970,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -966,10 +981,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer sItemsOneof1PropParent """ @@ -986,7 +1001,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -1003,7 +1018,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1014,10 +1029,10 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte msPropParent """ @@ -1035,42 +1050,43 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0Type", + "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_0728.py b/githubkit/versions/v2022_11_28/types/group_0728.py index fbf148038..3524366ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0728.py +++ b/githubkit/versions/v2022_11_28/types/group_0728.py @@ -14,85 +14,69 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["review_request_removed"] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" + avatar_url: NotRequired[str] 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 + email: NotRequired[Union[str, None]] + events_url: 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"] - repositories_url: str - slug: str - url: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, None, ] ] @@ -107,10 +91,9 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -122,12 +105,12 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType ] locked: bool maintainer_can_modify: NotRequired[bool] @@ -138,13 +121,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) merged_at: Union[datetime, None] merged_by: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None ] ] milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None ] node_id: str number: int @@ -152,13 +133,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -169,13 +150,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -197,12 +176,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -226,12 +205,12 @@ 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( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( TypedDict ): """PullRequestAutoMerge @@ -242,13 +221,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeTy commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -277,7 +256,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -291,9 +270,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -320,7 +297,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( TypedDict ): """Milestone @@ -332,7 +309,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -349,7 +326,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -373,12 +350,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -407,9 +384,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -431,31 +406,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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -463,7 +438,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -471,7 +446,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -479,7 +454,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -487,7 +462,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -495,7 +470,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -503,7 +478,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -511,7 +486,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -519,24 +494,19 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -565,7 +535,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -627,7 +597,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -643,11 +613,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -681,7 +651,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -693,7 +663,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -722,11 +692,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions """ admin: bool @@ -736,24 +706,19 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -782,7 +747,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -844,7 +809,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -860,11 +825,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -898,7 +863,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -910,7 +875,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -939,11 +904,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions """ admin: bool @@ -953,7 +918,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -970,7 +935,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -981,11 +946,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -1001,7 +966,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -1010,30 +975,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, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent """ description: Union[str, None] @@ -1050,43 +1015,42 @@ 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", + "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_0729.py b/githubkit/versions/v2022_11_28/types/group_0729.py index 6137c7f2d..8beb582ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0729.py +++ b/githubkit/versions/v2022_11_28/types/group_0729.py @@ -14,69 +14,81 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): - """User""" +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: 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", "Mannequin"]] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): +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: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, None, ] ] @@ -91,9 +103,9 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -105,12 +117,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType ] locked: bool maintainer_can_modify: NotRequired[bool] @@ -121,11 +133,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): merged_at: Union[datetime, None] merged_by: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None ] ] milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None ] node_id: str number: int @@ -133,13 +145,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -150,11 +162,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -181,7 +193,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -210,7 +222,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsTy user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( TypedDict ): """PullRequestAutoMerge @@ -221,13 +233,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -256,7 +268,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -270,7 +282,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -297,7 +309,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( TypedDict ): """Milestone @@ -309,7 +321,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -326,7 +338,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -355,7 +367,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -384,7 +396,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -411,26 +423,26 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -438,7 +450,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -446,7 +458,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -454,7 +466,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -462,7 +474,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueTy href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -470,7 +482,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -478,7 +490,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -486,7 +498,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -494,19 +506,19 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -535,7 +547,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -597,7 +609,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -613,11 +625,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -651,7 +663,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -663,7 +675,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -692,10 +704,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis sions """ @@ -706,19 +718,19 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -747,7 +759,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -809,7 +821,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -825,11 +837,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -863,7 +875,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -875,7 +887,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -904,10 +916,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis sions """ @@ -918,7 +930,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -927,29 +939,29 @@ 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, + 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem sOneof1PropParent """ @@ -966,7 +978,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -983,7 +995,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -994,10 +1006,10 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro pParent """ @@ -1015,42 +1027,43 @@ 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", + "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_0730.py b/githubkit/versions/v2022_11_28/types/group_0730.py index a9faa73f6..5843c73ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0730.py +++ b/githubkit/versions/v2022_11_28/types/group_0730.py @@ -14,82 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0468 import WebhooksReviewType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - action: Literal["review_requested"] + action: Literal["submitted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + review: WebhooksReviewType 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, - None, + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None ] ] author_association: Literal[ @@ -103,70 +60,51 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType - ] + 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -193,9 +131,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -219,12 +155,9 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsTy subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,13 +166,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -268,9 +201,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -282,36 +213,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 WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -321,7 +223,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -338,7 +240,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -367,7 +269,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -391,12 +293,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -423,26 +325,24 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -450,7 +350,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -458,23 +358,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -482,7 +378,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -490,15 +386,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -506,21 +400,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -547,9 +439,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -609,7 +499,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -625,11 +515,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -663,7 +553,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -675,7 +565,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -704,12 +594,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -718,50 +606,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -821,7 +680,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -837,11 +696,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -875,7 +734,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -887,7 +746,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -916,12 +775,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -930,7 +787,34 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +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 @@ -939,30 +823,30 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -978,7 +862,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -995,7 +879,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1006,11 +890,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] @@ -1027,43 +911,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", + "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_0731.py b/githubkit/versions/v2022_11_28/types/group_0731.py index 6760146ca..17b355994 100644 --- a/githubkit/versions/v2022_11_28/types/group_0731.py +++ b/githubkit/versions/v2022_11_28/types/group_0731.py @@ -14,39 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0466 import WebhooksReviewType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" - action: Literal["submitted"] + action: Literal["resolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType repository: RepositoryWebhooksType - review: WebhooksReviewType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, ] ] author_association: Literal[ @@ -60,9 +60,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,29 +70,31 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -101,10 +103,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -126,12 +128,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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -153,11 +157,11 @@ 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] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -166,13 +170,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -201,7 +205,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -213,7 +219,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -223,7 +229,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -240,7 +246,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -264,12 +270,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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -298,7 +304,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -325,24 +331,26 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType ) - review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -350,7 +358,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -358,19 +366,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -378,7 +390,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -386,13 +398,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -400,19 +414,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -439,7 +455,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -499,12 +517,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -515,11 +531,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -528,10 +544,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -546,14 +558,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -565,7 +576,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -594,10 +605,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -606,21 +619,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" label: Union[str, None] ref: str repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -680,12 +695,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -696,11 +709,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -709,10 +722,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -727,14 +736,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -746,7 +754,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -775,10 +783,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -787,7 +797,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -814,7 +826,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,7 +843,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -842,11 +854,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -862,7 +874,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -879,7 +891,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -890,11 +902,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -910,41 +922,188 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro 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__ = ( - "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", + "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_0732.py b/githubkit/versions/v2022_11_28/types/group_0732.py index e1205bfee..bb6f5506a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0732.py +++ b/githubkit/versions/v2022_11_28/types/group_0732.py @@ -14,38 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" - action: Literal["resolved"] + action: Literal["unresolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -60,9 +60,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,31 +70,31 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -103,10 +103,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -133,7 +137,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -161,22 +165,24 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: Union[str, None] + commit_title: str enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +211,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -219,7 +225,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -229,7 +237,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -246,7 +254,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -275,7 +283,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -299,12 +307,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -326,31 +334,31 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDic site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -358,7 +366,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -366,7 +374,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -374,7 +382,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -382,7 +390,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -390,7 +398,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -398,7 +406,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -406,7 +414,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -414,19 +422,20 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -455,7 +464,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -517,7 +526,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -531,11 +540,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -564,7 +573,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -576,7 +585,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -605,11 +614,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions """ admin: bool @@ -619,21 +628,49 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None - ] + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( +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 @@ -695,7 +732,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -709,11 +746,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -742,7 +779,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -754,7 +791,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -783,11 +820,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions """ admin: bool @@ -797,36 +834,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -835,30 +843,30 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer """ 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[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, 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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent """ description: Union[str, None] @@ -874,7 +882,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -891,7 +899,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,11 +910,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent """ description: Union[str, None] @@ -922,16 +930,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType ] node_id: str -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( + TypedDict +): """Pull Request Review Comment The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- @@ -939,7 +949,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(Type """ links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType ) author_association: Literal[ "COLLABORATOR", @@ -961,14 +971,14 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(Type line: Union[int, None] node_id: str original_commit_id: str - original_line: Union[int, None] + 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: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType side: Literal["LEFT", "RIGHT"] start_line: Union[int, None] start_side: Union[None, Literal["LEFT", "RIGHT"]] @@ -976,12 +986,12 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(Type updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, None, ] -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( TypedDict ): """Reactions""" @@ -998,7 +1008,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReact url: str -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( TypedDict ): """User""" @@ -1022,22 +1032,22 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserT 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 WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( TypedDict ): """Link""" @@ -1045,7 +1055,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( TypedDict ): """Link""" @@ -1053,7 +1063,7 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks href: str -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( TypedDict ): """Link""" @@ -1062,48 +1072,48 @@ class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks __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", + "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_0733.py b/githubkit/versions/v2022_11_28/types/group_0733.py index 97bf40780..e1490c2b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0733.py +++ b/githubkit/versions/v2022_11_28/types/group_0733.py @@ -14,40 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" - action: Literal["unresolved"] + action: Literal["synchronize"] + after: str + before: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + pull_request: WebhookPullRequestSynchronizePropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + sender: SimpleUserType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -60,57 +58,64 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType 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: WebhookPullRequestSynchronizePropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] 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[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + ] milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType ] 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 - ] + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -132,14 +137,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 WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -161,28 +164,25 @@ 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 WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(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, - None, + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,9 +211,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -225,9 +223,34 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( - TypedDict -): +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. @@ -237,8 +260,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -254,7 +276,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -278,12 +300,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 WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -307,12 +329,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 WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -334,63 +356,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 WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -398,7 +410,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -406,38 +418,29 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, - None, - ] + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -464,9 +467,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -526,10 +527,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + 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] @@ -540,11 +543,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -553,6 +555,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 +573,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 WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +592,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,12 +621,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -628,22 +633,17 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, - None, - ] + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -670,9 +670,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -732,10 +730,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + 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] @@ -746,11 +746,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -759,6 +758,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 +776,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 WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -791,7 +795,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -820,12 +824,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -834,7 +836,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,30 +845,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, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, 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 WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent """ description: Union[str, None] @@ -882,7 +884,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -899,7 +901,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -910,12 +912,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -930,190 +930,42 @@ 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", + "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_0734.py b/githubkit/versions/v2022_11_28/types/group_0734.py index 4ee511008..e79061c26 100644 --- a/githubkit/versions/v2022_11_28/types/group_0734.py +++ b/githubkit/versions/v2022_11_28/types/group_0734.py @@ -14,38 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0449 import WebhooksUserMannequinType -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" - action: Literal["synchronize"] - after: str - before: str + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType + pull_request: WebhookPullRequestUnassignedPropPullRequestType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +58,9 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +72,11 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,24 +85,22 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -112,10 +110,10 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -142,7 +140,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -168,7 +166,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDi url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -177,12 +175,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,7 +209,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -223,7 +221,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict) url: str -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -245,12 +243,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(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 WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -260,7 +258,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -276,7 +274,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -305,7 +303,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -334,7 +332,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -361,48 +359,48 @@ class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -410,7 +408,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -418,29 +416,29 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsTyp href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -467,7 +465,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -527,8 +525,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -543,10 +540,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -580,7 +577,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -592,7 +589,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -621,10 +618,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -633,44 +630,17 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] 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] + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -730,8 +700,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -746,10 +715,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -783,7 +752,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -795,7 +764,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -824,10 +793,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -836,7 +805,34 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( +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 @@ -853,7 +849,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -864,11 +860,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent """ description: Union[str, None] @@ -884,9 +880,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -901,7 +895,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -912,10 +906,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -931,41 +925,41 @@ 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", + "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_0735.py b/githubkit/versions/v2022_11_28/types/group_0735.py index bc0d32a06..3f8eb66f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0735.py +++ b/githubkit/versions/v2022_11_28/types/group_0735.py @@ -14,38 +14,38 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0447 import WebhooksUserMannequinType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0441 import WebhooksLabelType -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType + pull_request: WebhookPullRequestUnlabeledPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -57,10 +57,8 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +70,11 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,22 +83,22 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -110,10 +108,10 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -140,7 +138,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -166,7 +164,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDic url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -175,12 +173,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,7 +207,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -221,7 +219,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -243,12 +241,12 @@ 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 WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -258,7 +256,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -274,9 +272,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -303,7 +299,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -332,7 +328,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -359,48 +355,48 @@ class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -408,7 +404,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -416,29 +412,29 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" - label: Union[str, None] + label: str ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -465,7 +461,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict) user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -525,7 +521,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -540,10 +536,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -577,7 +573,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -589,7 +585,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -618,10 +614,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -630,17 +626,17 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" label: Union[str, None] ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -700,7 +696,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -715,10 +711,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -752,7 +748,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -764,7 +760,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -793,10 +789,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -805,7 +801,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -832,7 +828,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict) user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -849,7 +845,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -860,11 +856,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent """ description: Union[str, None] @@ -880,7 +876,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -895,7 +891,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -906,10 +902,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -925,41 +921,41 @@ 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", + "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_0736.py b/githubkit/versions/v2022_11_28/types/group_0736.py index 66dc21db9..5978faca8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0736.py +++ b/githubkit/versions/v2022_11_28/types/group_0736.py @@ -14,38 +14,36 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0439 import WebhooksLabelType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" - action: Literal["unlabeled"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType + pull_request: WebhookPullRequestUnlockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +55,8 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +68,11 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +81,22 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +106,10 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,12 +131,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(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 WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -160,25 +158,25 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(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 WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: Union[str, None] + commit_title: str enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -207,7 +205,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -219,7 +217,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -246,7 +244,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -256,7 +254,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -272,7 +270,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -294,12 +292,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(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 WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -323,12 +321,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 WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -350,53 +348,53 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUserType(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 WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -404,7 +402,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -412,29 +410,29 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -461,7 +459,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -521,7 +519,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -536,10 +534,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -573,7 +571,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,9 +583,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -614,10 +610,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -626,17 +622,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -696,7 +692,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -711,10 +707,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -748,7 +744,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -760,9 +756,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -789,10 +783,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -801,7 +795,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -828,7 +822,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -837,30 +831,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, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, 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 WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] @@ -876,7 +870,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -891,7 +885,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,10 +896,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -921,41 +915,41 @@ 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", + "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_0737.py b/githubkit/versions/v2022_11_28/types/group_0737.py index 4890ee544..3e4c2b060 100644 --- a/githubkit/versions/v2022_11_28/types/group_0737.py +++ b/githubkit/versions/v2022_11_28/types/group_0737.py @@ -10,456 +10,129 @@ 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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" +class WebhookPushType(TypedDict): + """push event""" - action: Literal["unlocked"] + 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] - 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, - ] - ] - 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 + 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: 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 +class WebhookPushPropHeadCommitPropAuthorType(TypedDict): + """Committer - The status of auto merging a pull request. + Metaproperties for Git author/committer information. """ - 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 + date: NotRequired[datetime] + email: Union[str, None] 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] + username: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone +class WebhookPushPropHeadCommitPropCommitterType(TypedDict): + """Committer - A collection of related issues and pull requests. + Metaproperties for Git author/committer information. """ - 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""" + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: 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 WebhookPushPropPusherType(TypedDict): + """Committer -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): - """User""" + Metaproperties for Git author/committer information. + """ - avatar_url: NotRequired[str] - deleted: NotRequired[bool] + date: NotRequired[datetime] email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[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 - + 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 WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - href: str +class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): + """Committer + Metaproperties for Git author/committer information. + """ -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - label: str - ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] +class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): + """Committer -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(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 WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPushPropRepositoryType(TypedDict): """Repository A git repository @@ -484,6 +157,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(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 @@ -518,12 +192,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] + license_: Union[WebhookPushPropRepositoryPropLicenseType, 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] @@ -533,12 +203,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType - ] + owner: Union[WebhookPushPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str @@ -546,10 +212,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -564,189 +226,22 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( - 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] - +WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookPushPropRepositoryPropCustomProperties -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] +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 WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): +class WebhookPushPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -756,7 +251,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPushPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -783,10 +278,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -795,161 +288,18 @@ 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( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - __all__ = ( - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedType", + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropPusherType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", + "WebhookPushPropRepositoryType", + "WebhookPushType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0738.py b/githubkit/versions/v2022_11_28/types/group_0738.py index 0a3e5d16b..c54979e00 100644 --- a/githubkit/versions/v2022_11_28/types/group_0738.py +++ b/githubkit/versions/v2022_11_28/types/group_0738.py @@ -9,297 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0739 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookPushType(TypedDict): - """push event""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - after: str - base_ref: Union[str, None] - before: str - commits: list[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool + action: Literal["published"] 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] + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookPushPropHeadCommitType(TypedDict): - """Commit""" - - added: NotRequired[list[str]] - author: WebhookPushPropHeadCommitPropAuthorType - committer: WebhookPushPropHeadCommitPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str - url: str - - -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropPusherType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: NotRequired[Union[str, None]] - name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[list[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str - url: str - - -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - 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", -) +__all__ = ("WebhookRegistryPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0739.py b/githubkit/versions/v2022_11_28/types/group_0739.py index 5ad4ab127..a848dc4dc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0739.py +++ b/githubkit/versions/v2022_11_28/types/group_0739.py @@ -9,27 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0740 import WebhookRegistryPackagePublishedPropRegistryPackageType +from .group_0740 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - 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: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType + package_type: str + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + ] + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + ] + updated_at: Union[str, None] -__all__ = ("WebhookRegistryPackagePublishedType",) +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_0740.py b/githubkit/versions/v2022_11_28/types/group_0740.py index 72a378100..aa65be656 100644 --- a/githubkit/versions/v2022_11_28/types/group_0740.py +++ b/githubkit/versions/v2022_11_28/types/group_0740.py @@ -9,37 +9,81 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0741 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) +from .group_0659 import WebhookRubygemsMetadataType -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str + 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 - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] ] - updated_at: Union[str, 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 WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" avatar_url: str events_url: str @@ -62,18 +106,422 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict) user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: NotRequired[list[str]] + + +WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata +Items +""" + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, + None, + ] + ] + bugs: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, + None, + ] + ] + dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, + None, + ] + ] + scripts: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[list[str]] + contributors: NotRequired[list[str]] + engines: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + - about_url: NotRequired[str] +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, + int, + None, + ] + ] name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + ] + created_at: NotRequired[str] + draft: NotRequired[bool] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + prerelease: NotRequired[bool] + published_at: NotRequired[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + url: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] type: NotRequired[str] url: NotRequired[str] - vendor: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackagePublishedPropRegistryPackageType", + "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_0741.py b/githubkit/versions/v2022_11_28/types/group_0741.py index 90cad580f..e308b4d5b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0741.py +++ b/githubkit/versions/v2022_11_28/types/group_0741.py @@ -9,519 +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_0660 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0742 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - 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 + action: Literal["updated"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ - - tags: NotRequired[list[str]] - - -WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata -Items -""" - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, - None, - ] - ] - bugs: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, - None, - ] - ] - dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, - None, - ] - ] - scripts: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[list[str]] - contributors: NotRequired[list[str]] - engines: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ - - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ - - id: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, - None, - ] - ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - ] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - prerelease: NotRequired[bool] - published_at: NotRequired[str] - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - url: NotRequired[str] - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", -) +__all__ = ("WebhookRegistryPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0742.py b/githubkit/versions/v2022_11_28/types/group_0742.py index 8ffa13fc6..e79d16515 100644 --- a/githubkit/versions/v2022_11_28/types/group_0742.py +++ b/githubkit/versions/v2022_11_28/types/group_0742.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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0743 import WebhookRegistryPackageUpdatedPropRegistryPackageType +from .group_0743 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - action: Literal["updated"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: 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__ = ("WebhookRegistryPackageUpdatedType",) +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_0743.py b/githubkit/versions/v2022_11_28/types/group_0743.py index cba1ccca3..d62962703 100644 --- a/githubkit/versions/v2022_11_28/types/group_0743.py +++ b/githubkit/versions/v2022_11_28/types/group_0743.py @@ -9,37 +9,60 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0744 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +from .group_0659 import WebhookRubygemsMetadataType -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str created_at: str - description: None - ecosystem: 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 - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType - ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + 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 WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" avatar_url: str events_url: str @@ -62,12 +85,96 @@ class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +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__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0744.py b/githubkit/versions/v2022_11_28/types/group_0744.py index 7cf54ab8f..b715e1620 100644 --- a/githubkit/versions/v2022_11_28/types/group_0744.py +++ b/githubkit/versions/v2022_11_28/types/group_0744.py @@ -9,172 +9,27 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0660 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0469 import WebhooksReleaseType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: NotRequired[list[str]] - - -WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt -ems -""" - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] - name: NotRequired[str] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", -) +__all__ = ("WebhookReleaseCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0745.py b/githubkit/versions/v2022_11_28/types/group_0745.py index 0f3793b06..eceb283b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0745.py +++ b/githubkit/versions/v2022_11_28/types/group_0745.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0467 import WebhooksReleaseType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0469 import WebhooksReleaseType -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookReleaseCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookReleaseCreatedType",) +__all__ = ("WebhookReleaseDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0746.py b/githubkit/versions/v2022_11_28/types/group_0746.py index a0d03e0ba..7eaf5429f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0746.py +++ b/githubkit/versions/v2022_11_28/types/group_0746.py @@ -13,23 +13,64 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0467 import WebhooksReleaseType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0469 import WebhooksReleaseType -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookReleaseEditedType(TypedDict): + """release edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookReleaseEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookReleaseDeletedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + tag_name: NotRequired[WebhookReleaseEditedPropChangesPropTagNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropTagNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropTagName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +__all__ = ( + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesPropTagNameType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0747.py b/githubkit/versions/v2022_11_28/types/group_0747.py index a23288773..3bf53a02e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0747.py +++ b/githubkit/versions/v2022_11_28/types/group_0747.py @@ -9,68 +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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0467 import WebhooksReleaseType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookReleaseEditedType(TypedDict): - """release edited event""" +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType + action: Literal["prereleased"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType + release: WebhookReleasePrereleasedPropReleaseType repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" - - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - tag_name: NotRequired[WebhookReleaseEditedPropChangesPropTagNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] - - -class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropTagNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropTagName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool +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 + immutable: bool + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str __all__ = ( - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesPropTagNameType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0748.py b/githubkit/versions/v2022_11_28/types/group_0748.py index 2b86b8061..84e3bee0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0748.py +++ b/githubkit/versions/v2022_11_28/types/group_0748.py @@ -9,155 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0470 import WebhooksRelease1Type -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: Literal["prereleased"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType + release: WebhooksRelease1Type repository: RepositoryWebhooksType sender: NotRequired[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 - digest: Union[str, None] - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] - ] - url: str - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -__all__ = ( - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", - "WebhookReleasePrereleasedPropReleasePropAuthorType", - "WebhookReleasePrereleasedPropReleasePropReactionsType", - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedType", -) +__all__ = ("WebhookReleasePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0749.py b/githubkit/versions/v2022_11_28/types/group_0749.py index 8bf21d476..b061edbe0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0749.py +++ b/githubkit/versions/v2022_11_28/types/group_0749.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0468 import WebhooksRelease1Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0469 import WebhooksReleaseType -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" - action: Literal["published"] + action: Literal["released"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type + release: WebhooksReleaseType repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookReleasePublishedType",) +__all__ = ("WebhookReleaseReleasedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0750.py b/githubkit/versions/v2022_11_28/types/group_0750.py index f16e81202..e9143b189 100644 --- a/githubkit/versions/v2022_11_28/types/group_0750.py +++ b/githubkit/versions/v2022_11_28/types/group_0750.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0467 import WebhooksReleaseType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0470 import WebhooksRelease1Type -class WebhookReleaseReleasedType(TypedDict): - """release released event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" - action: Literal["released"] + action: Literal["unpublished"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType + release: WebhooksRelease1Type repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookReleaseReleasedType",) +__all__ = ("WebhookReleaseUnpublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0751.py b/githubkit/versions/v2022_11_28/types/group_0751.py index 123d2e791..239e1ba48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0751.py +++ b/githubkit/versions/v2022_11_28/types/group_0751.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0468 import WebhooksRelease1Type +from .group_0184 import RepositoryAdvisoryType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" - action: Literal["unpublished"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type repository: RepositoryWebhooksType + repository_advisory: RepositoryAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookReleaseUnpublishedType",) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0752.py b/githubkit/versions/v2022_11_28/types/group_0752.py index 09f2640b6..4845b2a73 100644 --- a/githubkit/versions/v2022_11_28/types/group_0752.py +++ b/githubkit/versions/v2022_11_28/types/group_0752.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0182 import RepositoryAdvisoryType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0184 import RepositoryAdvisoryType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" - action: Literal["published"] + action: Literal["reported"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookRepositoryAdvisoryPublishedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryAdvisoryPublishedType",) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0753.py b/githubkit/versions/v2022_11_28/types/group_0753.py index ed5581b3b..b945dac04 100644 --- a/githubkit/versions/v2022_11_28/types/group_0753.py +++ b/githubkit/versions/v2022_11_28/types/group_0753.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0182 import RepositoryAdvisoryType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" - action: Literal["reported"] + action: Literal["archived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +__all__ = ("WebhookRepositoryArchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0754.py b/githubkit/versions/v2022_11_28/types/group_0754.py index 81231c580..9c5da07d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0754.py +++ b/githubkit/versions/v2022_11_28/types/group_0754.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" - action: Literal["archived"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryArchivedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryArchivedType",) +__all__ = ("WebhookRepositoryCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0755.py b/githubkit/versions/v2022_11_28/types/group_0755.py index 63dba6410..8c23fbffb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0755.py +++ b/githubkit/versions/v2022_11_28/types/group_0755.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryCreatedType",) +__all__ = ("WebhookRepositoryDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0756.py b/githubkit/versions/v2022_11_28/types/group_0756.py index 0b6bf5222..697edcfc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0756.py +++ b/githubkit/versions/v2022_11_28/types/group_0756.py @@ -9,25 +9,38 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryDeletedType(TypedDict): - """repository 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: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryDeletedType",) +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_0757.py b/githubkit/versions/v2022_11_28/types/group_0757.py index 4b99cbf24..cabc1f6ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0757.py +++ b/githubkit/versions/v2022_11_28/types/group_0757.py @@ -9,38 +9,66 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] -"""WebhookRepositoryDispatchSamplePropClientPayload +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" -The `client_payload` that was specified in the `POST -/repos/{owner}/{repo}/dispatches` request body. -""" + 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__ = ( - "WebhookRepositoryDispatchSamplePropClientPayloadType", - "WebhookRepositoryDispatchSampleType", + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0758.py b/githubkit/versions/v2022_11_28/types/group_0758.py index e4c029215..8bea7f059 100644 --- a/githubkit/versions/v2022_11_28/types/group_0758.py +++ b/githubkit/versions/v2022_11_28/types/group_0758.py @@ -9,66 +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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType + status: Literal["success", "cancelled", "failure"] -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__ = ("WebhookRepositoryImportType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0759.py b/githubkit/versions/v2022_11_28/types/group_0759.py index 8d7b5f791..bc9bd4de5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0759.py +++ b/githubkit/versions/v2022_11_28/types/group_0759.py @@ -13,21 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" + action: Literal["privatized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookRepositoryImportType",) +__all__ = ("WebhookRepositoryPrivatizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0760.py b/githubkit/versions/v2022_11_28/types/group_0760.py index 732c006f4..7f3fe77e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0760.py +++ b/githubkit/versions/v2022_11_28/types/group_0760.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - action: Literal["privatized"] + action: Literal["publicized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryPrivatizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPrivatizedType",) +__all__ = ("WebhookRepositoryPublicizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0761.py b/githubkit/versions/v2022_11_28/types/group_0761.py index 4151ab6d3..9938504e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0761.py +++ b/githubkit/versions/v2022_11_28/types/group_0761.py @@ -13,16 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" - action: Literal["publicized"] + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +31,27 @@ class WebhookRepositoryPublicizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPublicizedType",) +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" + + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType + + +class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepository""" + + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType + + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + + from_: str + + +__all__ = ( + "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", + "WebhookRepositoryRenamedPropChangesPropRepositoryType", + "WebhookRepositoryRenamedPropChangesType", + "WebhookRepositoryRenamedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0762.py b/githubkit/versions/v2022_11_28/types/group_0762.py index ae9c329bb..202a9d5d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0762.py +++ b/githubkit/versions/v2022_11_28/types/group_0762.py @@ -13,45 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0175 import RepositoryRulesetType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType 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__ = ("WebhookRepositoryRulesetCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0763.py b/githubkit/versions/v2022_11_28/types/group_0763.py index 1f6c92bc9..db35ca481 100644 --- a/githubkit/versions/v2022_11_28/types/group_0763.py +++ b/githubkit/versions/v2022_11_28/types/group_0763.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0173 import RepositoryRulesetType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0175 import RepositoryRulesetType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookRepositoryRulesetCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetCreatedType",) +__all__ = ("WebhookRepositoryRulesetDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0764.py b/githubkit/versions/v2022_11_28/types/group_0764.py index 226a580e2..46f0928fe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0764.py +++ b/githubkit/versions/v2022_11_28/types/group_0764.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0173 import RepositoryRulesetType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0175 import RepositoryRulesetType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0765 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" - action: Literal["deleted"] + action: Literal["edited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetDeletedType",) +__all__ = ("WebhookRepositoryRulesetEditedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0765.py b/githubkit/versions/v2022_11_28/types/group_0765.py index a7166a129..8c66c958e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0765.py +++ b/githubkit/versions/v2022_11_28/types/group_0765.py @@ -9,29 +9,37 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0173 import RepositoryRulesetType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0766 import WebhookRepositoryRulesetEditedPropChangesType +from .group_0766 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +from .group_0768 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["edited"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] - sender: SimpleUserType + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] -__all__ = ("WebhookRepositoryRulesetEditedType",) +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_0766.py b/githubkit/versions/v2022_11_28/types/group_0766.py index 14bfeda70..09af7c4d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0766.py +++ b/githubkit/versions/v2022_11_28/types/group_0766.py @@ -11,35 +11,22 @@ from typing_extensions import NotRequired, TypedDict -from .group_0767 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -from .group_0769 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0128 import RepositoryRulesetConditionsType +from .group_0767 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + added: NotRequired[list[RepositoryRulesetConditionsType]] + deleted: NotRequired[list[RepositoryRulesetConditionsType]] + updated: NotRequired[ + list[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType + ] ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] - - -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: NotRequired[str] -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0767.py b/githubkit/versions/v2022_11_28/types/group_0767.py index 6272f9ede..c2a8ec367 100644 --- a/githubkit/versions/v2022_11_28/types/group_0767.py +++ b/githubkit/versions/v2022_11_28/types/group_0767.py @@ -11,22 +11,86 @@ from typing_extensions import NotRequired, TypedDict -from .group_0126 import RepositoryRulesetConditionsType -from .group_0768 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +from .group_0128 import RepositoryRulesetConditionsType + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ - added: NotRequired[list[RepositoryRulesetConditionsType]] - deleted: NotRequired[list[RepositoryRulesetConditionsType]] - updated: NotRequired[ - list[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType + ] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType ] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: NotRequired[list[str]] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: NotRequired[list[str]] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0768.py b/githubkit/versions/v2022_11_28/types/group_0768.py index 1a71158be..c6d4ec0db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0768.py +++ b/githubkit/versions/v2022_11_28/types/group_0768.py @@ -9,88 +9,97 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0126 import RepositoryRulesetConditionsType - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] - +from .group_0139 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0140 import RepositoryRuleUpdateType +from .group_0142 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleMergeQueueType +from .group_0145 import RepositoryRuleRequiredDeploymentsType +from .group_0148 import RepositoryRulePullRequestType +from .group_0150 import RepositoryRuleRequiredStatusChecksType +from .group_0152 import RepositoryRuleCommitMessagePatternType +from .group_0154 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0156 import RepositoryRuleCommitterEmailPatternType +from .group_0158 import RepositoryRuleBranchNamePatternType +from .group_0160 import RepositoryRuleTagNamePatternType +from .group_0162 import RepositoryRuleFilePathRestrictionType +from .group_0164 import RepositoryRuleMaxFilePathLengthType +from .group_0166 import RepositoryRuleFileExtensionRestrictionType +from .group_0168 import RepositoryRuleMaxFileSizeType +from .group_0171 import RepositoryRuleWorkflowsType +from .group_0173 import RepositoryRuleCodeScanningType +from .group_0769 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + deleted: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + updated: NotRequired[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] ] -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__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0769.py b/githubkit/versions/v2022_11_28/types/group_0769.py index bc350b450..66d0f8c0d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0769.py +++ b/githubkit/versions/v2022_11_28/types/group_0769.py @@ -12,94 +12,114 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0137 import ( +from .group_0139 import ( RepositoryRuleCreationType, RepositoryRuleDeletionType, RepositoryRuleNonFastForwardType, RepositoryRuleRequiredSignaturesType, ) -from .group_0138 import RepositoryRuleUpdateType -from .group_0140 import RepositoryRuleRequiredLinearHistoryType -from .group_0141 import RepositoryRuleMergeQueueType -from .group_0143 import RepositoryRuleRequiredDeploymentsType -from .group_0146 import RepositoryRulePullRequestType -from .group_0148 import RepositoryRuleRequiredStatusChecksType -from .group_0150 import RepositoryRuleCommitMessagePatternType -from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0154 import RepositoryRuleCommitterEmailPatternType -from .group_0156 import RepositoryRuleBranchNamePatternType -from .group_0158 import RepositoryRuleTagNamePatternType -from .group_0160 import RepositoryRuleFilePathRestrictionType -from .group_0162 import RepositoryRuleMaxFilePathLengthType -from .group_0164 import RepositoryRuleFileExtensionRestrictionType -from .group_0166 import RepositoryRuleMaxFileSizeType -from .group_0169 import RepositoryRuleWorkflowsType -from .group_0171 import RepositoryRuleCodeScanningType -from .group_0770 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) +from .group_0140 import RepositoryRuleUpdateType +from .group_0142 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleMergeQueueType +from .group_0145 import RepositoryRuleRequiredDeploymentsType +from .group_0148 import RepositoryRulePullRequestType +from .group_0150 import RepositoryRuleRequiredStatusChecksType +from .group_0152 import RepositoryRuleCommitMessagePatternType +from .group_0154 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0156 import RepositoryRuleCommitterEmailPatternType +from .group_0158 import RepositoryRuleBranchNamePatternType +from .group_0160 import RepositoryRuleTagNamePatternType +from .group_0162 import RepositoryRuleFilePathRestrictionType +from .group_0164 import RepositoryRuleMaxFilePathLengthType +from .group_0166 import RepositoryRuleFileExtensionRestrictionType +from .group_0168 import RepositoryRuleMaxFileSizeType +from .group_0171 import RepositoryRuleWorkflowsType +from .group_0173 import RepositoryRuleCodeScanningType + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] + rule: NotRequired[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, ] ] - deleted: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType ] - updated: NotRequired[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType + ] + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType ] + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType + ] + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0770.py b/githubkit/versions/v2022_11_28/types/group_0770.py index 043dcc63e..065041c09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0770.py +++ b/githubkit/versions/v2022_11_28/types/group_0770.py @@ -9,117 +9,105 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0137 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0138 import RepositoryRuleUpdateType -from .group_0140 import RepositoryRuleRequiredLinearHistoryType -from .group_0141 import RepositoryRuleMergeQueueType -from .group_0143 import RepositoryRuleRequiredDeploymentsType -from .group_0146 import RepositoryRulePullRequestType -from .group_0148 import RepositoryRuleRequiredStatusChecksType -from .group_0150 import RepositoryRuleCommitMessagePatternType -from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0154 import RepositoryRuleCommitterEmailPatternType -from .group_0156 import RepositoryRuleBranchNamePatternType -from .group_0158 import RepositoryRuleTagNamePatternType -from .group_0160 import RepositoryRuleFilePathRestrictionType -from .group_0162 import RepositoryRuleMaxFilePathLengthType -from .group_0164 import RepositoryRuleFileExtensionRestrictionType -from .group_0166 import RepositoryRuleMaxFileSizeType -from .group_0169 import RepositoryRuleWorkflowsType -from .group_0171 import RepositoryRuleCodeScanningType - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ +class WebhookRepositoryTransferredPropChangesType(TypedDict): + """WebhookRepositoryTransferredPropChanges""" - from_: NotRequired[str] + owner: WebhookRepositoryTransferredPropChangesPropOwnerType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ +class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwner""" - from_: NotRequired[str] + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: NotRequired[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType + ] + user: NotRequired[ + Union[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None + ] + ] + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( TypedDict ): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] + """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__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0771.py b/githubkit/versions/v2022_11_28/types/group_0771.py index 69e6ac611..3af98ec6d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0771.py +++ b/githubkit/versions/v2022_11_28/types/group_0771.py @@ -9,21 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType + action: Literal["unarchived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -31,83 +30,4 @@ class WebhookRepositoryTransferredType(TypedDict): 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__ = ("WebhookRepositoryUnarchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0772.py b/githubkit/versions/v2022_11_28/types/group_0772.py index c5fc42ada..a01eeb59b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0772.py +++ b/githubkit/versions/v2022_11_28/types/group_0772.py @@ -13,16 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0471 import WebhooksAlertType -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" - action: Literal["unarchived"] + action: Literal["create"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +32,4 @@ class WebhookRepositoryUnarchivedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryUnarchivedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0773.py b/githubkit/versions/v2022_11_28/types/group_0773.py index 4245c8c30..fd9554e03 100644 --- a/githubkit/versions/v2022_11_28/types/group_0773.py +++ b/githubkit/versions/v2022_11_28/types/group_0773.py @@ -9,22 +9,22 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0469 import WebhooksAlertType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" - action: Literal["create"] - alert: WebhooksAlertType + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,63 @@ class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +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_0774.py b/githubkit/versions/v2022_11_28/types/group_0774.py index e43b98b2f..f5455b0de 100644 --- a/githubkit/versions/v2022_11_28/types/group_0774.py +++ b/githubkit/versions/v2022_11_28/types/group_0774.py @@ -9,22 +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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0471 import WebhooksAlertType -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType + action: Literal["reopen"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,63 +32,4 @@ class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): sender: SimpleUserType -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", -) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0775.py b/githubkit/versions/v2022_11_28/types/group_0775.py index c5af1583a..302e6e6cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0775.py +++ b/githubkit/versions/v2022_11_28/types/group_0775.py @@ -9,22 +9,22 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0469 import WebhooksAlertType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["reopen"] - alert: WebhooksAlertType + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,63 @@ class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) +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_0776.py b/githubkit/versions/v2022_11_28/types/group_0776.py index d7786a02f..6e0c54933 100644 --- a/githubkit/versions/v2022_11_28/types/group_0776.py +++ b/githubkit/versions/v2022_11_28/types/group_0776.py @@ -9,86 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0472 import SecretScanningAlertWebhookType -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType + action: Literal["created"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -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", -) +__all__ = ("WebhookSecretScanningAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0777.py b/githubkit/versions/v2022_11_28/types/group_0777.py index 466080600..f2323d670 100644 --- a/githubkit/versions/v2022_11_28/types/group_0777.py +++ b/githubkit/versions/v2022_11_28/types/group_0777.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0470 import SecretScanningAlertWebhookType +from .group_0383 import SecretScanningLocationType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0472 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" action: Literal["created"] alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertCreatedType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0778.py b/githubkit/versions/v2022_11_28/types/group_0778.py index 5c2acb036..4c3c84e39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0778.py +++ b/githubkit/versions/v2022_11_28/types/group_0778.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_0003 import SimpleUserType -from .group_0381 import SecretScanningLocationType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0470 import SecretScanningAlertWebhookType - -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): """Secret Scanning Alert Location Created Event""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType - installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + payload: str -__all__ = ("WebhookSecretScanningAlertLocationCreatedType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0779.py b/githubkit/versions/v2022_11_28/types/group_0779.py index 4c3c84e39..9f7762b7f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0779.py +++ b/githubkit/versions/v2022_11_28/types/group_0779.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_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0472 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - payload: str +class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): + """secret_scanning_alert publicly leaked event""" + action: Literal["publicly_leaked"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) + +__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0780.py b/githubkit/versions/v2022_11_28/types/group_0780.py index b931e715e..3970a14b5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0780.py +++ b/githubkit/versions/v2022_11_28/types/group_0780.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0470 import SecretScanningAlertWebhookType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0472 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): - """secret_scanning_alert publicly leaked event""" +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" - action: Literal["publicly_leaked"] + action: Literal["reopened"] alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) +__all__ = ("WebhookSecretScanningAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0781.py b/githubkit/versions/v2022_11_28/types/group_0781.py index 16973422a..d2f79d05c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0781.py +++ b/githubkit/versions/v2022_11_28/types/group_0781.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0470 import SecretScanningAlertWebhookType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0472 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - action: Literal["reopened"] + action: Literal["resolved"] alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookSecretScanningAlertReopenedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertReopenedType",) +__all__ = ("WebhookSecretScanningAlertResolvedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0782.py b/githubkit/versions/v2022_11_28/types/group_0782.py index 473e7664a..4db7a3b3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0782.py +++ b/githubkit/versions/v2022_11_28/types/group_0782.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0470 import SecretScanningAlertWebhookType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0472 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" - action: Literal["resolved"] + action: Literal["validated"] alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookSecretScanningAlertResolvedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertResolvedType",) +__all__ = ("WebhookSecretScanningAlertValidatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0783.py b/githubkit/versions/v2022_11_28/types/group_0783.py index fe15ed3e4..69c6dd445 100644 --- a/githubkit/versions/v2022_11_28/types/group_0783.py +++ b/githubkit/versions/v2022_11_28/types/group_0783.py @@ -9,27 +9,35 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0470 import SecretScanningAlertWebhookType - - -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" - - action: Literal["validated"] - alert: SecretScanningAlertWebhookType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType + + +class WebhookSecretScanningScanCompletedType(TypedDict): + """secret_scanning_scan completed event""" + + action: Literal["completed"] + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] + started_at: datetime + completed_at: datetime + secret_types: NotRequired[Union[list[str], None]] + custom_pattern_name: NotRequired[Union[str, None]] + custom_pattern_scope: NotRequired[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] + repository: NotRequired[RepositoryWebhooksType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertValidatedType",) +__all__ = ("WebhookSecretScanningScanCompletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0784.py b/githubkit/versions/v2022_11_28/types/group_0784.py index 3e137c21b..201d17e36 100644 --- a/githubkit/versions/v2022_11_28/types/group_0784.py +++ b/githubkit/versions/v2022_11_28/types/group_0784.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_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType - - -class WebhookSecretScanningScanCompletedType(TypedDict): - """secret_scanning_scan completed event""" - - action: Literal["completed"] - type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] - source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] - started_at: datetime - completed_at: datetime - secret_types: NotRequired[Union[list[str], None]] - custom_pattern_name: NotRequired[Union[str, None]] - custom_pattern_scope: NotRequired[ - Union[None, Literal["repository", "organization", "enterprise"]] - ] - repository: NotRequired[RepositoryWebhooksType] +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0473 import WebhooksSecurityAdvisoryType + + +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" + + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhooksSecurityAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningScanCompletedType",) +__all__ = ("WebhookSecurityAdvisoryPublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0785.py b/githubkit/versions/v2022_11_28/types/group_0785.py index ee800d298..2b50d0c5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0785.py +++ b/githubkit/versions/v2022_11_28/types/group_0785.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0471 import WebhooksSecurityAdvisoryType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0473 import WebhooksSecurityAdvisoryType -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - action: Literal["published"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookSecurityAdvisoryPublishedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryPublishedType",) +__all__ = ("WebhookSecurityAdvisoryUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0786.py b/githubkit/versions/v2022_11_28/types/group_0786.py index 044543086..e25b2037d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0786.py +++ b/githubkit/versions/v2022_11_28/types/group_0786.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0471 import WebhooksSecurityAdvisoryType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0787 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" - action: Literal["updated"] + action: Literal["withdrawn"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryUpdatedType",) +__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0787.py b/githubkit/versions/v2022_11_28/types/group_0787.py index 82d2f5404..f38acab63 100644 --- a/githubkit/versions/v2022_11_28/types/group_0787.py +++ b/githubkit/versions/v2022_11_28/types/group_0787.py @@ -9,27 +9,113 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0788 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType +from .group_0001 import CvssSeveritiesType -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["withdrawn"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType - sender: NotRequired[SimpleUserType] + 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__ = ("WebhookSecurityAdvisoryWithdrawnType",) + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str + name: str + + +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0788.py b/githubkit/versions/v2022_11_28/types/group_0788.py index f38acab63..b080cf379 100644 --- a/githubkit/versions/v2022_11_28/types/group_0788.py +++ b/githubkit/versions/v2022_11_28/types/group_0788.py @@ -9,113 +9,25 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0126 import FullRepositoryType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0789 import WebhookSecurityAndAnalysisPropChangesType -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - The details of the security advisory, including summary, description, and - severity. - """ + changes: WebhookSecurityAndAnalysisPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: FullRepositoryType + 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__ = ("WebhookSecurityAndAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0789.py b/githubkit/versions/v2022_11_28/types/group_0789.py index 6eb49d48f..0c3e4a0f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0789.py +++ b/githubkit/versions/v2022_11_28/types/group_0789.py @@ -11,23 +11,13 @@ from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0124 import FullRepositoryType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0790 import WebhookSecurityAndAnalysisPropChangesType +from .group_0790 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - changes: WebhookSecurityAndAnalysisPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType - sender: NotRequired[SimpleUserType] + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -__all__ = ("WebhookSecurityAndAnalysisType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0790.py b/githubkit/versions/v2022_11_28/types/group_0790.py index 5a1c07bf1..4ff302179 100644 --- a/githubkit/versions/v2022_11_28/types/group_0790.py +++ b/githubkit/versions/v2022_11_28/types/group_0790.py @@ -9,15 +9,16 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0791 import WebhookSecurityAndAnalysisPropChangesPropFromType +from .group_0062 import SecurityAndAnalysisType -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0791.py b/githubkit/versions/v2022_11_28/types/group_0791.py index c0b5b7308..2cf04e392 100644 --- a/githubkit/versions/v2022_11_28/types/group_0791.py +++ b/githubkit/versions/v2022_11_28/types/group_0791.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_0060 import SecurityAndAnalysisType +from .group_0003 import SimpleUserType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0474 import WebhooksSponsorshipType -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + action: Literal["cancelled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +__all__ = ("WebhookSponsorshipCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0792.py b/githubkit/versions/v2022_11_28/types/group_0792.py index 7ecf7f78f..56486fe9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0792.py +++ b/githubkit/versions/v2022_11_28/types/group_0792.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0472 import WebhooksSponsorshipType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0474 import WebhooksSponsorshipType -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" - action: Literal["cancelled"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookSponsorshipCancelledType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipCancelledType",) +__all__ = ("WebhookSponsorshipCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0793.py b/githubkit/versions/v2022_11_28/types/group_0793.py index 9d8c1cf48..b2d240cbe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0793.py +++ b/githubkit/versions/v2022_11_28/types/group_0793.py @@ -13,17 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0472 import WebhooksSponsorshipType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0474 import WebhooksSponsorshipType -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" - action: Literal["created"] + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +33,20 @@ class WebhookSponsorshipCreatedType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipCreatedType",) +class WebhookSponsorshipEditedPropChangesType(TypedDict): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str + + +__all__ = ( + "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", + "WebhookSponsorshipEditedPropChangesType", + "WebhookSponsorshipEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0794.py b/githubkit/versions/v2022_11_28/types/group_0794.py index d261f8fde..7289b5ac8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0794.py +++ b/githubkit/versions/v2022_11_28/types/group_0794.py @@ -13,18 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0472 import WebhooksSponsorshipType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0474 import WebhooksSponsorshipType -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,20 +33,4 @@ class WebhookSponsorshipEditedType(TypedDict): sponsorship: WebhooksSponsorshipType -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str - - -__all__ = ( - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedType", -) +__all__ = ("WebhookSponsorshipPendingCancellationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0795.py b/githubkit/versions/v2022_11_28/types/group_0795.py index 270003bfd..453233749 100644 --- a/githubkit/versions/v2022_11_28/types/group_0795.py +++ b/githubkit/versions/v2022_11_28/types/group_0795.py @@ -13,17 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0472 import WebhooksSponsorshipType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0474 import WebhooksSponsorshipType +from .group_0475 import WebhooksChanges8Type -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" - action: Literal["pending_cancellation"] + action: Literal["pending_tier_change"] + changes: WebhooksChanges8Type effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,4 +35,4 @@ class WebhookSponsorshipPendingCancellationType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipPendingCancellationType",) +__all__ = ("WebhookSponsorshipPendingTierChangeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0796.py b/githubkit/versions/v2022_11_28/types/group_0796.py index 28cb8eaf2..1de2ae37c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0796.py +++ b/githubkit/versions/v2022_11_28/types/group_0796.py @@ -13,20 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0472 import WebhooksSponsorshipType -from .group_0473 import WebhooksChanges8Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0474 import WebhooksSponsorshipType +from .group_0475 import WebhooksChanges8Type -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" - action: Literal["pending_tier_change"] + action: Literal["tier_changed"] changes: WebhooksChanges8Type - effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -35,4 +34,4 @@ class WebhookSponsorshipPendingTierChangeType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipPendingTierChangeType",) +__all__ = ("WebhookSponsorshipTierChangedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0797.py b/githubkit/versions/v2022_11_28/types/group_0797.py index 87b935e6e..243bfffe5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0797.py +++ b/githubkit/versions/v2022_11_28/types/group_0797.py @@ -9,29 +9,26 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0472 import WebhooksSponsorshipType -from .group_0473 import WebhooksChanges8Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" +class WebhookStarCreatedType(TypedDict): + """star created event""" - action: Literal["tier_changed"] - changes: WebhooksChanges8Type + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + starred_at: Union[str, None] -__all__ = ("WebhookSponsorshipTierChangedType",) +__all__ = ("WebhookStarCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0798.py b/githubkit/versions/v2022_11_28/types/group_0798.py index dde9593c4..3a6e676d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0798.py +++ b/githubkit/versions/v2022_11_28/types/group_0798.py @@ -9,26 +9,26 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookStarCreatedType(TypedDict): - """star created event""" +class WebhookStarDeletedType(TypedDict): + """star deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - starred_at: Union[str, None] + starred_at: None -__all__ = ("WebhookStarCreatedType",) +__all__ = ("WebhookStarDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0799.py b/githubkit/versions/v2022_11_28/types/group_0799.py index 85ecab45a..9d792bb0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0799.py +++ b/githubkit/versions/v2022_11_28/types/group_0799.py @@ -9,26 +9,202 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookStarDeletedType(TypedDict): - """star deleted event""" +class WebhookStatusType(TypedDict): + """status event""" - action: Literal["deleted"] + 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: RepositoryWebhooksType sender: SimpleUserType - starred_at: None + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] + updated_at: str -__all__ = ("WebhookStarDeletedType",) +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_0800.py b/githubkit/versions/v2022_11_28/types/group_0800.py index 15f96d5d9..31b2ed900 100644 --- a/githubkit/versions/v2022_11_28/types/group_0800.py +++ b/githubkit/versions/v2022_11_28/types/group_0800.py @@ -10,201 +10,20 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookStatusType(TypedDict): - """status event""" + Metaproperties for Git author/committer information. + """ - 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: RepositoryWebhooksType - sender: SimpleUserType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str - - -class WebhookStatusPropBranchesItemsType(TypedDict): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommitType - name: str - protected: bool - - -class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] - url: Union[str, None] - - -class WebhookStatusPropCommitType(TypedDict): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthorType, None] - comments_url: str - commit: WebhookStatusPropCommitPropCommitType - committer: Union[WebhookStatusPropCommitPropCommitterType, None] - html_url: str - node_id: str - parents: list[WebhookStatusPropCommitPropParentsItemsType] - sha: str - url: str - - -class WebhookStatusPropCommitPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropParentsItemsType(TypedDict): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitType(TypedDict): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthorType - comment_count: int - committer: WebhookStatusPropCommitPropCommitPropCommitterType - message: str - tree: WebhookStatusPropCommitPropCommitPropTreeType - url: str - verification: WebhookStatusPropCommitPropCommitPropVerificationType - - -class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime - email: str + date: NotRequired[datetime] + email: Union[str, None] name: str username: NotRequired[str] -class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] - signature: Union[str, None] - verified: bool - verified_at: Union[str, None] - - -__all__ = ( - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitType", - "WebhookStatusType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0801.py b/githubkit/versions/v2022_11_28/types/group_0801.py index 31b2ed900..eafde2845 100644 --- a/githubkit/versions/v2022_11_28/types/group_0801.py +++ b/githubkit/versions/v2022_11_28/types/group_0801.py @@ -9,21 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - Metaproperties for Git author/committer information. - """ + date: str + email: NotRequired[str] + name: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0802.py b/githubkit/versions/v2022_11_28/types/group_0802.py index eafde2845..e44b95c39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0802.py +++ b/githubkit/versions/v2022_11_28/types/group_0802.py @@ -9,15 +9,21 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer - date: str - email: NotRequired[str] - name: NotRequired[str] + Metaproperties for Git author/committer information. + """ + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) + +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0803.py b/githubkit/versions/v2022_11_28/types/group_0803.py index e44b95c39..a808e25ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0803.py +++ b/githubkit/versions/v2022_11_28/types/group_0803.py @@ -9,21 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - Metaproperties for Git author/committer information. - """ + date: str + email: NotRequired[str] + name: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0804.py b/githubkit/versions/v2022_11_28/types/group_0804.py index a808e25ce..52a4c3160 100644 --- a/githubkit/versions/v2022_11_28/types/group_0804.py +++ b/githubkit/versions/v2022_11_28/types/group_0804.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_0020 import RepositoryType +from .group_0047 import IssueType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +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: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) + +__all__ = ("WebhookSubIssuesParentIssueAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0805.py b/githubkit/versions/v2022_11_28/types/group_0805.py index a04904451..3ef19a02e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0805.py +++ b/githubkit/versions/v2022_11_28/types/group_0805.py @@ -14,16 +14,16 @@ from .group_0003 import SimpleUserType from .group_0020 import RepositoryType -from .group_0045 import IssueType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0047 import IssueType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookSubIssuesParentIssueAddedType(TypedDict): - """parent issue added event""" +class WebhookSubIssuesParentIssueRemovedType(TypedDict): + """parent issue removed event""" - action: Literal["parent_issue_added"] + action: Literal["parent_issue_removed"] parent_issue_id: float parent_issue: IssueType parent_issue_repo: RepositoryType @@ -35,4 +35,4 @@ class WebhookSubIssuesParentIssueAddedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSubIssuesParentIssueAddedType",) +__all__ = ("WebhookSubIssuesParentIssueRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0806.py b/githubkit/versions/v2022_11_28/types/group_0806.py index 5c435c08f..b695359b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0806.py +++ b/githubkit/versions/v2022_11_28/types/group_0806.py @@ -14,25 +14,25 @@ from .group_0003 import SimpleUserType from .group_0020 import RepositoryType -from .group_0045 import IssueType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0047 import IssueType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookSubIssuesParentIssueRemovedType(TypedDict): - """parent issue removed event""" +class WebhookSubIssuesSubIssueAddedType(TypedDict): + """sub-issue added event""" - action: Literal["parent_issue_removed"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType + action: Literal["sub_issue_added"] sub_issue_id: float sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSubIssuesParentIssueRemovedType",) +__all__ = ("WebhookSubIssuesSubIssueAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0807.py b/githubkit/versions/v2022_11_28/types/group_0807.py index eefda7827..b5bc634f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0807.py +++ b/githubkit/versions/v2022_11_28/types/group_0807.py @@ -14,16 +14,16 @@ from .group_0003 import SimpleUserType from .group_0020 import RepositoryType -from .group_0045 import IssueType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0047 import IssueType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookSubIssuesSubIssueAddedType(TypedDict): - """sub-issue added event""" +class WebhookSubIssuesSubIssueRemovedType(TypedDict): + """sub-issue removed event""" - action: Literal["sub_issue_added"] + action: Literal["sub_issue_removed"] sub_issue_id: float sub_issue: IssueType sub_issue_repo: RepositoryType @@ -35,4 +35,4 @@ class WebhookSubIssuesSubIssueAddedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSubIssuesSubIssueAddedType",) +__all__ = ("WebhookSubIssuesSubIssueRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0808.py b/githubkit/versions/v2022_11_28/types/group_0808.py index 1f86482fa..3129dbe49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0808.py +++ b/githubkit/versions/v2022_11_28/types/group_0808.py @@ -9,30 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0045 import IssueType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType - - -class WebhookSubIssuesSubIssueRemovedType(TypedDict): - """sub-issue removed event""" - - action: Literal["sub_issue_removed"] - sub_issue_id: float - sub_issue: IssueType - sub_issue_repo: RepositoryType - parent_issue_id: float - parent_issue: IssueType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0476 import WebhooksTeam1Type + + +class WebhookTeamAddType(TypedDict): + """team_add event""" + + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + team: WebhooksTeam1Type -__all__ = ("WebhookSubIssuesSubIssueRemovedType",) +__all__ = ("WebhookTeamAddType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0809.py b/githubkit/versions/v2022_11_28/types/group_0809.py index 995358c25..59f67faad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0809.py +++ b/githubkit/versions/v2022_11_28/types/group_0809.py @@ -9,25 +9,194 @@ 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_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0474 import WebhooksTeam1Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0476 import WebhooksTeam1Type -class WebhookTeamAddType(TypedDict): - """team_add event""" +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" + action: Literal["added_to_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserType] team: WebhooksTeam1Type -__all__ = ("WebhookTeamAddType",) +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0810.py b/githubkit/versions/v2022_11_28/types/group_0810.py index f8ab7f27d..02ddd9861 100644 --- a/githubkit/versions/v2022_11_28/types/group_0810.py +++ b/githubkit/versions/v2022_11_28/types/group_0810.py @@ -14,25 +14,25 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0474 import WebhooksTeam1Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0476 import WebhooksTeam1Type -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" +class WebhookTeamCreatedType(TypedDict): + """team created event""" - action: Literal["added_to_repository"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] - sender: NotRequired[SimpleUserType] + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] + sender: SimpleUserType team: WebhooksTeam1Type -class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): +class WebhookTeamCreatedPropRepositoryType(TypedDict): """Repository A git repository @@ -58,7 +58,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): contributors_url: str created_at: Union[int, datetime] custom_properties: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType ] default_branch: str delete_branch_on_merge: NotRequired[bool] @@ -93,7 +93,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -104,10 +104,8 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType - ] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str @@ -134,10 +132,8 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): watchers_count: int -WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties +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 @@ -145,7 +141,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): """ -class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -155,7 +151,7 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -182,8 +178,8 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -193,10 +189,10 @@ class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): __all__ = ( - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryType", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0811.py b/githubkit/versions/v2022_11_28/types/group_0811.py index a80e3c9d6..be3cc035a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0811.py +++ b/githubkit/versions/v2022_11_28/types/group_0811.py @@ -14,25 +14,25 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0474 import WebhooksTeam1Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0476 import WebhooksTeam1Type -class WebhookTeamCreatedType(TypedDict): - """team created event""" +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] - sender: SimpleUserType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserType] team: WebhooksTeam1Type -class WebhookTeamCreatedPropRepositoryType(TypedDict): +class WebhookTeamDeletedPropRepositoryType(TypedDict): """Repository A git repository @@ -58,7 +58,7 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): contributors_url: str created_at: Union[int, datetime] custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType ] default_branch: str delete_branch_on_merge: NotRequired[bool] @@ -93,7 +93,7 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -104,8 +104,8 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str @@ -132,8 +132,8 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): watchers_count: int -WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamCreatedPropRepositoryPropCustomProperties +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 @@ -141,7 +141,7 @@ class WebhookTeamCreatedPropRepositoryType(TypedDict): """ -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -151,7 +151,7 @@ class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -178,8 +178,8 @@ class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -189,10 +189,10 @@ class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): __all__ = ( - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedType", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0812.py b/githubkit/versions/v2022_11_28/types/group_0812.py index 175ef7dfa..f2574ae40 100644 --- a/githubkit/versions/v2022_11_28/types/group_0812.py +++ b/githubkit/versions/v2022_11_28/types/group_0812.py @@ -14,25 +14,26 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0474 import WebhooksTeam1Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0476 import WebhooksTeam1Type -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" +class WebhookTeamEditedType(TypedDict): + """team edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] - sender: NotRequired[SimpleUserType] + repository: NotRequired[WebhookTeamEditedPropRepositoryType] + sender: SimpleUserType team: WebhooksTeam1Type -class WebhookTeamDeletedPropRepositoryType(TypedDict): +class WebhookTeamEditedPropRepositoryType(TypedDict): """Repository A git repository @@ -58,7 +59,7 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): contributors_url: str created_at: Union[int, datetime] custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType + WebhookTeamEditedPropRepositoryPropCustomPropertiesType ] default_branch: str delete_branch_on_merge: NotRequired[bool] @@ -93,7 +94,7 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -104,8 +105,8 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] private: bool public: NotRequired[bool] pulls_url: str @@ -132,8 +133,8 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): watchers_count: int -WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamDeletedPropRepositoryPropCustomProperties +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 @@ -141,7 +142,7 @@ class WebhookTeamDeletedPropRepositoryType(TypedDict): """ -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -151,7 +152,7 @@ class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -178,8 +179,8 @@ class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -188,11 +189,78 @@ class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): 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__ = ( - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedType", + "WebhookTeamEditedPropChangesPropDescriptionType", + "WebhookTeamEditedPropChangesPropNameType", + "WebhookTeamEditedPropChangesPropNotificationSettingType", + "WebhookTeamEditedPropChangesPropPrivacyType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesPropRepositoryType", + "WebhookTeamEditedPropChangesType", + "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", + "WebhookTeamEditedPropRepositoryPropLicenseType", + "WebhookTeamEditedPropRepositoryPropOwnerType", + "WebhookTeamEditedPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropRepositoryType", + "WebhookTeamEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0813.py b/githubkit/versions/v2022_11_28/types/group_0813.py index 85b313841..7202391d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0813.py +++ b/githubkit/versions/v2022_11_28/types/group_0813.py @@ -14,26 +14,25 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0474 import WebhooksTeam1Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0476 import WebhooksTeam1Type -class WebhookTeamEditedType(TypedDict): - """team edited event""" +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType + action: Literal["removed_from_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] sender: SimpleUserType team: WebhooksTeam1Type -class WebhookTeamEditedPropRepositoryType(TypedDict): +class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): """Repository A git repository @@ -59,7 +58,7 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): contributors_url: str created_at: Union[int, datetime] custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType ] default_branch: str delete_branch_on_merge: NotRequired[bool] @@ -94,7 +93,7 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -105,8 +104,10 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType + ] private: bool public: NotRequired[bool] pulls_url: str @@ -133,8 +134,10 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): watchers_count: int -WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamEditedPropRepositoryPropCustomProperties +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 @@ -142,7 +145,7 @@ class WebhookTeamEditedPropRepositoryType(TypedDict): """ -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): """License""" key: str @@ -152,7 +155,7 @@ class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -179,8 +182,8 @@ class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -189,78 +192,11 @@ class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): 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__ = ( - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0814.py b/githubkit/versions/v2022_11_28/types/group_0814.py index 224b79961..5984f7924 100644 --- a/githubkit/versions/v2022_11_28/types/group_0814.py +++ b/githubkit/versions/v2022_11_28/types/group_0814.py @@ -9,194 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0474 import WebhooksTeam1Type +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" +class WebhookWatchStartedType(TypedDict): + """watch started event""" - action: Literal["removed_from_repository"] + action: Literal["started"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType - team: WebhooksTeam1Type -class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryType", -) +__all__ = ("WebhookWatchStartedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0815.py b/githubkit/versions/v2022_11_28/types/group_0815.py index 266dfc2ea..bdafb2cd6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0815.py +++ b/githubkit/versions/v2022_11_28/types/group_0815.py @@ -9,25 +9,35 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookWatchStartedType(TypedDict): - """watch started event""" +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" - action: Literal["started"] enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserType + workflow: str -__all__ = ("WebhookWatchStartedType",) +WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] +"""WebhookWorkflowDispatchPropInputs +""" + + +__all__ = ( + "WebhookWorkflowDispatchPropInputsType", + "WebhookWorkflowDispatchType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0816.py b/githubkit/versions/v2022_11_28/types/group_0816.py index dca846db2..2cd7441fe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0816.py +++ b/githubkit/versions/v2022_11_28/types/group_0816.py @@ -9,35 +9,79 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0217 import DeploymentType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType - workflow: str + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType + deployment: NotRequired[DeploymentType] -WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] -"""WebhookWorkflowDispatchPropInputs -""" +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + url: str + + +class 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["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowDispatchPropInputsType", - "WebhookWorkflowDispatchType", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0817.py b/githubkit/versions/v2022_11_28/types/group_0817.py index 89f7e3050..d129fc90a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0817.py +++ b/githubkit/versions/v2022_11_28/types/group_0817.py @@ -10,42 +10,29 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0215 import DeploymentType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" - - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJob""" + 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: str - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", + completed_at: Union[str, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], ] created_at: str head_sha: str @@ -57,20 +44,20 @@ class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): 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] + 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[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" completed_at: Union[str, None] conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] @@ -81,7 +68,6 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0818.py b/githubkit/versions/v2022_11_28/types/group_0818.py index d129fc90a..92b2bfd6b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0818.py +++ b/githubkit/versions/v2022_11_28/types/group_0818.py @@ -10,64 +10,56 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - 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", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[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 - + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[list[Union[str, None]]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + list[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] + ] + url: NotRequired[str] -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(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"] +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0819.py b/githubkit/versions/v2022_11_28/types/group_0819.py index 92b2bfd6b..55b228d0b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0819.py +++ b/githubkit/versions/v2022_11_28/types/group_0819.py @@ -12,54 +12,68 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0217 import DeploymentType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[Union[str, None]]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - list[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] - url: NotRequired[str] - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" + + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] + url: str + + +class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" + + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + name: str + number: int + started_at: Union[Union[str, None], None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0820.py b/githubkit/versions/v2022_11_28/types/group_0820.py index 70187a8f9..217bd7ee4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0820.py +++ b/githubkit/versions/v2022_11_28/types/group_0820.py @@ -10,35 +10,19 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0215 import DeploymentType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" - - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJob""" + 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[Union[str, None], None] - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] created_at: str head_sha: str html_url: str @@ -49,31 +33,30 @@ class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): 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] + 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[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str number: int - started_at: Union[Union[str, None], None] + started_at: Union[str, None] status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0821.py b/githubkit/versions/v2022_11_28/types/group_0821.py index 217bd7ee4..7a741384f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0821.py +++ b/githubkit/versions/v2022_11_28/types/group_0821.py @@ -10,53 +10,49 @@ 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): +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[None, Literal["failure", "skipped", "success", "cancelled"]] + conclusion: Union[str, None] name: str number: int started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] + status: Literal["in_progress", "completed", "pending", "queued"] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0822.py b/githubkit/versions/v2022_11_28/types/group_0822.py index 7a741384f..0cfe352ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0822.py +++ b/githubkit/versions/v2022_11_28/types/group_0822.py @@ -9,50 +9,72 @@ 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_0217 import DeploymentType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 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""" +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" + + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str completed_at: Union[str, None] conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + 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["in_progress", "completed", "pending", "queued"] + status: Literal["completed", "in_progress", "queued", "pending"] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0823.py b/githubkit/versions/v2022_11_28/types/group_0823.py index f48d44403..f9317ce07 100644 --- a/githubkit/versions/v2022_11_28/types/group_0823.py +++ b/githubkit/versions/v2022_11_28/types/group_0823.py @@ -14,28 +14,28 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0215 import DeploymentType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0217 import DeploymentType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" - action: Literal["queued"] + action: Literal["waiting"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType deployment: NotRequired[DeploymentType] -class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobQueuedPropWorkflowJob""" +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" check_run_url: str completed_at: Union[str, None] @@ -55,14 +55,14 @@ class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): 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] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] url: str -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): """Workflow Step""" completed_at: Union[str, None] @@ -70,11 +70,11 @@ class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): name: str number: int started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending"] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] __all__ = ( - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedType", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0824.py b/githubkit/versions/v2022_11_28/types/group_0824.py index c20966219..fef3999af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0824.py +++ b/githubkit/versions/v2022_11_28/types/group_0824.py @@ -14,67 +14,421 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0215 import DeploymentType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0434 import WebhooksWorkflowType -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" - action: Literal["waiting"] + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType - deployment: NotRequired[DeploymentType] + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str + 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 - labels: list[str] - name: str + 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_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] + 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 WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[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 - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + 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__ = ( - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingType", + "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_0825.py b/githubkit/versions/v2022_11_28/types/group_0825.py index 287b4043b..8ff81f72d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0825.py +++ b/githubkit/versions/v2022_11_28/types/group_0825.py @@ -14,30 +14,30 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0432 import WebhooksWorkflowType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0434 import WebhooksWorkflowType -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" - action: Literal["completed"] + action: Literal["in_progress"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): """Workflow Run""" - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] artifacts_url: str cancel_url: str check_suite_id: int @@ -54,14 +54,13 @@ class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): "stale", "success", "timed_out", - "startup_failure", ], ] created_at: datetime event: str head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType head_sha: str html_url: str id: int @@ -72,35 +71,34 @@ class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): path: str previous_attempt_url: Union[str, None] pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] ] referenced_workflows: NotRequired[ Union[ list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType rerun_url: str run_attempt: int run_number: int run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] + status: Literal["requested", "in_progress", "completed", "queued", "pending"] triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str workflow_id: int workflow_url: str - display_title: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -124,20 +122,19 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -161,21 +158,24 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDic subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): """SimpleCommit""" - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) id: str message: str timestamp: str tree_id: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): """Committer Metaproperties for Git author/committer information. @@ -187,7 +187,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(Typ username: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( TypedDict ): """Committer @@ -201,7 +201,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( username: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): """Repository Lite""" archive_url: str @@ -235,11 +235,11 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict languages_url: str merges_url: str milestones_url: str - name: str + name: Union[str, None] node_id: str notifications_url: str owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None ] private: bool pulls_url: str @@ -254,7 +254,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): """User""" @@ -280,10 +280,9 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): """Repository Lite""" archive_url: str @@ -321,7 +320,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): node_id: str notifications_url: str owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None ] private: bool pulls_url: str @@ -336,7 +335,7 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -360,30 +359,29 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(Type subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -393,17 +391,17 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePro url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -414,21 +412,21 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPro __all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedType", + "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_0826.py b/githubkit/versions/v2022_11_28/types/group_0826.py index e8d927309..7cb051a99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0826.py +++ b/githubkit/versions/v2022_11_28/types/group_0826.py @@ -14,30 +14,30 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0432 import WebhooksWorkflowType +from .group_0426 import EnterpriseWebhooksType +from .group_0427 import SimpleInstallationType +from .group_0428 import OrganizationSimpleWebhooksType +from .group_0429 import RepositoryWebhooksType +from .group_0434 import WebhooksWorkflowType -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" - action: Literal["in_progress"] + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): """Workflow Run""" - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] artifacts_url: str cancel_url: str check_suite_id: int @@ -46,21 +46,22 @@ class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): conclusion: Union[ None, Literal[ - "action_required", - "cancelled", + "success", "failure", "neutral", - "skipped", - "stale", - "success", + "cancelled", "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", ], ] created_at: datetime event: str head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType head_sha: str html_url: str id: int @@ -71,34 +72,35 @@ class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): path: str previous_attempt_url: Union[str, None] pull_requests: list[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None - ] + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType rerun_url: str run_attempt: int run_number: int run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None ] updated_at: datetime url: str workflow_id: int workflow_url: str + display_title: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -122,19 +124,20 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -158,24 +161,21 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDi subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): """SimpleCommit""" - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType - ) + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType id: str message: str timestamp: str tree_id: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( - TypedDict -): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): """Committer Metaproperties for Git author/committer information. @@ -187,7 +187,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( username: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( TypedDict ): """Committer @@ -201,7 +201,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType username: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): """Repository Lite""" archive_url: str @@ -235,11 +235,11 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDic languages_url: str merges_url: str milestones_url: str - name: Union[str, None] + name: str node_id: str notifications_url: str owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None ] private: bool pulls_url: str @@ -254,7 +254,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDic url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( TypedDict ): """User""" @@ -280,9 +280,10 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): """Repository Lite""" archive_url: str @@ -320,7 +321,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): node_id: str notifications_url: str owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None ] private: bool pulls_url: str @@ -335,7 +336,7 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -359,29 +360,30 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(Typ subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType sha: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -391,17 +393,17 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePr url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType sha: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -412,21 +414,21 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPr __all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressType", + "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_0827.py b/githubkit/versions/v2022_11_28/types/group_0827.py index 91e5cd197..2d4d40484 100644 --- a/githubkit/versions/v2022_11_28/types/group_0827.py +++ b/githubkit/versions/v2022_11_28/types/group_0827.py @@ -10,425 +10,34 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0424 import EnterpriseWebhooksType -from .group_0425 import SimpleInstallationType -from .group_0426 import OrganizationSimpleWebhooksType -from .group_0427 import RepositoryWebhooksType -from .group_0432 import WebhooksWorkflowType +from .group_0008 import EnterpriseType +from .group_0009 import IntegrationPropPermissionsType -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" - 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] + slug: NotRequired[str] 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] + client_id: str + owner: Union[SimpleUserType, EnterpriseType] 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 + external_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 + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: list[str] + installations_count: NotRequired[int] + client_secret: str + webhook_secret: Union[str, None] + pem: str -__all__ = ( - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedType", -) +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0828.py b/githubkit/versions/v2022_11_28/types/group_0828.py index 2d4d40484..528a915b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0828.py +++ b/githubkit/versions/v2022_11_28/types/group_0828.py @@ -9,35 +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_0003 import SimpleUserType -from .group_0008 import EnterpriseType -from .group_0009 import IntegrationPropPermissionsType +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" - - id: int - slug: NotRequired[str] - node_id: str client_id: str - owner: Union[SimpleUserType, EnterpriseType] - name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: list[str] - installations_count: NotRequired[int] client_secret: str webhook_secret: Union[str, None] pem: str -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0829.py b/githubkit/versions/v2022_11_28/types/group_0829.py index 528a915b7..8f59ec945 100644 --- a/githubkit/versions/v2022_11_28/types/group_0829.py +++ b/githubkit/versions/v2022_11_28/types/group_0829.py @@ -10,16 +10,16 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) +__all__ = ("AppHookConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0830.py b/githubkit/versions/v2022_11_28/types/group_0830.py index 8f59ec945..24eb9bac1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0830.py +++ b/githubkit/versions/v2022_11_28/types/group_0830.py @@ -9,17 +9,11 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - -__all__ = ("AppHookConfigPatchBodyType",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0831.py b/githubkit/versions/v2022_11_28/types/group_0831.py index 24eb9bac1..e93cba9f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0831.py +++ b/githubkit/versions/v2022_11_28/types/group_0831.py @@ -9,11 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0017 import AppPermissionsType -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) + repositories: NotRequired[list[str]] + repository_ids: NotRequired[list[int]] + permissions: NotRequired[AppPermissionsType] + + +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0832.py b/githubkit/versions/v2022_11_28/types/group_0832.py index e93cba9f3..fad60868e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0832.py +++ b/githubkit/versions/v2022_11_28/types/group_0832.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0017 import AppPermissionsType +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" + access_token: str - repositories: NotRequired[list[str]] - repository_ids: NotRequired[list[int]] - permissions: NotRequired[AppPermissionsType] - -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0833.py b/githubkit/versions/v2022_11_28/types/group_0833.py index fad60868e..c0bad1ae1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0833.py +++ b/githubkit/versions/v2022_11_28/types/group_0833.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" access_token: str -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) +__all__ = ("ApplicationsClientIdTokenPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0834.py b/githubkit/versions/v2022_11_28/types/group_0834.py index c0bad1ae1..8a68cb8df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0834.py +++ b/githubkit/versions/v2022_11_28/types/group_0834.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" access_token: str -__all__ = ("ApplicationsClientIdTokenPostBodyType",) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0835.py b/githubkit/versions/v2022_11_28/types/group_0835.py index 8a68cb8df..8e0b6ce68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0835.py +++ b/githubkit/versions/v2022_11_28/types/group_0835.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" access_token: str -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0836.py b/githubkit/versions/v2022_11_28/types/group_0836.py index 8e0b6ce68..8351134ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0836.py +++ b/githubkit/versions/v2022_11_28/types/group_0836.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0017 import AppPermissionsType -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" + +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__ = ("ApplicationsClientIdTokenPatchBodyType",) +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0837.py b/githubkit/versions/v2022_11_28/types/group_0837.py index 8351134ad..4dce740a0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0837.py +++ b/githubkit/versions/v2022_11_28/types/group_0837.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0017 import AppPermissionsType +class CredentialsRevokePostBodyType(TypedDict): + """CredentialsRevokePostBody""" -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" + credentials: list[str] - 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__ = ("CredentialsRevokePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0838.py b/githubkit/versions/v2022_11_28/types/group_0838.py index 4dce740a0..e3fd6e8a8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0838.py +++ b/githubkit/versions/v2022_11_28/types/group_0838.py @@ -9,13 +9,12 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import TypeAlias - -class CredentialsRevokePostBodyType(TypedDict): - """CredentialsRevokePostBody""" - - credentials: list[str] +EmojisGetResponse200Type: TypeAlias = dict[str, Any] +"""EmojisGetResponse200 +""" -__all__ = ("CredentialsRevokePostBodyType",) +__all__ = ("EmojisGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0839.py b/githubkit/versions/v2022_11_28/types/group_0839.py index e3fd6e8a8..9d11b182f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0839.py +++ b/githubkit/versions/v2022_11_28/types/group_0839.py @@ -9,12 +9,75 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -EmojisGetResponse200Type: TypeAlias = dict[str, Any] -"""EmojisGetResponse200 -""" +from .group_0029 import CodeScanningOptionsType +from .group_0030 import CodeScanningDefaultSetupOptionsType + + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + + name: str + description: str + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + code_security: NotRequired[Literal["enabled", "disabled", "not_set"]] + 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_options: NotRequired[Union[CodeScanningOptionsType, None]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_protection: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] + + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] -__all__ = ("EmojisGetResponse200Type",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0840.py b/githubkit/versions/v2022_11_28/types/group_0840.py index 617038990..9d30347e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0840.py +++ b/githubkit/versions/v2022_11_28/types/group_0840.py @@ -12,23 +12,26 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0029 import CodeScanningDefaultSetupOptionsType +from .group_0030 import CodeScanningDefaultSetupOptionsType -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - name: str - description: str + name: NotRequired[str] + description: NotRequired[str] advanced_security: NotRequired[ Literal["enabled", "disabled", "code_security", "secret_protection"] ] + code_security: NotRequired[Literal["enabled", "disabled", "not_set"]] 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 + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType ] dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] @@ -39,6 +42,7 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): code_scanning_delegated_alert_dismissal: NotRequired[ Literal["enabled", "disabled", "not_set"] ] + secret_protection: NotRequired[Literal["enabled", "disabled", "not_set"]] secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] secret_scanning_push_protection: NotRequired[ Literal["enabled", "disabled", "not_set"] @@ -61,11 +65,11 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): enforcement: NotRequired[Literal["enforced", "unenforced"]] -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions Feature options for Automatic dependency submission """ @@ -74,6 +78,6 @@ class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraph __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0841.py b/githubkit/versions/v2022_11_28/types/group_0841.py index db00c9d66..ec6e0b6b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0841.py +++ b/githubkit/versions/v2022_11_28/types/group_0841.py @@ -9,73 +9,18 @@ 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_0029 import CodeScanningDefaultSetupOptionsType - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - labeled_runners: NotRequired[bool] + scope: Literal["all", "all_without_configurations"] __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0842.py b/githubkit/versions/v2022_11_28/types/group_0842.py index ec6e0b6b9..47259f1fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0842.py +++ b/githubkit/versions/v2022_11_28/types/group_0842.py @@ -10,17 +10,19 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - scope: Literal["all", "all_without_configurations"] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0843.py b/githubkit/versions/v2022_11_28/types/group_0843.py index 47259f1fc..ec2e0b140 100644 --- a/githubkit/versions/v2022_11_28/types/group_0843.py +++ b/githubkit/versions/v2022_11_28/types/group_0843.py @@ -12,17 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0028 import CodeSecurityConfigurationType -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ default_for_new_repos: NotRequired[ Literal["all", "none", "private_and_internal", "public"] ] + configuration: NotRequired[CodeSecurityConfigurationType] __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0844.py b/githubkit/versions/v2022_11_28/types/group_0844.py index ec2e0b140..778644432 100644 --- a/githubkit/versions/v2022_11_28/types/group_0844.py +++ b/githubkit/versions/v2022_11_28/types/group_0844.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0028 import CodeSecurityConfigurationType +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0845.py b/githubkit/versions/v2022_11_28/types/group_0845.py index 778644432..2a811b378 100644 --- a/githubkit/versions/v2022_11_28/types/group_0845.py +++ b/githubkit/versions/v2022_11_28/types/group_0845.py @@ -9,15 +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 EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" +class GistsPostBodyType(TypedDict): + """GistsPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) +GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsPostBodyPropFiles + +Names and content for the files that make up the gist + +Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} +""" + + +__all__ = ( + "GistsPostBodyPropFilesType", + "GistsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0846.py b/githubkit/versions/v2022_11_28/types/group_0846.py index 2a811b378..cad5cbf2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0846.py +++ b/githubkit/versions/v2022_11_28/types/group_0846.py @@ -9,29 +9,27 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class GistsPostBodyType(TypedDict): - """GistsPostBody""" +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" - description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] -GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsPostBodyPropFiles +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" -Names and content for the files that make up the gist - -Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} -""" + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] __all__ = ( - "GistsPostBodyPropFilesType", - "GistsPostBodyType", + "GistsGistIdGetResponse403PropBlockType", + "GistsGistIdGetResponse403Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0847.py b/githubkit/versions/v2022_11_28/types/group_0847.py index cad5cbf2a..e5f3979ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0847.py +++ b/githubkit/versions/v2022_11_28/types/group_0847.py @@ -9,27 +9,35 @@ 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 GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" +GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsGistIdPatchBodyPropFiles - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] +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__ = ( - "GistsGistIdGetResponse403PropBlockType", - "GistsGistIdGetResponse403Type", + "GistsGistIdPatchBodyPropFilesType", + "GistsGistIdPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0848.py b/githubkit/versions/v2022_11_28/types/group_0848.py index e5f3979ec..054661ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0848.py +++ b/githubkit/versions/v2022_11_28/types/group_0848.py @@ -9,35 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] + body: str -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", -) +__all__ = ("GistsGistIdCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0849.py b/githubkit/versions/v2022_11_28/types/group_0849.py index 054661ac7..39ac46ae2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0849.py +++ b/githubkit/versions/v2022_11_28/types/group_0849.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" body: str -__all__ = ("GistsGistIdCommentsPostBodyType",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0850.py b/githubkit/versions/v2022_11_28/types/group_0850.py index 39ac46ae2..10e6b69c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0850.py +++ b/githubkit/versions/v2022_11_28/types/group_0850.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" - body: str - -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) +__all__ = ("GistsGistIdStarGetResponse404Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0851.py b/githubkit/versions/v2022_11_28/types/group_0851.py index 10e6b69c7..a168e4016 100644 --- a/githubkit/versions/v2022_11_28/types/group_0851.py +++ b/githubkit/versions/v2022_11_28/types/group_0851.py @@ -9,11 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" -__all__ = ("GistsGistIdStarGetResponse404Type",) + total_count: int + repositories: list[RepositoryType] + repository_selection: NotRequired[str] + + +__all__ = ("InstallationRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0852.py b/githubkit/versions/v2022_11_28/types/group_0852.py index a168e4016..cb94d812e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0852.py +++ b/githubkit/versions/v2022_11_28/types/group_0852.py @@ -9,17 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0020 import RepositoryType +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] - total_count: int - repositories: list[RepositoryType] - repository_selection: NotRequired[str] - -__all__ = ("InstallationRepositoriesGetResponse200Type",) +__all__ = ("MarkdownPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0853.py b/githubkit/versions/v2022_11_28/types/group_0853.py index cb94d812e..f9c51f36b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0853.py +++ b/githubkit/versions/v2022_11_28/types/group_0853.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] + last_read_at: NotRequired[datetime] + read: NotRequired[bool] -__all__ = ("MarkdownPostBodyType",) +__all__ = ("NotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0854.py b/githubkit/versions/v2022_11_28/types/group_0854.py index f9c51f36b..70705f433 100644 --- a/githubkit/versions/v2022_11_28/types/group_0854.py +++ b/githubkit/versions/v2022_11_28/types/group_0854.py @@ -9,15 +9,13 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" - last_read_at: NotRequired[datetime] - read: NotRequired[bool] + message: NotRequired[str] -__all__ = ("NotificationsPutBodyType",) +__all__ = ("NotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0855.py b/githubkit/versions/v2022_11_28/types/group_0855.py index 70705f433..0dbd53ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0855.py +++ b/githubkit/versions/v2022_11_28/types/group_0855.py @@ -12,10 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - message: NotRequired[str] + ignored: NotRequired[bool] -__all__ = ("NotificationsPutResponse202Type",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0856.py b/githubkit/versions/v2022_11_28/types/group_0856.py index 0dbd53ac7..3d20a3b98 100644 --- a/githubkit/versions/v2022_11_28/types/group_0856.py +++ b/githubkit/versions/v2022_11_28/types/group_0856.py @@ -12,10 +12,15 @@ from typing_extensions import NotRequired, TypedDict -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class OrganizationsOrgDependabotRepositoryAccessPatchBodyType(TypedDict): + """OrganizationsOrgDependabotRepositoryAccessPatchBody - ignored: NotRequired[bool] + Examples: + {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} + """ + repository_ids_to_add: NotRequired[list[int]] + repository_ids_to_remove: NotRequired[list[int]] -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) + +__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0857.py b/githubkit/versions/v2022_11_28/types/group_0857.py index 3d20a3b98..2e01cf7ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0857.py +++ b/githubkit/versions/v2022_11_28/types/group_0857.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class OrganizationsOrgDependabotRepositoryAccessPatchBodyType(TypedDict): - """OrganizationsOrgDependabotRepositoryAccessPatchBody +class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType(TypedDict): + """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" - Examples: - {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} - """ + default_level: Literal["public", "internal"] - repository_ids_to_add: NotRequired[list[int]] - repository_ids_to_remove: NotRequired[list[int]] - -__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0858.py b/githubkit/versions/v2022_11_28/types/group_0858.py index 2e01cf7ec..f0059925f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0858.py +++ b/githubkit/versions/v2022_11_28/types/group_0858.py @@ -10,13 +10,46 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict - - -class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType(TypedDict): - """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" - - default_level: Literal["public", "internal"] - - -__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType",) +from typing_extensions import NotRequired, TypedDict + + +class OrgsOrgPatchBodyType(TypedDict): + """OrgsOrgPatchBody""" + + billing_email: NotRequired[str] + company: NotRequired[str] + email: NotRequired[str] + twitter_username: NotRequired[str] + location: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + default_repository_permission: NotRequired[ + Literal["read", "write", "admin", "none"] + ] + members_can_create_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_public_repositories: NotRequired[bool] + members_allowed_repository_creation_type: NotRequired[ + Literal["all", "private", "none"] + ] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + blog: NotRequired[str] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[str] + deploy_keys_enabled_for_repositories: NotRequired[bool] + + +__all__ = ("OrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0859.py b/githubkit/versions/v2022_11_28/types/group_0859.py index f0059925f..c9f8884a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0859.py +++ b/githubkit/versions/v2022_11_28/types/group_0859.py @@ -9,47 +9,28 @@ 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 OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" + + 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 + + +__all__ = ( + "ActionsCacheUsageByRepositoryType", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0860.py b/githubkit/versions/v2022_11_28/types/group_0860.py index c9f8884a9..de29c9079 100644 --- a/githubkit/versions/v2022_11_28/types/group_0860.py +++ b/githubkit/versions/v2022_11_28/types/group_0860.py @@ -11,26 +11,14 @@ from typing_extensions import TypedDict +from .group_0072 import ActionsHostedRunnerType -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int - repository_cache_usages: list[ActionsCacheUsageByRepositoryType] - - -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository +class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersGetResponse200""" - GitHub Actions Cache Usage by repository. - """ - - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int + total_count: int + runners: list[ActionsHostedRunnerType] -__all__ = ( - "ActionsCacheUsageByRepositoryType", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", -) +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0861.py b/githubkit/versions/v2022_11_28/types/group_0861.py index 885343670..da2efcd13 100644 --- a/githubkit/versions/v2022_11_28/types/group_0861.py +++ b/githubkit/versions/v2022_11_28/types/group_0861.py @@ -9,16 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0070 import ActionsHostedRunnerType +class OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBody""" -class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersGetResponse200""" + name: str + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType + size: str + runner_group_id: int + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] - total_count: int - runners: list[ActionsHostedRunnerType] +class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBodyPropImage -__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: NotRequired[str] + source: NotRequired[Literal["github", "partner", "custom"]] + + +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBodyPropImageType", + "OrgsOrgActionsHostedRunnersPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0862.py b/githubkit/versions/v2022_11_28/types/group_0862.py index da2efcd13..35cd1e9f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0862.py +++ b/githubkit/versions/v2022_11_28/types/group_0862.py @@ -9,33 +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 ActionsHostedRunnerImageType -class OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): - """OrgsOrgActionsHostedRunnersPostBody""" - name: str - image: OrgsOrgActionsHostedRunnersPostBodyPropImageType - size: str - runner_group_id: int - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): - """OrgsOrgActionsHostedRunnersPostBodyPropImage - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ - - id: NotRequired[str] - source: NotRequired[Literal["github", "partner", "custom"]] - - -__all__ = ( - "OrgsOrgActionsHostedRunnersPostBodyPropImageType", - "OrgsOrgActionsHostedRunnersPostBodyType", -) +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0863.py b/githubkit/versions/v2022_11_28/types/group_0863.py index ec478293f..e7274a9e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0863.py +++ b/githubkit/versions/v2022_11_28/types/group_0863.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0071 import ActionsHostedRunnerImageType +from .group_0073 import ActionsHostedRunnerImageType -class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" total_count: int images: list[ActionsHostedRunnerImageType] -__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0864.py b/githubkit/versions/v2022_11_28/types/group_0864.py index 409a6d410..44c258f57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0864.py +++ b/githubkit/versions/v2022_11_28/types/group_0864.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0071 import ActionsHostedRunnerImageType +from .group_0071 import ActionsHostedRunnerMachineSpecType -class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" total_count: int - images: list[ActionsHostedRunnerImageType] + machine_specs: list[ActionsHostedRunnerMachineSpecType] -__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0865.py b/githubkit/versions/v2022_11_28/types/group_0865.py index c7802e477..f96c7b054 100644 --- a/githubkit/versions/v2022_11_28/types/group_0865.py +++ b/githubkit/versions/v2022_11_28/types/group_0865.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0069 import ActionsHostedRunnerMachineSpecType - -class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" total_count: int - machine_specs: list[ActionsHostedRunnerMachineSpecType] + platforms: list[str] -__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0866.py b/githubkit/versions/v2022_11_28/types/group_0866.py index f96c7b054..2331cd4aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0866.py +++ b/githubkit/versions/v2022_11_28/types/group_0866.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" - total_count: int - platforms: list[str] + name: NotRequired[str] + runner_group_id: NotRequired[int] + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] -__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0867.py b/githubkit/versions/v2022_11_28/types/group_0867.py index 2331cd4aa..dfdea43ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0867.py +++ b/githubkit/versions/v2022_11_28/types/group_0867.py @@ -9,16 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): - """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" - name: NotRequired[str] - runner_group_id: NotRequired[int] - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0868.py b/githubkit/versions/v2022_11_28/types/group_0868.py index dfdea43ec..484b23498 100644 --- a/githubkit/versions/v2022_11_28/types/group_0868.py +++ b/githubkit/versions/v2022_11_28/types/group_0868.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float + repositories: list[RepositoryType] -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0869.py b/githubkit/versions/v2022_11_28/types/group_0869.py index 484b23498..a2735688c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0869.py +++ b/githubkit/versions/v2022_11_28/types/group_0869.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0020 import RepositoryType +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: float - repositories: list[RepositoryType] - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0870.py b/githubkit/versions/v2022_11_28/types/group_0870.py index a2735688c..507ed1dee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0870.py +++ b/githubkit/versions/v2022_11_28/types/group_0870.py @@ -9,13 +9,36 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsGetResponse200""" - selected_repository_ids: list[int] + total_count: float + runner_groups: list[RunnerGroupsOrgType] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) +class RunnerGroupsOrgType(TypedDict): + """RunnerGroupsOrg""" + + id: float + name: str + visibility: str + default: bool + selected_repositories_url: NotRequired[str] + runners_url: str + hosted_runners_url: NotRequired[str] + network_configuration_id: NotRequired[str] + inherited: bool + inherited_allows_public_repositories: NotRequired[bool] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + + +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsOrgType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0871.py b/githubkit/versions/v2022_11_28/types/group_0871.py index 507ed1dee..28b84e166 100644 --- a/githubkit/versions/v2022_11_28/types/group_0871.py +++ b/githubkit/versions/v2022_11_28/types/group_0871.py @@ -9,36 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsGetResponse200""" +class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsPostBody""" - 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] - network_configuration_id: NotRequired[str] - inherited: bool - inherited_allows_public_repositories: NotRequired[bool] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] + 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__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsOrgType", -) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0872.py b/githubkit/versions/v2022_11_28/types/group_0872.py index 28b84e166..d7ec24fe4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0872.py +++ b/githubkit/versions/v2022_11_28/types/group_0872.py @@ -9,21 +9,19 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsPostBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" 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] + network_configuration_id: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0873.py b/githubkit/versions/v2022_11_28/types/group_0873.py index d7ec24fe4..2114aeac6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0873.py +++ b/githubkit/versions/v2022_11_28/types/group_0873.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_0072 import ActionsHostedRunnerType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - network_configuration_id: NotRequired[Union[str, None]] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + total_count: float + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0874.py b/githubkit/versions/v2022_11_28/types/group_0874.py index 16e7863e8..d9fa80fbe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0874.py +++ b/githubkit/versions/v2022_11_28/types/group_0874.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0070 import ActionsHostedRunnerType +from .group_0063 import MinimalRepositoryType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" total_count: float - runners: list[ActionsHostedRunnerType] + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0875.py b/githubkit/versions/v2022_11_28/types/group_0875.py index 91b574088..0ab50bd6d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0875.py +++ b/githubkit/versions/v2022_11_28/types/group_0875.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0061 import MinimalRepositoryType +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: float - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0876.py b/githubkit/versions/v2022_11_28/types/group_0876.py index 0ab50bd6d..7a7d3de96 100644 --- a/githubkit/versions/v2022_11_28/types/group_0876.py +++ b/githubkit/versions/v2022_11_28/types/group_0876.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0081 import RunnerType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - selected_repository_ids: list[int] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float + runners: list[RunnerType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0877.py b/githubkit/versions/v2022_11_28/types/group_0877.py index 3f07cdf82..bb10bbf9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0877.py +++ b/githubkit/versions/v2022_11_28/types/group_0877.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0079 import RunnerType +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + runners: list[int] - total_count: float - runners: list[RunnerType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0878.py b/githubkit/versions/v2022_11_28/types/group_0878.py index bb10bbf9a..f8f8829d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0878.py +++ b/githubkit/versions/v2022_11_28/types/group_0878.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0081 import RunnerType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" + total_count: int + runners: list[RunnerType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0879.py b/githubkit/versions/v2022_11_28/types/group_0879.py index 872926e71..5e08d0dd4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0879.py +++ b/githubkit/versions/v2022_11_28/types/group_0879.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0079 import RunnerType +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - total_count: int - runners: list[RunnerType] - -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0880.py b/githubkit/versions/v2022_11_28/types/group_0880.py index 5e08d0dd4..191ab510c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0880.py +++ b/githubkit/versions/v2022_11_28/types/group_0880.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0081 import RunnerType -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" + runner: RunnerType + encoded_jit_config: str -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) + +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0881.py b/githubkit/versions/v2022_11_28/types/group_0881.py index 9ed305a65..7cfa4fa61 100644 --- a/githubkit/versions/v2022_11_28/types/group_0881.py +++ b/githubkit/versions/v2022_11_28/types/group_0881.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0079 import RunnerType +from .group_0080 import RunnerLabelType -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" - runner: RunnerType - encoded_jit_config: str + total_count: int + labels: list[RunnerLabelType] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0882.py b/githubkit/versions/v2022_11_28/types/group_0882.py index e144afe69..86d454795 100644 --- a/githubkit/versions/v2022_11_28/types/group_0882.py +++ b/githubkit/versions/v2022_11_28/types/group_0882.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0078 import RunnerLabelType +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + labels: list[str] - total_count: int - labels: list[RunnerLabelType] - -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0883.py b/githubkit/versions/v2022_11_28/types/group_0883.py index 86d454795..1e050b2e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0883.py +++ b/githubkit/versions/v2022_11_28/types/group_0883.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" labels: list[str] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0884.py b/githubkit/versions/v2022_11_28/types/group_0884.py index 1e050b2e1..b200b287c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0884.py +++ b/githubkit/versions/v2022_11_28/types/group_0884.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0080 import RunnerLabelType -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: int + labels: list[RunnerLabelType] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0885.py b/githubkit/versions/v2022_11_28/types/group_0885.py index a71a31c6b..f17121488 100644 --- a/githubkit/versions/v2022_11_28/types/group_0885.py +++ b/githubkit/versions/v2022_11_28/types/group_0885.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_0078 import RunnerLabelType - -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" total_count: int - labels: list[RunnerLabelType] + secrets: list[OrganizationActionsSecretType] + + +class OrganizationActionsSecretType(TypedDict): + """Actions Secret for an Organization + + Secrets for GitHub Actions for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) +__all__ = ( + "OrganizationActionsSecretType", + "OrgsOrgActionsSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0886.py b/githubkit/versions/v2022_11_28/types/group_0886.py index f17121488..6f2b7d0ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0886.py +++ b/githubkit/versions/v2022_11_28/types/group_0886.py @@ -9,32 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" - total_count: int - secrets: list[OrganizationActionsSecretType] - - -class OrganizationActionsSecretType(TypedDict): - """Actions Secret for an Organization - - Secrets for GitHub Actions for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime + encrypted_value: str + key_id: str visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrganizationActionsSecretType", - "OrgsOrgActionsSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0887.py b/githubkit/versions/v2022_11_28/types/group_0887.py index 6f2b7d0ff..f6b1397a0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0887.py +++ b/githubkit/versions/v2022_11_28/types/group_0887.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_0063 import MinimalRepositoryType -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" - encrypted_value: str - key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0888.py b/githubkit/versions/v2022_11_28/types/group_0888.py index 5019b6c54..91774da55 100644 --- a/githubkit/versions/v2022_11_28/types/group_0888.py +++ b/githubkit/versions/v2022_11_28/types/group_0888.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0061 import MinimalRepositoryType +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0889.py b/githubkit/versions/v2022_11_28/types/group_0889.py index 91774da55..feb95bc8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0889.py +++ b/githubkit/versions/v2022_11_28/types/group_0889.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 OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" - selected_repository_ids: list[int] + total_count: int + variables: list[OrganizationActionsVariableType] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) +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_0890.py b/githubkit/versions/v2022_11_28/types/group_0890.py index feb95bc8c..35d9aa84a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0890.py +++ b/githubkit/versions/v2022_11_28/types/group_0890.py @@ -9,33 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" - - total_count: int - variables: list[OrganizationActionsVariableType] - - -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. - """ +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" name: str value: str - created_at: datetime - updated_at: datetime visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrganizationActionsVariableType", - "OrgsOrgActionsVariablesGetResponse200Type", -) +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0891.py b/githubkit/versions/v2022_11_28/types/group_0891.py index 35d9aa84a..32397b063 100644 --- a/githubkit/versions/v2022_11_28/types/group_0891.py +++ b/githubkit/versions/v2022_11_28/types/group_0891.py @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" - name: str - value: str - visibility: Literal["all", "private", "selected"] + name: NotRequired[str] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0892.py b/githubkit/versions/v2022_11_28/types/group_0892.py index 32397b063..57c9523a5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0892.py +++ b/githubkit/versions/v2022_11_28/types/group_0892.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_0063 import MinimalRepositoryType -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0893.py b/githubkit/versions/v2022_11_28/types/group_0893.py index 2c8d1a62a..7b7f6fc84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0893.py +++ b/githubkit/versions/v2022_11_28/types/group_0893.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0061 import MinimalRepositoryType +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0894.py b/githubkit/versions/v2022_11_28/types/group_0894.py index 7b7f6fc84..2a4ab0267 100644 --- a/githubkit/versions/v2022_11_28/types/group_0894.py +++ b/githubkit/versions/v2022_11_28/types/group_0894.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgAttestationsBulkListPostBodyType(TypedDict): + """OrgsOrgAttestationsBulkListPostBody""" - selected_repository_ids: list[int] + subject_digests: list[str] + predicate_type: NotRequired[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgAttestationsBulkListPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0895.py b/githubkit/versions/v2022_11_28/types/group_0895.py index 2a4ab0267..0dd3d4f18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0895.py +++ b/githubkit/versions/v2022_11_28/types/group_0895.py @@ -9,14 +9,42 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class OrgsOrgAttestationsBulkListPostBodyType(TypedDict): - """OrgsOrgAttestationsBulkListPostBody""" +class OrgsOrgAttestationsBulkListPostResponse200Type(TypedDict): + """OrgsOrgAttestationsBulkListPostResponse200""" - subject_digests: list[str] - predicate_type: NotRequired[str] + attestations_subject_digests: NotRequired[ + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType + ] + page_info: NotRequired[OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType] -__all__ = ("OrgsOrgAttestationsBulkListPostBodyType",) +OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + +Mapping of subject digest to bundles. +""" + + +class OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): + """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: NotRequired[bool] + has_previous: NotRequired[bool] + next_: NotRequired[str] + previous: NotRequired[str] + + +__all__ = ( + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", + "OrgsOrgAttestationsBulkListPostResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0896.py b/githubkit/versions/v2022_11_28/types/group_0896.py index 0dd3d4f18..2721f9331 100644 --- a/githubkit/versions/v2022_11_28/types/group_0896.py +++ b/githubkit/versions/v2022_11_28/types/group_0896.py @@ -9,42 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class OrgsOrgAttestationsBulkListPostResponse200Type(TypedDict): - """OrgsOrgAttestationsBulkListPostResponse200""" +class OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): + """OrgsOrgAttestationsDeleteRequestPostBodyOneof0""" - attestations_subject_digests: NotRequired[ - OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType - ] - page_info: NotRequired[OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType] + subject_digests: list[str] -OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests - -Mapping of subject digest to bundles. -""" - - -class OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): - """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo - - Information about the current page. - """ - - has_next: NotRequired[bool] - has_previous: NotRequired[bool] - next_: NotRequired[str] - previous: NotRequired[str] - - -__all__ = ( - "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", - "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", - "OrgsOrgAttestationsBulkListPostResponse200Type", -) +__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0897.py b/githubkit/versions/v2022_11_28/types/group_0897.py index 2721f9331..0e26279dc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0897.py +++ b/githubkit/versions/v2022_11_28/types/group_0897.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): - """OrgsOrgAttestationsDeleteRequestPostBodyOneof0""" +class OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): + """OrgsOrgAttestationsDeleteRequestPostBodyOneof1""" - subject_digests: list[str] + attestation_ids: list[int] -__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof0Type",) +__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0898.py b/githubkit/versions/v2022_11_28/types/group_0898.py index 0e26279dc..5fba98e1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0898.py +++ b/githubkit/versions/v2022_11_28/types/group_0898.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 OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): - """OrgsOrgAttestationsDeleteRequestPostBodyOneof1""" +class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - attestation_ids: list[int] + attestations: NotRequired[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] + ] -__all__ = ("OrgsOrgAttestationsDeleteRequestPostBodyOneof1Type",) +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_0899.py b/githubkit/versions/v2022_11_28/types/group_0899.py index 5fba98e1e..57bdd1a34 100644 --- a/githubkit/versions/v2022_11_28/types/group_0899.py +++ b/githubkit/versions/v2022_11_28/types/group_0899.py @@ -9,70 +9,32 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" +class OrgsOrgCampaignsPostBodyType(TypedDict): + """OrgsOrgCampaignsPostBody""" - attestations: NotRequired[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] - ] + name: str + description: str + managers: NotRequired[list[str]] + team_managers: NotRequired[list[str]] + ends_at: datetime + contact_link: NotRequired[Union[str, None]] + code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType] + generate_issues: NotRequired[bool] -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" +class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType(TypedDict): + """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - 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 -""" + repository_id: int + alert_numbers: list[int] __all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "OrgsOrgAttestationsSubjectDigestGetResponse200Type", + "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", + "OrgsOrgCampaignsPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0900.py b/githubkit/versions/v2022_11_28/types/group_0900.py index 57bdd1a34..25289c59a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0900.py +++ b/githubkit/versions/v2022_11_28/types/group_0900.py @@ -10,31 +10,20 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgCampaignsPostBodyType(TypedDict): - """OrgsOrgCampaignsPostBody""" +class OrgsOrgCampaignsCampaignNumberPatchBodyType(TypedDict): + """OrgsOrgCampaignsCampaignNumberPatchBody""" - name: str - description: str + name: NotRequired[str] + description: NotRequired[str] managers: NotRequired[list[str]] team_managers: NotRequired[list[str]] - ends_at: datetime + ends_at: NotRequired[datetime] contact_link: NotRequired[Union[str, None]] - code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType] - generate_issues: NotRequired[bool] + state: NotRequired[Literal["open", "closed"]] -class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType(TypedDict): - """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - - repository_id: int - alert_numbers: list[int] - - -__all__ = ( - "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", - "OrgsOrgCampaignsPostBodyType", -) +__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0901.py b/githubkit/versions/v2022_11_28/types/group_0901.py index 25289c59a..3dd311056 100644 --- a/githubkit/versions/v2022_11_28/types/group_0901.py +++ b/githubkit/versions/v2022_11_28/types/group_0901.py @@ -9,21 +9,110 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0029 import CodeScanningOptionsType +from .group_0030 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCampaignsCampaignNumberPatchBodyType(TypedDict): - """OrgsOrgCampaignsCampaignNumberPatchBody""" - name: NotRequired[str] - description: NotRequired[str] - managers: NotRequired[list[str]] - team_managers: NotRequired[list[str]] - ends_at: NotRequired[datetime] - contact_link: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] +class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + name: str + description: str + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + code_security: NotRequired[Literal["enabled", "disabled", "not_set"]] + 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_options: NotRequired[Union[CodeScanningOptionsType, None]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_protection: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBodyType",) + +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_0902.py b/githubkit/versions/v2022_11_28/types/group_0902.py index 9c4fea24c..a177d65ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0902.py +++ b/githubkit/versions/v2022_11_28/types/group_0902.py @@ -9,106 +9,13 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0029 import CodeScanningDefaultSetupOptionsType +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" -class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsPostBody""" + selected_repository_ids: NotRequired[list[int]] - name: str - description: str - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] - - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyType", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0903.py b/githubkit/versions/v2022_11_28/types/group_0903.py index a177d65ec..76de776b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0903.py +++ b/githubkit/versions/v2022_11_28/types/group_0903.py @@ -9,13 +9,108 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0030 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + code_security: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_protection: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) + +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_0904.py b/githubkit/versions/v2022_11_28/types/group_0904.py index 4d09218a1..2ad011ac8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0904.py +++ b/githubkit/versions/v2022_11_28/types/group_0904.py @@ -9,106 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0029 import CodeScanningDefaultSetupOptionsType +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" ] - 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"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0905.py b/githubkit/versions/v2022_11_28/types/group_0905.py index 2ad011ac8..ed69b7f35 100644 --- a/githubkit/versions/v2022_11_28/types/group_0905.py +++ b/githubkit/versions/v2022_11_28/types/group_0905.py @@ -13,13 +13,12 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] ] - selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0906.py b/githubkit/versions/v2022_11_28/types/group_0906.py index ed69b7f35..3a65dd886 100644 --- a/githubkit/versions/v2022_11_28/types/group_0906.py +++ b/githubkit/versions/v2022_11_28/types/group_0906.py @@ -12,13 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0028 import CodeSecurityConfigurationType -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" default_for_new_repos: NotRequired[ Literal["all", "none", "private_and_internal", "public"] ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0907.py b/githubkit/versions/v2022_11_28/types/group_0907.py index 3a65dd886..12d50a76a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0907.py +++ b/githubkit/versions/v2022_11_28/types/group_0907.py @@ -9,23 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0028 import CodeSecurityConfigurationType +from .group_0093 import CodespaceType -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] + total_count: int + codespaces: list[CodespaceType] -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0908.py b/githubkit/versions/v2022_11_28/types/group_0908.py index c36d4bf1e..1234cdbd0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0908.py +++ b/githubkit/versions/v2022_11_28/types/group_0908.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_0091 import CodespaceType +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[list[str]] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0909.py b/githubkit/versions/v2022_11_28/types/group_0909.py index 1234cdbd0..214a3ca92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0909.py +++ b/githubkit/versions/v2022_11_28/types/group_0909.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 OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[list[str]] + selected_usernames: list[str] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0910.py b/githubkit/versions/v2022_11_28/types/group_0910.py index 214a3ca92..1aec188b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0910.py +++ b/githubkit/versions/v2022_11_28/types/group_0910.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" selected_usernames: list[str] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0911.py b/githubkit/versions/v2022_11_28/types/group_0911.py index 1aec188b7..b5051f775 100644 --- a/githubkit/versions/v2022_11_28/types/group_0911.py +++ b/githubkit/versions/v2022_11_28/types/group_0911.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 OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" - selected_usernames: list[str] + total_count: int + secrets: list[CodespacesOrgSecretType] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) +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/v2022_11_28/types/group_0912.py b/githubkit/versions/v2022_11_28/types/group_0912.py index b5051f775..8eb7cb359 100644 --- a/githubkit/versions/v2022_11_28/types/group_0912.py +++ b/githubkit/versions/v2022_11_28/types/group_0912.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 OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - total_count: int - secrets: list[CodespacesOrgSecretType] - - -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime + encrypted_value: NotRequired[str] + key_id: NotRequired[str] visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "CodespacesOrgSecretType", - "OrgsOrgCodespacesSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0913.py b/githubkit/versions/v2022_11_28/types/group_0913.py index 8eb7cb359..197d8735c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0913.py +++ b/githubkit/versions/v2022_11_28/types/group_0913.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_0063 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 OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0914.py b/githubkit/versions/v2022_11_28/types/group_0914.py index 9955b2d3a..9d6f25331 100644 --- a/githubkit/versions/v2022_11_28/types/group_0914.py +++ b/githubkit/versions/v2022_11_28/types/group_0914.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0061 import MinimalRepositoryType +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0915.py b/githubkit/versions/v2022_11_28/types/group_0915.py index 9d6f25331..a2e3b4a72 100644 --- a/githubkit/versions/v2022_11_28/types/group_0915.py +++ b/githubkit/versions/v2022_11_28/types/group_0915.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_repository_ids: list[int] + selected_teams: list[str] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0916.py b/githubkit/versions/v2022_11_28/types/group_0916.py index a2e3b4a72..76837fcdc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0916.py +++ b/githubkit/versions/v2022_11_28/types/group_0916.py @@ -12,10 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - selected_teams: list[str] + The total number of seats created for members of the specified team(s). + """ + seats_created: int -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0917.py b/githubkit/versions/v2022_11_28/types/group_0917.py index 76837fcdc..dba449159 100644 --- a/githubkit/versions/v2022_11_28/types/group_0917.py +++ b/githubkit/versions/v2022_11_28/types/group_0917.py @@ -12,13 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - The total number of seats created for members of the specified team(s). - """ + selected_teams: list[str] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0918.py b/githubkit/versions/v2022_11_28/types/group_0918.py index dba449159..1b12f6a95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0918.py +++ b/githubkit/versions/v2022_11_28/types/group_0918.py @@ -12,10 +12,14 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - selected_teams: list[str] + The total number of seats set to "pending cancellation" for members of the + specified team(s). + """ + seats_cancelled: int -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0919.py b/githubkit/versions/v2022_11_28/types/group_0919.py index 1b12f6a95..9a511ba2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0919.py +++ b/githubkit/versions/v2022_11_28/types/group_0919.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + selected_usernames: list[str] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0920.py b/githubkit/versions/v2022_11_28/types/group_0920.py index 9a511ba2a..651754049 100644 --- a/githubkit/versions/v2022_11_28/types/group_0920.py +++ b/githubkit/versions/v2022_11_28/types/group_0920.py @@ -12,10 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - selected_usernames: list[str] + The total number of seats created for the specified user(s). + """ + seats_created: int -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0921.py b/githubkit/versions/v2022_11_28/types/group_0921.py index 651754049..dddfa0789 100644 --- a/githubkit/versions/v2022_11_28/types/group_0921.py +++ b/githubkit/versions/v2022_11_28/types/group_0921.py @@ -12,13 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - The total number of seats created for the specified user(s). - """ + selected_usernames: list[str] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0922.py b/githubkit/versions/v2022_11_28/types/group_0922.py index dddfa0789..b1510f36c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0922.py +++ b/githubkit/versions/v2022_11_28/types/group_0922.py @@ -12,10 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - selected_usernames: list[str] + The total number of seats set to "pending cancellation" for the specified users. + """ + seats_cancelled: int -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0923.py b/githubkit/versions/v2022_11_28/types/group_0923.py index b1510f36c..fef93ba69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0923.py +++ b/githubkit/versions/v2022_11_28/types/group_0923.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" - The total number of seats set to "pending cancellation" for the specified users. + total_count: int + secrets: list[OrganizationDependabotSecretType] + + +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. """ - seats_cancelled: int + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ( + "OrganizationDependabotSecretType", + "OrgsOrgDependabotSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0924.py b/githubkit/versions/v2022_11_28/types/group_0924.py index fef93ba69..5ee895714 100644 --- a/githubkit/versions/v2022_11_28/types/group_0924.py +++ b/githubkit/versions/v2022_11_28/types/group_0924.py @@ -9,32 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - total_count: int - secrets: list[OrganizationDependabotSecretType] - - -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization - - Secrets for GitHub Dependabot for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime + encrypted_value: NotRequired[str] + key_id: NotRequired[str] visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + selected_repository_ids: NotRequired[list[str]] -__all__ = ( - "OrganizationDependabotSecretType", - "OrgsOrgDependabotSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0925.py b/githubkit/versions/v2022_11_28/types/group_0925.py index 5ee895714..4c256a0d8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0925.py +++ b/githubkit/versions/v2022_11_28/types/group_0925.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_0063 import MinimalRepositoryType -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[str]] +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0926.py b/githubkit/versions/v2022_11_28/types/group_0926.py index e9de6d3f7..258f8e119 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_0061 import MinimalRepositoryType +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0927.py b/githubkit/versions/v2022_11_28/types/group_0927.py index 258f8e119..e99853b27 100644 --- a/githubkit/versions/v2022_11_28/types/group_0927.py +++ b/githubkit/versions/v2022_11_28/types/group_0927.py @@ -9,13 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" - selected_repository_ids: list[int] + name: str + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) +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_0928.py b/githubkit/versions/v2022_11_28/types/group_0928.py index e99853b27..19cc5034f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0928.py +++ b/githubkit/versions/v2022_11_28/types/group_0928.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] events: NotRequired[list[str]] active: NotRequired[bool] + name: NotRequired[str] -class OrgsOrgHooksPostBodyPropConfigType(TypedDict): - """OrgsOrgHooksPostBodyPropConfig +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig Key/value pairs to provide settings for this webhook. """ @@ -32,11 +32,9 @@ class OrgsOrgHooksPostBodyPropConfigType(TypedDict): content_type: NotRequired[str] secret: NotRequired[str] insecure_ssl: NotRequired[Union[str, float]] - username: NotRequired[str] - password: NotRequired[str] __all__ = ( - "OrgsOrgHooksPostBodyPropConfigType", - "OrgsOrgHooksPostBodyType", + "OrgsOrgHooksHookIdPatchBodyPropConfigType", + "OrgsOrgHooksHookIdPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0929.py b/githubkit/versions/v2022_11_28/types/group_0929.py index 19cc5034f..6399b7a4c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0929.py +++ b/githubkit/versions/v2022_11_28/types/group_0929.py @@ -13,28 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] - name: NotRequired[str] - - -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str + url: NotRequired[str] content_type: NotRequired[str] secret: NotRequired[str] insecure_ssl: NotRequired[Union[str, float]] -__all__ = ( - "OrgsOrgHooksHookIdPatchBodyPropConfigType", - "OrgsOrgHooksHookIdPatchBodyType", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0930.py b/githubkit/versions/v2022_11_28/types/group_0930.py index 6399b7a4c..54372b1e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0930.py +++ b/githubkit/versions/v2022_11_28/types/group_0930.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0018 import InstallationType -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" + total_count: int + installations: list[InstallationType] -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) + +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0931.py b/githubkit/versions/v2022_11_28/types/group_0931.py index 54372b1e4..5916d7d10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0931.py +++ b/githubkit/versions/v2022_11_28/types/group_0931.py @@ -11,14 +11,9 @@ from typing_extensions import TypedDict -from .group_0018 import InstallationType +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" - total_count: int - installations: list[InstallationType] - - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0932.py b/githubkit/versions/v2022_11_28/types/group_0932.py index 5916d7d10..2184fe8a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0932.py +++ b/githubkit/versions/v2022_11_28/types/group_0932.py @@ -9,11 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("OrgsOrgInvitationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0933.py b/githubkit/versions/v2022_11_28/types/group_0933.py index 2184fe8a4..7cff8befc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0933.py +++ b/githubkit/versions/v2022_11_28/types/group_0933.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_0093 import CodespaceType -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[list[int]] +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("OrgsOrgInvitationsPostBodyType",) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0934.py b/githubkit/versions/v2022_11_28/types/group_0934.py index 6dfb3a973..78a34c5ed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0934.py +++ b/githubkit/versions/v2022_11_28/types/group_0934.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_0091 import CodespaceType +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + role: NotRequired[Literal["admin", "member"]] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0935.py b/githubkit/versions/v2022_11_28/types/group_0935.py index 78a34c5ed..242ce3795 100644 --- a/githubkit/versions/v2022_11_28/types/group_0935.py +++ b/githubkit/versions/v2022_11_28/types/group_0935.py @@ -13,10 +13,18 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" - role: NotRequired[Literal["admin", "member"]] + 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__ = ("OrgsOrgMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0936.py b/githubkit/versions/v2022_11_28/types/group_0936.py index 242ce3795..b7593464f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0936.py +++ b/githubkit/versions/v2022_11_28/types/group_0936.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - 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"]]] + async_: NotRequired[bool] -__all__ = ("OrgsOrgMigrationsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0937.py b/githubkit/versions/v2022_11_28/types/group_0937.py index b7593464f..5de4170f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0937.py +++ b/githubkit/versions/v2022_11_28/types/group_0937.py @@ -9,13 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" - async_: NotRequired[bool] - -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0938.py b/githubkit/versions/v2022_11_28/types/group_0938.py index 5de4170f2..f43c7d76b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0938.py +++ b/githubkit/versions/v2022_11_28/types/group_0938.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0939.py b/githubkit/versions/v2022_11_28/types/group_0939.py index f43c7d76b..a99cad652 100644 --- a/githubkit/versions/v2022_11_28/types/group_0939.py +++ b/githubkit/versions/v2022_11_28/types/group_0939.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +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__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0940.py b/githubkit/versions/v2022_11_28/types/group_0940.py index a99cad652..f08e02365 100644 --- a/githubkit/versions/v2022_11_28/types/group_0940.py +++ b/githubkit/versions/v2022_11_28/types/group_0940.py @@ -13,12 +13,11 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - pat_request_ids: NotRequired[list[int]] action: Literal["approve", "deny"] reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0941.py b/githubkit/versions/v2022_11_28/types/group_0941.py index f08e02365..b2f0b1907 100644 --- a/githubkit/versions/v2022_11_28/types/group_0941.py +++ b/githubkit/versions/v2022_11_28/types/group_0941.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + action: Literal["revoke"] + pat_ids: list[int] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0942.py b/githubkit/versions/v2022_11_28/types/group_0942.py index b2f0b1907..32c37cd97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0942.py +++ b/githubkit/versions/v2022_11_28/types/group_0942.py @@ -13,11 +13,10 @@ from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" action: Literal["revoke"] - pat_ids: list[int] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0943.py b/githubkit/versions/v2022_11_28/types/group_0943.py index 32c37cd97..93c0b2743 100644 --- a/githubkit/versions/v2022_11_28/types/group_0943.py +++ b/githubkit/versions/v2022_11_28/types/group_0943.py @@ -9,14 +9,49 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict - - -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" - - action: Literal["revoke"] - - -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesGetResponse200""" + + total_count: int + configurations: list[OrgPrivateRegistryConfigurationType] + + +class OrgPrivateRegistryConfigurationType(TypedDict): + """Organization private registry + + Private registry configuration for an organization + """ + + name: str + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] + 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_0944.py b/githubkit/versions/v2022_11_28/types/group_0944.py index a8b5e1475..52f611337 100644 --- a/githubkit/versions/v2022_11_28/types/group_0944.py +++ b/githubkit/versions/v2022_11_28/types/group_0944.py @@ -9,33 +9,36 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesGetResponse200""" - - total_count: int - configurations: list[OrgPrivateRegistryConfigurationType] - - -class OrgPrivateRegistryConfigurationType(TypedDict): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] +class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): + """OrgsOrgPrivateRegistriesPostBody""" + + registry_type: Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] + url: str username: NotRequired[Union[str, None]] + encrypted_value: str + key_id: str visibility: Literal["all", "private", "selected"] - created_at: datetime - updated_at: datetime + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrgPrivateRegistryConfigurationType", - "OrgsOrgPrivateRegistriesGetResponse200Type", -) +__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0945.py b/githubkit/versions/v2022_11_28/types/group_0945.py index 1ae97cd3a..95dc5e190 100644 --- a/githubkit/versions/v2022_11_28/types/group_0945.py +++ b/githubkit/versions/v2022_11_28/types/group_0945.py @@ -9,20 +9,14 @@ 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 OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] - url: str - username: NotRequired[Union[str, None]] - encrypted_value: str key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + key: str -__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0946.py b/githubkit/versions/v2022_11_28/types/group_0946.py index 95dc5e190..0f0608929 100644 --- a/githubkit/versions/v2022_11_28/types/group_0946.py +++ b/githubkit/versions/v2022_11_28/types/group_0946.py @@ -9,14 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - - key_id: str - key: str - - -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" + + registry_type: NotRequired[ + Literal[ + "maven_repository", + "nuget_feed", + "goproxy_server", + "npm_registry", + "rubygems_server", + "cargo_registry", + "composer_repository", + "docker_registry", + "git_source", + "helm_registry", + "hex_organization", + "hex_repository", + "pub_repository", + "python_index", + "terraform_registry", + ] + ] + url: NotRequired[str] + username: NotRequired[Union[str, None]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[list[int]] + + +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0947.py b/githubkit/versions/v2022_11_28/types/group_0947.py index 47498b69c..1afe17554 100644 --- a/githubkit/versions/v2022_11_28/types/group_0947.py +++ b/githubkit/versions/v2022_11_28/types/group_0947.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" - registry_type: NotRequired[ - Literal["maven_repository", "nuget_feed", "goproxy_server"] - ] - url: NotRequired[str] - 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]] + name: str + body: NotRequired[str] -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) +__all__ = ("OrgsOrgProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0948.py b/githubkit/versions/v2022_11_28/types/group_0948.py index 1afe17554..a7f033ef2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0948.py +++ b/githubkit/versions/v2022_11_28/types/group_0948.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0121 import CustomPropertyType -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" - name: str - body: NotRequired[str] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: list[CustomPropertyType] -__all__ = ("OrgsOrgProjectsPostBodyType",) + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0949.py b/githubkit/versions/v2022_11_28/types/group_0949.py index e04771912..f7fb3856e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0949.py +++ b/githubkit/versions/v2022_11_28/types/group_0949.py @@ -11,13 +11,14 @@ from typing_extensions import TypedDict -from .group_0119 import CustomPropertyType +from .group_0123 import CustomPropertyValueType -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" - properties: list[CustomPropertyType] + repository_names: list[str] + properties: list[CustomPropertyValueType] -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0950.py b/githubkit/versions/v2022_11_28/types/group_0950.py index 3f9232b21..5e584bb70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0950.py +++ b/githubkit/versions/v2022_11_28/types/group_0950.py @@ -9,16 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict - -from .group_0121 import CustomPropertyValueType - - -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" - - repository_names: list[str] - properties: list[CustomPropertyValueType] +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__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ( + "OrgsOrgReposPostBodyPropCustomPropertiesType", + "OrgsOrgReposPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0951.py b/githubkit/versions/v2022_11_28/types/group_0951.py index 5e584bb70..6e7a39d28 100644 --- a/githubkit/versions/v2022_11_28/types/group_0951.py +++ b/githubkit/versions/v2022_11_28/types/group_0951.py @@ -9,51 +9,77 @@ from __future__ import annotations -from typing import Any, Literal -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0127 import RepositoryRulesetBypassActorType +from .group_0136 import OrgRulesetConditionsOneof0Type +from .group_0137 import OrgRulesetConditionsOneof1Type +from .group_0138 import OrgRulesetConditionsOneof2Type +from .group_0139 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0140 import RepositoryRuleUpdateType +from .group_0142 import RepositoryRuleRequiredLinearHistoryType +from .group_0145 import RepositoryRuleRequiredDeploymentsType +from .group_0148 import RepositoryRulePullRequestType +from .group_0150 import RepositoryRuleRequiredStatusChecksType +from .group_0152 import RepositoryRuleCommitMessagePatternType +from .group_0154 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0156 import RepositoryRuleCommitterEmailPatternType +from .group_0158 import RepositoryRuleBranchNamePatternType +from .group_0160 import RepositoryRuleTagNamePatternType +from .group_0162 import RepositoryRuleFilePathRestrictionType +from .group_0164 import RepositoryRuleMaxFilePathLengthType +from .group_0166 import RepositoryRuleFileExtensionRestrictionType +from .group_0168 import RepositoryRuleMaxFileSizeType +from .group_0171 import RepositoryRuleWorkflowsType +from .group_0173 import RepositoryRuleCodeScanningType -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" 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"] + 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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - 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__ = ( - "OrgsOrgReposPostBodyPropCustomPropertiesType", - "OrgsOrgReposPostBodyType", -) +__all__ = ("OrgsOrgRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0952.py b/githubkit/versions/v2022_11_28/types/group_0952.py index 7e96bcee9..b2ebcb882 100644 --- a/githubkit/versions/v2022_11_28/types/group_0952.py +++ b/githubkit/versions/v2022_11_28/types/group_0952.py @@ -12,41 +12,40 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0125 import RepositoryRulesetBypassActorType -from .group_0134 import OrgRulesetConditionsOneof0Type -from .group_0135 import OrgRulesetConditionsOneof1Type -from .group_0136 import OrgRulesetConditionsOneof2Type -from .group_0137 import ( +from .group_0127 import RepositoryRulesetBypassActorType +from .group_0136 import OrgRulesetConditionsOneof0Type +from .group_0137 import OrgRulesetConditionsOneof1Type +from .group_0138 import OrgRulesetConditionsOneof2Type +from .group_0139 import ( RepositoryRuleCreationType, RepositoryRuleDeletionType, RepositoryRuleNonFastForwardType, RepositoryRuleRequiredSignaturesType, ) -from .group_0138 import RepositoryRuleUpdateType -from .group_0140 import RepositoryRuleRequiredLinearHistoryType -from .group_0141 import RepositoryRuleMergeQueueType -from .group_0143 import RepositoryRuleRequiredDeploymentsType -from .group_0146 import RepositoryRulePullRequestType -from .group_0148 import RepositoryRuleRequiredStatusChecksType -from .group_0150 import RepositoryRuleCommitMessagePatternType -from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0154 import RepositoryRuleCommitterEmailPatternType -from .group_0156 import RepositoryRuleBranchNamePatternType -from .group_0158 import RepositoryRuleTagNamePatternType -from .group_0160 import RepositoryRuleFilePathRestrictionType -from .group_0162 import RepositoryRuleMaxFilePathLengthType -from .group_0164 import RepositoryRuleFileExtensionRestrictionType -from .group_0166 import RepositoryRuleMaxFileSizeType -from .group_0169 import RepositoryRuleWorkflowsType -from .group_0171 import RepositoryRuleCodeScanningType +from .group_0140 import RepositoryRuleUpdateType +from .group_0142 import RepositoryRuleRequiredLinearHistoryType +from .group_0145 import RepositoryRuleRequiredDeploymentsType +from .group_0148 import RepositoryRulePullRequestType +from .group_0150 import RepositoryRuleRequiredStatusChecksType +from .group_0152 import RepositoryRuleCommitMessagePatternType +from .group_0154 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0156 import RepositoryRuleCommitterEmailPatternType +from .group_0158 import RepositoryRuleBranchNamePatternType +from .group_0160 import RepositoryRuleTagNamePatternType +from .group_0162 import RepositoryRuleFilePathRestrictionType +from .group_0164 import RepositoryRuleMaxFilePathLengthType +from .group_0166 import RepositoryRuleFileExtensionRestrictionType +from .group_0168 import RepositoryRuleMaxFileSizeType +from .group_0171 import RepositoryRuleWorkflowsType +from .group_0173 import RepositoryRuleCodeScanningType -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" - name: str + name: NotRequired[str] target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: Literal["disabled", "active", "evaluate"] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] conditions: NotRequired[ Union[ @@ -62,7 +61,6 @@ class OrgsOrgRulesetsPostBodyType(TypedDict): RepositoryRuleUpdateType, RepositoryRuleDeletionType, RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, RepositoryRuleRequiredDeploymentsType, RepositoryRuleRequiredSignaturesType, RepositoryRulePullRequestType, @@ -84,4 +82,4 @@ class OrgsOrgRulesetsPostBodyType(TypedDict): ] -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0953.py b/githubkit/versions/v2022_11_28/types/group_0953.py index 80692a4cc..56c40e834 100644 --- a/githubkit/versions/v2022_11_28/types/group_0953.py +++ b/githubkit/versions/v2022_11_28/types/group_0953.py @@ -9,79 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0125 import RepositoryRulesetBypassActorType -from .group_0134 import OrgRulesetConditionsOneof0Type -from .group_0135 import OrgRulesetConditionsOneof1Type -from .group_0136 import OrgRulesetConditionsOneof2Type -from .group_0137 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0138 import RepositoryRuleUpdateType -from .group_0140 import RepositoryRuleRequiredLinearHistoryType -from .group_0141 import RepositoryRuleMergeQueueType -from .group_0143 import RepositoryRuleRequiredDeploymentsType -from .group_0146 import RepositoryRulePullRequestType -from .group_0148 import RepositoryRuleRequiredStatusChecksType -from .group_0150 import RepositoryRuleCommitMessagePatternType -from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0154 import RepositoryRuleCommitterEmailPatternType -from .group_0156 import RepositoryRuleBranchNamePatternType -from .group_0158 import RepositoryRuleTagNamePatternType -from .group_0160 import RepositoryRuleFilePathRestrictionType -from .group_0162 import RepositoryRuleMaxFilePathLengthType -from .group_0164 import RepositoryRuleFileExtensionRestrictionType -from .group_0166 import RepositoryRuleMaxFileSizeType -from .group_0169 import RepositoryRuleWorkflowsType -from .group_0171 import RepositoryRuleCodeScanningType + +class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" + + total_count: int + network_configurations: list[NetworkConfigurationType] -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" +class NetworkConfigurationType(TypedDict): + """Hosted compute network configuration - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] + 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__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) + +__all__ = ( + "NetworkConfigurationType", + "OrgsOrgSettingsNetworkConfigurationsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0954.py b/githubkit/versions/v2022_11_28/types/group_0954.py index 56c40e834..c29f59c8e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0954.py +++ b/githubkit/versions/v2022_11_28/types/group_0954.py @@ -9,32 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): - """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" +class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" - total_count: int - network_configurations: list[NetworkConfigurationType] - - -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] + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: list[str] -__all__ = ( - "NetworkConfigurationType", - "OrgsOrgSettingsNetworkConfigurationsGetResponse200Type", -) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0955.py b/githubkit/versions/v2022_11_28/types/group_0955.py index c29f59c8e..cf5c73d09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0955.py +++ b/githubkit/versions/v2022_11_28/types/group_0955.py @@ -13,12 +13,14 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): - """OrgsOrgSettingsNetworkConfigurationsPostBody""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( + TypedDict +): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - name: str + name: NotRequired[str] compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: list[str] + network_settings_ids: NotRequired[list[str]] -__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0956.py b/githubkit/versions/v2022_11_28/types/group_0956.py index cf5c73d09..ccfb358e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0956.py +++ b/githubkit/versions/v2022_11_28/types/group_0956.py @@ -13,14 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( - TypedDict -): - """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - - name: NotRequired[str] - compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: NotRequired[list[str]] - - -__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" + + name: str + description: NotRequired[str] + maintainers: NotRequired[list[str]] + repo_names: NotRequired[list[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] + + +__all__ = ("OrgsOrgTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0957.py b/githubkit/versions/v2022_11_28/types/group_0957.py index ccfb358e6..c08c152bc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0957.py +++ b/githubkit/versions/v2022_11_28/types/group_0957.py @@ -9,23 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsPostBodyType(TypedDict): - """OrgsOrgTeamsPostBody""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - name: str + name: NotRequired[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] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("OrgsOrgTeamsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0958.py b/githubkit/versions/v2022_11_28/types/group_0958.py index c08c152bc..cb961efbb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0958.py +++ b/githubkit/versions/v2022_11_28/types/group_0958.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - 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]] + title: str + body: str + private: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0959.py b/githubkit/versions/v2022_11_28/types/group_0959.py index cb961efbb..db3011d85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0959.py +++ b/githubkit/versions/v2022_11_28/types/group_0959.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - title: str - body: str - private: NotRequired[bool] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0960.py b/githubkit/versions/v2022_11_28/types/group_0960.py index db3011d85..a05290583 100644 --- a/githubkit/versions/v2022_11_28/types/group_0960.py +++ b/githubkit/versions/v2022_11_28/types/group_0960.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + body: str -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0961.py b/githubkit/versions/v2022_11_28/types/group_0961.py index a05290583..a6b974137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0961.py +++ b/githubkit/versions/v2022_11_28/types/group_0961.py @@ -12,10 +12,14 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" body: str -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0962.py b/githubkit/versions/v2022_11_28/types/group_0962.py index a6b974137..937b98f91 100644 --- a/githubkit/versions/v2022_11_28/types/group_0962.py +++ b/githubkit/versions/v2022_11_28/types/group_0962.py @@ -9,17 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( TypedDict ): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0963.py b/githubkit/versions/v2022_11_28/types/group_0963.py index 937b98f91..c71526f64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0963.py +++ b/githubkit/versions/v2022_11_28/types/group_0963.py @@ -13,18 +13,12 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0964.py b/githubkit/versions/v2022_11_28/types/group_0964.py index c71526f64..b4d610e84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0964.py +++ b/githubkit/versions/v2022_11_28/types/group_0964.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0965.py b/githubkit/versions/v2022_11_28/types/group_0965.py index b4d610e84..8466dce90 100644 --- a/githubkit/versions/v2022_11_28/types/group_0965.py +++ b/githubkit/versions/v2022_11_28/types/group_0965.py @@ -13,10 +13,10 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - role: NotRequired[Literal["member", "maintainer"]] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0966.py b/githubkit/versions/v2022_11_28/types/group_0966.py index 8466dce90..a637157e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0966.py +++ b/githubkit/versions/v2022_11_28/types/group_0966.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - permission: NotRequired[Literal["read", "write", "admin"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0967.py b/githubkit/versions/v2022_11_28/types/group_0967.py index a637157e4..b42f638ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0967.py +++ b/githubkit/versions/v2022_11_28/types/group_0967.py @@ -12,11 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + permission: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0968.py b/githubkit/versions/v2022_11_28/types/group_0968.py index b42f638ac..edc438335 100644 --- a/githubkit/versions/v2022_11_28/types/group_0968.py +++ b/githubkit/versions/v2022_11_28/types/group_0968.py @@ -9,13 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - permission: NotRequired[str] + query_suite: NotRequired[Literal["default", "extended"]] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0969.py b/githubkit/versions/v2022_11_28/types/group_0969.py index edc438335..8710755b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0969.py +++ b/githubkit/versions/v2022_11_28/types/group_0969.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - query_suite: NotRequired[Literal["default", "extended"]] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0970.py b/githubkit/versions/v2022_11_28/types/group_0970.py index 8710755b1..3481963bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0970.py +++ b/githubkit/versions/v2022_11_28/types/group_0970.py @@ -9,15 +9,15 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0971.py b/githubkit/versions/v2022_11_28/types/group_0971.py index 3481963bb..ab2395816 100644 --- a/githubkit/versions/v2022_11_28/types/group_0971.py +++ b/githubkit/versions/v2022_11_28/types/group_0971.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] + position: str + column_id: NotRequired[int] -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0972.py b/githubkit/versions/v2022_11_28/types/group_0972.py index ab2395816..7c136f63a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0972.py +++ b/githubkit/versions/v2022_11_28/types/group_0972.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - position: str - column_id: NotRequired[int] - -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0973.py b/githubkit/versions/v2022_11_28/types/group_0973.py index 7c136f63a..2628f5b1a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0973.py +++ b/githubkit/versions/v2022_11_28/types/group_0973.py @@ -9,11 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0974.py b/githubkit/versions/v2022_11_28/types/group_0974.py index 2628f5b1a..c4d1b64db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0974.py +++ b/githubkit/versions/v2022_11_28/types/group_0974.py @@ -12,26 +12,25 @@ from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" + code: NotRequired[str] message: NotRequired[str] documentation_url: NotRequired[str] errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] ] -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" code: NotRequired[str] message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] __all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0975.py b/githubkit/versions/v2022_11_28/types/group_0975.py index c4d1b64db..62ebaaaef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0975.py +++ b/githubkit/versions/v2022_11_28/types/group_0975.py @@ -9,28 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] - ] + name: str -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", -) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0976.py b/githubkit/versions/v2022_11_28/types/group_0976.py index 62ebaaaef..1fdc1bf2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0976.py +++ b/githubkit/versions/v2022_11_28/types/group_0976.py @@ -9,13 +9,14 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - name: str + note: Union[str, None] -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0977.py b/githubkit/versions/v2022_11_28/types/group_0977.py index 1fdc1bf2e..93c271e2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0977.py +++ b/githubkit/versions/v2022_11_28/types/group_0977.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - note: Union[str, None] + content_id: int + content_type: str -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0978.py b/githubkit/versions/v2022_11_28/types/group_0978.py index 93c271e2e..4b4ed0962 100644 --- a/githubkit/versions/v2022_11_28/types/group_0978.py +++ b/githubkit/versions/v2022_11_28/types/group_0978.py @@ -9,14 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" - content_id: int - content_type: str + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", + "ProjectsColumnsColumnIdCardsPostResponse503Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0979.py b/githubkit/versions/v2022_11_28/types/group_0979.py index 4b4ed0962..1eee63273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0979.py +++ b/githubkit/versions/v2022_11_28/types/group_0979.py @@ -9,28 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] + position: str -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", - "ProjectsColumnsColumnIdCardsPostResponse503Type", -) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0980.py b/githubkit/versions/v2022_11_28/types/group_0980.py index 1eee63273..7df563c61 100644 --- a/githubkit/versions/v2022_11_28/types/group_0980.py +++ b/githubkit/versions/v2022_11_28/types/group_0980.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - position: str - -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0981.py b/githubkit/versions/v2022_11_28/types/group_0981.py index 7df563c61..36d491ce7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0981.py +++ b/githubkit/versions/v2022_11_28/types/group_0981.py @@ -9,11 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0982.py b/githubkit/versions/v2022_11_28/types/group_0982.py index 36d491ce7..31f864cbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0982.py +++ b/githubkit/versions/v2022_11_28/types/group_0982.py @@ -9,15 +9,18 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("ProjectsProjectIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0983.py b/githubkit/versions/v2022_11_28/types/group_0983.py index 31f864cbd..6e093b913 100644 --- a/githubkit/versions/v2022_11_28/types/group_0983.py +++ b/githubkit/versions/v2022_11_28/types/group_0983.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0984.py b/githubkit/versions/v2022_11_28/types/group_0984.py index 6e093b913..e3cd89b33 100644 --- a/githubkit/versions/v2022_11_28/types/group_0984.py +++ b/githubkit/versions/v2022_11_28/types/group_0984.py @@ -9,15 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0985.py b/githubkit/versions/v2022_11_28/types/group_0985.py index e3cd89b33..8c02d8953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0985.py +++ b/githubkit/versions/v2022_11_28/types/group_0985.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + name: str -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0986.py b/githubkit/versions/v2022_11_28/types/group_0986.py index 8c02d8953..a7224c5e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0986.py +++ b/githubkit/versions/v2022_11_28/types/group_0986.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 ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - name: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0987.py b/githubkit/versions/v2022_11_28/types/group_0987.py index a7224c5e8..abf762e76 100644 --- a/githubkit/versions/v2022_11_28/types/group_0987.py +++ b/githubkit/versions/v2022_11_28/types/group_0987.py @@ -9,14 +9,172 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private"]] + security_and_analysis: NotRequired[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] + ] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + is_template: NotRequired[bool] + default_branch: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + archived: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/organizations/managing-peoples-access-to- + your-organization-with-roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType + ] + code_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_ai_detection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. + For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + + For standalone Code Scanning or Secret Protection products, this parameter + cannot be used. + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + + Use the `status` property to enable or disable GitHub Code Security for this + repository. + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/code-security/secret-scanning/using- + advanced-secret-scanning-and-push-protection-features/generic-secret- + detection/responsible-ai-generic-secrets)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ + + status: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0988.py b/githubkit/versions/v2022_11_28/types/group_0988.py index 16638fde9..11c6a3f6f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0988.py +++ b/githubkit/versions/v2022_11_28/types/group_0988.py @@ -9,168 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0202 import ArtifactType -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" - 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] +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int + artifacts: list[ArtifactType] -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/organizations/managing-peoples-access-to- - your-organization-with-roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType - ] - code_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_ai_detection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - - Use the `status` property to enable or disable GitHub Code Security for this - repository. - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/code-security/secret-scanning/using- - advanced-secret-scanning-and-push-protection-features/generic-secret- - detection/responsible-ai-generic-secrets)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - - status: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyType", -) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0989.py b/githubkit/versions/v2022_11_28/types/group_0989.py index 44beab7ac..8552ab8cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0989.py +++ b/githubkit/versions/v2022_11_28/types/group_0989.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0200 import ArtifactType +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + enable_debug_logging: NotRequired[bool] - total_count: int - artifacts: list[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0990.py b/githubkit/versions/v2022_11_28/types/group_0990.py index 8552ab8cf..19c3d652d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0990.py +++ b/githubkit/versions/v2022_11_28/types/group_0990.py @@ -12,10 +12,14 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository - enable_debug_logging: NotRequired[bool] + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0991.py b/githubkit/versions/v2022_11_28/types/group_0991.py index 19c3d652d..ee081be64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0991.py +++ b/githubkit/versions/v2022_11_28/types/group_0991.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0206 import ActionsSecretType -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" - use_default: bool - include_claim_keys: NotRequired[list[str]] + total_count: int + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0992.py b/githubkit/versions/v2022_11_28/types/group_0992.py index 76fca5540..eb1e7a572 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_0204 import ActionsSecretType +from .group_0207 import ActionsVariableType -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" total_count: int - secrets: list[ActionsSecretType] + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0993.py b/githubkit/versions/v2022_11_28/types/group_0993.py index ea460f9cb..fc3874a09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0993.py +++ b/githubkit/versions/v2022_11_28/types/group_0993.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_0205 import ActionsVariableType +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0994.py b/githubkit/versions/v2022_11_28/types/group_0994.py index fc3874a09..39d30e902 100644 --- a/githubkit/versions/v2022_11_28/types/group_0994.py +++ b/githubkit/versions/v2022_11_28/types/group_0994.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0081 import RunnerType -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: list[RunnerType] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0995.py b/githubkit/versions/v2022_11_28/types/group_0995.py index 92543f99e..5036c414c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0995.py +++ b/githubkit/versions/v2022_11_28/types/group_0995.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0079 import RunnerType +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - total_count: int - runners: list[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0996.py b/githubkit/versions/v2022_11_28/types/group_0996.py index 5036c414c..9ca36f6ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0996.py +++ b/githubkit/versions/v2022_11_28/types/group_0996.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - name: str - runner_group_id: int labels: list[str] - work_folder: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0997.py b/githubkit/versions/v2022_11_28/types/group_0997.py index 9ca36f6ff..17c2e6d71 100644 --- a/githubkit/versions/v2022_11_28/types/group_0997.py +++ b/githubkit/versions/v2022_11_28/types/group_0997.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" labels: list[str] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0998.py b/githubkit/versions/v2022_11_28/types/group_0998.py index 17c2e6d71..f18adf0e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0998.py +++ b/githubkit/versions/v2022_11_28/types/group_0998.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0212 import WorkflowRunType -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int + workflow_runs: list[WorkflowRunType] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0999.py b/githubkit/versions/v2022_11_28/types/group_0999.py index 7cc475020..9709a4fd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0999.py +++ b/githubkit/versions/v2022_11_28/types/group_0999.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0210 import WorkflowRunType +from .group_0202 import ArtifactType -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" total_count: int - workflow_runs: list[WorkflowRunType] + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1000.py b/githubkit/versions/v2022_11_28/types/group_1000.py index e99e90fe7..39f4c32de 100644 --- a/githubkit/versions/v2022_11_28/types/group_1000.py +++ b/githubkit/versions/v2022_11_28/types/group_1000.py @@ -11,14 +11,16 @@ from typing_extensions import TypedDict -from .group_0200 import ArtifactType +from .group_0204 import JobType -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" total_count: int - artifacts: list[ArtifactType] + jobs: list[JobType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1001.py b/githubkit/versions/v2022_11_28/types/group_1001.py index 9b5ddd291..af64b2b56 100644 --- a/githubkit/versions/v2022_11_28/types/group_1001.py +++ b/githubkit/versions/v2022_11_28/types/group_1001.py @@ -11,16 +11,14 @@ from typing_extensions import TypedDict -from .group_0202 import JobType +from .group_0204 import JobType -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" total_count: int jobs: list[JobType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1002.py b/githubkit/versions/v2022_11_28/types/group_1002.py index 47d200df6..76bdf5b5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1002.py +++ b/githubkit/versions/v2022_11_28/types/group_1002.py @@ -9,16 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0202 import JobType +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + environment_ids: list[int] + state: Literal["approved", "rejected"] + comment: str - total_count: int - jobs: list[JobType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1003.py b/githubkit/versions/v2022_11_28/types/group_1003.py index 76bdf5b5d..41d795f26 100644 --- a/githubkit/versions/v2022_11_28/types/group_1003.py +++ b/githubkit/versions/v2022_11_28/types/group_1003.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - environment_ids: list[int] - state: Literal["approved", "rejected"] - comment: str + enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1004.py b/githubkit/versions/v2022_11_28/types/group_1004.py index 41d795f26..d27f156d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1004.py +++ b/githubkit/versions/v2022_11_28/types/group_1004.py @@ -12,10 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1005.py b/githubkit/versions/v2022_11_28/types/group_1005.py index d27f156d2..d0e4ccc7f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1005.py +++ b/githubkit/versions/v2022_11_28/types/group_1005.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0206 import ActionsSecretType -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1006.py b/githubkit/versions/v2022_11_28/types/group_1006.py index dc4d14722..335280e49 100644 --- a/githubkit/versions/v2022_11_28/types/group_1006.py +++ b/githubkit/versions/v2022_11_28/types/group_1006.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0204 import ActionsSecretType +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + encrypted_value: str + key_id: str - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1007.py b/githubkit/versions/v2022_11_28/types/group_1007.py index 335280e49..a0cd23511 100644 --- a/githubkit/versions/v2022_11_28/types/group_1007.py +++ b/githubkit/versions/v2022_11_28/types/group_1007.py @@ -11,12 +11,14 @@ from typing_extensions import TypedDict +from .group_0207 import ActionsVariableType -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - encrypted_value: str - key_id: str +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1008.py b/githubkit/versions/v2022_11_28/types/group_1008.py index 9e1c38de1..a5b1bcda1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1008.py +++ b/githubkit/versions/v2022_11_28/types/group_1008.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0205 import ActionsVariableType +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + name: str + value: str - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1009.py b/githubkit/versions/v2022_11_28/types/group_1009.py index a5b1bcda1..9dc60de46 100644 --- a/githubkit/versions/v2022_11_28/types/group_1009.py +++ b/githubkit/versions/v2022_11_28/types/group_1009.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: str - value: str + name: NotRequired[str] + value: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1010.py b/githubkit/versions/v2022_11_28/types/group_1010.py index 9dc60de46..567412f15 100644 --- a/githubkit/versions/v2022_11_28/types/group_1010.py +++ b/githubkit/versions/v2022_11_28/types/group_1010.py @@ -9,14 +9,40 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - name: NotRequired[str] - value: NotRequired[str] + total_count: int + workflows: list[WorkflowType] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) +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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1011.py b/githubkit/versions/v2022_11_28/types/group_1011.py index 567412f15..3e172dbfe 100644 --- a/githubkit/versions/v2022_11_28/types/group_1011.py +++ b/githubkit/versions/v2022_11_28/types/group_1011.py @@ -9,40 +9,31 @@ 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 ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" - - total_count: int - workflows: list[WorkflowType] +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] -class WorkflowType(TypedDict): - """Workflow - A GitHub Actions workflow - """ +ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - 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] +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__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200Type", - "WorkflowType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1012.py b/githubkit/versions/v2022_11_28/types/group_1012.py index 3e172dbfe..4c149b04d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1012.py +++ b/githubkit/versions/v2022_11_28/types/group_1012.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_0212 import WorkflowRunType -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int + workflow_runs: list[WorkflowRunType] -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__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1013.py b/githubkit/versions/v2022_11_28/types/group_1013.py index 0a16c2ce3..e197b3b3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1013.py +++ b/githubkit/versions/v2022_11_28/types/group_1013.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_0210 import WorkflowRunType +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType - total_count: int - workflow_runs: list[WorkflowRunType] +class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundle -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) + 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/v2022_11_28/types/group_1014.py b/githubkit/versions/v2022_11_28/types/group_1014.py index e197b3b3a..79c9aa002 100644 --- a/githubkit/versions/v2022_11_28/types/group_1014.py +++ b/githubkit/versions/v2022_11_28/types/group_1014.py @@ -9,51 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAttestationsPostBodyType(TypedDict): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType + id: NotRequired[int] -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__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1015.py b/githubkit/versions/v2022_11_28/types/group_1015.py index 79c9aa002..8a6a46fe3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1015.py +++ b/githubkit/versions/v2022_11_28/types/group_1015.py @@ -9,13 +9,73 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - id: NotRequired[int] + attestations: NotRequired[ + list[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] -__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) +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_1016.py b/githubkit/versions/v2022_11_28/types/group_1016.py index 8a6a46fe3..d3cf0850b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1016.py +++ b/githubkit/versions/v2022_11_28/types/group_1016.py @@ -9,73 +9,15 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - attestations: NotRequired[ - list[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] -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__ = ("ReposOwnerRepoAutolinksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1017.py b/githubkit/versions/v2022_11_28/types/group_1017.py index d3cf0850b..bca1d637c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1017.py +++ b/githubkit/versions/v2022_11_28/types/group_1017.py @@ -9,15 +9,132 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] + 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] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) +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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1018.py b/githubkit/versions/v2022_11_28/types/group_1018.py index bca1d637c..663ec3e19 100644 --- a/githubkit/versions/v2022_11_28/types/group_1018.py +++ b/githubkit/versions/v2022_11_28/types/group_1018.py @@ -9,87 +9,31 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -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( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( 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. - """ + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType + 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[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType ] -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team @@ -102,11 +46,11 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview apps: NotRequired[list[str]] -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances Allow specific users, teams, or apps to bypass pull request requirements. """ @@ -116,25 +60,8 @@ class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReview 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", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1019.py b/githubkit/versions/v2022_11_28/types/group_1019.py index 663ec3e19..0e57487fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_1019.py +++ b/githubkit/versions/v2022_11_28/types/group_1019.py @@ -12,56 +12,32 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( 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 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" + + strict: NotRequired[bool] + contexts: NotRequired[list[str]] + checks: NotRequired[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] ] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] + context: str + app_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1020.py b/githubkit/versions/v2022_11_28/types/group_1020.py index 0e57487fc..e1f78ac45 100644 --- a/githubkit/versions/v2022_11_28/types/group_1020.py +++ b/githubkit/versions/v2022_11_28/types/group_1020.py @@ -9,35 +9,21 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - strict: NotRequired[bool] - contexts: NotRequired[list[str]] - checks: NotRequired[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms + Examples: + {'contexts': ['contexts']} """ - context: str - app_id: NotRequired[int] + contexts: list[str] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1021.py b/githubkit/versions/v2022_11_28/types/group_1021.py index e1f78ac45..7953af035 100644 --- a/githubkit/versions/v2022_11_28/types/group_1021.py +++ b/githubkit/versions/v2022_11_28/types/group_1021.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: {'contexts': ['contexts']} @@ -25,5 +25,5 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyO __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1022.py b/githubkit/versions/v2022_11_28/types/group_1022.py index 7953af035..b4a0d30f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1022.py +++ b/githubkit/versions/v2022_11_28/types/group_1022.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: {'contexts': ['contexts']} @@ -25,5 +26,5 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBody __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1023.py b/githubkit/versions/v2022_11_28/types/group_1023.py index b4a0d30f6..1f154c587 100644 --- a/githubkit/versions/v2022_11_28/types/group_1023.py +++ b/githubkit/versions/v2022_11_28/types/group_1023.py @@ -12,19 +12,14 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody Examples: - {'contexts': ['contexts']} + {'apps': ['my-app']} """ - contexts: list[str] + apps: list[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1024.py b/githubkit/versions/v2022_11_28/types/group_1024.py index 1f154c587..e8ab2de74 100644 --- a/githubkit/versions/v2022_11_28/types/group_1024.py +++ b/githubkit/versions/v2022_11_28/types/group_1024.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody Examples: {'apps': ['my-app']} @@ -22,4 +22,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDic apps: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1025.py b/githubkit/versions/v2022_11_28/types/group_1025.py index e8ab2de74..26bc12cd2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1025.py +++ b/githubkit/versions/v2022_11_28/types/group_1025.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody Examples: {'apps': ['my-app']} @@ -22,4 +22,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDi apps: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1026.py b/githubkit/versions/v2022_11_28/types/group_1026.py index 26bc12cd2..db6c7e46c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1026.py +++ b/githubkit/versions/v2022_11_28/types/group_1026.py @@ -12,14 +12,16 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 Examples: - {'apps': ['my-app']} + {'teams': ['justice-league']} """ - apps: list[str] + teams: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1027.py b/githubkit/versions/v2022_11_28/types/group_1027.py index db6c7e46c..d74b8d070 100644 --- a/githubkit/versions/v2022_11_28/types/group_1027.py +++ b/githubkit/versions/v2022_11_28/types/group_1027.py @@ -12,16 +12,16 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 Examples: - {'teams': ['justice-league']} + {'teams': ['my-team']} """ teams: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1028.py b/githubkit/versions/v2022_11_28/types/group_1028.py index d74b8d070..85e315c26 100644 --- a/githubkit/versions/v2022_11_28/types/group_1028.py +++ b/githubkit/versions/v2022_11_28/types/group_1028.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 Examples: {'teams': ['my-team']} @@ -24,4 +24,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( teams: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1029.py b/githubkit/versions/v2022_11_28/types/group_1029.py index 85e315c26..14d747f27 100644 --- a/githubkit/versions/v2022_11_28/types/group_1029.py +++ b/githubkit/versions/v2022_11_28/types/group_1029.py @@ -12,18 +12,14 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody Examples: - {'teams': ['my-team']} + {'users': ['mona']} """ - teams: list[str] + users: list[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1030.py b/githubkit/versions/v2022_11_28/types/group_1030.py index 14d747f27..a879b8e99 100644 --- a/githubkit/versions/v2022_11_28/types/group_1030.py +++ b/githubkit/versions/v2022_11_28/types/group_1030.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody Examples: {'users': ['mona']} @@ -22,4 +22,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDi users: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1031.py b/githubkit/versions/v2022_11_28/types/group_1031.py index a879b8e99..88f98adfd 100644 --- a/githubkit/versions/v2022_11_28/types/group_1031.py +++ b/githubkit/versions/v2022_11_28/types/group_1031.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody Examples: {'users': ['mona']} @@ -22,4 +22,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedD users: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1032.py b/githubkit/versions/v2022_11_28/types/group_1032.py index 88f98adfd..b46802659 100644 --- a/githubkit/versions/v2022_11_28/types/group_1032.py +++ b/githubkit/versions/v2022_11_28/types/group_1032.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - Examples: - {'users': ['mona']} - """ + new_name: str - users: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1033.py b/githubkit/versions/v2022_11_28/types/group_1033.py index b46802659..0e96d896e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1033.py +++ b/githubkit/versions/v2022_11_28/types/group_1033.py @@ -9,13 +9,62 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - new_name: 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: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] + ] + images: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] + ] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) + +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_1034.py b/githubkit/versions/v2022_11_28/types/group_1034.py index 0e96d896e..43f5fee4c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1034.py +++ b/githubkit/versions/v2022_11_28/types/group_1034.py @@ -9,62 +9,38 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1033 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) -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] +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", ] - 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] - + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -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__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1035.py b/githubkit/versions/v2022_11_28/types/group_1035.py index d820ed17a..b15cfea1c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1035.py +++ b/githubkit/versions/v2022_11_28/types/group_1035.py @@ -13,34 +13,38 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1034 import ( +from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) -class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" name: str head_sha: str details_url: NotRequired[str] external_id: NotRequired[str] - status: Literal["completed"] + status: NotRequired[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] started_at: NotRequired[datetime] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + 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__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1036.py b/githubkit/versions/v2022_11_28/types/group_1036.py index 1d23aeb67..cdd81f62e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1036.py +++ b/githubkit/versions/v2022_11_28/types/group_1036.py @@ -9,42 +9,68 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1034 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" + 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 - 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", + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType ] ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + 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""" -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) + 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_1037.py b/githubkit/versions/v2022_11_28/types/group_1037.py index cdd81f62e..5a01afa36 100644 --- a/githubkit/versions/v2022_11_28/types/group_1037.py +++ b/githubkit/versions/v2022_11_28/types/group_1037.py @@ -9,68 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1036 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ - list[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType - ] +class 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", ] - images: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] ] -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__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1038.py b/githubkit/versions/v2022_11_28/types/group_1038.py index 1091324f7..890503352 100644 --- a/githubkit/versions/v2022_11_28/types/group_1038.py +++ b/githubkit/versions/v2022_11_28/types/group_1038.py @@ -13,29 +13,31 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1037 import ( +from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" 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", + 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] @@ -44,4 +46,4 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1039.py b/githubkit/versions/v2022_11_28/types/group_1039.py index ba8fd7fbe..5d8ac49c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1039.py +++ b/githubkit/versions/v2022_11_28/types/group_1039.py @@ -9,41 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1037 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - - name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["queued", "in_progress"]] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] - ] - - -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" + + head_sha: str + + +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1040.py b/githubkit/versions/v2022_11_28/types/group_1040.py index 5d8ac49c1..5f72161c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1040.py +++ b/githubkit/versions/v2022_11_28/types/group_1040.py @@ -9,13 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - head_sha: str + auto_trigger_checks: NotRequired[ + list[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" + + app_id: int + setting: bool + + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1041.py b/githubkit/versions/v2022_11_28/types/group_1041.py index 5f72161c7..37d292da9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1041.py +++ b/githubkit/versions/v2022_11_28/types/group_1041.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0238 import CheckRunType -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - auto_trigger_checks: NotRequired[ - list[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int + check_runs: list[CheckRunType] -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1042.py b/githubkit/versions/v2022_11_28/types/group_1042.py index 3f49b9362..d8d166808 100644 --- a/githubkit/versions/v2022_11_28/types/group_1042.py +++ b/githubkit/versions/v2022_11_28/types/group_1042.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0236 import CheckRunType +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + state: Literal["open", "dismissed"] + dismissed_reason: NotRequired[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] + dismissed_comment: NotRequired[Union[str, None]] + create_request: NotRequired[bool] - total_count: int - check_runs: list[CheckRunType] - -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1043.py b/githubkit/versions/v2022_11_28/types/group_1043.py index d8d166808..31cc88a9b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1043.py +++ b/githubkit/versions/v2022_11_28/types/group_1043.py @@ -9,19 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" ] - dismissed_comment: NotRequired[Union[str, None]] - create_request: NotRequired[bool] + query_pack: str + repositories: list[str] + repository_lists: NotRequired[list[str]] + repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1044.py b/githubkit/versions/v2022_11_28/types/group_1044.py index 31cc88a9b..15b2259e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1044.py +++ b/githubkit/versions/v2022_11_28/types/group_1044.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" ] query_pack: str - repositories: list[str] - repository_lists: NotRequired[list[str]] + repositories: NotRequired[list[str]] + repository_lists: list[str] repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1045.py b/githubkit/versions/v2022_11_28/types/group_1045.py index 15b2259e7..3b669027d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1045.py +++ b/githubkit/versions/v2022_11_28/types/group_1045.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" ] query_pack: str repositories: NotRequired[list[str]] - repository_lists: list[str] - repository_owners: NotRequired[list[str]] + repository_lists: NotRequired[list[str]] + repository_owners: list[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1046.py b/githubkit/versions/v2022_11_28/types/group_1046.py index 3b669027d..e9eb27946 100644 --- a/githubkit/versions/v2022_11_28/types/group_1046.py +++ b/githubkit/versions/v2022_11_28/types/group_1046.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] - query_pack: str - repositories: NotRequired[list[str]] - repository_lists: NotRequired[list[str]] - repository_owners: list[str] + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1047.py b/githubkit/versions/v2022_11_28/types/group_1047.py index e9eb27946..7badbbc97 100644 --- a/githubkit/versions/v2022_11_28/types/group_1047.py +++ b/githubkit/versions/v2022_11_28/types/group_1047.py @@ -9,20 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0093 import CodespaceType -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1048.py b/githubkit/versions/v2022_11_28/types/group_1048.py index 0c132691a..88f53eda8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1048.py +++ b/githubkit/versions/v2022_11_28/types/group_1048.py @@ -9,16 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0091 import CodespaceType +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1049.py b/githubkit/versions/v2022_11_28/types/group_1049.py index 88f53eda8..2b6a98e8b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1049.py +++ b/githubkit/versions/v2022_11_28/types/group_1049.py @@ -9,24 +9,29 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - 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] + total_count: int + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str + name: NotRequired[str] display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1050.py b/githubkit/versions/v2022_11_28/types/group_1050.py index 2b6a98e8b..c8c7913b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1050.py +++ b/githubkit/versions/v2022_11_28/types/group_1050.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0092 import CodespaceMachineType -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( - TypedDict -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - - path: str - name: NotRequired[str] - display_name: NotRequired[str] + total_count: int + machines: list[CodespaceMachineType] -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1051.py b/githubkit/versions/v2022_11_28/types/group_1051.py index ef01177fa..1da0f80f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1051.py +++ b/githubkit/versions/v2022_11_28/types/group_1051.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0090 import CodespaceMachineType +from .group_0003 import SimpleUserType -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" - total_count: int - machines: list[CodespaceMachineType] + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + + location: str + devcontainer_path: Union[str, None] + + +__all__ = ( + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1052.py b/githubkit/versions/v2022_11_28/types/group_1052.py index 1da0f80f8..fe71c65ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_1052.py +++ b/githubkit/versions/v2022_11_28/types/group_1052.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" + total_count: int + secrets: list[RepoCodespacesSecretType] - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + Set repository secrets for GitHub Codespaces. + """ - location: str - devcontainer_path: Union[str, None] + name: str + created_at: datetime + updated_at: datetime __all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", - "ReposOwnerRepoCodespacesNewGetResponse200Type", + "RepoCodespacesSecretType", + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1053.py b/githubkit/versions/v2022_11_28/types/group_1053.py index fe71c65ab..4e9617e8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1053.py +++ b/githubkit/versions/v2022_11_28/types/group_1053.py @@ -9,29 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - total_count: int - secrets: list[RepoCodespacesSecretType] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "RepoCodespacesSecretType", - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1054.py b/githubkit/versions/v2022_11_28/types/group_1054.py index 4e9617e8c..4cccc4ae5 100644 --- a/githubkit/versions/v2022_11_28/types/group_1054.py +++ b/githubkit/versions/v2022_11_28/types/group_1054.py @@ -12,11 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + permission: NotRequired[str] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1055.py b/githubkit/versions/v2022_11_28/types/group_1055.py index 4cccc4ae5..25f26d78b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1055.py +++ b/githubkit/versions/v2022_11_28/types/group_1055.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - permission: NotRequired[str] + body: str -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1056.py b/githubkit/versions/v2022_11_28/types/group_1056.py index 25f26d78b..ce91eec32 100644 --- a/githubkit/versions/v2022_11_28/types/group_1056.py +++ b/githubkit/versions/v2022_11_28/types/group_1056.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1057.py b/githubkit/versions/v2022_11_28/types/group_1057.py index ce91eec32..36d63c915 100644 --- a/githubkit/versions/v2022_11_28/types/group_1057.py +++ b/githubkit/versions/v2022_11_28/types/group_1057.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1058.py b/githubkit/versions/v2022_11_28/types/group_1058.py index 36d63c915..d19e5a4e0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1058.py +++ b/githubkit/versions/v2022_11_28/types/group_1058.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0238 import CheckRunType -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: list[CheckRunType] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1059.py b/githubkit/versions/v2022_11_28/types/group_1059.py index b8706c79e..a33d63ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1059.py +++ b/githubkit/versions/v2022_11_28/types/group_1059.py @@ -9,16 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0236 import CheckRunType +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + message: str + content: str + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] - total_count: int - check_runs: list[CheckRunType] +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) + 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/v2022_11_28/types/group_1060.py b/githubkit/versions/v2022_11_28/types/group_1060.py index a33d63ac7..1a6415115 100644 --- a/githubkit/versions/v2022_11_28/types/group_1060.py +++ b/githubkit/versions/v2022_11_28/types/group_1060.py @@ -12,42 +12,38 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" message: str - content: str - sha: NotRequired[str] + sha: str branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter +class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - The person that committed the file. Default: the authenticated user. + object containing information about the committer. """ - name: str - email: str - date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] -class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropAuthor +class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. + object containing information about the author. """ - name: str - email: str - date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] __all__ = ( - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1061.py b/githubkit/versions/v2022_11_28/types/group_1061.py index 1a6415115..b6eb59e50 100644 --- a/githubkit/versions/v2022_11_28/types/group_1061.py +++ b/githubkit/versions/v2022_11_28/types/group_1061.py @@ -9,41 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[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__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1062.py b/githubkit/versions/v2022_11_28/types/group_1062.py index b6eb59e50..61528dc95 100644 --- a/githubkit/versions/v2022_11_28/types/group_1062.py +++ b/githubkit/versions/v2022_11_28/types/group_1062.py @@ -9,20 +9,29 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] - dismissed_comment: NotRequired[str] + total_count: int + secrets: list[DependabotSecretType] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +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_1063.py b/githubkit/versions/v2022_11_28/types/group_1063.py index 61528dc95..95231af1a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1063.py +++ b/githubkit/versions/v2022_11_28/types/group_1063.py @@ -9,29 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - total_count: int - secrets: list[DependabotSecretType] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -class DependabotSecretType(TypedDict): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "DependabotSecretType", - "ReposOwnerRepoDependabotSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1064.py b/githubkit/versions/v2022_11_28/types/group_1064.py index 95231af1a..6e9243ec2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1064.py +++ b/githubkit/versions/v2022_11_28/types/group_1064.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + id: int + created_at: str + result: str + message: str -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1065.py b/githubkit/versions/v2022_11_28/types/group_1065.py index 6e9243ec2..149bc226e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1065.py +++ b/githubkit/versions/v2022_11_28/types/group_1065.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - id: int - created_at: str - result: str - message: str + ref: str + task: NotRequired[str] + auto_merge: NotRequired[bool] + required_contexts: NotRequired[list[str]] + payload: NotRequired[ + Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + ] + environment: NotRequired[str] + description: NotRequired[Union[str, None]] + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 +""" + + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", + "ReposOwnerRepoDeploymentsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1066.py b/githubkit/versions/v2022_11_28/types/group_1066.py index 149bc226e..8dce1979d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1066.py +++ b/githubkit/versions/v2022_11_28/types/group_1066.py @@ -9,32 +9,13 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" - 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] + message: NotRequired[str] -ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 -""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", - "ReposOwnerRepoDeploymentsPostBodyType", -) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1067.py b/githubkit/versions/v2022_11_28/types/group_1067.py index 8dce1979d..cc93f9515 100644 --- a/githubkit/versions/v2022_11_28/types/group_1067.py +++ b/githubkit/versions/v2022_11_28/types/group_1067.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - message: 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] -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1068.py b/githubkit/versions/v2022_11_28/types/group_1068.py index cc93f9515..d1e750ab3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1068.py +++ b/githubkit/versions/v2022_11_28/types/group_1068.py @@ -9,22 +9,27 @@ 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 ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - 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] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) +ReposOwnerRepoDispatchesPostBodyPropClientPayloadType: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDispatchesPostBodyPropClientPayload + +JSON payload with extra information about the webhook event that your action or +workflow may use. The maximum number of top-level properties is 10. The total +size of the JSON payload must be less than 64KB. +""" + + +__all__ = ( + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", + "ReposOwnerRepoDispatchesPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1069.py b/githubkit/versions/v2022_11_28/types/group_1069.py index d1e750ab3..f819cbbbc 100644 --- a/githubkit/versions/v2022_11_28/types/group_1069.py +++ b/githubkit/versions/v2022_11_28/types/group_1069.py @@ -9,27 +9,38 @@ 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_0294 import DeploymentBranchPolicySettingsType -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + list[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -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 ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + id: NotRequired[int] __all__ = ( - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", - "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1070.py b/githubkit/versions/v2022_11_28/types/group_1070.py index 6ca8ec795..ab59e0b4e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1070.py +++ b/githubkit/versions/v2022_11_28/types/group_1070.py @@ -9,38 +9,32 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0292 import DeploymentBranchPolicySettingsType +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + total_count: int + branch_policies: list[DeploymentBranchPolicyType] - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - list[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + Details of a deployment branch or tag policy. + """ - type: NotRequired[Literal["User", "Team"]] id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + type: NotRequired[Literal["branch", "tag"]] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "DeploymentBranchPolicyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1071.py b/githubkit/versions/v2022_11_28/types/group_1071.py index ab59e0b4e..bb2b4e614 100644 --- a/githubkit/versions/v2022_11_28/types/group_1071.py +++ b/githubkit/versions/v2022_11_28/types/group_1071.py @@ -9,32 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( TypedDict ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - total_count: int - branch_policies: list[DeploymentBranchPolicyType] - - -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - - Details of a deployment branch or tag policy. - """ - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] + integration_id: NotRequired[int] __all__ = ( - "DeploymentBranchPolicyType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1072.py b/githubkit/versions/v2022_11_28/types/group_1072.py index bb2b4e614..07e25acce 100644 --- a/githubkit/versions/v2022_11_28/types/group_1072.py +++ b/githubkit/versions/v2022_11_28/types/group_1072.py @@ -11,15 +11,22 @@ from typing_extensions import NotRequired, TypedDict +from .group_0300 import CustomDeploymentRuleAppType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( TypedDict ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - integration_id: NotRequired[int] + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + list[CustomDeploymentRuleAppType] + ] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1073.py b/githubkit/versions/v2022_11_28/types/group_1073.py index 3804d463b..06c951436 100644 --- a/githubkit/versions/v2022_11_28/types/group_1073.py +++ b/githubkit/versions/v2022_11_28/types/group_1073.py @@ -9,24 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0298 import CustomDeploymentRuleAppType +from .group_0206 import ActionsSecretType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - list[CustomDeploymentRuleAppType] - ] + total_count: int + secrets: list[ActionsSecretType] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1074.py b/githubkit/versions/v2022_11_28/types/group_1074.py index 189772db9..3ec440fb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1074.py +++ b/githubkit/versions/v2022_11_28/types/group_1074.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0204 import ActionsSecretType +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + encrypted_value: str + key_id: str - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1075.py b/githubkit/versions/v2022_11_28/types/group_1075.py index 3ec440fb1..81b37747e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1075.py +++ b/githubkit/versions/v2022_11_28/types/group_1075.py @@ -11,12 +11,14 @@ from typing_extensions import TypedDict +from .group_0207 import ActionsVariableType -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - encrypted_value: str - key_id: str +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1076.py b/githubkit/versions/v2022_11_28/types/group_1076.py index 89acfe950..f3a29926f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1076.py +++ b/githubkit/versions/v2022_11_28/types/group_1076.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0205 import ActionsVariableType +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + name: str + value: str - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1077.py b/githubkit/versions/v2022_11_28/types/group_1077.py index f3a29926f..adee73102 100644 --- a/githubkit/versions/v2022_11_28/types/group_1077.py +++ b/githubkit/versions/v2022_11_28/types/group_1077.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - name: str - value: str + name: NotRequired[str] + value: NotRequired[str] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1078.py b/githubkit/versions/v2022_11_28/types/group_1078.py index adee73102..eb686a699 100644 --- a/githubkit/versions/v2022_11_28/types/group_1078.py +++ b/githubkit/versions/v2022_11_28/types/group_1078.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" + organization: NotRequired[str] name: NotRequired[str] - value: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1079.py b/githubkit/versions/v2022_11_28/types/group_1079.py index eb686a699..4c2ef3730 100644 --- a/githubkit/versions/v2022_11_28/types/group_1079.py +++ b/githubkit/versions/v2022_11_28/types/group_1079.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] + content: str + encoding: NotRequired[str] -__all__ = ("ReposOwnerRepoForksPostBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1080.py b/githubkit/versions/v2022_11_28/types/group_1080.py index 4c2ef3730..73106315f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1080.py +++ b/githubkit/versions/v2022_11_28/types/group_1080.py @@ -9,14 +9,49 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - content: str - encoding: NotRequired[str] + message: str + tree: str + parents: NotRequired[list[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) +class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str + email: str + date: NotRequired[datetime] + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", + "ReposOwnerRepoGitCommitsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1081.py b/githubkit/versions/v2022_11_28/types/group_1081.py index 73106315f..aa4d83aff 100644 --- a/githubkit/versions/v2022_11_28/types/group_1081.py +++ b/githubkit/versions/v2022_11_28/types/group_1081.py @@ -9,49 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - message: str - tree: str - parents: NotRequired[list[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] + ref: str + sha: 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__ = ("ReposOwnerRepoGitRefsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1082.py b/githubkit/versions/v2022_11_28/types/group_1082.py index aa4d83aff..95219ce12 100644 --- a/githubkit/versions/v2022_11_28/types/group_1082.py +++ b/githubkit/versions/v2022_11_28/types/group_1082.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 ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - ref: str sha: str + force: NotRequired[bool] -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1083.py b/githubkit/versions/v2022_11_28/types/group_1083.py index 95219ce12..bf927c780 100644 --- a/githubkit/versions/v2022_11_28/types/group_1083.py +++ b/githubkit/versions/v2022_11_28/types/group_1083.py @@ -9,14 +9,33 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - sha: str - force: NotRequired[bool] + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) +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_1084.py b/githubkit/versions/v2022_11_28/types/group_1084.py index bf927c780..62d4e64ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_1084.py +++ b/githubkit/versions/v2022_11_28/types/group_1084.py @@ -9,33 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] + 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__ = ( - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", - "ReposOwnerRepoGitTagsPostBodyType", + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", + "ReposOwnerRepoGitTreesPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1085.py b/githubkit/versions/v2022_11_28/types/group_1085.py index 62d4e64ac..44bb98073 100644 --- a/githubkit/versions/v2022_11_28/types/group_1085.py +++ b/githubkit/versions/v2022_11_28/types/group_1085.py @@ -9,28 +9,32 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig - 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] + 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__ = ( - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", - "ReposOwnerRepoGitTreesPostBodyType", + "ReposOwnerRepoHooksPostBodyPropConfigType", + "ReposOwnerRepoHooksPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1086.py b/githubkit/versions/v2022_11_28/types/group_1086.py index 44bb98073..616829ef4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1086.py +++ b/githubkit/versions/v2022_11_28/types/group_1086.py @@ -9,32 +9,19 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0011 import WebhookConfigType -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] +class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: NotRequired[WebhookConfigType] events: NotRequired[list[str]] + add_events: NotRequired[list[str]] + remove_events: NotRequired[list[str]] active: NotRequired[bool] -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__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1087.py b/githubkit/versions/v2022_11_28/types/group_1087.py index 616829ef4..2de12ce93 100644 --- a/githubkit/versions/v2022_11_28/types/group_1087.py +++ b/githubkit/versions/v2022_11_28/types/group_1087.py @@ -9,19 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0011 import WebhookConfigType +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] - config: NotRequired[WebhookConfigType] - events: NotRequired[list[str]] - add_events: NotRequired[list[str]] - remove_events: NotRequired[list[str]] - active: NotRequired[bool] - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1088.py b/githubkit/versions/v2022_11_28/types/group_1088.py index 2de12ce93..02673d9bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1088.py +++ b/githubkit/versions/v2022_11_28/types/group_1088.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1089.py b/githubkit/versions/v2022_11_28/types/group_1089.py index 02673d9bf..5f68422b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1089.py +++ b/githubkit/versions/v2022_11_28/types/group_1089.py @@ -13,14 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] vcs_username: NotRequired[str] vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPutBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1090.py b/githubkit/versions/v2022_11_28/types/group_1090.py index 5f68422b7..f2dee5034 100644 --- a/githubkit/versions/v2022_11_28/types/group_1090.py +++ b/githubkit/versions/v2022_11_28/types/group_1090.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1091.py b/githubkit/versions/v2022_11_28/types/group_1091.py index f2dee5034..f8207f6ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_1091.py +++ b/githubkit/versions/v2022_11_28/types/group_1091.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 ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - email: NotRequired[str] - name: NotRequired[str] + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1092.py b/githubkit/versions/v2022_11_28/types/group_1092.py index f8207f6ea..ca60a7364 100644 --- a/githubkit/versions/v2022_11_28/types/group_1092.py +++ b/githubkit/versions/v2022_11_28/types/group_1092.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - use_lfs: Literal["opt_in", "opt_out"] - -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1093.py b/githubkit/versions/v2022_11_28/types/group_1093.py index ca60a7364..9285f63d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1093.py +++ b/githubkit/versions/v2022_11_28/types/group_1093.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1094.py b/githubkit/versions/v2022_11_28/types/group_1094.py index 9285f63d1..9bb94a509 100644 --- a/githubkit/versions/v2022_11_28/types/group_1094.py +++ b/githubkit/versions/v2022_11_28/types/group_1094.py @@ -9,14 +9,34 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] + title: Union[str, int] + body: NotRequired[str] + assignee: NotRequired[Union[str, None]] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] + ] + assignees: NotRequired[list[str]] + type: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) +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_1095.py b/githubkit/versions/v2022_11_28/types/group_1095.py index 9bb94a509..4b0c546c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1095.py +++ b/githubkit/versions/v2022_11_28/types/group_1095.py @@ -9,34 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - title: Union[str, int] - body: NotRequired[str] - assignee: NotRequired[Union[str, None]] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] - ] - assignees: NotRequired[list[str]] - type: NotRequired[Union[str, None]] + body: 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__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1096.py b/githubkit/versions/v2022_11_28/types/group_1096.py index 4b0c546c3..77f77960c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1096.py +++ b/githubkit/versions/v2022_11_28/types/group_1096.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1097.py b/githubkit/versions/v2022_11_28/types/group_1097.py index 77f77960c..0edea8a41 100644 --- a/githubkit/versions/v2022_11_28/types/group_1097.py +++ b/githubkit/versions/v2022_11_28/types/group_1097.py @@ -9,16 +9,42 @@ 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 ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + 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", "duplicate", "reopened"]] ] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + list[ + Union[ + str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type + ] + ] + ] + assignees: NotRequired[list[str]] + type: NotRequired[Union[str, None]] + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1098.py b/githubkit/versions/v2022_11_28/types/group_1098.py index 51b150f12..0f0f4ae84 100644 --- a/githubkit/versions/v2022_11_28/types/group_1098.py +++ b/githubkit/versions/v2022_11_28/types/group_1098.py @@ -9,42 +9,13 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" - - title: NotRequired[Union[str, int, None]] - body: NotRequired[Union[str, None]] - assignee: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - list[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[list[str]] - type: NotRequired[Union[str, None]] - +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] + assignees: NotRequired[list[str]] -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1099.py b/githubkit/versions/v2022_11_28/types/group_1099.py index 0f0f4ae84..2795b587e 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 NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" assignees: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1100.py b/githubkit/versions/v2022_11_28/types/group_1100.py index 2795b587e..2585a1e0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1100.py +++ b/githubkit/versions/v2022_11_28/types/group_1100.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - assignees: NotRequired[list[str]] + body: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1101.py b/githubkit/versions/v2022_11_28/types/group_1101.py index 2585a1e0c..8653eeddb 100644 --- a/githubkit/versions/v2022_11_28/types/group_1101.py +++ b/githubkit/versions/v2022_11_28/types/group_1101.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - body: str + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1102.py b/githubkit/versions/v2022_11_28/types/group_1102.py index 8653eeddb..28a5135d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1102.py +++ b/githubkit/versions/v2022_11_28/types/group_1102.py @@ -12,10 +12,21 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - labels: NotRequired[list[str]] + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1103.py b/githubkit/versions/v2022_11_28/types/group_1103.py index 28a5135d1..4b61c7722 100644 --- a/githubkit/versions/v2022_11_28/types/group_1103.py +++ b/githubkit/versions/v2022_11_28/types/group_1103.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" name: str -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1104.py b/githubkit/versions/v2022_11_28/types/group_1104.py index 4b61c7722..a0fe1957d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1104.py +++ b/githubkit/versions/v2022_11_28/types/group_1104.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: str + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1105.py b/githubkit/versions/v2022_11_28/types/group_1105.py index a0fe1957d..672fc26ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_1105.py +++ b/githubkit/versions/v2022_11_28/types/group_1105.py @@ -12,10 +12,21 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - labels: NotRequired[list[str]] + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1106.py b/githubkit/versions/v2022_11_28/types/group_1106.py index 672fc26ff..6872247a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1106.py +++ b/githubkit/versions/v2022_11_28/types/group_1106.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" name: str -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1107.py b/githubkit/versions/v2022_11_28/types/group_1107.py index 6872247a2..392d8c14f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1107.py +++ b/githubkit/versions/v2022_11_28/types/group_1107.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 ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - name: str + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1108.py b/githubkit/versions/v2022_11_28/types/group_1108.py index 392d8c14f..5d8ff2645 100644 --- a/githubkit/versions/v2022_11_28/types/group_1108.py +++ b/githubkit/versions/v2022_11_28/types/group_1108.py @@ -10,13 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1109.py b/githubkit/versions/v2022_11_28/types/group_1109.py index 5d8ff2645..6e796683c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1109.py +++ b/githubkit/versions/v2022_11_28/types/group_1109.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + sub_issue_id: int -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1110.py b/githubkit/versions/v2022_11_28/types/group_1110.py index 6e796683c..294d951b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1110.py +++ b/githubkit/versions/v2022_11_28/types/group_1110.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" sub_issue_id: int + replace_parent: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1111.py b/githubkit/versions/v2022_11_28/types/group_1111.py index 294d951b6..6ffa90a5b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1111.py +++ b/githubkit/versions/v2022_11_28/types/group_1111.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" sub_issue_id: int - replace_parent: NotRequired[bool] + after_id: NotRequired[int] + before_id: NotRequired[int] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1112.py b/githubkit/versions/v2022_11_28/types/group_1112.py index 6ffa90a5b..acb0bbfba 100644 --- a/githubkit/versions/v2022_11_28/types/group_1112.py +++ b/githubkit/versions/v2022_11_28/types/group_1112.py @@ -12,12 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - sub_issue_id: int - after_id: NotRequired[int] - before_id: NotRequired[int] + title: NotRequired[str] + key: str + read_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1113.py b/githubkit/versions/v2022_11_28/types/group_1113.py index acb0bbfba..7cc0b1b26 100644 --- a/githubkit/versions/v2022_11_28/types/group_1113.py +++ b/githubkit/versions/v2022_11_28/types/group_1113.py @@ -12,12 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + name: str + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1114.py b/githubkit/versions/v2022_11_28/types/group_1114.py index 7cc0b1b26..607085961 100644 --- a/githubkit/versions/v2022_11_28/types/group_1114.py +++ b/githubkit/versions/v2022_11_28/types/group_1114.py @@ -12,12 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" - name: str + new_name: NotRequired[str] color: NotRequired[str] description: NotRequired[str] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1115.py b/githubkit/versions/v2022_11_28/types/group_1115.py index 607085961..ac724c353 100644 --- a/githubkit/versions/v2022_11_28/types/group_1115.py +++ b/githubkit/versions/v2022_11_28/types/group_1115.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] + branch: str -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1116.py b/githubkit/versions/v2022_11_28/types/group_1116.py index ac724c353..f33bb6f09 100644 --- a/githubkit/versions/v2022_11_28/types/group_1116.py +++ b/githubkit/versions/v2022_11_28/types/group_1116.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" - branch: str + base: str + head: str + commit_message: NotRequired[str] -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1117.py b/githubkit/versions/v2022_11_28/types/group_1117.py index f33bb6f09..17d426f88 100644 --- a/githubkit/versions/v2022_11_28/types/group_1117.py +++ b/githubkit/versions/v2022_11_28/types/group_1117.py @@ -9,15 +9,18 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" - base: str - head: str - commit_message: NotRequired[str] + title: str + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1118.py b/githubkit/versions/v2022_11_28/types/group_1118.py index 17d426f88..1eaa2807a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1118.py +++ b/githubkit/versions/v2022_11_28/types/group_1118.py @@ -14,13 +14,13 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - title: str + title: NotRequired[str] state: NotRequired[Literal["open", "closed"]] description: NotRequired[str] due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1119.py b/githubkit/versions/v2022_11_28/types/group_1119.py index 1eaa2807a..c350dcdf7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1119.py +++ b/githubkit/versions/v2022_11_28/types/group_1119.py @@ -10,17 +10,13 @@ from __future__ import annotations from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + last_read_at: NotRequired[datetime] -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1120.py b/githubkit/versions/v2022_11_28/types/group_1120.py index c350dcdf7..7ab2c0401 100644 --- a/githubkit/versions/v2022_11_28/types/group_1120.py +++ b/githubkit/versions/v2022_11_28/types/group_1120.py @@ -9,14 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - last_read_at: NotRequired[datetime] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1121.py b/githubkit/versions/v2022_11_28/types/group_1121.py index 7ab2c0401..cd3deab02 100644 --- a/githubkit/versions/v2022_11_28/types/group_1121.py +++ b/githubkit/versions/v2022_11_28/types/group_1121.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - message: NotRequired[str] - url: NotRequired[str] + Update the source for the repository. Must include the branch name and path. + """ + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1122.py b/githubkit/versions/v2022_11_28/types/group_1122.py index cd3deab02..7b94da45f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1122.py +++ b/githubkit/versions/v2022_11_28/types/group_1122.py @@ -9,18 +9,24 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - Update the source for the repository. Must include the branch name and path. - """ +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" - branch: str - path: Literal["/", "/docs"] + 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__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1123.py b/githubkit/versions/v2022_11_28/types/group_1123.py index c2eb9e9f6..4912773c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1123.py +++ b/githubkit/versions/v2022_11_28/types/group_1123.py @@ -12,21 +12,19 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" cname: NotRequired[Union[str, None]] https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1124.py b/githubkit/versions/v2022_11_28/types/group_1124.py index 87bed2fb8..ccbd1cc27 100644 --- a/githubkit/versions/v2022_11_28/types/group_1124.py +++ b/githubkit/versions/v2022_11_28/types/group_1124.py @@ -12,19 +12,21 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" - cname: NotRequired[Union[str, None]] + cname: Union[str, None] https_enforced: NotRequired[bool] build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1125.py b/githubkit/versions/v2022_11_28/types/group_1125.py index b93ee3ed9..240efc868 100644 --- a/githubkit/versions/v2022_11_28/types/group_1125.py +++ b/githubkit/versions/v2022_11_28/types/group_1125.py @@ -12,13 +12,13 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" - cname: Union[str, None] + cname: NotRequired[Union[str, None]] https_enforced: NotRequired[bool] build_type: NotRequired[Literal["legacy", "workflow"]] source: NotRequired[ @@ -29,4 +29,4 @@ class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1126.py b/githubkit/versions/v2022_11_28/types/group_1126.py index d40a1f0d7..479070c3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1126.py +++ b/githubkit/versions/v2022_11_28/types/group_1126.py @@ -12,14 +12,14 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1121 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] + https_enforced: bool build_type: NotRequired[Literal["legacy", "workflow"]] source: NotRequired[ Union[ @@ -29,4 +29,4 @@ class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1127.py b/githubkit/versions/v2022_11_28/types/group_1127.py index 7abce9ac9..1f79f8c8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1127.py +++ b/githubkit/versions/v2022_11_28/types/group_1127.py @@ -9,24 +9,18 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1122 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" + The source branch and directory used to publish your Pages site. + """ - cname: NotRequired[Union[str, None]] - https_enforced: bool - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1128.py b/githubkit/versions/v2022_11_28/types/group_1128.py index 1f79f8c8a..524af8b2c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1128.py +++ b/githubkit/versions/v2022_11_28/types/group_1128.py @@ -12,15 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1127 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" - branch: str - path: NotRequired[Literal["/", "/docs"]] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1129.py b/githubkit/versions/v2022_11_28/types/group_1129.py index 96fbb7f4c..6a6daa746 100644 --- a/githubkit/versions/v2022_11_28/types/group_1129.py +++ b/githubkit/versions/v2022_11_28/types/group_1129.py @@ -12,14 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1128 import ReposOwnerRepoPagesPostBodyPropSourceType +from .group_1127 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1130.py b/githubkit/versions/v2022_11_28/types/group_1130.py index d1474436e..4bdb60454 100644 --- a/githubkit/versions/v2022_11_28/types/group_1130.py +++ b/githubkit/versions/v2022_11_28/types/group_1130.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1128 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" + The object used to create GitHub Pages deployment + """ - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] + artifact_id: NotRequired[float] + artifact_url: NotRequired[str] + environment: NotRequired[str] + pages_build_version: str + oidc_token: str -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1131.py b/githubkit/versions/v2022_11_28/types/group_1131.py index 4bdb60454..c22c267f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1131.py +++ b/githubkit/versions/v2022_11_28/types/group_1131.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - The object used to create GitHub Pages deployment - """ + enabled: bool - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1132.py b/githubkit/versions/v2022_11_28/types/group_1132.py index c22c267f3..5d8355086 100644 --- a/githubkit/versions/v2022_11_28/types/group_1132.py +++ b/githubkit/versions/v2022_11_28/types/group_1132.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" - enabled: bool + name: str + body: NotRequired[str] -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1133.py b/githubkit/versions/v2022_11_28/types/group_1133.py index 5d8355086..d83383574 100644 --- a/githubkit/versions/v2022_11_28/types/group_1133.py +++ b/githubkit/versions/v2022_11_28/types/group_1133.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0123 import CustomPropertyValueType -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" - name: str - body: NotRequired[str] +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: list[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1134.py b/githubkit/versions/v2022_11_28/types/group_1134.py index 3976d0691..8e9e41f56 100644 --- a/githubkit/versions/v2022_11_28/types/group_1134.py +++ b/githubkit/versions/v2022_11_28/types/group_1134.py @@ -9,15 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0121 import CustomPropertyValueType +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" + 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] - properties: list[CustomPropertyValueType] - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1135.py b/githubkit/versions/v2022_11_28/types/group_1135.py index 8e9e41f56..160987b13 100644 --- a/githubkit/versions/v2022_11_28/types/group_1135.py +++ b/githubkit/versions/v2022_11_28/types/group_1135.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 ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - 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] + body: str -__all__ = ("ReposOwnerRepoPullsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1136.py b/githubkit/versions/v2022_11_28/types/group_1136.py index 160987b13..4dc9e5008 100644 --- a/githubkit/versions/v2022_11_28/types/group_1136.py +++ b/githubkit/versions/v2022_11_28/types/group_1136.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1137.py b/githubkit/versions/v2022_11_28/types/group_1137.py index 4dc9e5008..1bb472545 100644 --- a/githubkit/versions/v2022_11_28/types/group_1137.py +++ b/githubkit/versions/v2022_11_28/types/group_1137.py @@ -10,15 +10,17 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1138.py b/githubkit/versions/v2022_11_28/types/group_1138.py index 1bb472545..b0eda78e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1138.py +++ b/githubkit/versions/v2022_11_28/types/group_1138.py @@ -13,14 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" - - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" + + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] + + +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1139.py b/githubkit/versions/v2022_11_28/types/group_1139.py index b0eda78e6..f15be5df1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1139.py +++ b/githubkit/versions/v2022_11_28/types/group_1139.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] - - -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) +class 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_1140.py b/githubkit/versions/v2022_11_28/types/group_1140.py index f15be5df1..fdc9c5a0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1140.py +++ b/githubkit/versions/v2022_11_28/types/group_1140.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" 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",) + + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1141.py b/githubkit/versions/v2022_11_28/types/group_1141.py index fdc9c5a0e..743310547 100644 --- a/githubkit/versions/v2022_11_28/types/group_1141.py +++ b/githubkit/versions/v2022_11_28/types/group_1141.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 ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - body: str + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1142.py b/githubkit/versions/v2022_11_28/types/group_1142.py index 743310547..797f629f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1142.py +++ b/githubkit/versions/v2022_11_28/types/group_1142.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1143.py b/githubkit/versions/v2022_11_28/types/group_1143.py index 797f629f0..8525d9950 100644 --- a/githubkit/versions/v2022_11_28/types/group_1143.py +++ b/githubkit/versions/v2022_11_28/types/group_1143.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" message: NotRequired[str] documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1144.py b/githubkit/versions/v2022_11_28/types/group_1144.py index 8525d9950..c92fe8585 100644 --- a/githubkit/versions/v2022_11_28/types/group_1144.py +++ b/githubkit/versions/v2022_11_28/types/group_1144.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - message: NotRequired[str] - documentation_url: NotRequired[str] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1145.py b/githubkit/versions/v2022_11_28/types/group_1145.py index c92fe8585..e461ce1cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1145.py +++ b/githubkit/versions/v2022_11_28/types/group_1145.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + reviewers: NotRequired[list[str]] + team_reviewers: list[str] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1146.py b/githubkit/versions/v2022_11_28/types/group_1146.py index e461ce1cf..43201ae1f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1146.py +++ b/githubkit/versions/v2022_11_28/types/group_1146.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - reviewers: NotRequired[list[str]] - team_reviewers: list[str] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1147.py b/githubkit/versions/v2022_11_28/types/group_1147.py index 43201ae1f..bf17592a6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1147.py +++ b/githubkit/versions/v2022_11_28/types/group_1147.py @@ -9,14 +9,34 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + commit_id: NotRequired[str] + body: NotRequired[str] + event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] + comments: NotRequired[ + list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) +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_1148.py b/githubkit/versions/v2022_11_28/types/group_1148.py index bf17592a6..05cccf0c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1148.py +++ b/githubkit/versions/v2022_11_28/types/group_1148.py @@ -9,34 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str - position: NotRequired[int] body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1149.py b/githubkit/versions/v2022_11_28/types/group_1149.py index 05cccf0c0..412543923 100644 --- a/githubkit/versions/v2022_11_28/types/group_1149.py +++ b/githubkit/versions/v2022_11_28/types/group_1149.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 ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - body: str + message: str + event: NotRequired[Literal["DISMISS"]] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1150.py b/githubkit/versions/v2022_11_28/types/group_1150.py index 412543923..d03c573ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_1150.py +++ b/githubkit/versions/v2022_11_28/types/group_1150.py @@ -13,11 +13,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - message: str - event: NotRequired[Literal["DISMISS"]] + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1151.py b/githubkit/versions/v2022_11_28/types/group_1151.py index d03c573ae..c102fe4d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1151.py +++ b/githubkit/versions/v2022_11_28/types/group_1151.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] + expected_head_sha: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1152.py b/githubkit/versions/v2022_11_28/types/group_1152.py index c102fe4d6..e633d70f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1152.py +++ b/githubkit/versions/v2022_11_28/types/group_1152.py @@ -12,10 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - expected_head_sha: NotRequired[str] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1153.py b/githubkit/versions/v2022_11_28/types/group_1153.py index e633d70f9..4065bba0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1153.py +++ b/githubkit/versions/v2022_11_28/types/group_1153.py @@ -9,14 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - message: NotRequired[str] - url: 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__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1154.py b/githubkit/versions/v2022_11_28/types/group_1154.py index 4065bba0c..0ddd0a8bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1154.py +++ b/githubkit/versions/v2022_11_28/types/group_1154.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - 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"]] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1155.py b/githubkit/versions/v2022_11_28/types/group_1155.py index 0ddd0a8bf..2f21e468e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1155.py +++ b/githubkit/versions/v2022_11_28/types/group_1155.py @@ -12,12 +12,13 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1156.py b/githubkit/versions/v2022_11_28/types/group_1156.py index 2f21e468e..2300351d5 100644 --- a/githubkit/versions/v2022_11_28/types/group_1156.py +++ b/githubkit/versions/v2022_11_28/types/group_1156.py @@ -9,16 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - tag_name: str + tag_name: NotRequired[str] target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: 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__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1157.py b/githubkit/versions/v2022_11_28/types/group_1157.py index 2300351d5..d85bf8d37 100644 --- a/githubkit/versions/v2022_11_28/types/group_1157.py +++ b/githubkit/versions/v2022_11_28/types/group_1157.py @@ -10,20 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - 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] + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1158.py b/githubkit/versions/v2022_11_28/types/group_1158.py index d85bf8d37..087977996 100644 --- a/githubkit/versions/v2022_11_28/types/group_1158.py +++ b/githubkit/versions/v2022_11_28/types/group_1158.py @@ -9,14 +9,71 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0127 import RepositoryRulesetBypassActorType +from .group_0128 import RepositoryRulesetConditionsType +from .group_0139 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0140 import RepositoryRuleUpdateType +from .group_0142 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleMergeQueueType +from .group_0145 import RepositoryRuleRequiredDeploymentsType +from .group_0148 import RepositoryRulePullRequestType +from .group_0150 import RepositoryRuleRequiredStatusChecksType +from .group_0152 import RepositoryRuleCommitMessagePatternType +from .group_0154 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0156 import RepositoryRuleCommitterEmailPatternType +from .group_0158 import RepositoryRuleBranchNamePatternType +from .group_0160 import RepositoryRuleTagNamePatternType +from .group_0162 import RepositoryRuleFilePathRestrictionType +from .group_0164 import RepositoryRuleMaxFilePathLengthType +from .group_0166 import RepositoryRuleFileExtensionRestrictionType +from .group_0168 import RepositoryRuleMaxFileSizeType +from .group_0171 import RepositoryRuleWorkflowsType +from .group_0173 import RepositoryRuleCodeScanningType -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) + +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1159.py b/githubkit/versions/v2022_11_28/types/group_1159.py index 60ec9fb54..9ec994ce2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1159.py +++ b/githubkit/versions/v2022_11_28/types/group_1159.py @@ -12,39 +12,39 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0125 import RepositoryRulesetBypassActorType -from .group_0126 import RepositoryRulesetConditionsType -from .group_0137 import ( +from .group_0127 import RepositoryRulesetBypassActorType +from .group_0128 import RepositoryRulesetConditionsType +from .group_0139 import ( RepositoryRuleCreationType, RepositoryRuleDeletionType, RepositoryRuleNonFastForwardType, RepositoryRuleRequiredSignaturesType, ) -from .group_0138 import RepositoryRuleUpdateType -from .group_0140 import RepositoryRuleRequiredLinearHistoryType -from .group_0141 import RepositoryRuleMergeQueueType -from .group_0143 import RepositoryRuleRequiredDeploymentsType -from .group_0146 import RepositoryRulePullRequestType -from .group_0148 import RepositoryRuleRequiredStatusChecksType -from .group_0150 import RepositoryRuleCommitMessagePatternType -from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0154 import RepositoryRuleCommitterEmailPatternType -from .group_0156 import RepositoryRuleBranchNamePatternType -from .group_0158 import RepositoryRuleTagNamePatternType -from .group_0160 import RepositoryRuleFilePathRestrictionType -from .group_0162 import RepositoryRuleMaxFilePathLengthType -from .group_0164 import RepositoryRuleFileExtensionRestrictionType -from .group_0166 import RepositoryRuleMaxFileSizeType -from .group_0169 import RepositoryRuleWorkflowsType -from .group_0171 import RepositoryRuleCodeScanningType +from .group_0140 import RepositoryRuleUpdateType +from .group_0142 import RepositoryRuleRequiredLinearHistoryType +from .group_0143 import RepositoryRuleMergeQueueType +from .group_0145 import RepositoryRuleRequiredDeploymentsType +from .group_0148 import RepositoryRulePullRequestType +from .group_0150 import RepositoryRuleRequiredStatusChecksType +from .group_0152 import RepositoryRuleCommitMessagePatternType +from .group_0154 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0156 import RepositoryRuleCommitterEmailPatternType +from .group_0158 import RepositoryRuleBranchNamePatternType +from .group_0160 import RepositoryRuleTagNamePatternType +from .group_0162 import RepositoryRuleFilePathRestrictionType +from .group_0164 import RepositoryRuleMaxFilePathLengthType +from .group_0166 import RepositoryRuleFileExtensionRestrictionType +from .group_0168 import RepositoryRuleMaxFileSizeType +from .group_0171 import RepositoryRuleWorkflowsType +from .group_0173 import RepositoryRuleCodeScanningType -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" - name: str + name: NotRequired[str] target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] conditions: NotRequired[RepositoryRulesetConditionsType] rules: NotRequired[ @@ -76,4 +76,4 @@ class ReposOwnerRepoRulesetsPostBodyType(TypedDict): ] -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1160.py b/githubkit/versions/v2022_11_28/types/group_1160.py index cd47c5932..a4f75ebc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1160.py +++ b/githubkit/versions/v2022_11_28/types/group_1160.py @@ -12,68 +12,15 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0125 import RepositoryRulesetBypassActorType -from .group_0126 import RepositoryRulesetConditionsType -from .group_0137 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0138 import RepositoryRuleUpdateType -from .group_0140 import RepositoryRuleRequiredLinearHistoryType -from .group_0141 import RepositoryRuleMergeQueueType -from .group_0143 import RepositoryRuleRequiredDeploymentsType -from .group_0146 import RepositoryRulePullRequestType -from .group_0148 import RepositoryRuleRequiredStatusChecksType -from .group_0150 import RepositoryRuleCommitMessagePatternType -from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0154 import RepositoryRuleCommitterEmailPatternType -from .group_0156 import RepositoryRuleBranchNamePatternType -from .group_0158 import RepositoryRuleTagNamePatternType -from .group_0160 import RepositoryRuleFilePathRestrictionType -from .group_0162 import RepositoryRuleMaxFilePathLengthType -from .group_0164 import RepositoryRuleFileExtensionRestrictionType -from .group_0166 import RepositoryRuleMaxFileSizeType -from .group_0169 import RepositoryRuleWorkflowsType -from .group_0171 import RepositoryRuleCodeScanningType +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] + resolution_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1161.py b/githubkit/versions/v2022_11_28/types/group_1161.py index a4f75ebc8..ca4fd9976 100644 --- a/githubkit/versions/v2022_11_28/types/group_1161.py +++ b/githubkit/versions/v2022_11_28/types/group_1161.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] + placeholder_id: str -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1162.py b/githubkit/versions/v2022_11_28/types/group_1162.py index ca4fd9976..f5eb2b08d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1162.py +++ b/githubkit/versions/v2022_11_28/types/group_1162.py @@ -9,15 +9,17 @@ 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 ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] - placeholder_id: str + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1163.py b/githubkit/versions/v2022_11_28/types/group_1163.py index f5eb2b08d..bf3b98dcb 100644 --- a/githubkit/versions/v2022_11_28/types/group_1163.py +++ b/githubkit/versions/v2022_11_28/types/group_1163.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 ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1164.py b/githubkit/versions/v2022_11_28/types/group_1164.py index bf3b98dcb..492fdc91e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1164.py +++ b/githubkit/versions/v2022_11_28/types/group_1164.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 ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + pattern: str -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1165.py b/githubkit/versions/v2022_11_28/types/group_1165.py index 492fdc91e..f6f94cfa4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1165.py +++ b/githubkit/versions/v2022_11_28/types/group_1165.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - pattern: str + names: list[str] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1166.py b/githubkit/versions/v2022_11_28/types/group_1166.py index f6f94cfa4..4f00c0f54 100644 --- a/githubkit/versions/v2022_11_28/types/group_1166.py +++ b/githubkit/versions/v2022_11_28/types/group_1166.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - names: list[str] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[list[int]] -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1167.py b/githubkit/versions/v2022_11_28/types/group_1167.py index 4f00c0f54..f8f62bc0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1167.py +++ b/githubkit/versions/v2022_11_28/types/group_1167.py @@ -12,12 +12,14 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[list[int]] + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] -__all__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1168.py b/githubkit/versions/v2022_11_28/types/group_1168.py index f8f62bc0c..6accad501 100644 --- a/githubkit/versions/v2022_11_28/types/group_1168.py +++ b/githubkit/versions/v2022_11_28/types/group_1168.py @@ -9,17 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" - owner: NotRequired[str] name: str description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + 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__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1169.py b/githubkit/versions/v2022_11_28/types/group_1169.py index 6accad501..5fc734f17 100644 --- a/githubkit/versions/v2022_11_28/types/group_1169.py +++ b/githubkit/versions/v2022_11_28/types/group_1169.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - 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]] + title: str + body: str + private: NotRequired[bool] -__all__ = ("TeamsTeamIdPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1170.py b/githubkit/versions/v2022_11_28/types/group_1170.py index 5fc734f17..97be26f9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1170.py +++ b/githubkit/versions/v2022_11_28/types/group_1170.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - title: str - body: str - private: NotRequired[bool] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1171.py b/githubkit/versions/v2022_11_28/types/group_1171.py index 97be26f9a..49b6126e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1171.py +++ b/githubkit/versions/v2022_11_28/types/group_1171.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + body: str -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1172.py b/githubkit/versions/v2022_11_28/types/group_1172.py index 49b6126e3..aba26488a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1172.py +++ b/githubkit/versions/v2022_11_28/types/group_1172.py @@ -12,10 +12,12 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" body: str -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1173.py b/githubkit/versions/v2022_11_28/types/group_1173.py index aba26488a..ea06c9bbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1173.py +++ b/githubkit/versions/v2022_11_28/types/group_1173.py @@ -9,15 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( TypedDict ): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - body: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1174.py b/githubkit/versions/v2022_11_28/types/group_1174.py index ea06c9bbf..02edb1cc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1174.py +++ b/githubkit/versions/v2022_11_28/types/group_1174.py @@ -13,16 +13,12 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1175.py b/githubkit/versions/v2022_11_28/types/group_1175.py index 02edb1cc8..4c1b9ea73 100644 --- a/githubkit/versions/v2022_11_28/types/group_1175.py +++ b/githubkit/versions/v2022_11_28/types/group_1175.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1176.py b/githubkit/versions/v2022_11_28/types/group_1176.py index 4c1b9ea73..0fc6bc372 100644 --- a/githubkit/versions/v2022_11_28/types/group_1176.py +++ b/githubkit/versions/v2022_11_28/types/group_1176.py @@ -13,10 +13,10 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" - role: NotRequired[Literal["member", "maintainer"]] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1177.py b/githubkit/versions/v2022_11_28/types/group_1177.py index 0fc6bc372..27e574fd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1177.py +++ b/githubkit/versions/v2022_11_28/types/group_1177.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - permission: NotRequired[Literal["read", "write", "admin"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1178.py b/githubkit/versions/v2022_11_28/types/group_1178.py index 27e574fd9..218231963 100644 --- a/githubkit/versions/v2022_11_28/types/group_1178.py +++ b/githubkit/versions/v2022_11_28/types/group_1178.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + permission: NotRequired[Literal["pull", "push", "admin"]] -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1179.py b/githubkit/versions/v2022_11_28/types/group_1179.py index 218231963..0cc0c51fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_1179.py +++ b/githubkit/versions/v2022_11_28/types/group_1179.py @@ -9,14 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class UserPatchBodyType(TypedDict): + """UserPatchBody""" - permission: NotRequired[Literal["pull", "push", "admin"]] + 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__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1180.py b/githubkit/versions/v2022_11_28/types/group_1180.py index 0cc0c51fd..3fd87de07 100644 --- a/githubkit/versions/v2022_11_28/types/group_1180.py +++ b/githubkit/versions/v2022_11_28/types/group_1180.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0093 import CodespaceType -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] +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("UserPatchBodyType",) + +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1181.py b/githubkit/versions/v2022_11_28/types/group_1181.py index 6659b913f..ca44ecf9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1181.py +++ b/githubkit/versions/v2022_11_28/types/group_1181.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_0091 import CodespaceType +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" + 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] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1182.py b/githubkit/versions/v2022_11_28/types/group_1182.py index ca44ecf9e..ad32a685a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1182.py +++ b/githubkit/versions/v2022_11_28/types/group_1182.py @@ -13,21 +13,29 @@ from typing_extensions import NotRequired, TypedDict -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - repository_id: int - ref: NotRequired[str] + pull_request: UserCodespacesPostBodyOneof1PropPullRequestType 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",) +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_1183.py b/githubkit/versions/v2022_11_28/types/group_1183.py index ad32a685a..1e27e71b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1183.py +++ b/githubkit/versions/v2022_11_28/types/group_1183.py @@ -9,33 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - 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] + total_count: int + secrets: list[CodespacesSecretType] -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest +class CodespacesSecretType(TypedDict): + """Codespaces Secret - Pull request number for this codespace + Secrets for a GitHub Codespace. """ - pull_request_number: int - repository_id: int + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str __all__ = ( - "UserCodespacesPostBodyOneof1PropPullRequestType", - "UserCodespacesPostBodyOneof1Type", + "CodespacesSecretType", + "UserCodespacesSecretsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1184.py b/githubkit/versions/v2022_11_28/types/group_1184.py index 1e27e71b8..6ec0707c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1184.py +++ b/githubkit/versions/v2022_11_28/types/group_1184.py @@ -9,32 +9,16 @@ 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 UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" - total_count: int - secrets: list[CodespacesSecretType] + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[list[Union[int, str]]] -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__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1185.py b/githubkit/versions/v2022_11_28/types/group_1185.py index 6ec0707c1..be27489dc 100644 --- a/githubkit/versions/v2022_11_28/types/group_1185.py +++ b/githubkit/versions/v2022_11_28/types/group_1185.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0063 import MinimalRepositoryType -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[list[Union[int, str]]] +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1186.py b/githubkit/versions/v2022_11_28/types/group_1186.py index d62740f9b..69b6c64de 100644 --- a/githubkit/versions/v2022_11_28/types/group_1186.py +++ b/githubkit/versions/v2022_11_28/types/group_1186.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0061 import MinimalRepositoryType +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1187.py b/githubkit/versions/v2022_11_28/types/group_1187.py index 69b6c64de..73deadc8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1187.py +++ b/githubkit/versions/v2022_11_28/types/group_1187.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 UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" - selected_repository_ids: list[int] + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[list[str]] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1188.py b/githubkit/versions/v2022_11_28/types/group_1188.py index 73deadc8f..d4c648011 100644 --- a/githubkit/versions/v2022_11_28/types/group_1188.py +++ b/githubkit/versions/v2022_11_28/types/group_1188.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0092 import CodespaceMachineType -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[list[str]] +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int + machines: list[CodespaceMachineType] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1189.py b/githubkit/versions/v2022_11_28/types/group_1189.py index 8e998edbf..90f680aa4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1189.py +++ b/githubkit/versions/v2022_11_28/types/group_1189.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0090 import CodespaceMachineType +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + name: NotRequired[str] + private: NotRequired[bool] - total_count: int - machines: list[CodespaceMachineType] - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1190.py b/githubkit/versions/v2022_11_28/types/group_1190.py index 90f680aa4..741f85377 100644 --- a/githubkit/versions/v2022_11_28/types/group_1190.py +++ b/githubkit/versions/v2022_11_28/types/group_1190.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 UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" - name: NotRequired[str] - private: NotRequired[bool] + visibility: Literal["public", "private"] -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1191.py b/githubkit/versions/v2022_11_28/types/group_1191.py index 741f85377..fa445ed2c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1191.py +++ b/githubkit/versions/v2022_11_28/types/group_1191.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 - visibility: Literal["public", "private"] + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + emails: list[str] -__all__ = ("UserEmailVisibilityPatchBodyType",) + +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1192.py b/githubkit/versions/v2022_11_28/types/group_1192.py index fa445ed2c..85a754f60 100644 --- a/githubkit/versions/v2022_11_28/types/group_1192.py +++ b/githubkit/versions/v2022_11_28/types/group_1192.py @@ -12,8 +12,13 @@ from typing_extensions import TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +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']} @@ -22,4 +27,4 @@ class UserEmailsPostBodyOneof0Type(TypedDict): emails: list[str] -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1193.py b/githubkit/versions/v2022_11_28/types/group_1193.py index 85a754f60..bef46dc62 100644 --- a/githubkit/versions/v2022_11_28/types/group_1193.py +++ b/githubkit/versions/v2022_11_28/types/group_1193.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" - 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. + name: NotRequired[str] + armored_public_key: str - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - emails: list[str] - - -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1194.py b/githubkit/versions/v2022_11_28/types/group_1194.py index bef46dc62..069eb3383 100644 --- a/githubkit/versions/v2022_11_28/types/group_1194.py +++ b/githubkit/versions/v2022_11_28/types/group_1194.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0018 import InstallationType -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" - name: NotRequired[str] - armored_public_key: str +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" + total_count: int + installations: list[InstallationType] -__all__ = ("UserGpgKeysPostBodyType",) + +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1195.py b/githubkit/versions/v2022_11_28/types/group_1195.py index 069eb3383..8e85a1d81 100644 --- a/githubkit/versions/v2022_11_28/types/group_1195.py +++ b/githubkit/versions/v2022_11_28/types/group_1195.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0018 import InstallationType +from .group_0020 import RepositoryType -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" total_count: int - installations: list[InstallationType] + repository_selection: NotRequired[str] + repositories: list[RepositoryType] -__all__ = ("UserInstallationsGetResponse200Type",) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1196.py b/githubkit/versions/v2022_11_28/types/group_1196.py index 8e85a1d81..9f9dd053b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1196.py +++ b/githubkit/versions/v2022_11_28/types/group_1196.py @@ -9,17 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0020 import RepositoryType +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" - total_count: int - repository_selection: NotRequired[str] - repositories: list[RepositoryType] - - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1197.py b/githubkit/versions/v2022_11_28/types/group_1197.py index 9f9dd053b..5ec08a5e0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1197.py +++ b/githubkit/versions/v2022_11_28/types/group_1197.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" + title: NotRequired[str] + key: str -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1198.py b/githubkit/versions/v2022_11_28/types/group_1198.py index 5ec08a5e0..718052573 100644 --- a/githubkit/versions/v2022_11_28/types/group_1198.py +++ b/githubkit/versions/v2022_11_28/types/group_1198.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 UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" - title: NotRequired[str] - key: str + state: Literal["active"] -__all__ = ("UserKeysPostBodyType",) +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1199.py b/githubkit/versions/v2022_11_28/types/group_1199.py index 718052573..586d41155 100644 --- a/githubkit/versions/v2022_11_28/types/group_1199.py +++ b/githubkit/versions/v2022_11_28/types/group_1199.py @@ -10,13 +10,21 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" - state: Literal["active"] + 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__ = ("UserMembershipsOrgsOrgPatchBodyType",) +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1200.py b/githubkit/versions/v2022_11_28/types/group_1200.py index 586d41155..6393094b2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1200.py +++ b/githubkit/versions/v2022_11_28/types/group_1200.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[list[Literal["repositories"]]] - repositories: list[str] + name: str + body: NotRequired[Union[str, None]] -__all__ = ("UserMigrationsPostBodyType",) +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1201.py b/githubkit/versions/v2022_11_28/types/group_1201.py index 6393094b2..354d7b410 100644 --- a/githubkit/versions/v2022_11_28/types/group_1201.py +++ b/githubkit/versions/v2022_11_28/types/group_1201.py @@ -9,15 +9,38 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" name: str - body: NotRequired[Union[str, None]] - - -__all__ = ("UserProjectsPostBodyType",) + 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_1202.py b/githubkit/versions/v2022_11_28/types/group_1202.py index 354d7b410..7c5bf8edc 100644 --- a/githubkit/versions/v2022_11_28/types/group_1202.py +++ b/githubkit/versions/v2022_11_28/types/group_1202.py @@ -9,38 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict - - -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - - -__all__ = ("UserReposPostBodyType",) +from typing_extensions import TypedDict + + +class 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_1203.py b/githubkit/versions/v2022_11_28/types/group_1203.py index 7c5bf8edc..5e8ecaf24 100644 --- a/githubkit/versions/v2022_11_28/types/group_1203.py +++ b/githubkit/versions/v2022_11_28/types/group_1203.py @@ -12,8 +12,8 @@ from typing_extensions import TypedDict -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody Examples: {'account_urls': ['https://www.linkedin.com/company/github/', @@ -23,4 +23,4 @@ class UserSocialAccountsPostBodyType(TypedDict): account_urls: list[str] -__all__ = ("UserSocialAccountsPostBodyType",) +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1204.py b/githubkit/versions/v2022_11_28/types/group_1204.py index 5e8ecaf24..712df953e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1204.py +++ b/githubkit/versions/v2022_11_28/types/group_1204.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ + title: NotRequired[str] + key: str - account_urls: list[str] - -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1205.py b/githubkit/versions/v2022_11_28/types/group_1205.py index 712df953e..2ab7931f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1205.py +++ b/githubkit/versions/v2022_11_28/types/group_1205.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" +class UsersUsernameAttestationsBulkListPostBodyType(TypedDict): + """UsersUsernameAttestationsBulkListPostBody""" - title: NotRequired[str] - key: str + subject_digests: list[str] + predicate_type: NotRequired[str] -__all__ = ("UserSshSigningKeysPostBodyType",) +__all__ = ("UsersUsernameAttestationsBulkListPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1206.py b/githubkit/versions/v2022_11_28/types/group_1206.py index 2ab7931f2..322969d86 100644 --- a/githubkit/versions/v2022_11_28/types/group_1206.py +++ b/githubkit/versions/v2022_11_28/types/group_1206.py @@ -9,14 +9,44 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class UsersUsernameAttestationsBulkListPostBodyType(TypedDict): - """UsersUsernameAttestationsBulkListPostBody""" +class UsersUsernameAttestationsBulkListPostResponse200Type(TypedDict): + """UsersUsernameAttestationsBulkListPostResponse200""" - subject_digests: list[str] - predicate_type: NotRequired[str] + attestations_subject_digests: NotRequired[ + UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType + ] + page_info: NotRequired[ + UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType + ] -__all__ = ("UsersUsernameAttestationsBulkListPostBodyType",) +UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + +Mapping of subject digest to bundles. +""" + + +class UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): + """UsersUsernameAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: NotRequired[bool] + has_previous: NotRequired[bool] + next_: NotRequired[str] + previous: NotRequired[str] + + +__all__ = ( + "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", + "UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType", + "UsersUsernameAttestationsBulkListPostResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1207.py b/githubkit/versions/v2022_11_28/types/group_1207.py index 322969d86..5145f707c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1207.py +++ b/githubkit/versions/v2022_11_28/types/group_1207.py @@ -9,44 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class UsersUsernameAttestationsBulkListPostResponse200Type(TypedDict): - """UsersUsernameAttestationsBulkListPostResponse200""" +class UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" - attestations_subject_digests: NotRequired[ - UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType - ] - page_info: NotRequired[ - UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType - ] + subject_digests: list[str] -UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigests - -Mapping of subject digest to bundles. -""" - - -class UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): - """UsersUsernameAttestationsBulkListPostResponse200PropPageInfo - - Information about the current page. - """ - - has_next: NotRequired[bool] - has_previous: NotRequired[bool] - next_: NotRequired[str] - previous: NotRequired[str] - - -__all__ = ( - "UsersUsernameAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", - "UsersUsernameAttestationsBulkListPostResponse200PropPageInfoType", - "UsersUsernameAttestationsBulkListPostResponse200Type", -) +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1208.py b/githubkit/versions/v2022_11_28/types/group_1208.py index 5145f707c..913848fca 100644 --- a/githubkit/versions/v2022_11_28/types/group_1208.py +++ b/githubkit/versions/v2022_11_28/types/group_1208.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): - """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" +class UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" - subject_digests: list[str] + attestation_ids: list[int] -__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",) +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1209.py b/githubkit/versions/v2022_11_28/types/group_1209.py index 913848fca..86ef1dfd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1209.py +++ b/githubkit/versions/v2022_11_28/types/group_1209.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 UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): - """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" - attestation_ids: list[int] + attestations: NotRequired[ + list[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] -__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",) +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun +dlePropVerificationMaterial +""" + + +UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun +dlePropDsseEnvelope +""" + + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1210.py b/githubkit/versions/v2022_11_28/types/group_1210.py deleted file mode 100644 index 86ef1dfd9..000000000 --- a/githubkit/versions/v2022_11_28/types/group_1210.py +++ /dev/null @@ -1,81 +0,0 @@ -"""DO NOT EDIT THIS FILE! - -This file is automatically @generated by githubkit using the follow command: - -bash ./scripts/run-codegen.sh - -See https://github.com/github/rest-api-description for more information. -""" - -from __future__ import annotations - -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict - - -class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - - attestations: NotRequired[ - list[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun -dlePropVerificationMaterial -""" - - -UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun -dlePropDsseEnvelope -""" - - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "UsersUsernameAttestationsSubjectDigestGetResponse200Type", -) From 9f9d3b15ec52245b165504ab03173e4c2b4a7507 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Sat, 26 Jul 2025 17:56:08 +0800 Subject: [PATCH 2/3] :sparkles: Feature: add lock file for codegen (#231) --- codegen/__init__.py | 20 ++-- codegen/config.py | 73 ++++++++++++++- codegen/source.py | 51 ++++++++--- githubkit/versions/versions.lock | 151 +++++++++++++++++++++++++++++++ poetry.lock | 18 +++- pyproject.toml | 6 +- 6 files changed, 287 insertions(+), 32 deletions(-) create mode 100644 githubkit/versions/versions.lock diff --git a/codegen/__init__.py b/codegen/__init__.py index a912b33b2..3c1a685f4 100644 --- a/codegen/__init__.py +++ b/codegen/__init__.py @@ -1,10 +1,9 @@ from pathlib import Path import shutil -import sys from typing import Any -import httpx from jinja2 import Environment, PackageLoader +import tomlkit from .config import Config from .log import logger as logger @@ -21,10 +20,7 @@ from .parser.schemas import UnionSchema from .source import get_source -if sys.version_info >= (3, 11): - import tomllib -else: - import tomli as tomllib +LOCK_FILE_NAME = "versions.lock" env = Environment( loader=PackageLoader("codegen"), @@ -46,7 +42,9 @@ def load_config() -> Config: - pyproject = tomllib.loads(Path("./pyproject.toml").read_text(encoding="utf-8")) + pyproject = tomlkit.parse( + Path("./pyproject.toml").read_text(encoding="utf-8") + ).unwrap() config_dict: dict[str, Any] = pyproject.get("tool", {}).get("codegen", {}) return Config.model_validate(config_dict) @@ -252,6 +250,10 @@ def build_versions(dir: Path, versions: dict[str, str], latest_version: str): logger.info("Successfully generated versions!") +def build_lock_file(file: Path, lock_data: tomlkit.TOMLDocument): + file.write_text(lock_data.as_string()) + + def build(): config = load_config() logger.info(f"Loaded config: {config!r}") @@ -277,7 +279,8 @@ def build(): for description in config.descriptions: logger.info(f"Start getting OpenAPI source for {description.identifier}...") - source = get_source(httpx.URL(description.source)) + source = get_source(description.source) + description._actual_source = str(source.uri.copy_with(fragment=None)) logger.info(f"Getting schema from {source.uri} succeeded!") logger.info(f"Start parsing OpenAPI spec for {description.identifier}...") @@ -353,3 +356,4 @@ def build(): versions[latest_version], latest_model_names, ) + build_lock_file(config.output_dir / LOCK_FILE_NAME, config.to_lock()) diff --git a/codegen/config.py b/codegen/config.py index 7f810e075..7f918c950 100644 --- a/codegen/config.py +++ b/codegen/config.py @@ -2,6 +2,9 @@ from typing import Any from pydantic import BaseModel, Field +from tomlkit import aot, comment, document, inline_table, item, table +from tomlkit.items import Table +from tomlkit.toml_document import TOMLDocument class Override(BaseModel): @@ -13,6 +16,29 @@ class Override(BaseModel): class VersionedOverride(Override): target_descriptions: list[str] = Field(default_factory=list) + def to_lock(self) -> Table: + tab = table() + if self.target_descriptions: + tab.append("target_descriptions", item(self.target_descriptions)) + if self.class_overrides: + class_tab = table() + for key, value in self.class_overrides.items(): + class_tab.append(key, value) + tab.append("class_overrides", class_tab) + if self.field_overrides: + field_tab = table() + for key, value in self.field_overrides.items(): + field_tab.append(key, value) + tab.append("field_overrides", field_tab) + if self.schema_overrides: + schema_tab = table() + for key, value in self.schema_overrides.items(): + value_table = inline_table() + value_table.update(value) + schema_tab.append(key, value_table) + tab.append("schema_overrides", schema_tab) + return tab + class DescriptionConfig(BaseModel): version: str @@ -24,11 +50,31 @@ class DescriptionConfig(BaseModel): is_latest: bool = False """If true, the description will be used as the default description.""" source: str + """Source link to the description file.""" + _actual_source: str | None = None + """The actual source link after downloading, if applicable.""" -class Config(BaseModel): - output_dir: Path - legacy_rest_models: Path + @property + def actual_source(self) -> str: + """Returns the actual source link after downloading, if applicable.""" + return self._actual_source or self.source + + def to_lock(self) -> Table: + tab = table() + tab.update( + { + "version": self.version, + "identifier": self.identifier, + "module": self.module, + "is_latest": self.is_latest, + "source": self.actual_source, + } + ) + return tab + + +class GenerationInfo(BaseModel): descriptions: list[DescriptionConfig] overrides: list[VersionedOverride] = Field(default_factory=list) @@ -56,3 +102,24 @@ def get_override_config_for_version(self, version_id: str) -> Override: for key, value in override.schema_overrides.items() }, ) + + def to_lock(self) -> TOMLDocument: + doc = document() + doc.append(None, comment("DO NOT EDIT THIS FILE!")) + doc.append(None, comment("This file is automatically @generated by githubkit.")) + + descriptions_aot = aot() + for description in self.descriptions: + descriptions_aot.append(description.to_lock()) + doc.append("descriptions", descriptions_aot) + + overrides_aot = aot() + for override in self.overrides: + overrides_aot.append(override.to_lock()) + doc.append("overrides", overrides_aot) + return doc + + +class Config(GenerationInfo): + output_dir: Path + legacy_rest_models: Path diff --git a/codegen/source.py b/codegen/source.py index d2d89c576..be9cadeca 100644 --- a/codegen/source.py +++ b/codegen/source.py @@ -1,12 +1,20 @@ from dataclasses import dataclass from functools import cache -import json -from pathlib import Path +import os from typing import Any import httpx from jsonpointer import JsonPointer +REPO_COMMIT = os.getenv( + "REPO_COMMIT", + "https://api.github.com/repos/github/rest-api-description/commits/main", +) +RAW_SOURCE_PREFIX = os.getenv( + "RAW_SOURCE_PREFIX", + "https://raw.githubusercontent.com/github/rest-api-description/", +) + @dataclass(frozen=True) class Source: @@ -37,19 +45,32 @@ def __truediv__(self, other: str | int) -> "Source": @cache -def get_content(source: httpx.URL | Path) -> dict: - return ( - json.loads(source.read_text(encoding="utf-8")) - if isinstance(source, Path) - else httpx.get( - source, headers={"User-Agent": "GitHubKit Codegen"}, follow_redirects=True - ).json() +def get_content(source: str | httpx.URL) -> tuple[httpx.URL, dict]: + if isinstance(source, str): + sha_response = httpx.get( + REPO_COMMIT, + headers={ + "User-Agent": "GitHubKit Codegen", + "Accept": "application/vnd.github.sha", + }, + ) + sha_response.raise_for_status() + sha = sha_response.text.strip() + source_link = httpx.URL(RAW_SOURCE_PREFIX).join(f"{sha}/{source.lstrip('/')}") + else: + source_link = source + + response = httpx.get( + source_link, headers={"User-Agent": "GitHubKit Codegen"}, follow_redirects=True ) + response.raise_for_status() + uri = response.url + content = response.json() + return uri, content -def get_source(source: httpx.URL | Path, path: str | None = None) -> Source: - if isinstance(source, Path): - uri = httpx.URL(source.resolve().as_uri(), fragment=path) - else: - uri = source if path is None else source.copy_with(fragment=path) - return Source(uri=uri, root=get_content(source)) +def get_source(source: str | httpx.URL, path: str | None = None) -> Source: + uri, root = get_content(source) + if path is not None: + uri = uri.copy_with(fragment=path) + return Source(uri=uri, root=root) diff --git a/githubkit/versions/versions.lock b/githubkit/versions/versions.lock new file mode 100644 index 000000000..a70be0337 --- /dev/null +++ b/githubkit/versions/versions.lock @@ -0,0 +1,151 @@ +# DO NOT EDIT THIS FILE! +# This file is automatically @generated by githubkit. + +[[descriptions]] +version = "2022-11-28" +identifier = "2022-11-28" +module = "v2022_11_28" +is_latest = true +source = "https://raw.githubusercontent.com/github/rest-api-description/ecbe0df804f3f85f8a68f48d6e9711d05da6f201/descriptions-next/api.github.com/api.github.com.2022-11-28.json" + +[[descriptions]] +version = "2022-11-28" +identifier = "ghec-2022-11-28" +module = "ghec_v2022_11_28" +is_latest = false +source = "https://raw.githubusercontent.com/github/rest-api-description/ecbe0df804f3f85f8a68f48d6e9711d05da6f201/descriptions-next/ghec/ghec.2022-11-28.json" + +[[overrides]] +[overrides.field_overrides] +"+1" = "plus_one" +-1 = "minus_one" + +[[overrides]] +[overrides.schema_overrides] +"/components/schemas/labeled-issue-event/properties/event" = {const = "labeled"} +"/components/schemas/unlabeled-issue-event/properties/event" = {const = "unlabeled"} +"/components/schemas/milestoned-issue-event/properties/event" = {const = "milestoned"} +"/components/schemas/demilestoned-issue-event/properties/event" = {const = "demilestoned"} +"/components/schemas/renamed-issue-event/properties/event" = {const = "renamed"} +"/components/schemas/review-requested-issue-event/properties/event" = {const = "review_requested"} +"/components/schemas/review-request-removed-issue-event/properties/event" = {const = "review_request_removed"} +"/components/schemas/review-dismissed-issue-event/properties/event" = {const = "review_dismissed"} +"/components/schemas/locked-issue-event/properties/event" = {const = "locked"} +"/components/schemas/added-to-project-issue-event/properties/event" = {const = "added_to_project"} +"/components/schemas/moved-column-in-project-issue-event/properties/event" = {const = "moved_columns_in_project"} +"/components/schemas/removed-from-project-issue-event/properties/event" = {const = "removed_from_project"} +"/components/schemas/converted-note-to-issue-issue-event/properties/event" = {const = "converted_note_to_issue"} +"/components/schemas/timeline-comment-event/properties/event" = {const = "commented"} +"/components/schemas/timeline-cross-referenced-event/properties/event" = {const = "cross-referenced"} +"/components/schemas/timeline-committed-event/properties/event" = {const = "committed"} +"/components/schemas/timeline-reviewed-event/properties/event" = {const = "reviewed"} +"/components/schemas/timeline-line-commented-event/properties/event" = {const = "line_commented"} +"/components/schemas/timeline-commit-commented-event/properties/event" = {const = "commit_commented"} +"/components/schemas/timeline-assigned-issue-event/properties/event" = {const = "assigned"} +"/components/schemas/timeline-unassigned-issue-event/properties/event" = {const = "unassigned"} +"/components/schemas/issue/properties/body_text" = {type = ["string", "null"]} +"/components/schemas/issue/properties/body_html" = {type = ["string", "null"]} +"/components/schemas/timeline-reviewed-event/properties/body_text" = {type = ["string", "null"]} +"/components/schemas/timeline-reviewed-event/properties/body_html" = {type = ["string", "null"]} +"/components/schemas/release/properties/body_text" = {type = ["string", "null"]} +"/components/schemas/release/properties/body_html" = {type = ["string", "null"]} +"/components/schemas/issue/properties/state_reason/enum" = {"" = ["duplicate"]} +"/components/schemas/pull-request-simple/properties/head/properties/label" = {type = ["string", "null"]} +"/components/schemas/pull-request-simple/properties/head/properties/repo" = {anyOf = [{type = "null"}, {"$ref" = "#/components/schemas/repository"}], "$ref" = ""} +"/components/schemas/pull-request/properties/head/properties/label" = {type = ["string", "null"]} +"/components/schemas/pull-request/properties/head/properties/user" = {anyOf = [{type = "null"}, {"$ref" = "#/components/schemas/simple-user"}], "$ref" = ""} +"/components/schemas/pull-request/properties/head/properties/repo" = {anyOf = [{type = "null"}, {"$ref" = "#/components/schemas/repository"}], "$ref" = ""} +"/components/schemas/pull-request-simple/properties/labels/items/properties/description" = {type = ["string", "null"]} +"/components/schemas/repository/properties/temp_clone_token" = {type = ["string", "null"]} +"/components/schemas/minimal-repository/properties/temp_clone_token" = {type = ["string", "null"]} +"/components/schemas/team-repository/properties/temp_clone_token" = {type = ["string", "null"]} +"/components/schemas/repo-search-result-item/properties/temp_clone_token" = {type = ["string", "null"]} +"/components/schemas/repository-webhooks/properties/temp_clone_token" = {type = ["string", "null"]} +"/components/schemas/repository-webhooks/properties/template_repository/properties/temp_clone_token" = {type = ["string", "null"]} +"/components/schemas/repository/properties/owner" = {anyOf = [{type = "null"}, {"$ref" = "#/components/schemas/simple-user"}], "$ref" = ""} +"/components/schemas/auto-merge/properties/commit_title" = {type = ["string", "null"]} +"/components/schemas/auto-merge/properties/commit_message" = {type = ["string", "null"]} +"/paths/~1repos~1{owner}~1{repo}~1releases/post/requestBody/content/application~1json/schema/properties/make_latest" = {default = "true"} +"/paths/~1repos~1{owner}~1{repo}~1releases~1{release_id}/patch/requestBody/content/application~1json/schema/properties/make_latest" = {default = "true"} +"/components/schemas/organization-full/properties/company" = {type = ["string", "null"]} +"/components/schemas/organization-full/properties/email" = {type = ["string", "null"]} +"/components/schemas/organization-full/properties/location" = {type = ["string", "null"]} +"/components/schemas/organization-full/properties/name" = {type = ["string", "null"]} +"/components/schemas/organization-full/properties/blog" = {type = ["string", "null"]} +"/components/schemas/team-organization/properties/company" = {type = ["string", "null"]} +"/components/schemas/team-organization/properties/email" = {type = ["string", "null"]} +"/components/schemas/team-organization/properties/location" = {type = ["string", "null"]} +"/components/schemas/team-organization/properties/name" = {type = ["string", "null"]} +"/components/schemas/team-organization/properties/blog" = {type = ["string", "null"]} +"/components/schemas/git-user/properties/date" = {format = "date-time"} +"/components/schemas/verification/required" = {"" = ["verified_at"]} +"/components/schemas/diff-entry/properties/blob_url" = {type = ["string", "null"]} +"/components/schemas/diff-entry/properties/raw_url" = {type = ["string", "null"]} +"/components/schemas/diff-entry/properties/sha" = {type = ["string", "null"]} +"/components/schemas/app-permissions/properties/organization_copilot_seat_management/enum" = {"" = ["read"]} +"/components/parameters/created/schema" = {format = ""} +"/components/schemas/simple-classroom-assignment/properties/editor" = {type = ["string", "null"]} +"/components/schemas/simple-classroom-assignment/properties/language" = {type = ["string", "null"]} +"/components/schemas/simple-classroom-assignment/required" = {"" = ["submitted"]} +"/paths/~1repos~1{owner}~1{repo}~1check-runs/post/requestBody/content/application~1json/schema" = {discriminator = ""} +"/paths/~1repos~1{owner}~1{repo}~1check-runs/post/requestBody/content/application~1json/schema/oneOf/1/properties/status/enum" = {"" = ["waiting", "requested", "pending"]} +"/paths/~1repos~1{owner}~1{repo}~1contents~1{path}/get/responses/200/content/application~1json/schema" = {discriminator = ""} +"/paths/~1user/get/responses/200/content/application~1json/schema" = {discriminator = ""} +"/paths/~1user~1{account_id}/get/responses/200/content/application~1json/schema" = {discriminator = ""} +"/paths/~1users~1{username}/get/responses/200/content/application~1json/schema" = {discriminator = ""} +"/components/schemas/webhook-check-run-completed/required" = {"" = ["action"]} +"/components/schemas/webhook-check-run-created/required" = {"" = ["action"]} +"/components/schemas/webhook-check-run-rerequested/required" = {"" = ["action"]} +"/components/schemas/webhooks_issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhooks_issue_2/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-check-suite-completed/properties/check_suite/properties/app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-check-suite-requested/properties/check_suite/properties/app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-check-suite-rerequested/properties/check_suite/properties/app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-deployment-created/properties/deployment/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-deployment-status-created/properties/deployment/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-deployment-status-created/properties/deployment_status/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issue-comment-created/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issue-comment-deleted/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issue-comment-edited/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-closed/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-deleted/properties/issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-demilestoned/properties/issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-edited/properties/issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-labeled/properties/issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-locked/properties/issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-milestoned/properties/issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-opened/properties/changes/properties/old_issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-opened/properties/issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-reopened/properties/issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-transferred/properties/changes/properties/new_issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-issues-unlocked/properties/issue/properties/performed_via_github_app/properties/events/items" = {enum = ""} +"/components/schemas/webhook-meta-deleted/properties/hook/properties/events/items" = {enum = ""} +"/components/schemas/webhook-deployment-status-created/properties/deployment/properties/payload" = {oneOf = [{type = "string"}, {type = "object", additionalProperties = true}]} +"/components/schemas/webhook-deployment-created/properties/deployment/properties/payload" = {oneOf = [{type = "string"}, {type = "object", additionalProperties = true}]} +"/components/schemas/webhook-deployment-protection-rule-requested" = {required = ["action"]} +"/components/schemas/webhook-secret-scanning-alert-location-created/required" = {"" = ["action"]} +"/components/schemas/webhook-fork/properties/forkee/allOf/1/properties/topics/items" = {type = ["string", "null"]} +"/components/schemas/webhook-project-card-moved/properties/project_card/allOf/1/properties/after_id" = {type = ["integer", "null"]} +"/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/0/properties/run_id" = {type = "integer"} +"/components/schemas/webhook-workflow-job-in-progress/properties/workflow_job/allOf/0/properties/run_id" = {type = "integer"} +"/components/schemas/webhook-workflow-job-queued/properties/workflow_job/properties/run_id" = {type = "integer"} +"/components/schemas/webhook-workflow-job-waiting/properties/workflow_job/properties/run_id" = {type = "integer"} +"/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/1/properties/runner_id" = {type = ["integer", "null"]} +"/components/schemas/webhook-workflow-job-in-progress/properties/workflow_job/allOf/1/properties/runner_id" = {type = ["integer", "null"]} +"/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/1/properties/runner_group_id" = {type = ["integer", "null"]} +"/components/schemas/webhook-workflow-job-in-progress/properties/workflow_job/allOf/1/properties/runner_group_id" = {type = ["integer", "null"]} +"/components/schemas/webhook-workflow-run-completed/properties/workflow_run/properties/pull_requests/items/properties/id" = {type = "integer"} +"/components/schemas/webhook-workflow-run-completed/properties/workflow_run/properties/pull_requests/items/properties/number" = {type = "integer"} +"/components/schemas/webhook-workflow-run-in-progress/properties/workflow_run/properties/pull_requests/items/properties/id" = {type = "integer"} +"/components/schemas/webhook-workflow-run-in-progress/properties/workflow_run/properties/pull_requests/items/properties/number" = {type = "integer"} +"/components/schemas/webhook-workflow-run-requested/properties/workflow_run/properties/pull_requests/items/properties/id" = {type = "integer"} +"/components/schemas/webhook-workflow-run-requested/properties/workflow_run/properties/pull_requests/items/properties/number" = {type = "integer"} +"/webhooks/repository-dispatch-sample.collected/post" = {operationId = "repository-dispatch"} +"/components/schemas/dependabot-alert-with-repository/properties/dependency/properties/relationship/enum" = {"" = ["inconclusive"]} +"/components/schemas/code-scanning-alert-classification/enum" = {"" = ["documentation"]} + +[[overrides]] +target_descriptions = ["ghec-2022-11-28"] + +[overrides.schema_overrides] +"/paths/~1enterprises~1{enterprise}~1apps~1organizations~1{org}~1installations~1{installation_id}/delete" = {operationId = "enterprise-apps/enterprise-delete-installation"} diff --git a/poetry.lock b/poetry.lock index c308fb0a6..1a3144005 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1661,7 +1661,8 @@ version = "2.2.1" description = "A lil' TOML parser" optional = false python-versions = ">=3.8" -groups = ["dev", "test"] +groups = ["test"] +markers = "python_full_version <= \"3.11.0a6\"" files = [ {file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"}, {file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"}, @@ -1696,7 +1697,18 @@ files = [ {file = "tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc"}, {file = "tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"}, ] -markers = {dev = "python_version < \"3.11\"", test = "python_full_version <= \"3.11.0a6\""} + +[[package]] +name = "tomlkit" +version = "0.13.3" +description = "Style preserving TOML library" +optional = false +python-versions = ">=3.8" +groups = ["dev"] +files = [ + {file = "tomlkit-0.13.3-py3-none-any.whl", hash = "sha256:c89c649d79ee40629a9fda55f8ace8c6a1b42deb912b2a8fd8d942ddadb606b0"}, + {file = "tomlkit-0.13.3.tar.gz", hash = "sha256:430cf247ee57df2b94ee3fbe588e71d362a941ebb545dec29b53961d61add2a1"}, +] [[package]] name = "typing-extensions" @@ -1850,4 +1862,4 @@ jwt = ["PyJWT"] [metadata] lock-version = "2.1" python-versions = "^3.9" -content-hash = "9a199ec89abe35f90b9285e63853acddd4b1c958d2ace7183a59b5225cba9334" +content-hash = "6d7c1d1248827dc99e526993bedd733980427c82d807ba317abdecb119c71887" diff --git a/pyproject.toml b/pyproject.toml index 1d13888b3..98a3cc80a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,11 +24,11 @@ PyJWT = { version = "^2.4.0", extras = ["crypto"], optional = true } ruff = "^0.12.0" Jinja2 = "^3.1.2" nonemoji = "^0.1.2" +tomlkit = "^0.13.3" pre-commit = "^4.0.0" jsonpointer = "^3.0.0" redis = ">=5.2.0, <7.0.0" openapi-pydantic = "^0.5.0" -tomli = { version = "^2.0.1", python = "<3.11" } [tool.poetry.group.test.dependencies] githubkit-test = { path = "./envs/test", develop = false } @@ -154,14 +154,14 @@ version = "2022-11-28" identifier = "2022-11-28" module = "v2022_11_28" is_latest = true -source = "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.2022-11-28.json" +source = "descriptions-next/api.github.com/api.github.com.2022-11-28.json" [[tool.codegen.descriptions]] version = "2022-11-28" identifier = "ghec-2022-11-28" module = "ghec_v2022_11_28" is_latest = false -source = "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghec/ghec.2022-11-28.json" +source = "descriptions-next/ghec/ghec.2022-11-28.json" [[tool.codegen.overrides]] From ab104129bfd5630026907f374361db5d7dd60ce9 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Sat, 26 Jul 2025 09:58:38 +0000 Subject: [PATCH 3/3] :bookmark: bump version 0.13.0 --- envs/pydantic-v1/poetry.lock | 159 +++++++++++++++----------- envs/pydantic-v2/poetry.lock | 159 +++++++++++++++----------- envs/test/poetry.lock | 157 ++++++++++++++----------- poetry.lock | 216 +++++++++++++++++++---------------- pyproject.toml | 2 +- 5 files changed, 389 insertions(+), 304 deletions(-) diff --git a/envs/pydantic-v1/poetry.lock b/envs/pydantic-v1/poetry.lock index 8bc807d87..6c54de470 100644 --- a/envs/pydantic-v1/poetry.lock +++ b/envs/pydantic-v1/poetry.lock @@ -144,79 +144,100 @@ files = [ [[package]] name = "coverage" -version = "7.9.2" +version = "7.10.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "coverage-7.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:66283a192a14a3854b2e7f3418d7db05cdf411012ab7ff5db98ff3b181e1f912"}, - {file = "coverage-7.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4e01d138540ef34fcf35c1aa24d06c3de2a4cffa349e29a10056544f35cca15f"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f22627c1fe2745ee98d3ab87679ca73a97e75ca75eb5faee48660d060875465f"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4b1c2d8363247b46bd51f393f86c94096e64a1cf6906803fa8d5a9d03784bdbf"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c10c882b114faf82dbd33e876d0cbd5e1d1ebc0d2a74ceef642c6152f3f4d547"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:de3c0378bdf7066c3988d66cd5232d161e933b87103b014ab1b0b4676098fa45"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:1e2f097eae0e5991e7623958a24ced3282676c93c013dde41399ff63e230fcf2"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:28dc1f67e83a14e7079b6cea4d314bc8b24d1aed42d3582ff89c0295f09b181e"}, - {file = "coverage-7.9.2-cp310-cp310-win32.whl", hash = "sha256:bf7d773da6af9e10dbddacbf4e5cab13d06d0ed93561d44dae0188a42c65be7e"}, - {file = "coverage-7.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:0c0378ba787681ab1897f7c89b415bd56b0b2d9a47e5a3d8dc0ea55aac118d6c"}, - {file = "coverage-7.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a7a56a2964a9687b6aba5b5ced6971af308ef6f79a91043c05dd4ee3ebc3e9ba"}, - {file = "coverage-7.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:123d589f32c11d9be7fe2e66d823a236fe759b0096f5db3fb1b75b2fa414a4fa"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:333b2e0ca576a7dbd66e85ab402e35c03b0b22f525eed82681c4b866e2e2653a"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:326802760da234baf9f2f85a39e4a4b5861b94f6c8d95251f699e4f73b1835dc"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:19e7be4cfec248df38ce40968c95d3952fbffd57b400d4b9bb580f28179556d2"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0b4a4cb73b9f2b891c1788711408ef9707666501ba23684387277ededab1097c"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:2c8937fa16c8c9fbbd9f118588756e7bcdc7e16a470766a9aef912dd3f117dbd"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:42da2280c4d30c57a9b578bafd1d4494fa6c056d4c419d9689e66d775539be74"}, - {file = "coverage-7.9.2-cp311-cp311-win32.whl", hash = "sha256:14fa8d3da147f5fdf9d298cacc18791818f3f1a9f542c8958b80c228320e90c6"}, - {file = "coverage-7.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:549cab4892fc82004f9739963163fd3aac7a7b0df430669b75b86d293d2df2a7"}, - {file = "coverage-7.9.2-cp311-cp311-win_arm64.whl", hash = "sha256:c2667a2b913e307f06aa4e5677f01a9746cd08e4b35e14ebcde6420a9ebb4c62"}, - {file = "coverage-7.9.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ae9eb07f1cfacd9cfe8eaee6f4ff4b8a289a668c39c165cd0c8548484920ffc0"}, - {file = "coverage-7.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ce85551f9a1119f02adc46d3014b5ee3f765deac166acf20dbb851ceb79b6f3"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f8f6389ac977c5fb322e0e38885fbbf901743f79d47f50db706e7644dcdcb6e1"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ff0d9eae8cdfcd58fe7893b88993723583a6ce4dfbfd9f29e001922544f95615"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fae939811e14e53ed8a9818dad51d434a41ee09df9305663735f2e2d2d7d959b"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:31991156251ec202c798501e0a42bbdf2169dcb0f137b1f5c0f4267f3fc68ef9"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:d0d67963f9cbfc7c7f96d4ac74ed60ecbebd2ea6eeb51887af0f8dce205e545f"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:49b752a2858b10580969ec6af6f090a9a440a64a301ac1528d7ca5f7ed497f4d"}, - {file = "coverage-7.9.2-cp312-cp312-win32.whl", hash = "sha256:88d7598b8ee130f32f8a43198ee02edd16d7f77692fa056cb779616bbea1b355"}, - {file = "coverage-7.9.2-cp312-cp312-win_amd64.whl", hash = "sha256:9dfb070f830739ee49d7c83e4941cc767e503e4394fdecb3b54bfdac1d7662c0"}, - {file = "coverage-7.9.2-cp312-cp312-win_arm64.whl", hash = "sha256:4e2c058aef613e79df00e86b6d42a641c877211384ce5bd07585ed7ba71ab31b"}, - {file = "coverage-7.9.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:985abe7f242e0d7bba228ab01070fde1d6c8fa12f142e43debe9ed1dde686038"}, - {file = "coverage-7.9.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82c3939264a76d44fde7f213924021ed31f55ef28111a19649fec90c0f109e6d"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae5d563e970dbe04382f736ec214ef48103d1b875967c89d83c6e3f21706d5b3"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bdd612e59baed2a93c8843c9a7cb902260f181370f1d772f4842987535071d14"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:256ea87cb2a1ed992bcdfc349d8042dcea1b80436f4ddf6e246d6bee4b5d73b6"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f44ae036b63c8ea432f610534a2668b0c3aee810e7037ab9d8ff6883de480f5b"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:82d76ad87c932935417a19b10cfe7abb15fd3f923cfe47dbdaa74ef4e503752d"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:619317bb86de4193debc712b9e59d5cffd91dc1d178627ab2a77b9870deb2868"}, - {file = "coverage-7.9.2-cp313-cp313-win32.whl", hash = "sha256:0a07757de9feb1dfafd16ab651e0f628fd7ce551604d1bf23e47e1ddca93f08a"}, - {file = "coverage-7.9.2-cp313-cp313-win_amd64.whl", hash = "sha256:115db3d1f4d3f35f5bb021e270edd85011934ff97c8797216b62f461dd69374b"}, - {file = "coverage-7.9.2-cp313-cp313-win_arm64.whl", hash = "sha256:48f82f889c80af8b2a7bb6e158d95a3fbec6a3453a1004d04e4f3b5945a02694"}, - {file = "coverage-7.9.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:55a28954545f9d2f96870b40f6c3386a59ba8ed50caf2d949676dac3ecab99f5"}, - {file = "coverage-7.9.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:cdef6504637731a63c133bb2e6f0f0214e2748495ec15fe42d1e219d1b133f0b"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bcd5ebe66c7a97273d5d2ddd4ad0ed2e706b39630ed4b53e713d360626c3dbb3"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9303aed20872d7a3c9cb39c5d2b9bdbe44e3a9a1aecb52920f7e7495410dfab8"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc18ea9e417a04d1920a9a76fe9ebd2f43ca505b81994598482f938d5c315f46"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6406cff19880aaaadc932152242523e892faff224da29e241ce2fca329866584"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:2d0d4f6ecdf37fcc19c88fec3e2277d5dee740fb51ffdd69b9579b8c31e4232e"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c33624f50cf8de418ab2b4d6ca9eda96dc45b2c4231336bac91454520e8d1fac"}, - {file = "coverage-7.9.2-cp313-cp313t-win32.whl", hash = "sha256:1df6b76e737c6a92210eebcb2390af59a141f9e9430210595251fbaf02d46926"}, - {file = "coverage-7.9.2-cp313-cp313t-win_amd64.whl", hash = "sha256:f5fd54310b92741ebe00d9c0d1d7b2b27463952c022da6d47c175d246a98d1bd"}, - {file = "coverage-7.9.2-cp313-cp313t-win_arm64.whl", hash = "sha256:c48c2375287108c887ee87d13b4070a381c6537d30e8487b24ec721bf2a781cb"}, - {file = "coverage-7.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ddc39510ac922a5c4c27849b739f875d3e1d9e590d1e7b64c98dadf037a16cce"}, - {file = "coverage-7.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a535c0c7364acd55229749c2b3e5eebf141865de3a8f697076a3291985f02d30"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df0f9ef28e0f20c767ccdccfc5ae5f83a6f4a2fbdfbcbcc8487a8a78771168c8"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2f3da12e0ccbcb348969221d29441ac714bbddc4d74e13923d3d5a7a0bebef7a"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a17eaf46f56ae0f870f14a3cbc2e4632fe3771eab7f687eda1ee59b73d09fe4"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:669135a9d25df55d1ed56a11bf555f37c922cf08d80799d4f65d77d7d6123fcf"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:9d3a700304d01a627df9db4322dc082a0ce1e8fc74ac238e2af39ced4c083193"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:71ae8b53855644a0b1579d4041304ddc9995c7b21c8a1f16753c4d8903b4dfed"}, - {file = "coverage-7.9.2-cp39-cp39-win32.whl", hash = "sha256:dd7a57b33b5cf27acb491e890720af45db05589a80c1ffc798462a765be6d4d7"}, - {file = "coverage-7.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:f65bb452e579d5540c8b37ec105dd54d8b9307b07bcaa186818c104ffda22441"}, - {file = "coverage-7.9.2-pp39.pp310.pp311-none-any.whl", hash = "sha256:8a1166db2fb62473285bcb092f586e081e92656c7dfa8e9f62b4d39d7e6b5050"}, - {file = "coverage-7.9.2-py3-none-any.whl", hash = "sha256:e425cd5b00f6fc0ed7cdbd766c70be8baab4b7839e4d4fe5fac48581dd968ea4"}, - {file = "coverage-7.9.2.tar.gz", hash = "sha256:997024fa51e3290264ffd7492ec97d0690293ccd2b45a6cd7d82d945a4a80c8b"}, + {file = "coverage-7.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:cbd823f7ea5286c26406ad9e54268544d82f3d1cadb6d4f3b85e9877f0cab1ef"}, + {file = "coverage-7.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ab3f7a5dbaab937df0b9e9e8ec6eab235ba9a6f29d71fd3b24335affaed886cc"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8c63aaf850523d8cbe3f5f1a5c78f689b223797bef902635f2493ab43498f36c"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4c3133ce3fa84023f7c6921c4dca711be0b658784c5a51a797168229eae26172"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3747d1d0af85b17d3a156cd30e4bbacf893815e846dc6c07050e9769da2b138e"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:241923b350437f6a7cb343d9df72998305ef940c3c40009f06e05029a047677c"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:13e82e499309307104d58ac66f9eed237f7aaceab4325416645be34064d9a2be"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:bf73cdde4f6c9cd4457b00bf1696236796ac3a241f859a55e0f84a4c58326a7f"}, + {file = "coverage-7.10.0-cp310-cp310-win32.whl", hash = "sha256:2396e13275b37870a3345f58bce8b15a7e0a985771d13a4b16ce9129954e07d6"}, + {file = "coverage-7.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:9d45c7c71fb3d2da92ab893602e3f28f2d1560cec765a27e1824a6e0f7e92cfd"}, + {file = "coverage-7.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4abc01843581a6f9dd72d4d15761861190973a2305416639435ef509288f7a04"}, + {file = "coverage-7.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2093297773111d7d748fe4a99b68747e57994531fb5c57bbe439af17c11c169"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:58240e27815bf105bd975c2fd42e700839f93d5aad034ef976411193ca32dbfd"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:d019eac999b40ad48521ea057958b07a9f549c0c6d257a20e5c7c4ba91af8d1c"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35e0a1f5454bc80faf4ceab10d1d48f025f92046c9c0f3bec2e1a9dda55137f8"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a93dd7759c416dd1cc754123b926d065055cb9a33b6699e64a1e5bdfae1ff459"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:7b3d737266048368a6ffd68f1ecd662c54de56535c82eb8f98a55ac216a72cbd"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:93227c2707cb0effd9163cd0d8f0d9ab628982f7a3e915d6d64c7107867b9a07"}, + {file = "coverage-7.10.0-cp311-cp311-win32.whl", hash = "sha256:69270af3014ab3058ad6108c6d0e218166f568b5a7a070dc3d62c0a63aca1c4d"}, + {file = "coverage-7.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:43c16bbb661a7b4dafac0ab69e44d6dbcc6a64c4d93aefd89edc6f8911b6ab4a"}, + {file = "coverage-7.10.0-cp311-cp311-win_arm64.whl", hash = "sha256:14e7c23fcb74ed808efb4eb48fcd25a759f0e20f685f83266d1df174860e4733"}, + {file = "coverage-7.10.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a2adcfdaf3b4d69b0c64ad024fe9dd6996782b52790fb6033d90f36f39e287df"}, + {file = "coverage-7.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d7b27c2c0840e8eeff3f1963782bd9d3bc767488d2e67a31de18d724327f9f6"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0ed50429786e935517570b08576a661fd79032e6060985ab492b9d39ba8e66ee"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7171c139ab6571d70460ecf788b1dcaf376bfc75a42e1946b8c031d062bbbad4"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4a726aac7e6e406e403cdee4c443a13aed3ea3d67d856414c5beacac2e70c04e"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2886257481a14e953e96861a00c0fe7151117a523f0470a51e392f00640bba03"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:536578b79521e59c385a2e0a14a5dc2a8edd58761a966d79368413e339fc9535"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77fae95558f7804a9ceefabf3c38ad41af1da92b39781b87197c6440dcaaa967"}, + {file = "coverage-7.10.0-cp312-cp312-win32.whl", hash = "sha256:97803e14736493eb029558e1502fe507bd6a08af277a5c8eeccf05c3e970cb84"}, + {file = "coverage-7.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:4c73ab554e54ffd38d114d6bc4a7115fb0c840cf6d8622211bee3da26e4bd25d"}, + {file = "coverage-7.10.0-cp312-cp312-win_arm64.whl", hash = "sha256:3ae95d5a9aedab853641026b71b2ddd01983a0a7e9bf870a20ef3c8f5d904699"}, + {file = "coverage-7.10.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d883fee92b9245c0120fa25b5d36de71ccd4cfc29735906a448271e935d8d86d"}, + {file = "coverage-7.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c87e59e88268d30e33d3665ede4fbb77b513981a2df0059e7c106ca3de537586"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f669d969f669a11d6ceee0b733e491d9a50573eb92a71ffab13b15f3aa2665d4"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9582bd6c6771300a847d328c1c4204e751dbc339a9e249eecdc48cada41f72e6"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:91f97e9637dc7977842776fdb7ad142075d6fa40bc1b91cb73685265e0d31d32"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ae4fa92b6601a62367c6c9967ad32ad4e28a89af54b6bb37d740946b0e0534dd"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:3a5cc8b97473e7b3623dd17a42d2194a2b49de8afecf8d7d03c8987237a9552c"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:dc1cbb7f623250e047c32bd7aa1bb62ebc62608d5004d74df095e1059141ac88"}, + {file = "coverage-7.10.0-cp313-cp313-win32.whl", hash = "sha256:1380cc5666d778e77f1587cd88cc317158111f44d54c0dd3975f0936993284e0"}, + {file = "coverage-7.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:bf03cf176af098ee578b754a03add4690b82bdfe070adfb5d192d0b1cd15cf82"}, + {file = "coverage-7.10.0-cp313-cp313-win_arm64.whl", hash = "sha256:8041c78cd145088116db2329b2fb6e89dc338116c962fbe654b7e9f5d72ab957"}, + {file = "coverage-7.10.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:37cc2c06052771f48651160c080a86431884db9cd62ba622cab71049b90a95b3"}, + {file = "coverage-7.10.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:91f37270b16178b05fa107d85713d29bf21606e37b652d38646eef5f2dfbd458"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f9b0b0168864d09bcb9a3837548f75121645c4cfd0efce0eb994c221955c5b10"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:df0be435d3b616e7d3ee3f9ebbc0d784a213986fe5dff9c6f1042ee7cfd30157"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35e9aba1c4434b837b1d567a533feba5ce205e8e91179c97974b28a14c23d3a0"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a0b0c481e74dfad631bdc2c883e57d8b058e5c90ba8ef087600995daf7bbec18"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8aec1b7c8922808a433c13cd44ace6fceac0609f4587773f6c8217a06102674b"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:04ec59ceb3a594af0927f2e0d810e1221212abd9a2e6b5b917769ff48760b460"}, + {file = "coverage-7.10.0-cp313-cp313t-win32.whl", hash = "sha256:b6871e62d29646eb9b3f5f92def59e7575daea1587db21f99e2b19561187abda"}, + {file = "coverage-7.10.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ff99cff2be44f78920b76803f782e91ffb46ccc7fa89eccccc0da3ca94285b64"}, + {file = "coverage-7.10.0-cp313-cp313t-win_arm64.whl", hash = "sha256:3246b63501348fe47299d12c47a27cfc221cfbffa1c2d857bcc8151323a4ae4f"}, + {file = "coverage-7.10.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:1f628d91f941a375b4503cb486148dbeeffb48e17bc080e0f0adfee729361574"}, + {file = "coverage-7.10.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3a0e101d5af952d233557e445f42ebace20b06b4ceb615581595ced5386caa78"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:ec4c1abbcc53f9f650acb14ea71725d88246a9e14ed42f8dd1b4e1b694e9d842"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9c95f3a7f041b4cc68a8e3fecfa6366170c13ac773841049f1cd19c8650094e0"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8a2cd597b69c16d24e310611f2ed6fcfb8f09429316038c03a57e7b4f5345244"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:5e18591906a40c2b3609196c9879136aa4a47c5405052ca6b065ab10cb0b71d0"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:485c55744252ed3f300cc1a0f5f365e684a0f2651a7aed301f7a67125906b80e"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4dabea1516e5b0e9577282b149c8015e4dceeb606da66fb8d9d75932d5799bf5"}, + {file = "coverage-7.10.0-cp314-cp314-win32.whl", hash = "sha256:ac455f0537af22333fdc23b824cff81110dff2d47300bb2490f947b7c9a16017"}, + {file = "coverage-7.10.0-cp314-cp314-win_amd64.whl", hash = "sha256:b3c94b532f52f95f36fbfde3e178510a4d04eea640b484b2fe8f1491338dc653"}, + {file = "coverage-7.10.0-cp314-cp314-win_arm64.whl", hash = "sha256:2f807f2c3a9da99c80dfa73f09ef5fc3bd21e70c73ba1c538f23396a3a772252"}, + {file = "coverage-7.10.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:0a889ef25215990f65073c32cadf37483363a6a22914186dedc15a6b1a597d50"}, + {file = "coverage-7.10.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:39c638ecf3123805bacbf71aff8091e93af490c676fca10ab4e442375076e483"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f2f2c0df0cbcf7dffa14f88a99c530cdef3f4fcfe935fa4f95d28be2e7ebc570"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:048d19a5d641a2296745ab59f34a27b89a08c48d6d432685f22aac0ec1ea447f"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1209b65d302d7a762004be37ab9396cbd8c99525ed572bdf455477e3a9449e06"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e44aa79a36a7a0aec6ea109905a4a7c28552d90f34e5941b36217ae9556657d5"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:96124be864b89395770c9a14652afcddbcdafb99466f53a9281c51d1466fb741"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:aad222e841f94b42bd1d6be71737fade66943853f0807cf87887c88f70883a2a"}, + {file = "coverage-7.10.0-cp314-cp314t-win32.whl", hash = "sha256:0eed5354d28caa5c8ad60e07e938f253e4b2810ea7dd56784339b6ce98b6f104"}, + {file = "coverage-7.10.0-cp314-cp314t-win_amd64.whl", hash = "sha256:3da35f9980058acb960b2644527cc3911f1e00f94d309d704b309fa984029109"}, + {file = "coverage-7.10.0-cp314-cp314t-win_arm64.whl", hash = "sha256:cb9e138dfa8a4b5c52c92a537651e2ca4f2ca48d8cb1bc01a2cbe7a5773c2426"}, + {file = "coverage-7.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:cf283ec9c6878826291b17442eb5c32d3d252dc77d25e082b460b2d2ea67ba3c"}, + {file = "coverage-7.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:8a83488c9fc6fff487f2ab551f9b64c70672357b8949f0951b0cd778b3ed8165"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:b86df3a7494d12338c11e59f210a0498d6109bbc3a4037f44de517ebb30a9c6b"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:6de9b460809e5e4787b742e786a36ae2346a53982e2be317cdcb7a33c56412fb"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:de5ef8a5954d63fa26a6aaa4600e48f885ce70fe495e8fce2c43aa9241fc9434"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:f178fe5e96f1e057527d5d0b20ab76b8616e0410169c33716cc226118eaf2c4f"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:4a38c42f0182a012fa9ec25bc6057e51114c1ba125be304f3f776d6d283cb303"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:bf09beb5c1785cb36aad042455c0afab561399b74bb8cdaf6e82b7d77322df99"}, + {file = "coverage-7.10.0-cp39-cp39-win32.whl", hash = "sha256:cb8dfbb5d3016cb8d1940444c0c69b40cdc6c8bde724b07716ee5ea47b5273c6"}, + {file = "coverage-7.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:58ff22653cd93d563110d1ff2aef958f5f21be9e917762f8124d0e36f80f172a"}, + {file = "coverage-7.10.0-py3-none-any.whl", hash = "sha256:310a786330bb0463775c21d68e26e79973839b66d29e065c5787122b8dd4489f"}, + {file = "coverage-7.10.0.tar.gz", hash = "sha256:2768885aef484b5dcde56262cbdfba559b770bfc46994fe9485dc3614c7a5867"}, ] [package.dependencies] @@ -328,7 +349,7 @@ testing = ["hatch", "pre-commit", "pytest", "tox"] [[package]] name = "githubkit" -version = "0.12.16" +version = "0.13.0" description = "GitHub SDK for Python" optional = false python-versions = "^3.9" diff --git a/envs/pydantic-v2/poetry.lock b/envs/pydantic-v2/poetry.lock index 7f9c64295..448c3445c 100644 --- a/envs/pydantic-v2/poetry.lock +++ b/envs/pydantic-v2/poetry.lock @@ -156,79 +156,100 @@ files = [ [[package]] name = "coverage" -version = "7.9.2" +version = "7.10.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "coverage-7.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:66283a192a14a3854b2e7f3418d7db05cdf411012ab7ff5db98ff3b181e1f912"}, - {file = "coverage-7.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4e01d138540ef34fcf35c1aa24d06c3de2a4cffa349e29a10056544f35cca15f"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f22627c1fe2745ee98d3ab87679ca73a97e75ca75eb5faee48660d060875465f"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4b1c2d8363247b46bd51f393f86c94096e64a1cf6906803fa8d5a9d03784bdbf"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c10c882b114faf82dbd33e876d0cbd5e1d1ebc0d2a74ceef642c6152f3f4d547"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:de3c0378bdf7066c3988d66cd5232d161e933b87103b014ab1b0b4676098fa45"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:1e2f097eae0e5991e7623958a24ced3282676c93c013dde41399ff63e230fcf2"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:28dc1f67e83a14e7079b6cea4d314bc8b24d1aed42d3582ff89c0295f09b181e"}, - {file = "coverage-7.9.2-cp310-cp310-win32.whl", hash = "sha256:bf7d773da6af9e10dbddacbf4e5cab13d06d0ed93561d44dae0188a42c65be7e"}, - {file = "coverage-7.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:0c0378ba787681ab1897f7c89b415bd56b0b2d9a47e5a3d8dc0ea55aac118d6c"}, - {file = "coverage-7.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a7a56a2964a9687b6aba5b5ced6971af308ef6f79a91043c05dd4ee3ebc3e9ba"}, - {file = "coverage-7.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:123d589f32c11d9be7fe2e66d823a236fe759b0096f5db3fb1b75b2fa414a4fa"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:333b2e0ca576a7dbd66e85ab402e35c03b0b22f525eed82681c4b866e2e2653a"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:326802760da234baf9f2f85a39e4a4b5861b94f6c8d95251f699e4f73b1835dc"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:19e7be4cfec248df38ce40968c95d3952fbffd57b400d4b9bb580f28179556d2"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0b4a4cb73b9f2b891c1788711408ef9707666501ba23684387277ededab1097c"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:2c8937fa16c8c9fbbd9f118588756e7bcdc7e16a470766a9aef912dd3f117dbd"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:42da2280c4d30c57a9b578bafd1d4494fa6c056d4c419d9689e66d775539be74"}, - {file = "coverage-7.9.2-cp311-cp311-win32.whl", hash = "sha256:14fa8d3da147f5fdf9d298cacc18791818f3f1a9f542c8958b80c228320e90c6"}, - {file = "coverage-7.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:549cab4892fc82004f9739963163fd3aac7a7b0df430669b75b86d293d2df2a7"}, - {file = "coverage-7.9.2-cp311-cp311-win_arm64.whl", hash = "sha256:c2667a2b913e307f06aa4e5677f01a9746cd08e4b35e14ebcde6420a9ebb4c62"}, - {file = "coverage-7.9.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ae9eb07f1cfacd9cfe8eaee6f4ff4b8a289a668c39c165cd0c8548484920ffc0"}, - {file = "coverage-7.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ce85551f9a1119f02adc46d3014b5ee3f765deac166acf20dbb851ceb79b6f3"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f8f6389ac977c5fb322e0e38885fbbf901743f79d47f50db706e7644dcdcb6e1"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ff0d9eae8cdfcd58fe7893b88993723583a6ce4dfbfd9f29e001922544f95615"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fae939811e14e53ed8a9818dad51d434a41ee09df9305663735f2e2d2d7d959b"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:31991156251ec202c798501e0a42bbdf2169dcb0f137b1f5c0f4267f3fc68ef9"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:d0d67963f9cbfc7c7f96d4ac74ed60ecbebd2ea6eeb51887af0f8dce205e545f"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:49b752a2858b10580969ec6af6f090a9a440a64a301ac1528d7ca5f7ed497f4d"}, - {file = "coverage-7.9.2-cp312-cp312-win32.whl", hash = "sha256:88d7598b8ee130f32f8a43198ee02edd16d7f77692fa056cb779616bbea1b355"}, - {file = "coverage-7.9.2-cp312-cp312-win_amd64.whl", hash = "sha256:9dfb070f830739ee49d7c83e4941cc767e503e4394fdecb3b54bfdac1d7662c0"}, - {file = "coverage-7.9.2-cp312-cp312-win_arm64.whl", hash = "sha256:4e2c058aef613e79df00e86b6d42a641c877211384ce5bd07585ed7ba71ab31b"}, - {file = "coverage-7.9.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:985abe7f242e0d7bba228ab01070fde1d6c8fa12f142e43debe9ed1dde686038"}, - {file = "coverage-7.9.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82c3939264a76d44fde7f213924021ed31f55ef28111a19649fec90c0f109e6d"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae5d563e970dbe04382f736ec214ef48103d1b875967c89d83c6e3f21706d5b3"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bdd612e59baed2a93c8843c9a7cb902260f181370f1d772f4842987535071d14"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:256ea87cb2a1ed992bcdfc349d8042dcea1b80436f4ddf6e246d6bee4b5d73b6"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f44ae036b63c8ea432f610534a2668b0c3aee810e7037ab9d8ff6883de480f5b"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:82d76ad87c932935417a19b10cfe7abb15fd3f923cfe47dbdaa74ef4e503752d"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:619317bb86de4193debc712b9e59d5cffd91dc1d178627ab2a77b9870deb2868"}, - {file = "coverage-7.9.2-cp313-cp313-win32.whl", hash = "sha256:0a07757de9feb1dfafd16ab651e0f628fd7ce551604d1bf23e47e1ddca93f08a"}, - {file = "coverage-7.9.2-cp313-cp313-win_amd64.whl", hash = "sha256:115db3d1f4d3f35f5bb021e270edd85011934ff97c8797216b62f461dd69374b"}, - {file = "coverage-7.9.2-cp313-cp313-win_arm64.whl", hash = "sha256:48f82f889c80af8b2a7bb6e158d95a3fbec6a3453a1004d04e4f3b5945a02694"}, - {file = "coverage-7.9.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:55a28954545f9d2f96870b40f6c3386a59ba8ed50caf2d949676dac3ecab99f5"}, - {file = "coverage-7.9.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:cdef6504637731a63c133bb2e6f0f0214e2748495ec15fe42d1e219d1b133f0b"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bcd5ebe66c7a97273d5d2ddd4ad0ed2e706b39630ed4b53e713d360626c3dbb3"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9303aed20872d7a3c9cb39c5d2b9bdbe44e3a9a1aecb52920f7e7495410dfab8"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc18ea9e417a04d1920a9a76fe9ebd2f43ca505b81994598482f938d5c315f46"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6406cff19880aaaadc932152242523e892faff224da29e241ce2fca329866584"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:2d0d4f6ecdf37fcc19c88fec3e2277d5dee740fb51ffdd69b9579b8c31e4232e"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c33624f50cf8de418ab2b4d6ca9eda96dc45b2c4231336bac91454520e8d1fac"}, - {file = "coverage-7.9.2-cp313-cp313t-win32.whl", hash = "sha256:1df6b76e737c6a92210eebcb2390af59a141f9e9430210595251fbaf02d46926"}, - {file = "coverage-7.9.2-cp313-cp313t-win_amd64.whl", hash = "sha256:f5fd54310b92741ebe00d9c0d1d7b2b27463952c022da6d47c175d246a98d1bd"}, - {file = "coverage-7.9.2-cp313-cp313t-win_arm64.whl", hash = "sha256:c48c2375287108c887ee87d13b4070a381c6537d30e8487b24ec721bf2a781cb"}, - {file = "coverage-7.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ddc39510ac922a5c4c27849b739f875d3e1d9e590d1e7b64c98dadf037a16cce"}, - {file = "coverage-7.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a535c0c7364acd55229749c2b3e5eebf141865de3a8f697076a3291985f02d30"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df0f9ef28e0f20c767ccdccfc5ae5f83a6f4a2fbdfbcbcc8487a8a78771168c8"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2f3da12e0ccbcb348969221d29441ac714bbddc4d74e13923d3d5a7a0bebef7a"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a17eaf46f56ae0f870f14a3cbc2e4632fe3771eab7f687eda1ee59b73d09fe4"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:669135a9d25df55d1ed56a11bf555f37c922cf08d80799d4f65d77d7d6123fcf"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:9d3a700304d01a627df9db4322dc082a0ce1e8fc74ac238e2af39ced4c083193"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:71ae8b53855644a0b1579d4041304ddc9995c7b21c8a1f16753c4d8903b4dfed"}, - {file = "coverage-7.9.2-cp39-cp39-win32.whl", hash = "sha256:dd7a57b33b5cf27acb491e890720af45db05589a80c1ffc798462a765be6d4d7"}, - {file = "coverage-7.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:f65bb452e579d5540c8b37ec105dd54d8b9307b07bcaa186818c104ffda22441"}, - {file = "coverage-7.9.2-pp39.pp310.pp311-none-any.whl", hash = "sha256:8a1166db2fb62473285bcb092f586e081e92656c7dfa8e9f62b4d39d7e6b5050"}, - {file = "coverage-7.9.2-py3-none-any.whl", hash = "sha256:e425cd5b00f6fc0ed7cdbd766c70be8baab4b7839e4d4fe5fac48581dd968ea4"}, - {file = "coverage-7.9.2.tar.gz", hash = "sha256:997024fa51e3290264ffd7492ec97d0690293ccd2b45a6cd7d82d945a4a80c8b"}, + {file = "coverage-7.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:cbd823f7ea5286c26406ad9e54268544d82f3d1cadb6d4f3b85e9877f0cab1ef"}, + {file = "coverage-7.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ab3f7a5dbaab937df0b9e9e8ec6eab235ba9a6f29d71fd3b24335affaed886cc"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8c63aaf850523d8cbe3f5f1a5c78f689b223797bef902635f2493ab43498f36c"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4c3133ce3fa84023f7c6921c4dca711be0b658784c5a51a797168229eae26172"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3747d1d0af85b17d3a156cd30e4bbacf893815e846dc6c07050e9769da2b138e"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:241923b350437f6a7cb343d9df72998305ef940c3c40009f06e05029a047677c"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:13e82e499309307104d58ac66f9eed237f7aaceab4325416645be34064d9a2be"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:bf73cdde4f6c9cd4457b00bf1696236796ac3a241f859a55e0f84a4c58326a7f"}, + {file = "coverage-7.10.0-cp310-cp310-win32.whl", hash = "sha256:2396e13275b37870a3345f58bce8b15a7e0a985771d13a4b16ce9129954e07d6"}, + {file = "coverage-7.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:9d45c7c71fb3d2da92ab893602e3f28f2d1560cec765a27e1824a6e0f7e92cfd"}, + {file = "coverage-7.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4abc01843581a6f9dd72d4d15761861190973a2305416639435ef509288f7a04"}, + {file = "coverage-7.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2093297773111d7d748fe4a99b68747e57994531fb5c57bbe439af17c11c169"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:58240e27815bf105bd975c2fd42e700839f93d5aad034ef976411193ca32dbfd"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:d019eac999b40ad48521ea057958b07a9f549c0c6d257a20e5c7c4ba91af8d1c"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35e0a1f5454bc80faf4ceab10d1d48f025f92046c9c0f3bec2e1a9dda55137f8"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a93dd7759c416dd1cc754123b926d065055cb9a33b6699e64a1e5bdfae1ff459"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:7b3d737266048368a6ffd68f1ecd662c54de56535c82eb8f98a55ac216a72cbd"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:93227c2707cb0effd9163cd0d8f0d9ab628982f7a3e915d6d64c7107867b9a07"}, + {file = "coverage-7.10.0-cp311-cp311-win32.whl", hash = "sha256:69270af3014ab3058ad6108c6d0e218166f568b5a7a070dc3d62c0a63aca1c4d"}, + {file = "coverage-7.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:43c16bbb661a7b4dafac0ab69e44d6dbcc6a64c4d93aefd89edc6f8911b6ab4a"}, + {file = "coverage-7.10.0-cp311-cp311-win_arm64.whl", hash = "sha256:14e7c23fcb74ed808efb4eb48fcd25a759f0e20f685f83266d1df174860e4733"}, + {file = "coverage-7.10.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a2adcfdaf3b4d69b0c64ad024fe9dd6996782b52790fb6033d90f36f39e287df"}, + {file = "coverage-7.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d7b27c2c0840e8eeff3f1963782bd9d3bc767488d2e67a31de18d724327f9f6"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0ed50429786e935517570b08576a661fd79032e6060985ab492b9d39ba8e66ee"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7171c139ab6571d70460ecf788b1dcaf376bfc75a42e1946b8c031d062bbbad4"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4a726aac7e6e406e403cdee4c443a13aed3ea3d67d856414c5beacac2e70c04e"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2886257481a14e953e96861a00c0fe7151117a523f0470a51e392f00640bba03"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:536578b79521e59c385a2e0a14a5dc2a8edd58761a966d79368413e339fc9535"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77fae95558f7804a9ceefabf3c38ad41af1da92b39781b87197c6440dcaaa967"}, + {file = "coverage-7.10.0-cp312-cp312-win32.whl", hash = "sha256:97803e14736493eb029558e1502fe507bd6a08af277a5c8eeccf05c3e970cb84"}, + {file = "coverage-7.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:4c73ab554e54ffd38d114d6bc4a7115fb0c840cf6d8622211bee3da26e4bd25d"}, + {file = "coverage-7.10.0-cp312-cp312-win_arm64.whl", hash = "sha256:3ae95d5a9aedab853641026b71b2ddd01983a0a7e9bf870a20ef3c8f5d904699"}, + {file = "coverage-7.10.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d883fee92b9245c0120fa25b5d36de71ccd4cfc29735906a448271e935d8d86d"}, + {file = "coverage-7.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c87e59e88268d30e33d3665ede4fbb77b513981a2df0059e7c106ca3de537586"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f669d969f669a11d6ceee0b733e491d9a50573eb92a71ffab13b15f3aa2665d4"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9582bd6c6771300a847d328c1c4204e751dbc339a9e249eecdc48cada41f72e6"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:91f97e9637dc7977842776fdb7ad142075d6fa40bc1b91cb73685265e0d31d32"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ae4fa92b6601a62367c6c9967ad32ad4e28a89af54b6bb37d740946b0e0534dd"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:3a5cc8b97473e7b3623dd17a42d2194a2b49de8afecf8d7d03c8987237a9552c"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:dc1cbb7f623250e047c32bd7aa1bb62ebc62608d5004d74df095e1059141ac88"}, + {file = "coverage-7.10.0-cp313-cp313-win32.whl", hash = "sha256:1380cc5666d778e77f1587cd88cc317158111f44d54c0dd3975f0936993284e0"}, + {file = "coverage-7.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:bf03cf176af098ee578b754a03add4690b82bdfe070adfb5d192d0b1cd15cf82"}, + {file = "coverage-7.10.0-cp313-cp313-win_arm64.whl", hash = "sha256:8041c78cd145088116db2329b2fb6e89dc338116c962fbe654b7e9f5d72ab957"}, + {file = "coverage-7.10.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:37cc2c06052771f48651160c080a86431884db9cd62ba622cab71049b90a95b3"}, + {file = "coverage-7.10.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:91f37270b16178b05fa107d85713d29bf21606e37b652d38646eef5f2dfbd458"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f9b0b0168864d09bcb9a3837548f75121645c4cfd0efce0eb994c221955c5b10"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:df0be435d3b616e7d3ee3f9ebbc0d784a213986fe5dff9c6f1042ee7cfd30157"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35e9aba1c4434b837b1d567a533feba5ce205e8e91179c97974b28a14c23d3a0"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a0b0c481e74dfad631bdc2c883e57d8b058e5c90ba8ef087600995daf7bbec18"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8aec1b7c8922808a433c13cd44ace6fceac0609f4587773f6c8217a06102674b"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:04ec59ceb3a594af0927f2e0d810e1221212abd9a2e6b5b917769ff48760b460"}, + {file = "coverage-7.10.0-cp313-cp313t-win32.whl", hash = "sha256:b6871e62d29646eb9b3f5f92def59e7575daea1587db21f99e2b19561187abda"}, + {file = "coverage-7.10.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ff99cff2be44f78920b76803f782e91ffb46ccc7fa89eccccc0da3ca94285b64"}, + {file = "coverage-7.10.0-cp313-cp313t-win_arm64.whl", hash = "sha256:3246b63501348fe47299d12c47a27cfc221cfbffa1c2d857bcc8151323a4ae4f"}, + {file = "coverage-7.10.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:1f628d91f941a375b4503cb486148dbeeffb48e17bc080e0f0adfee729361574"}, + {file = "coverage-7.10.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3a0e101d5af952d233557e445f42ebace20b06b4ceb615581595ced5386caa78"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:ec4c1abbcc53f9f650acb14ea71725d88246a9e14ed42f8dd1b4e1b694e9d842"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9c95f3a7f041b4cc68a8e3fecfa6366170c13ac773841049f1cd19c8650094e0"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8a2cd597b69c16d24e310611f2ed6fcfb8f09429316038c03a57e7b4f5345244"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:5e18591906a40c2b3609196c9879136aa4a47c5405052ca6b065ab10cb0b71d0"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:485c55744252ed3f300cc1a0f5f365e684a0f2651a7aed301f7a67125906b80e"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4dabea1516e5b0e9577282b149c8015e4dceeb606da66fb8d9d75932d5799bf5"}, + {file = "coverage-7.10.0-cp314-cp314-win32.whl", hash = "sha256:ac455f0537af22333fdc23b824cff81110dff2d47300bb2490f947b7c9a16017"}, + {file = "coverage-7.10.0-cp314-cp314-win_amd64.whl", hash = "sha256:b3c94b532f52f95f36fbfde3e178510a4d04eea640b484b2fe8f1491338dc653"}, + {file = "coverage-7.10.0-cp314-cp314-win_arm64.whl", hash = "sha256:2f807f2c3a9da99c80dfa73f09ef5fc3bd21e70c73ba1c538f23396a3a772252"}, + {file = "coverage-7.10.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:0a889ef25215990f65073c32cadf37483363a6a22914186dedc15a6b1a597d50"}, + {file = "coverage-7.10.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:39c638ecf3123805bacbf71aff8091e93af490c676fca10ab4e442375076e483"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f2f2c0df0cbcf7dffa14f88a99c530cdef3f4fcfe935fa4f95d28be2e7ebc570"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:048d19a5d641a2296745ab59f34a27b89a08c48d6d432685f22aac0ec1ea447f"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1209b65d302d7a762004be37ab9396cbd8c99525ed572bdf455477e3a9449e06"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e44aa79a36a7a0aec6ea109905a4a7c28552d90f34e5941b36217ae9556657d5"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:96124be864b89395770c9a14652afcddbcdafb99466f53a9281c51d1466fb741"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:aad222e841f94b42bd1d6be71737fade66943853f0807cf87887c88f70883a2a"}, + {file = "coverage-7.10.0-cp314-cp314t-win32.whl", hash = "sha256:0eed5354d28caa5c8ad60e07e938f253e4b2810ea7dd56784339b6ce98b6f104"}, + {file = "coverage-7.10.0-cp314-cp314t-win_amd64.whl", hash = "sha256:3da35f9980058acb960b2644527cc3911f1e00f94d309d704b309fa984029109"}, + {file = "coverage-7.10.0-cp314-cp314t-win_arm64.whl", hash = "sha256:cb9e138dfa8a4b5c52c92a537651e2ca4f2ca48d8cb1bc01a2cbe7a5773c2426"}, + {file = "coverage-7.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:cf283ec9c6878826291b17442eb5c32d3d252dc77d25e082b460b2d2ea67ba3c"}, + {file = "coverage-7.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:8a83488c9fc6fff487f2ab551f9b64c70672357b8949f0951b0cd778b3ed8165"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:b86df3a7494d12338c11e59f210a0498d6109bbc3a4037f44de517ebb30a9c6b"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:6de9b460809e5e4787b742e786a36ae2346a53982e2be317cdcb7a33c56412fb"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:de5ef8a5954d63fa26a6aaa4600e48f885ce70fe495e8fce2c43aa9241fc9434"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:f178fe5e96f1e057527d5d0b20ab76b8616e0410169c33716cc226118eaf2c4f"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:4a38c42f0182a012fa9ec25bc6057e51114c1ba125be304f3f776d6d283cb303"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:bf09beb5c1785cb36aad042455c0afab561399b74bb8cdaf6e82b7d77322df99"}, + {file = "coverage-7.10.0-cp39-cp39-win32.whl", hash = "sha256:cb8dfbb5d3016cb8d1940444c0c69b40cdc6c8bde724b07716ee5ea47b5273c6"}, + {file = "coverage-7.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:58ff22653cd93d563110d1ff2aef958f5f21be9e917762f8124d0e36f80f172a"}, + {file = "coverage-7.10.0-py3-none-any.whl", hash = "sha256:310a786330bb0463775c21d68e26e79973839b66d29e065c5787122b8dd4489f"}, + {file = "coverage-7.10.0.tar.gz", hash = "sha256:2768885aef484b5dcde56262cbdfba559b770bfc46994fe9485dc3614c7a5867"}, ] [package.dependencies] @@ -340,7 +361,7 @@ testing = ["hatch", "pre-commit", "pytest", "tox"] [[package]] name = "githubkit" -version = "0.12.16" +version = "0.13.0" description = "GitHub SDK for Python" optional = false python-versions = "^3.9" diff --git a/envs/test/poetry.lock b/envs/test/poetry.lock index 39110d2d8..e576bd83f 100644 --- a/envs/test/poetry.lock +++ b/envs/test/poetry.lock @@ -51,79 +51,100 @@ files = [ [[package]] name = "coverage" -version = "7.9.2" +version = "7.10.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" groups = ["main"] files = [ - {file = "coverage-7.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:66283a192a14a3854b2e7f3418d7db05cdf411012ab7ff5db98ff3b181e1f912"}, - {file = "coverage-7.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4e01d138540ef34fcf35c1aa24d06c3de2a4cffa349e29a10056544f35cca15f"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f22627c1fe2745ee98d3ab87679ca73a97e75ca75eb5faee48660d060875465f"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4b1c2d8363247b46bd51f393f86c94096e64a1cf6906803fa8d5a9d03784bdbf"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c10c882b114faf82dbd33e876d0cbd5e1d1ebc0d2a74ceef642c6152f3f4d547"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:de3c0378bdf7066c3988d66cd5232d161e933b87103b014ab1b0b4676098fa45"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:1e2f097eae0e5991e7623958a24ced3282676c93c013dde41399ff63e230fcf2"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:28dc1f67e83a14e7079b6cea4d314bc8b24d1aed42d3582ff89c0295f09b181e"}, - {file = "coverage-7.9.2-cp310-cp310-win32.whl", hash = "sha256:bf7d773da6af9e10dbddacbf4e5cab13d06d0ed93561d44dae0188a42c65be7e"}, - {file = "coverage-7.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:0c0378ba787681ab1897f7c89b415bd56b0b2d9a47e5a3d8dc0ea55aac118d6c"}, - {file = "coverage-7.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a7a56a2964a9687b6aba5b5ced6971af308ef6f79a91043c05dd4ee3ebc3e9ba"}, - {file = "coverage-7.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:123d589f32c11d9be7fe2e66d823a236fe759b0096f5db3fb1b75b2fa414a4fa"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:333b2e0ca576a7dbd66e85ab402e35c03b0b22f525eed82681c4b866e2e2653a"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:326802760da234baf9f2f85a39e4a4b5861b94f6c8d95251f699e4f73b1835dc"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:19e7be4cfec248df38ce40968c95d3952fbffd57b400d4b9bb580f28179556d2"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0b4a4cb73b9f2b891c1788711408ef9707666501ba23684387277ededab1097c"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:2c8937fa16c8c9fbbd9f118588756e7bcdc7e16a470766a9aef912dd3f117dbd"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:42da2280c4d30c57a9b578bafd1d4494fa6c056d4c419d9689e66d775539be74"}, - {file = "coverage-7.9.2-cp311-cp311-win32.whl", hash = "sha256:14fa8d3da147f5fdf9d298cacc18791818f3f1a9f542c8958b80c228320e90c6"}, - {file = "coverage-7.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:549cab4892fc82004f9739963163fd3aac7a7b0df430669b75b86d293d2df2a7"}, - {file = "coverage-7.9.2-cp311-cp311-win_arm64.whl", hash = "sha256:c2667a2b913e307f06aa4e5677f01a9746cd08e4b35e14ebcde6420a9ebb4c62"}, - {file = "coverage-7.9.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ae9eb07f1cfacd9cfe8eaee6f4ff4b8a289a668c39c165cd0c8548484920ffc0"}, - {file = "coverage-7.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ce85551f9a1119f02adc46d3014b5ee3f765deac166acf20dbb851ceb79b6f3"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f8f6389ac977c5fb322e0e38885fbbf901743f79d47f50db706e7644dcdcb6e1"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ff0d9eae8cdfcd58fe7893b88993723583a6ce4dfbfd9f29e001922544f95615"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fae939811e14e53ed8a9818dad51d434a41ee09df9305663735f2e2d2d7d959b"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:31991156251ec202c798501e0a42bbdf2169dcb0f137b1f5c0f4267f3fc68ef9"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:d0d67963f9cbfc7c7f96d4ac74ed60ecbebd2ea6eeb51887af0f8dce205e545f"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:49b752a2858b10580969ec6af6f090a9a440a64a301ac1528d7ca5f7ed497f4d"}, - {file = "coverage-7.9.2-cp312-cp312-win32.whl", hash = "sha256:88d7598b8ee130f32f8a43198ee02edd16d7f77692fa056cb779616bbea1b355"}, - {file = "coverage-7.9.2-cp312-cp312-win_amd64.whl", hash = "sha256:9dfb070f830739ee49d7c83e4941cc767e503e4394fdecb3b54bfdac1d7662c0"}, - {file = "coverage-7.9.2-cp312-cp312-win_arm64.whl", hash = "sha256:4e2c058aef613e79df00e86b6d42a641c877211384ce5bd07585ed7ba71ab31b"}, - {file = "coverage-7.9.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:985abe7f242e0d7bba228ab01070fde1d6c8fa12f142e43debe9ed1dde686038"}, - {file = "coverage-7.9.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82c3939264a76d44fde7f213924021ed31f55ef28111a19649fec90c0f109e6d"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae5d563e970dbe04382f736ec214ef48103d1b875967c89d83c6e3f21706d5b3"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bdd612e59baed2a93c8843c9a7cb902260f181370f1d772f4842987535071d14"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:256ea87cb2a1ed992bcdfc349d8042dcea1b80436f4ddf6e246d6bee4b5d73b6"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f44ae036b63c8ea432f610534a2668b0c3aee810e7037ab9d8ff6883de480f5b"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:82d76ad87c932935417a19b10cfe7abb15fd3f923cfe47dbdaa74ef4e503752d"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:619317bb86de4193debc712b9e59d5cffd91dc1d178627ab2a77b9870deb2868"}, - {file = "coverage-7.9.2-cp313-cp313-win32.whl", hash = "sha256:0a07757de9feb1dfafd16ab651e0f628fd7ce551604d1bf23e47e1ddca93f08a"}, - {file = "coverage-7.9.2-cp313-cp313-win_amd64.whl", hash = "sha256:115db3d1f4d3f35f5bb021e270edd85011934ff97c8797216b62f461dd69374b"}, - {file = "coverage-7.9.2-cp313-cp313-win_arm64.whl", hash = "sha256:48f82f889c80af8b2a7bb6e158d95a3fbec6a3453a1004d04e4f3b5945a02694"}, - {file = "coverage-7.9.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:55a28954545f9d2f96870b40f6c3386a59ba8ed50caf2d949676dac3ecab99f5"}, - {file = "coverage-7.9.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:cdef6504637731a63c133bb2e6f0f0214e2748495ec15fe42d1e219d1b133f0b"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bcd5ebe66c7a97273d5d2ddd4ad0ed2e706b39630ed4b53e713d360626c3dbb3"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9303aed20872d7a3c9cb39c5d2b9bdbe44e3a9a1aecb52920f7e7495410dfab8"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc18ea9e417a04d1920a9a76fe9ebd2f43ca505b81994598482f938d5c315f46"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6406cff19880aaaadc932152242523e892faff224da29e241ce2fca329866584"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:2d0d4f6ecdf37fcc19c88fec3e2277d5dee740fb51ffdd69b9579b8c31e4232e"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c33624f50cf8de418ab2b4d6ca9eda96dc45b2c4231336bac91454520e8d1fac"}, - {file = "coverage-7.9.2-cp313-cp313t-win32.whl", hash = "sha256:1df6b76e737c6a92210eebcb2390af59a141f9e9430210595251fbaf02d46926"}, - {file = "coverage-7.9.2-cp313-cp313t-win_amd64.whl", hash = "sha256:f5fd54310b92741ebe00d9c0d1d7b2b27463952c022da6d47c175d246a98d1bd"}, - {file = "coverage-7.9.2-cp313-cp313t-win_arm64.whl", hash = "sha256:c48c2375287108c887ee87d13b4070a381c6537d30e8487b24ec721bf2a781cb"}, - {file = "coverage-7.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ddc39510ac922a5c4c27849b739f875d3e1d9e590d1e7b64c98dadf037a16cce"}, - {file = "coverage-7.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a535c0c7364acd55229749c2b3e5eebf141865de3a8f697076a3291985f02d30"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df0f9ef28e0f20c767ccdccfc5ae5f83a6f4a2fbdfbcbcc8487a8a78771168c8"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2f3da12e0ccbcb348969221d29441ac714bbddc4d74e13923d3d5a7a0bebef7a"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a17eaf46f56ae0f870f14a3cbc2e4632fe3771eab7f687eda1ee59b73d09fe4"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:669135a9d25df55d1ed56a11bf555f37c922cf08d80799d4f65d77d7d6123fcf"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:9d3a700304d01a627df9db4322dc082a0ce1e8fc74ac238e2af39ced4c083193"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:71ae8b53855644a0b1579d4041304ddc9995c7b21c8a1f16753c4d8903b4dfed"}, - {file = "coverage-7.9.2-cp39-cp39-win32.whl", hash = "sha256:dd7a57b33b5cf27acb491e890720af45db05589a80c1ffc798462a765be6d4d7"}, - {file = "coverage-7.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:f65bb452e579d5540c8b37ec105dd54d8b9307b07bcaa186818c104ffda22441"}, - {file = "coverage-7.9.2-pp39.pp310.pp311-none-any.whl", hash = "sha256:8a1166db2fb62473285bcb092f586e081e92656c7dfa8e9f62b4d39d7e6b5050"}, - {file = "coverage-7.9.2-py3-none-any.whl", hash = "sha256:e425cd5b00f6fc0ed7cdbd766c70be8baab4b7839e4d4fe5fac48581dd968ea4"}, - {file = "coverage-7.9.2.tar.gz", hash = "sha256:997024fa51e3290264ffd7492ec97d0690293ccd2b45a6cd7d82d945a4a80c8b"}, + {file = "coverage-7.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:cbd823f7ea5286c26406ad9e54268544d82f3d1cadb6d4f3b85e9877f0cab1ef"}, + {file = "coverage-7.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ab3f7a5dbaab937df0b9e9e8ec6eab235ba9a6f29d71fd3b24335affaed886cc"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8c63aaf850523d8cbe3f5f1a5c78f689b223797bef902635f2493ab43498f36c"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4c3133ce3fa84023f7c6921c4dca711be0b658784c5a51a797168229eae26172"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3747d1d0af85b17d3a156cd30e4bbacf893815e846dc6c07050e9769da2b138e"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:241923b350437f6a7cb343d9df72998305ef940c3c40009f06e05029a047677c"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:13e82e499309307104d58ac66f9eed237f7aaceab4325416645be34064d9a2be"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:bf73cdde4f6c9cd4457b00bf1696236796ac3a241f859a55e0f84a4c58326a7f"}, + {file = "coverage-7.10.0-cp310-cp310-win32.whl", hash = "sha256:2396e13275b37870a3345f58bce8b15a7e0a985771d13a4b16ce9129954e07d6"}, + {file = "coverage-7.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:9d45c7c71fb3d2da92ab893602e3f28f2d1560cec765a27e1824a6e0f7e92cfd"}, + {file = "coverage-7.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4abc01843581a6f9dd72d4d15761861190973a2305416639435ef509288f7a04"}, + {file = "coverage-7.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2093297773111d7d748fe4a99b68747e57994531fb5c57bbe439af17c11c169"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:58240e27815bf105bd975c2fd42e700839f93d5aad034ef976411193ca32dbfd"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:d019eac999b40ad48521ea057958b07a9f549c0c6d257a20e5c7c4ba91af8d1c"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35e0a1f5454bc80faf4ceab10d1d48f025f92046c9c0f3bec2e1a9dda55137f8"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a93dd7759c416dd1cc754123b926d065055cb9a33b6699e64a1e5bdfae1ff459"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:7b3d737266048368a6ffd68f1ecd662c54de56535c82eb8f98a55ac216a72cbd"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:93227c2707cb0effd9163cd0d8f0d9ab628982f7a3e915d6d64c7107867b9a07"}, + {file = "coverage-7.10.0-cp311-cp311-win32.whl", hash = "sha256:69270af3014ab3058ad6108c6d0e218166f568b5a7a070dc3d62c0a63aca1c4d"}, + {file = "coverage-7.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:43c16bbb661a7b4dafac0ab69e44d6dbcc6a64c4d93aefd89edc6f8911b6ab4a"}, + {file = "coverage-7.10.0-cp311-cp311-win_arm64.whl", hash = "sha256:14e7c23fcb74ed808efb4eb48fcd25a759f0e20f685f83266d1df174860e4733"}, + {file = "coverage-7.10.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a2adcfdaf3b4d69b0c64ad024fe9dd6996782b52790fb6033d90f36f39e287df"}, + {file = "coverage-7.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d7b27c2c0840e8eeff3f1963782bd9d3bc767488d2e67a31de18d724327f9f6"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0ed50429786e935517570b08576a661fd79032e6060985ab492b9d39ba8e66ee"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7171c139ab6571d70460ecf788b1dcaf376bfc75a42e1946b8c031d062bbbad4"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4a726aac7e6e406e403cdee4c443a13aed3ea3d67d856414c5beacac2e70c04e"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2886257481a14e953e96861a00c0fe7151117a523f0470a51e392f00640bba03"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:536578b79521e59c385a2e0a14a5dc2a8edd58761a966d79368413e339fc9535"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77fae95558f7804a9ceefabf3c38ad41af1da92b39781b87197c6440dcaaa967"}, + {file = "coverage-7.10.0-cp312-cp312-win32.whl", hash = "sha256:97803e14736493eb029558e1502fe507bd6a08af277a5c8eeccf05c3e970cb84"}, + {file = "coverage-7.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:4c73ab554e54ffd38d114d6bc4a7115fb0c840cf6d8622211bee3da26e4bd25d"}, + {file = "coverage-7.10.0-cp312-cp312-win_arm64.whl", hash = "sha256:3ae95d5a9aedab853641026b71b2ddd01983a0a7e9bf870a20ef3c8f5d904699"}, + {file = "coverage-7.10.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d883fee92b9245c0120fa25b5d36de71ccd4cfc29735906a448271e935d8d86d"}, + {file = "coverage-7.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c87e59e88268d30e33d3665ede4fbb77b513981a2df0059e7c106ca3de537586"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f669d969f669a11d6ceee0b733e491d9a50573eb92a71ffab13b15f3aa2665d4"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9582bd6c6771300a847d328c1c4204e751dbc339a9e249eecdc48cada41f72e6"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:91f97e9637dc7977842776fdb7ad142075d6fa40bc1b91cb73685265e0d31d32"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ae4fa92b6601a62367c6c9967ad32ad4e28a89af54b6bb37d740946b0e0534dd"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:3a5cc8b97473e7b3623dd17a42d2194a2b49de8afecf8d7d03c8987237a9552c"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:dc1cbb7f623250e047c32bd7aa1bb62ebc62608d5004d74df095e1059141ac88"}, + {file = "coverage-7.10.0-cp313-cp313-win32.whl", hash = "sha256:1380cc5666d778e77f1587cd88cc317158111f44d54c0dd3975f0936993284e0"}, + {file = "coverage-7.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:bf03cf176af098ee578b754a03add4690b82bdfe070adfb5d192d0b1cd15cf82"}, + {file = "coverage-7.10.0-cp313-cp313-win_arm64.whl", hash = "sha256:8041c78cd145088116db2329b2fb6e89dc338116c962fbe654b7e9f5d72ab957"}, + {file = "coverage-7.10.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:37cc2c06052771f48651160c080a86431884db9cd62ba622cab71049b90a95b3"}, + {file = "coverage-7.10.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:91f37270b16178b05fa107d85713d29bf21606e37b652d38646eef5f2dfbd458"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f9b0b0168864d09bcb9a3837548f75121645c4cfd0efce0eb994c221955c5b10"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:df0be435d3b616e7d3ee3f9ebbc0d784a213986fe5dff9c6f1042ee7cfd30157"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35e9aba1c4434b837b1d567a533feba5ce205e8e91179c97974b28a14c23d3a0"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a0b0c481e74dfad631bdc2c883e57d8b058e5c90ba8ef087600995daf7bbec18"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8aec1b7c8922808a433c13cd44ace6fceac0609f4587773f6c8217a06102674b"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:04ec59ceb3a594af0927f2e0d810e1221212abd9a2e6b5b917769ff48760b460"}, + {file = "coverage-7.10.0-cp313-cp313t-win32.whl", hash = "sha256:b6871e62d29646eb9b3f5f92def59e7575daea1587db21f99e2b19561187abda"}, + {file = "coverage-7.10.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ff99cff2be44f78920b76803f782e91ffb46ccc7fa89eccccc0da3ca94285b64"}, + {file = "coverage-7.10.0-cp313-cp313t-win_arm64.whl", hash = "sha256:3246b63501348fe47299d12c47a27cfc221cfbffa1c2d857bcc8151323a4ae4f"}, + {file = "coverage-7.10.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:1f628d91f941a375b4503cb486148dbeeffb48e17bc080e0f0adfee729361574"}, + {file = "coverage-7.10.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3a0e101d5af952d233557e445f42ebace20b06b4ceb615581595ced5386caa78"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:ec4c1abbcc53f9f650acb14ea71725d88246a9e14ed42f8dd1b4e1b694e9d842"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9c95f3a7f041b4cc68a8e3fecfa6366170c13ac773841049f1cd19c8650094e0"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8a2cd597b69c16d24e310611f2ed6fcfb8f09429316038c03a57e7b4f5345244"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:5e18591906a40c2b3609196c9879136aa4a47c5405052ca6b065ab10cb0b71d0"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:485c55744252ed3f300cc1a0f5f365e684a0f2651a7aed301f7a67125906b80e"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4dabea1516e5b0e9577282b149c8015e4dceeb606da66fb8d9d75932d5799bf5"}, + {file = "coverage-7.10.0-cp314-cp314-win32.whl", hash = "sha256:ac455f0537af22333fdc23b824cff81110dff2d47300bb2490f947b7c9a16017"}, + {file = "coverage-7.10.0-cp314-cp314-win_amd64.whl", hash = "sha256:b3c94b532f52f95f36fbfde3e178510a4d04eea640b484b2fe8f1491338dc653"}, + {file = "coverage-7.10.0-cp314-cp314-win_arm64.whl", hash = "sha256:2f807f2c3a9da99c80dfa73f09ef5fc3bd21e70c73ba1c538f23396a3a772252"}, + {file = "coverage-7.10.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:0a889ef25215990f65073c32cadf37483363a6a22914186dedc15a6b1a597d50"}, + {file = "coverage-7.10.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:39c638ecf3123805bacbf71aff8091e93af490c676fca10ab4e442375076e483"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f2f2c0df0cbcf7dffa14f88a99c530cdef3f4fcfe935fa4f95d28be2e7ebc570"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:048d19a5d641a2296745ab59f34a27b89a08c48d6d432685f22aac0ec1ea447f"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1209b65d302d7a762004be37ab9396cbd8c99525ed572bdf455477e3a9449e06"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e44aa79a36a7a0aec6ea109905a4a7c28552d90f34e5941b36217ae9556657d5"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:96124be864b89395770c9a14652afcddbcdafb99466f53a9281c51d1466fb741"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:aad222e841f94b42bd1d6be71737fade66943853f0807cf87887c88f70883a2a"}, + {file = "coverage-7.10.0-cp314-cp314t-win32.whl", hash = "sha256:0eed5354d28caa5c8ad60e07e938f253e4b2810ea7dd56784339b6ce98b6f104"}, + {file = "coverage-7.10.0-cp314-cp314t-win_amd64.whl", hash = "sha256:3da35f9980058acb960b2644527cc3911f1e00f94d309d704b309fa984029109"}, + {file = "coverage-7.10.0-cp314-cp314t-win_arm64.whl", hash = "sha256:cb9e138dfa8a4b5c52c92a537651e2ca4f2ca48d8cb1bc01a2cbe7a5773c2426"}, + {file = "coverage-7.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:cf283ec9c6878826291b17442eb5c32d3d252dc77d25e082b460b2d2ea67ba3c"}, + {file = "coverage-7.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:8a83488c9fc6fff487f2ab551f9b64c70672357b8949f0951b0cd778b3ed8165"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:b86df3a7494d12338c11e59f210a0498d6109bbc3a4037f44de517ebb30a9c6b"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:6de9b460809e5e4787b742e786a36ae2346a53982e2be317cdcb7a33c56412fb"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:de5ef8a5954d63fa26a6aaa4600e48f885ce70fe495e8fce2c43aa9241fc9434"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:f178fe5e96f1e057527d5d0b20ab76b8616e0410169c33716cc226118eaf2c4f"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:4a38c42f0182a012fa9ec25bc6057e51114c1ba125be304f3f776d6d283cb303"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:bf09beb5c1785cb36aad042455c0afab561399b74bb8cdaf6e82b7d77322df99"}, + {file = "coverage-7.10.0-cp39-cp39-win32.whl", hash = "sha256:cb8dfbb5d3016cb8d1940444c0c69b40cdc6c8bde724b07716ee5ea47b5273c6"}, + {file = "coverage-7.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:58ff22653cd93d563110d1ff2aef958f5f21be9e917762f8124d0e36f80f172a"}, + {file = "coverage-7.10.0-py3-none-any.whl", hash = "sha256:310a786330bb0463775c21d68e26e79973839b66d29e065c5787122b8dd4489f"}, + {file = "coverage-7.10.0.tar.gz", hash = "sha256:2768885aef484b5dcde56262cbdfba559b770bfc46994fe9485dc3614c7a5867"}, ] [package.dependencies] diff --git a/poetry.lock b/poetry.lock index 1a3144005..3518b2456 100644 --- a/poetry.lock +++ b/poetry.lock @@ -320,79 +320,100 @@ markers = {test = "sys_platform == \"win32\""} [[package]] name = "coverage" -version = "7.9.2" +version = "7.10.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" groups = ["test"] files = [ - {file = "coverage-7.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:66283a192a14a3854b2e7f3418d7db05cdf411012ab7ff5db98ff3b181e1f912"}, - {file = "coverage-7.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4e01d138540ef34fcf35c1aa24d06c3de2a4cffa349e29a10056544f35cca15f"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f22627c1fe2745ee98d3ab87679ca73a97e75ca75eb5faee48660d060875465f"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4b1c2d8363247b46bd51f393f86c94096e64a1cf6906803fa8d5a9d03784bdbf"}, - {file = "coverage-7.9.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c10c882b114faf82dbd33e876d0cbd5e1d1ebc0d2a74ceef642c6152f3f4d547"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:de3c0378bdf7066c3988d66cd5232d161e933b87103b014ab1b0b4676098fa45"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:1e2f097eae0e5991e7623958a24ced3282676c93c013dde41399ff63e230fcf2"}, - {file = "coverage-7.9.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:28dc1f67e83a14e7079b6cea4d314bc8b24d1aed42d3582ff89c0295f09b181e"}, - {file = "coverage-7.9.2-cp310-cp310-win32.whl", hash = "sha256:bf7d773da6af9e10dbddacbf4e5cab13d06d0ed93561d44dae0188a42c65be7e"}, - {file = "coverage-7.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:0c0378ba787681ab1897f7c89b415bd56b0b2d9a47e5a3d8dc0ea55aac118d6c"}, - {file = "coverage-7.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a7a56a2964a9687b6aba5b5ced6971af308ef6f79a91043c05dd4ee3ebc3e9ba"}, - {file = "coverage-7.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:123d589f32c11d9be7fe2e66d823a236fe759b0096f5db3fb1b75b2fa414a4fa"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:333b2e0ca576a7dbd66e85ab402e35c03b0b22f525eed82681c4b866e2e2653a"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:326802760da234baf9f2f85a39e4a4b5861b94f6c8d95251f699e4f73b1835dc"}, - {file = "coverage-7.9.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:19e7be4cfec248df38ce40968c95d3952fbffd57b400d4b9bb580f28179556d2"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0b4a4cb73b9f2b891c1788711408ef9707666501ba23684387277ededab1097c"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:2c8937fa16c8c9fbbd9f118588756e7bcdc7e16a470766a9aef912dd3f117dbd"}, - {file = "coverage-7.9.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:42da2280c4d30c57a9b578bafd1d4494fa6c056d4c419d9689e66d775539be74"}, - {file = "coverage-7.9.2-cp311-cp311-win32.whl", hash = "sha256:14fa8d3da147f5fdf9d298cacc18791818f3f1a9f542c8958b80c228320e90c6"}, - {file = "coverage-7.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:549cab4892fc82004f9739963163fd3aac7a7b0df430669b75b86d293d2df2a7"}, - {file = "coverage-7.9.2-cp311-cp311-win_arm64.whl", hash = "sha256:c2667a2b913e307f06aa4e5677f01a9746cd08e4b35e14ebcde6420a9ebb4c62"}, - {file = "coverage-7.9.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ae9eb07f1cfacd9cfe8eaee6f4ff4b8a289a668c39c165cd0c8548484920ffc0"}, - {file = "coverage-7.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ce85551f9a1119f02adc46d3014b5ee3f765deac166acf20dbb851ceb79b6f3"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f8f6389ac977c5fb322e0e38885fbbf901743f79d47f50db706e7644dcdcb6e1"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ff0d9eae8cdfcd58fe7893b88993723583a6ce4dfbfd9f29e001922544f95615"}, - {file = "coverage-7.9.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fae939811e14e53ed8a9818dad51d434a41ee09df9305663735f2e2d2d7d959b"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:31991156251ec202c798501e0a42bbdf2169dcb0f137b1f5c0f4267f3fc68ef9"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:d0d67963f9cbfc7c7f96d4ac74ed60ecbebd2ea6eeb51887af0f8dce205e545f"}, - {file = "coverage-7.9.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:49b752a2858b10580969ec6af6f090a9a440a64a301ac1528d7ca5f7ed497f4d"}, - {file = "coverage-7.9.2-cp312-cp312-win32.whl", hash = "sha256:88d7598b8ee130f32f8a43198ee02edd16d7f77692fa056cb779616bbea1b355"}, - {file = "coverage-7.9.2-cp312-cp312-win_amd64.whl", hash = "sha256:9dfb070f830739ee49d7c83e4941cc767e503e4394fdecb3b54bfdac1d7662c0"}, - {file = "coverage-7.9.2-cp312-cp312-win_arm64.whl", hash = "sha256:4e2c058aef613e79df00e86b6d42a641c877211384ce5bd07585ed7ba71ab31b"}, - {file = "coverage-7.9.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:985abe7f242e0d7bba228ab01070fde1d6c8fa12f142e43debe9ed1dde686038"}, - {file = "coverage-7.9.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82c3939264a76d44fde7f213924021ed31f55ef28111a19649fec90c0f109e6d"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae5d563e970dbe04382f736ec214ef48103d1b875967c89d83c6e3f21706d5b3"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bdd612e59baed2a93c8843c9a7cb902260f181370f1d772f4842987535071d14"}, - {file = "coverage-7.9.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:256ea87cb2a1ed992bcdfc349d8042dcea1b80436f4ddf6e246d6bee4b5d73b6"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f44ae036b63c8ea432f610534a2668b0c3aee810e7037ab9d8ff6883de480f5b"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:82d76ad87c932935417a19b10cfe7abb15fd3f923cfe47dbdaa74ef4e503752d"}, - {file = "coverage-7.9.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:619317bb86de4193debc712b9e59d5cffd91dc1d178627ab2a77b9870deb2868"}, - {file = "coverage-7.9.2-cp313-cp313-win32.whl", hash = "sha256:0a07757de9feb1dfafd16ab651e0f628fd7ce551604d1bf23e47e1ddca93f08a"}, - {file = "coverage-7.9.2-cp313-cp313-win_amd64.whl", hash = "sha256:115db3d1f4d3f35f5bb021e270edd85011934ff97c8797216b62f461dd69374b"}, - {file = "coverage-7.9.2-cp313-cp313-win_arm64.whl", hash = "sha256:48f82f889c80af8b2a7bb6e158d95a3fbec6a3453a1004d04e4f3b5945a02694"}, - {file = "coverage-7.9.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:55a28954545f9d2f96870b40f6c3386a59ba8ed50caf2d949676dac3ecab99f5"}, - {file = "coverage-7.9.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:cdef6504637731a63c133bb2e6f0f0214e2748495ec15fe42d1e219d1b133f0b"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bcd5ebe66c7a97273d5d2ddd4ad0ed2e706b39630ed4b53e713d360626c3dbb3"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9303aed20872d7a3c9cb39c5d2b9bdbe44e3a9a1aecb52920f7e7495410dfab8"}, - {file = "coverage-7.9.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc18ea9e417a04d1920a9a76fe9ebd2f43ca505b81994598482f938d5c315f46"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6406cff19880aaaadc932152242523e892faff224da29e241ce2fca329866584"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:2d0d4f6ecdf37fcc19c88fec3e2277d5dee740fb51ffdd69b9579b8c31e4232e"}, - {file = "coverage-7.9.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c33624f50cf8de418ab2b4d6ca9eda96dc45b2c4231336bac91454520e8d1fac"}, - {file = "coverage-7.9.2-cp313-cp313t-win32.whl", hash = "sha256:1df6b76e737c6a92210eebcb2390af59a141f9e9430210595251fbaf02d46926"}, - {file = "coverage-7.9.2-cp313-cp313t-win_amd64.whl", hash = "sha256:f5fd54310b92741ebe00d9c0d1d7b2b27463952c022da6d47c175d246a98d1bd"}, - {file = "coverage-7.9.2-cp313-cp313t-win_arm64.whl", hash = "sha256:c48c2375287108c887ee87d13b4070a381c6537d30e8487b24ec721bf2a781cb"}, - {file = "coverage-7.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ddc39510ac922a5c4c27849b739f875d3e1d9e590d1e7b64c98dadf037a16cce"}, - {file = "coverage-7.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a535c0c7364acd55229749c2b3e5eebf141865de3a8f697076a3291985f02d30"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df0f9ef28e0f20c767ccdccfc5ae5f83a6f4a2fbdfbcbcc8487a8a78771168c8"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2f3da12e0ccbcb348969221d29441ac714bbddc4d74e13923d3d5a7a0bebef7a"}, - {file = "coverage-7.9.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a17eaf46f56ae0f870f14a3cbc2e4632fe3771eab7f687eda1ee59b73d09fe4"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:669135a9d25df55d1ed56a11bf555f37c922cf08d80799d4f65d77d7d6123fcf"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:9d3a700304d01a627df9db4322dc082a0ce1e8fc74ac238e2af39ced4c083193"}, - {file = "coverage-7.9.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:71ae8b53855644a0b1579d4041304ddc9995c7b21c8a1f16753c4d8903b4dfed"}, - {file = "coverage-7.9.2-cp39-cp39-win32.whl", hash = "sha256:dd7a57b33b5cf27acb491e890720af45db05589a80c1ffc798462a765be6d4d7"}, - {file = "coverage-7.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:f65bb452e579d5540c8b37ec105dd54d8b9307b07bcaa186818c104ffda22441"}, - {file = "coverage-7.9.2-pp39.pp310.pp311-none-any.whl", hash = "sha256:8a1166db2fb62473285bcb092f586e081e92656c7dfa8e9f62b4d39d7e6b5050"}, - {file = "coverage-7.9.2-py3-none-any.whl", hash = "sha256:e425cd5b00f6fc0ed7cdbd766c70be8baab4b7839e4d4fe5fac48581dd968ea4"}, - {file = "coverage-7.9.2.tar.gz", hash = "sha256:997024fa51e3290264ffd7492ec97d0690293ccd2b45a6cd7d82d945a4a80c8b"}, + {file = "coverage-7.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:cbd823f7ea5286c26406ad9e54268544d82f3d1cadb6d4f3b85e9877f0cab1ef"}, + {file = "coverage-7.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ab3f7a5dbaab937df0b9e9e8ec6eab235ba9a6f29d71fd3b24335affaed886cc"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8c63aaf850523d8cbe3f5f1a5c78f689b223797bef902635f2493ab43498f36c"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4c3133ce3fa84023f7c6921c4dca711be0b658784c5a51a797168229eae26172"}, + {file = "coverage-7.10.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3747d1d0af85b17d3a156cd30e4bbacf893815e846dc6c07050e9769da2b138e"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:241923b350437f6a7cb343d9df72998305ef940c3c40009f06e05029a047677c"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:13e82e499309307104d58ac66f9eed237f7aaceab4325416645be34064d9a2be"}, + {file = "coverage-7.10.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:bf73cdde4f6c9cd4457b00bf1696236796ac3a241f859a55e0f84a4c58326a7f"}, + {file = "coverage-7.10.0-cp310-cp310-win32.whl", hash = "sha256:2396e13275b37870a3345f58bce8b15a7e0a985771d13a4b16ce9129954e07d6"}, + {file = "coverage-7.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:9d45c7c71fb3d2da92ab893602e3f28f2d1560cec765a27e1824a6e0f7e92cfd"}, + {file = "coverage-7.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4abc01843581a6f9dd72d4d15761861190973a2305416639435ef509288f7a04"}, + {file = "coverage-7.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2093297773111d7d748fe4a99b68747e57994531fb5c57bbe439af17c11c169"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:58240e27815bf105bd975c2fd42e700839f93d5aad034ef976411193ca32dbfd"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:d019eac999b40ad48521ea057958b07a9f549c0c6d257a20e5c7c4ba91af8d1c"}, + {file = "coverage-7.10.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35e0a1f5454bc80faf4ceab10d1d48f025f92046c9c0f3bec2e1a9dda55137f8"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a93dd7759c416dd1cc754123b926d065055cb9a33b6699e64a1e5bdfae1ff459"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:7b3d737266048368a6ffd68f1ecd662c54de56535c82eb8f98a55ac216a72cbd"}, + {file = "coverage-7.10.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:93227c2707cb0effd9163cd0d8f0d9ab628982f7a3e915d6d64c7107867b9a07"}, + {file = "coverage-7.10.0-cp311-cp311-win32.whl", hash = "sha256:69270af3014ab3058ad6108c6d0e218166f568b5a7a070dc3d62c0a63aca1c4d"}, + {file = "coverage-7.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:43c16bbb661a7b4dafac0ab69e44d6dbcc6a64c4d93aefd89edc6f8911b6ab4a"}, + {file = "coverage-7.10.0-cp311-cp311-win_arm64.whl", hash = "sha256:14e7c23fcb74ed808efb4eb48fcd25a759f0e20f685f83266d1df174860e4733"}, + {file = "coverage-7.10.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a2adcfdaf3b4d69b0c64ad024fe9dd6996782b52790fb6033d90f36f39e287df"}, + {file = "coverage-7.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d7b27c2c0840e8eeff3f1963782bd9d3bc767488d2e67a31de18d724327f9f6"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0ed50429786e935517570b08576a661fd79032e6060985ab492b9d39ba8e66ee"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7171c139ab6571d70460ecf788b1dcaf376bfc75a42e1946b8c031d062bbbad4"}, + {file = "coverage-7.10.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4a726aac7e6e406e403cdee4c443a13aed3ea3d67d856414c5beacac2e70c04e"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2886257481a14e953e96861a00c0fe7151117a523f0470a51e392f00640bba03"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:536578b79521e59c385a2e0a14a5dc2a8edd58761a966d79368413e339fc9535"}, + {file = "coverage-7.10.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77fae95558f7804a9ceefabf3c38ad41af1da92b39781b87197c6440dcaaa967"}, + {file = "coverage-7.10.0-cp312-cp312-win32.whl", hash = "sha256:97803e14736493eb029558e1502fe507bd6a08af277a5c8eeccf05c3e970cb84"}, + {file = "coverage-7.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:4c73ab554e54ffd38d114d6bc4a7115fb0c840cf6d8622211bee3da26e4bd25d"}, + {file = "coverage-7.10.0-cp312-cp312-win_arm64.whl", hash = "sha256:3ae95d5a9aedab853641026b71b2ddd01983a0a7e9bf870a20ef3c8f5d904699"}, + {file = "coverage-7.10.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d883fee92b9245c0120fa25b5d36de71ccd4cfc29735906a448271e935d8d86d"}, + {file = "coverage-7.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c87e59e88268d30e33d3665ede4fbb77b513981a2df0059e7c106ca3de537586"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f669d969f669a11d6ceee0b733e491d9a50573eb92a71ffab13b15f3aa2665d4"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9582bd6c6771300a847d328c1c4204e751dbc339a9e249eecdc48cada41f72e6"}, + {file = "coverage-7.10.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:91f97e9637dc7977842776fdb7ad142075d6fa40bc1b91cb73685265e0d31d32"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ae4fa92b6601a62367c6c9967ad32ad4e28a89af54b6bb37d740946b0e0534dd"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:3a5cc8b97473e7b3623dd17a42d2194a2b49de8afecf8d7d03c8987237a9552c"}, + {file = "coverage-7.10.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:dc1cbb7f623250e047c32bd7aa1bb62ebc62608d5004d74df095e1059141ac88"}, + {file = "coverage-7.10.0-cp313-cp313-win32.whl", hash = "sha256:1380cc5666d778e77f1587cd88cc317158111f44d54c0dd3975f0936993284e0"}, + {file = "coverage-7.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:bf03cf176af098ee578b754a03add4690b82bdfe070adfb5d192d0b1cd15cf82"}, + {file = "coverage-7.10.0-cp313-cp313-win_arm64.whl", hash = "sha256:8041c78cd145088116db2329b2fb6e89dc338116c962fbe654b7e9f5d72ab957"}, + {file = "coverage-7.10.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:37cc2c06052771f48651160c080a86431884db9cd62ba622cab71049b90a95b3"}, + {file = "coverage-7.10.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:91f37270b16178b05fa107d85713d29bf21606e37b652d38646eef5f2dfbd458"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f9b0b0168864d09bcb9a3837548f75121645c4cfd0efce0eb994c221955c5b10"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:df0be435d3b616e7d3ee3f9ebbc0d784a213986fe5dff9c6f1042ee7cfd30157"}, + {file = "coverage-7.10.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35e9aba1c4434b837b1d567a533feba5ce205e8e91179c97974b28a14c23d3a0"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a0b0c481e74dfad631bdc2c883e57d8b058e5c90ba8ef087600995daf7bbec18"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8aec1b7c8922808a433c13cd44ace6fceac0609f4587773f6c8217a06102674b"}, + {file = "coverage-7.10.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:04ec59ceb3a594af0927f2e0d810e1221212abd9a2e6b5b917769ff48760b460"}, + {file = "coverage-7.10.0-cp313-cp313t-win32.whl", hash = "sha256:b6871e62d29646eb9b3f5f92def59e7575daea1587db21f99e2b19561187abda"}, + {file = "coverage-7.10.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ff99cff2be44f78920b76803f782e91ffb46ccc7fa89eccccc0da3ca94285b64"}, + {file = "coverage-7.10.0-cp313-cp313t-win_arm64.whl", hash = "sha256:3246b63501348fe47299d12c47a27cfc221cfbffa1c2d857bcc8151323a4ae4f"}, + {file = "coverage-7.10.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:1f628d91f941a375b4503cb486148dbeeffb48e17bc080e0f0adfee729361574"}, + {file = "coverage-7.10.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3a0e101d5af952d233557e445f42ebace20b06b4ceb615581595ced5386caa78"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:ec4c1abbcc53f9f650acb14ea71725d88246a9e14ed42f8dd1b4e1b694e9d842"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9c95f3a7f041b4cc68a8e3fecfa6366170c13ac773841049f1cd19c8650094e0"}, + {file = "coverage-7.10.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8a2cd597b69c16d24e310611f2ed6fcfb8f09429316038c03a57e7b4f5345244"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:5e18591906a40c2b3609196c9879136aa4a47c5405052ca6b065ab10cb0b71d0"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:485c55744252ed3f300cc1a0f5f365e684a0f2651a7aed301f7a67125906b80e"}, + {file = "coverage-7.10.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4dabea1516e5b0e9577282b149c8015e4dceeb606da66fb8d9d75932d5799bf5"}, + {file = "coverage-7.10.0-cp314-cp314-win32.whl", hash = "sha256:ac455f0537af22333fdc23b824cff81110dff2d47300bb2490f947b7c9a16017"}, + {file = "coverage-7.10.0-cp314-cp314-win_amd64.whl", hash = "sha256:b3c94b532f52f95f36fbfde3e178510a4d04eea640b484b2fe8f1491338dc653"}, + {file = "coverage-7.10.0-cp314-cp314-win_arm64.whl", hash = "sha256:2f807f2c3a9da99c80dfa73f09ef5fc3bd21e70c73ba1c538f23396a3a772252"}, + {file = "coverage-7.10.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:0a889ef25215990f65073c32cadf37483363a6a22914186dedc15a6b1a597d50"}, + {file = "coverage-7.10.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:39c638ecf3123805bacbf71aff8091e93af490c676fca10ab4e442375076e483"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f2f2c0df0cbcf7dffa14f88a99c530cdef3f4fcfe935fa4f95d28be2e7ebc570"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:048d19a5d641a2296745ab59f34a27b89a08c48d6d432685f22aac0ec1ea447f"}, + {file = "coverage-7.10.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1209b65d302d7a762004be37ab9396cbd8c99525ed572bdf455477e3a9449e06"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e44aa79a36a7a0aec6ea109905a4a7c28552d90f34e5941b36217ae9556657d5"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:96124be864b89395770c9a14652afcddbcdafb99466f53a9281c51d1466fb741"}, + {file = "coverage-7.10.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:aad222e841f94b42bd1d6be71737fade66943853f0807cf87887c88f70883a2a"}, + {file = "coverage-7.10.0-cp314-cp314t-win32.whl", hash = "sha256:0eed5354d28caa5c8ad60e07e938f253e4b2810ea7dd56784339b6ce98b6f104"}, + {file = "coverage-7.10.0-cp314-cp314t-win_amd64.whl", hash = "sha256:3da35f9980058acb960b2644527cc3911f1e00f94d309d704b309fa984029109"}, + {file = "coverage-7.10.0-cp314-cp314t-win_arm64.whl", hash = "sha256:cb9e138dfa8a4b5c52c92a537651e2ca4f2ca48d8cb1bc01a2cbe7a5773c2426"}, + {file = "coverage-7.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:cf283ec9c6878826291b17442eb5c32d3d252dc77d25e082b460b2d2ea67ba3c"}, + {file = "coverage-7.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:8a83488c9fc6fff487f2ab551f9b64c70672357b8949f0951b0cd778b3ed8165"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:b86df3a7494d12338c11e59f210a0498d6109bbc3a4037f44de517ebb30a9c6b"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:6de9b460809e5e4787b742e786a36ae2346a53982e2be317cdcb7a33c56412fb"}, + {file = "coverage-7.10.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:de5ef8a5954d63fa26a6aaa4600e48f885ce70fe495e8fce2c43aa9241fc9434"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:f178fe5e96f1e057527d5d0b20ab76b8616e0410169c33716cc226118eaf2c4f"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:4a38c42f0182a012fa9ec25bc6057e51114c1ba125be304f3f776d6d283cb303"}, + {file = "coverage-7.10.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:bf09beb5c1785cb36aad042455c0afab561399b74bb8cdaf6e82b7d77322df99"}, + {file = "coverage-7.10.0-cp39-cp39-win32.whl", hash = "sha256:cb8dfbb5d3016cb8d1940444c0c69b40cdc6c8bde724b07716ee5ea47b5273c6"}, + {file = "coverage-7.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:58ff22653cd93d563110d1ff2aef958f5f21be9e917762f8124d0e36f80f172a"}, + {file = "coverage-7.10.0-py3-none-any.whl", hash = "sha256:310a786330bb0463775c21d68e26e79973839b66d29e065c5787122b8dd4489f"}, + {file = "coverage-7.10.0.tar.gz", hash = "sha256:2768885aef484b5dcde56262cbdfba559b770bfc46994fe9485dc3614c7a5867"}, ] [package.dependencies] @@ -471,14 +492,14 @@ test-randomorder = ["pytest-randomly"] [[package]] name = "distlib" -version = "0.3.9" +version = "0.4.0" description = "Distribution utilities" optional = false python-versions = "*" groups = ["dev"] files = [ - {file = "distlib-0.3.9-py2.py3-none-any.whl", hash = "sha256:47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87"}, - {file = "distlib-0.3.9.tar.gz", hash = "sha256:a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403"}, + {file = "distlib-0.4.0-py2.py3-none-any.whl", hash = "sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16"}, + {file = "distlib-0.4.0.tar.gz", hash = "sha256:feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d"}, ] [[package]] @@ -589,18 +610,19 @@ url = "envs/test" [[package]] name = "gitpython" -version = "3.1.44" +version = "3.1.45" description = "GitPython is a Python library used to interact with Git repositories" optional = false python-versions = ">=3.7" groups = ["docs"] files = [ - {file = "GitPython-3.1.44-py3-none-any.whl", hash = "sha256:9e0e10cda9bed1ee64bc9a6de50e7e38a9c9943241cd7f585f6df3ed28011110"}, - {file = "gitpython-3.1.44.tar.gz", hash = "sha256:c87e30b26253bf5418b01b0660f818967f3c503193838337fe5e573331249269"}, + {file = "gitpython-3.1.45-py3-none-any.whl", hash = "sha256:8908cb2e02fb3b93b7eb0f2827125cb699869470432cc885f019b8fd0fccff77"}, + {file = "gitpython-3.1.45.tar.gz", hash = "sha256:85b0ee964ceddf211c41b9f27a49086010a190fd8132a24e21f362a4b36a791c"}, ] [package.dependencies] gitdb = ">=4.0.1,<5" +typing-extensions = {version = ">=3.10.0.2", markers = "python_version < \"3.10\""} [package.extras] doc = ["sphinx (>=7.1.2,<7.2)", "sphinx-autodoc-typehints", "sphinx_rtd_theme"] @@ -1593,30 +1615,30 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] [[package]] name = "ruff" -version = "0.12.3" +version = "0.12.5" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" groups = ["dev"] files = [ - {file = "ruff-0.12.3-py3-none-linux_armv6l.whl", hash = "sha256:47552138f7206454eaf0c4fe827e546e9ddac62c2a3d2585ca54d29a890137a2"}, - {file = "ruff-0.12.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:0a9153b000c6fe169bb307f5bd1b691221c4286c133407b8827c406a55282041"}, - {file = "ruff-0.12.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:fa6b24600cf3b750e48ddb6057e901dd5b9aa426e316addb2a1af185a7509882"}, - {file = "ruff-0.12.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e2506961bf6ead54887ba3562604d69cb430f59b42133d36976421bc8bd45901"}, - {file = "ruff-0.12.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c4faaff1f90cea9d3033cbbcdf1acf5d7fb11d8180758feb31337391691f3df0"}, - {file = "ruff-0.12.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40dced4a79d7c264389de1c59467d5d5cefd79e7e06d1dfa2c75497b5269a5a6"}, - {file = "ruff-0.12.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:0262d50ba2767ed0fe212aa7e62112a1dcbfd46b858c5bf7bbd11f326998bafc"}, - {file = "ruff-0.12.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:12371aec33e1a3758597c5c631bae9a5286f3c963bdfb4d17acdd2d395406687"}, - {file = "ruff-0.12.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:560f13b6baa49785665276c963edc363f8ad4b4fc910a883e2625bdb14a83a9e"}, - {file = "ruff-0.12.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:023040a3499f6f974ae9091bcdd0385dd9e9eb4942f231c23c57708147b06311"}, - {file = "ruff-0.12.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:883d844967bffff5ab28bba1a4d246c1a1b2933f48cb9840f3fdc5111c603b07"}, - {file = "ruff-0.12.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:2120d3aa855ff385e0e562fdee14d564c9675edbe41625c87eeab744a7830d12"}, - {file = "ruff-0.12.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:6b16647cbb470eaf4750d27dddc6ebf7758b918887b56d39e9c22cce2049082b"}, - {file = "ruff-0.12.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:e1417051edb436230023575b149e8ff843a324557fe0a265863b7602df86722f"}, - {file = "ruff-0.12.3-py3-none-win32.whl", hash = "sha256:dfd45e6e926deb6409d0616078a666ebce93e55e07f0fb0228d4b2608b2c248d"}, - {file = "ruff-0.12.3-py3-none-win_amd64.whl", hash = "sha256:a946cf1e7ba3209bdef039eb97647f1c77f6f540e5845ec9c114d3af8df873e7"}, - {file = "ruff-0.12.3-py3-none-win_arm64.whl", hash = "sha256:5f9c7c9c8f84c2d7f27e93674d27136fbf489720251544c4da7fb3d742e011b1"}, - {file = "ruff-0.12.3.tar.gz", hash = "sha256:f1b5a4b6668fd7b7ea3697d8d98857390b40c1320a63a178eee6be0899ea2d77"}, + {file = "ruff-0.12.5-py3-none-linux_armv6l.whl", hash = "sha256:1de2c887e9dec6cb31fcb9948299de5b2db38144e66403b9660c9548a67abd92"}, + {file = "ruff-0.12.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:d1ab65e7d8152f519e7dea4de892317c9da7a108da1c56b6a3c1d5e7cf4c5e9a"}, + {file = "ruff-0.12.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:962775ed5b27c7aa3fdc0d8f4d4433deae7659ef99ea20f783d666e77338b8cf"}, + {file = "ruff-0.12.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:73b4cae449597e7195a49eb1cdca89fd9fbb16140c7579899e87f4c85bf82f73"}, + {file = "ruff-0.12.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8b13489c3dc50de5e2d40110c0cce371e00186b880842e245186ca862bf9a1ac"}, + {file = "ruff-0.12.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f1504fea81461cf4841778b3ef0a078757602a3b3ea4b008feb1308cb3f23e08"}, + {file = "ruff-0.12.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:c7da4129016ae26c32dfcbd5b671fe652b5ab7fc40095d80dcff78175e7eddd4"}, + {file = "ruff-0.12.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ca972c80f7ebcfd8af75a0f18b17c42d9f1ef203d163669150453f50ca98ab7b"}, + {file = "ruff-0.12.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8dbbf9f25dfb501f4237ae7501d6364b76a01341c6f1b2cd6764fe449124bb2a"}, + {file = "ruff-0.12.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c47dea6ae39421851685141ba9734767f960113d51e83fd7bb9958d5be8763a"}, + {file = "ruff-0.12.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c5076aa0e61e30f848846f0265c873c249d4b558105b221be1828f9f79903dc5"}, + {file = "ruff-0.12.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:a5a4c7830dadd3d8c39b1cc85386e2c1e62344f20766be6f173c22fb5f72f293"}, + {file = "ruff-0.12.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:46699f73c2b5b137b9dc0fc1a190b43e35b008b398c6066ea1350cce6326adcb"}, + {file = "ruff-0.12.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:5a655a0a0d396f0f072faafc18ebd59adde8ca85fb848dc1b0d9f024b9c4d3bb"}, + {file = "ruff-0.12.5-py3-none-win32.whl", hash = "sha256:dfeb2627c459b0b78ca2bbdc38dd11cc9a0a88bf91db982058b26ce41714ffa9"}, + {file = "ruff-0.12.5-py3-none-win_amd64.whl", hash = "sha256:ae0d90cf5f49466c954991b9d8b953bd093c32c27608e409ae3564c63c5306a5"}, + {file = "ruff-0.12.5-py3-none-win_arm64.whl", hash = "sha256:48cdbfc633de2c5c37d9f090ba3b352d1576b0015bfc3bc98eaf230275b7e805"}, + {file = "ruff-0.12.5.tar.gz", hash = "sha256:b209db6102b66f13625940b7f8c7d0f18e20039bb7f6101fbdac935c9612057e"}, ] [[package]] @@ -1716,7 +1738,7 @@ version = "4.14.1" description = "Backported and Experimental Type Hints for Python 3.9+" optional = false python-versions = ">=3.9" -groups = ["main", "dev", "test"] +groups = ["main", "dev", "docs", "test"] files = [ {file = "typing_extensions-4.14.1-py3-none-any.whl", hash = "sha256:d1e1e3b58374dc93031d6eda2420a48ea44a36c2b4766a4fdeb3710755731d76"}, {file = "typing_extensions-4.14.1.tar.gz", hash = "sha256:38b39f4aeeab64884ce9f74c94263ef78f3c22467c8724005483154c26648d36"}, @@ -1757,14 +1779,14 @@ zstd = ["zstandard (>=0.18.0)"] [[package]] name = "virtualenv" -version = "20.31.2" +version = "20.32.0" description = "Virtual Python Environment builder" optional = false python-versions = ">=3.8" groups = ["dev"] files = [ - {file = "virtualenv-20.31.2-py3-none-any.whl", hash = "sha256:36efd0d9650ee985f0cad72065001e66d49a6f24eb44d98980f630686243cf11"}, - {file = "virtualenv-20.31.2.tar.gz", hash = "sha256:e10c0a9d02835e592521be48b332b6caee6887f332c111aa79a09b9e79efc2af"}, + {file = "virtualenv-20.32.0-py3-none-any.whl", hash = "sha256:2c310aecb62e5aa1b06103ed7c2977b81e042695de2697d01017ff0f1034af56"}, + {file = "virtualenv-20.32.0.tar.gz", hash = "sha256:886bf75cadfdc964674e6e33eb74d787dff31ca314ceace03ca5810620f4ecf0"}, ] [package.dependencies] diff --git a/pyproject.toml b/pyproject.toml index 98a3cc80a..a825de5f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "GitHubKit" -version = "0.12.16" +version = "0.13.0" description = "GitHub SDK for Python" authors = ["yanyongyu "] license = "MIT"